@vellumai/web 0.12.4 → 0.12.5-dev.202609251017.e467a6c

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 (463) hide show
  1. package/dist/assets/{a2a-invite-BSzXL6i3.js → a2a-invite-CMMHBiy-.js} +1 -1
  2. package/dist/assets/{about-page-Ne3KY7p6.js → about-page-BB7-HGJd.js} +1 -1
  3. package/dist/assets/{account-page-DR4ueI-s.js → account-page-B3AhNrvG.js} +1 -1
  4. package/dist/assets/{account-shell-BCvjHT7j.js → account-shell-CH63d0FT.js} +1 -1
  5. package/dist/assets/acp-run-detail-panel-C4wpvX9E.js +3 -0
  6. package/dist/assets/activation-list-route-CeDp6f5H.js +1 -0
  7. package/dist/assets/{activity-redirect-page-BOS14fri.js → activity-redirect-page-DF57BDED.js} +1 -1
  8. package/dist/assets/activity-steps-panel-BksJ52Tr.js +1 -0
  9. package/dist/assets/{add-credits-modal-O1N2pbak.js → add-credits-modal-D7q5Ffk8.js} +1 -1
  10. package/dist/assets/add-credits-modal-DqSLgand.js +1 -0
  11. package/dist/assets/ai-page-DiSmAbhk.js +1 -0
  12. package/dist/assets/all-chats-page-route-BmBKd57L.js +1 -0
  13. package/dist/assets/android-billing-handoff-iZa2BMO_.js +1 -0
  14. package/dist/assets/animated-stat-square-C7OzP_a-.js +1 -0
  15. package/dist/assets/{api-key-screen-BD62ySmK.js → api-key-screen-DXUxlcW_.js} +1 -1
  16. package/dist/assets/app--CZi-eoZ.js +399 -0
  17. package/dist/assets/app-DFa5jRlV.css +2 -0
  18. package/dist/assets/{app-info-YYU2hCWc.js → app-info-BVPfn1o-.js} +1 -1
  19. package/dist/assets/archive-redirect-page-cT5j1h2R.js +1 -0
  20. package/dist/assets/assistant-handle-modal-DU_Bi5lj.js +1 -0
  21. package/dist/assets/assistant-inbox-DPTo53YN.js +1 -0
  22. package/dist/assets/assistant-inbox-Di7EBVwM.js +1 -0
  23. package/dist/assets/assistant-inbox-DlwqAvim.js +1 -0
  24. package/dist/assets/assistant-inbox-page-route-Dw4GCqM1.js +8 -0
  25. package/dist/assets/assistant-inbox-qd_s59_T.js +1 -0
  26. package/dist/assets/{assistant-inbox-upgrade-body-BC-REEBi.js → assistant-inbox-upgrade-body-CBD3c6AS.js} +1 -1
  27. package/dist/assets/{assistant-status-panel-uJMo_YOD.js → assistant-status-panel-Bs62PMa_.js} +1 -1
  28. package/dist/assets/auth-store-BEWaJpfT.js +1 -0
  29. package/dist/assets/{auth-welcome-screen-uOY9YbXG.js → auth-welcome-screen-Cf7g-gHo.js} +1 -1
  30. package/dist/assets/avatar-bundled-components-BFd94a0P.js +1 -0
  31. package/dist/assets/avatar-random-CxZqXUyu.js +2 -0
  32. package/dist/assets/{await-org-header-settled-dTqfGHq2.js → await-org-header-settled-nRYfVnwu.js} +1 -1
  33. package/dist/assets/background-task-detail-panel-CF6XbrmR.js +1 -0
  34. package/dist/assets/billing-page-CNpzPATR.js +3 -0
  35. package/dist/assets/{billing-redirect-page-DK5z_EZp.js → billing-redirect-page-Bqnd8dyK.js} +1 -1
  36. package/dist/assets/bookmarks-page-Keh2H3Nn.js +1 -0
  37. package/dist/assets/{bundle-confirm-page-Co72y9XS.js → bundle-confirm-page-BxltrwcH.js} +1 -1
  38. package/dist/assets/channel-transcript-panel-Bwft4mMS.js +1 -0
  39. package/dist/assets/{channels-CVJ5zeqt.js → channels-BGZqsCyH.js} +1 -1
  40. package/dist/assets/{channels-DhvDj55h.js → channels-CZ6bOgaK.js} +1 -1
  41. package/dist/assets/{channels-DBlx6QsN.js → channels-DTkJHg8Z.js} +1 -1
  42. package/dist/assets/{channels-RsZsrZWR.js → channels-Gl4ycvIi.js} +1 -1
  43. package/dist/assets/channels-page-route-DCcDWM0Z.js +1 -0
  44. package/dist/assets/chat-BTYwT-Iz.js +5 -0
  45. package/dist/assets/chat-CYQ7D6re.js +5 -0
  46. package/dist/assets/chat-Cap3ZeFn.js +5 -0
  47. package/dist/assets/chat-DBgqSGT1.js +5 -0
  48. package/dist/assets/chat-info-panel-B9qlEkS8.js +1 -0
  49. package/dist/assets/checkout-continuation-BvAhCXvm.js +1 -0
  50. package/dist/assets/checkout-page-CvFPqG8M.js +1 -0
  51. package/dist/assets/checkout-return-target-Di4-pUK2.js +1 -0
  52. package/dist/assets/command-palette-BCXZZBTF.js +1 -0
  53. package/dist/assets/command-palette-DVQnjo0j.js +1 -0
  54. package/dist/assets/{command-palette-window-page-DCE-g55A.js → command-palette-window-page-DJT_jivG.js} +1 -1
  55. package/dist/assets/common-BD7jAX3p.js +1 -0
  56. package/dist/assets/common-C6oFwvW0.js +1 -0
  57. package/dist/assets/common-ClKW2YC6.js +1 -0
  58. package/dist/assets/common-GD9uXbfP.js +1 -0
  59. package/dist/assets/{community-page-BJxApcxO.js → community-page-nHBkefsX.js} +1 -1
  60. package/dist/assets/{companion-accent-Cp2MmcWR.js → companion-accent-C7yt1eqa.js} +1 -1
  61. package/dist/assets/{companion-dock-zones-page-Zvhwz0Yz.js → companion-dock-zones-page-DeHzEbL5.js} +1 -1
  62. package/dist/assets/{companion-layout-cM6NtktC.js → companion-layout-BPcWtStb.js} +1 -1
  63. package/dist/assets/{companion-popover-D2taDck6.js → companion-popover-CiXhsUHZ.js} +1 -1
  64. package/dist/assets/companion-popover-page-Da3nHMcF.js +1 -0
  65. package/dist/assets/companion-surface-RWTMh6gR.js +1 -0
  66. package/dist/assets/companion-surface-page-CH4LFjA9.js +1 -0
  67. package/dist/assets/companion-tour-entry-jyMiJZCC.js +1 -0
  68. package/dist/assets/{companion-watch-frame-page-CIEEUVOP.js → companion-watch-frame-page-kV8Rrn1y.js} +1 -1
  69. package/dist/assets/{connect-page-CILP_iqJ.js → connect-page-DLcRu261.js} +1 -1
  70. package/dist/assets/{consent-controls-ole3UEoz.js → consent-controls-CH9h3kH3.js} +1 -1
  71. package/dist/assets/contacts-BTmOfEVL.js +1 -0
  72. package/dist/assets/contacts-Cxz-DyYF.js +1 -0
  73. package/dist/assets/contacts-DgC-8PHB.js +1 -0
  74. package/dist/assets/contacts-gateway-Cm56diW2.js +1 -0
  75. package/dist/assets/contacts-mijLgegD.js +1 -0
  76. package/dist/assets/contacts-page-route-_NGr_6oJ.js +1 -0
  77. package/dist/assets/{copy-button-CzMsh4gB.js → copy-button-dNWQd4Mv.js} +1 -1
  78. package/dist/assets/{credential-entry-page-CueibLp2.js → credential-entry-page-CkpYB_77.js} +1 -1
  79. package/dist/assets/credentials-page--0UkZN6l.js +1 -0
  80. package/dist/assets/csv-preview-BdRwzKAU.js +1 -0
  81. package/dist/assets/danger-zone-redirect-page-BuaT1_Qw.js +1 -0
  82. package/dist/assets/debug-page-BokSWqVH.js +4 -0
  83. package/dist/assets/deploy-dialogs-BkY6C0tR.js +1 -0
  84. package/dist/assets/deploy-dialogs-_Zy57TOa.js +1 -0
  85. package/dist/assets/desktop-preview-content-BCXkV_8I.js +2 -0
  86. package/dist/assets/{desktop-status-CG431FNc.js → desktop-status-COfQgYrK.js} +1 -1
  87. package/dist/assets/{desktop-viewer-DwehmMBT.js → desktop-viewer-DwP16UW2.js} +2 -2
  88. package/dist/assets/{detail-card-DaoCCbYV.js → detail-card-D4zKx03d.js} +1 -1
  89. package/dist/assets/{detail-panel-stop-button-CZfhwEjC.js → detail-panel-stop-button-BE40AoTZ.js} +1 -1
  90. package/dist/assets/detail-primitives-BFWcvOIj.js +1 -0
  91. package/dist/assets/developer-page-Cw8EPVEc.js +1 -0
  92. package/dist/assets/devices-redirect-page-D1L2kvRG.js +1 -0
  93. package/dist/assets/{dictation-overlay-page-DF-XpmHA.js → dictation-overlay-page-BXlKQvCD.js} +1 -1
  94. package/dist/assets/document-load-BEkIFq0U.js +1 -0
  95. package/dist/assets/{document-load-CcDODImt.js → document-load-CfYfynz3.js} +1 -1
  96. package/dist/assets/document-viewer-page-DHxU28bI.js +1 -0
  97. package/dist/assets/emails-page-BnVS4o6j.js +1 -0
  98. package/dist/assets/esm-5n5jSt3e.js +2 -0
  99. package/dist/assets/esm-B5HvNA2f.js +1 -0
  100. package/dist/assets/esm-BVAuvmyr.js +2 -0
  101. package/dist/assets/esm-CIgMNIdz.js +1 -0
  102. package/dist/assets/{esm-DwBaOLRL.js → esm-COgrn4oo.js} +2 -2
  103. package/dist/assets/esm-CvOYazPQ.js +2 -0
  104. package/dist/assets/{esm-C8UCMV_0.js → esm-DFoZ6rpj.js} +1 -1
  105. package/dist/assets/{esm-DWsMY4a8.js → esm-DPwp_tyY.js} +1 -1
  106. package/dist/assets/esm-DetZupO7.js +2 -0
  107. package/dist/assets/esm-DpDUzGbk.js +2 -0
  108. package/dist/assets/{file-diff-view-bwx_MkXN.js → file-diff-view-uNXZX_5q.js} +1 -1
  109. package/dist/assets/file-view-mode-C3psjEfg.js +3 -0
  110. package/dist/assets/general-page-qSzUCXnA.js +2 -0
  111. package/dist/assets/hatching-screen-DELFYI9c.js +1 -0
  112. package/dist/assets/home-BI-fzzA0.js +1 -0
  113. package/dist/assets/home-BZGFmZ0D.js +1 -0
  114. package/dist/assets/home-CM9kRnjx.js +1 -0
  115. package/dist/assets/home-D4Knhe9B.js +1 -0
  116. package/dist/assets/{hosting-screen-BA7wRb0n.js → hosting-screen-bqc6aMjj.js} +1 -1
  117. package/dist/assets/identity-page-route-BNKtl3k8.js +7 -0
  118. package/dist/assets/inspect-page-Cpa3np9U.js +8 -0
  119. package/dist/assets/integrations-page-HPwVt_3v.js +1 -0
  120. package/dist/assets/{intelligence-BuFYEa5r.js → intelligence-BMe5g8FT.js} +1 -1
  121. package/dist/assets/{intelligence-CRA2olQk.js → intelligence-D-kO_fqT.js} +1 -1
  122. package/dist/assets/{intelligence--e-W2Pdt.js → intelligence-DqSNtb4m.js} +1 -1
  123. package/dist/assets/{intelligence-Ctt6Qr1d.js → intelligence-TbEk4Dsd.js} +1 -1
  124. package/dist/assets/intelligence-layout-0GsEXK7p.js +1 -0
  125. package/dist/assets/intelligence-layout-slots-store-DMLutIHV.js +1 -0
  126. package/dist/assets/jszip.min-CDIVkZfG.js +2 -0
  127. package/dist/assets/keyboard-shortcuts-redirect-page-Bd7lXdXX.js +1 -0
  128. package/dist/assets/{latest-assistant-text-DFGZImdA.js → latest-assistant-text-DglgIj6y.js} +1 -1
  129. package/dist/assets/{library-detail-page-Db0s21ez.js → library-detail-page-B7pBRfoi.js} +1 -1
  130. package/dist/assets/library-page-L4W-xpt-.js +1 -0
  131. package/dist/assets/list-detail-navigation-ChFNCRwF.js +1 -0
  132. package/dist/assets/local-mode-DBz3KC1d.js +1 -0
  133. package/dist/assets/login-page-BGKAlYwF.js +1 -0
  134. package/dist/assets/logout-page-BZeFNpfr.js +1 -0
  135. package/dist/assets/{logs-layout-C0DDeC5h.js → logs-layout-BEspUUlK.js} +1 -1
  136. package/dist/assets/markdown-preview-DW1TFHKg.js +1 -0
  137. package/dist/assets/{media-preview-CVf1UuE9.js → media-preview-CqU6YsEJ.js} +1 -1
  138. package/dist/assets/memory-page-route-Z3ZXItT4.js +2 -0
  139. package/dist/assets/{memory-router-playground-page-BudLOTc4.js → memory-router-playground-page-CzpucJPF.js} +1 -1
  140. package/dist/assets/{message-files-panel-Qq9UEaxA.js → message-files-panel-EwakPRjB.js} +1 -1
  141. package/dist/assets/native-attachment-pickers-wJIRbAeJ.js +1 -0
  142. package/dist/assets/native-file-DZiM21tm.js +1 -0
  143. package/dist/assets/notifications-page-CR4fvshf.js +1 -0
  144. package/dist/assets/{oauth-complete-page-Cypawil4.js → oauth-complete-page-DxkshBx-.js} +1 -1
  145. package/dist/assets/{oauth-popup-complete-page-CWQF6Tbc.js → oauth-popup-complete-page-BAU5Za0n.js} +2 -2
  146. package/dist/assets/paired-platform-identity-DJwJC3jQ.js +1 -0
  147. package/dist/assets/{pairing-page-OjkCjTgJ.js → pairing-page-GUjtKhMu.js} +1 -1
  148. package/dist/assets/password-reset-page-oBo5k7hR.js +1 -0
  149. package/dist/assets/pdf-file-preview-C3aGfZwx.js +1 -0
  150. package/dist/assets/{peeking-eyes-B3XMFLXD.js → peeking-eyes-C3X1d6Jj.js} +1 -1
  151. package/dist/assets/permission-guide-page-BDQa9L53.js +1 -0
  152. package/dist/assets/permission-guide-page-D6FWkh5j.css +1 -0
  153. package/dist/assets/permission-setup-Bb_0U96E.js +1 -0
  154. package/dist/assets/personality-page-CcCZDENz.js +1 -0
  155. package/dist/assets/personality-page-DFFk9Pj1.js +1 -0
  156. package/dist/assets/personality-sliders-CzqyS7A4.js +1 -0
  157. package/dist/assets/plans-page-Bl8f11RI.js +1 -0
  158. package/dist/assets/{platform-loopback-page-Dr-fFIwU.js → platform-loopback-page-Bwg44Rey.js} +1 -1
  159. package/dist/assets/{plugin-detail-page-B3Rx7z27.js → plugin-detail-page-D69IH1B3.js} +1 -1
  160. package/dist/assets/{plugins-page-DN9rPLRn.js → plugins-page-CVRW2_Se.js} +1 -1
  161. package/dist/assets/plugins-surface-4C_D08UG.js +1 -0
  162. package/dist/assets/{preview-error-DB2rjYvO.js → preview-error-DxF2Tmoi.js} +1 -1
  163. package/dist/assets/privacy-page-oVABVdz3.js +1 -0
  164. package/dist/assets/{privacy-screen-grsFP0UO.js → privacy-screen-Y0AB3UYU.js} +1 -1
  165. package/dist/assets/profile-card-Dz4jh2RX.js +1 -0
  166. package/dist/assets/{provider-callback-page-g4qnXUAS.js → provider-callback-page-8Z8sN5CU.js} +1 -1
  167. package/dist/assets/{provider-key-CK86YQ0g.js → provider-key-CmM_Jfh9.js} +1 -1
  168. package/dist/assets/{provider-signup-page-Ce4IEtKF.js → provider-signup-page-DCuuyMbB.js} +1 -1
  169. package/dist/assets/{provisioning-targets-Csh2mGBG.js → provisioning-targets-CihW-82c.js} +1 -1
  170. package/dist/assets/{quick-input-page-BJ-kLGi7.js → quick-input-page-B1jsbN3h.js} +1 -1
  171. package/dist/assets/referral-modal-C2KWqPrB.js +1 -0
  172. package/dist/assets/referral-modal-DlLNHhaM.js +1 -0
  173. package/dist/assets/{rehype-katex-thSVJn2u.js → rehype-katex-DWUGzNKD.js} +3 -3
  174. package/dist/assets/{research-mock-page-bXHr3HJ1.js → research-mock-page-CH-n637O.js} +1 -1
  175. package/dist/assets/research-onboarding-route-D8XVAkoR.js +50 -0
  176. package/dist/assets/review-terms-screen-4Q7Q5PXO.js +1 -0
  177. package/dist/assets/routes-CyFL2-wp.js +1 -0
  178. package/dist/assets/schedules-4TEe3Tuj.js +1 -0
  179. package/dist/assets/schedules-page-BkYY8e4x.js +1 -0
  180. package/dist/assets/security-redirect-page-FzTFgwya.js +1 -0
  181. package/dist/assets/select-assistant-screen-CGZpmW1b.js +1 -0
  182. package/dist/assets/{self-hosted-servers-CJjUOVLQ.js → self-hosted-servers-BCp7q5Jm.js} +1 -1
  183. package/dist/assets/{service-form-controls-DwwYjgqa.js → service-form-controls-DdbS5OAS.js} +1 -1
  184. package/dist/assets/{setting-row-D7xTN4Nd.js → setting-row-BiK74hlg.js} +1 -1
  185. package/dist/assets/settings-B0hc8479.js +3 -0
  186. package/dist/assets/settings-BOMjAZEC.js +3 -0
  187. package/dist/assets/settings-C13E9nrT.js +3 -0
  188. package/dist/assets/settings-layout-ZhB2RisX.js +1 -0
  189. package/dist/assets/settings-tIlbF60d.js +3 -0
  190. package/dist/assets/share-feedback-modal-Cpmo1uuR.js +1 -0
  191. package/dist/assets/share-feedback-modal-D2mtB9LE.js +2 -0
  192. package/dist/assets/{sidebar-tree-CqElNW5F.js → sidebar-tree-CVZl8Tgn.js} +1 -1
  193. package/dist/assets/{signup-page-ZDm4OjY3.js → signup-page--rSmkruA.js} +1 -1
  194. package/dist/assets/{signup-shell-kgxV4p4a.js → signup-shell-DlfJxk7w.js} +1 -1
  195. package/dist/assets/skill-detail-page-Hn3SvTdx.js +2 -0
  196. package/dist/assets/skill-detail-panel-BP4SLqhj.js +1 -0
  197. package/dist/assets/{skill-removal-dialog-DfBhw0Lh.js → skill-removal-dialog-V-dA4mSf.js} +1 -1
  198. package/dist/assets/{skills-page-CamB2mns.js → skills-page-DRntcABj.js} +1 -1
  199. package/dist/assets/{sounds-page-Bj48pTCF.js → sounds-page-BQag2JVp.js} +1 -1
  200. package/dist/assets/{start-screen-DtUnAChR.js → start-screen-DXZfwRNY.js} +1 -1
  201. package/dist/assets/step-detail-header-C7ftV1QU.js +1 -0
  202. package/dist/assets/stt-language-picker-modal-BinBfL2G.js +1 -0
  203. package/dist/assets/subagent-detail-panel-BsXUxHJ9.js +1 -0
  204. package/dist/assets/superpowers-page-C3wK8jrZ.js +1 -0
  205. package/dist/assets/system-events-page-BhabIo6N.js +1 -0
  206. package/dist/assets/system-events-redirect-page-Cy3nFDli.js +1 -0
  207. package/dist/assets/tabular-grid-CWJbCvkG.js +4 -0
  208. package/dist/assets/teleport-gateway-client-C5sVee7e.js +1 -0
  209. package/dist/assets/{text-preview-CUqsudgl.js → text-preview-DarB6e-t.js} +1 -1
  210. package/dist/assets/{theme-stage-page-HhLVo3o6.js → theme-stage-page-Cegm2fmk.js} +1 -1
  211. package/dist/assets/{tiptap-document-editor-rY7Mbt4u.js → tiptap-document-editor-Dgqk7iz_.js} +5 -3
  212. package/dist/assets/tool-detail-panel-DxIHkPt4.js +16 -0
  213. package/dist/assets/tool-detail-panel-TzZcdTQN.js +1 -0
  214. package/dist/assets/{trait-cycle-row-C-mybyb7.js → trait-cycle-row-Dqu0P27v.js} +1 -1
  215. package/dist/assets/upgrade-cancel-page-BfLLWBrR.js +1 -0
  216. package/dist/assets/{upgrade-success-page-3efxDP6a.js → upgrade-success-page-Bq7QrpOB.js} +1 -1
  217. package/dist/assets/{usage-redirect-page-D4aGhmzR.js → usage-redirect-page-CJpHAGBB.js} +1 -1
  218. package/dist/assets/use-app-delete-xNFYxcdj.js +1 -0
  219. package/dist/assets/use-assistant-identity-details-B1Awc0ji.js +1 -0
  220. package/dist/assets/use-async-read-DcRLxtMN.js +1 -0
  221. package/dist/assets/use-checkout-dismiss-refresh-jQ3TBYKS.js +1 -0
  222. package/dist/assets/{use-edge-swipe-back-DjHkqNOJ.js → use-edge-swipe-back-Dc6KFeSJ.js} +1 -1
  223. package/dist/assets/{use-hotkey-recorder-OFYAQ-HC.js → use-hotkey-recorder-DmcwEQhK.js} +1 -1
  224. package/dist/assets/use-invite-link-dialog-BFYX67b2.js +1 -0
  225. package/dist/assets/use-plugins-list-DBn3mbVB.js +1 -0
  226. package/dist/assets/use-return-to-short-circuit-DpeEsJ7h.js +1 -0
  227. package/dist/assets/use-side-list-room-DCJYSksY.js +1 -0
  228. package/dist/assets/use-skill-actions-6xXlmgbJ.js +1 -0
  229. package/dist/assets/use-skill-detail-files-CmbXP01U.js +1 -0
  230. package/dist/assets/use-supports-credentials-settings-BTrxlFxg.js +1 -0
  231. package/dist/assets/use-transcript-message-by-id-DyxaLSdN.js +1 -0
  232. package/dist/assets/use-truncated-blob-text-D6z6oSIj.js +1 -0
  233. package/dist/assets/vendor-DLH51Vjf.js +129 -0
  234. package/dist/assets/voice-page-DBRy5mEX.js +1 -0
  235. package/dist/assets/{wake-detail-panel-CeBICW69.js → wake-detail-panel-PnXrTDs3.js} +1 -1
  236. package/dist/assets/{weather-forecast-display-ULwhP9mt.js → weather-forecast-display-7oemCHYr.js} +1 -1
  237. package/dist/assets/{web-BWLYaK7a.js → web-BlKAJber.js} +1 -1
  238. package/dist/assets/{web-oF09CLSz.js → web-BmoVVmPZ.js} +1 -1
  239. package/dist/assets/{web-BEVUSoB9.js → web-C2Y5uOI1.js} +1 -1
  240. package/dist/assets/{web-BBVXWl3M.js → web-CAi9YePi.js} +1 -1
  241. package/dist/assets/{web-BAiOHSei.js → web-D0qh5Vlp.js} +1 -1
  242. package/dist/assets/{web-BAt0F8Hi.js → web-D5UHHnMG.js} +1 -1
  243. package/dist/assets/{web-sMUe1qc9.js → web-DZvE04fg.js} +1 -1
  244. package/dist/assets/{web-Brmr3_xZ.js → web-Xy5dhNHF.js} +1 -1
  245. package/dist/assets/{web-BdTOO1Z3.js → web-vcW3se1t.js} +1 -1
  246. package/dist/assets/welcome-screen-CtU9w0--.js +1 -0
  247. package/dist/assets/workflow-detail-panel-CoJLEQuv.js +1 -0
  248. package/dist/assets/{workspace-BQkwQJkh.js → workspace-C9KC9iRh.js} +1 -1
  249. package/dist/assets/{workspace-CkPbNpj-.js → workspace-Ca5KeX1D.js} +1 -1
  250. package/dist/assets/{workspace-BO5I0IXW.js → workspace-CkvlMlZG.js} +1 -1
  251. package/dist/assets/{workspace-UoSuwY63.js → workspace-OBnbhjU7.js} +1 -1
  252. package/dist/assets/workspace-page-BxO4Td2a.js +1 -0
  253. package/dist/assets/workspace-page-DGL905Oc.css +1 -0
  254. package/dist/assets/xlsx-preview-5RzKRM0T.js +1 -0
  255. package/dist/images/integrations/wix-mcp.png +0 -0
  256. package/dist/index.html +3 -3
  257. package/package.json +1 -1
  258. package/dist/assets/acp-run-detail-panel-BA9xGUzb.js +0 -3
  259. package/dist/assets/activation-list-route-Br9gsfSd.js +0 -1
  260. package/dist/assets/activity-steps-panel-88l6Ei6w.js +0 -1
  261. package/dist/assets/add-credits-modal-0pYLUDo4.js +0 -1
  262. package/dist/assets/ai-page-DU0mYnYP.js +0 -1
  263. package/dist/assets/all-chats-page-route-CkFi0Q7K.js +0 -1
  264. package/dist/assets/android-billing-handoff-C06TxyLt.js +0 -1
  265. package/dist/assets/app-BNyW7BqZ.css +0 -2
  266. package/dist/assets/app-Qc-rYPt9.js +0 -392
  267. package/dist/assets/archive-redirect-page-AYY4xZby.js +0 -1
  268. package/dist/assets/assistant-handle-modal-BZJgqpG8.js +0 -1
  269. package/dist/assets/assistant-inbox-Bt58UfV-.js +0 -1
  270. package/dist/assets/assistant-inbox-C_kJlDrW.js +0 -1
  271. package/dist/assets/assistant-inbox-DcUz6DF5.js +0 -1
  272. package/dist/assets/assistant-inbox-pCy-s4Sf.js +0 -1
  273. package/dist/assets/assistant-inbox-page-route-B61doUw8.js +0 -8
  274. package/dist/assets/auth-store-FcZEUxA_.js +0 -1
  275. package/dist/assets/avatar-bundled-components-DcmDX83d.js +0 -1
  276. package/dist/assets/avatar-random-DxLJmo42.js +0 -2
  277. package/dist/assets/background-task-detail-panel-CBjRAdga.js +0 -1
  278. package/dist/assets/billing-page-CA6R2wjZ.js +0 -3
  279. package/dist/assets/bookmarks-page-DPEug6V3.js +0 -1
  280. package/dist/assets/channel-transcript-panel-B0cRZsgw.js +0 -1
  281. package/dist/assets/channels-page-route-V3Fk_Hzf.js +0 -1
  282. package/dist/assets/chat-BQddXCk9.js +0 -3
  283. package/dist/assets/chat-BZsmqRU3.js +0 -3
  284. package/dist/assets/chat-C6WWTxFu.js +0 -3
  285. package/dist/assets/chat-D7FyK_n_.js +0 -3
  286. package/dist/assets/chat-info-panel-Bv1Aet5S.js +0 -1
  287. package/dist/assets/checkout-continuation-c9cPR68T.js +0 -1
  288. package/dist/assets/checkout-page-Cq5DAqbf.js +0 -1
  289. package/dist/assets/checkout-return-target-CA5-Gi7-.js +0 -1
  290. package/dist/assets/command-palette-BUCV7aZK.js +0 -1
  291. package/dist/assets/command-palette-Drf-HDLE.js +0 -1
  292. package/dist/assets/common-C7iok8sT.js +0 -1
  293. package/dist/assets/common-CMLZe_W6.js +0 -1
  294. package/dist/assets/common-Dgnh0Njn.js +0 -1
  295. package/dist/assets/common-QPQ83NEi.js +0 -1
  296. package/dist/assets/companion-popover-page-DGS-UTTL.js +0 -1
  297. package/dist/assets/companion-surface-oVNh5kA4.js +0 -1
  298. package/dist/assets/companion-surface-page-CXiHLf2G.js +0 -1
  299. package/dist/assets/companion-tour-entry-CpXEfiiz.js +0 -1
  300. package/dist/assets/contacts-Cj3nM0Gh.js +0 -1
  301. package/dist/assets/contacts-D4q-Pkbe.js +0 -1
  302. package/dist/assets/contacts-DFOqWav8.js +0 -1
  303. package/dist/assets/contacts-DUVw_0SR.js +0 -1
  304. package/dist/assets/contacts-gateway-zkBOSVyx.js +0 -1
  305. package/dist/assets/contacts-page-route-GyaYbluM.js +0 -1
  306. package/dist/assets/credentials-page-DgmnWmph.js +0 -1
  307. package/dist/assets/csv-preview-CemRbf9W.js +0 -4
  308. package/dist/assets/danger-zone-redirect-page-BJ31hZvD.js +0 -1
  309. package/dist/assets/debug-page-CYN-HFc_.js +0 -4
  310. package/dist/assets/deploy-dialogs-C_aIE0ti.js +0 -1
  311. package/dist/assets/deploy-dialogs-DP0ls5p1.js +0 -1
  312. package/dist/assets/desktop-preview-content-BmkyExHH.js +0 -2
  313. package/dist/assets/detail-primitives-B2TDPtFR.js +0 -1
  314. package/dist/assets/developer-page-e5ZIJFP5.js +0 -1
  315. package/dist/assets/devices-redirect-page-Dq7s97Ga.js +0 -1
  316. package/dist/assets/document-load-88Gh0gTG.js +0 -1
  317. package/dist/assets/document-viewer-page-DiD-zvuQ.js +0 -1
  318. package/dist/assets/emails-page-6gtVUatK.js +0 -1
  319. package/dist/assets/esm-BIibMYYI.js +0 -2
  320. package/dist/assets/esm-C2UI3fJI.js +0 -1
  321. package/dist/assets/esm-CKmAcBkR.js +0 -2
  322. package/dist/assets/esm-Cdr0McT5.js +0 -2
  323. package/dist/assets/esm-DwZucAaM.js +0 -2
  324. package/dist/assets/esm-RkUhkAaB.js +0 -1
  325. package/dist/assets/esm-hIaXWbzt.js +0 -2
  326. package/dist/assets/file-editor-D0P-Gy-a.js +0 -1
  327. package/dist/assets/general-page-BZQ7yEvH.js +0 -2
  328. package/dist/assets/hatching-screen-DBprFgEA.js +0 -1
  329. package/dist/assets/home-BPS0f4TE.js +0 -1
  330. package/dist/assets/home-CQg1DdTP.js +0 -1
  331. package/dist/assets/home-D8aw_BU0.js +0 -1
  332. package/dist/assets/home-DNL59CrR.js +0 -1
  333. package/dist/assets/identity-page-route-BfgfhU08.js +0 -7
  334. package/dist/assets/inspect-page-CH3uVGix.js +0 -9
  335. package/dist/assets/integrations-page-0clh02lf.js +0 -1
  336. package/dist/assets/intelligence-layout-CC6J5rMH.js +0 -1
  337. package/dist/assets/intelligence-layout-slots-store-BrxvOjyS.js +0 -1
  338. package/dist/assets/keyboard-shortcuts-redirect-page-B1HB0ZJQ.js +0 -1
  339. package/dist/assets/library-page-CHncUGxN.js +0 -1
  340. package/dist/assets/local-mode-D_-1ec4p.js +0 -1
  341. package/dist/assets/login-page-D2uVokBF.js +0 -1
  342. package/dist/assets/logout-page-H2ViUr-T.js +0 -1
  343. package/dist/assets/markdown-preview-BJR1Lp-C.js +0 -1
  344. package/dist/assets/memory-page-route-BBFz1YiU.js +0 -2
  345. package/dist/assets/metric-card-lmiHO3PF.js +0 -1
  346. package/dist/assets/native-attachment-pickers-BhYBtKp-.js +0 -1
  347. package/dist/assets/native-file-D0FCYmrg.js +0 -1
  348. package/dist/assets/notifications-page-BmNyEMIk.js +0 -1
  349. package/dist/assets/paired-platform-identity-BqBlEtsv.js +0 -1
  350. package/dist/assets/password-reset-page-DakZp7KC.js +0 -1
  351. package/dist/assets/pdf-file-preview-BxCXMhqC.js +0 -1
  352. package/dist/assets/personality-page-BU6yPK14.js +0 -1
  353. package/dist/assets/personality-page-Dm9LQmBW.js +0 -1
  354. package/dist/assets/personality-sliders-Dehyaji_.js +0 -1
  355. package/dist/assets/plans-page-CAyi2Nxa.js +0 -1
  356. package/dist/assets/plugins-surface-CrFNy0ps.js +0 -1
  357. package/dist/assets/privacy-page-BcpCT1Vb.js +0 -1
  358. package/dist/assets/profile-card-BP9AMkh4.js +0 -1
  359. package/dist/assets/referral-modal-Bd_Bwh5m.js +0 -1
  360. package/dist/assets/referral-modal-Ts_6L7Jq.js +0 -1
  361. package/dist/assets/research-onboarding-route-BXcRnuIA.js +0 -50
  362. package/dist/assets/review-terms-screen-DZCb5jS5.js +0 -1
  363. package/dist/assets/routes-CpEsYa-V.js +0 -1
  364. package/dist/assets/schedules-EEPosYPL.js +0 -1
  365. package/dist/assets/schedules-page-Dqs-gg7s.js +0 -1
  366. package/dist/assets/security-redirect-page-BUtDM_HH.js +0 -1
  367. package/dist/assets/select-assistant-screen-BOubdStJ.js +0 -1
  368. package/dist/assets/settings-BINiGaSx.js +0 -3
  369. package/dist/assets/settings-BMnYDo1R.js +0 -3
  370. package/dist/assets/settings-DJn8gNBn.js +0 -3
  371. package/dist/assets/settings-divider-y1Y7piXi.js +0 -1
  372. package/dist/assets/settings-jhraG5hY.js +0 -3
  373. package/dist/assets/settings-layout-7t6GBbdu.js +0 -1
  374. package/dist/assets/share-feedback-modal-DnH2sXjE.js +0 -2
  375. package/dist/assets/share-feedback-modal-DuI0v7AI.js +0 -1
  376. package/dist/assets/skill-detail-page-nWwa0XFq.js +0 -2
  377. package/dist/assets/skill-detail-panel-9H7ft8ro.js +0 -1
  378. package/dist/assets/stt-language-picker-modal-Dgcq9xkd.js +0 -1
  379. package/dist/assets/subagent-detail-panel-U4m5BxZG.js +0 -1
  380. package/dist/assets/superpowers-page-WkwbyGXZ.js +0 -1
  381. package/dist/assets/system-events-page-Bw9HBTD3.js +0 -1
  382. package/dist/assets/system-events-redirect-page-BfQvezRk.js +0 -1
  383. package/dist/assets/tool-detail-panel-B9PQpvb8.js +0 -16
  384. package/dist/assets/tool-detail-panel-Bt4vBf09.js +0 -1
  385. package/dist/assets/upgrade-cancel-page-CfqBVU8V.js +0 -1
  386. package/dist/assets/use-app-delete-vuGBgQkn.js +0 -1
  387. package/dist/assets/use-assistant-identity-details-CrWNdPFJ.js +0 -1
  388. package/dist/assets/use-checkout-dismiss-refresh-BwT2zWIT.js +0 -1
  389. package/dist/assets/use-invite-link-dialog-CCACCzhi.js +0 -1
  390. package/dist/assets/use-plugins-list-D-azzToZ.js +0 -1
  391. package/dist/assets/use-return-to-short-circuit-CpUBlNYt.js +0 -1
  392. package/dist/assets/use-side-list-room-DoHREePf.js +0 -1
  393. package/dist/assets/use-skill-actions-DG-ZngUy.js +0 -1
  394. package/dist/assets/use-skill-detail-files-CHrwga8E.js +0 -1
  395. package/dist/assets/use-supports-credentials-settings-Bq6T6gWf.js +0 -1
  396. package/dist/assets/use-transcript-message-by-id-Bfbshp9w.js +0 -1
  397. package/dist/assets/use-truncated-blob-text-hsQUTRQS.js +0 -1
  398. package/dist/assets/vendor-DEhKVoiV.js +0 -127
  399. package/dist/assets/voice-page-DiAOJ_tF.js +0 -1
  400. package/dist/assets/welcome-screen-DgJPqZ2G.js +0 -1
  401. package/dist/assets/workflow-detail-panel-DmsjHIzU.js +0 -1
  402. package/dist/assets/workspace-page-DHnNp7n8.js +0 -1
  403. /package/dist/assets/{account-CbGEbks2.js → account-BkxBMG9Z.js} +0 -0
  404. /package/dist/assets/{account-CumXdfDs.js → account-D5JdUO7K.js} +0 -0
  405. /package/dist/assets/{account-DmCG0I7Y.js → account-DYG79724.js} +0 -0
  406. /package/dist/assets/{account-CFZslirV.js → account-OIF2BHH7.js} +0 -0
  407. /package/dist/assets/{activation-Bly8xYKj.js → activation-C91KPzrh.js} +0 -0
  408. /package/dist/assets/{activation-CV4BcpUb.js → activation-Dd7eAIHs.js} +0 -0
  409. /package/dist/assets/{activation-Cn5oNHNz.js → activation-ReimSfhn.js} +0 -0
  410. /package/dist/assets/{activation-tasks-Xby0ArJP.js → activation-tasks-D4dorV2v.js} +0 -0
  411. /package/dist/assets/{activation-tasks-CDweZ7KB.js → activation-tasks-efxGWsFw.js} +0 -0
  412. /package/dist/assets/{activation-DtrycgQA.js → activation-tasks-rViOqW7C.js} +0 -0
  413. /package/dist/assets/{activation-tasks-CixG0BPC.js → activation-tasks-wtMwJ0EV.js} +0 -0
  414. /package/dist/assets/{activation-tasks-DLwbX7H6.js → activation-yoBQ36AY.js} +0 -0
  415. /package/dist/assets/{app-types-oLaS-mTA.js → app-types-BoY_FOAH.js} +0 -0
  416. /package/dist/assets/{build.umd-BaRFq_Ke.js → build.umd-B0ATW5UM.js} +0 -0
  417. /package/dist/assets/{credential-requests-eqWotlgu.js → credential-requests-CmFaXPwz.js} +0 -0
  418. /package/dist/assets/{credential-requests-BeJ7dLjs.js → credential-requests-D3J3i5oa.js} +0 -0
  419. /package/dist/assets/{credential-requests-CF1Ijjel.js → credential-requests-gl4lfjL4.js} +0 -0
  420. /package/dist/assets/{credential-requests-LPv1X_JL.js → credential-requests-h908NRpv.js} +0 -0
  421. /package/dist/assets/{definitions-DgScTjwR.js → definitions-BUCExH-9.js} +0 -0
  422. /package/dist/assets/{definitions-BSvId-nJ.js → definitions-DpZNNWA7.js} +0 -0
  423. /package/dist/assets/{diff-rows-BqIfjsWM.js → diff-rows-D2cn4P1P.js} +0 -0
  424. /package/dist/assets/{emoji-catalog-data-BA5JcZe8.js → emoji-catalog-data-DsyEWO16.js} +0 -0
  425. /package/dist/assets/{format-countdown-D18PVUfL.js → format-countdown-l7vj-IPm.js} +0 -0
  426. /package/dist/assets/{is-record-M98oimiB.js → is-record-CNwRuI6a.js} +0 -0
  427. /package/dist/assets/{library-BIeEceZf.js → library-CFGvGWZt.js} +0 -0
  428. /package/dist/assets/{library-CGe-F8G4.js → library-CmSFUt9r.js} +0 -0
  429. /package/dist/assets/{library-BDlOjOSg.js → library-D26ezl8B.js} +0 -0
  430. /package/dist/assets/{library-Dq184-kl.js → library-Dv9w5D8Z.js} +0 -0
  431. /package/dist/assets/{link-click-IkiMmOF_.js → link-click-CR9uUEsb.js} +0 -0
  432. /package/dist/assets/{logs-CN-P4Dk3.js → logs-5jFWrQRx.js} +0 -0
  433. /package/dist/assets/{logs-kLiH3IW-.js → logs-BJTGRcSn.js} +0 -0
  434. /package/dist/assets/{logs-CM1ISsDq.js → logs-BPrpYBp7.js} +0 -0
  435. /package/dist/assets/{logs-vLJHUPMP.js → logs-BpX8Zuzb.js} +0 -0
  436. /package/dist/assets/{machine-sizes-BWbhowrp.js → machine-sizes-srbag24Q.js} +0 -0
  437. /package/dist/assets/{onboarding-EqfHzA5u.js → onboarding-B9_JitSg.js} +0 -0
  438. /package/dist/assets/{onboarding-DcqUEEaz.js → onboarding-BrS1fcVE.js} +0 -0
  439. /package/dist/assets/{onboarding-BW2dh5pt.js → onboarding-Cx2yoeE5.js} +0 -0
  440. /package/dist/assets/{onboarding-Cnq4igvs.js → onboarding-cBGAfB74.js} +0 -0
  441. /package/dist/assets/{onboarding-step-layout-WvEjfCnx.js → onboarding-step-layout-BsqZaEHR.js} +0 -0
  442. /package/dist/assets/{pdf-DgsCrxEh.js → pdf-_tTrkaWt.js} +0 -0
  443. /package/dist/assets/{plugin-attribution-LzmgCiDL.js → plugin-attribution-RBBRvghI.js} +0 -0
  444. /package/dist/assets/{radio-card-nav-CuptkxL2.js → radio-card-nav-Br8358Zh.js} +0 -0
  445. /package/dist/assets/{remote-web-CobukhvR.js → remote-web-42kFkA33.js} +0 -0
  446. /package/dist/assets/{remote-web-C3yUczL8.js → remote-web-CFPdQIeJ.js} +0 -0
  447. /package/dist/assets/{remote-web-DwpqtwUx.js → remote-web-DFX945w2.js} +0 -0
  448. /package/dist/assets/{remote-web-DCSDDZCE.js → remote-web-DkzrBzGi.js} +0 -0
  449. /package/dist/assets/{schedules-IzKLt3Kb.js → schedules-Bk7XGnqS.js} +0 -0
  450. /package/dist/assets/{schedules-C2TWanDm.js → schedules-CGU7CKaM.js} +0 -0
  451. /package/dist/assets/{schedules-DmPN1i2h.js → schedules-J687h0Fh.js} +0 -0
  452. /package/dist/assets/{schedules-DQk79n5p.js → schedules-JnprnWDo.js} +0 -0
  453. /package/dist/assets/{signup-onboarding-handoff-C8_xhSTf.js → signup-onboarding-handoff-BIo7lFvP.js} +0 -0
  454. /package/dist/assets/{skill-icon-DUIePVIz.js → skill-icon-CWKAcXVy.js} +0 -0
  455. /package/dist/assets/{status-badge-pill-Cc18wQfL.js → status-badge-pill-qGQ5gRiz.js} +0 -0
  456. /package/dist/assets/{terminal-giCEJEW0.js → terminal-BV6xg9ZA.js} +0 -0
  457. /package/dist/assets/{terminal-Dl-IbvuO.js → terminal-BjOF3LBT.js} +0 -0
  458. /package/dist/assets/{terminal-DXPsXc9Y.js → terminal-CYHsl1AH.js} +0 -0
  459. /package/dist/assets/{terminal-Cy7FbQYY.js → terminal-Cxm0NKaj.js} +0 -0
  460. /package/dist/assets/{usage-window-BQhWVCSl.js → usage-window-DJWFtBw1.js} +0 -0
  461. /package/dist/assets/{use-debounced-value-Dc_Camyk.js → use-debounced-value-CiNn3pzA.js} +0 -0
  462. /package/dist/assets/{xterm-DDBpEHv9.js → xterm-Pyzkt_-B.js} +0 -0
  463. /package/dist/assets/{xterm-addon-fit-RknS6doH.js → xterm-addon-fit-HaY_WHvm.js} +0 -0
@@ -0,0 +1,129 @@
1
+ import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-BM3Ffeng.js";import{b as a,t as o,v as s,x as c}from"./react-B9IgSVeK.js";var l=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,u=globalThis,d=`10.52.0`;function f(){return p(u),u}function p(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.52.0`,t[d]=t[`10.52.0`]||{}}function m(e,t,n=u){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[d]=r[`10.52.0`]||{};return i[e]||(i[e]=t())}var h=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],g=`Sentry Logger `,_={};function v(e){if(!(`console`in u))return e();let t=u.console,n={},r=Object.keys(_);r.forEach(e=>{let r=_[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function y(){E().enabled=!0}function b(){E().enabled=!1}function x(){return E().enabled}function S(...e){T(`log`,...e)}function C(...e){T(`warn`,...e)}function w(...e){T(`error`,...e)}function T(e,...t){l&&x()&&v(()=>{u.console[e](`${g}[${e}]:`,...t)})}function E(){return l?m(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var D={enable:y,disable:b,isEnabled:x,log:S,warn:C,error:w},O=50,ee=/\(error: (.*)\)/,te=/captureMessage|captureException/;function ne(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2
+ `);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=ee.test(n)?n.replace(ee,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=O+r)break}}return A(i.slice(r))}}function k(e){return Array.isArray(e)?ne(...e):e}function A(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(re(t).function||``)&&t.pop(),t.reverse(),te.test(re(t).function||``)&&(t.pop(),te.test(re(t).function||``)&&t.pop()),t.slice(0,O).map(e=>({...e,filename:e.filename||re(t).filename,function:e.function||`?`}))}function re(e){return e[e.length-1]||{}}var ie=`<anonymous>`;function j(e){try{return!e||typeof e!=`function`?ie:e.name||ie}catch{return ie}}function ae(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function oe(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var se={},ce={};function le(e,t){return se[e]=se[e]||[],se[e].push(t),()=>{let n=se[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function ue(e,t){if(!ce[e]){ce[e]=!0;try{t()}catch(t){l&&D.error(`Error while instrumenting ${e}`,t)}}}function de(e,t){let n=e&&se[e];if(n)for(let r of n)try{r(t)}catch(t){l&&D.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${j(r)}\nError:`,t)}}var fe=null;function pe(e){let t=`error`;le(t,e),ue(t,me)}function me(){fe=u.onerror,u.onerror=function(e,t,n,r,i){return de(`error`,{column:r,error:i,line:n,msg:e,url:t}),fe?fe.apply(this,arguments):!1},u.onerror.__SENTRY_INSTRUMENTED__=!0}var he=null;function ge(e){let t=`unhandledrejection`;le(t,e),ue(t,_e)}function _e(){he=u.onunhandledrejection,u.onunhandledrejection=function(e){return de(`unhandledrejection`,e),he?he.apply(this,arguments):!0},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ve=Object.prototype.toString;function ye(e){switch(ve.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Ne(e,Error)}}function be(e,t){return ve.call(e)===`[object ${t}]`}function xe(e){return be(e,`ErrorEvent`)}function Se(e){return be(e,`DOMError`)}function Ce(e){return be(e,`DOMException`)}function we(e){return be(e,`String`)}function Te(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Ee(e){return e===null||Te(e)||typeof e!=`object`&&typeof e!=`function`}function De(e){return be(e,`Object`)}function Oe(e){return typeof Event<`u`&&Ne(e,Event)}function ke(e){return typeof Element<`u`&&Ne(e,Element)}function Ae(e){return be(e,`RegExp`)}function je(e){return!!(e?.then&&typeof e.then==`function`)}function Me(e){return De(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Ne(e,t){try{return e instanceof t}catch{return!1}}function Pe(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Fe(e){return typeof Request<`u`&&Ne(e,Request)}var Ie=u,Le=80;function Re(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Le;for(;n&&i++<5&&(o=ze(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function ze(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Ie.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&we(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Be(){try{return Ie.document.location.href}catch{return``}}function Ve(e,t=5){if(!Ie.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function He(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&We(i,r);try{e[t]=i}catch{l&&D.log(`Failed to replace method "${t}" in object`,e)}}function Ue(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{l&&D.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function We(e,t){try{e.prototype=t.prototype=t.prototype||{},Ue(e,`__sentry_original__`,t)}catch{}}function Ge(e){return e.__sentry_original__}function Ke(e){if(ye(e))return{message:e.message,name:e.name,stack:e.stack,...Je(e)};if(Oe(e)){let t={type:e.type,target:qe(e.target),currentTarget:qe(e.currentTarget),...Je(e)};return typeof CustomEvent<`u`&&Ne(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qe(e){try{return ke(e)?Re(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Je(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function eee(e){let t=Object.keys(Ke(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Ye;function Xe(e){if(Ye!==void 0)return Ye?Ye(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=u;return t in n&&typeof n[t]==`function`?(Ye=n[t],Ye(e)):(Ye=null,e())}function Ze(){return Xe(()=>Math.random())}function Qe(){return Xe(()=>Date.now())}function $e(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function et(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Pe(r)?n.push(oe(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function tt(e,t,n=!1){return we(e)?Ae(t)?t.test(e):we(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function nt(e,t=[],n=!1){return t.some(t=>tt(e,t,n))}function rt(){let e=u;return e.crypto||e.msCrypto}var it;function at(){return Ze()*16}function ot(e=rt()){try{if(e?.randomUUID)return Xe(()=>e.randomUUID()).replace(/-/g,``)}catch{}return it||=`10000000100040008000100000000000`,it.replace(/[018]/g,e=>(e^(at()&15)>>e/4).toString(16))}function st(e){return e.exception?.values?.[0]}function ct(e){let{message:t,event_id:n}=e;if(t)return t;let r=st(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function lt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function ut(e,t){let n=st(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function dt(e){if(ft(e))return!0;try{Ue(e,`__sentry_captured__`,!0)}catch{}return!1}function ft(e){try{return e.__sentry_captured__}catch{}}var pt=1e3;function mt(){return Qe()/pt}function tee(){let{performance:e}=u;if(!e?.now||!e.timeOrigin)return mt;let t=e.timeOrigin;return()=>(t+Xe(()=>e.now()))/pt}var ht;function gt(){return(ht??=tee())()}function nee(e){let t=gt(),n={sid:ot(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>yt(n)};return e&&_t(n,e),n}function _t(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||gt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ot()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function vt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),_t(e,n)}function yt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function bt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=bt(r[e],t[e],n-1));return r}function xt(){return ot()}function St(){return ot().substring(16)}var Ct=`_sentrySpan`;function wt(e,t){t?Ue(e,Ct,t):delete e[Ct]}function Tt(e){return e[Ct]}var Et=100,Dt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:xt(),sampleRand:Ze()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,wt(t,Tt(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&_t(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():De(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,wt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:xt(),sampleRand:Ze()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Et;if(n<=0)return this;let r={timestamp:mt(),...e,message:e.message?$e(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Tt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=bt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ot();if(!this._client)return l&&D.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||ot();if(!this._client)return l&&D.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||ot();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(l&&D.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Ot(){return m(`defaultCurrentScope`,()=>new Dt)}function kt(){return m(`defaultIsolationScope`,()=>new Dt)}var At=e=>e instanceof Promise&&!e[jt],jt=Symbol(`chained PromiseLike`),Mt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return At(r)&&At(e)?r:Nt(e,r)},Nt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[jt]:!0}),t},Pt=class{constructor(e,t){let n;n=e||new Dt;let r;r=t||new Dt,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return je(n)?Mt(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ft(){let e=p(f());return e.stack=e.stack||new Pt(Ot(),kt())}function It(e){return Ft().withScope(e)}function ree(e,t){let n=Ft();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Lt(e){return Ft().withScope(()=>e(Ft().getIsolationScope()))}function iee(){return{withIsolationScope:Lt,withScope:It,withSetScope:ree,withSetIsolationScope:(e,t)=>Lt(t),getCurrentScope:()=>Ft().getScope(),getIsolationScope:()=>Ft().getIsolationScope()}}function Rt(e){let t=p(e);return t.acs?t.acs:iee()}var aee;function oee(){return aee?.()}function zt(){return Rt(f()).getCurrentScope()}function Bt(){return Rt(f()).getIsolationScope()}function Vt(){return m(`globalScope`,()=>new Dt)}function Ht(...e){let t=Rt(f());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Ut(){return zt().getClient()}function Wt(e){let t=oee();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||St()};return r&&(a.parent_span_id=r),a}var Gt=`sentry.source`,Kt=`sentry.sample_rate`,qt=`sentry.op`,Jt=`sentry.origin`,see=`sentry.measurement_unit`,Yt=`sentry.measurement_value`,Xt=`sentry.custom_span_name`,Zt=`sentry.profile_id`,Qt=`sentry.exclusive_time`,$t=`gen_ai.conversation.id`;function en(e){try{let t=u.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function tn(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var nn=`_sentryScope`,rn=`_sentryIsolationScope`;function an(e,t,n){e&&(Ue(e,rn,en(n)),Ue(e,nn,t))}function on(e){let t=e;return{scope:t[nn],isolationScope:tn(t[rn])}}function sn(e){let t=cn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function cn(e){if(!(!e||!we(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=ln(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ln(e)}function ln(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var un=/^o(\d+)\./,dn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function fn(e){return e===`http`||e===`https`}function pn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function mn(e){let t=dn.exec(e);if(!t){v(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return hn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function hn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function cee(e){if(!l)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(D.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?fn(r)?t&&isNaN(parseInt(t,10))?(D.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(D.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(D.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function lee(e){return e.match(un)?.[1]}function uee(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=lee(n)),r}function gn(e){let t=typeof e==`string`?mn(e):hn(e);if(!(!t||!cee(t)))return t}function _n(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var vn=!1;function yn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=Tn(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function bn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Tn(e).parent_span_id,a=on(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||St():t,trace_id:n}}function xn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Sn(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function Cn(e){return typeof e==`number`?wn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wn(e.getTime()):gt()}function wn(e){return e>9999999999?e/1e3:e}function Tn(e){if(On(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Dn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:En(e),start_timestamp:Cn(i),timestamp:Cn(o)||void 0,status:An(s),op:r[qt],origin:r[Jt],links:xn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function En(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Dn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function On(e){return typeof e.getSpanJSON==`function`}function kn(e){let{traceFlags:t}=e.spanContext();return t===1}function An(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function jn(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var Mn=`_sentryChildSpans`,Nn=`_sentryRootSpan`;function Pn(e,t){Ue(t,Nn,e[Nn]||e),e[Mn]?e[Mn].add(t):Ue(e,Mn,new Set([t]))}function Fn(e){let t=new Set;function n(e){if(!t.has(e)&&kn(e)){t.add(e);let r=e[Mn]?Array.from(e[Mn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var In=Ln;function Ln(e){return e[Nn]||e}function Rn(){vn||=(v(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function zn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||Ut()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Bn(e){D.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Vn(e,t){if(!t?.length)return!1;for(let n of t){if(Wn(n)){if(e.description&&tt(e.description,n))return l&&Bn(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&tt(e.description,n.name):!0,i=n.op?e.op&&tt(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>Hn(e.attributes?.[t],n)):!0;if(r&&i&&a)return l&&Bn(e),!0}return!1}function Hn(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?tt(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Un(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Wn(e){return typeof e==`string`||e instanceof RegExp}var Gn=`production`,Kn=`_frozenDsc`;function qn(e,t){Ue(e,Kn,t)}function Jn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:uee(t)};return t.emit(`createDsc`,i),i}function Yn(e,t){let n=t.getPropagationContext();return n.dsc||Jn(n.traceId,e)}function Xn(e){let t=Ut();if(!t)return{};let n=In(e),r=Tn(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Kn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&sn(l);if(u)return s(u);let d=Jn(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),zn()&&(d.sampled=String(kn(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??on(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var Zn=class{constructor(e={}){this._traceId=e.traceId||xt(),this._spanId=e.spanId||St(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function Qn(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}var $n=Symbol.for(`sentry.skipNormalization`),er=Symbol.for(`sentry.overrideNormalizationDepth`);function tr(e){return!!e[$n]}function nr(e){let t=e[er];return typeof t==`number`?t:void 0}function rr(e,t=100,n=1/0){try{return ar(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ir(e,t=3,n=100*1024){let r=rr(e,t);return lr(r)>n?ir(e,t-1,n):r}function ar(e,t,n=1/0,r=1/0,i=ur()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=or(e,t);if(!s.startsWith(`[object `))return s;if(tr(t))return t;let c=nr(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return ar(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ke(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=ar(e,t,l-1,r,i),f++}return o(t),d}function or(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Pe(t))return oe(t);if(Me(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${j(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=sr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function sr(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function cr(e){return~-encodeURI(e).split(/%..|./).length}function lr(e){return cr(JSON.stringify(e))}function ur(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function dr(e,t=[]){return[e,t]}function fr(e,t){let[n,r]=e;return[n,[...r,t]]}function pr(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function mr(e,t){return pr(e,(e,n)=>t.includes(n))}function hr(e){let t=p(u);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function gr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[hr(r),e]:r.push(typeof e==`string`?hr(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(rr(n))}i(e)}}return typeof r==`string`?r:_r(r)}function _r(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function vr(e){return[{type:`span`},e]}function yr(e){let t=typeof e.data==`string`?hr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var br={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function xr(e){return e in br}function Sr(e){return xr(e)?br[e]:e}function Cr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function wr(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pn(r)},...i&&{trace:i}}}function Tr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Er(e,t,n,r){let i=Cr(n);return dr({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:pn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Dr(e,t,n,r){let i=Cr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Tr(e,n?.sdk);let o=wr(e,i,r,t);return delete e.sdkProcessingMetadata,dr(o,[[{type:a},e]])}function Or(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Xn(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:pn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=Tn(e);return!Vn({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=Tn(e);return(Qn(s)?t:s(t))||(Rn(),t)}:Tn,f=[];for(let e of l){let t=d(e);t&&f.push(vr(t))}return dr(o,f)}function kr(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Tn(e),{spanId:i}=e.spanContext(),a=kn(e),o=In(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=Tn(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}D.log(`${c}
3
+ ${u.join(`
4
+ `)}`)}function Ar(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Tn(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${In(e)===e?`root `:``}span "${t}" with ID ${r}`;D.log(i)}function jr(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[see],i=n[Yt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Mr(e){return e.getOptions().traceLifecycle===`stream`}var Nr=1e3,Pr=class{constructor(e={}){this._traceId=e.traceId||xt(),this._spanId=e.spanId||St(),this._startTime=e.startTimestamp||gt(),this._links=e.links,this._attributes={},this.setAttributes({[Jt]:`manual`,[qt]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=Cn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Gt,`custom`),this}end(e){this._endTime||(this._endTime=Cn(e),Ar(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[qt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:An(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Jt],profile_id:this._attributes[Zt],exclusive_time:this._attributes[Qt],measurements:jr(this._events),is_segment:this._isStandaloneSpan&&In(this)===this||void 0,segment_id:this._isStandaloneSpan?In(this).spanContext().spanId:void 0,links:xn(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===In(this),status:jn(this._status),attributes:this._attributes,links:Sn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){l&&D.log(`[Tracing] Adding an event to span:`,e);let r=Fr(t)?t:n||gt(),i=Fr(t)?{}:t||{},a={name:e,time:Cn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Ut();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===In(this)))return;if(this._isStandaloneSpan){this._sampled?Rr(Or([this],e)):(l&&D.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}else if(e&&Mr(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&(on(this).scope||zt()).captureEvent(t)}_convertSpanToTransaction(){if(!Ir(Tn(this)))return;this._name||=(l&&D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=on(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=Fn(this).filter(e=>e!==this&&!Lr(e)).map(e=>Tn(e)).filter(Ir),i=this._attributes[Gt];delete this._attributes[Xt],r.forEach(e=>{delete e.data[Xt]});let a={contexts:{trace:yn(this)},spans:r.length>Nr?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Nr):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Xn(this)},request:n,...i&&{transaction_info:{source:i}}},o=jr(this._events);return o&&Object.keys(o).length&&(l&&D.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(o,void 0,2)),a.measurements=o),a}};function Fr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Ir(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Lr(e){return e instanceof Pr&&e.isStandaloneSpan()}function Rr(e){let t=Ut();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function zr(e,t,n){if(!zn(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=_n(i);if(a===void 0)return l&&D.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return l&&D.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||l&&D.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Br=`__SENTRY_SUPPRESS_TRACING__`;function Vr(e){let t=Gr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Wr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Ht(e.scope,t):i===void 0?e=>e():e=>Hr(i,e))(()=>{let t=zt(),a=Jr(t,i),o=Ut();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new Zn):Ur({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Hr(e,t){let n=Gr();return n.withActiveSpan?n.withActiveSpan(e,t):Ht(n=>(wt(n,e||void 0),t(n)))}function Ur({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!zn()){let r=new Zn;return(n||!e)&&qn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...Xn(r)}),r}let i=Ut();if(Yr(i,t))return Xr(r)||i?.recordDroppedEvent(`ignored`,`span`),new Zn({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});let a=Bt(),o;if(e&&!n)o=qr(e,r,t),Pn(e,o);else if(e){let n=Xn(e),{traceId:i,spanId:a}=e.spanContext(),s=kn(e);o=Kr({traceId:i,parentSpanId:a,...t},r,s),qn(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=Kr({traceId:e,parentSpanId:i,...t},r,s),n&&qn(o,n)}return kr(o),an(o,r,a),o}function Wr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Cn(e.startTime),delete n.startTime,n}return t}function Gr(){return Rt(f())}function Kr(e,t,n){let r=Ut(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),d=Xr(t),[f,p,m]=d?[!1]:zr(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:_n(u.dsc?.sample_rate)},u.sampleRand),h=new Pr({...e,attributes:{[Gt]:`custom`,[Kt]:p!==void 0&&m?p:void 0,...c},sampled:f});return!f&&r&&!d&&(l&&D.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,Mr(r)?`span`:`transaction`)),r&&r.emit(`spanStart`,h),h}function qr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=Xr(t),o=a?!1:kn(e),s=o?new Pr({...n,parentSpanId:r,traceId:i,sampled:o}):new Zn({traceId:i});Pn(e,s);let c=Ut();return c?(Mr(c)&&s instanceof Zn&&(e instanceof Zn&&e.dropReason?(s.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,`span`)):a||(s.dropReason=`sample_rate`,c.recordDroppedEvent(`sample_rate`,`span`))),c.emit(`spanStart`,s),n.endTimestamp&&(c.emit(`spanEnd`,s),c.emit(`afterSpanEnd`,s)),s):s}function Jr(e,t){if(t)return t;if(t===null)return;let n=Tt(e);if(!n)return;let r=Ut();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?In(n):n}function Yr(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Mr(e)||!n?.length?!1:Vn({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Xr(e){return e.getScopeData().sdkProcessingMetadata[Br]===!0}function Zr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;dee(e,t),r&&mee(e,r),hee(e,n),fee(e,i),pee(e,a)}function Qr(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;$r(e,`extra`,n),$r(e,`tags`,r),$r(e,`attributes`,i),$r(e,`user`,a),$r(e,`contexts`,o),e.sdkProcessingMetadata=bt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function $r(e,t,n){e[t]=bt(e[t],n,1)}function ei(e,t){let n=Vt().getScopeData();return e&&Qr(n,e.getScopeData()),t&&Qr(n,t.getScopeData()),n}function dee(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function fee(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function pee(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function mee(e,t){e.contexts={trace:bn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Xn(t),...e.sdkProcessingMetadata};let n=Tn(In(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function hee(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function ti(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function gee(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function ni(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var ri=0,ii=1,ai=2;function oi(e){return new ci(t=>{t(e)})}function si(e){return new ci((t,n)=>{n(e)})}var ci=class e{constructor(e){this._state=ri,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===ri)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===ii&&e[1](this._value),this._state===ai&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===ri){if(je(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(ii,e)},r=e=>{t(ai,e)};try{e(n,r)}catch(e){r(e)}}};function _ee(e,t,n,r=0){try{let i=li(t,n,e,r);return je(i)?i:oi(i)}catch(e){return si(e)}}function li(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return l&&a===null&&D.log(`Event processor "${i.id||`?`}" dropped event`),je(a)?a.then(e=>li(e,t,n,r+1)):li(a,t,n,r+1)}var ui,di,fi,pi;function vee(e){let t=u._sentryDebugIds,n=u._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(pi&&r.length===di&&i.length===fi)return pi;di=r.length,fi=i.length,pi={},ui||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=ui?.[r];if(i&&pi&&t)pi[i[0]]=t,ui&&(ui[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&pi&&ui){pi[i]=t,ui[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),pi}function yee(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ot(),timestamp:t.timestamp||mt()},l=n.integrations||e.integrations.map(e=>e.name);bee(c,e),Cee(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&xee(c,e.stackParser);let u=Tee(r,n.captureContext);n.mechanism&&ut(c,n.mechanism);let d=i?i.getEventProcessors():[],f=ei(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Zr(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?oi(c):_ee(m,c,n)).then(e=>(e&&See(e),typeof o==`number`&&o>0?wee(e,o,s):e))}function bee(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=$e(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=$e(e.value,a)})}function xee(e,t){let n=vee(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function See(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Cee(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function wee(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:rr(e.data,t,n)}}))},...e.user&&{user:rr(e.user,t,n)},...e.contexts&&{contexts:rr(e.contexts,t,n)},...e.extra&&{extra:rr(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=rr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:rr(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=rr(e.contexts.flags,3,n)),r}function Tee(e,t){if(!t)return e;let n=e?e.clone():new Dt;return n.update(t),n}function Eee(e){if(e)return Dee(e)||kee(e)?{captureContext:e}:e}function Dee(e){return e instanceof Dt||typeof e==`function`}var Oee=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function kee(e){return Object.keys(e).some(e=>Oee.includes(e))}function mi(e,t){return zt().captureException(e,Eee(t))}function Aee(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return zt().captureMessage(e,n,r)}function hi(e,t){return zt().captureEvent(e,t)}function jee(e,t){Bt().setContext(e,t)}function Mee(e){Bt().setUser(e)}function Nee(){return Bt().lastEventId()}function gi(e){let t=Bt(),{user:n}=ei(t,zt()),{userAgent:r}=u.navigator||{},i=nee({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&_t(a,{status:`exited`}),_i(),t.setSession(i),i}function _i(){let e=Bt(),t=zt().getSession()||e.getSession();t&&vt(t),vi(),e.setSession()}function vi(){let e=Bt(),t=Ut(),n=e.getSession();n&&t&&t.captureSession(n)}function yi(e=!1){if(e){_i();return}vi()}function bi(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Pee(e){return`${bi(e)}${e.projectId}/envelope/`}function Fee(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Iee(e,t,n){return t||`${Pee(e)}?${Fee(e,n)}`}function Lee(e,t){let n=gn(e);if(!n)return``;let r=`${bi(n)}embed/error-page/`,i=`dsn=${pn(n)}`;for(let e in t)if(e!==`dsn`&&e!==`onClose`)if(e===`user`){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}var xi=[];function Ree(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function zee(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Ree(r)}function Bee(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ci(e,t,n)}),n}function Si(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ci(e,t,n){if(n[t.name]){l&&D.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!xi.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),xi.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),l&&D.log(`Integration installed: ${t.name}`)}function wi(e){return e}function Ti(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Vee(){return`npm`}function Hee(){return!Ti()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Ei(){return typeof window<`u`&&(!Hee()||Di())}function Di(){return u.process?.type===`renderer`}function Oi(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Ei()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function ki(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=pn(r)),dr(a,[Oi(e,i)])}function Ai(e,t){let n=t??ji(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ki(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Mi().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function ji(e){return Mi().get(e)}function Mi(){return m(`clientToLogBufferMap`,()=>new WeakMap)}function Uee(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Ei()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ni(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=pn(r)),dr(a,[Uee(e,i)])}function Pi(e,t){let n=t??Fi(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ni(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Ii().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Fi(e){return Ii().get(e)}function Ii(){return m(`clientToMetricBufferMap`,()=>new WeakMap)}function Li(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Ri=Symbol.for(`SentryBufferFullError`);function zi(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return si(Ri);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return oi(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Li(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Bi=60*1e3;function Vi(e,t=Qe()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Bi:r-t}function Hi(e,t){return e[t]||e.all||0}function Ui(e,t,n=Qe()){return Hi(e,t)>n}function Wi(e,{statusCode:t,headers:n},r=Qe()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Vi(o,r):t===429&&(i.all=r+60*1e3);return i}function Gi(e,t,n=zi(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(pr(i,(t,n)=>{let i=Sr(n);Ui(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=dr(i[0],a),s=t=>{if(mr(o,[`client_report`])){l&&D.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}pr(o,(n,r)=>{e.recordDroppedEvent(t,Sr(r))})};return n.add(()=>t({body:gr(o)}).then(e=>e.statusCode===413?(l&&D.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(l&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&D.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Wi(r,e),e),e=>{throw s(`network_error`),l&&D.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Ri)return l&&D.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Ki(e,t,n){let r=[{type:`client_report`},{timestamp:n||mt(),discarded_events:e}];return dr(t?{dsn:t}:{},[r])}function qi(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Ji(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Zt],exclusive_time:o?.[Qt],measurements:e.measurements,is_segment:!0}}function Yi(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Xi=`Not capturing exception because it's already been captured.`,Zi=`Discarded session because of missing or non-string release`,Qi=Symbol.for(`SentryInternalError`),$i=Symbol.for(`SentryDoNotSendEventError`),Wee=5e3;function ea(e){return{message:e,[Qi]:!0}}function ta(e){return{message:e,[$i]:!0}}function na(e){return!!e&&typeof e==`object`&&Qi in e}function ra(e){return!!e&&typeof e==`object`&&$i in e}function ia(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Li(setTimeout(()=>{i(e)},Wee)))}),e.on(`flush`,()=>{i(e)})}var Gee=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=zi(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=gn(e.dsn):l&&D.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Iee(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&ia(this,`afterCaptureLog`,`flushLogs`,da,Ai),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ia(this,`afterCaptureMetric`,`flushMetrics`,ua,Pi)}captureException(e,t,n){let r=ot();if(dt(e))return l&&D.log(Xi),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:ot(),...n},a=Te(e)?e:String(e),o=Ee(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=ot();if(t?.originalException&&dt(t.originalException))return l&&D.log(Xi),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=aa(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),_t(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Ai(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ci(this,e,this._integrations),t||Si(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Dr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=fr(n,yr(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Gn}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){l&&D.warn(Zi);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){l&&D.warn(Zi);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Er(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;l&&D.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return l&&D.error(`Error while sending envelope:`,e),{}}return l&&D.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Bee(this,e),Si(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(_t(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),yee(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Wt(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Yn(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=zt(),r=Bt()){return l&&ca(e)&&D.log(`Captured error event \`${qi(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{l&&(ra(e)?D.log(e.message):na(e)?D.warn(e.message):D.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=la(e),s=ca(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:_n(a);if(s&&typeof l==`number`&&Ze()>l)return this.recordDroppedEvent(`sample_rate`,`error`),si(ta(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=aa(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),ta("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:oa(sa(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw ta(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw ra(e)||na(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),ea(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Ri&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){l&&D.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){l&&D.log(`No outcomes to send`);return}if(!this._dsn){l&&D.log(`No dsn provided, will not send outcomes`);return}l&&D.log(`Sending outcomes:`,e);let t=Ki(e,this._options.tunnel&&pn(this._dsn));this.sendEnvelope(t)}};function aa(e){return e===`replay_event`?`replay`:e||`error`}function oa(e,t){let n=`${t} must return \`null\` or a valid event.`;if(je(e))return e.then(e=>{if(!De(e)&&e!==null)throw ea(n);return e},e=>{throw ea(`${t} rejected with ${e}`)});if(!De(e)&&e!==null)throw ea(n);return e}function sa(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Qn(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(ca(c)&&i)return i(c,r);if(la(c)){if(s||o){let t=Ji(c);if(o?.length&&Vn({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=bt(n,Yi(e)):Rn()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&Vn({description:e.description,op:e.op,attributes:e.data},o)){Un(n,e);continue}if(s){let n=s(e);n?t.push(n):(Rn(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function ca(e){return e.type===void 0}function la(e){return e.type===`transaction`}function ua(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+fa(e.attributes)}function da(e){let t=0;return e.message&&(t+=e.message.length*2),t+fa(e.attributes)}function fa(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*pa(e[0]):Ee(e)?t+=pa(e):t+=100}),t}function pa(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ma(e,t){return e(t.stack||``,1)}function ha(e){return ye(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function ga(e){return ha(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function _a(e,t){let n={type:t.name||t.constructor.name,value:ga(t)},r=ma(e,t);return r.length&&(n.stacktrace={frames:r}),n}function va(e,t){t.debug===!0&&(l?D.enable():v(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),zt().update(t.initialScope);let n=new e(t);return ya(n),n.init(),n}function ya(e){zt().setClient(e)}function ba(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function xa(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:d})),i.version=d)}var Sa=100;function Ca(e,t){let n=Ut(),r=Bt();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Sa}=n.getOptions();if(a<=0)return;let o={timestamp:mt(),...e},s=i?v(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var wa,Kee=`FunctionToString`,Ta=new WeakMap,Ea=wi((()=>({name:Kee,setupOnce(){wa=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ge(this),n=Ta.has(Ut())&&t!==void 0?t:this;return wa.apply(n,e)}}catch{}},setup(e){Ta.set(e,!0)}}))),qee=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Jee=`EventFilters`,Da=wi((e={})=>{let t;return{name:Jee,setup(n){t=Oa(e,n.getOptions())},processEvent(n,r,i){return t||=Oa(e,i.getOptions()),Xee(n,t)?null:n}}}),Yee=wi(((e={})=>({...Da(e),name:`InboundFilters`})));function Oa(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:qee],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Xee(e,t){if(!e.type){if(Zee(e,t.ignoreErrors))return l&&D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ct(e)}`),!0;if(Aa(e))return l&&D.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ct(e)}`),!0;if($ee(e,t.denyUrls))return l&&D.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ct(e)}.\nUrl: ${ka(e)}`),!0;if(!ete(e,t.allowUrls))return l&&D.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ct(e)}.\nUrl: ${ka(e)}`),!0}else if(e.type===`transaction`&&Qee(e,t.ignoreTransactions))return l&&D.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ct(e)}`),!0;return!1}function Zee(e,t){return t?.length?qi(e).some(e=>nt(e,t)):!1}function Qee(e,t){if(!t?.length)return!1;let n=e.transaction;return n?nt(n,t):!1}function $ee(e,t){if(!t?.length)return!1;let n=ka(e);return n?nt(n,t):!1}function ete(e,t){if(!t?.length)return!0;let n=ka(e);return n?nt(n,t):!0}function tte(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function ka(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?tte(t):null}catch{return l&&D.error(`Cannot extract url for event ${ct(e)}`),null}}function Aa(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function ja(e,t,n,r,i,a){if(!i.exception?.values||!a||!Ne(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ma(e,t,r,a.originalException,n,i.exception.values,o,0))}function Ma(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Ne(r[i],Error)){Pa(o,s,r);let a=e(t,r[i]),l=c.length;Fa(a,i,l,s),c=Ma(e,t,n,r[i],i,[a,...c],a,l)}return Na(r)&&r.errors.forEach((a,l)=>{if(Ne(a,Error)){Pa(o,s,r);let u=e(t,a),d=c.length;Fa(u,`errors[${l}]`,d,s),c=Ma(e,t,n,a,i,[u,...c],u,d)}}),c}function Na(e){return Array.isArray(e.errors)}function Pa(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Na(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Fa(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Ia=`cause`,La=5,Ra=`LinkedErrors`,za=wi(((e={})=>{let t=e.limit||La,n=e.key||Ia;return{name:Ra,preprocessEvent(e,r,i){ja(_a,i.getOptions().stackParser,n,t,e,r)}}}));function Ba(e){let t=`console`,n=le(t,e);return ue(t,Va),n}function Va(){`console`in u&&h.forEach(function(e){e in u.console&&He(u.console,e,function(t){return _[e]=t,function(...t){de(`console`,{args:t,level:e}),_[e]?.apply(u.console,t)}})})}function Ha(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Ua=`Dedupe`,Wa=wi((()=>{let e;return{name:Ua,processEvent(t){if(t.type)return t;try{if(Ga(t,e))return l&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Ga(e,t){return t?!!(Ka(e,t)||qa(e,t)):!1}function Ka(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ya(e,t)||!Ja(e,t))}function qa(e,t){let n=Xa(t),r=Xa(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ya(e,t)||!Ja(e,t))}function Ja(e,t){let n=ae(e),r=ae(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Ya(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Xa(e){return e.exception?.values?.[0]}function Za(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var Qa=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function $a(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Qa.exec(t);return n?n.slice(1):[]}function eo(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=Za(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function to(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function no(e,t){e=eo(e).slice(1),t=eo(t).slice(1);let n=to(e.split(`/`)),r=to(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function ro(e,t){let n=$a(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var io=`RewriteFrames`,ao=wi((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in u&&!!u.window,i=e.iteratee||oo({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:io,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function oo({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?no(t,e):ro(e)}`}return r}}var so=`ConversationId`,co=wi((()=>({name:so,setup(e){e.on(`spanStart`,e=>{let t=zt().getScopeData(),n=Bt().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Tn(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute($t,r)}})}})));function lo(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var uo=u;function fo(){return`history`in uo&&!!uo.history}function po(){if(!(`fetch`in uo))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function mo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ho(){if(typeof EdgeRuntime==`string`)return!0;if(!po())return!1;if(mo(uo.fetch))return!0;let e=!1,t=uo.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=mo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){l&&D.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function go(e,t){let n=`fetch`,r=le(n,e);return ue(n,()=>_o(void 0,t)),r}function _o(e,t=!1){t&&!ho()||He(u,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=bo(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:gt()*1e3,virtualError:r,headers:xo(n)};return e||de(`fetch`,{...o}),t.apply(u,n).then(async t=>(e?e(t):de(`fetch`,{...o,endTimestamp:gt()*1e3,response:t}),t),e=>{de(`fetch`,{...o,endTimestamp:gt()*1e3,error:e}),ye(e)&&e.stack===void 0&&(e.stack=r.stack,Ue(e,`framesToPop`,1));let t=Ut()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Ue(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function vo(e,t){return!!e&&typeof e==`object`&&!!e[t]}function yo(e){return typeof e==`string`?e:e?vo(e,`url`)?e.url:e.toString?e.toString():``:``}function bo(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:yo(t),method:vo(n,`method`)?String(n.method).toUpperCase():Fe(t)&&vo(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:yo(t),method:vo(t,`method`)?String(t.method).toUpperCase():`GET`}}function xo(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Fe(t))return new Headers(t.headers)}catch{}}var So=u,Co=0;function wo(){return Co>0}function To(){Co++,setTimeout(()=>{Co--})}function Eo(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Ge(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Eo(e,t));return e.apply(this,r)}catch(e){throw To(),Ht(r=>{r.addEventProcessor(e=>(t.mechanism&&(lt(e,void 0,void 0),ut(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),mi(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}We(r,e),Ue(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,`name`,{get(){return e.name}})}catch{}return r}function Do(){let e=Be(),{referrer:t}=So.document||{},{userAgent:n}=So.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Oo(e,t){let n=jo(e,t),r={type:Io(t),value:Lo(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function ko(e,t,n,r){let i=Ut()?.getOptions().normalizeDepth,a=Wo(t),o={__serialized__:ir(t,i)};if(a)return{exception:{values:[Oo(e,a)]},extra:o};let s={exception:{values:[{type:Oe(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Ho(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=jo(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Ao(e,t){return{exception:{values:[Oo(e,t)]}}}function jo(e,t){let n=t.stacktrace||t.stack||``,r=No(t),i=Po(t);try{return e(n,r,i)}catch{}return[]}var Mo=/Minified React error #\d+;/i;function No(e){return e&&Mo.test(e.message)?1:0}function Po(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Fo(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Io(e){let t=e?.name;return!t&&Fo(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Lo(e){let t=e?.message;return Fo(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?ga(t.error):ga(e):`No error message`}function Ro(e,t,n,r){let i=Bo(e,t,n?.syntheticException||void 0,r);return ut(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),oi(i)}function zo(e,t,n=`info`,r,i){let a=Vo(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),oi(a)}function Bo(e,t,n,r,i){let a;if(xe(t)&&t.error)return Ao(e,t.error);if(Se(t)||Ce(t)){let i=t;if(`stack`in t)a=Ao(e,t);else{let t=i.name||(Se(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Vo(e,o,n,r),lt(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return ye(t)?Ao(e,t):De(t)||Oe(t)?(a=ko(e,t,n,i),ut(a,{synthetic:!0}),a):(a=Vo(e,t,n,r),lt(a,`${t}`,void 0),ut(a,{synthetic:!0}),a)}function Vo(e,t,n,r){let i={};if(r&&n){let r=jo(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),ut(i,{synthetic:!0})}if(Te(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Ho(e,{isUnhandledRejection:t}){let n=eee(e),r=t?`promise rejection`:`exception`;return xe(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Oe(e)?`Event \`${Uo(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Uo(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Wo(e){return Object.values(e).find(e=>e instanceof Error)}var Go=class extends Gee{constructor(e){let t=Ko(e);xa(t,`browser`,[`browser`],So.SENTRY_SDK_SOURCE||Vee()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;So.document&&(r||i||s)&&So.document.addEventListener(`visibilitychange`,()=>{So.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Ai(this),s&&Pi(this))}),n&&this.on(`beforeSendSession`,ba)}eventFromException(e,t){return Ro(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return zo(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Ko(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:So.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var qo=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Jo=u,Yo=1e3,Xo,Zo,Qo;function $o(e){le(`dom`,e),ue(`dom`,es)}function es(){if(!Jo.document)return;let e=de.bind(null,`dom`),t=rs(e,!0);Jo.document.addEventListener(`click`,t,!1),Jo.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Jo[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=rs(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),He(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function ts(e){if(e.type!==Zo)return!1;try{if(!e.target||e.target._sentryId!==Qo)return!1}catch{}return!0}function ns(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function rs(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=is(n);if(ns(n.type,r))return;Ue(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ue(r,`_sentryId`,ot());let i=n.type===`keypress`?`input`:n.type;ts(n)||(e({event:n,name:i,global:t}),Zo=n.type,Qo=r?r._sentryId:void 0),clearTimeout(Xo),Xo=Jo.setTimeout(()=>{Qo=void 0,Zo=void 0},Yo)}}function is(e){try{return e.target}catch{return null}}var as;function os(e){let t=`history`;le(t,e),ue(t,nte)}function nte(){if(Jo.addEventListener(`popstate`,()=>{let e=Jo.location.href,t=as;as=e,t!==e&&de(`history`,{from:t,to:e})}),!fo())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=as,i=rte(String(n));if(as=i,r===i)return e.apply(this,t);de(`history`,{from:r,to:i})}return e.apply(this,t)}}He(Jo.history,`pushState`,e),He(Jo.history,`replaceState`,e)}function rte(e){try{return new URL(e,Jo.location.origin).toString()}catch{return e}}var ss={};function ite(e){let t=ss[e];if(t)return t;let n=Jo[e];if(mo(n))return ss[e]=n.bind(Jo);let r=Jo.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){qo&&D.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(ss[e]=n.bind(Jo))}function ate(e){ss[e]=void 0}var cs=`__sentry_xhr_v3__`;function ote(e){le(`xhr`,e),ue(`xhr`,ste)}function ste(){if(!Jo.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=gt()*1e3,a=we(n[0])?n[0].toUpperCase():void 0,o=cte(n[1]);if(!a||!o)return e.apply(t,n);t[cs]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[cs];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}de(`xhr`,{endTimestamp:gt()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[cs];return a&&we(r)&&we(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[cs];return r?(n[0]!==void 0&&(r.body=n[0]),de(`xhr`,{startTimestamp:gt()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function cte(e){if(we(e))return e;try{return e.toString()}catch{}}var lte=40;function ute(e,t=ite(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw ate(`fetch`),e}finally{n-=a,r--}}return Gi(e,i,zi(e.bufferSize||lte))}var ls=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,dte=30,fte=50;function us(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var pte=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mte=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hte=/\((\S*)(?::(\d+))(?::(\d+))\)/,gte=/at (.+?) ?\(data:(.+?),/,_te=[dte,e=>{let t=e.match(gte);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=pte.exec(e);if(n){let[,e,t,r]=n;return us(e,`?`,+t,+r)}let r=mte.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=hte.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ds(r[1]||`?`,r[2]);return us(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],vte=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yte=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bte=ne(_te,[fte,e=>{let t=vte.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=yte.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=ds(n,e),us(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),ds=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fs=1024,xte=`Breadcrumbs`,ps=wi(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:xte,setup(e){t.console&&Ba(wte(e)),t.dom&&$o(Cte(e,t.dom)),t.xhr&&ote(Tte(e)),t.fetch&&go(Ete(e)),t.history&&os(Dte(e)),t.sentry&&e.on(`beforeSendEvent`,Ste(e))}}}));function Ste(e){return function(t){Ut()===e&&Ca({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ct(t)},{event:t})}}function Cte(e,t){return function(n){if(Ut()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>fs&&(ls&&D.warn(`\`dom.maxStringLength\` cannot exceed ${fs}, but a value of ${o} was configured. Sentry will use ${fs} instead.`),o=fs),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Ote(e)?e.target:e;r=Re(t,{keyAttrs:a,maxStringLength:o}),i=Ve(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Ca(s,{event:n.event,name:n.name,global:n.global})}}function wte(e){return function(t){if(Ut()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Ha(t.level),message:et(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${et(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Ca(n,{input:t.args,level:t.level})}}function Tte(e){return function(t){if(Ut()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[cs];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:lo(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Ca(d,u)}}function Ete(e){return function(t){if(Ut()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Ca(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:lo(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Ca(s,o)}}}function Dte(e){return function(t){if(Ut()!==e)return;let n=t.from,r=t.to,i=ti(So.location.href),a=n?ti(n):void 0,o=ti(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Ca({category:`navigation`,data:{from:n,to:r}})}}function Ote(e){return!!e&&!!e.target}var kte=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),Ate=`BrowserApiErrors`,ms=wi(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Ate,setupOnce(){t.setTimeout&&He(So,`setTimeout`,hs),t.setInterval&&He(So,`setInterval`,hs),t.requestAnimationFrame&&He(So,`requestAnimationFrame`,jte),t.XMLHttpRequest&&`XMLHttpRequest`in So&&He(XMLHttpRequest.prototype,`send`,Mte);let e=t.eventTarget;e&&(Array.isArray(e)?e:kte).forEach(e=>Nte(e,t))}}}));function hs(e){return function(...t){let n=t[0];return t[0]=Eo(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${j(e)}`}}),e.apply(this,t)}}function jte(e){return function(t){return e.apply(this,[Eo(t,{mechanism:{data:{handler:j(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Mte(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&He(n,e,function(t){let n={mechanism:{data:{handler:j(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ge(t);return r&&(n.mechanism.data.handler=j(r)),Eo(t,n)})}),e.apply(this,t)}}function Nte(e,t){let n=So[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(n){return function(r,i,a){try{Pte(i)&&(i.handleEvent=Eo(i.handleEvent,{mechanism:{data:{handler:j(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Fte(this,r,i),n.apply(this,[r,Eo(i,{mechanism:{data:{handler:j(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),He(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Pte(e){return typeof e.handleEvent==`function`}function Fte(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var gs=wi((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(So.document===void 0){ls&&D.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}gi({ignoreDuration:!0}),yi();let e=Bt(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(yi(),n=t)}),t===`route`&&os(({from:e,to:t})=>{e!==t&&(gi({ignoreDuration:!0}),yi())})}}}),Ite=`CultureContext`,Lte=wi((()=>({name:Ite,preprocessEvent(e){let t=_s();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=_s();t&&ni(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function _s(){try{let e=So.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Rte=`GlobalHandlers`,vs=wi(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Rte,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(zte(e),ys(`onerror`)),t.onunhandledrejection&&(Bte(e),ys(`onunhandledrejection`))}}}));function zte(e){pe(t=>{let{stackParser:n,attachStacktrace:r}=bs();if(Ut()!==e||wo())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Ute(Bo(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,hi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Bte(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=bs();if(Ut()!==e||wo())return;let i=Vte(t),a=Ee(i)?Hte(i):Bo(n,i,void 0,r,!0);a.level=`error`,hi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Vte(e){if(Ee(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Hte(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ute(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:xs(t)??Be(),function:`?`,in_app:!0}),e}function ys(e){ls&&D.log(`Global Handler attached: ${e}`)}function bs(){return Ut()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function xs(e){if(!(!we(e)||e.length===0))return e.startsWith(`data:`)?`<${gee(e,!1)}>`:e}var Ss=wi(()=>({name:`HttpContext`,preprocessEvent(e){if(!So.navigator&&!So.location&&!So.document)return;let t=Do(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!So.navigator&&!So.location&&!So.document)return;let t=Do();ni(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Cs=`cause`,ws=5,Ts=`LinkedErrors`,Es=wi(((e={})=>{let t=e.limit||ws,n=e.key||Cs;return{name:Ts,preprocessEvent(e,r,i){ja(Oo,i.getOptions().stackParser,n,t,e,r)}}}));function Ds(){return Os()?(ls&&v(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Os(){if(So.window===void 0)return!1;let e=So;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Be();return!(So===So.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function ks(e){return[Yee(),Ea(),co(),ms(),ps(),vs(),Es(),Wa(),Ss(),Lte(),gs()]}function As(e={}){let t=!e.skipBrowserExtensionCheck&&Ds(),n=e.defaultIntegrations==null?ks():e.defaultIntegrations;return va(Go,{...e,enabled:t?!1:e.enabled,stackParser:k(e.stackParser||bte),integrations:zee({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ute})}function js(e={}){let t=So.document,n=t?.head||t?.body;if(!n){ls&&D.error(`[showReportDialog] Global document not defined`);return}let r=zt(),i=Ut()?.getDsn();if(!i){ls&&D.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Nee()},o=So.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=Lee(i,a);let{onLoad:s,onClose:c}=a;if(s&&(o.onload=s),c){let e=t=>{if(t.data===`__sentry_reportdialog_closed__`)try{c()}finally{So.removeEventListener(`message`,e)}};So.addEventListener(`message`,e)}n.appendChild(o)}var M=n(c());function Ms(e){let t={...e};return xa(t,`react`),jee(`react`,{version:M.version}),As(t)}function Ns(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Ps(e,t){let n=new WeakSet;function r(e,t){if(!n.has(e)){if(e.cause)return n.add(e),r(e.cause,t);e.cause=t}}r(e,t)}function Fs(e,{componentStack:t},n){if(Ns(M.version)&&ye(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,Ps(e,n)}return Ht(r=>(r.setContext(`react`,{componentStack:t}),mi(e,n)))}var Is=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Ls={componentStack:null,error:null,eventId:null},Rs=class extends M.Component{constructor(e){super(e),this.state=Ls,this._openFallbackReportDialog=!0;let t=Ut();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on(`afterSendEvent`,t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&js({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:i,showDialog:a,dialogOptions:o}=this.props;Ht(s=>{r&&r(s,e,n);let c=Fs(e,t,{mechanism:{handled:this.props.handled==null?!!this.props.fallback:this.props.handled,type:`auto.function.react.error_boundary`}});i&&i(e,n,c),a&&(this._lastEventId=c,this._openFallbackReportDialog&&js({...o,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===Ls?r(null,null,null):r(e,t,n)),this._cleanupHook&&=(this._cleanupHook(),void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(Ls)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.componentStack===null)return typeof t==`function`?t():t;let r=typeof e==`function`?M.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return M.isValidElement(r)?r:(e&&Is&&D.warn(`fallback did not produce a valid ReactElement`),null)}},zs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Bs={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Vs=new class{#e=Bs;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Hs(e){setTimeout(e,0)}var Us=typeof window>`u`||`Deno`in globalThis;function Ws(){}function Gs(e,t){return typeof e==`function`?e(t):e}function Ks(e){return typeof e==`number`&&e>=0&&e!==1/0}function qs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Js(e,t){return typeof e==`function`?e(t):e}function Ys(e,t){return typeof e==`function`?e(t):e}function Xs(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Qs(o,t.options))return!1}else if(!ec(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Zs(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if($s(t.options.mutationKey)!==$s(a))return!1}else if(!ec(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Qs(e,t){return(t?.queryKeyHashFn||$s)(e)}function $s(e){return JSON.stringify(e,(e,t)=>ac(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ec(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ec(e[n],t[n])):!1}var tc=Object.prototype.hasOwnProperty;function nc(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ic(e)&&ic(t);if(!r&&!(ac(e)&&ac(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:tc.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=nc(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function rc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ic(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ac(e){if(!oc(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!oc(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function oc(e){return Object.prototype.toString.call(e)===`[object Object]`}function sc(e){return new Promise(t=>{Vs.setTimeout(t,e)})}function cc(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:nc(e,t)}function lc(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function uc(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dc=Symbol();function fc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===dc?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function pc(e,t){return typeof e==`function`?e(...t):!!e}function mc(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var hc=new class extends zs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Us&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function gc(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var _c=Hs;function vc(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=_c,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var yc=vc(),bc=new class extends zs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Us&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function xc(e){return Math.min(1e3*2**e,3e4)}function Sc(e){return(e??`online`)===`online`?bc.isOnline():!0}var Cc=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function wc(e){return e instanceof Cc}function Tc(e){let t=!1,n=0,r,i=gc(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Cc(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>hc.isFocused()&&(e.networkMode===`always`||bc.isOnline())&&e.canRun(),u=()=>Sc(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Us?0:3),o=e.retryDelay??xc,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),sc(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Ec=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ks(this.gcTime)&&(this.#e=Vs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Us?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(Vs.clearTimeout(this.#e),void 0)}},Dc=class extends Ec{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Ac(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ac(this.options);e.data!==void 0&&(this.setState(kc(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=cc(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Ws).catch(Ws):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ys(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Js(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!qs(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=fc(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Tc({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Cc&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Cc){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Oc(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...kc(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),yc.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Oc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sc(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function kc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ac(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var jc=class extends zs{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=gc(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Nc(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Ys(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!rc(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Fc(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Ys(this.options.enabled,this.#t)!==Ys(t.enabled,this.#t)||Js(this.options.staleTime,this.#t)!==Js(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Ys(this.options.enabled,this.#t)!==Ys(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Lc(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ws)),t}#g(){this.#b();let e=Js(this.options.staleTime,this.#t);if(Us||this.#r.isStale||!Ks(e))return;let t=qs(this.#r.dataUpdatedAt,e)+1;this.#d=Vs.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Us||Ys(this.options.enabled,this.#t)===!1||!Ks(this.#p)||this.#p===0)&&(this.#f=Vs.setInterval(()=>{(this.options.refetchIntervalInBackground||hc.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(Vs.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(Vs.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Nc(e,t),o=i&&Fc(e,n,t,r);(a||o)&&(l={...l,...Oc(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=cc(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=cc(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Ic(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Ys(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=gc())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!rc(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){yc.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Mc(e,t){return Ys(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function Nc(e,t){return Mc(e,t)||e.state.data!==void 0&&Pc(e,t,t.refetchOnMount)}function Pc(e,t,n){if(Ys(t.enabled,e)!==!1&&Js(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Ic(e,t)}return!1}function Fc(e,t,n,r){return(e!==t||Ys(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ic(e,n)}function Ic(e,t){return Ys(t.enabled,e)!==!1&&e.isStaleByTime(Js(t.staleTime,e))}function Lc(e,t){return!rc(e.getCurrentResult(),t)}function Rc(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{mc(e,()=>t.signal,()=>n=!0)},u=fc(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?uc:lc;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Bc:zc,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:zc(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function zc(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Bc(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Vc(e,t){return t?zc(e,t)!=null:!1}function Hc(e,t){return!t||!e.getPreviousPageParam?!1:Bc(e,t)!=null}var Uc=class extends jc{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Rc()})}getOptimisticResult(e){return e.behavior=Rc(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Vc(t,n.data),hasPreviousPage:Hc(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},Wc=class extends Ec{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Gc(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Tc({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),yc.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Gc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Kc=class extends zs{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Wc({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=qc(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=qc(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=qc(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=qc(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){yc.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Zs(t,e))}findAll(e={}){return this.getAll().filter(t=>Zs(e,t))}notify(e){yc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return yc.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ws))))}};function qc(e){return e.options.scope?.id}var Jc=class extends zs{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),rc(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&$s(t.mutationKey)!==$s(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Gc();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){yc.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Yc(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function Xc(e,t,n){let r=e.slice(0);return r[t]=n,r}var Zc=class extends zs{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,yc.batch(()=>{let e=this.#i,t=this.#f(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!rc(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Yc(e,n).forEach(e=>{e.destroy()}),Yc(n,e).forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})),this.#m()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#f(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=nc(this.#a,t(e))),this.#a}return e}#f(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new jc(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#p(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=Xc(this.#t,n,t),this.#m())}#m(){if(this.hasListeners()){let e=this.#a,t=this.#u(this.#t,this.#l);e!==this.#d(t,this.#r?.combine)&&yc.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Qc=class extends zs{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Qs(r,t),a=this.get(i);return a||(a=new Dc({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){yc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Xs(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Xs(e,t)):t}notify(e){yc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){yc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$c=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Qc,this.#t=e.mutationCache||new Kc,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=hc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=bc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Js(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Gs(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return yc.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;yc.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return yc.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=yc.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ws).catch(Ws)}invalidateQueries(e,t={}){return yc.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=yc.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ws)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Ws)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Js(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ws).catch(Ws)}fetchInfiniteQuery(e){return e.behavior=Rc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ws).catch(Ws)}ensureInfiniteQueryData(e){return e.behavior=Rc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set($s(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ec(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set($s(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ec(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Qs(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===dc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},N=o(),el=M.createContext(void 0),tl=e=>{let t=M.useContext(el);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},nl=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(el.Provider,{value:e,children:t})),rl=M.createContext(!1),il=()=>M.useContext(rl);rl.Provider;function al(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ol=M.createContext(al()),sl=()=>M.useContext(ol),cl=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?pc(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ll=e=>{M.useEffect(()=>{e.clearReset()},[e])},ul=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||pc(n,[e.error,r])),dl=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},fl=(e,t)=>e.isLoading&&e.isFetching&&!t,pl=(e,t)=>e?.suspense&&t.isPending,ml=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hl({queries:e,...t},n){let r=tl(n),i=il(),a=sl(),o=M.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{dl(e),cl(e,a,r.getQueryCache().get(e.queryHash))}),ll(a);let[s]=M.useState(()=>new Zc(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;M.useSyncExternalStore(M.useCallback(e=>d?s.subscribe(yc.batchCalls(e)):Ws,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),M.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>pl(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&pl(n,e)?ml(n,new jc(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&ul({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}function gl(e,t,n){let r=il(),i=sl(),a=tl(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,dl(o),cl(o,i,s),ll(i);let c=!a.getQueryCache().get(o.queryHash),[l]=M.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(e=>{let t=d?l.subscribe(yc.batchCalls(e)):Ws;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),M.useEffect(()=>{l.setOptions(o)},[o,l]),pl(o,u))throw ml(o,l,i);if(ul({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!Us&&fl(u,r)&&(c?ml(o,l,i):s?.promise)?.catch(Ws).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function _l(e,t){return gl(e,jc,t)}function vl(e){return e}function yl(e){return e}function bl(e,t){let n=tl(t),[r]=M.useState(()=>new Jc(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);let i=M.useSyncExternalStore(M.useCallback(e=>r.subscribe(yc.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((e,t)=>{r.mutate(e,t).catch(Ws)},[r]);if(i.error&&pc(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function xl(e,t){return gl(e,Uc,t)}function Sl(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Cl(...e){return t=>{let n=!1,r=e.map(e=>{let r=Sl(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Sl(e[t],null)}}}}function wl(...e){return M.useCallback(Cl(...e),e)}var Tl=Symbol.for(`react.lazy`),El=M.use;function Dl(e){return typeof e==`object`&&!!e&&`then`in e}function Ol(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Tl&&`_payload`in e&&Dl(e._payload)}function kl(e){let t=jl(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e;Ol(r)&&typeof El==`function`&&(r=El(r._payload));let a=M.Children.toArray(r),o=a.find(Fl);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Al=kl(`Slot`);function jl(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(Ol(n)&&typeof El==`function`&&(n=El(n._payload)),M.isValidElement(n)){let e=Ll(n),i=Il(r,n.props);return n.type!==M.Fragment&&(i.ref=t?Cl(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ml=Symbol(`radix.slottable`);function Nl(e){let t=({children:e})=>(0,N.jsx)(N.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Ml,t}var Pl=Nl(`Slottable`);function Fl(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ml}function Il(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ll(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Rl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function zl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Rl(e))&&(r&&(r+=` `),r+=t);return r}var Bl=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Vl=zl,Hl=(e,t)=>n=>{if(t?.variants==null)return Vl(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Bl(t)||Bl(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Vl(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ul=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Wl=(e,t)=>({classGroupId:e,validator:t}),Gl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Kl=`-`,ql=[],Jl=`arbitrary..`,Yl=e=>{let t=Ql(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Zl(e);let n=e.split(Kl);return Xl(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ul(i,t):t:i||ql}return n[e]||ql}}},Xl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Xl(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Kl):e.slice(t).join(Kl),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Zl=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Jl+r:void 0})(),Ql=e=>{let{theme:t,classGroups:n}=e;return $l(n,t)},$l=(e,t)=>{let n=Gl();for(let r in e){let i=e[r];eu(i,n,r,t)}return n},eu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];tu(i,t,n,r)}},tu=(e,t,n,r)=>{if(typeof e==`string`){nu(e,t,n);return}if(typeof e==`function`){ru(e,t,n,r);return}iu(e,t,n,r)},nu=(e,t,n)=>{let r=e===``?t:au(t,e);r.classGroupId=n},ru=(e,t,n,r)=>{if(ou(e)){eu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Wl(n,e))},iu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];eu(o,au(t,a),n,r)}},au=(e,t)=>{let n=e,r=t.split(Kl),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Gl(),n.nextPart.set(t,i)),n=i}return n},ou=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,su=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},cu=`!`,lu=`:`,uu=[],du=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),fu=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===lu){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(cu)?(c=s.slice(0,-1),l=!0):s.startsWith(cu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return du(t,l,c,u)};if(t){let e=t+lu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):du(uu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},pu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},mu=e=>({cache:su(e.cacheSize),parseClassName:fu(e),sortModifiers:pu(e),postfixLookupClassGroupIds:hu(e),...Yl(e)}),hu=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},gu=/\s+/,_u=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(gu),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+cu:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},vu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=yu(n))&&(i&&(i+=` `),i+=r);return i},yu=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=yu(e[r]))&&(n&&(n+=` `),n+=t);return n},bu=(e,...t)=>{let n,r,i,a,o=o=>(n=mu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=_u(e,n);return i(e,a),a};return a=o,(...e)=>a(vu(...e))},xu=[],Su=e=>{let t=t=>t[e]||xu;return t.isThemeGetter=!0,t},Cu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Eu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Du=/\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$/,Ou=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Au=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ju=e=>Tu.test(e),Mu=e=>!!e&&!Number.isNaN(Number(e)),Nu=e=>!!e&&Number.isInteger(Number(e)),Pu=e=>e.endsWith(`%`)&&Mu(e.slice(0,-1)),Fu=e=>Eu.test(e),Iu=()=>!0,Lu=e=>Du.test(e)&&!Ou.test(e),Ru=()=>!1,zu=e=>ku.test(e),Bu=e=>Au.test(e),Vu=e=>!P(e)&&!F(e),Hu=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Uu=e=>id(e,cd,Ru),P=e=>Cu.test(e),Wu=e=>id(e,ld,Lu),Gu=e=>id(e,ud,Mu),Ku=e=>id(e,fd,Iu),qu=e=>id(e,dd,Ru),Ju=e=>id(e,od,Ru),Yu=e=>id(e,sd,Bu),Xu=e=>id(e,pd,zu),F=e=>wu.test(e),Zu=e=>ad(e,ld),Qu=e=>ad(e,dd),$u=e=>ad(e,od),ed=e=>ad(e,cd),td=e=>ad(e,sd),nd=e=>ad(e,pd,!0),rd=e=>ad(e,fd,!0),id=(e,t,n)=>{let r=Cu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ad=(e,t,n=!1)=>{let r=wu.exec(e);return r?r[1]?t(r[1]):n:!1},od=e=>e===`position`||e===`percentage`,sd=e=>e===`image`||e===`url`,cd=e=>e===`length`||e===`size`||e===`bg-size`,ld=e=>e===`length`,ud=e=>e===`number`,dd=e=>e===`family-name`,fd=e=>e===`number`||e===`weight`,pd=e=>e===`shadow`,md=()=>{let e=Su(`color`),t=Su(`font`),n=Su(`text`),r=Su(`font-weight`),i=Su(`tracking`),a=Su(`leading`),o=Su(`breakpoint`),s=Su(`container`),c=Su(`spacing`),l=Su(`radius`),u=Su(`shadow`),d=Su(`inset-shadow`),f=Su(`text-shadow`),p=Su(`drop-shadow`),m=Su(`blur`),h=Su(`perspective`),g=Su(`aspect`),_=Su(`ease`),v=Su(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),F,P],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[F,P,c],T=()=>[ju,`full`,`auto`,...w()],E=()=>[Nu,`none`,`subgrid`,F,P],D=()=>[`auto`,{span:[`full`,Nu,F,P]},Nu,F,P],O=()=>[Nu,`auto`,F,P],ee=()=>[`auto`,`min`,`max`,`fr`,F,P],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[ju,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[ju,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[ju,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,F,P],ae=()=>[...b(),$u,Ju,{position:[F,P]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,ed,Uu,{size:[F,P]}],ce=()=>[Pu,Zu,Wu],le=()=>[``,`none`,`full`,l,F,P],ue=()=>[``,Mu,Zu,Wu],de=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],pe=()=>[Mu,Pu,$u,Ju],me=()=>[``,`none`,m,F,P],he=()=>[`none`,Mu,F,P],ge=()=>[`none`,Mu,F,P],_e=()=>[Mu,F,P],ve=()=>[ju,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Fu],breakpoint:[Fu],color:[Iu],container:[Fu],"drop-shadow":[Fu],ease:[`in`,`out`,`in-out`],font:[Vu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Fu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Fu],shadow:[Fu],spacing:[`px`,Mu],text:[Fu],"text-shadow":[Fu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ju,P,F,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,F,P]}],"container-named":[Hu],columns:[{columns:[Mu,P,F,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Nu,`auto`,F,P]}],basis:[{basis:[ju,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Mu,ju,`auto`,`initial`,`none`,P]}],grow:[{grow:[``,Mu,F,P]}],shrink:[{shrink:[``,Mu,F,P]}],order:[{order:[Nu,`first`,`last`,`none`,F,P]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,Zu,Wu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,rd,Ku]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Pu,P]}],"font-family":[{font:[Qu,qu,t]}],"font-features":[{"font-features":[P]}],"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:[i,F,P]}],"line-clamp":[{"line-clamp":[Mu,`none`,F,Gu]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,F,P]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,F,P]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...de(),`wavy`]}],"text-decoration-thickness":[{decoration:[Mu,`from-font`,`auto`,F,Wu]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Mu,`auto`,F,P]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Nu,F,P]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,F,P]}],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`,F,P]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Nu,F,P],radial:[``,F,P],conic:[Nu,F,P]},td,Yu]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...de(),`hidden`,`none`]}],"divide-style":[{divide:[...de(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...de(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Mu,F,P]}],"outline-w":[{outline:[``,Mu,Zu,Wu]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,nd,Xu]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,nd,Xu]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ue()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Mu,Wu]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,nd,Xu]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Mu,F,P]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"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":[Mu]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Mu]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,F,P]}],filter:[{filter:[``,`none`,F,P]}],blur:[{blur:me()}],brightness:[{brightness:[Mu,F,P]}],contrast:[{contrast:[Mu,F,P]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,nd,Xu]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,Mu,F,P]}],"hue-rotate":[{"hue-rotate":[Mu,F,P]}],invert:[{invert:[``,Mu,F,P]}],saturate:[{saturate:[Mu,F,P]}],sepia:[{sepia:[``,Mu,F,P]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,F,P]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Mu,F,P]}],"backdrop-contrast":[{"backdrop-contrast":[Mu,F,P]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Mu,F,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mu,F,P]}],"backdrop-invert":[{"backdrop-invert":[``,Mu,F,P]}],"backdrop-opacity":[{"backdrop-opacity":[Mu,F,P]}],"backdrop-saturate":[{"backdrop-saturate":[Mu,F,P]}],"backdrop-sepia":[{"backdrop-sepia":[``,Mu,F,P]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,F,P]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Mu,`initial`,F,P]}],ease:[{ease:[`linear`,`initial`,_,F,P]}],delay:[{delay:[Mu,F,P]}],animate:[{animate:[`none`,v,F,P]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,F,P]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[F,P,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[Nu,F,P]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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`,F,P]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,F,P]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[Mu,Zu,Wu,Gu]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},hd=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(gd(e,`cacheSize`,t),gd(e,`prefix`,n),gd(e,`experimentalParseClassName`,r),_d(e.theme,a.theme),_d(e.classGroups,a.classGroups),_d(e.conflictingClassGroups,a.conflictingClassGroups),_d(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),gd(e,`postfixLookupClassGroups`,a.postfixLookupClassGroups),gd(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),vd(e.theme,i.theme),vd(e.classGroups,i.classGroups),vd(e.conflictingClassGroups,i.conflictingClassGroups),vd(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),yd(e,i,`postfixLookupClassGroups`),yd(e,i,`orderSensitiveModifiers`),e),gd=(e,t,n)=>{n!==void 0&&(e[t]=n)},_d=(e,t)=>{if(t)for(let n in t)gd(e,n,t[n])},vd=(e,t)=>{if(t)for(let n in t)yd(e,t,n)},yd=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},bd=(e,...t)=>typeof e==`function`?bu(md,e,...t):bu(()=>hd(md(),e),...t);typeof window<`u`&&window.document&&window.document.createElement;function I(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function xd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Sd(...e){return t=>{let n=!1,r=e.map(e=>{let r=xd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():xd(e[t],null)}}}}function Cd(...e){return M.useCallback(Sd(...e),e)}function wd(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Td(i,...t)]}function Td(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Ed=n(a(),1);function Dd(e){let t=M.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Fd(r)&&typeof zd==`function`&&(r=zd(r._payload)),M.Children.forEach(r,e=>{if(Nd(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Fd(n)&&typeof zd==`function`&&(n=zd(n._payload)),a=Ad(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=M.cloneElement(a,void 0,s):!o&&M.Children.count(r)===1&&M.isValidElement(r)&&(a=r);let c=a?Md(a):void 0,l=Cd(n,c);if(!a){if(r||r===0)throw Error(o?Rd(e):Ld(e));return r}let u=jd(i,a.props??{});return a.type!==M.Fragment&&(u.ref=n?l:c),M.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var Od=Symbol.for(`radix.slottable`);function kd(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=Od,t}var Ad=(e,t)=>{if(`child`in e.props){let t=e.props.child;return M.isValidElement(t)?M.cloneElement(t,void 0,e.props.children(t.props.children)):null}return M.isValidElement(t)?t:null};function jd(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Md(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Nd(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Od}var Pd=Symbol.for(`react.lazy`);function Fd(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Pd&&`_payload`in e&&Id(e._payload)}function Id(e){return typeof e==`object`&&!!e&&`then`in e}var Ld=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Rd=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,zd=M.use,Bd=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Dd(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vd(e,t){e&&Ed.flushSync(()=>e.dispatchEvent(t))}function Hd(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Ud=globalThis?.document?M.useLayoutEffect:()=>{},Wd=M.useEffectEvent,Gd=M.useInsertionEffect;function Kd(e){if(typeof Wd==`function`)return Wd(e);let t=M.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Gd==`function`?Gd(()=>{t.current=e}):Ud(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}var qd=`DismissableLayer`,Jd=`dismissableLayer.update`,Yd=`dismissableLayer.pointerDownOutside`,Xd=`dismissableLayer.focusOutside`,Zd,Qd=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),$d=M.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=M.useContext(Qd),[d,f]=M.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=M.useState({}),h=Cd(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=M.useRef(!1),C=rf(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...u.branches].some(e=>e.contains(t));!x||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces}),w=af(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=Kd(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return M.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T]),M.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zd=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),of(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Zd))}},[d,p,n,u]),M.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),of())},[d,u]),M.useEffect(()=>{let e=()=>m({});return document.addEventListener(Jd,e),()=>document.removeEventListener(Jd,e)},[]),(0,N.jsx)(Bd.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:I(e.onFocusCapture,w.onFocusCapture),onBlurCapture:I(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,C.onPointerDownCapture)})});$d.displayName=qd;var ef=`DismissableLayerBranch`,tf=M.forwardRef((e,t)=>{let n=M.useContext(Qd),r=M.useRef(null),i=Cd(t,r);return M.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,N.jsx)(Bd.div,{...e,ref:i})});tf.displayName=ef;function nf(){let e=M.useContext(Qd),[t,n]=M.useState(null);return M.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function rf(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a}=t,o=Hd(e),s=M.useRef(!1),c=M.useRef(!1),l=M.useRef(new Map),u=M.useRef(()=>{});return M.useEffect(()=>{function e(){c.current=!1,i.current=!1,l.current.clear()}function t(){return Array.from(l.current.values()).some(Boolean)}function d(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||l.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&l.current.set(e.type,!1)}let p=a=>{if(a.target&&!s.current){let s=function(){n.removeEventListener(`click`,u.current);let r=t();e(),r||sf(Yd,o,d,{discrete:!0})},d={originalEvent:a};c.current=!0,i.current=r&&a.button===0,l.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,u.current),u.current=s,n.addEventListener(`click`,u.current,{once:!0}))}else n.removeEventListener(`click`,u.current),e();s.current=!1},m=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of m)n.addEventListener(e,d,!0),n.addEventListener(e,f);let h=window.setTimeout(()=>{n.addEventListener(`pointerdown`,p)},0);return()=>{window.clearTimeout(h),n.removeEventListener(`pointerdown`,p),n.removeEventListener(`click`,u.current);for(let e of m)n.removeEventListener(e,d,!0),n.removeEventListener(e,f)}},[n,o,r,i,a]),{onPointerDownCapture:()=>s.current=!0}}function af(e,t=globalThis?.document){let n=Hd(e),r=M.useRef(!1);return M.useEffect(()=>{let e=e=>{e.target&&!r.current&&sf(Xd,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function of(){let e=new CustomEvent(Jd);document.dispatchEvent(e)}function sf(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vd(i,a):i.dispatchEvent(a)}var cf=M.useId||(()=>void 0),lf=0;function uf(e){let[t,n]=M.useState(cf());return Ud(()=>{e||n(e=>e??String(lf++))},[e]),e||(t?`radix-${t}`:``)}var df=[`top`,`right`,`bottom`,`left`],ff=[`start`,`end`],pf=df.reduce((e,t)=>e.concat(t,t+`-`+ff[0],t+`-`+ff[1]),[]),mf=Math.min,hf=Math.max,gf=Math.round,_f=Math.floor,vf=e=>({x:e,y:e}),yf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function bf(e,t,n){return hf(e,mf(t,n))}function xf(e,t){return typeof e==`function`?e(t):e}function Sf(e){return e.split(`-`)[0]}function Cf(e){return e.split(`-`)[1]}function wf(e){return e===`x`?`y`:`x`}function Tf(e){return e===`y`?`height`:`width`}function Ef(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Df(e){return wf(Ef(e))}function Of(e,t,n){n===void 0&&(n=!1);let r=Cf(e),i=Df(e),a=Tf(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lf(o)),[o,Lf(o)]}function kf(e){let t=Lf(e);return[Af(e),t,Af(t)]}function Af(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jf=[`left`,`right`],Mf=[`right`,`left`],Nf=[`top`,`bottom`],Pf=[`bottom`,`top`];function Ff(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mf:jf:t?jf:Mf;case`left`:case`right`:return t?Nf:Pf;default:return[]}}function If(e,t,n,r){let i=Cf(e),a=Ff(Sf(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Af)))),a}function Lf(e){let t=Sf(e);return yf[t]+e.slice(t.length)}function Rf(e){return{top:0,right:0,bottom:0,left:0,...e}}function zf(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rf(e)}function Bf(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Vf(e,t,n){let{reference:r,floating:i}=e,a=Ef(t),o=Df(t),s=Tf(o),c=Sf(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cf(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Hf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xf(t,e),p=zf(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Bf(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Bf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Uf=50,Wf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Hf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Vf(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Uf&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Vf(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Gf=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xf(e,t)||{};if(l==null)return{};let d=zf(u),f={x:n,y:r},p=Df(i),m=Tf(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=mf(d[_],T),D=mf(d[v],T),O=E,ee=C-h[m]-D,te=C/2-h[m]/2+w,ne=bf(O,te,ee),k=!c.arrow&&Cf(i)!=null&&te!==ne&&a.reference[m]/2-(te<O?E:D)-h[m]/2<0,A=k?te<O?te-O:te-ee:0;return{[p]:f[p]+A,data:{[p]:ne,centerOffset:te-ne-A,...k&&{alignmentOffset:A}},reset:k}}});function Kf(e,t,n){return(e?[...n.filter(t=>Cf(t)===e),...n.filter(t=>Cf(t)!==e)]:n.filter(e=>Sf(e)===e)).filter(n=>e?Cf(n)===e||(t?Af(n)!==n:!1):!0)}var qf=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=pf,autoAlignment:u=!0,...d}=xf(e,t),f=c!==void 0||l===pf?Kf(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=Of(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[Sf(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Cf(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Cf(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},Jf=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Sf(r),_=Ef(o),v=Sf(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lf(o)]:kf(o)),x=p!==`none`;!d&&x&&b.push(...If(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Of(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ef(t))||T.every(e=>Ef(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ef(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Yf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xf(e){return df.some(t=>e[t]>=0)}var Zf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=xf(e,t);switch(i){case`referenceHidden`:{let e=Yf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Xf(e)}}}case`escaped`:{let e=Yf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Xf(e)}}}default:return{}}}}};function Qf(e){let t=mf(...e.map(e=>e.left)),n=mf(...e.map(e=>e.top)),r=hf(...e.map(e=>e.right)),i=hf(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function $f(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Bf(Qf(e)))}var ep=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=xf(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=$f(u),f=Bf(Qf(u)),p=zf(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Ef(n)===`y`){let e=d[0],t=d[d.length-1],r=Sf(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=Sf(n)===`left`,t=hf(...d.map(e=>e.right)),r=mf(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},tp=new Set([`left`,`top`]);async function np(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sf(n),s=Cf(n),c=Ef(n)===`y`,l=tp.has(o)?-1:1,u=a&&c?-1:1,d=xf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var rp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await np(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ip=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ef(Sf(i)),p=wf(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=bf(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=bf(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ap=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=xf(e,t),u={x:n,y:r},d=Ef(i),f=wf(d),p=u[f],m=u[d],h=xf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=tp.has(Sf(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},op=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=xf(e,t),u=await o.detectOverflow(t,l),d=Sf(i),f=Cf(i),p=Ef(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mf(h-u[g],v),x=mf(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hf(u.left,0),t=hf(u.right,0),n=hf(u.top,0),r=hf(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hf(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hf(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function sp(){return typeof window<`u`}function cp(e){return dp(e)?(e.nodeName||``).toLowerCase():`#document`}function lp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function up(e){return((dp(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function dp(e){return sp()?e instanceof Node||e instanceof lp(e).Node:!1}function fp(e){return sp()?e instanceof Element||e instanceof lp(e).Element:!1}function pp(e){return sp()?e instanceof HTMLElement||e instanceof lp(e).HTMLElement:!1}function mp(e){return!sp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof lp(e).ShadowRoot}function hp(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Sp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Wte(e){return/^(table|td|th)$/.test(cp(e))}function gp(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Gte=/transform|translate|scale|rotate|perspective|filter/,Kte=/paint|layout|strict|content/,_p=e=>!!e&&e!==`none`,vp;function yp(e){let t=fp(e)?Sp(e):e;return _p(t.transform)||_p(t.translate)||_p(t.scale)||_p(t.rotate)||_p(t.perspective)||!bp()&&(_p(t.backdropFilter)||_p(t.filter))||Gte.test(t.willChange||``)||Kte.test(t.contain||``)}function qte(e){let t=wp(e);for(;pp(t)&&!xp(t);){if(yp(t))return t;if(gp(t))return null;t=wp(t)}return null}function bp(){return vp??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),vp}function xp(e){return/^(html|body|#document)$/.test(cp(e))}function Sp(e){return lp(e).getComputedStyle(e)}function Cp(e){return fp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wp(e){if(cp(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||mp(e)&&e.host||up(e);return mp(t)?t.host:t}function Tp(e){let t=wp(e);return xp(t)?e.ownerDocument?e.ownerDocument.body:e.body:pp(t)&&hp(t)?t:Tp(t)}function Ep(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Tp(e),i=r===e.ownerDocument?.body,a=lp(r);if(i){let e=Dp(a);return t.concat(a,a.visualViewport||[],hp(r)?r:[],e&&n?Ep(e):[])}else return t.concat(r,Ep(r,[],n))}function Dp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Op(e){let t=Sp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pp(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gf(n)!==a||gf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function kp(e){return fp(e)?e:e.contextElement}function Ap(e){let t=kp(e);if(!pp(t))return vf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Op(t),o=(a?gf(n.width):n.width)/r,s=(a?gf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Jte=vf(0);function jp(e){let t=lp(e);return!bp()||!t.visualViewport?Jte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yte(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lp(e)?!1:t}function Mp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=kp(e),o=vf(1);t&&(r?fp(r)&&(o=Ap(r)):o=Ap(e));let s=Yte(a,n,r)?jp(a):vf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=lp(a),t=r&&fp(r)?lp(r):r,n=e,i=Dp(n);for(;i&&r&&t!==n;){let e=Ap(i),t=i.getBoundingClientRect(),r=Sp(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=lp(i),i=Dp(n)}}return Bf({width:u,height:d,x:c,y:l})}function Np(e,t){let n=Cp(e).scrollLeft;return t?t.left+n:Mp(up(e)).left+n}function Pp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Np(e,n),y:n.top+t.scrollTop}}function Xte(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=up(r),s=t?gp(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vf(1),u=vf(0),d=pp(r);if((d||!d&&!a)&&((cp(r)!==`body`||hp(o))&&(c=Cp(r)),d)){let e=Mp(r);l=Ap(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pp(o,c):vf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Zte(e){return Array.from(e.getClientRects())}function Qte(e){let t=up(e),n=Cp(e),r=e.ownerDocument.body,i=hf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Np(e),s=-n.scrollTop;return Sp(r).direction===`rtl`&&(o+=hf(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Fp=25;function $te(e,t){let n=lp(e),r=up(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=bp();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Np(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Fp&&(a-=o)}else l<=Fp&&(a+=l);return{width:a,height:o,x:s,y:c}}function ene(e,t){let n=Mp(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pp(e)?Ap(e):vf(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ip(e,t,n){let r;if(t===`viewport`)r=$te(e,n);else if(t===`document`)r=Qte(up(e));else if(fp(t))r=ene(t,n);else{let n=jp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Bf(r)}function Lp(e,t){let n=wp(e);return n===t||!fp(n)||xp(n)?!1:Sp(n).position===`fixed`||Lp(n,t)}function tne(e,t){let n=t.get(e);if(n)return n;let r=Ep(e,[],!1).filter(e=>fp(e)&&cp(e)!==`body`),i=null,a=Sp(e).position===`fixed`,o=a?wp(e):e;for(;fp(o)&&!xp(o);){let t=Sp(o),n=yp(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||hp(o)&&!n&&Lp(e,o))?r=r.filter(e=>e!==o):i=t,o=wp(o)}return t.set(e,r),r}function nne(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?gp(t)?[]:tne(t,this._c):[].concat(n),r],o=Ip(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ip(t,a[e],i);s=hf(n.top,s),c=mf(n.right,c),l=mf(n.bottom,l),u=hf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function rne(e){let{width:t,height:n}=Op(e);return{width:t,height:n}}function ine(e,t,n){let r=pp(t),i=up(t),a=n===`fixed`,o=Mp(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vf(0);function l(){c.x=Np(i)}if(r||!r&&!a)if((cp(t)!==`body`||hp(i))&&(s=Cp(t)),r){let e=Mp(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Pp(i,s):vf(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Rp(e){return Sp(e).position===`static`}function zp(e,t){if(!pp(e)||Sp(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return up(e)===n&&(n=n.ownerDocument.body),n}function Bp(e,t){let n=lp(e);if(gp(e))return n;if(!pp(e)){let t=wp(e);for(;t&&!xp(t);){if(fp(t)&&!Rp(t))return t;t=wp(t)}return n}let r=zp(e,t);for(;r&&Wte(r)&&Rp(r);)r=zp(r,t);return r&&xp(r)&&Rp(r)&&!yp(r)?n:r||qte(e)||n}var ane=async function(e){let t=this.getOffsetParent||Bp,n=this.getDimensions,r=await n(e.floating);return{reference:ine(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function one(e){return Sp(e).direction===`rtl`}var sne={convertOffsetParentRelativeRectToViewportRelativeRect:Xte,getDocumentElement:up,getClippingRect:nne,getOffsetParent:Bp,getElementRects:ane,getClientRects:Zte,getDimensions:rne,getScale:Ap,isElement:fp,isRTL:one};function Vp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cne(e,t){let n=null,r,i=up(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=_f(d),h=_f(i.clientWidth-(u+f)),g=_f(i.clientHeight-(d+p)),_=_f(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:hf(0,mf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Vp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Hp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=kp(e),u=i||a?[...l?Ep(l):[],...t?Ep(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?cne(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Mp(e):null;c&&g();function g(){let t=Mp(e);h&&!Vp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Up=rp,lne=qf,Wp=ip,Gp=Jf,Kp=op,qp=Zf,Jp=Gf,une=ep,dne=ap,Yp=(e,t,n)=>{let r=new Map,i={platform:sne,...n},a={...i.platform,_c:r};return Wf(e,t,{...i,platform:a})},Xp=typeof document<`u`?M.useLayoutEffect:function(){};function Zp(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,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Zp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Zp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Qp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $p(e,t){let n=Qp(e);return Math.round(t*n)/n}function em(e){let t=M.useRef(e);return Xp(()=>{t.current=e}),t}function tm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);Zp(f,r)||p(r);let[m,h]=M.useState(null),[g,_]=M.useState(null),v=M.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=M.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=M.useRef(null),C=M.useRef(null),w=M.useRef(u),T=c!=null,E=em(c),D=em(i),O=em(l),ee=M.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Yp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};te.current&&!Zp(w.current,t)&&(w.current=t,Ed.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Xp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=M.useRef(!1);Xp(()=>(te.current=!0,()=>{te.current=!1}),[]),Xp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,ee);ee()}},[b,x,ee,E,T]);let ne=M.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),k=M.useMemo(()=>({reference:b,floating:x}),[b,x]),A=M.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=$p(k.floating,u.x),r=$p(k.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Qp(k.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,k.floating,u.x,u.y]);return M.useMemo(()=>({...u,update:ee,refs:ne,elements:k,floatingStyles:A}),[u,ee,ne,k,A])}var fne=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Jp({element:r.current,padding:i}).fn(n):r?Jp({element:r,padding:i}).fn(n):{}}}},nm=(e,t)=>{let n=Up(e);return{name:n.name,fn:n.fn,options:[e,t]}},rm=(e,t)=>{let n=Wp(e);return{name:n.name,fn:n.fn,options:[e,t]}},im=(e,t)=>({fn:dne(e).fn,options:[e,t]}),am=(e,t)=>{let n=Gp(e);return{name:n.name,fn:n.fn,options:[e,t]}},om=(e,t)=>{let n=Kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},sm=(e,t)=>{let n=qp(e);return{name:n.name,fn:n.fn,options:[e,t]}},cm=(e,t)=>{let n=fne(e);return{name:n.name,fn:n.fn,options:[e,t]}},pne=`Arrow`,lm=M.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,N.jsx)(Bd.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,N.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});lm.displayName=pne;var mne=lm;function um(e){let[t,n]=M.useState(void 0);return Ud(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var dm=`Popper`,[fm,pm]=wd(dm),[hne,mm]=fm(dm),hm=e=>{let{__scopePopper:t,children:n}=e,[r,i]=M.useState(null),[a,o]=M.useState(void 0);return(0,N.jsx)(hne,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};hm.displayName=dm;var gm=`PopperAnchor`,_m=M.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=mm(gm,n),o=M.useRef(null),s=a.onAnchorChange,c=Cd(t,M.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=M.useRef(null);M.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Sm(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,N.jsx)(Bd.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});_m.displayName=gm;var vm=`PopperContent`,[gne,_ne]=fm(vm),ym=M.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=mm(vm,n),[_,v]=M.useState(null),y=Cd(t,v),[b,x]=M.useState(null),S=um(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,ee={padding:E,boundary:D.filter(yne),altBoundary:O},{refs:te,floatingStyles:ne,placement:k,isPositioned:A,middlewareData:re}=tm({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>Hp(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[nm({mainAxis:i+w,alignmentAxis:o}),c&&rm({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?im():void 0,...ee}),c&&am({...ee}),om({...ee,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&cm({element:b,padding:s}),bne({arrowWidth:C,arrowHeight:w}),f&&sm({strategy:`referenceHidden`,...ee,boundary:O?ee.boundary:void 0})]}),ie=g.setPlacementState;Ud(()=>(ie(k),()=>{ie(void 0)}),[k,ie]);let[j,ae]=Sm(k),oe=Hd(m);Ud(()=>{A&&oe?.()},[A,oe]);let se=re.arrow?.x,ce=re.arrow?.y,le=re.arrow?.centerOffset!==0,[ue,de]=M.useState();return Ud(()=>{_&&de(window.getComputedStyle(_).zIndex)},[_]),(0,N.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:A?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(` `),...re.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,N.jsx)(gne,{scope:n,placedSide:j,placedAlign:ae,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,N.jsx)(Bd.div,{"data-side":j,"data-align":ae,...h,ref:y,style:{...h.style,animation:A?void 0:`none`}})})})});ym.displayName=vm;var bm=`PopperArrow`,vne={top:`bottom`,right:`left`,bottom:`top`,left:`right`},xm=M.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=_ne(bm,n),a=vne[i.placedSide];return(0,N.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,N.jsx)(mne,{...r,ref:t,style:{...r.style,display:`block`}})})});xm.displayName=bm;function yne(e){return e!==null}var bne=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Sm(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Sm(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Cm=hm,wm=_m,Tm=ym,Em=xm,xne=`Portal`,Dm=M.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=M.useState(!1);Ud(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Ed.createPortal((0,N.jsx)(Bd.div,{...r,ref:t}),o):null});Dm.displayName=xne;function Sne(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}var Om=e=>{let{present:t,children:n}=e,r=Cne(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=wne(r.ref,Tne(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null};Om.displayName=`Presence`;function Cne(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),[o,s]=Sne(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{let e=Am(r.current);a.current=o===`mounted`?e:`none`},[o]),Ud(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Am(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Ud(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Am(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Am(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:M.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function km(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function wne(...e){let t=M.useRef(e);return t.current=e,M.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=km(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():km(n[e],null)}}},[])}function Am(e){return e?.animationName||`none`}function Tne(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ene=M.useInsertionEffect||Ud;function jm({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Dne({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=M.useRef(e!==void 0);M.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[c,M.useCallback(t=>{if(s){let n=One(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Dne({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return Ene(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function One(e){return typeof e==`function`}var kne=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`}),Ane=`VisuallyHidden`,Mm=M.forwardRef((e,t)=>(0,N.jsx)(Bd.span,{...e,ref:t,style:{...kne,...e.style}}));Mm.displayName=Ane;var jne=Mm,[Nm,Mne]=wd(`Tooltip`,[pm]),Pm=pm(),Fm=`TooltipProvider`,Nne=700,Im=`tooltip.open`,[Pne,Lm]=Nm(Fm),Rm=e=>{let{__scopeTooltip:t,delayDuration:n=Nne,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=M.useRef(!0),s=M.useRef(!1),c=M.useRef(0);return M.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,N.jsx)(Pne,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:M.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:M.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:M.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Rm.displayName=Fm;var zm=`Tooltip`,[Fne,Bm]=Nm(zm),Vm=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Lm(zm,e.__scopeTooltip),l=Pm(t),[u,d]=M.useState(null),f=uf(),p=M.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=M.useRef(!1),[_,v]=jm({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Im))):c.onClose(),a?.(e)},caller:zm}),y=M.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return M.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,N.jsx)(Cm,{...l,children:(0,N.jsx)(Fne,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:M.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:M.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};Vm.displayName=zm;var Hm=`TooltipTrigger`,Um=M.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Bm(Hm,n),a=Lm(Hm,n),o=Pm(n),s=Cd(t,M.useRef(null),i.onTriggerChange),c=M.useRef(!1),l=M.useRef(!1),u=M.useCallback(()=>c.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,N.jsx)(wm,{asChild:!0,...o,children:(0,N.jsx)(Bd.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:I(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:I(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:I(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:I(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:I(e.onBlur,i.onClose),onClick:I(e.onClick,i.onClose)})})});Um.displayName=Hm;var Wm=`TooltipPortal`,[Ine,Lne]=Nm(Wm,{forceMount:void 0}),Gm=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Bm(Wm,t);return(0,N.jsx)(Ine,{scope:t,forceMount:n,children:(0,N.jsx)(Om,{present:n||a.open,children:(0,N.jsx)(Dm,{asChild:!0,container:i,children:r})})})};Gm.displayName=Wm;var Km=`TooltipContent`,qm=M.forwardRef((e,t)=>{let n=Lne(Km,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Bm(Km,e.__scopeTooltip);return(0,N.jsx)(Om,{present:r||o.open,children:o.disableHoverableContent?(0,N.jsx)(Jm,{side:i,...a,ref:t}):(0,N.jsx)(Rne,{side:i,...a,ref:t})})}),Rne=M.forwardRef((e,t)=>{let n=Bm(Km,e.__scopeTooltip),r=Lm(Km,e.__scopeTooltip),i=M.useRef(null),a=Cd(t,i),[o,s]=M.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=M.useCallback(()=>{s(null),d(!1)},[d]),p=M.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Wne(r,Une(r,n.getBoundingClientRect())),a=Gne(t.getBoundingClientRect());s(qne([...i,...a])),d(!0)},[d]);return M.useEffect(()=>()=>f(),[f]),M.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),M.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Kne(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,N.jsx)(Jm,{...e,ref:a})}),[zne,Bne]=Nm(zm,{isInside:!1}),Vne=kd(`TooltipContent`),Jm=M.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Bm(Km,n),l=Pm(n),{onClose:u}=c;return M.useEffect(()=>(document.addEventListener(Im,u),()=>document.removeEventListener(Im,u)),[u]),M.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,N.jsx)($d,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,N.jsxs)(Tm,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,N.jsx)(Vne,{children:r}),(0,N.jsx)(zne,{scope:n,isInside:!0,children:(0,N.jsx)(jne,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});qm.displayName=Km;var Ym=`TooltipArrow`,Hne=M.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Pm(n);return Bne(Ym,n).isInside?null:(0,N.jsx)(Em,{...i,...r,ref:t})});Hne.displayName=Ym;function Une(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Wne(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Gne(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Kne(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function qne(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Jne(t)}function Jne(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Yne=Rm,Xne=Vm,Zne=Um,Qne=Gm,$ne=qm,Xm=`focusScope.autoFocusOnMount`,Zm=`focusScope.autoFocusOnUnmount`,Qm={bubbles:!1,cancelable:!0},ere=`FocusScope`,$m=M.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=M.useState(null),l=Hd(i),u=Hd(a),d=M.useRef(null),f=Cd(t,c),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:nh(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||nh(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&nh(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),M.useEffect(()=>{if(s){rh.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Xm,Qm);s.addEventListener(Xm,l),s.dispatchEvent(t),t.defaultPrevented||(tre(ore(eh(s)),{select:!0}),document.activeElement===e&&nh(s))}return()=>{s.removeEventListener(Xm,l),setTimeout(()=>{let t=new CustomEvent(Zm,Qm);s.addEventListener(Zm,u),s.dispatchEvent(t),t.defaultPrevented||nh(e??document.body,{select:!0}),s.removeEventListener(Zm,u),rh.remove(p)},0)}}},[s,l,u,p]);let m=M.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=nre(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&nh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&nh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(Bd.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});$m.displayName=ere;function tre(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nh(r,{select:t}),document.activeElement!==n)return}function nre(e){let t=eh(e);return[th(t,e),th(t.reverse(),e)]}function eh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function th(e,t){for(let n of e)if(!rre(n,{upTo:t}))return n}function rre(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 ire(e){return e instanceof HTMLInputElement&&`select`in e}function nh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ire(e)&&t&&e.select()}}var rh=are();function are(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ih(e,t),e.unshift(t)},remove(t){e=ih(e,t),e[0]?.resume()}}}function ih(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ore(e){return e.filter(e=>e.tagName!==`A`)}var ah=0,oh=null;function sh(){M.useEffect(()=>{oh||={start:ch(),end:ch()};let{start:e,end:t}=oh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ah++,()=>{ah===1&&(oh?.start.remove(),oh?.end.remove(),oh=null),ah=Math.max(0,ah-1)}},[])}function ch(){let 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 lh=function(){return lh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lh.apply(this,arguments)};function uh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function sre(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var dh=`right-scroll-bar-position`,fh=`width-before-scroll-bar`,ph=`with-scroll-bars-hidden`,cre=`--removed-body-scroll-bar-size`;function mh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function hh(e,t){var n=(0,M.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var gh=typeof window<`u`?M.useLayoutEffect:M.useEffect,_h=new WeakMap;function vh(e,t){var n=hh(t||null,function(t){return e.forEach(function(e){return mh(e,t)})});return gh(function(){var t=_h.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||mh(e,null)}),i.forEach(function(e){r.has(e)||mh(e,a)})}_h.set(n,e)},[e]),n}function yh(e){return e}function bh(e,t){t===void 0&&(t=yh);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function xh(e){e===void 0&&(e={});var t=bh(null);return t.options=lh({async:!0,ssr:!1},e),t}var Sh=function(e){var t=e.sideCar,n=uh(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return M.createElement(r,lh({},n))};Sh.isSideCarExport=!0;function lre(e,t){return e.useMedium(t),Sh}var Ch=xh(),wh=function(){},Th=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:wh,onWheelCapture:wh,onTouchMoveCapture:wh}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=uh(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=vh([n,t]),C=lh(lh({},b),i);return M.createElement(M.Fragment,null,u&&M.createElement(x,{sideCar:Ch,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?M.cloneElement(M.Children.only(s),lh(lh({},C),{ref:S})):M.createElement(v,lh({},C,{className:c,ref:S}),s))});Th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Th.classNames={fullWidth:fh,zeroRight:dh};var Eh,Dh=function(){if(Eh)return Eh;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Oh(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Dh();return t&&e.setAttribute(`nonce`,t),e}function kh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ah(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var jh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Oh())&&(kh(t,n),Ah(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mh=function(){var e=jh();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Nh=function(){var e=Mh();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ph={left:0,top:0,right:0,gap:0},Fh=function(e){return parseInt(e||``,10)||0},Ih=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Fh(n),Fh(r),Fh(i)]},Lh=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ph;var t=Ih(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Rh=Nh(),zh=`data-scroll-locked`,Bh=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
5
+ .${ph} {
6
+ overflow: hidden ${r};
7
+ padding-right: ${s}px ${r};
8
+ }
9
+ body[${zh}] {
10
+ overflow: hidden ${r};
11
+ overscroll-behavior: contain;
12
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
13
+ padding-left: ${i}px;
14
+ padding-top: ${a}px;
15
+ padding-right: ${o}px;
16
+ margin-left:0;
17
+ margin-top:0;
18
+ margin-right: ${s}px ${r};
19
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
20
+ }
21
+
22
+ .${dh} {
23
+ right: ${s}px ${r};
24
+ }
25
+
26
+ .${fh} {
27
+ margin-right: ${s}px ${r};
28
+ }
29
+
30
+ .${dh} .${dh} {
31
+ right: 0 ${r};
32
+ }
33
+
34
+ .${fh} .${fh} {
35
+ margin-right: 0 ${r};
36
+ }
37
+
38
+ body[${zh}] {
39
+ ${cre}: ${s}px;
40
+ }
41
+ `},Vh=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Hh=function(){M.useEffect(function(){return document.body.setAttribute(zh,(Vh()+1).toString()),function(){var e=Vh()-1;e<=0?document.body.removeAttribute(zh):document.body.setAttribute(zh,e.toString())}},[])},Uh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Hh();var a=M.useMemo(function(){return Lh(i)},[i]);return M.createElement(Rh,{styles:Bh(a,!t,i,n?``:`!important`)})},Wh=!1;if(typeof window<`u`)try{var Gh=Object.defineProperty({},`passive`,{get:function(){return Wh=!0,!0}});window.addEventListener(`test`,Gh,Gh),window.removeEventListener(`test`,Gh,Gh)}catch{Wh=!1}var Kh=Wh?{passive:!1}:!1,qh=function(e){return e.tagName===`TEXTAREA`},Jh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!qh(e)&&n[t]===`visible`)},Yh=function(e){return Jh(e,`overflowY`)},Xh=function(e){return Jh(e,`overflowX`)},Zh=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),eg(e,r)){var i=tg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Qh=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},$h=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},eg=function(e,t){return e===`v`?Yh(t):Xh(t)},tg=function(e,t){return e===`v`?Qh(t):$h(t)},ure=function(e,t){return e===`h`&&t===`rtl`?-1:1},dre=function(e,t,n,r,i){var a=ure(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=tg(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&eg(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},ng=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rg=function(e){return[e.deltaX,e.deltaY]},ig=function(e){return e&&`current`in e?e.current:e},fre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pre=function(e){return`
42
+ .block-interactivity-${e} {pointer-events: none;}
43
+ .allow-interactivity-${e} {pointer-events: all;}
44
+ `},mre=0,ag=[];function hre(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),i=M.useState(mre++)[0],a=M.useState(Nh)[0],o=M.useRef(e);M.useEffect(function(){o.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=sre([e.lockRef.current],(e.shards||[]).map(ig),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=ng(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Zh(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Zh(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return dre(h,t,e,h===`h`?s:c,!0)},[]),c=M.useCallback(function(e){var n=e;if(!(!ag.length||ag[ag.length-1]!==a)){var r=`deltaY`in n?rg(n):ng(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&fre(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(ig).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=M.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:og(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=M.useCallback(function(e){n.current=ng(e),r.current=void 0},[]),d=M.useCallback(function(t){l(t.type,rg(t),t.target,s(t,e.lockRef.current))},[]),f=M.useCallback(function(t){l(t.type,ng(t),t.target,s(t,e.lockRef.current))},[]);M.useEffect(function(){return ag.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Kh),document.addEventListener(`touchmove`,c,Kh),document.addEventListener(`touchstart`,u,Kh),function(){ag=ag.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Kh),document.removeEventListener(`touchmove`,c,Kh),document.removeEventListener(`touchstart`,u,Kh)}},[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(a,{styles:pre(i)}):null,p?M.createElement(Uh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function og(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var sg=lre(Ch,hre),cg=M.forwardRef(function(e,t){return M.createElement(Th,lh({},e,{ref:t,sideCar:sg}))});cg.classNames=Th.classNames;var lg=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ug=new WeakMap,dg=new WeakMap,fg={},pg=0,mg=function(e){return e&&(e.host||mg(e.parentNode))},hg=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=mg(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},gg=function(e,t,n,r){var i=hg(t,Array.isArray(e)?e:[e]);fg[n]||(fg[n]=new WeakMap);var a=fg[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ug.get(e)||0)+1,l=(a.get(e)||0)+1;ug.set(e,c),a.set(e,l),o.push(e),c===1&&i&&dg.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),pg++,function(){o.forEach(function(e){var t=ug.get(e)-1,i=a.get(e)-1;ug.set(e,t),a.set(e,i),t||(dg.has(e)||e.removeAttribute(r),dg.delete(e)),i||e.removeAttribute(n)}),pg--,pg||(ug=new WeakMap,ug=new WeakMap,dg=new WeakMap,fg={})}},_g=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||lg(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),gg(r,i,n,`aria-hidden`)):function(){return null}},vg=`Dialog`,[yg,gre]=wd(vg),[bg,xg]=yg(vg),Sg=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=M.useRef(null),c=M.useRef(null),[l,u]=jm({prop:r,defaultProp:i??!1,onChange:a,caller:vg});return(0,N.jsx)(bg,{scope:t,triggerRef:s,contentRef:c,contentId:uf(),titleId:uf(),descriptionId:uf(),open:l,onOpenChange:u,onOpenToggle:M.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};Sg.displayName=vg;var Cg=`DialogTrigger`,wg=M.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xg(Cg,n),a=Cd(t,i.triggerRef);return(0,N.jsx)(Bd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Wg(i.open),...r,ref:a,onClick:I(e.onClick,i.onOpenToggle)})});wg.displayName=Cg;var Tg=`DialogPortal`,[Eg,Dg]=yg(Tg,{forceMount:void 0}),Og=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=xg(Tg,t);return(0,N.jsx)(Eg,{scope:t,forceMount:n,children:M.Children.map(r,e=>(0,N.jsx)(Om,{present:n||a.open,children:(0,N.jsx)(Dm,{asChild:!0,container:i,children:e})}))})};Og.displayName=Tg;var kg=`DialogOverlay`,Ag=M.forwardRef((e,t)=>{let n=Dg(kg,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=xg(kg,e.__scopeDialog);return a.modal?(0,N.jsx)(Om,{present:r||a.open,children:(0,N.jsx)(Mg,{...i,ref:t})}):null});Ag.displayName=kg;var jg=Dd(`DialogOverlay.RemoveScroll`),Mg=M.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xg(kg,n),a=Cd(t,nf());return(0,N.jsx)(cg,{as:jg,allowPinchZoom:!0,shards:[i.contentRef],children:(0,N.jsx)(Bd.div,{"data-state":Wg(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})}),Ng=`DialogContent`,Pg=M.forwardRef((e,t)=>{let n=Dg(Ng,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=xg(Ng,e.__scopeDialog);return(0,N.jsx)(Om,{present:r||a.open,children:a.modal?(0,N.jsx)(Fg,{...i,ref:t}):(0,N.jsx)(Ig,{...i,ref:t})})});Pg.displayName=Ng;var Fg=M.forwardRef((e,t)=>{let n=xg(Ng,e.__scopeDialog),r=M.useRef(null),i=Cd(t,n.contentRef,r);return M.useEffect(()=>{let e=r.current;if(e)return _g(e)},[]),(0,N.jsx)(Lg,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:I(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:I(e.onFocusOutside,e=>e.preventDefault())})}),Ig=M.forwardRef((e,t)=>{let n=xg(Ng,e.__scopeDialog),r=M.useRef(!1),i=M.useRef(!1);return(0,N.jsx)(Lg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Lg=M.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=xg(Ng,n);return sh(),(0,N.jsx)(N.Fragment,{children:(0,N.jsx)($m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)($d,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Wg(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),Rg=`DialogTitle`,zg=M.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xg(Rg,n);return(0,N.jsx)(Bd.h2,{id:i.titleId,...r,ref:t})});zg.displayName=Rg;var Bg=`DialogDescription`,Vg=M.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xg(Bg,n);return(0,N.jsx)(Bd.p,{id:i.descriptionId,...r,ref:t})});Vg.displayName=Bg;var Hg=`DialogClose`,Ug=M.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xg(Hg,n);return(0,N.jsx)(Bd.button,{type:`button`,...r,ref:t,onClick:I(e.onClick,()=>i.onOpenChange(!1))})});Ug.displayName=Hg;function Wg(e){return e?`open`:`closed`}function Gg(e){let t=e+`CollectionProvider`,[n,r]=wd(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Dd(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(c,{ref:Cd(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Dd(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=Cd(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Kg=M.createContext(void 0);function qg(e){let t=M.useContext(Kg);return e||t||`ltr`}var Jg=`rovingFocusGroup.onEntryFocus`,Yg={bubbles:!1,cancelable:!0},Xg=`RovingFocusGroup`,[Zg,Qg,$g]=Gg(Xg),[e_,t_]=wd(Xg,[$g]),[n_,r_]=e_(Xg),i_=M.forwardRef((e,t)=>(0,N.jsx)(Zg.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(Zg.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(a_,{...e,ref:t})})}));i_.displayName=Xg;var a_=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=M.useRef(null),p=Cd(t,f),m=qg(a),[h,g]=jm({prop:o,defaultProp:s??null,onChange:c,caller:Xg}),[_,v]=M.useState(!1),y=Hd(l),b=Qg(n),x=M.useRef(!1),[S,C]=M.useState(0);return M.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Jg,y),()=>e.removeEventListener(Jg,y)},[y]),(0,N.jsx)(n_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:M.useCallback(e=>g(e),[g]),onItemShiftTab:M.useCallback(()=>v(!0),[]),onFocusableItemAdd:M.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:M.useCallback(()=>C(e=>e-1),[]),children:(0,N.jsx)(Bd.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:I(e.onMouseDown,()=>{x.current=!0}),onFocus:I(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Jg,Yg);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);d_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:I(e.onBlur,()=>v(!1))})})}),o_=`RovingFocusGroupItem`,s_=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=uf(),l=a||c,u=r_(o_,n),d=u.currentTabStopId===l,f=Qg(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return M.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,N.jsx)(Zg.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,N.jsx)(Bd.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:I(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:I(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:I(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=u_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?f_(n,r+1):n.slice(r+1)}setTimeout(()=>d_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});s_.displayName=o_;var c_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function l_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function u_(e,t,n){let r=l_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return c_[r]}function d_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function f_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var p_=i_,m_=s_,h_=[`Enter`,` `],g_=[`ArrowDown`,`PageUp`,`Home`],__=[`ArrowUp`,`PageDown`,`End`],v_=[...g_,...__],y_={ltr:[...h_,`ArrowRight`],rtl:[...h_,`ArrowLeft`]},_re={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},b_=`Menu`,[x_,vre,yre]=Gg(b_),[S_,C_]=wd(b_,[yre,pm,t_]),w_=pm(),T_=t_(),[E_,D_]=S_(b_),[bre,O_]=S_(b_),k_=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=w_(t),[c,l]=M.useState(null),u=M.useRef(!1),d=Hd(a),f=qg(i);return M.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),M.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,N.jsx)(Cm,{...s,children:(0,N.jsx)(E_,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,N.jsx)(bre,{scope:t,onClose:M.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};k_.displayName=b_;var xre=`MenuAnchor`,A_=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=w_(n);return(0,N.jsx)(wm,{...i,...r,ref:t})});A_.displayName=xre;var j_=`MenuPortal`,[Sre,M_]=S_(j_,{forceMount:void 0}),N_=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=D_(j_,t);return(0,N.jsx)(Sre,{scope:t,forceMount:n,children:(0,N.jsx)(Om,{present:n||a.open,children:(0,N.jsx)(Dm,{asChild:!0,container:i,children:r})})})};N_.displayName=j_;var P_=`MenuContent`,[Cre,F_]=S_(P_),I_=M.forwardRef((e,t)=>{let n=M_(P_,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=D_(P_,e.__scopeMenu),o=O_(P_,e.__scopeMenu);return(0,N.jsx)(x_.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(Om,{present:r||a.open,children:(0,N.jsx)(x_.Slot,{scope:e.__scopeMenu,children:o.modal?(0,N.jsx)(L_,{...i,ref:t}):(0,N.jsx)(R_,{...i,ref:t})})})})}),L_=M.forwardRef((e,t)=>{let n=D_(P_,e.__scopeMenu),r=M.useRef(null),i=Cd(t,r);return M.useEffect(()=>{let e=r.current;if(e)return _g(e)},[]),(0,N.jsx)(B_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),R_=M.forwardRef((e,t)=>{let n=D_(P_,e.__scopeMenu);return(0,N.jsx)(B_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),z_=Dd(`MenuContent.ScrollLock`),B_=M.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=D_(P_,n),_=O_(P_,n),v=w_(n),y=T_(n),b=vre(n),[x,S]=M.useState(null),C=M.useRef(null),w=Cd(t,C,g.onContentChange),T=M.useRef(0),E=M.useRef(``),D=M.useRef(0),O=M.useRef(null),ee=M.useRef(`right`),te=M.useRef(0),ne=m?cg:M.Fragment,k=m?{as:z_,allowPinchZoom:!0}:void 0,A=e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=wv(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};M.useEffect(()=>()=>window.clearTimeout(T.current),[]),sh();let re=M.useCallback(e=>ee.current===O.current?.side&&Ev(e,O.current?.area),[]);return(0,N.jsx)(Cre,{scope:n,searchRef:E,onItemEnter:M.useCallback(e=>{re(e)&&e.preventDefault()},[re]),onItemLeave:M.useCallback(e=>{re(e)||(C.current?.focus(),S(null))},[re]),onTriggerLeave:M.useCallback(e=>{re(e)&&e.preventDefault()},[re]),pointerGraceTimerRef:D,onPointerGraceIntentChange:M.useCallback(e=>{O.current=e},[]),children:(0,N.jsx)(ne,{...k,children:(0,N.jsx)($m,{asChild:!0,trapped:i,onMountAutoFocus:I(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,N.jsx)($d,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,N.jsx)(p_,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:I(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,N.jsx)(Tm,{role:`menu`,"aria-orientation":`vertical`,"data-state":yv(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:I(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&A(e.key));let i=C.current;if(e.target!==i||!v_.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);__.includes(e.key)&&a.reverse(),Sv(a)}),onBlur:I(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:I(e.onPointerMove,Dv(e=>{let t=e.target,n=te.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ee.current=e.clientX>te.current?`right`:`left`,te.current=e.clientX)}))})})})})})})});I_.displayName=P_;var V_=`MenuGroup`,H_=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(Bd.div,{role:`group`,...r,ref:t})});H_.displayName=V_;var U_=`MenuLabel`,W_=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(Bd.div,{...r,ref:t})});W_.displayName=U_;var G_=`MenuItem`,K_=`menu.itemSelect`,q_=M.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=M.useRef(null),o=O_(G_,e.__scopeMenu),s=F_(G_,e.__scopeMenu),c=Cd(t,a),l=M.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(K_,{bubbles:!0,cancelable:!0});e.addEventListener(K_,e=>r?.(e),{once:!0}),Vd(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,N.jsx)(J_,{...i,ref:c,disabled:n,onClick:I(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:I(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:I(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||h_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});q_.displayName=G_;var J_=M.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=F_(G_,n),s=T_(n),c=M.useRef(null),l=Cd(t,c),[u,d]=M.useState(!1),[f,p]=M.useState(``);return M.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,N.jsx)(x_.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,N.jsx)(m_,{asChild:!0,...s,focusable:!r,children:(0,N.jsx)(Bd.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:I(e.onPointerMove,Dv(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:I(e.onPointerLeave,Dv(e=>o.onItemLeave(e))),onFocus:I(e.onFocus,()=>d(!0)),onBlur:I(e.onBlur,()=>d(!1))})})})}),Y_=`MenuCheckboxItem`,X_=M.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,N.jsx)(iv,{scope:e.__scopeMenu,checked:n,children:(0,N.jsx)(q_,{role:`menuitemcheckbox`,"aria-checked":bv(n)?`mixed`:n,...i,ref:t,"data-state":xv(n),onSelect:I(i.onSelect,()=>r?.(bv(n)?!0:!n),{checkForDefaultPrevented:!1})})})});X_.displayName=Y_;var Z_=`MenuRadioGroup`,[Q_,$_]=S_(Z_,{value:void 0,onValueChange:()=>{}}),ev=M.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=Hd(r);return(0,N.jsx)(Q_,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,N.jsx)(H_,{...i,ref:t})})});ev.displayName=Z_;var tv=`MenuRadioItem`,nv=M.forwardRef((e,t)=>{let{value:n,...r}=e,i=$_(tv,e.__scopeMenu),a=n===i.value;return(0,N.jsx)(iv,{scope:e.__scopeMenu,checked:a,children:(0,N.jsx)(q_,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":xv(a),onSelect:I(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nv.displayName=tv;var rv=`MenuItemIndicator`,[iv,av]=S_(rv,{checked:!1}),ov=M.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=av(rv,n);return(0,N.jsx)(Om,{present:r||bv(a.checked)||a.checked===!0,children:(0,N.jsx)(Bd.span,{...i,ref:t,"data-state":xv(a.checked)})})});ov.displayName=rv;var sv=`MenuSeparator`,cv=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(Bd.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});cv.displayName=sv;var lv=`MenuArrow`,uv=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=w_(n);return(0,N.jsx)(Em,{...i,...r,ref:t})});uv.displayName=lv;var dv=`MenuSub`,[fv,pv]=S_(dv),mv=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=D_(dv,t),o=w_(t),[s,c]=M.useState(null),[l,u]=M.useState(null),d=Hd(i);return M.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,N.jsx)(Cm,{...o,children:(0,N.jsx)(E_,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,N.jsx)(fv,{scope:t,contentId:uf(),triggerId:uf(),trigger:s,onTriggerChange:c,children:n})})})};mv.displayName=dv;var hv=`MenuSubTrigger`,gv=M.forwardRef((e,t)=>{let n=D_(hv,e.__scopeMenu),r=O_(hv,e.__scopeMenu),i=pv(hv,e.__scopeMenu),a=F_(hv,e.__scopeMenu),o=M.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=M.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);M.useEffect(()=>u,[u]),M.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=Cd(t,i.onTriggerChange);return(0,N.jsx)(A_,{asChild:!0,...l,children:(0,N.jsx)(J_,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":yv(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,Dv(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:I(e.onPointerLeave,Dv(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||y_[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});gv.displayName=hv;var _v=`MenuSubContent`,vv=M.forwardRef((e,t)=>{let n=M_(P_,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=D_(P_,e.__scopeMenu),s=O_(P_,e.__scopeMenu),c=pv(_v,e.__scopeMenu),l=M.useRef(null),u=Cd(t,l);return(0,N.jsx)(x_.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(Om,{present:r||o.open,children:(0,N.jsx)(x_.Slot,{scope:e.__scopeMenu,children:(0,N.jsx)(B_,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:I(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:I(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=_re[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});vv.displayName=_v;function yv(e){return e?`open`:`closed`}function bv(e){return e===`indeterminate`}function xv(e){return bv(e)?`indeterminate`:e?`checked`:`unchecked`}function Sv(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wv(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Cv(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Tv(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Ev(e,t){return t?Tv({x:e.clientX,y:e.clientY},t):!1}function Dv(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Ov=k_,kv=A_,Av=N_,jv=I_,Mv=H_,Nv=W_,Pv=q_,Fv=X_,Iv=ev,Lv=nv,Rv=ov,zv=cv,Bv=uv,Vv=mv,Hv=gv,Uv=vv,Wv=`DropdownMenu`,[Gv,wre]=wd(Wv,[C_]),Kv=C_(),[qv,Jv]=Gv(Wv),Yv=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Kv(t),l=M.useRef(null),[u,d]=jm({prop:i,defaultProp:a??!1,onChange:o,caller:Wv});return(0,N.jsx)(qv,{scope:t,triggerId:uf(),triggerRef:l,contentId:uf(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,N.jsx)(Ov,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Yv.displayName=Wv;var Xv=`DropdownMenuTrigger`,Zv=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Jv(Xv,n),o=Kv(n),s=Cd(t,a.triggerRef);return(0,N.jsx)(kv,{asChild:!0,...o,children:(0,N.jsx)(Bd.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:I(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:I(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Zv.displayName=Xv;var Qv=`DropdownMenuPortal`,$v=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Kv(t);return(0,N.jsx)(Av,{...r,...n})};$v.displayName=Qv;var ey=`DropdownMenuContent`,ty=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Jv(ey,n),a=Kv(n),o=M.useRef(!1);return(0,N.jsx)(jv,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:I(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:I(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});ty.displayName=ey;var ny=`DropdownMenuGroup`,ry=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Mv,{...i,...r,ref:t})});ry.displayName=ny;var iy=`DropdownMenuLabel`,ay=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Nv,{...i,...r,ref:t})});ay.displayName=iy;var oy=`DropdownMenuItem`,sy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Pv,{...i,...r,ref:t})});sy.displayName=oy;var cy=`DropdownMenuCheckboxItem`,ly=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Fv,{...i,...r,ref:t})});ly.displayName=cy;var uy=`DropdownMenuRadioGroup`,dy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Iv,{...i,...r,ref:t})});dy.displayName=uy;var fy=`DropdownMenuRadioItem`,py=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Lv,{...i,...r,ref:t})});py.displayName=fy;var my=`DropdownMenuItemIndicator`,hy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Rv,{...i,...r,ref:t})});hy.displayName=my;var gy=`DropdownMenuSeparator`,_y=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(zv,{...i,...r,ref:t})});_y.displayName=gy;var vy=`DropdownMenuArrow`,yy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Bv,{...i,...r,ref:t})});yy.displayName=vy;var by=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=Kv(t),[s,c]=jm({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,N.jsx)(Vv,{...o,open:s,onOpenChange:c,children:n})},xy=`DropdownMenuSubTrigger`,Sy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Hv,{...i,...r,ref:t})});Sy.displayName=xy;var Cy=`DropdownMenuSubContent`,wy=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kv(n);return(0,N.jsx)(Uv,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});wy.displayName=Cy;var Ty=Yv,Ey=Zv,Dy=$v,Oy=ty,ky=ay,Ay=sy,jy=ly,My=dy,Ny=py,Py=hy,Fy=_y,Iy=by,Ly=Sy,Ry=wy,zy=`Popover`,[By,Tre]=wd(zy,[pm]),Vy=pm(),[Hy,Uy]=By(zy),Wy=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Vy(t),c=M.useRef(null),[l,u]=M.useState(!1),[d,f]=jm({prop:r,defaultProp:i??!1,onChange:a,caller:zy});return(0,N.jsx)(Cm,{...s,children:(0,N.jsx)(Hy,{scope:t,contentId:uf(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:M.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:M.useCallback(()=>u(!0),[]),onCustomAnchorRemove:M.useCallback(()=>u(!1),[]),modal:o,children:n})})};Wy.displayName=zy;var Gy=`PopoverAnchor`,Ky=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Uy(Gy,n),a=Vy(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return M.useEffect(()=>(o(),()=>s()),[o,s]),(0,N.jsx)(wm,{...a,...r,ref:t})});Ky.displayName=Gy;var qy=`PopoverTrigger`,Jy=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Uy(qy,n),a=Vy(n),o=Cd(t,i.triggerRef),s=(0,N.jsx)(Bd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":lb(i.open),...r,ref:o,onClick:I(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,N.jsx)(wm,{asChild:!0,...a,children:s})});Jy.displayName=qy;var Yy=`PopoverPortal`,[Xy,Zy]=By(Yy,{forceMount:void 0}),Qy=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Uy(Yy,t);return(0,N.jsx)(Xy,{scope:t,forceMount:n,children:(0,N.jsx)(Om,{present:n||a.open,children:(0,N.jsx)(Dm,{asChild:!0,container:i,children:r})})})};Qy.displayName=Yy;var $y=`PopoverContent`,eb=M.forwardRef((e,t)=>{let n=Zy($y,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Uy($y,e.__scopePopover);return(0,N.jsx)(Om,{present:r||a.open,children:a.modal?(0,N.jsx)(nb,{...i,ref:t}):(0,N.jsx)(rb,{...i,ref:t})})});eb.displayName=$y;var tb=Dd(`PopoverContent.RemoveScroll`),nb=M.forwardRef((e,t)=>{let n=Uy($y,e.__scopePopover),r=M.useRef(null),i=Cd(t,r),a=M.useRef(!1);return M.useEffect(()=>{let e=r.current;if(e)return _g(e)},[]),(0,N.jsx)(cg,{as:tb,allowPinchZoom:!0,children:(0,N.jsx)(ib,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:I(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),rb=M.forwardRef((e,t)=>{let n=Uy($y,e.__scopePopover),r=M.useRef(!1),i=M.useRef(!1);return(0,N.jsx)(ib,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),ib=M.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Uy($y,n),p=Vy(n);return sh(),(0,N.jsx)($m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)($d,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,N.jsx)(Tm,{"data-state":lb(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),ab=`PopoverClose`,ob=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Uy(ab,n);return(0,N.jsx)(Bd.button,{type:`button`,...r,ref:t,onClick:I(e.onClick,()=>i.onOpenChange(!1))})});ob.displayName=ab;var sb=`PopoverArrow`,cb=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Vy(n);return(0,N.jsx)(Em,{...i,...r,ref:t})});cb.displayName=sb;function lb(e){return e?`open`:`closed`}var ub=Wy,db=Ky,fb=Jy,Ere=Qy,Dre=eb,Ore=ob;function pb(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,kre(i,...t)]}function kre(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function mb(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var hb=globalThis?.document?M.useLayoutEffect:()=>{},Are=M.useInsertionEffect||hb;function gb({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=jre({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=M.useRef(e!==void 0);M.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[c,M.useCallback(t=>{if(s){let n=Mre(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function jre({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return Are(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Mre(e){return typeof e==`function`}function Nre(e){let t=M.useRef({value:e,previous:e});return M.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Pre(e){let[t,n]=M.useState(void 0);return hb(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}function Fre(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}var _b=e=>{let{present:t,children:n}=e,r=Ire(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=wl(r.ref,Lre(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null};_b.displayName=`Presence`;function Ire(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),[o,s]=Fre(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{let e=vb(r.current);a.current=o===`mounted`?e:`none`},[o]),hb(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=vb(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),hb(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=vb(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=vb(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:M.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function vb(e){return e?.animationName||`none`}function Lre(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yb(e){let t=Rre(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e,a=M.Children.toArray(r),o=a.find(Bre);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Rre(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(M.isValidElement(n)){let e=Hre(n),i=Vre(r,n.props);return n.type!==M.Fragment&&(i.ref=t?Cl(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zre=Symbol(`radix.slottable`);function Bre(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===zre}function Vre(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Hre(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bb=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=yb(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xb=`Checkbox`,[Ure,Wre]=pb(xb),[Gre,Sb]=Ure(xb);function Kre(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=gb({prop:n,defaultProp:i??!1,onChange:c,caller:xb}),[m,h]=M.useState(null),[g,_]=M.useState(null),v=M.useRef(!1),y=m?!!o||!!m.closest(`form`):!0,b={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:Ab(i)?!1:i,isFormControl:y,bubbleInput:g,setBubbleInput:_};return(0,N.jsx)(Gre,{scope:t,...b,children:qre(d)?d(b):r})}var Cb=`CheckboxTrigger`,wb=M.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Sb(Cb,e),h=wl(i,u),g=M.useRef(c);return M.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(g.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,N.jsx)(bb.button,{type:`button`,role:`checkbox`,"aria-checked":Ab(c)?`mixed`:c,"aria-required":l,"data-state":jb(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:mb(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:mb(n,e=>{d(e=>Ab(e)?!0:!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});wb.displayName=Cb;var Tb=M.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,N.jsx)(Kre,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(wb,{...d,ref:t,__scopeCheckbox:n}),e&&(0,N.jsx)(kb,{__scopeCheckbox:n})]})})});Tb.displayName=xb;var Eb=`CheckboxIndicator`,Db=M.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Sb(Eb,n);return(0,N.jsx)(_b,{present:r||Ab(a.checked)||a.checked===!0,children:(0,N.jsx)(bb.span,{"data-state":jb(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});Db.displayName=Eb;var Ob=`CheckboxBubbleInput`,kb=M.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=Sb(Ob,e),m=wl(n,p),h=Nre(a),g=Pre(r);M.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(h!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Ab(a),n.call(e,Ab(a)?!1:a),e.dispatchEvent(t)}},[f,h,a,i]);let _=M.useRef(Ab(a)?!1:a);return(0,N.jsx)(bb.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??_.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});kb.displayName=Ob;function qre(e){return typeof e==`function`}function Ab(e){return e===`indeterminate`}function jb(e){return Ab(e)?`indeterminate`:e?`checked`:`unchecked`}function Mb(e){let t=M.useRef({value:e,previous:e});return M.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Nb=`Radio`,[Jre,Pb]=wd(Nb),[Yre,Fb]=Jre(Nb);function Ib(e){let{__scopeRadio:t,checked:n=!1,children:r,disabled:i,form:a,name:o,onCheck:s,required:c,value:l=`on`,internal_do_not_use_render:u}=e,[d,f]=M.useState(null),[p,m]=M.useState(null),h={checked:n,disabled:i,required:c,name:o,form:a,value:l,control:d,setControl:f,hasConsumerStoppedPropagationRef:M.useRef(!1),isFormControl:d?!!a||!!d.closest(`form`):!0,bubbleInput:p,setBubbleInput:m,onCheck:()=>s?.()};return(0,N.jsx)(Yre,{scope:t,...h,children:Zre(u)?u(h):r})}var Lb=`RadioTrigger`,Rb=M.forwardRef(({__scopeRadio:e,onClick:t,...n},r)=>{let{checked:i,disabled:a,value:o,setControl:s,onCheck:c,hasConsumerStoppedPropagationRef:l,isFormControl:u,bubbleInput:d}=Fb(Lb,e),f=Cd(r,s);return(0,N.jsx)(Bd.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":Ub(i),"data-disabled":a?``:void 0,disabled:a,value:o,...n,ref:f,onClick:I(t,e=>{i||c(),d&&u&&(l.current=e.isPropagationStopped(),l.current||e.stopPropagation())})})});Rb.displayName=Lb;var Xre=M.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i,required:a,disabled:o,value:s,onCheck:c,form:l,...u}=e;return(0,N.jsx)(Ib,{__scopeRadio:n,checked:i,disabled:o,required:a,onCheck:c,name:r,form:l,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(Rb,{...u,ref:t,__scopeRadio:n}),e&&(0,N.jsx)(Hb,{__scopeRadio:n})]})})});Xre.displayName=Nb;var zb=`RadioIndicator`,Bb=M.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Fb(zb,n);return(0,N.jsx)(Om,{present:r||a.checked,children:(0,N.jsx)(Bd.span,{"data-state":Ub(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});Bb.displayName=zb;var Vb=`RadioBubbleInput`,Hb=M.forwardRef(({__scopeRadio:e,...t},n)=>{let{control:r,checked:i,required:a,disabled:o,name:s,value:c,form:l,bubbleInput:u,setBubbleInput:d,hasConsumerStoppedPropagationRef:f}=Fb(Vb,e),p=Cd(n,d),m=Mb(i),h=um(r);M.useEffect(()=>{let e=u;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!f.current;if(m!==i&&n){let t=new Event(`click`,{bubbles:r});n.call(e,i),e.dispatchEvent(t)}},[u,m,i,f]);let g=M.useRef(i);return(0,N.jsx)(Bd.input,{type:`radio`,"aria-hidden":!0,defaultChecked:g.current,required:a,disabled:o,name:s,value:c,form:l,...t,tabIndex:-1,ref:p,style:{...t.style,...h,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});Hb.displayName=Vb;function Zre(e){return typeof e==`function`}function Ub(e){return e?`checked`:`unchecked`}var Qre=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Wb=`RadioGroup`,[$re,eie]=wd(Wb,[t_,Pb]),Gb=t_(),Kb=Pb(),[qb,Jb]=$re(Wb),Yb=M.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:d,...f}=e,p=Gb(n),m=qg(l),[h,g]=jm({prop:a,defaultProp:i??null,onChange:d,caller:Wb});return(0,N.jsx)(qb,{scope:n,name:r,required:o,disabled:s,value:h,onValueChange:g,children:(0,N.jsx)(p_,{asChild:!0,...p,orientation:c,dir:m,loop:u,children:(0,N.jsx)(Bd.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:m,...f,ref:t})})})});Yb.displayName=Wb;var Xb=`RadioGroupItem`,Zb=`RadioGroupItemProvider`,Qb=`RadioGroupItemTrigger`,$b=`RadioGroupItemBubbleInput`;function ex(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:a}=e,o=Jb(Zb,t),s=Kb(t),c=o.disabled||r;return(0,N.jsx)(Ib,{...s,checked:o.value===n,disabled:c,required:o.required,name:o.name,value:n,onCheck:()=>o.onValueChange(n),internal_do_not_use_render:a,children:i})}var tx=M.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=Gb(n),a=Kb(n),{checked:o,disabled:s}=Fb(Qb,a.__scopeRadio),c=M.useRef(null),l=Cd(t,c),u=M.useRef(!1);return M.useEffect(()=>{let e=e=>{Qre.includes(e.key)&&(u.current=!0)},t=()=>u.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,N.jsx)(m_,{asChild:!0,...i,focusable:!s,active:o,children:(0,N.jsx)(Rb,{...a,...r,ref:l,onKeyDown:I(r.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:I(r.onFocus,()=>{u.current&&c.current?.click()})})})});tx.displayName=Qb;var nx=M.forwardRef((e,t)=>{let{__scopeRadioGroup:n,value:r,disabled:i,...a}=e;return(0,N.jsx)(ex,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(tx,{...a,ref:t,__scopeRadioGroup:n}),e&&(0,N.jsx)(rx,{__scopeRadioGroup:n})]})})});nx.displayName=Xb;var rx=M.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,N.jsx)(Hb,{...Kb(n),...r,ref:t})});rx.displayName=$b;var ix=`RadioGroupIndicator`,ax=M.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,N.jsx)(Bb,{...Kb(n),...r,ref:t})});ax.displayName=ix;function ox(e){let t=e+`CollectionProvider`,[n,r]=pb(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=yb(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(c,{ref:wl(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=yb(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=wl(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var sx=M.useId||(()=>void 0),cx=0;function lx(e){let[t,n]=M.useState(sx());return hb(()=>{e||n(e=>e??String(cx++))},[e]),e||(t?`radix-${t}`:``)}function ux(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...e)=>t.current?.(...e),[])}var dx=M.createContext(void 0);function fx(e){let t=M.useContext(dx);return e||t||`ltr`}var px=`rovingFocusGroup.onEntryFocus`,mx={bubbles:!1,cancelable:!0},hx=`RovingFocusGroup`,[gx,_x,vx]=ox(hx),[yx,bx]=pb(hx,[vx]),[xx,Sx]=yx(hx),Cx=M.forwardRef((e,t)=>(0,N.jsx)(gx.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(gx.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(wx,{...e,ref:t})})}));Cx.displayName=hx;var wx=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=M.useRef(null),p=wl(t,f),m=fx(a),[h,g]=gb({prop:o,defaultProp:s??null,onChange:c,caller:hx}),[_,v]=M.useState(!1),y=ux(l),b=_x(n),x=M.useRef(!1),[S,C]=M.useState(0);return M.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(px,y),()=>e.removeEventListener(px,y)},[y]),(0,N.jsx)(xx,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:M.useCallback(e=>g(e),[g]),onItemShiftTab:M.useCallback(()=>v(!0),[]),onFocusableItemAdd:M.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:M.useCallback(()=>C(e=>e-1),[]),children:(0,N.jsx)(bb.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:mb(e.onMouseDown,()=>{x.current=!0}),onFocus:mb(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(px,mx);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Ax([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:mb(e.onBlur,()=>v(!1))})})}),Tx=`RovingFocusGroupItem`,Ex=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=lx(),l=a||c,u=Sx(Tx,n),d=u.currentTabStopId===l,f=_x(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return M.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,N.jsx)(gx.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,N.jsx)(bb.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:mb(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:mb(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:mb(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=kx(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?jx(n,r+1):n.slice(r+1)}setTimeout(()=>Ax(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});Ex.displayName=Tx;var Dx={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Ox(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function kx(e,t,n){let r=Ox(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Dx[r]}function Ax(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Mx=Cx,Nx=Ex,Px=`Tabs`,[Fx,tie]=pb(Px,[bx]),Ix=bx(),[Lx,Rx]=Fx(Px),zx=M.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=fx(s),[d,f]=gb({prop:r,onChange:i,defaultProp:a??``,caller:Px});return(0,N.jsx)(Lx,{scope:n,baseId:lx(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,N.jsx)(bb.div,{dir:u,"data-orientation":o,...l,ref:t})})});zx.displayName=Px;var Bx=`TabsList`,Vx=M.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=Rx(Bx,n),o=Ix(n);return(0,N.jsx)(Mx,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,N.jsx)(bb.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});Vx.displayName=Bx;var Hx=`TabsTrigger`,Ux=M.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Rx(Hx,n),s=Ix(n),c=Kx(o.baseId,r),l=qx(o.baseId,r),u=r===o.value;return(0,N.jsx)(Nx,{asChild:!0,...s,focusable:!i,active:u,children:(0,N.jsx)(bb.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:mb(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:mb(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:mb(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});Ux.displayName=Hx;var Wx=`TabsContent`,Gx=M.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Rx(Wx,n),c=Kx(s.baseId,r),l=qx(s.baseId,r),u=r===s.value,d=M.useRef(u);return M.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,N.jsx)(_b,{present:i||u,children:({present:n})=>(0,N.jsx)(bb.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});Gx.displayName=Wx;function Kx(e,t){return`${e}-trigger-${t}`}function qx(e,t){return`${e}-content-${t}`}var Jx=zx,Yx=Vx,Xx=Ux,Zx=Gx;function Qx(e,[t,n]){return Math.min(n,Math.max(t,e))}var $x=[`PageUp`,`PageDown`],eS=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],tS={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},nS=`Slider`,[rS,iS,aS]=Gg(nS),[oS,nie]=wd(nS,[aS]),[sS,cS]=oS(nS),lS=M.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,g=M.useRef(new Set),_=M.useRef(0),v=M.useRef(!1),y=o===`horizontal`?fS:pS,[b=[],x]=jm({prop:u,defaultProp:l,onChange:e=>{[...g.current][_.current]?.focus({preventScroll:!0,focusVisible:v.current}),v.current=!1,d(e)}}),S=M.useRef(b);function C(e){E(e,MS(b,e))}function w(e){E(e,_.current)}function T(){let e=S.current[_.current];b[_.current]!==e&&f(b)}function E(e,t,{commit:n}={commit:!1}){let o=LS(a),s=Qx(RS(Math.round((e-r)/a)*a+r,o),[r,i]);x((e=[])=>{let r=kS(e,s,t);if(FS(r,c*a)){_.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&f(r),t?r:e}else return e})}return(0,N.jsx)(sS,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:_,thumbs:g.current,values:b,orientation:o,form:m,children:(0,N.jsx)(rS.Provider,{scope:e.__scopeSlider,children:(0,N.jsx)(rS.Slot,{scope:e.__scopeSlider,children:(0,N.jsx)(y,{"aria-disabled":s,"data-disabled":s?``:void 0,...h,ref:t,onPointerDown:I(h.onPointerDown,()=>{s||(S.current=b,v.current=!1)}),min:r,max:i,inverted:p,onSlideStart:s?void 0:C,onSlideMove:s?void 0:w,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>{s||(v.current=!0,E(r,0,{commit:!0}))},onEndKeyDown:()=>{s||(v.current=!0,E(i,b.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!s){v.current=!0;let n=$x.includes(e.key)||e.shiftKey&&eS.includes(e.key)?10:1,r=_.current,i=b[r];E(i+a*n*t,r,{commit:!0})}}})})})})});lS.displayName=nS;var[uS,dS]=oS(nS,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),fS=M.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=M.useState(null),p=Cd(t,f),m=M.useRef(void 0),h=qg(i),g=h===`ltr`,_=g&&!a||!g&&a;function v(e){let t=m.current||d.getBoundingClientRect(),i=IS([0,t.width],_?[n,r]:[r,n]);return m.current=t,i(e-t.left)}return(0,N.jsx)(uS,{scope:e.__scopeSlider,startEdge:_?`left`:`right`,endEdge:_?`right`:`left`,direction:_?1:-1,size:`width`,children:(0,N.jsx)(mS,{dir:h,"data-orientation":`horizontal`,...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=v(e.clientX);o?.(t)},onSlideMove:e=>{let t=v(e.clientX);s?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{let t=tS[_?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),pS=M.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=M.useRef(null),d=Cd(t,u),f=M.useRef(void 0),p=!i;function m(e){let t=f.current||u.current.getBoundingClientRect(),i=IS([0,t.height],p?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,N.jsx)(uS,{scope:e.__scopeSlider,startEdge:p?`bottom`:`top`,endEdge:p?`top`:`bottom`,size:`height`,direction:p?1:-1,children:(0,N.jsx)(mS,{"data-orientation":`vertical`,...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=m(e.clientY);a?.(t)},onSlideMove:e=>{let t=m(e.clientY);o?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{let t=tS[p?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),mS=M.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=cS(nS,n);return(0,N.jsx)(Bd.span,{...l,ref:t,onKeyDown:I(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):$x.concat(eS).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:I(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):r(e)}),onPointerMove:I(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:I(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),hS=`SliderTrack`,gS=M.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=cS(hS,n);return(0,N.jsx)(Bd.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});gS.displayName=hS;var _S=`SliderRange`,vS=M.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=cS(_S,n),a=dS(_S,n),o=Cd(t,M.useRef(null)),s=i.values.length,c=i.values.map(e=>AS(e,i.min,i.max)),l=s>1?Math.min(...c):0,u=100-Math.max(...c);return(0,N.jsx)(Bd.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:l+`%`,[a.endEdge]:u+`%`}})});vS.displayName=_S;var yS=`SliderThumb`,[bS,xS]=oS(yS),SS=`SliderThumbProvider`;function CS(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,a=cS(SS,t),o=iS(t),[s,c]=M.useState(null),l=M.useMemo(()=>s?o().findIndex(e=>e.ref.current===s):-1,[o,s]),u=um(s),d=s?!!a.form||!!s.closest(`form`):!0,f=a.values[l],p=n??(a.name?a.name+(a.values.length>1?`[]`:``):void 0),m=f===void 0?0:AS(f,a.min,a.max);M.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]);let h={value:f,name:p,form:a.form,isFormControl:d,index:l,thumb:s,onThumbChange:c,percent:m,size:u};return(0,N.jsx)(bS,{scope:t,...h,children:zS(i)?i(h):r})}CS.displayName=SS;var wS=`SliderThumbTrigger`,TS=M.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=cS(wS,n),a=dS(wS,n),{index:o,value:s,percent:c,size:l,onThumbChange:u}=xS(wS,n),d=Cd(t,u),f=jS(o,i.values.length),p=l?.[a.size],m=p?NS(p,c,a.direction):0;return(0,N.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[a.startEdge]:`calc(${c}% + ${m}px)`},children:(0,N.jsx)(rS.ItemSlot,{scope:n,children:(0,N.jsx)(Bd.span,{role:`slider`,"aria-label":e[`aria-label`]||f,"aria-valuemin":i.min,"aria-valuenow":s,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,tabIndex:i.disabled?void 0:0,...r,ref:d,style:s===void 0?{display:`none`}:e.style,onFocus:I(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})})})});TS.displayName=wS;var ES=M.forwardRef((e,t)=>{let{__scopeSlider:n,name:r,...i}=e;return(0,N.jsx)(CS,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(TS,{...i,ref:t,__scopeSlider:n}),r?(0,N.jsx)(OS,{__scopeSlider:n},e):null]})})});ES.displayName=yS;var DS=`SliderBubbleInput`,OS=M.forwardRef(({__scopeSlider:e,...t},n)=>{let{value:r,name:i,form:a}=xS(DS,e),o=M.useRef(null),s=Cd(o,n),c=Mb(r);return M.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(c!==r&&n){let t=new Event(`input`,{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[c,r]),(0,N.jsx)(Bd.input,{style:{display:`none`},name:i,form:a,...t,ref:s,defaultValue:r})});OS.displayName=DS;function kS(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function AS(e,t,n){return Qx(100/(n-t)*(e-t),[0,100])}function jS(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function MS(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function NS(e,t,n){let r=e/2;return(r-IS([0,50],[0,r])(t)*n)*n}function PS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function FS(e,t){if(t>0){let n=PS(e);return Math.min(...n)>=t}return!0}function IS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function LS(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes(`e`)){let[e,n]=t.split(`e`),r=e.split(`.`)[1]||``,i=Number(n);return Math.max(0,r.length-i)}let n=t.split(`.`)[1];return n?n.length:0}function RS(e,t){let n=10**t;return Math.round(e*n)/n}function zS(e){return typeof e==`function`}function BS(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var VS=e=>{switch(e){case`success`:return WS;case`info`:return KS;case`warning`:return GS;case`error`:return qS;default:return null}},HS=Array(12).fill(0),US=({visible:e,className:t})=>M.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},M.createElement(`div`,{className:`sonner-spinner`},HS.map((e,t)=>M.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),WS=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),GS=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),KS=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),qS=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),JS=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},M.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),M.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),YS=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},XS=1,ZS=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:XS++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],M.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if($S(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||XS++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},QS=(e,t)=>{let n=t?.id||XS++;return ZS.addToast({title:e,...t,id:n}),n},$S=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,eC=Object.assign(QS,{success:ZS.success,info:ZS.info,warning:ZS.warning,error:ZS.error,custom:ZS.custom,message:ZS.message,promise:ZS.promise,dismiss:ZS.dismiss,loading:ZS.loading},{getHistory:()=>ZS.toasts,getToasts:()=>ZS.getActiveToasts()});BS(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function tC(e){return e.label!==void 0}var nC=3,rC=`24px`,iC=`16px`,aC=4e3,oC=356,sC=14,cC=45,lC=200;function uC(...e){return e.filter(Boolean).join(` `)}function dC(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var fC=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=M.useState(null),[O,ee]=M.useState(null),[te,ne]=M.useState(!1),[k,A]=M.useState(!1),[re,ie]=M.useState(!1),[j,ae]=M.useState(!1),[oe,se]=M.useState(!1),[ce,le]=M.useState(0),[ue,de]=M.useState(0),fe=M.useRef(n.duration||y||aC),pe=M.useRef(null),me=M.useRef(null),he=c===0,ge=c+1<=o,_e=n.type,ve=n.dismissible!==!1,ye=n.className||``,be=n.descriptionClassName||``,xe=M.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Se=M.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Ce=M.useMemo(()=>n.duration||y||aC,[n.duration,y]),we=M.useRef(0),Te=M.useRef(0),Ee=M.useRef(0),De=M.useRef(null),[Oe,ke]=b.split(`-`),Ae=M.useMemo(()=>s.reduce((e,t,n)=>n>=xe?e:e+t.height,0),[s,xe]),je=YS(),Me=n.invert||t,Ne=_e===`loading`;Te.current=M.useMemo(()=>xe*x+Ae,[xe,Ae]),M.useEffect(()=>{fe.current=Ce},[Ce]),M.useEffect(()=>{ne(!0)},[]),M.useEffect(()=>{let e=me.current;if(e){let t=e.getBoundingClientRect().height;return de(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),M.useLayoutEffect(()=>{if(!te)return;let e=me.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,de(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[te,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Pe=M.useCallback(()=>{A(!0),le(Te.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},lC)},[n,d,a,Te]);M.useEffect(()=>{if(n.promise&&_e===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||je?(()=>{if(Ee.current<we.current){let e=new Date().getTime()-we.current;fe.current-=e}Ee.current=new Date().getTime()})():fe.current!==1/0&&(we.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Pe()},fe.current)),()=>clearTimeout(e)},[u,i,n,_e,je,Pe]),M.useEffect(()=>{n.delete&&(Pe(),n.onDismiss==null||n.onDismiss.call(n,n))},[Pe,n.delete]);function Fe(){return w?.loading?M.createElement(`div`,{className:uC(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},w.loading):M.createElement(US,{className:uC(C?.loader,n?.classNames?.loader),visible:_e===`loading`})}let Ie=n.icon||w?.[_e]||VS(_e);return M.createElement(`li`,{tabIndex:0,ref:me,className:uC(_,ye,C?.toast,n?.classNames?.toast,C?.default,C?.[_e],n?.classNames?.[_e]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":te,"data-promise":!!n.promise,"data-swiped":oe,"data-removed":k,"data-visible":ge,"data-y-position":Oe,"data-x-position":ke,"data-index":c,"data-front":he,"data-swiping":re,"data-dismissible":ve,"data-type":_e,"data-invert":Me,"data-swipe-out":j,"data-swipe-direction":O,"data-expanded":!!(u||S&&te),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${k?ce:Te.current}px`,"--initial-height":S?`auto`:`${ue}px`,...m,...n.style},onDragEnd:()=>{ie(!1),D(null),De.current=null},onPointerDown:e=>{e.button!==2&&(Ne||!ve||(pe.current=new Date,le(Te.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ie(!0),De.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(j||!ve)return;De.current=null;let e=Number(me.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(me.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-pe.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=cC||a>.11){le(Te.current),n.onDismiss==null||n.onDismiss.call(n,n),ee(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Pe(),ae(!0);return}else{var o,s;(o=me.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=me.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}se(!1),ie(!1),D(null)},onPointerMove:t=>{var n,r;if(!De.current||!ve||window.getSelection()?.toString().length>0)return;let i=t.clientY-De.current.y,a=t.clientX-De.current.x,o=e.swipeDirections??dC(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(E===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&se(!0),(n=me.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=me.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Se&&!n.jsx&&_e!==`loading`?M.createElement(`button`,{"aria-label":T,"data-disabled":Ne,"data-close-button":!0,onClick:Ne||!ve?()=>{}:()=>{Pe(),n.onDismiss==null||n.onDismiss.call(n,n)},className:uC(C?.closeButton,n?.classNames?.closeButton)},w?.close??JS):null,(_e||n.icon||n.promise)&&n.icon!==null&&(w?.[_e]!==null||n.icon)?M.createElement(`div`,{"data-icon":``,className:uC(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Fe():null,n.type===`loading`?null:Ie):null,M.createElement(`div`,{"data-content":``,className:uC(C?.content,n?.classNames?.content)},M.createElement(`div`,{"data-title":``,className:uC(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?M.createElement(`div`,{"data-description":``,className:uC(v,be,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),M.isValidElement(n.cancel)?n.cancel:n.cancel&&tC(n.cancel)?M.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{tC(n.cancel)&&ve&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Pe())},className:uC(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,M.isValidElement(n.action)?n.action:n.action&&tC(n.action)?M.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{tC(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Pe())},className:uC(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function pC(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function mC(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?iC:rC;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var hC=M.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=nC,toastOptions:g,dir:_=pC(),gap:v=sC,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=M.useState([]),C=M.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=M.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=M.useState([]),[D,O]=M.useState(!1),[ee,te]=M.useState(!1),[ne,k]=M.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),A=M.useRef(null),re=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ie=M.useRef(null),j=M.useRef(!1),ae=M.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ZS.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return M.useEffect(()=>ZS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Ed.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),M.useEffect(()=>{if(d!==`system`){k(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?k(`dark`):k(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{k(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{k(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),M.useEffect(()=>{x.length<=1&&O(!1)},[x]),M.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=A.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===A.current||A.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),M.useEffect(()=>{if(A.current)return()=>{ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null,j.current=!1)}},[A.current]),M.createElement(`section`,{ref:t,"aria-label":`${b} ${re}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?M.createElement(`ol`,{key:t,dir:_===`auto`?pC():_,tabIndex:-1,ref:A,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${oC}px`,"--gap":`${v}px`,...m,...mC(l,u)},onBlur:e=>{j.current&&!e.currentTarget.contains(e.relatedTarget)&&(j.current=!1,ie.current&&=(ie.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||j.current||(j.current=!0,ie.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{ee||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te(!0)},onPointerUp:()=>te(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>M.createElement(fC,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ee,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ae,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))}),gC=`ContextMenu`,[_C,rie]=wd(gC,[C_]),vC=C_(),[yC,bC]=_C(gC),xC=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=M.useRef(!1);{let e=M.useRef(!1);M.useEffect(()=>{i===!0&&!s.current&&!e.current&&(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[i])}let[c,l]=jm({prop:i,defaultProp:!1,onChange:r,caller:gC}),u=vC(t);return(0,N.jsx)(yC,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,N.jsx)(Ov,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})};xC.displayName=gC;var SC=`ContextMenuTrigger`,CC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=bC(SC,n),o=vC(n),s=M.useRef({x:0,y:0}),c=M.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=M.useRef(0),u=M.useCallback(()=>window.clearTimeout(l.current),[]),d=e=>{a.hasInteractedRef.current=!0,s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return M.useEffect(()=>u,[u]),M.useEffect(()=>void(r&&u()),[r,u]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(kv,{...o,virtualRef:c}),(0,N.jsx)(Bd.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:I(e.onContextMenu,e=>{u(),d(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:I(e.onPointerDown,QC(e=>{u(),a.open&&a.onOpenChange(!1),l.current=window.setTimeout(()=>d(e),700)})),onPointerMove:r?e.onPointerMove:I(e.onPointerMove,QC(u)),onPointerCancel:r?e.onPointerCancel:I(e.onPointerCancel,QC(u)),onPointerUp:r?e.onPointerUp:I(e.onPointerUp,QC(u))})]})});CC.displayName=SC;var wC=`ContextMenuPortal`,TC=e=>{let{__scopeContextMenu:t,...n}=e,r=vC(t);return(0,N.jsx)(Av,{...r,...n})};TC.displayName=wC;var EC=`ContextMenuContent`,DC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bC(EC,n),a=vC(n),o=M.useRef(!1);return(0,N.jsx)(jv,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});DC.displayName=EC;var OC=`ContextMenuGroup`,kC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Mv,{...i,...r,ref:t})});kC.displayName=OC;var AC=`ContextMenuLabel`,jC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Nv,{...i,...r,ref:t})});jC.displayName=AC;var MC=`ContextMenuItem`,NC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Pv,{...i,...r,ref:t})});NC.displayName=MC;var PC=`ContextMenuCheckboxItem`,FC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Fv,{...i,...r,ref:t})});FC.displayName=PC;var IC=`ContextMenuRadioGroup`,LC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Iv,{...i,...r,ref:t})});LC.displayName=IC;var RC=`ContextMenuRadioItem`,zC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Lv,{...i,...r,ref:t})});zC.displayName=RC;var BC=`ContextMenuItemIndicator`,VC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Rv,{...i,...r,ref:t})});VC.displayName=BC;var HC=`ContextMenuSeparator`,UC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(zv,{...i,...r,ref:t})});UC.displayName=HC;var WC=`ContextMenuArrow`,GC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Bv,{...i,...r,ref:t})});GC.displayName=WC;var KC=`ContextMenuSub`,qC=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=vC(t),[s,c]=jm({prop:i,defaultProp:a??!1,onChange:r,caller:KC});return(0,N.jsx)(Vv,{...o,open:s,onOpenChange:c,children:n})};qC.displayName=KC;var JC=`ContextMenuSubTrigger`,YC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Hv,{...i,...r,ref:t})});YC.displayName=JC;var XC=`ContextMenuSubContent`,ZC=M.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=vC(n);return(0,N.jsx)(Uv,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});ZC.displayName=XC;function QC(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var $C=xC,ew=CC,tw=TC,nw=DC,rw=jC,iw=NC,aw=FC,ow=LC,sw=zC,cw=VC,lw=UC,uw=qC,dw=YC,fw=ZC,pw=Object.defineProperty,mw=(e,t)=>pw(e,`name`,{value:t,configurable:!0});function hw(e,[t,n]){return Math.min(n,Math.max(t,e))}mw(hw,`clamp`);var gw=Object.defineProperty,_w=(e,t)=>gw(e,`name`,{value:t,configurable:!0}),vw=!!(typeof window<`u`&&window.document&&window.document.createElement);function yw(e,t,{checkForDefaultPrevented:n=!0}={}){return _w(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}_w(yw,`composeEventHandlers`);function bw(e){if(!vw)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}_w(bw,`getOwnerWindow`);function xw(e){if(!vw)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}_w(xw,`getOwnerDocument`);function Sw(e,t=!1){let{activeElement:n}=xw(e);if(!n?.nodeName)return null;if(Cw(n)&&n.contentDocument)return Sw(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=xw(n).getElementById(e);if(t)return t}}return n}_w(Sw,`getActiveElement`);function Cw(e){return e.tagName===`IFRAME`}_w(Cw,`isFrame`);var ww=Object.defineProperty,Tw=(e,t)=>ww(e,`name`,{value:t,configurable:!0});function Ew(e,t){let n=M.createContext(t);n.displayName=e+`Context`;let r=Tw(e=>{let{children:t,...r}=e,i=M.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=M.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Tw(i,`useContext`),[r,i]}Tw(Ew,`createContext`);function Dw(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Tw(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=M.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Tw(s,`useContext`),[o,s]}Tw(r,`createContext`);let i=Tw(()=>{let t=n.map(e=>M.createContext(e));return Tw(function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Ow(i,...t)]}Tw(Dw,`createContextScope`);function Ow(...e){let t=e[0];if(e.length===1)return t;let n=Tw(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Tw(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Tw(Ow,`composeContextScopes`);var kw=Object.defineProperty,Aw=(e,t)=>kw(e,`name`,{value:t,configurable:!0});function jw(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Aw(jw,`setRef`);function Mw(...e){return t=>{let n=!1,r=e.map(e=>{let r=jw(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():jw(e[t],null)}}}}Aw(Mw,`composeRefs`);function Nw(...e){return M.useCallback(Mw(...e),e)}Aw(Nw,`useComposedRefs`);var Pw=Object.defineProperty,Fw=(e,t)=>Pw(e,`name`,{value:t,configurable:!0});function Iw(e){let t=M.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ww(r)&&typeof Jw==`function`&&(r=Jw(r._payload)),M.Children.forEach(r,e=>{if(Hw(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ww(n)&&typeof Jw==`function`&&(n=Jw(n._payload)),a=zw(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=M.cloneElement(a,void 0,s):!o&&M.Children.count(r)===1&&M.isValidElement(r)&&(a=r);let c=a?Vw(a):void 0,l=Nw(n,c);if(!a){if(r||r===0)throw Error(o?qw(e):Kw(e));return r}let u=Bw(i,a.props??{});return a.type!==M.Fragment&&(u.ref=n?l:c),M.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Fw(Iw,`createSlot`);var Lw=Symbol.for(`radix.slottable`);function Rw(e){let t=Fw(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Lw,t}Fw(Rw,`createSlottable`);var zw=Fw((e,t)=>{if(`child`in e.props){let t=e.props.child;return M.isValidElement(t)?M.cloneElement(t,void 0,e.props.children(t.props.children)):null}return M.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Bw(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Fw(Bw,`mergeProps`);function Vw(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Fw(Vw,`getElementRef`);function Hw(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Lw}Fw(Hw,`isSlottable`);var Uw=Symbol.for(`react.lazy`);function Ww(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Uw&&`_payload`in e&&Gw(e._payload)}Fw(Ww,`isLazyComponent`);function Gw(e){return typeof e==`object`&&!!e&&`then`in e}Fw(Gw,`isPromiseLike`);var Kw=Fw(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),qw=Fw(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Jw=M.use,Yw=Object.defineProperty,Xw=(e,t)=>Yw(e,`name`,{value:t,configurable:!0});function Zw(e){let t=e+`CollectionProvider`,[n,r]=Dw(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Xw(e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Iw(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(c,{ref:Nw(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Iw(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=Nw(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Xw(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Xw(Zw,`createCollection`);var Qw=new WeakMap,$w=class e extends Map{static{Xw(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Qw.set(this,!0)}set(e,t){return Qw.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=nT(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t===void 0?!1:this.delete(t)}at(e){let t=eT(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=eT(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eT(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function eT(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=tT(e,t);return n===-1?void 0:e[n]}Xw(eT,`at`);function tT(e,t){let n=e.length,r=nT(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Xw(tT,`toSafeIndex`);function nT(e){return e!==e||e===0?0:Math.trunc(e)}Xw(nT,`toSafeInteger`);function rT(e){let t=e+`CollectionProvider`,[n,r]=Dw(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new $w,setItemMap:Xw(()=>void 0,`setItemMap`)}),o=Xw(({state:e,...t})=>e?(0,N.jsx)(c,{...t,state:e}):(0,N.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Xw(e=>{let t=h();return(0,N.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Xw(e=>{let{scope:t,children:n,state:r}=e,a=M.useRef(null),[o,s]=M.useState(null),c=Nw(a,s),[l,u]=r;return M.useEffect(()=>{if(!o)return;let e=sT(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,N.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Iw(l),d=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(u,{ref:Nw(t,a(l,n).collectionRef),children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Iw(f),m=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),[s,c]=M.useState(null),l=Nw(t,o,c),{setItemMap:u}=a(f,n),d=M.useRef(i);iT(d.current,i)||(d.current=i);let m=d.current;return M.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(oT):(t.set(s,{...e,element:s}),t.toSorted(oT)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new $w(e)))}},[s,m,u]),(0,N.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return M.useState(new $w)}Xw(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Xw(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Xw(rT,`createCollection`);function iT(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Xw(iT,`shallowEqual`);function aT(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Xw(aT,`isElementPreceding`);function oT(e,t){return!e[1].element||!t[1].element?0:aT(e[1].element,t[1].element)?-1:1}Xw(oT,`sortByDocumentPosition`);function sT(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Xw(sT,`getChildListObserver`);var cT=Object.defineProperty,lT=(e,t)=>cT(e,`name`,{value:t,configurable:!0}),uT=M.createContext(void 0);function dT(e){let t=M.useContext(uT);return e||t||`ltr`}lT(dT,`useDirection`);var fT=Object.defineProperty,pT=(e,t)=>fT(e,`name`,{value:t,configurable:!0}),mT=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Iw(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hT(e,t){e&&Ed.flushSync(()=>e.dispatchEvent(t))}pT(hT,`dispatchDiscreteCustomEvent`);var gT=Object.defineProperty,_T=(e,t)=>gT(e,`name`,{value:t,configurable:!0});function vT(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}_T(vT,`useCallbackRef`);var yT=Object.defineProperty,bT=(e,t)=>yT(e,`name`,{value:t,configurable:!0}),xT=`dismissableLayer.update`,ST=`dismissableLayer.pointerDownOutside`,CT=`dismissableLayer.focusOutside`,wT,TT=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ET=M.forwardRef(bT(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=M.useContext(TT),[d,f]=M.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=M.useState({}),h=Nw(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=M.useRef(!1),C=kT(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:M.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=AT(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=vT(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return M.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),M.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wT=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jT(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=wT))}},[d,p,n,u]),M.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jT())},[d,u]),M.useEffect(()=>{let e=bT(()=>m({}),`handleUpdate`);return document.addEventListener(xT,e),()=>document.removeEventListener(xT,e)},[]),(0,N.jsx)(mT.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:yw(e.onFocusCapture,w.onFocusCapture),onBlurCapture:yw(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:yw(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function DT(){let e=M.useContext(TT),[t,n]=M.useState(null);return M.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}bT(DT,`useDismissableLayerSurface`);var OT=bT(()=>!0,`IS_TRUE`);function kT(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=OT}=t,s=vT(e),c=M.useRef(!1),l=M.useRef(!1),u=M.useRef(new Map),d=M.useRef(()=>{});return M.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}bT(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}bT(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}bT(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}bT(p,`handleInteractionBubble`);let m=bT(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||MT(ST,s,p,{discrete:!0})};if(bT(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:bT(()=>c.current=!0,`onPointerDownCapture`)}}bT(kT,`usePointerDownOutside`);function AT(e,t=globalThis?.document){let n=vT(e),r=M.useRef(!1);return M.useEffect(()=>{let e=bT(e=>{e.target&&!r.current&&MT(CT,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:bT(()=>r.current=!0,`onFocusCapture`),onBlurCapture:bT(()=>r.current=!1,`onBlurCapture`)}}bT(AT,`useFocusOutside`);function jT(){let e=new CustomEvent(xT);document.dispatchEvent(e)}bT(jT,`dispatchUpdate`);function MT(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?hT(i,a):i.dispatchEvent(a)}bT(MT,`handleAndDispatchCustomEvent`);var NT=Object.defineProperty,PT=(e,t)=>NT(e,`name`,{value:t,configurable:!0}),FT=0,IT=null;function LT(e){return RT(),e.children}PT(LT,`FocusGuards`);function RT(){M.useEffect(()=>{IT||={start:zT(),end:zT()};let{start:e,end:t}=IT;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),FT++,()=>{FT===1&&(IT?.start.remove(),IT?.end.remove(),IT=null),FT=Math.max(0,FT-1)}},[])}PT(RT,`useFocusGuards`);function zT(){let 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}PT(zT,`createFocusGuard`);var BT=Object.defineProperty,VT=(e,t)=>BT(e,`name`,{value:t,configurable:!0}),HT=`focusScope.autoFocusOnMount`,UT=`focusScope.autoFocusOnUnmount`,WT={bubbles:!1,cancelable:!0},GT=M.forwardRef(VT(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=M.useState(null),l=vT(i),u=vT(a),d=M.useRef(null),f=Nw(t,c),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:QT(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||QT(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&QT(s)};VT(e,`handleFocusIn`),VT(t,`handleFocusOut`),VT(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),M.useEffect(()=>{if(s){$T.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(HT,WT);s.addEventListener(HT,l),s.dispatchEvent(t),t.defaultPrevented||(KT(nE(JT(s)),{select:!0}),document.activeElement===e&&QT(s))}return()=>{s.removeEventListener(HT,l),setTimeout(()=>{let t=new CustomEvent(UT,WT);s.addEventListener(UT,u),s.dispatchEvent(t),t.defaultPrevented||QT(e??document.body,{select:!0}),s.removeEventListener(UT,u),$T.remove(p)},0)}}},[s,l,u,p]);let m=M.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=qT(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&QT(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&QT(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(mT.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function KT(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(QT(r,{select:t}),document.activeElement!==n)return}VT(KT,`focusFirst`);function qT(e){let t=JT(e);return[YT(t,e),YT(t.reverse(),e)]}VT(qT,`getTabbableEdges`);function JT(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:VT(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}VT(JT,`getTabbableCandidates`);function YT(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):XT(r,{upTo:t})))return r}VT(YT,`findVisible`);function XT(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}VT(XT,`isHidden`);function ZT(e){return e instanceof HTMLInputElement&&`select`in e}VT(ZT,`isSelectableInput`);function QT(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ZT(e)&&t&&e.select()}}VT(QT,`focus`);var $T=eE();function eE(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=tE(e,t),e.unshift(t)},remove(t){e=tE(e,t),e[0]?.resume()}}}VT(eE,`createFocusScopesStack`);function tE(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}VT(tE,`arrayRemove`);function nE(e){return e.filter(e=>e.tagName!==`A`)}VT(nE,`removeLinks`);var rE=globalThis?.document?M.useLayoutEffect:()=>{},iE=Object.defineProperty,aE=(e,t)=>iE(e,`name`,{value:t,configurable:!0}),oE=M.useId||(()=>void 0),sE=0;function cE(e){let[t,n]=M.useState(oE());return rE(()=>{e||n(e=>e??String(sE++))},[e]),e||(t?`radix-${t}`:``)}aE(cE,`useId`);var lE=Object.defineProperty,uE=(e,t)=>lE(e,`name`,{value:t,configurable:!0});function dE(e){let[t,n]=M.useState(void 0);return rE(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}uE(dE,`useSize`);var fE=Object.defineProperty,pE=(e,t)=>fE(e,`name`,{value:t,configurable:!0}),mE=`Popper`,[hE,gE]=Dw(mE),[_E,vE]=hE(mE),yE=pE(e=>{let{__scopePopper:t,children:n}=e,[r,i]=M.useState(null),[a,o]=M.useState(void 0);return(0,N.jsx)(_E,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),bE=`PopperAnchor`,xE=M.forwardRef(pE(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=vE(bE,n),o=M.useRef(null),s=a.onAnchorChange,c=Nw(t,M.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=M.useRef(null);M.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&DE(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,N.jsx)(mT.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),SE=`PopperContent`,[CE,iie]=hE(SE),wE=M.forwardRef(pE(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=vE(SE,n),[_,v]=M.useState(null),y=Nw(t,v),[b,x]=M.useState(null),S=dE(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,ee={padding:E,boundary:D.filter(TE),altBoundary:O},{refs:te,floatingStyles:ne,placement:k,isPositioned:A,middlewareData:re}=tm({strategy:`fixed`,placement:T,whileElementsMounted:pE((...e)=>Hp(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[nm({mainAxis:i+w,alignmentAxis:o}),c&&rm({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?im():void 0,...ee}),c&&am({...ee}),om({...ee,apply:pE(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&cm({element:b,padding:s}),EE({arrowWidth:C,arrowHeight:w}),f&&sm({strategy:`referenceHidden`,...ee,boundary:O?ee.boundary:void 0})]}),ie=g.setPlacementState;rE(()=>(ie(k),()=>{ie(void 0)}),[k,ie]);let[j,ae]=DE(k),oe=vT(m);rE(()=>{A&&oe?.()},[A,oe]);let se=re.arrow?.x,ce=re.arrow?.y,le=re.arrow?.centerOffset!==0,[ue,de]=M.useState();return rE(()=>{_&&de(window.getComputedStyle(_).zIndex)},[_]),(0,N.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:A?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(` `),...re.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,N.jsx)(CE,{scope:n,placedSide:j,placedAlign:ae,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,N.jsx)(mT.div,{"data-side":j,"data-align":ae,...h,ref:y,style:{...h.style,animation:A?h.style?.animation:`none`}})})})},`PopperContent`));function TE(e){return e!==null}pE(TE,`isNotNull`);var EE=pE(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=DE(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function DE(e){let[t,n=`center`]=e.split(`-`);return[t,n]}pE(DE,`getSideAndAlignFromPlacement`);var OE=yE,kE=xE,AE=wE,jE=Object.defineProperty,ME=M.forwardRef(((e,t)=>jE(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=M.useState(!1);rE(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Ed.createPortal((0,N.jsx)(mT.div,{...r,ref:t}),o):null},`Portal`)),NE=Object.defineProperty,PE=(e,t)=>NE(e,`name`,{value:t,configurable:!0});function FE(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}PE(FE,`useStateMachine`);var IE=PE(e=>{let{present:t,children:n}=e,r=LE(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=zE(r.ref,VE(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null},`Presence`);function LE(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),o=M.useRef(void 0),[s,c]=FE(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{s===`mounted`?(a.current=o.current??BE(r.current),o.current=void 0):a.current=`none`},[s]),rE(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=BE(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),rE(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=PE(a=>{let o=BE(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=PE(e=>{e.target===t&&(a.current=BE(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:M.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=BE(t)}else r.current=null;n(e)},[])}}PE(LE,`usePresence`);function RE(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}PE(RE,`setRef`);function zE(...e){let t=M.useRef(e);return t.current=e,M.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=RE(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():RE(n[e],null)}}},[])}PE(zE,`useStableComposedRefs`);function BE(e){return e?.animationName||`none`}PE(BE,`getAnimationName`);function VE(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}PE(VE,`getElementRef`);var HE=Object.defineProperty,UE=(e,t)=>HE(e,`name`,{value:t,configurable:!0}),WE=M.useEffectEvent,GE=M.useInsertionEffect;function KE(e){if(typeof WE==`function`)return WE(e);let t=M.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof GE==`function`?GE(()=>{t.current=e}):rE(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}UE(KE,`useEffectEvent`);var qE=Object.defineProperty,JE=(e,t)=>qE(e,`name`,{value:t,configurable:!0}),YE=M.useInsertionEffect||rE;function XE({prop:e,defaultProp:t,onChange:n=JE(()=>{},`onChange`),caller:r}){let[i,a,o]=ZE({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,M.useCallback(t=>{if(s){let n=QE(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}JE(XE,`useControllableState`);function ZE({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return YE(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}JE(ZE,`useUncontrolledState`);function QE(e){return typeof e==`function`}JE(QE,`isFunction`);var $E=Symbol(`RADIX:SYNC_STATE`);function eD(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=KE(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=M.useReducer((t,n)=>{if(n.type===$E)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=M.useRef(p);M.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=M.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return M.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:$E,state:i})},[i,d.state,c]),[h,f]}JE(eD,`useControllableStateReducer`);var tD=Object.defineProperty,nD=(e,t)=>tD(e,`name`,{value:t,configurable:!0});function rD(e){let t=M.useRef({value:e,previous:e});return M.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}nD(rD,`usePrevious`);var iD=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`}),aD=Object.defineProperty,oD=(e,t)=>aD(e,`name`,{value:t,configurable:!0}),sD=[` `,`Enter`,`ArrowUp`,`ArrowDown`],cD=[` `,`Enter`],lD=`Select`,[uD,dD,fD]=Zw(lD),[pD,aie]=Dw(lD,[fD,gE]),mD=gE(),[hD,gD]=pD(lD),[_D,vD]=pD(lD);function yD(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=mD(t),[_,v]=M.useState(null),[y,b]=M.useState(null),[x,S]=M.useState(!1),C=dT(l),[w,T]=XE({prop:r,defaultProp:i??!1,onChange:a,caller:lD}),[E,D]=XE({prop:o,defaultProp:s,onChange:c,caller:lD}),O=M.useRef(null),ee=M.useRef(E);M.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=oD(()=>D(ee.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let te=_?!!m||!!_.closest(`form`):!0,[ne,k]=M.useState(new Set),A=cE(),re=Array.from(ne).map(e=>e.props.value).join(`;`),ie=M.useCallback(e=>{k(t=>new Set(t).add(e))},[]),j=M.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:A,value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:ne,nativeSelectKey:re,isFormControl:te};return(0,N.jsx)(OE,{...g,children:(0,N.jsx)(hD,{scope:t,...ae,children:(0,N.jsx)(uD.Provider,{scope:t,children:(0,N.jsx)(_D,{scope:t,onNativeOptionAdd:ie,onNativeOptionRemove:j,children:$D(h)?h(ae):n})})})})}oD(yD,`SelectProvider`);var bD=oD(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,N.jsx)(yD,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,N.jsxs)(N.Fragment,{children:[n,e?(0,N.jsx)(QD,{__scopeSelect:t}):null]})})},`Select`),xD=`SelectTrigger`,SD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=mD(n),o=gD(xD,n),s=o.disabled||r,c=Nw(t,o.onTriggerChange),l=dD(n),u=M.useRef(`touch`),[d,f,p]=tO(e=>{let t=l().filter(e=>!e.disabled),n=nO(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=oD(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,N.jsx)(kE,{asChild:!0,...a,children:(0,N.jsx)(mT.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":eO(o.value)?``:void 0,...i,ref:c,onClick:yw(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:yw(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:yw(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&sD.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),CD=`SelectValue`,wD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=gD(CD,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=Nw(t,c.onValueNodeChange);rE(()=>{l(u)},[l,u]);let f=eO(c.value);return(0,N.jsx)(mT.span,{...s,asChild:f?!1:s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,N.jsx)(M.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),TD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,N.jsx)(mT.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[ED,DD]=pD(`SelectPortal`,{forceMount:void 0}),OD=oD(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,N.jsx)(ED,{scope:e.__scopeSelect,forceMount:n,children:(0,N.jsx)(ME,{asChild:!0,...r})})},`SelectPortal`),kD=`SelectContent`,AD=M.forwardRef(oD(function(e,t){let n=DD(kD,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=gD(kD,e.__scopeSelect),[o,s]=M.useState();return rE(()=>{s(new DocumentFragment)},[]),(0,N.jsx)(IE,{present:r||a.open,children:({present:e})=>e?(0,N.jsx)(ID,{...i,ref:t}):(0,N.jsx)(jD,{...i,fragment:o})})},`SelectContent`)),jD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Ed.createPortal((0,N.jsx)(ND,{scope:n,children:(0,N.jsx)(uD.Slot,{scope:n,children:(0,N.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),MD=10,[ND,PD]=pD(kD),FD=Iw(`SelectContent.RemoveScroll`),ID=M.forwardRef(oD(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=gD(kD,n),[y,b]=M.useState(null),[x,S]=M.useState(null),C=Nw(t,b),[w,T]=M.useState(null),[E,D]=M.useState(null),O=dD(n),[ee,te]=M.useState(!1),ne=M.useRef(!1);M.useEffect(()=>{if(y)return _g(y)},[y]),RT();let k=M.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),A=M.useCallback(()=>k([w,y]),[k,w,y]);M.useEffect(()=>{ee&&A()},[ee,A]);let{onOpenChange:re,triggerPointerDownPosRef:ie}=v;M.useEffect(()=>{if(y){let e={x:0,y:0},t=oD(t=>{e={x:Math.abs(Math.round(t.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ie.current?.y??0))}},`handlePointerMove`),n=oD(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||re(!1),document.removeEventListener(`pointermove`,t),ie.current=null},`handlePointerUp`);return ie.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,re,ie]),M.useEffect(()=>{let e=oD(()=>re(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[re]);let[j,ae]=tO(e=>{let t=O().filter(e=>!e.disabled),n=nO(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),oe=M.useCallback((e,t,n)=>{let r=!ne.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(ne.current=!0))},[v.value]),se=M.useCallback(()=>y?.focus(),[y]),ce=M.useCallback((e,t,n)=>{let r=!ne.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),le=r===`popper`?RD:LD,ue=le===RD?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,N.jsx)(ND,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:oe,selectedItem:w,onItemLeave:se,itemTextRefCallback:ce,focusSelectedItem:A,selectedItemText:E,position:r,isPositioned:ee,searchRef:j,children:(0,N.jsx)(cg,{as:FD,allowPinchZoom:!0,children:(0,N.jsx)(GT,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:yw(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,N.jsx)(ET,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,N.jsx)(le,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...ue,onPlaced:()=>te(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:yw(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ae(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>k(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),LD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=gD(kD,n),o=PD(kD,n),[s,c]=M.useState(null),[l,u]=M.useState(null),d=Nw(t,u),f=dD(n),p=M.useRef(!1),m=M.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=M.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-MD,d=hw(a,[MD,Math.max(MD,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-MD,d=hw(a,[MD,Math.max(MD,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-MD*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-MD,D=c-E,O=g.offsetHeight/2,ee=g.offsetTop+O,te=m+v+ee,ne=x-te;if(te<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=te+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+ne;s.style.height=t+`px`,h.scrollTop=te-E+h.offsetTop}s.style.margin=`${MD}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);rE(()=>y(),[y]);let[b,x]=M.useState();return rE(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,N.jsx)(zD,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:M.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,N.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,N.jsx)(mT.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),RD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=MD,...a}=e,o=mD(n);return(0,N.jsx)(AE,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})},`SelectPopperPosition`)),[zD,BD]=pD(kD,{}),VD=`SelectViewport`,HD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=PD(VD,n),o=BD(VD,n),s=Nw(t,a.onViewportChange),c=M.useRef(0);return(0,N.jsxs)(N.Fragment,{children:[(0,N.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:r}),(0,N.jsx)(uD.Slot,{scope:n,children:(0,N.jsx)(mT.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:yw(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-MD*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[oie,sie]=pD(`SelectGroup`),UD=`SelectItem`,[WD,GD]=pD(UD),KD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=gD(UD,n),c=PD(UD,n),l=s.value===r,[u,d]=M.useState(a??``),[f,p]=M.useState(!1),m=Nw(t,vT(e=>c.itemRefCallback?.(e,r,i))),h=cE(),g=M.useRef(`touch`),_=oD(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,N.jsx)(WD,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:M.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,N.jsx)(uD.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,N.jsx)(mT.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:yw(o.onFocus,()=>p(!0)),onBlur:yw(o.onBlur,()=>p(!1)),onClick:yw(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:yw(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:yw(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:yw(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:yw(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:yw(o.onKeyDown,e=>{i||e.target!==e.currentTarget||c.searchRef?.current!==``&&e.key===` `||(cD.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),qD=`SelectItemText`,JD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=gD(qD,n),s=PD(qD,n),c=GD(qD,n),l=vD(qD,n),[u,d]=M.useState(null),f=vT(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=Nw(t,d,c.onItemTextChange,f),m=u?.textContent,h=M.useMemo(()=>(0,N.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return rE(()=>(g(h),()=>_(h)),[g,_,h]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(mT.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!eO(o.value)?Ed.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),YD=`SelectItemIndicator`,XD=M.forwardRef(oD(function(e,t){let{__scopeSelect:n,...r}=e;return GD(YD,n).isSelected?(0,N.jsx)(mT.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),ZD=`SelectBubbleInput`,QD=M.forwardRef(oD(function({__scopeSelect:e,...t},n){let r=gD(ZD,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=M.useRef(null),m=Nw(n,p),h=i??``,g=rD(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return M.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,N.jsxs)(mT.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...iD,...t.style},ref:m,defaultValue:h,children:[eO(i)&&!_?(0,N.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function $D(e){return typeof e==`function`}oD($D,`isFunction`);function eO(e){return e===``||e===void 0}oD(eO,`shouldShowPlaceholder`);function tO(e){let t=vT(e),n=M.useRef(``),r=M.useRef(0),i=M.useCallback(e=>{let i=n.current+e;t(i),oD((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=M.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return M.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}oD(tO,`useTypeaheadSearch`);function nO(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=rO(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}oD(nO,`findNextItem`);function rO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}oD(rO,`wrapArray`);function iO(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function aO(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var oO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cO={};function lO(e,t){return((t||cO).jsx?sO:oO).test(e)}var cie=/[ \t\n\f\r]/g;function lie(e){return typeof e==`object`?e.type===`text`?uO(e.value):!1:uO(e)}function uO(e){return e.replace(cie,``)===``}var dO=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};dO.prototype.normal={},dO.prototype.property={},dO.prototype.space=void 0;function fO(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new dO(n,r,t)}function pO(e){return e.toLowerCase()}var mO=class{constructor(e,t){this.attribute=t,this.property=e}};mO.prototype.attribute=``,mO.prototype.booleanish=!1,mO.prototype.boolean=!1,mO.prototype.commaOrSpaceSeparated=!1,mO.prototype.commaSeparated=!1,mO.prototype.defined=!1,mO.prototype.mustUseProperty=!1,mO.prototype.number=!1,mO.prototype.overloadedBoolean=!1,mO.prototype.property=``,mO.prototype.spaceSeparated=!1,mO.prototype.space=void 0;var hO=r({boolean:()=>gO,booleanish:()=>_O,commaOrSpaceSeparated:()=>xO,commaSeparated:()=>bO,number:()=>L,overloadedBoolean:()=>vO,spaceSeparated:()=>yO}),uie=0,gO=SO(),_O=SO(),vO=SO(),L=SO(),yO=SO(),bO=SO(),xO=SO();function SO(){return 2**++uie}var CO=Object.keys(hO),wO=class extends mO{constructor(e,t,n,r){let i=-1;if(super(e,t),TO(this,`space`,r),typeof n==`number`)for(;++i<CO.length;){let e=CO[i];TO(this,CO[i],(n&hO[e])===hO[e])}}};wO.prototype.defined=!0;function TO(e,t,n){n&&(e[t]=n)}function EO(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new wO(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[pO(r)]=r,n[pO(a.attribute)]=r}return new dO(t,n,e.space)}var DO=EO({properties:{ariaActiveDescendant:null,ariaAtomic:_O,ariaAutoComplete:null,ariaBusy:_O,ariaChecked:_O,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:yO,ariaCurrent:null,ariaDescribedBy:yO,ariaDetails:null,ariaDisabled:_O,ariaDropEffect:yO,ariaErrorMessage:null,ariaExpanded:_O,ariaFlowTo:yO,ariaGrabbed:_O,ariaHasPopup:null,ariaHidden:_O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yO,ariaLevel:L,ariaLive:null,ariaModal:_O,ariaMultiLine:_O,ariaMultiSelectable:_O,ariaOrientation:null,ariaOwns:yO,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:_O,ariaReadOnly:_O,ariaRelevant:null,ariaRequired:_O,ariaRoleDescription:yO,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:_O,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function OO(e,t){return t in e?e[t]:t}function kO(e,t){return OO(e,t.toLowerCase())}var die=EO({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:bO,acceptCharset:yO,accessKey:yO,action:null,allow:null,allowFullScreen:gO,allowPaymentRequest:gO,allowUserMedia:gO,alpha:gO,alt:null,as:null,async:gO,autoCapitalize:null,autoComplete:yO,autoFocus:gO,autoPlay:gO,blocking:yO,capture:null,charSet:null,checked:gO,cite:null,className:yO,closedBy:null,colorSpace:null,cols:L,colSpan:L,command:null,commandFor:null,content:null,contentEditable:_O,controls:gO,controlsList:yO,coords:L|bO,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gO,defer:gO,dir:null,dirName:null,disabled:gO,download:vO,draggable:_O,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gO,formTarget:null,headers:yO,height:L,hidden:vO,high:L,href:null,hrefLang:null,htmlFor:yO,httpEquiv:yO,id:null,imageSizes:null,imageSrcSet:null,inert:gO,inputMode:null,integrity:null,is:null,isMap:gO,itemId:null,itemProp:yO,itemRef:yO,itemScope:gO,itemType:yO,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gO,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:gO,muted:gO,name:null,nonce:null,noModule:gO,noValidate:gO,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:gO,optimum:L,pattern:null,ping:yO,placeholder:null,playsInline:gO,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gO,referrerPolicy:null,rel:yO,required:gO,reversed:gO,rows:L,rowSpan:L,sandbox:yO,scope:null,scoped:gO,seamless:gO,selected:gO,shadowRootClonable:gO,shadowRootCustomElementRegistry:gO,shadowRootDelegatesFocus:gO,shadowRootMode:null,shadowRootSerializable:gO,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:_O,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:gO,useMap:null,value:_O,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yO,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gO,declare:gO,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:gO,noHref:gO,noShade:gO,noWrap:gO,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:_O,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:gO,disablePictureInPicture:gO,disableRemotePlayback:gO,exportParts:bO,part:yO,prefix:null,property:null,results:L,security:null,unselectable:null},space:`html`,transform:kO}),fie=EO({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`,maskType:`mask-type`,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:xO,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:yO,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:gO,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:bO,g2:bO,glyphName:bO,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:xO,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yO,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xO,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xO,rev:xO,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xO,requiredFeatures:xO,requiredFonts:xO,requiredFormats:xO,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:xO,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xO,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xO,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:OO}),AO=EO({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()}}),jO=EO({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:kO}),MO=EO({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),pie={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`},mie=/[A-Z]/g,NO=/-[a-z]/g,hie=/^data[-\w.:]+$/i;function PO(e,t){let n=pO(t),r=t,i=mO;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&hie.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(NO,_ie);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!NO.test(e)){let n=e.replace(mie,gie);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=wO}return new i(r,t)}function gie(e){return`-`+e.toLowerCase()}function _ie(e){return e.charAt(1).toUpperCase()}var FO=fO([DO,die,AO,jO,MO],`html`),IO=fO([DO,fie,AO,jO,MO],`svg`);function LO(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function RO(e){return e.join(` `).trim()}var vie=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
45
+ `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),yie=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(vie());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),bie=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),xie=i(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(yie()),r=bie();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),zO=VO(`end`),BO=VO(`start`);function VO(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function HO(e){let t=BO(e),n=zO(e);if(t&&n)return{start:t,end:n}}function UO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?GO(e.position):`start`in e||`end`in e?GO(e):`line`in e||`column`in e?WO(e):``}function WO(e){return KO(e&&e.line)+`:`+KO(e&&e.column)}function GO(e){return WO(e&&e.start)+`-`+WO(e&&e.end)}function KO(e){return e&&typeof e==`number`?e:1}var qO=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=UO(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};qO.prototype.file=``,qO.prototype.name=``,qO.prototype.reason=``,qO.prototype.message=``,qO.prototype.stack=``,qO.prototype.column=void 0,qO.prototype.line=void 0,qO.prototype.ancestors=void 0,qO.prototype.cause=void 0,qO.prototype.fatal=void 0,qO.prototype.place=void 0,qO.prototype.ruleId=void 0,qO.prototype.source=void 0;var Sie=n(xie(),1),JO={}.hasOwnProperty,Cie=new Map,wie=/[A-Z]/g,Tie=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Eie=new Set([`td`,`th`]),YO=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Die(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Fie(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Pie(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,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`?IO:FO,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=XO(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function XO(e,t,n){if(t.type===`element`)return Oie(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return kie(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return jie(e,t,n);if(t.type===`mdxjsEsm`)return Aie(e,t);if(t.type===`root`)return Mie(e,t,n);if(t.type===`text`)return Nie(e,t)}function Oie(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=IO,e.schema=i),e.ancestors.push(t);let a=ek(e,t.tagName,!1),o=Iie(e,t),s=$O(e,t);return Tie.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!lie(e):!0})),ZO(e,o,a,t),QO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function kie(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}tk(e,t.position)}function Aie(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tk(e,t.position)}function jie(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=IO,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ek(e,t.name,!0),o=Lie(e,t),s=$O(e,t);return ZO(e,o,a,t),QO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Mie(e,t,n){let r={};return QO(r,$O(e,t)),e.create(t,e.Fragment,r,n)}function Nie(e,t){return t.value}function ZO(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function QO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Pie(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Fie(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=BO(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Iie(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&JO.call(t.properties,i)){let a=Rie(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Eie.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Lie(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else tk(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else tk(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function $O(e,t){let n=[],r=-1,i=e.passKeys?new Map:Cie;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=XO(e,a,o);s!==void 0&&n.push(s)}return n}function Rie(e,t,n){let r=PO(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?aO(n):RO(n)),r.property===`style`){let t=typeof n==`object`?n:zie(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Bie(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?pie[r.property]||r.property:r.attribute,n]}}function zie(e,t){try{return(0,Sie.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new qO("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=YO+`#cannot-parse-style-attribute`,r}}function ek(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=lO(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=lO(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return JO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);tk(e)}function tk(e,t){let n=new qO("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=YO+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Bie(e){let t={},n;for(n in e)JO.call(e,n)&&(t[Vie(n)]=e[n]);return t}function Vie(e){let t=e.replace(wie,Hie);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Hie(e){return`-`+e.toLowerCase()}var nk={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`]},Uie={};function rk(e,t){let n=t||Uie;return ik(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ik(e,t,n){if(Wie(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 ak(e.children,t,n)}return Array.isArray(e)?ak(e,t,n):``}function ak(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ik(e[i],t,n);return r.join(``)}function Wie(e){return!!(e&&typeof e==`object`)}var ok=document.createElement(`i`);function sk(e){let t=`&`+e+`;`;ok.innerHTML=t;let n=ok.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function ck(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function lk(e,t){return e.length>0?(ck(e,e.length,0,t),e):t}var uk={}.hasOwnProperty;function dk(e){let t={},n=-1;for(;++n<e.length;)Gie(t,e[n]);return t}function Gie(e,t){let n;for(n in t){let r=(uk.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){uk.call(r,a)||(r[a]=[]);let e=i[a];Kie(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Kie(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ck(e,0,0,r)}function fk(e,t){let 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 pk(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var mk=Sk(/[A-Za-z]/),hk=Sk(/[\dA-Za-z]/),qie=Sk(/[#-'*+\--9=?A-Z^-~]/);function gk(e){return e!==null&&(e<32||e===127)}var _k=Sk(/\d/),Jie=Sk(/[\dA-Fa-f]/),Yie=Sk(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<-2}function vk(e){return e!==null&&(e<0||e===32)}function yk(e){return e===-2||e===-1||e===32}var bk=Sk(/\p{P}|\p{S}/u),xk=Sk(/\s/);function Sk(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ck(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&hk(e.charCodeAt(n+1))&&hk(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function wk(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return yk(r)?(e.enter(n),s(r)):t(r)}function s(r){return yk(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Xie={tokenize:Zie};function Zie(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),wk(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return R(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Qie={tokenize:$ie},Tk={tokenize:eae};function $ie(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return ck(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Tk,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Tk,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return R(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;ck(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function eae(e,t,n){return wk(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ek(e){if(e===null||vk(e)||xk(e))return 1;if(bk(e))return 2}function Dk(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Ok={name:`attention`,resolveAll:tae,tokenize:nae};function tae(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};kk(d,-c),kk(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=lk(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=lk(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=lk(l,Dk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=lk(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=lk(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ck(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function nae(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ek(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ek(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function kk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var rae={name:`autolink`,tokenize:iae};function iae(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return mk(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||hk(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||hk(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||gk(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):qie(t)?(e.consume(t),l):n(t)}function u(e){return hk(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||hk(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Ak={partial:!0,tokenize:aae};function aae(e,t,n){return r;function r(t){return yk(t)?wk(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||R(e)?t(e):n(e)}}var jk={continuation:{tokenize:sae},exit:cae,name:`blockQuote`,tokenize:oae};function oae(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return yk(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function sae(e,t,n){let r=this;return i;function i(t){return yk(t)?wk(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(jk,t,n)(r)}}function cae(e){e.exit(`blockQuote`)}var Mk={name:`characterEscape`,tokenize:lae};function lae(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Yie(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Nk={name:`characterReference`,tokenize:uae};function uae(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=hk,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Jie,u):(e.enter(`characterReferenceValue`),a=7,o=_k,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===hk&&!sk(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Pk={partial:!0,tokenize:fae},Fk={concrete:!0,name:`codeFenced`,tokenize:dae};function dae(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),yk(t)?wk(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||R(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Pk,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||R(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):yk(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),wk(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||R(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||R(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&yk(t)?wk(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||R(t)?e.check(Pk,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||R(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),yk(t)?wk(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),yk(t)?wk(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||R(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function fae(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Ik={name:`codeIndented`,tokenize:mae},pae={partial:!0,tokenize:hae};function mae(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),wk(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):R(t)?e.attempt(pae,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||R(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function hae(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):R(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):wk(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):R(e)?i(e):n(e)}}var gae={name:`codeText`,previous:vae,resolve:_ae,tokenize:yae};function _ae(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function vae(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function yae(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):R(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||R(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var bae=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Lk(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Lk(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Lk(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Lk(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Lk(this.left,t.reverse())}}};function Lk(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 Rk(e){let t={},n=-1,r,i,a,o,s,c,l,u=new bae(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,xae(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return ck(e,0,1/0,u.slice(0)),!l}function xae(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Sae={resolve:wae,tokenize:Tae},Cae={partial:!0,tokenize:Eae};function wae(e){return Rk(e),e}function Tae(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):R(t)?e.check(Cae,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Eae(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),wk(e,a,`linePrefix`)}function a(i){if(i===null||R(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function zk(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||gk(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||R(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||vk(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||gk(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Bk(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):R(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||R(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!yk(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Vk(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):R(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),wk(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||R(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Hk(e,t){let n;return r;function r(i){return R(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):yk(i)?wk(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Dae={name:`definition`,tokenize:kae},Oae={partial:!0,tokenize:Aae};function kae(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Bk.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=pk(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return vk(t)?Hk(e,l)(t):l(t)}function l(t){return zk(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Oae,d,d)(t)}function d(t){return yk(t)?wk(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||R(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Aae(e,t,n){return r;function r(t){return vk(t)?Hk(e,i)(t):n(t)}function i(t){return Vk(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return yk(t)?wk(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||R(e)?t(e):n(e)}}var jae={name:`hardBreakEscape`,tokenize:Mae};function Mae(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return R(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Nae={name:`headingAtx`,resolve:Pae,tokenize:Fae};function Pae(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},ck(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Fae(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||vk(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||R(n)?(e.exit(`atxHeading`),t(n)):yk(n)?wk(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||vk(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Iae=`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`.split(`.`),Uk=[`pre`,`script`,`style`,`textarea`],Lae={concrete:!0,name:`htmlFlow`,resolveTo:Bae,tokenize:Vae},Rae={partial:!0,tokenize:Uae},zae={partial:!0,tokenize:Hae};function Bae(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 Vae(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:j):mk(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):mk(a)?(e.consume(a),i=4,r.interrupt?t:j):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:j):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return mk(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||vk(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Uk.includes(l)?(i=1,r.interrupt?t(s):O(s)):Iae.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||hk(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return yk(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||mk(t)?(e.consume(t),b):yk(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||hk(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):yk(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):yk(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||R(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||vk(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||yk(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||R(t)?O(t):yk(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),k):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),j):t===93&&i===5?(e.consume(t),ie):R(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Rae,oe,ee)(t)):t===null||R(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(zae,te,oe)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||R(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function k(t){return t===45?(e.consume(t),j):O(t)}function A(t){return t===47?(e.consume(t),o=``,re):O(t)}function re(t){if(t===62){let n=o.toLowerCase();return Uk.includes(n)?(e.consume(t),ae):O(t)}return mk(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),re):O(t)}function ie(t){return t===93?(e.consume(t),j):O(t)}function j(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),j):O(t)}function ae(t){return t===null||R(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function Hae(e,t,n){let r=this;return i;function i(t){return R(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Uae(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Ak,t,n)}}var Wae={name:`htmlText`,tokenize:Gae};function Gae(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):mk(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):mk(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):R(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?k(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):R(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?k(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?k(t):R(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):R(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?k(e):y(e)}function x(t){return mk(t)?(e.consume(t),S):n(t)}function S(t){return t===45||hk(t)?(e.consume(t),S):C(t)}function C(t){return R(t)?(o=C,A(t)):yk(t)?(e.consume(t),C):k(t)}function w(t){return t===45||hk(t)?(e.consume(t),w):t===47||t===62||vk(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),k):t===58||t===95||mk(t)?(e.consume(t),E):R(t)?(o=T,A(t)):yk(t)?(e.consume(t),T):k(t)}function E(t){return t===45||t===46||t===58||t===95||hk(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):R(t)?(o=D,A(t)):yk(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):R(t)?(o=O,A(t)):yk(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):R(t)?(o=ee,A(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||vk(t)?T(t):(e.consume(t),te)}function ne(e){return e===47||e===62||vk(e)?T(e):n(e)}function k(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return yk(t)?wk(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var Wk={name:`labelEnd`,resolveAll:Yae,resolveTo:Xae,tokenize:Zae},Kae={tokenize:Qae},qae={tokenize:$ae},Jae={tokenize:eoe};function Yae(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&ck(e,0,e.length,n),e}function Xae(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=lk(s,e.slice(a+1,a+r+3)),s=lk(s,[[`enter`,u,t]]),s=lk(s,Dk(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=lk(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=lk(s,e.slice(o+1)),s=lk(s,[[`exit`,c,t]]),ck(e,a,e.length,s),e}function Zae(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(pk(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Kae,u,o?u:d)(t):t===91?e.attempt(qae,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Jae,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Qae(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return vk(t)?Hk(e,a)(t):a(t)}function a(t){return t===41?u(t):zk(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return vk(t)?Hk(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Vk(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return vk(t)?Hk(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function $ae(e,t,n){let r=this;return i;function i(t){return Bk.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(pk(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function eoe(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var toe={name:`labelStartImage`,resolveAll:Wk.resolveAll,tokenize:noe};function noe(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var roe={name:`labelStartLink`,resolveAll:Wk.resolveAll,tokenize:ioe};function ioe(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Gk={name:`lineEnding`,tokenize:aoe};function aoe(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),wk(e,t,`linePrefix`)}}var Kk={name:`thematicBreak`,tokenize:ooe};function ooe(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||R(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),yk(t)?wk(e,s,`whitespace`)(t):s(t))}}var qk={continuation:{tokenize:uoe},exit:foe,name:`list`,tokenize:loe},soe={partial:!0,tokenize:poe},coe={partial:!0,tokenize:doe};function loe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:_k(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Kk,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return _k(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Ak,r.interrupt?n:u,e.attempt(soe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return yk(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function uoe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Ak,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,wk(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!yk(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(coe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,wk(e,e.attempt(qk,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function doe(e,t,n){let r=this;return wk(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function foe(e){e.exit(this.containerState.type)}function poe(e,t,n){let r=this;return wk(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!yk(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Jk={name:`setextUnderline`,resolveTo:moe,tokenize:hoe};function moe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function hoe(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),yk(t)?wk(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||R(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var goe={tokenize:_oe};function _oe(e){let t=this,n=e.attempt(Ak,r,e.attempt(this.parser.constructs.flowInitial,i,wk(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Sae,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var voe={resolveAll:Xk()},yoe=Yk(`string`),boe=Yk(`text`);function Yk(e){return{resolveAll:Xk(e===`text`?xoe:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Xk(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function xoe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Soe=r({attentionMarkers:()=>Aoe,contentInitial:()=>woe,disable:()=>joe,document:()=>Coe,flow:()=>Eoe,flowInitial:()=>Toe,insideSpan:()=>koe,string:()=>Doe,text:()=>Ooe}),Coe={42:qk,43:qk,45:qk,48:qk,49:qk,50:qk,51:qk,52:qk,53:qk,54:qk,55:qk,56:qk,57:qk,62:jk},woe={91:Dae},Toe={[-2]:Ik,[-1]:Ik,32:Ik},Eoe={35:Nae,42:Kk,45:[Jk,Kk],60:Lae,61:Jk,95:Kk,96:Fk,126:Fk},Doe={38:Nk,92:Mk},Ooe={[-5]:Gk,[-4]:Gk,[-3]:Gk,33:toe,38:Nk,42:Ok,60:[rae,Wae],91:roe,92:[jae,Mk],93:Wk,95:Ok,96:gae},koe={null:[Ok,voe]},Aoe={null:[42,95]},joe={null:[]};function Moe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=lk(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Dk(a,l.events,l),l.events):[]}function f(e,t){return Poe(p(e),t)}function p(e){return Noe(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){R(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ck(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Noe(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Poe(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
46
+ `;break;case-3:o=`\r
47
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Foe(e){let t={constructs:dk([Soe,...(e||{}).extensions||[]]),content:n(Xie),defined:[],document:n(Qie),flow:n(goe),lazy:{},string:n(yoe),text:n(boe)};return t;function n(e){return n;function n(n){return Moe(t,e,n)}}}function Ioe(e){for(;!Rk(e););return e}var Zk=/[\0\t\n\r]/g;function Loe(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Zk.lastIndex=u,c=Zk.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Roe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zoe(e){return e.replace(Roe,Boe)}function Boe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return fk(n.slice(t?2:1),t?16:10)}return sk(n)||e}var Qk={}.hasOwnProperty;function Voe(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Hoe(n)(Ioe(Foe(n).document().write(Loe()(e,t,!0))))}function Hoe(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(me),characterEscape:T,characterReference:T,codeFenced:a(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(he,o),codeText:a(ge,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ve),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ne),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(ee),htmlFlowData:E,htmlText:c(te),htmlTextData:E,image:c(A),label:ie,labelText:re,lineEnding:D,link:c(k),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:j,resourceTitleString:ae,resource:oe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};eA(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Qk.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tA).call(a,void 0,e[0])}for(r.position={start:$k(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:$k(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:$k(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tA).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+UO({start:e.start,end:e.end})+`): it’s not open`);n.position.end=$k(e.end)}function u(){return rk(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pk(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Oe(),n.position={start:$k(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=$k(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=$k(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function re(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=zoe(t),n.identifier=pk(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function oe(){this.data.inReference=void 0}function se(){this.data.referenceType=`collapsed`}function ce(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pk(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function le(e){this.data.characterReferenceType=e.type}function ue(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=fk(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=sk(t);let i=this.stack[this.stack.length-1];i.value+=r}function de(e){let t=this.stack.pop();t.position.end=$k(e.end)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function me(){return{type:`blockquote`,children:[]}}function he(){return{type:`code`,lang:null,meta:null,value:``}}function ge(){return{type:`inlineCode`,value:``}}function _e(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ve(){return{type:`emphasis`,children:[]}}function ye(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ee(){return{type:`paragraph`,children:[]}}function De(){return{type:`strong`,children:[]}}function Oe(){return{type:`text`,value:``}}function ke(){return{type:`thematicBreak`}}}function $k(e){return{line:e.line,column:e.column,offset:e.offset}}function eA(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?eA(e,r):Uoe(e,r)}}function Uoe(e,t){let n;for(n in t)if(Qk.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function tA(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+UO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+UO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+UO({start:t.start,end:t.end})+`) is still open`)}function nA(e){let t=this;t.parser=n;function n(n){return Voe(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Woe(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Goe(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
48
+ `}]}function Koe(e,t){let n=t.value?t.value+`
49
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function qoe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Joe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yoe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Ck(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Xoe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zoe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function rA(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Qoe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rA(e,t);let i={src:Ck(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function $oe(e,t){let n={src:Ck(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ese(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function tse(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rA(e,t);let i={href:Ck(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function nse(e,t){let n={href:Ck(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rse(e,t,n){let r=e.all(t),i=n?ise(n):iA(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
50
+ `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
51
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function ise(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=iA(n[r])}return t}function iA(e){return e.spread??e.children.length>1}function ase(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function ose(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sse(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cse(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lse(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=BO(t.children[1]),o=zO(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function use(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function dse(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var aA=9,oA=32;function sA(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(cA(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(cA(t.slice(i),i>0,!1)),a.join(``)}function cA(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===aA||t===oA;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===aA||t===oA;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function lA(e,t){let n={type:`text`,value:sA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function uA(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var dA={blockquote:Woe,break:Goe,code:Koe,delete:qoe,emphasis:Joe,footnoteReference:Yoe,heading:Xoe,html:Zoe,imageReference:Qoe,image:$oe,inlineCode:ese,linkReference:tse,link:nse,listItem:rse,list:ase,paragraph:ose,root:sse,strong:cse,table:lse,tableCell:dse,tableRow:use,text:lA,thematicBreak:uA,toml:fA,yaml:fA,definition:fA,footnoteDefinition:fA};function fA(){}var pA=typeof self==`object`?self:globalThis,mA=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new pA[e](t)},hA=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(mA(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(mA(a,o),i)};return r},gA=e=>hA(new Map,e)(0),_A=``,{toString:vA}={},{keys:yA}=Object,bA=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=vA.call(e).slice(8,-1);switch(n){case`Array`:return[1,_A];case`Object`:return[2,_A];case`Date`:return[3,_A];case`RegExp`:return[4,_A];case`Map`:return[5,_A];case`Set`:return[6,_A];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},xA=([e,t])=>e===0&&(t===`function`||t===`symbol`),SA=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=bA(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of yA(r))(e||!xA(bA(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?_A:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(xA(bA(n))||xA(bA(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!xA(bA(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},CA=(e,{json:t,lossy:n}={})=>{let r=[];return SA(!(t||n),!!t,new Map,r)(e),r},wA=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?gA(CA(e,t)):structuredClone(e):(e,t)=>gA(CA(e,t));function TA(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function EA(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function DA(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||TA,r=e.options.footnoteBackLabel||EA,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Ck(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...wA(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
52
+ `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
53
+ `}]}}var OA=(function(e){if(e==null)return NA;if(typeof e==`function`)return MA(e);if(typeof e==`object`)return Array.isArray(e)?kA(e):AA(e);if(typeof e==`string`)return jA(e);throw Error(`Expected function, string, or object as test`)});function kA(e){let t=[],n=-1;for(;++n<e.length;)t[n]=OA(e[n]);return MA(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function AA(e){let t=e;return MA(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function jA(e){return MA(t);function t(t){return t&&t.type===e}}function MA(e){return t;function t(t,n,r){return!!(PA(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function NA(){return!0}function PA(e){return typeof e==`object`&&!!e&&`type`in e}function FA(e){return e}var IA=[],LA=`skip`;function RA(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=OA(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+FA(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=IA,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=zA(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function zA(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?IA:[e]}function BA(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),RA(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var VA={}.hasOwnProperty,HA={};function UA(e,t){let n=t||HA,r=new Map,i=new Map,a={all:s,applyData:GA,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...dA,...n.handlers},one:o,options:n,patch:WA,wrap:qA};return BA(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(VA.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=wA(n);return r.children=a.all(e),r}return wA(e)}return(a.options.unknownHandler||KA)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=JA(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=JA(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function WA(e,t){e.position&&(t.position=HO(e))}function GA(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,wA(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function KA(e,t){let n=t.data||{},r=`value`in t&&!(VA.call(n,`hProperties`)||VA.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qA(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
54
+ `});++r<e.length;)r&&n.push({type:`text`,value:`
55
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
56
+ `}),n}function JA(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function YA(e,t){let n=UA(e,t),r=n.one(e,void 0),i=DA(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
57
+ `},i)),a}function XA(e,t){return e&&`run`in e?async function(n,r){let i=YA(n,{file:r,...t});await e.run(i,r)}:function(n,r){return YA(n,{file:r,...e||t})}}function ZA(e){if(e)throw e}var QA=n(i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function $A(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ej(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?tj(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function tj(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var nj={basename:rj,dirname:ij,extname:aj,join:oj,sep:`/`};function rj(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);lj(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ij(e){if(lj(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function aj(e){lj(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function oj(...e){let t=-1,n;for(;++t<e.length;)lj(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:sj(n)}function sj(e){lj(e);let t=e.codePointAt(0)===47,n=cj(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function cj(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function lj(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var uj={cwd:dj};function dj(){return`/`}function fj(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function pj(e){if(typeof e==`string`)e=new URL(e);else if(!fj(e)){let t=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:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return mj(e)}function mj(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var hj=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],gj=class{constructor(e){let t;t=e?fj(e)?{path:e}:typeof e==`string`||bj(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:uj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<hj.length;){let e=hj[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)hj.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?nj.basename(this.path):void 0}set basename(e){vj(e,`basename`),_j(e,`basename`),this.path=nj.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?nj.dirname(this.path):void 0}set dirname(e){yj(this.basename,`dirname`),this.path=nj.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?nj.extname(this.path):void 0}set extname(e){if(_j(e,`extname`),yj(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=nj.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){fj(e)&&(e=pj(e)),vj(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?nj.basename(this.path,this.extname):void 0}set stem(e){vj(e,`stem`),_j(e,`stem`),this.path=nj.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new qO(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function _j(e,t){if(e&&e.includes(nj.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nj.sep+"`")}function vj(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function yj(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function bj(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var xj=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Sj={}.hasOwnProperty,Cj=new class e extends xj{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=ej()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,QA.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Ej(`data`,this.frozen),this.namespace[e]=t,this):Sj.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ej(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=kj(e),n=this.parser||this.Parser;return wj(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),wj(`process`,this.parser||this.Parser),Tj(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=kj(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);jj(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),wj(`processSync`,this.parser||this.Parser),Tj(`processSync`,this.compiler||this.Compiler),this.process(e,r),Oj(`processSync`,`process`,t),n;function r(e,r){t=!0,ZA(e),n=r}}run(e,t,n){Dj(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=kj(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Oj(`runSync`,`run`,n),r;function i(e,t){ZA(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=kj(t),r=this.compiler||this.Compiler;return Tj(`stringify`,r),Dj(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Ej(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,QA.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];$A(o)&&$A(r)&&(r=(0,QA.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function wj(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Tj(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Ej(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dj(e){if(!$A(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Oj(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function kj(e){return Aj(e)?e:new gj(e)}function Aj(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function jj(e){return typeof e==`string`||Mj(e)}function Mj(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Nj=[],Pj={allowDangerousHtml:!0},Fj=/^(https?|ircs?|mailto|xmpp)$/i,Ij=[{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 Lj(e){let t=Rj(e),n=zj(e);return Bj(t.runSync(t.parse(n),n),e)}function Rj(e){let t=e.rehypePlugins||Nj,n=e.remarkPlugins||Nj,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pj}:Pj;return Cj().use(nA).use(n).use(XA,r).use(t)}function zj(e){let t=e.children||``,n=new gj;return typeof t==`string`?n.value=t:``+t,n}function Bj(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Vj;for(let e of Ij)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return BA(e,l),Die(e,{Fragment:N.Fragment,components:i,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in nk)if(Object.hasOwn(nk,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nk[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Vj(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Fj.test(e.slice(0,t))?e:``}var Hj=/[#.]/g;function Uj(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){Hj.lastIndex=i;let e=Hj.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function Wj(e,t,n){let r=n?Xj(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=Uj(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,Gj(i))a.unshift(i);else for(let[t,n]of Object.entries(i))Kj(e,o.properties,t,n)}for(let e of a)qj(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function Gj(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function Kj(e,t,n,r){let i=PO(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?LO(r):i.commaSeparated?iO(r):i.commaOrSpaceSeparated?LO(iO(r).join(` `)):Jj(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?Yj(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(Jj(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qj(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)qj(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?qj(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function Jj(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||pO(n)===pO(t)))return!0}return n}function Yj(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function Xj(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var Zj=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),Qj=Wj(FO,`div`),$j=Wj(IO,`g`,Zj);function eM(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(e){if(typeof e==`number`&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=tM(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=tM(t,e),i=r===-1?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}}}function tM(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(`
58
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var nM={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`},rM={}.hasOwnProperty,iM=Object.prototype;function aM(e,t){let n=t||{};return oM({file:n.file||void 0,location:!1,schema:n.space===`svg`?IO:FO,verbose:n.verbose||!1},e)}function oM(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},lM(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:sM(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=eM(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},lM(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},lM(e,r,n),n}default:return n=cM(e,t),n}}function sM(e,t){let n=-1,r=[];for(;++n<t.length;){let i=oM(e,t[n]);r.push(i)}return r}function cM(e,t){let n=e.schema;e.schema=t.namespaceURI===nM.svg?IO:FO;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;rM.call(iM,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?$j:Qj)(t.tagName,i,sM(e,t.childNodes));if(lM(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&dM(r.startTag),o=r&&r.endTag&&dM(r.endTag),s=oM(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function lM(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=uM(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function uM(e,t,n){let r=dM(n);if(t.type===`element`){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r={},i;if(n.attrs)for(i in n.attrs)rM.call(n.attrs,i)&&(r[PO(e.schema,i).property]=dM(n.attrs[i]));n.startTag;let a=dM(n.startTag),o=n.endTag?dM(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function dM(e){let t=fM({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fM({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fM(e){return e.line&&e.column?e:void 0}var pM={}.hasOwnProperty;function mM(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&pM.call(t,e)){let n=String(t[e]);i=pM.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var hM={},gM={}.hasOwnProperty,_M=mM(`type`,{handlers:{root:yM,element:wM,text:SM,comment:CM,doctype:xM}});function vM(e,t){let n=(t||hM).space;return _M(e,n===`svg`?IO:FO)}function yM(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=EM(e.children,n,t),DM(e,n),n}function bM(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=EM(e.children,n,t),DM(e,n),n}function xM(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return DM(e,t),t}function SM(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return DM(e,t),t}function CM(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return DM(e,t),t}function wM(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=IO);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&gM.call(e.properties,a)){let t=TM(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:nM[o],childNodes:[],parentNode:null};return s.childNodes=EM(e.children,s,r),DM(e,s),e.tagName===`template`&&e.content&&(s.content=bM(e.content,r)),s}function TM(e,t,n){let r=PO(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?aO(n):RO(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=nM[r.space]}return i}function EM(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=_M(e[r],n);a.parentNode=t,i.push(a)}return i}function DM(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var OM=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],kM=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),z;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`})(z||={});var AM={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function jM(e){return e>=55296&&e<=57343}function MM(e){return e>=56320&&e<=57343}function NM(e,t){return(e-55296)*1024+9216+t}function PM(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function FM(e){return e>=64976&&e<=65007||kM.has(e)}var B;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(B||={});var IM=65536,LM=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=IM,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(MM(t))return this.pos++,this._addGap(),NM(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,z.EOF;return this._err(B.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let n=this.html.charCodeAt(t);return n===z.CARRIAGE_RETURN?z.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let e=this.html.charCodeAt(this.pos);return e===z.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,z.LINE_FEED):e===z.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,jM(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===z.LINE_FEED||e===z.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){PM(e)?this._err(B.controlCharacterInInputStream):FM(e)&&this._err(B.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},RM;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(RM||={});function zM(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var BM=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),VM=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);String.fromCodePoint;function HM(e){return e>=55296&&e<=57343||e>1114111?65533:VM.get(e)??e}var UM;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(UM||={});var WM=32,GM;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(GM||={});function KM(e){return e>=UM.ZERO&&e<=UM.NINE}function qM(e){return e>=UM.UPPER_A&&e<=UM.UPPER_F||e>=UM.LOWER_A&&e<=UM.LOWER_F}function JM(e){return e>=UM.UPPER_A&&e<=UM.UPPER_Z||e>=UM.LOWER_A&&e<=UM.LOWER_Z||KM(e)}function YM(e){return e===UM.EQUALS||JM(e)}var XM;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(XM||={});var ZM;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(ZM||={});var QM=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=XM.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ZM.Strict}startEntity(e){this.decodeMode=e,this.state=XM.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case XM.EntityStart:return e.charCodeAt(t)===UM.NUM?(this.state=XM.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=XM.NamedEntity,this.stateNamedEntity(e,t));case XM.NumericStart:return this.stateNumericStart(e,t);case XM.NumericDecimal:return this.stateNumericDecimal(e,t);case XM.NumericHex:return this.stateNumericHex(e,t);case XM.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|WM)===UM.LOWER_X?(this.state=XM.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=XM.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(KM(r)||qM(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(KM(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===UM.SEMI)this.consumed+=1;else if(this.decodeMode===ZM.Strict)return 0;return this.emitCodePoint(HM(this.result),this.consumed),this.errors&&(e!==UM.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&GM.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=$M(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===ZM.Attribute&&(i===0||YM(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&GM.VALUE_LENGTH)>>14,i!==0){if(a===UM.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ZM.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&GM.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~GM.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case XM.NamedEntity:return this.result!==0&&(this.decodeMode!==ZM.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case XM.NumericDecimal:return this.emitNumericEntity(0,2);case XM.NumericHex:return this.emitNumericEntity(0,3);case XM.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case XM.EntityStart:return 0}}};function $M(e,t,n,r){let i=(t&GM.BRANCH_LENGTH)>>7,a=t&GM.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var V;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(V||={});var eN;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(eN||={});var tN;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(tN||={});var H;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(H||={});var U;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(U||={});var nN=new Map([[H.A,U.A],[H.ADDRESS,U.ADDRESS],[H.ANNOTATION_XML,U.ANNOTATION_XML],[H.APPLET,U.APPLET],[H.AREA,U.AREA],[H.ARTICLE,U.ARTICLE],[H.ASIDE,U.ASIDE],[H.B,U.B],[H.BASE,U.BASE],[H.BASEFONT,U.BASEFONT],[H.BGSOUND,U.BGSOUND],[H.BIG,U.BIG],[H.BLOCKQUOTE,U.BLOCKQUOTE],[H.BODY,U.BODY],[H.BR,U.BR],[H.BUTTON,U.BUTTON],[H.CAPTION,U.CAPTION],[H.CENTER,U.CENTER],[H.CODE,U.CODE],[H.COL,U.COL],[H.COLGROUP,U.COLGROUP],[H.DD,U.DD],[H.DESC,U.DESC],[H.DETAILS,U.DETAILS],[H.DIALOG,U.DIALOG],[H.DIR,U.DIR],[H.DIV,U.DIV],[H.DL,U.DL],[H.DT,U.DT],[H.EM,U.EM],[H.EMBED,U.EMBED],[H.FIELDSET,U.FIELDSET],[H.FIGCAPTION,U.FIGCAPTION],[H.FIGURE,U.FIGURE],[H.FONT,U.FONT],[H.FOOTER,U.FOOTER],[H.FOREIGN_OBJECT,U.FOREIGN_OBJECT],[H.FORM,U.FORM],[H.FRAME,U.FRAME],[H.FRAMESET,U.FRAMESET],[H.H1,U.H1],[H.H2,U.H2],[H.H3,U.H3],[H.H4,U.H4],[H.H5,U.H5],[H.H6,U.H6],[H.HEAD,U.HEAD],[H.HEADER,U.HEADER],[H.HGROUP,U.HGROUP],[H.HR,U.HR],[H.HTML,U.HTML],[H.I,U.I],[H.IMG,U.IMG],[H.IMAGE,U.IMAGE],[H.INPUT,U.INPUT],[H.IFRAME,U.IFRAME],[H.KEYGEN,U.KEYGEN],[H.LABEL,U.LABEL],[H.LI,U.LI],[H.LINK,U.LINK],[H.LISTING,U.LISTING],[H.MAIN,U.MAIN],[H.MALIGNMARK,U.MALIGNMARK],[H.MARQUEE,U.MARQUEE],[H.MATH,U.MATH],[H.MENU,U.MENU],[H.META,U.META],[H.MGLYPH,U.MGLYPH],[H.MI,U.MI],[H.MO,U.MO],[H.MN,U.MN],[H.MS,U.MS],[H.MTEXT,U.MTEXT],[H.NAV,U.NAV],[H.NOBR,U.NOBR],[H.NOFRAMES,U.NOFRAMES],[H.NOEMBED,U.NOEMBED],[H.NOSCRIPT,U.NOSCRIPT],[H.OBJECT,U.OBJECT],[H.OL,U.OL],[H.OPTGROUP,U.OPTGROUP],[H.OPTION,U.OPTION],[H.P,U.P],[H.PARAM,U.PARAM],[H.PLAINTEXT,U.PLAINTEXT],[H.PRE,U.PRE],[H.RB,U.RB],[H.RP,U.RP],[H.RT,U.RT],[H.RTC,U.RTC],[H.RUBY,U.RUBY],[H.S,U.S],[H.SCRIPT,U.SCRIPT],[H.SEARCH,U.SEARCH],[H.SECTION,U.SECTION],[H.SELECT,U.SELECT],[H.SOURCE,U.SOURCE],[H.SMALL,U.SMALL],[H.SPAN,U.SPAN],[H.STRIKE,U.STRIKE],[H.STRONG,U.STRONG],[H.STYLE,U.STYLE],[H.SUB,U.SUB],[H.SUMMARY,U.SUMMARY],[H.SUP,U.SUP],[H.TABLE,U.TABLE],[H.TBODY,U.TBODY],[H.TEMPLATE,U.TEMPLATE],[H.TEXTAREA,U.TEXTAREA],[H.TFOOT,U.TFOOT],[H.TD,U.TD],[H.TH,U.TH],[H.THEAD,U.THEAD],[H.TITLE,U.TITLE],[H.TR,U.TR],[H.TRACK,U.TRACK],[H.TT,U.TT],[H.U,U.U],[H.UL,U.UL],[H.SVG,U.SVG],[H.VAR,U.VAR],[H.WBR,U.WBR],[H.XMP,U.XMP]]);function rN(e){return nN.get(e)??U.UNKNOWN}var W=U,iN={[V.HTML]:new Set([W.ADDRESS,W.APPLET,W.AREA,W.ARTICLE,W.ASIDE,W.BASE,W.BASEFONT,W.BGSOUND,W.BLOCKQUOTE,W.BODY,W.BR,W.BUTTON,W.CAPTION,W.CENTER,W.COL,W.COLGROUP,W.DD,W.DETAILS,W.DIR,W.DIV,W.DL,W.DT,W.EMBED,W.FIELDSET,W.FIGCAPTION,W.FIGURE,W.FOOTER,W.FORM,W.FRAME,W.FRAMESET,W.H1,W.H2,W.H3,W.H4,W.H5,W.H6,W.HEAD,W.HEADER,W.HGROUP,W.HR,W.HTML,W.IFRAME,W.IMG,W.INPUT,W.LI,W.LINK,W.LISTING,W.MAIN,W.MARQUEE,W.MENU,W.META,W.NAV,W.NOEMBED,W.NOFRAMES,W.NOSCRIPT,W.OBJECT,W.OL,W.P,W.PARAM,W.PLAINTEXT,W.PRE,W.SCRIPT,W.SECTION,W.SELECT,W.SOURCE,W.STYLE,W.SUMMARY,W.TABLE,W.TBODY,W.TD,W.TEMPLATE,W.TEXTAREA,W.TFOOT,W.TH,W.THEAD,W.TITLE,W.TR,W.TRACK,W.UL,W.WBR,W.XMP]),[V.MATHML]:new Set([W.MI,W.MO,W.MN,W.MS,W.MTEXT,W.ANNOTATION_XML]),[V.SVG]:new Set([W.TITLE,W.FOREIGN_OBJECT,W.DESC]),[V.XLINK]:new Set,[V.XML]:new Set,[V.XMLNS]:new Set},aN=new Set([W.H1,W.H2,W.H3,W.H4,W.H5,W.H6]);new Set([H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT]);var G;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(G||={});var oN={DATA:G.DATA,RCDATA:G.RCDATA,RAWTEXT:G.RAWTEXT,SCRIPT_DATA:G.SCRIPT_DATA,PLAINTEXT:G.PLAINTEXT,CDATA_SECTION:G.CDATA_SECTION};function sN(e){return e>=z.DIGIT_0&&e<=z.DIGIT_9}function cN(e){return e>=z.LATIN_CAPITAL_A&&e<=z.LATIN_CAPITAL_Z}function lN(e){return e>=z.LATIN_SMALL_A&&e<=z.LATIN_SMALL_Z}function uN(e){return lN(e)||cN(e)}function dN(e){return uN(e)||sN(e)}function fN(e){return e+32}function pN(e){return e===z.SPACE||e===z.LINE_FEED||e===z.TABULATION||e===z.FORM_FEED}function mN(e){return pN(e)||e===z.SOLIDUS||e===z.GREATER_THAN_SIGN}function hN(e){return e===z.NULL?B.nullCharacterReference:e>1114111?B.characterReferenceOutsideUnicodeRange:jM(e)?B.surrogateCharacterReference:FM(e)?B.noncharacterCharacterReference:PM(e)||e===z.CARRIAGE_RETURN?B.controlCharacterReference:null}var gN=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=G.DATA,this.returnState=G.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new LM(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new QM(BM,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(B.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(B.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=hN(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:RM.START_TAG,tagName:``,tagID:U.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:RM.END_TAG,tagName:``,tagID:U.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:RM.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:RM.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:``},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;let t=this.currentToken;if(zM(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(B.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=rN(e.tagName),e.type===RM.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(B.endTagWithAttributes),e.selfClosing&&this._err(B.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case RM.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case RM.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case RM.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:RM.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=pN(e)?RM.WHITESPACE_CHARACTER:e===z.NULL?RM.NULL_CHARACTER:RM.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(RM.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=G.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ZM.Attribute:ZM.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===G.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===G.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===G.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case G.DATA:this._stateData(e);break;case G.RCDATA:this._stateRcdata(e);break;case G.RAWTEXT:this._stateRawtext(e);break;case G.SCRIPT_DATA:this._stateScriptData(e);break;case G.PLAINTEXT:this._statePlaintext(e);break;case G.TAG_OPEN:this._stateTagOpen(e);break;case G.END_TAG_OPEN:this._stateEndTagOpen(e);break;case G.TAG_NAME:this._stateTagName(e);break;case G.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case G.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case G.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case G.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case G.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case G.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case G.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case G.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case G.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case G.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case G.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case G.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case G.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case G.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case G.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case G.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case G.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case G.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case G.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case G.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case G.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case G.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case G.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case G.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case G.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case G.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case G.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case G.BOGUS_COMMENT:this._stateBogusComment(e);break;case G.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case G.COMMENT_START:this._stateCommentStart(e);break;case G.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case G.COMMENT:this._stateComment(e);break;case G.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case G.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case G.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case G.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case G.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case G.COMMENT_END:this._stateCommentEnd(e);break;case G.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case G.DOCTYPE:this._stateDoctype(e);break;case G.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case G.DOCTYPE_NAME:this._stateDoctypeName(e);break;case G.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case G.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case G.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case G.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case G.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case G.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case G.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case G.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case G.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case G.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case G.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case G.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case G.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case G.CDATA_SECTION:this._stateCdataSection(e);break;case G.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case G.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case G.CHARACTER_REFERENCE:this._stateCharacterReference();break;case G.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case z.LESS_THAN_SIGN:this.state=G.TAG_OPEN;break;case z.AMPERSAND:this._startCharacterReference();break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitCodePoint(e);break;case z.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case z.AMPERSAND:this._startCharacterReference();break;case z.LESS_THAN_SIGN:this.state=G.RCDATA_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case z.LESS_THAN_SIGN:this.state=G.RAWTEXT_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(uN(e))this._createStartTagToken(),this.state=G.TAG_NAME,this._stateTagName(e);else switch(e){case z.EXCLAMATION_MARK:this.state=G.MARKUP_DECLARATION_OPEN;break;case z.SOLIDUS:this.state=G.END_TAG_OPEN;break;case z.QUESTION_MARK:this._err(B.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=G.BOGUS_COMMENT,this._stateBogusComment(e);break;case z.EOF:this._err(B.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(B.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=G.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(uN(e))this._createEndTagToken(),this.state=G.TAG_NAME,this._stateTagName(e);else switch(e){case z.GREATER_THAN_SIGN:this._err(B.missingEndTagName),this.state=G.DATA;break;case z.EOF:this._err(B.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(B.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=G.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.BEFORE_ATTRIBUTE_NAME;break;case z.SOLIDUS:this.state=G.SELF_CLOSING_START_TAG;break;case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentTagToken();break;case z.NULL:this._err(B.unexpectedNullCharacter),t.tagName+=`�`;break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(cN(e)?fN(e):e)}}_stateRcdataLessThanSign(e){e===z.SOLIDUS?this.state=G.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=G.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){uN(e)?(this.state=G.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=G.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=G.BEFORE_ATTRIBUTE_NAME,!1;case z.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=G.SELF_CLOSING_START_TAG,!1;case z.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=G.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=G.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===z.SOLIDUS?this.state=G.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=G.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){uN(e)?(this.state=G.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=G.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=G.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case z.SOLIDUS:this.state=G.SCRIPT_DATA_END_TAG_OPEN;break;case z.EXCLAMATION_MARK:this.state=G.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=G.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){uN(e)?(this.state=G.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=G.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=G.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===z.HYPHEN_MINUS?(this.state=G.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=G.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===z.HYPHEN_MINUS?(this.state=G.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=G.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case z.HYPHEN_MINUS:this.state=G.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case z.HYPHEN_MINUS:this.state=G.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),this.state=G.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=G.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case z.HYPHEN_MINUS:this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case z.GREATER_THAN_SIGN:this.state=G.SCRIPT_DATA,this._emitChars(`>`);break;case z.NULL:this._err(B.unexpectedNullCharacter),this.state=G.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=G.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===z.SOLIDUS?this.state=G.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:uN(e)?(this._emitChars(`<`),this.state=G.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=G.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){uN(e)?(this.state=G.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=G.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=G.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(AM.SCRIPT,!1)&&mN(this.preprocessor.peek(AM.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<AM.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=G.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case z.HYPHEN_MINUS:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case z.NULL:this._err(B.unexpectedNullCharacter),this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case z.HYPHEN_MINUS:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case z.NULL:this._err(B.unexpectedNullCharacter),this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case z.HYPHEN_MINUS:this._emitChars(`-`);break;case z.LESS_THAN_SIGN:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case z.GREATER_THAN_SIGN:this.state=G.SCRIPT_DATA,this._emitChars(`>`);break;case z.NULL:this._err(B.unexpectedNullCharacter),this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case z.EOF:this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===z.SOLIDUS?(this.state=G.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(AM.SCRIPT,!1)&&mN(this.preprocessor.peek(AM.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<AM.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=G.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=G.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:this.state=G.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case z.EQUALS_SIGN:this._err(B.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=G.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=G.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:this._leaveAttrName(),this.state=G.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case z.EQUALS_SIGN:this._leaveAttrName(),this.state=G.BEFORE_ATTRIBUTE_VALUE;break;case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:this._err(B.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case z.NULL:this._err(B.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(cN(e)?fN(e):e)}}_stateAfterAttributeName(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:this.state=G.SELF_CLOSING_START_TAG;break;case z.EQUALS_SIGN:this.state=G.BEFORE_ATTRIBUTE_VALUE;break;case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentTagToken();break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=G.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:this.state=G.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case z.APOSTROPHE:this.state=G.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case z.GREATER_THAN_SIGN:this._err(B.missingAttributeValue),this.state=G.DATA,this.emitCurrentTagToken();break;default:this.state=G.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case z.QUOTATION_MARK:this.state=G.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case z.AMPERSAND:this._startCharacterReference();break;case z.NULL:this._err(B.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case z.APOSTROPHE:this.state=G.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case z.AMPERSAND:this._startCharacterReference();break;case z.NULL:this._err(B.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this._leaveAttrValue(),this.state=G.BEFORE_ATTRIBUTE_NAME;break;case z.AMPERSAND:this._startCharacterReference();break;case z.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=G.DATA,this.emitCurrentTagToken();break;case z.NULL:this._err(B.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:case z.EQUALS_SIGN:case z.GRAVE_ACCENT:this._err(B.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this._leaveAttrValue(),this.state=G.BEFORE_ATTRIBUTE_NAME;break;case z.SOLIDUS:this._leaveAttrValue(),this.state=G.SELF_CLOSING_START_TAG;break;case z.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=G.DATA,this.emitCurrentTagToken();break;case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this._err(B.missingWhitespaceBetweenAttributes),this.state=G.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case z.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=G.DATA,this.emitCurrentTagToken();break}case z.EOF:this._err(B.eofInTag),this._emitEOFToken();break;default:this._err(B.unexpectedSolidusInTag),this.state=G.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentComment(t);break;case z.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case z.NULL:this._err(B.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(AM.DASH_DASH,!0)?(this._createCommentToken(AM.DASH_DASH.length+1),this.state=G.COMMENT_START):this._consumeSequenceIfMatch(AM.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(AM.DOCTYPE.length+1),this.state=G.DOCTYPE):this._consumeSequenceIfMatch(AM.CDATA_START,!0)?this.inForeignNode?this.state=G.CDATA_SECTION:(this._err(B.cdataInHtmlContent),this._createCommentToken(AM.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=G.BOGUS_COMMENT):this._ensureHibernation()||(this._err(B.incorrectlyOpenedComment),this._createCommentToken(2),this.state=G.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case z.HYPHEN_MINUS:this.state=G.COMMENT_START_DASH;break;case z.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=G.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=G.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case z.HYPHEN_MINUS:this.state=G.COMMENT_END;break;case z.GREATER_THAN_SIGN:this._err(B.abruptClosingOfEmptyComment),this.state=G.DATA,this.emitCurrentComment(t);break;case z.EOF:this._err(B.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=G.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case z.HYPHEN_MINUS:this.state=G.COMMENT_END_DASH;break;case z.LESS_THAN_SIGN:t.data+=`<`,this.state=G.COMMENT_LESS_THAN_SIGN;break;case z.NULL:this._err(B.unexpectedNullCharacter),t.data+=`�`;break;case z.EOF:this._err(B.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case z.EXCLAMATION_MARK:t.data+=`!`,this.state=G.COMMENT_LESS_THAN_SIGN_BANG;break;case z.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=G.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===z.HYPHEN_MINUS?this.state=G.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=G.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===z.HYPHEN_MINUS?this.state=G.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=G.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==z.GREATER_THAN_SIGN&&e!==z.EOF&&this._err(B.nestedComment),this.state=G.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case z.HYPHEN_MINUS:this.state=G.COMMENT_END;break;case z.EOF:this._err(B.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=G.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentComment(t);break;case z.EXCLAMATION_MARK:this.state=G.COMMENT_END_BANG;break;case z.HYPHEN_MINUS:t.data+=`-`;break;case z.EOF:this._err(B.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=G.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case z.HYPHEN_MINUS:t.data+=`--!`,this.state=G.COMMENT_END_DASH;break;case z.GREATER_THAN_SIGN:this._err(B.incorrectlyClosedComment),this.state=G.DATA,this.emitCurrentComment(t);break;case z.EOF:this._err(B.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=G.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.BEFORE_DOCTYPE_NAME;break;case z.GREATER_THAN_SIGN:this.state=G.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case z.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBeforeDoctypeName),this.state=G.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(cN(e))this._createDoctypeToken(String.fromCharCode(fN(e))),this.state=G.DOCTYPE_NAME;else switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.NULL:this._err(B.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=G.DOCTYPE_NAME;break;case z.GREATER_THAN_SIGN:{this._err(B.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=G.DATA;break}case z.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=G.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.AFTER_DOCTYPE_NAME;break;case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.NULL:this._err(B.unexpectedNullCharacter),t.name+=`�`;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(cN(e)?fN(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(AM.PUBLIC,!1)?this.state=G.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(AM.SYSTEM,!1)?this.state=G.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(B.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case z.QUOTATION_MARK:this._err(B.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=G.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:this._err(B.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=G.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case z.GREATER_THAN_SIGN:this._err(B.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:t.publicId=``,this.state=G.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:t.publicId=``,this.state=G.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case z.GREATER_THAN_SIGN:this._err(B.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case z.QUOTATION_MARK:this.state=G.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case z.NULL:this._err(B.unexpectedNullCharacter),t.publicId+=`�`;break;case z.GREATER_THAN_SIGN:this._err(B.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case z.APOSTROPHE:this.state=G.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case z.NULL:this._err(B.unexpectedNullCharacter),t.publicId+=`�`;break;case z.GREATER_THAN_SIGN:this._err(B.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case z.GREATER_THAN_SIGN:this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.QUOTATION_MARK:this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.QUOTATION_MARK:t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:this.state=G.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case z.QUOTATION_MARK:this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case z.GREATER_THAN_SIGN:this._err(B.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case z.APOSTROPHE:t.systemId=``,this.state=G.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case z.GREATER_THAN_SIGN:this._err(B.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.DATA,this.emitCurrentDoctype(t);break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case z.QUOTATION_MARK:this.state=G.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case z.NULL:this._err(B.unexpectedNullCharacter),t.systemId+=`�`;break;case z.GREATER_THAN_SIGN:this._err(B.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case z.APOSTROPHE:this.state=G.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case z.NULL:this._err(B.unexpectedNullCharacter),t.systemId+=`�`;break;case z.GREATER_THAN_SIGN:this._err(B.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.EOF:this._err(B.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(B.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=G.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case z.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=G.DATA;break;case z.NULL:this._err(B.unexpectedNullCharacter);break;case z.EOF:this.emitCurrentDoctype(t),this._emitEOFToken();break;default:}}_stateCdataSection(e){switch(e){case z.RIGHT_SQUARE_BRACKET:this.state=G.CDATA_SECTION_BRACKET;break;case z.EOF:this._err(B.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===z.RIGHT_SQUARE_BRACKET?this.state=G.CDATA_SECTION_END:(this._emitChars(`]`),this.state=G.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case z.GREATER_THAN_SIGN:this.state=G.DATA;break;case z.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=G.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(z.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&dN(this.preprocessor.peek(1))?G.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){dN(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===z.SEMICOLON&&this._err(B.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},_N=new Set([U.DD,U.DT,U.LI,U.OPTGROUP,U.OPTION,U.P,U.RB,U.RP,U.RT,U.RTC]),vN=new Set([..._N,U.CAPTION,U.COLGROUP,U.TBODY,U.TD,U.TFOOT,U.TH,U.THEAD,U.TR]),yN=new Set([U.APPLET,U.CAPTION,U.HTML,U.MARQUEE,U.OBJECT,U.TABLE,U.TD,U.TEMPLATE,U.TH]),bN=new Set([...yN,U.OL,U.UL]),xN=new Set([...yN,U.BUTTON]),SN=new Set([U.ANNOTATION_XML,U.MI,U.MN,U.MO,U.MS,U.MTEXT]),CN=new Set([U.DESC,U.FOREIGN_OBJECT,U.TITLE]),wN=new Set([U.TR,U.TEMPLATE,U.HTML]),TN=new Set([U.TBODY,U.TFOOT,U.THEAD,U.TEMPLATE,U.HTML]),EN=new Set([U.TABLE,U.TEMPLATE,U.HTML]),DN=new Set([U.TD,U.TH]),ON=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=U.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===U.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===V.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==V.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(aN,V.HTML)}popUntilTableCellPopped(){this.popUntilPopped(DN,V.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(EN,V.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TN,V.HTML)}clearBackToTableRowContext(){this.clearBackTo(wN,V.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===U.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===U.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case V.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case V.SVG:if(CN.has(r))return!1;break;case V.MATHML:if(SN.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,yN)}hasInListItemScope(e){return this.hasInDynamicScope(e,bN)}hasInButtonScope(e){return this.hasInDynamicScope(e,xN)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case V.HTML:if(aN.has(t))return!0;if(yN.has(t))return!1;break;case V.SVG:if(CN.has(t))return!1;break;case V.MATHML:if(SN.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===V.HTML)switch(this.tagIDs[t]){case e:return!0;case U.TABLE:case U.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===V.HTML)switch(this.tagIDs[e]){case U.TBODY:case U.THEAD:case U.TFOOT:return!0;case U.TABLE:case U.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===V.HTML)switch(this.tagIDs[t]){case e:return!0;case U.OPTION:case U.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&_N.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&vN.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&vN.has(this.currentTagId);)this.pop()}},kN=3,AN;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(AN||={});var jN={type:AN.Marker},MN=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===AN.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<kN)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<kN)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=kN&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(jN)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:AN.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:AN.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(jN);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===AN.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===AN.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===AN.Element&&t.element===e)}},NN={createDocument(){return{nodeName:`#document`,mode:tN.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{nodeName:`#text`,value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};NN.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(NN.isTextNode(n)){n.value+=t;return}}NN.appendChild(e,NN.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&NN.isTextNode(r)?r.value+=t:NN.insertBefore(e,NN.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},PN=`html`,FN=`about:legacy-compat`,IN=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,LN=`+//silmaril//dtd html pro v0r11 19970101//,-//as//dtd html 3.0 aswedit + extensions//,-//advasoft ltd//dtd html 3.0 aswedit + extensions//,-//ietf//dtd html 2.0 level 1//,-//ietf//dtd html 2.0 level 2//,-//ietf//dtd html 2.0 strict level 1//,-//ietf//dtd html 2.0 strict level 2//,-//ietf//dtd html 2.0 strict//,-//ietf//dtd html 2.0//,-//ietf//dtd html 2.1e//,-//ietf//dtd html 3.0//,-//ietf//dtd html 3.2 final//,-//ietf//dtd html 3.2//,-//ietf//dtd html 3//,-//ietf//dtd html level 0//,-//ietf//dtd html level 1//,-//ietf//dtd html level 2//,-//ietf//dtd html level 3//,-//ietf//dtd html strict level 0//,-//ietf//dtd html strict level 1//,-//ietf//dtd html strict level 2//,-//ietf//dtd html strict level 3//,-//ietf//dtd html strict//,-//ietf//dtd html//,-//metrius//dtd metrius presentational//,-//microsoft//dtd internet explorer 2.0 html strict//,-//microsoft//dtd internet explorer 2.0 html//,-//microsoft//dtd internet explorer 2.0 tables//,-//microsoft//dtd internet explorer 3.0 html strict//,-//microsoft//dtd internet explorer 3.0 html//,-//microsoft//dtd internet explorer 3.0 tables//,-//netscape comm. corp.//dtd html//,-//netscape comm. corp.//dtd strict html//,-//o'reilly and associates//dtd html 2.0//,-//o'reilly and associates//dtd html extended 1.0//,-//o'reilly and associates//dtd html extended relaxed 1.0//,-//sq//dtd html 2.0 hotmetal + extensions//,-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//,-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//,-//spyglass//dtd html 2.0 extended//,-//sun microsystems corp.//dtd hotjava html//,-//sun microsystems corp.//dtd hotjava strict html//,-//w3c//dtd html 3 1995-03-24//,-//w3c//dtd html 3.2 draft//,-//w3c//dtd html 3.2 final//,-//w3c//dtd html 3.2//,-//w3c//dtd html 3.2s draft//,-//w3c//dtd html 4.0 frameset//,-//w3c//dtd html 4.0 transitional//,-//w3c//dtd html experimental 19960712//,-//w3c//dtd html experimental 970421//,-//w3c//dtd w3 html//,-//w3o//dtd w3 html 3.0//,-//webtechs//dtd mozilla html 2.0//,-//webtechs//dtd mozilla html//`.split(`,`),RN=[...LN,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],zN=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),BN=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],VN=[...BN,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function HN(e,t){return t.some(t=>e.startsWith(t))}function UN(e){return e.name===PN&&e.publicId===null&&(e.systemId===null||e.systemId===FN)}function WN(e){if(e.name!==PN)return tN.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===IN)return tN.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zN.has(n))return tN.QUIRKS;let e=t===null?RN:LN;if(HN(n,e))return tN.QUIRKS;if(e=t===null?BN:VN,HN(n,e))return tN.LIMITED_QUIRKS}return tN.NO_QUIRKS}var GN={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},KN=`definitionurl`,qN=`definitionURL`,JN=new Map(`attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),YN=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:V.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:V.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:V.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:V.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:V.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:V.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:V.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:V.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:V.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:V.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:V.XMLNS}]]),XN=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),ZN=new Set([U.B,U.BIG,U.BLOCKQUOTE,U.BODY,U.BR,U.CENTER,U.CODE,U.DD,U.DIV,U.DL,U.DT,U.EM,U.EMBED,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HR,U.I,U.IMG,U.LI,U.LISTING,U.MENU,U.META,U.NOBR,U.OL,U.P,U.PRE,U.RUBY,U.S,U.SMALL,U.SPAN,U.STRONG,U.STRIKE,U.SUB,U.SUP,U.TABLE,U.TT,U.U,U.UL,U.VAR]);function QN(e){let t=e.tagID;return t===U.FONT&&e.attrs.some(({name:e})=>e===eN.COLOR||e===eN.SIZE||e===eN.FACE)||ZN.has(t)}function $N(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===KN){e.attrs[t].name=qN;break}}function eP(e){for(let t=0;t<e.attrs.length;t++){let n=JN.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function tP(e){for(let t=0;t<e.attrs.length;t++){let n=YN.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function nP(e){let t=XN.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=rN(e.tagName))}function rP(e,t){return t===V.MATHML&&(e===U.MI||e===U.MO||e===U.MN||e===U.MS||e===U.MTEXT)}function iP(e,t,n){if(t===V.MATHML&&e===U.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===eN.ENCODING){let t=n[e].value.toLowerCase();return t===GN.TEXT_HTML||t===GN.APPLICATION_XML}}return t===V.SVG&&(e===U.FOREIGN_OBJECT||e===U.DESC||e===U.TITLE)}function aP(e,t,n,r){return(!r||r===V.HTML)&&iP(e,t,n)||(!r||r===V.MATHML)&&rP(e,t)}var oP=`hidden`,sP=8,cP=3,K;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})(K||={});var lP={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},uP=new Set([U.TABLE,U.TBODY,U.TFOOT,U.THEAD,U.TR]),dP={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:NN,onParseError:null},fP=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=K.INITIAL,this.originalInsertionMode=K.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...dP,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new gN(this.options,this),this.activeFormattingElements=new MN(this.treeAdapter),this.fragmentContextID=n?rN(this.treeAdapter.getTagName(n)):U.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new ON(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...dP,...t};e??=n.treeAdapter.createElement(H.TEMPLATE,V.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,V.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===U.TEMPLATE&&i.tmplInsertionModeStack.unshift(K.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){if(!this.onParseError)return;let r=e.location??lP,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===V.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,V.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=K.TEXT}switchToPlaintextParsing(){this.insertionMode=K.TEXT,this.originalInsertionMode=K.IN_BODY,this.tokenizer.state=oN.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===H.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==V.HTML))switch(this.fragmentContextID){case U.TITLE:case U.TEXTAREA:this.tokenizer.state=oN.RCDATA;break;case U.STYLE:case U.XMP:case U.IFRAME:case U.NOEMBED:case U.NOFRAMES:case U.NOSCRIPT:this.tokenizer.state=oN.RAWTEXT;break;case U.SCRIPT:this.tokenizer.state=oN.SCRIPT_DATA;break;case U.PLAINTEXT:this.tokenizer.state=oN.PLAINTEXT;break;default:}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,V.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,V.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(H.HTML,V.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,U.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===RM.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===U.SVG&&this.treeAdapter.getTagName(t)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===V.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===U.MGLYPH||e.tagID===U.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,V.HTML)}_processToken(e){switch(e.type){case RM.CHARACTER:this.onCharacter(e);break;case RM.NULL_CHARACTER:this.onNullCharacter(e);break;case RM.COMMENT:this.onComment(e);break;case RM.DOCTYPE:this.onDoctype(e);break;case RM.START_TAG:this._processStartTag(e);break;case RM.END_TAG:this.onEndTag(e);break;case RM.EOF:this.onEof(e);break;case RM.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return aP(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===AN.Marker||this.openElements.contains(e.element)),n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=K.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(U.P),this.openElements.popUntilTagNamePopped(U.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case U.TR:this.insertionMode=K.IN_ROW;return;case U.TBODY:case U.THEAD:case U.TFOOT:this.insertionMode=K.IN_TABLE_BODY;return;case U.CAPTION:this.insertionMode=K.IN_CAPTION;return;case U.COLGROUP:this.insertionMode=K.IN_COLUMN_GROUP;return;case U.TABLE:this.insertionMode=K.IN_TABLE;return;case U.BODY:this.insertionMode=K.IN_BODY;return;case U.FRAMESET:this.insertionMode=K.IN_FRAMESET;return;case U.SELECT:this._resetInsertionModeForSelect(e);return;case U.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case U.HTML:this.insertionMode=this.headElement?K.AFTER_HEAD:K.BEFORE_HEAD;return;case U.TD:case U.TH:if(e>0){this.insertionMode=K.IN_CELL;return}break;case U.HEAD:if(e>0){this.insertionMode=K.IN_HEAD;return}break}this.insertionMode=K.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===U.TEMPLATE)break;if(e===U.TABLE){this.insertionMode=K.IN_SELECT_IN_TABLE;return}}this.insertionMode=K.IN_SELECT}_isElementCausesFosterParenting(e){return uP.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case U.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===V.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case U.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return iN[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){AI(this,e);return}switch(this.insertionMode){case K.INITIAL:TP(this,e);break;case K.BEFORE_HTML:OP(this,e);break;case K.BEFORE_HEAD:jP(this,e);break;case K.IN_HEAD:FP(this,e);break;case K.IN_HEAD_NO_SCRIPT:RP(this,e);break;case K.AFTER_HEAD:VP(this,e);break;case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:WP(this,e);break;case K.TEXT:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:zF(this,e);break;case K.IN_TABLE_TEXT:QF(this,e);break;case K.IN_COLUMN_GROUP:aI(this,e);break;case K.AFTER_BODY:xI(this,e);break;case K.AFTER_AFTER_BODY:DI(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kI(this,e);return}switch(this.insertionMode){case K.INITIAL:TP(this,e);break;case K.BEFORE_HTML:OP(this,e);break;case K.BEFORE_HEAD:jP(this,e);break;case K.IN_HEAD:FP(this,e);break;case K.IN_HEAD_NO_SCRIPT:RP(this,e);break;case K.AFTER_HEAD:VP(this,e);break;case K.TEXT:this._insertCharacters(e);break;case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:zF(this,e);break;case K.IN_COLUMN_GROUP:aI(this,e);break;case K.AFTER_BODY:xI(this,e);break;case K.AFTER_AFTER_BODY:DI(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){bP(this,e);return}switch(this.insertionMode){case K.INITIAL:case K.BEFORE_HTML:case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_TEMPLATE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:bP(this,e);break;case K.IN_TABLE_TEXT:$F(this,e);break;case K.AFTER_BODY:xP(this,e);break;case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:SP(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case K.INITIAL:wP(this,e);break;case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:this._err(e,B.misplacedDoctype);break;case K.IN_TABLE_TEXT:$F(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,B.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?MI(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case K.INITIAL:TP(this,e);break;case K.BEFORE_HTML:EP(this,e);break;case K.BEFORE_HEAD:kP(this,e);break;case K.IN_HEAD:MP(this,e);break;case K.IN_HEAD_NO_SCRIPT:IP(this,e);break;case K.AFTER_HEAD:zP(this,e);break;case K.IN_BODY:CF(this,e);break;case K.IN_TABLE:JF(this,e);break;case K.IN_TABLE_TEXT:$F(this,e);break;case K.IN_CAPTION:tI(this,e);break;case K.IN_COLUMN_GROUP:rI(this,e);break;case K.IN_TABLE_BODY:oI(this,e);break;case K.IN_ROW:cI(this,e);break;case K.IN_CELL:uI(this,e);break;case K.IN_SELECT:fI(this,e);break;case K.IN_SELECT_IN_TABLE:mI(this,e);break;case K.IN_TEMPLATE:gI(this,e);break;case K.AFTER_BODY:yI(this,e);break;case K.IN_FRAMESET:SI(this,e);break;case K.AFTER_FRAMESET:wI(this,e);break;case K.AFTER_AFTER_BODY:EI(this,e);break;case K.AFTER_AFTER_FRAMESET:OI(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?NI(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case K.INITIAL:TP(this,e);break;case K.BEFORE_HTML:DP(this,e);break;case K.BEFORE_HEAD:AP(this,e);break;case K.IN_HEAD:NP(this,e);break;case K.IN_HEAD_NO_SCRIPT:LP(this,e);break;case K.AFTER_HEAD:BP(this,e);break;case K.IN_BODY:FF(this,e);break;case K.TEXT:LF(this,e);break;case K.IN_TABLE:YF(this,e);break;case K.IN_TABLE_TEXT:$F(this,e);break;case K.IN_CAPTION:nI(this,e);break;case K.IN_COLUMN_GROUP:iI(this,e);break;case K.IN_TABLE_BODY:sI(this,e);break;case K.IN_ROW:lI(this,e);break;case K.IN_CELL:dI(this,e);break;case K.IN_SELECT:pI(this,e);break;case K.IN_SELECT_IN_TABLE:hI(this,e);break;case K.IN_TEMPLATE:_I(this,e);break;case K.AFTER_BODY:bI(this,e);break;case K.IN_FRAMESET:CI(this,e);break;case K.AFTER_FRAMESET:TI(this,e);break;case K.AFTER_AFTER_BODY:DI(this,e);break;default:}}onEof(e){switch(this.insertionMode){case K.INITIAL:TP(this,e);break;case K.BEFORE_HTML:OP(this,e);break;case K.BEFORE_HEAD:jP(this,e);break;case K.IN_HEAD:FP(this,e);break;case K.IN_HEAD_NO_SCRIPT:RP(this,e);break;case K.AFTER_HEAD:VP(this,e);break;case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:IF(this,e);break;case K.TEXT:RF(this,e);break;case K.IN_TABLE_TEXT:$F(this,e);break;case K.IN_TEMPLATE:vI(this,e);break;case K.AFTER_BODY:case K.IN_FRAMESET:case K.AFTER_FRAMESET:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:CP(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===z.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.TEXT:case K.IN_COLUMN_GROUP:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:this._insertCharacters(e);break;case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:case K.AFTER_BODY:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:UP(this,e);break;case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:zF(this,e);break;case K.IN_TABLE_TEXT:ZF(this,e);break;default:}}};function pP(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):PF(e,t),n}function mP(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function hP(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=cP;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=gP(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function gP(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function _P(e,t,n){let r=rN(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===U.TEMPLATE&&i===V.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function vP(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function yP(e,t){for(let n=0;n<sP;n++){let n=pP(e,t);if(!n)break;let r=mP(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=hP(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&_P(e,a,i),vP(e,r,n)}}function bP(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function xP(e,t){e._appendCommentNode(t,e.openElements.items[0])}function SP(e,t){e._appendCommentNode(t,e.document)}function CP(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function wP(e,t){e._setDocumentType(t);let n=t.forceQuirks?tN.QUIRKS:WN(t);UN(t)||e._err(t,B.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=K.BEFORE_HTML}function TP(e,t){e._err(t,B.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tN.QUIRKS),e.insertionMode=K.BEFORE_HTML,e._processToken(t)}function EP(e,t){t.tagID===U.HTML?(e._insertElement(t,V.HTML),e.insertionMode=K.BEFORE_HEAD):OP(e,t)}function DP(e,t){let n=t.tagID;(n===U.HTML||n===U.HEAD||n===U.BODY||n===U.BR)&&OP(e,t)}function OP(e,t){e._insertFakeRootElement(),e.insertionMode=K.BEFORE_HEAD,e._processToken(t)}function kP(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.HEAD:e._insertElement(t,V.HTML),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD;break;default:jP(e,t)}}function AP(e,t){let n=t.tagID;n===U.HEAD||n===U.BODY||n===U.HTML||n===U.BR?jP(e,t):e._err(t,B.endTagWithoutMatchingOpenElement)}function jP(e,t){e._insertFakeElement(H.HEAD,U.HEAD),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD,e._processToken(t)}function MP(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.BASE:case U.BASEFONT:case U.BGSOUND:case U.LINK:case U.META:e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break;case U.TITLE:e._switchToTextParsing(t,oN.RCDATA);break;case U.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,oN.RAWTEXT):(e._insertElement(t,V.HTML),e.insertionMode=K.IN_HEAD_NO_SCRIPT);break;case U.NOFRAMES:case U.STYLE:e._switchToTextParsing(t,oN.RAWTEXT);break;case U.SCRIPT:e._switchToTextParsing(t,oN.SCRIPT_DATA);break;case U.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=K.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(K.IN_TEMPLATE);break;case U.HEAD:e._err(t,B.misplacedStartTagForHeadElement);break;default:FP(e,t)}}function NP(e,t){switch(t.tagID){case U.HEAD:e.openElements.pop(),e.insertionMode=K.AFTER_HEAD;break;case U.BODY:case U.BR:case U.HTML:FP(e,t);break;case U.TEMPLATE:PP(e,t);break;default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function PP(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==U.TEMPLATE&&e._err(t,B.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(U.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,B.endTagWithoutMatchingOpenElement)}function FP(e,t){e.openElements.pop(),e.insertionMode=K.AFTER_HEAD,e._processToken(t)}function IP(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.BASEFONT:case U.BGSOUND:case U.HEAD:case U.LINK:case U.META:case U.NOFRAMES:case U.STYLE:MP(e,t);break;case U.NOSCRIPT:e._err(t,B.nestedNoscriptInHead);break;default:RP(e,t)}}function LP(e,t){switch(t.tagID){case U.NOSCRIPT:e.openElements.pop(),e.insertionMode=K.IN_HEAD;break;case U.BR:RP(e,t);break;default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function RP(e,t){let n=t.type===RM.EOF?B.openElementsLeftAfterEof:B.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=K.IN_HEAD,e._processToken(t)}function zP(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.BODY:e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=K.IN_BODY;break;case U.FRAMESET:e._insertElement(t,V.HTML),e.insertionMode=K.IN_FRAMESET;break;case U.BASE:case U.BASEFONT:case U.BGSOUND:case U.LINK:case U.META:case U.NOFRAMES:case U.SCRIPT:case U.STYLE:case U.TEMPLATE:case U.TITLE:e._err(t,B.abandonedHeadElementChild),e.openElements.push(e.headElement,U.HEAD),MP(e,t),e.openElements.remove(e.headElement);break;case U.HEAD:e._err(t,B.misplacedStartTagForHeadElement);break;default:VP(e,t)}}function BP(e,t){switch(t.tagID){case U.BODY:case U.HTML:case U.BR:VP(e,t);break;case U.TEMPLATE:PP(e,t);break;default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function VP(e,t){e._insertFakeElement(H.BODY,U.BODY),e.insertionMode=K.IN_BODY,HP(e,t)}function HP(e,t){switch(t.type){case RM.CHARACTER:WP(e,t);break;case RM.WHITESPACE_CHARACTER:UP(e,t);break;case RM.COMMENT:bP(e,t);break;case RM.START_TAG:CF(e,t);break;case RM.END_TAG:FF(e,t);break;case RM.EOF:IF(e,t);break;default:}}function UP(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function WP(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function GP(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function KP(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function qP(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_FRAMESET)}function JP(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML)}function YP(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&aN.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,V.HTML)}function XP(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ZP(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML),n||(e.formElement=e.openElements.current))}function QP(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===U.LI&&r===U.LI||(n===U.DD||n===U.DT)&&(r===U.DD||r===U.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==U.ADDRESS&&r!==U.DIV&&r!==U.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML)}function $P(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.tokenizer.state=oN.PLAINTEXT}function eF(e,t){e.openElements.hasInScope(U.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(U.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.framesetOk=!1}function tF(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(yP(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rF(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(U.NOBR)&&(yP(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function aF(e,t){e.treeAdapter.getDocumentMode(e.document)!==tN.QUIRKS&&e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=K.IN_TABLE}function oF(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,V.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sF(e){let t=zM(e,eN.TYPE);return t!=null&&t.toLowerCase()===oP}function cF(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,V.HTML),sF(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function lF(e,t){e._appendElement(t,V.HTML),t.ackSelfClosing=!0}function uF(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._appendElement(t,V.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function dF(e,t){t.tagName=H.IMG,t.tagID=U.IMG,oF(e,t)}function fF(e,t){e._insertElement(t,V.HTML),e.skipNextNewLine=!0,e.tokenizer.state=oN.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=K.TEXT}function pF(e,t){e.openElements.hasInButtonScope(U.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,oN.RAWTEXT)}function mF(e,t){e.framesetOk=!1,e._switchToTextParsing(t,oN.RAWTEXT)}function hF(e,t){e._switchToTextParsing(t,oN.RAWTEXT)}function gF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===K.IN_TABLE||e.insertionMode===K.IN_CAPTION||e.insertionMode===K.IN_TABLE_BODY||e.insertionMode===K.IN_ROW||e.insertionMode===K.IN_CELL?K.IN_SELECT_IN_TABLE:K.IN_SELECT}function _F(e,t){e.openElements.currentTagId===U.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML)}function vF(e,t){e.openElements.hasInScope(U.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,V.HTML)}function yF(e,t){e.openElements.hasInScope(U.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(U.RTC),e._insertElement(t,V.HTML)}function bF(e,t){e._reconstructActiveFormattingElements(),$N(t),tP(t),t.selfClosing?e._appendElement(t,V.MATHML):e._insertElement(t,V.MATHML),t.ackSelfClosing=!0}function xF(e,t){e._reconstructActiveFormattingElements(),eP(t),tP(t),t.selfClosing?e._appendElement(t,V.SVG):e._insertElement(t,V.SVG),t.ackSelfClosing=!0}function SF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML)}function CF(e,t){switch(t.tagID){case U.I:case U.S:case U.B:case U.U:case U.EM:case U.TT:case U.BIG:case U.CODE:case U.FONT:case U.SMALL:case U.STRIKE:case U.STRONG:nF(e,t);break;case U.A:tF(e,t);break;case U.H1:case U.H2:case U.H3:case U.H4:case U.H5:case U.H6:YP(e,t);break;case U.P:case U.DL:case U.OL:case U.UL:case U.DIV:case U.DIR:case U.NAV:case U.MAIN:case U.MENU:case U.ASIDE:case U.CENTER:case U.FIGURE:case U.FOOTER:case U.HEADER:case U.HGROUP:case U.DIALOG:case U.DETAILS:case U.ADDRESS:case U.ARTICLE:case U.SEARCH:case U.SECTION:case U.SUMMARY:case U.FIELDSET:case U.BLOCKQUOTE:case U.FIGCAPTION:JP(e,t);break;case U.LI:case U.DD:case U.DT:QP(e,t);break;case U.BR:case U.IMG:case U.WBR:case U.AREA:case U.EMBED:case U.KEYGEN:oF(e,t);break;case U.HR:uF(e,t);break;case U.RB:case U.RTC:vF(e,t);break;case U.RT:case U.RP:yF(e,t);break;case U.PRE:case U.LISTING:XP(e,t);break;case U.XMP:pF(e,t);break;case U.SVG:xF(e,t);break;case U.HTML:GP(e,t);break;case U.BASE:case U.LINK:case U.META:case U.STYLE:case U.TITLE:case U.SCRIPT:case U.BGSOUND:case U.BASEFONT:case U.TEMPLATE:MP(e,t);break;case U.BODY:KP(e,t);break;case U.FORM:ZP(e,t);break;case U.NOBR:rF(e,t);break;case U.MATH:bF(e,t);break;case U.TABLE:aF(e,t);break;case U.INPUT:cF(e,t);break;case U.PARAM:case U.TRACK:case U.SOURCE:lF(e,t);break;case U.IMAGE:dF(e,t);break;case U.BUTTON:eF(e,t);break;case U.APPLET:case U.OBJECT:case U.MARQUEE:iF(e,t);break;case U.IFRAME:mF(e,t);break;case U.SELECT:gF(e,t);break;case U.OPTION:case U.OPTGROUP:_F(e,t);break;case U.NOEMBED:case U.NOFRAMES:hF(e,t);break;case U.FRAMESET:qP(e,t);break;case U.TEXTAREA:fF(e,t);break;case U.NOSCRIPT:e.options.scriptingEnabled?hF(e,t):SF(e,t);break;case U.PLAINTEXT:$P(e,t);break;case U.COL:case U.TH:case U.TD:case U.TR:case U.HEAD:case U.FRAME:case U.TBODY:case U.TFOOT:case U.THEAD:case U.CAPTION:case U.COLGROUP:break;default:SF(e,t)}}function wF(e,t){if(e.openElements.hasInScope(U.BODY)&&(e.insertionMode=K.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function TF(e,t){e.openElements.hasInScope(U.BODY)&&(e.insertionMode=K.AFTER_BODY,bI(e,t))}function EF(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function DF(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(U.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(U.FORM):n&&e.openElements.remove(n))}function OF(e){e.openElements.hasInButtonScope(U.P)||e._insertFakeElement(H.P,U.P),e._closePElement()}function kF(e){e.openElements.hasInListItemScope(U.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(U.LI),e.openElements.popUntilTagNamePopped(U.LI))}function AF(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function jF(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function MF(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function NF(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,U.BR),e.openElements.pop(),e.framesetOk=!1}function PF(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==U.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function FF(e,t){switch(t.tagID){case U.A:case U.B:case U.I:case U.S:case U.U:case U.EM:case U.TT:case U.BIG:case U.CODE:case U.FONT:case U.NOBR:case U.SMALL:case U.STRIKE:case U.STRONG:yP(e,t);break;case U.P:OF(e);break;case U.DL:case U.UL:case U.OL:case U.DIR:case U.DIV:case U.NAV:case U.PRE:case U.MAIN:case U.MENU:case U.ASIDE:case U.BUTTON:case U.CENTER:case U.FIGURE:case U.FOOTER:case U.HEADER:case U.HGROUP:case U.DIALOG:case U.ADDRESS:case U.ARTICLE:case U.DETAILS:case U.SEARCH:case U.SECTION:case U.SUMMARY:case U.LISTING:case U.FIELDSET:case U.BLOCKQUOTE:case U.FIGCAPTION:EF(e,t);break;case U.LI:kF(e);break;case U.DD:case U.DT:AF(e,t);break;case U.H1:case U.H2:case U.H3:case U.H4:case U.H5:case U.H6:jF(e);break;case U.BR:NF(e);break;case U.BODY:wF(e,t);break;case U.HTML:TF(e,t);break;case U.FORM:DF(e);break;case U.APPLET:case U.OBJECT:case U.MARQUEE:MF(e,t);break;case U.TEMPLATE:PP(e,t);break;default:PF(e,t)}}function IF(e,t){e.tmplInsertionModeStack.length>0?vI(e,t):CP(e,t)}function LF(e,t){var n;t.tagID===U.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function RF(e,t){e._err(t,B.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function zF(e,t){if(e.openElements.currentTagId!==void 0&&uP.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=K.IN_TABLE_TEXT,t.type){case RM.CHARACTER:QF(e,t);break;case RM.WHITESPACE_CHARACTER:ZF(e,t);break}else XF(e,t)}function BF(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_CAPTION}function VF(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_COLUMN_GROUP}function HF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,U.COLGROUP),e.insertionMode=K.IN_COLUMN_GROUP,rI(e,t)}function UF(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_TABLE_BODY}function WF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,U.TBODY),e.insertionMode=K.IN_TABLE_BODY,oI(e,t)}function GF(e,t){e.openElements.hasInTableScope(U.TABLE)&&(e.openElements.popUntilTagNamePopped(U.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function KF(e,t){sF(t)?e._appendElement(t,V.HTML):XF(e,t),t.ackSelfClosing=!0}function qF(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,V.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function JF(e,t){switch(t.tagID){case U.TD:case U.TH:case U.TR:WF(e,t);break;case U.STYLE:case U.SCRIPT:case U.TEMPLATE:MP(e,t);break;case U.COL:HF(e,t);break;case U.FORM:qF(e,t);break;case U.TABLE:GF(e,t);break;case U.TBODY:case U.TFOOT:case U.THEAD:UF(e,t);break;case U.INPUT:KF(e,t);break;case U.CAPTION:BF(e,t);break;case U.COLGROUP:VF(e,t);break;default:XF(e,t)}}function YF(e,t){switch(t.tagID){case U.TABLE:e.openElements.hasInTableScope(U.TABLE)&&(e.openElements.popUntilTagNamePopped(U.TABLE),e._resetInsertionMode());break;case U.TEMPLATE:PP(e,t);break;case U.BODY:case U.CAPTION:case U.COL:case U.COLGROUP:case U.HTML:case U.TBODY:case U.TD:case U.TFOOT:case U.TH:case U.THEAD:case U.TR:break;default:XF(e,t)}}function XF(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,HP(e,t),e.fosterParentingEnabled=n}function ZF(e,t){e.pendingCharacterTokens.push(t)}function QF(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $F(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)XF(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var eI=new Set([U.CAPTION,U.COL,U.COLGROUP,U.TBODY,U.TD,U.TFOOT,U.TH,U.THEAD,U.TR]);function tI(e,t){let n=t.tagID;eI.has(n)?e.openElements.hasInTableScope(U.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(U.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,JF(e,t)):CF(e,t)}function nI(e,t){let n=t.tagID;switch(n){case U.CAPTION:case U.TABLE:e.openElements.hasInTableScope(U.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(U.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,n===U.TABLE&&YF(e,t));break;case U.BODY:case U.COL:case U.COLGROUP:case U.HTML:case U.TBODY:case U.TD:case U.TFOOT:case U.TH:case U.THEAD:case U.TR:break;default:FF(e,t)}}function rI(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.COL:e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break;case U.TEMPLATE:MP(e,t);break;default:aI(e,t)}}function iI(e,t){switch(t.tagID){case U.COLGROUP:e.openElements.currentTagId===U.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE);break;case U.TEMPLATE:PP(e,t);break;case U.COL:break;default:aI(e,t)}}function aI(e,t){e.openElements.currentTagId===U.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE,e._processToken(t))}function oI(e,t){switch(t.tagID){case U.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_ROW;break;case U.TH:case U.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,U.TR),e.insertionMode=K.IN_ROW,cI(e,t);break;case U.CAPTION:case U.COL:case U.COLGROUP:case U.TBODY:case U.TFOOT:case U.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,JF(e,t));break;default:JF(e,t)}}function sI(e,t){let n=t.tagID;switch(t.tagID){case U.TBODY:case U.TFOOT:case U.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE);break;case U.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,YF(e,t));break;case U.BODY:case U.CAPTION:case U.COL:case U.COLGROUP:case U.HTML:case U.TD:case U.TH:case U.TR:break;default:YF(e,t)}}function cI(e,t){switch(t.tagID){case U.TH:case U.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,V.HTML),e.insertionMode=K.IN_CELL,e.activeFormattingElements.insertMarker();break;case U.CAPTION:case U.COL:case U.COLGROUP:case U.TBODY:case U.TFOOT:case U.THEAD:case U.TR:e.openElements.hasInTableScope(U.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,oI(e,t));break;default:JF(e,t)}}function lI(e,t){switch(t.tagID){case U.TR:e.openElements.hasInTableScope(U.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY);break;case U.TABLE:e.openElements.hasInTableScope(U.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,sI(e,t));break;case U.TBODY:case U.TFOOT:case U.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(U.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,sI(e,t));break;case U.BODY:case U.CAPTION:case U.COL:case U.COLGROUP:case U.HTML:case U.TD:case U.TH:break;default:YF(e,t)}}function uI(e,t){let n=t.tagID;eI.has(n)?(e.openElements.hasInTableScope(U.TD)||e.openElements.hasInTableScope(U.TH))&&(e._closeTableCell(),cI(e,t)):CF(e,t)}function dI(e,t){let n=t.tagID;switch(n){case U.TD:case U.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_ROW);break;case U.TABLE:case U.TBODY:case U.TFOOT:case U.THEAD:case U.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),lI(e,t));break;case U.BODY:case U.CAPTION:case U.COL:case U.COLGROUP:case U.HTML:break;default:FF(e,t)}}function fI(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.OPTION:e.openElements.currentTagId===U.OPTION&&e.openElements.pop(),e._insertElement(t,V.HTML);break;case U.OPTGROUP:e.openElements.currentTagId===U.OPTION&&e.openElements.pop(),e.openElements.currentTagId===U.OPTGROUP&&e.openElements.pop(),e._insertElement(t,V.HTML);break;case U.HR:e.openElements.currentTagId===U.OPTION&&e.openElements.pop(),e.openElements.currentTagId===U.OPTGROUP&&e.openElements.pop(),e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break;case U.INPUT:case U.KEYGEN:case U.TEXTAREA:case U.SELECT:e.openElements.hasInSelectScope(U.SELECT)&&(e.openElements.popUntilTagNamePopped(U.SELECT),e._resetInsertionMode(),t.tagID!==U.SELECT&&e._processStartTag(t));break;case U.SCRIPT:case U.TEMPLATE:MP(e,t);break;default:}}function pI(e,t){switch(t.tagID){case U.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===U.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===U.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===U.OPTGROUP&&e.openElements.pop();break;case U.OPTION:e.openElements.currentTagId===U.OPTION&&e.openElements.pop();break;case U.SELECT:e.openElements.hasInSelectScope(U.SELECT)&&(e.openElements.popUntilTagNamePopped(U.SELECT),e._resetInsertionMode());break;case U.TEMPLATE:PP(e,t);break;default:}}function mI(e,t){let n=t.tagID;n===U.CAPTION||n===U.TABLE||n===U.TBODY||n===U.TFOOT||n===U.THEAD||n===U.TR||n===U.TD||n===U.TH?(e.openElements.popUntilTagNamePopped(U.SELECT),e._resetInsertionMode(),e._processStartTag(t)):fI(e,t)}function hI(e,t){let n=t.tagID;n===U.CAPTION||n===U.TABLE||n===U.TBODY||n===U.TFOOT||n===U.THEAD||n===U.TR||n===U.TD||n===U.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(U.SELECT),e._resetInsertionMode(),e.onEndTag(t)):pI(e,t)}function gI(e,t){switch(t.tagID){case U.BASE:case U.BASEFONT:case U.BGSOUND:case U.LINK:case U.META:case U.NOFRAMES:case U.SCRIPT:case U.STYLE:case U.TEMPLATE:case U.TITLE:MP(e,t);break;case U.CAPTION:case U.COLGROUP:case U.TBODY:case U.TFOOT:case U.THEAD:e.tmplInsertionModeStack[0]=K.IN_TABLE,e.insertionMode=K.IN_TABLE,JF(e,t);break;case U.COL:e.tmplInsertionModeStack[0]=K.IN_COLUMN_GROUP,e.insertionMode=K.IN_COLUMN_GROUP,rI(e,t);break;case U.TR:e.tmplInsertionModeStack[0]=K.IN_TABLE_BODY,e.insertionMode=K.IN_TABLE_BODY,oI(e,t);break;case U.TD:case U.TH:e.tmplInsertionModeStack[0]=K.IN_ROW,e.insertionMode=K.IN_ROW,cI(e,t);break;default:e.tmplInsertionModeStack[0]=K.IN_BODY,e.insertionMode=K.IN_BODY,CF(e,t)}}function _I(e,t){t.tagID===U.TEMPLATE&&PP(e,t)}function vI(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(U.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):CP(e,t)}function yI(e,t){t.tagID===U.HTML?CF(e,t):xI(e,t)}function bI(e,t){if(t.tagID===U.HTML){if(e.fragmentContext||(e.insertionMode=K.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===U.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else xI(e,t)}function xI(e,t){e.insertionMode=K.IN_BODY,HP(e,t)}function SI(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.FRAMESET:e._insertElement(t,V.HTML);break;case U.FRAME:e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break;case U.NOFRAMES:MP(e,t);break;default:}}function CI(e,t){t.tagID===U.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==U.FRAMESET&&(e.insertionMode=K.AFTER_FRAMESET))}function wI(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.NOFRAMES:MP(e,t);break;default:}}function TI(e,t){t.tagID===U.HTML&&(e.insertionMode=K.AFTER_AFTER_FRAMESET)}function EI(e,t){t.tagID===U.HTML?CF(e,t):DI(e,t)}function DI(e,t){e.insertionMode=K.IN_BODY,HP(e,t)}function OI(e,t){switch(t.tagID){case U.HTML:CF(e,t);break;case U.NOFRAMES:MP(e,t);break;default:}}function kI(e,t){t.chars=`�`,e._insertCharacters(t)}function AI(e,t){e._insertCharacters(t),e.framesetOk=!1}function jI(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==V.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function MI(e,t){if(QN(t))jI(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===V.MATHML?$N(t):r===V.SVG&&(nP(t),eP(t)),tP(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function NI(e,t){if(t.tagID===U.P||t.tagID===U.BR){jI(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===V.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}new Set([H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR]);var PI=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,FI=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),II={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function LI(e,t){let n=ZI(e),r=mM(`type`,{handlers:{root:zI,element:BI,text:VI,comment:WI,doctype:HI,raw:GI},unknown:KI}),i={parser:n?new fP(II):fP.getFragmentParser(void 0,II),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),qI(i,BO());let a=aM(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&BA(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function RI(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function zI(e,t){RI(e.children,t)}function BI(e,t){YI(e,t),RI(e.children,t),XI(e,t)}function VI(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:RM.CHARACTER,chars:e.value,location:QI(e)};qI(t,BO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function HI(e,t){let n={type:RM.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:QI(e)};qI(t,BO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function UI(e,t){t.stitches=!0;let n=$I(e);`children`in e&&`children`in n&&(n.children=LI({type:`root`,children:e.children},t.options).children),WI({type:`comment`,value:{stitch:n}},t)}function WI(e,t){let n=e.value,r={type:RM.COMMENT,data:n,location:QI(e)};qI(t,BO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GI(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,JI(t,BO(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(PI,`&lt;$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function KI(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))UI(n,t);else{let e=``;throw FI.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function qI(e,t){JI(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=oN.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function JI(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function YI(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===oN.PLAINTEXT)return;qI(t,BO(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:nM.html;i===nM.html&&n===`svg`&&(i=nM.svg);let a=vM({...e,children:[]},{space:i===nM.svg?`svg`:`html`}),o={type:RM.START_TAG,tagName:n,tagID:rN(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:QI(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function XI(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&OM.includes(n)||t.parser.tokenizer.state===oN.PLAINTEXT)return;qI(t,zO(e));let r={type:RM.END_TAG,tagName:n,tagID:rN(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:QI(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===oN.RCDATA||t.parser.tokenizer.state===oN.RAWTEXT||t.parser.tokenizer.state===oN.SCRIPT_DATA)&&(t.parser.tokenizer.state=oN.DATA)}function ZI(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function QI(e){let t=BO(e)||{line:void 0,column:void 0,offset:void 0},n=zO(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function $I(e){return`children`in e?wA({...e,children:[]}):wA(e)}function eL(e){return function(t,n){return LI(t,{...e,file:n})}}var tL=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],nL={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...tL,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...tL],h2:[[`className`,`sr-only`]],img:[...tL,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...tL,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...tL],table:[...tL],ul:[...tL,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},rL={}.hasOwnProperty;function iL(e,t){let n={type:`root`,children:[]},r=aL({schema:t?{...nL,...t}:nL,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function aL(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return oL(e,n);case`doctype`:return sL(e,n);case`element`:return cL(e,n);case`root`:return lL(e,n);case`text`:return uL(e,n);default:}}}function oL(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return _L(r,t),r}}function sL(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return _L(e,t),e}}function cL(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=dL(e,t.children),i=fL(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&rL.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return _L(o,t),o}function lL(e,t){let n={type:`root`,children:dL(e,t.children)};return _L(n,t),n}function uL(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return _L(n,t),n}function dL(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=aL(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function fL(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&rL.call(r,n)?r[n]:void 0,o=r&&rL.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(rL.call(s,l)){let t=s[l],n=pL(e,vL(a,l),l,t);n??=pL(e,vL(o,l),l,t),n!=null&&(c[l]=n)}if(i&&rL.call(i,n)){let e=i[n];for(l in e)rL.call(e,l)&&!rL.call(c,l)&&(c[l]=e[l])}return c}function pL(e,t,n,r){return t?Array.isArray(r)?mL(e,t,n,r):hL(e,t,n,r):void 0}function mL(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=hL(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function hL(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&gL(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function gL(e,t,n){let r=e.schema.protocols&&rL.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function _L(e,t){let n=HO(t);t.data&&(e.data=wA(t.data)),n&&(e.position=n)}function vL(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function yL(e){return function(t){return iL(t,e)}}var bL=n(i(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),xL=Object.assign(SL(Error),{eval:SL(EvalError),range:SL(RangeError),reference:SL(ReferenceError),syntax:SL(SyntaxError),type:SL(TypeError),uri:SL(URIError)});function SL(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,bL.default)(t,...n))}}var CL={}.hasOwnProperty,wL={yaml:`-`,toml:`+`};function TL(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=EL(r[n]);return t}function EL(e){let t=e;if(typeof t==`string`){if(!CL.call(wL,t))throw xL("Missing matter definition for `%s`",t);t={type:t,marker:wL[t]}}else if(typeof t!=`object`)throw xL("Expected matter to be an object, not `%j`",t);if(!CL.call(t,`type`))throw xL("Missing `type` in matter `%j`",t);if(!CL.call(t,`fence`)&&!CL.call(t,`marker`))throw xL("Missing `marker` or `fence` in matter `%j`",t);return t}function DL(e){let t=TL(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=kL(e,`open`).charCodeAt(0),a=OL(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function OL(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=kL(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),yk(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return yk(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return R(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=kL(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||R(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||R(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),yk(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return yk(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||R(i)?(e.exit(r),t(i)):n(i)}}}function kL(e,t){return e.marker?AL(e.marker,t).repeat(3):AL(e.fence,t)}function AL(e,t){return typeof e==`string`?e:e[t]}function jL(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function ML(e){let t=TL(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=NL(e),r[e.type]=PL,r[e.type+`Value`]=FL}return{enter:n,exit:r}}function NL(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function PL(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function FL(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function IL(e){let t=[],n={},r=TL(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=LL(e);let a=RL(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:jL(a.charAt(1))})}return{unsafe:t,handlers:n}}function LL(e){let t=RL(e,`open`),n=RL(e,`close`);return r;function r(e){return t+(e.value?`
59
+ `+e.value:``)+`
60
+ `+n}}function RL(e,t){return e.marker?zL(e.marker,t).repeat(3):zL(e.fence,t)}function zL(e,t){return typeof e==`string`?e:e[t]}var BL=`yaml`;function VL(e){let t=this,n=e||BL,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(DL(n)),a.push(ML(n)),o.push(IL(n))}function HL(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function UL(e,t,n){let r=OA((n||{}).ignore||[]),i=WL(t),a=-1;for(;++a<i.length;)RA(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function WL(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([GL(e[0]),KL(e[1])])}return t}function GL(e){return typeof e==`string`?new RegExp(jL(e),`g`):e}function KL(e){return typeof e==`function`?e:function(){return e}}var qL=`phrasing`,JL=[`autolink`,`link`,`image`,`label`];function YL(){return{transforms:[rR],enter:{literalAutolink:ZL,literalAutolinkEmail:QL,literalAutolinkHttp:QL,literalAutolinkWww:QL},exit:{literalAutolink:nR,literalAutolinkEmail:tR,literalAutolinkHttp:$L,literalAutolinkWww:eR}}}function XL(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:qL,notInConstruct:JL},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:qL,notInConstruct:JL},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:qL,notInConstruct:JL}]}}function ZL(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function QL(e){this.config.enter.autolinkProtocol.call(this,e)}function $L(e){this.config.exit.autolinkProtocol.call(this,e)}function eR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function tR(e){this.config.exit.autolinkEmail.call(this,e)}function nR(e){this.exit(e)}function rR(e){UL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,aR]],{ignore:[`link`,`linkReference`]})}function iR(e,t,n,r,i){let a=``;if(!cR(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!oR(n)))return!1;let o=sR(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function aR(e,t,n,r){return!cR(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function oR(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function sR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=HL(e,`(`),a=HL(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function cR(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||xk(n)||bk(n))&&(!t||n!==47)}vR.peek=_R;function lR(){this.buffer()}function uR(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function dR(){this.buffer()}function fR(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function pR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pk(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mR(e){this.exit(e)}function hR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pk(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gR(e){this.exit(e)}function _R(){return`[`}function vR(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function yR(){return{enter:{gfmFootnoteCallString:lR,gfmFootnoteCall:uR,gfmFootnoteDefinitionLabelString:dR,gfmFootnoteDefinition:fR},exit:{gfmFootnoteCallString:pR,gfmFootnoteCall:mR,gfmFootnoteDefinitionLabelString:hR,gfmFootnoteDefinition:gR}}}function bR(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:vR},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
61
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?SR:xR))),s(),o}}function xR(e,t,n){return t===0?e:SR(e,t,n)}function SR(e,t,n){return(n?``:` `)+e}var CR=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];OR.peek=kR;function wR(){return{canContainEols:[`delete`],enter:{strikethrough:ER},exit:{strikethrough:DR}}}function TR(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:CR}],handlers:{delete:OR}}}function ER(e){this.enter({type:`delete`,children:[]},e)}function DR(e){this.exit(e)}function OR(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function kR(){return`~`}function AR(e){return e.length}function jR(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||AR,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=MR(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=NR(r[d]);else{let e=NR(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
62
+ `)}function MR(e){return e==null?``:String(e)}function NR(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function PR(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),FR);return i(),o}function FR(e,t,n){return`>`+(n?``:` `)+e}function IR(e,t){return LR(e,t.inConstruct,!0)&&!LR(e,t.notInConstruct,!1)}function LR(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function RR(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
63
+ `&&IR(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
64
+ `}function zR(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function BR(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function VR(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function HR(e,t,n,r){let i=VR(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(BR(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,UR);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(zR(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
65
+ `,encode:["`"],...s.current()})),t()}return u+=s.move(`
66
+ `),a&&(u+=s.move(a+`
67
+ `)),u+=s.move(c),l(),u}function UR(e,t,n){return(n?``:` `)+e}function WR(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function GR(e,t,n,r){let i=WR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
68
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function KR(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function qR(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function JR(e,t,n){let r=Ek(e),i=Ek(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}YR.peek=XR;function YR(e,t,n,r){let i=KR(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=JR(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qR(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=JR(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qR(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function XR(e,t,n){return n.options.emphasis||`*`}function ZR(e,t){let n=!1;return BA(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&rk(e)&&(t.options.setext||n))}function QR(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(ZR(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
69
+ `,after:`
70
+ `});return r(),t(),o+`
71
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
72
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
73
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=qR(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}$R.peek=ez;function $R(e){return e.value||``}function ez(){return`<`}tz.peek=nz;function tz(e,t,n,r){let i=WR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function nz(){return`!`}rz.peek=iz;function rz(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function iz(){return`!`}az.peek=oz;function az(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function oz(){return"`"}function sz(e,t){let n=rk(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cz.peek=lz;function cz(e,t,n,r){let i=WR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(sz(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function lz(e,t,n){return sz(e,n)?`<`:`[`}uz.peek=dz;function uz(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function dz(){return`[`}function fz(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pz(e){let t=fz(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function mz(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function hz(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function gz(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?mz(n):fz(n),s=e.ordered?o===`.`?`)`:`.`:pz(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),hz(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function _z(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vz(e,t,n,r){let i=_z(n),a=n.bulletCurrent||fz(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function yz(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var bz=OA([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function xz(e,t,n,r){return(e.children.some(function(e){return bz(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Sz(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Cz.peek=wz;function Cz(e,t,n,r){let i=Sz(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=JR(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qR(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=JR(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qR(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function wz(e,t,n){return n.options.strong||`*`}function Tz(e,t,n,r){return n.safe(e.value,r)}function Ez(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Dz(e,t,n){let r=(hz(n)+(n.options.ruleSpaces?` `:``)).repeat(Ez(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Oz={blockquote:PR,break:RR,code:HR,definition:GR,emphasis:YR,hardBreak:RR,heading:QR,html:$R,image:tz,imageReference:rz,inlineCode:az,link:cz,linkReference:uz,list:gz,listItem:vz,paragraph:yz,root:xz,strong:Cz,text:Tz,thematicBreak:Dz};function kz(){return{enter:{table:Az,tableData:Pz,tableHeader:Pz,tableRow:Mz},exit:{codeText:Fz,table:jz,tableData:Nz,tableHeader:Nz,tableRow:Nz}}}function Az(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function jz(e){this.exit(e),this.data.inTable=void 0}function Mz(e){this.enter({type:`tableRow`,children:[]},e)}function Nz(e){this.exit(e)}function Pz(e){this.enter({type:`tableCell`,children:[]},e)}function Fz(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Iz));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Iz(e,t){return t===`|`?t:e}function Lz(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
74
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
75
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return jR(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Oz.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Rz(){return{exit:{taskListCheckValueChecked:Bz,taskListCheckValueUnchecked:Bz,paragraph:Vz}}}function zz(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Hz}}}function Bz(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Vz(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Hz(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Oz.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Uz(){return[YL(),yR(),wR(),kz(),Rz()]}function Wz(e){return{extensions:[XL(),bR(e),TR(),Lz(e),zz()]}}var Gz={tokenize:aB,partial:!0},Kz={tokenize:oB,partial:!0},qz={tokenize:sB,partial:!0},Jz={tokenize:cB,partial:!0},Yz={tokenize:lB,partial:!0},Xz={name:`wwwAutolink`,tokenize:rB,previous:uB},Zz={name:`protocolAutolink`,tokenize:iB,previous:dB},Qz={name:`emailAutolink`,tokenize:nB,previous:fB},$z={};function eB(){return{text:$z}}for(var tB=48;tB<123;)$z[tB]=Qz,tB++,tB===58?tB=65:tB===91&&(tB=97);$z[43]=Qz,$z[45]=Qz,$z[46]=Qz,$z[95]=Qz,$z[72]=[Qz,Zz],$z[104]=[Qz,Zz],$z[87]=[Qz,Xz],$z[119]=[Qz,Xz];function nB(e,t,n){let r=this,i,a;return o;function o(t){return!pB(t)||!fB.call(r,r.previous)||mB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return pB(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Yz,u,l)(t):t===45||t===95||hk(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&mk(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function rB(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!uB.call(r,r.previous)||mB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Gz,e.attempt(Kz,e.attempt(qz,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function iB(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&dB.call(r,r.previous)&&!mB(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(mk(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||gk(t)||vk(t)||xk(t)||bk(t)?n(t):e.attempt(Kz,e.attempt(qz,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function aB(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function oB(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Jz,c,s)(t):t===null||vk(t)||xk(t)||t!==45&&bk(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function sB(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Jz,t,a)(o):o===null||vk(o)||xk(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function cB(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||vk(o)||xk(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||vk(e)||xk(e)?t(e):r(e)}function a(e){return mk(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):mk(t)?(e.consume(t),o):n(t)}}function lB(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return hk(e)?n(e):t(e)}}function uB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vk(e)}function dB(e){return!mk(e)}function fB(e){return!(e===47||pB(e))}function pB(e){return e===43||e===45||e===46||e===95||hk(e)}function mB(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var hB={tokenize:CB,partial:!0};function gB(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:bB,continuation:{tokenize:xB},exit:SB}},text:{91:{name:`gfmFootnoteCall`,tokenize:yB},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:_B,resolveTo:vB}}}}function _B(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=pk(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function vB(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function yB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||vk(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(pk(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return vk(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function bB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||vk(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=pk(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return vk(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),wk(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function xB(e,t,n){return e.check(Ak,t,e.attempt(hB,t,n))}function SB(e){e.exit(`gfmFootnoteDefinition`)}function CB(e,t,n){let r=this;return wk(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function wB(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&ck(o,o.length,0,Dk(s,e.slice(r+1,n),t)),ck(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ck(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ek(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ek(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var TB=class{constructor(){this.map=[]}add(e,t,n){EB(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function EB(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function DB(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function OB(){return{flow:{null:{name:`table`,tokenize:kB,resolveAll:AB}}}}function kB(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):R(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):yk(t)?wk(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||vk(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,yk(t)?wk(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return yk(t)?wk(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||R(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return yk(t)?wk(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||R(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||R(n)?(e.exit(`tableRow`),t(n)):yk(n)?wk(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||vk(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function AB(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new TB;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(MB(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=jB(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=jB(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=jB(f,t,o,i,n,d)):(o[0]=o[1],d=jB(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&MB(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=DB(t.events,n))}return e}function jB(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},NB(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=NB(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=NB(t.events,n[2]),a=NB(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},NB(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function MB(e,t,n,r,i){let a=[],o=NB(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function NB(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var PB={name:`tasklistCheck`,tokenize:IB};function FB(){return{text:{91:PB}}}function IB(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return vk(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return R(r)?t(r):yk(r)?e.check({tokenize:LB},t,n)(r):n(r)}}function LB(e,t,n){return wk(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function RB(e){return dk([eB(),gB(),wB(e),OB(),FB()])}var zB={};function BB(e){let t=this,n=e||zB,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(RB(n)),a.push(Uz()),o.push(Wz(n))}function VB(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function HB(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
76
+ `,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(zR(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
77
+ `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
78
+ `),i&&(c+=a.move(i+`
79
+ `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var UB={tokenize:GB,concrete:!0,name:`mathFlow`},WB={tokenize:KB,partial:!0};function GB(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),wk(e,l,`whitespace`)(t))}function l(t){return t===null||R(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||R(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(WB,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?wk(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):R(t)?e.attempt(WB,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||R(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return wk(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),wk(e,c,`whitespace`)(t))}function c(r){return r===null||R(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function KB(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function qB(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:JB,previous:YB,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):R(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||R(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function JB(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function YB(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function XB(e){return{flow:{36:UB},text:{36:qB(e)}}}var ZB={};function QB(e){let t=this,n=e||ZB,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(XB(n)),a.push(VB()),o.push(HB(n))}var $B=0,eV=1,tV=2,nV=4;function rV(e){return()=>e}function iV(e){e()}function aV(e,t){return n=>e(t(n))}function oV(e,t){return()=>e(t)}function sV(e,t){return n=>e(t,n)}function cV(e){return e!==void 0}function lV(...e){return()=>{e.map(iV)}}function uV(){}function dV(e,t){return t(e),e}function fV(e,t){return t(e)}function pV(...e){return e}function mV(e,t){return e(eV,t)}function hV(e,t){e($B,t)}function gV(e){e(tV)}function _V(e){return e(nV)}function q(e,t){return mV(e,sV(t,$B))}function vV(e,t){let n=e(eV,e=>{n(),t(e)});return n}function yV(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function bV(e,t){return e===t}function xV(e=bV){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function SV(e){return t=>n=>{e(n)&&t(n)}}function J(e){return t=>aV(t,e)}function CV(e){return t=>()=>{t(e)}}function Y(e,...t){let n=OV(...t);return((t,r)=>{switch(t){case tV:gV(e);return;case eV:return mV(e,n(r))}})}function wV(e,t){return n=>r=>{n(t=e(t,r))}}function TV(e){return t=>n=>{e>0?e--:t(n)}}function EV(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function DV(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;mV(e,e=>{let s=n;n|=o,t[a]=e,s!==i&&n===i&&r&&(r(),r=null)})}),e=>a=>{let o=()=>{e([a].concat(t))};n===i?o():r=o}}function OV(...e){return t=>e.reduceRight(fV,t)}function kV(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case eV:return a?n===a?void 0:(r(),n=a,t=mV(e,a),t):(r(),uV);case tV:r(),n=null;return}}}function X(e){let t=e,n=jV();return((e,r)=>{switch(e){case $B:t=r;break;case eV:r(t);break;case nV:return t}return n(e,r)})}function AV(e,t){return dV(X(t),t=>q(e,t))}function jV(){let e=[];return((t,n)=>{switch(t){case $B:e.slice().forEach(e=>{e(n)});return;case tV:e.splice(0,e.length);return;case eV:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function MV(e){return dV(jV(),t=>q(e,t))}function NV(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:PV(),singleton:n}}var PV=()=>Symbol();function FV(e){let t=new Map,n=({constructor:e,dependencies:r,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);let o=e(r.map(e=>n(e)));return a&&t.set(i,o),o};return n(e)}function IV(...e){let t=jV(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;mV(e,e=>{n[a]=e,r|=o,r===i&&hV(t,n)})}),function(e,a){switch(e){case tV:gV(t);return;case eV:return r===i&&a(n),mV(t,a)}}}function LV(e,t=bV){return Y(e,xV(t))}function RV(...e){return function(t,n){switch(t){case tV:return;case eV:return lV(...e.map(e=>mV(e,n)))}}}var zV={DEBUG:0,INFO:1,WARN:2,ERROR:3},BV={[zV.DEBUG]:`debug`,[zV.ERROR]:`error`,[zV.INFO]:`log`,[zV.WARN]:`warn`},VV=()=>typeof globalThis>`u`?window:globalThis,HV=NV(()=>{let e=X(zV.ERROR);return{log:X((t,n,r=zV.INFO)=>{r>=(VV().VIRTUOSO_LOG_LEVEL??_V(e))&&console[BV[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0}),UV=new WeakMap;function WV(e){return`self`in e?e.document.documentElement:e}function GV(e){let t=WV(e),n=UV.get(t);if(n!==void 0)return n;let r=t.ownerDocument.defaultView.getComputedStyle(t).direction===`rtl`;return UV.set(t,r),r}function KV(e){UV.delete(WV(e))}function qV(e,t){return GV(e)?-t:t}var JV=qV;function YV(e,t){return qV(e,t)}function XV(e,t,n){return ZV(e,t,n).callbackRef}function ZV(e,t,n){let r=M.useRef(null),i=e=>{},a=M.useMemo(()=>typeof ResizeObserver<`u`?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;n.offsetParent!==null&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(a?.observe(e),r.current=e):(r.current&&a?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function QV(e,t,n,r,i,a,o,s,c){return ZV(M.useCallback(n=>{let c=$V(n.children,t,s?`offsetWidth`:`offsetHeight`,i),l=n.parentElement;for(;l.dataset.virtuosoScroller===void 0;)l=l.parentElement;let u=l.lastElementChild.dataset.viewportType===`window`,d;u&&(d=l.ownerDocument.defaultView);let f=o?s?o.scrollWidth:o.scrollHeight:u?s?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:s?l.scrollWidth:l.scrollHeight,p=o?s?o.offsetWidth:o.offsetHeight:u?s?d.innerWidth:d.innerHeight:s?l.offsetWidth:l.offsetHeight,m=o?s?JV(o,o.scrollLeft):o.scrollTop:u?s?JV(d,d.scrollX||d.document.documentElement.scrollLeft):d.scrollY||d.document.documentElement.scrollTop:s?JV(l,l.scrollLeft):l.scrollTop;r({scrollHeight:f,scrollTop:Math.max(m,0),viewportHeight:p}),a?.(s?eH(`column-gap`,getComputedStyle(n).columnGap,i):eH(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function $V(e,t,n,r){let i=e.length;if(i===0)return null;let a=[];for(let o=0;o<i;o++){let i=e.item(o);if(i.dataset.index===void 0)continue;let s=parseInt(i.dataset.index),c=parseFloat(i.dataset.knownSize),l=t(i,n);if(l===0&&r(`Zero-sized element, this should not happen`,{child:i},zV.ERROR),l===c)continue;let u=a[a.length-1];a.length===0||u.size!==l||u.endIndex!==s-1?a.push({endIndex:s,size:l,startIndex:s}):a[a.length-1].endIndex++}return a}function eH(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,zV.WARN),t===`normal`?0:parseInt(t??`0`,10)}function tH(e,t,n){let r=M.useRef(null),i=M.useCallback(n=>{if(!n?.offsetParent)return;let i=n.getBoundingClientRect(),a=i.width,s,c;if(t){let e=t.getBoundingClientRect(),n=i.top-e.top;c=e.height-Math.max(0,n),s=n+t.scrollTop}else{let e=o.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,i.top),s=i.top+e.scrollY}r.current={listHeight:i.height,offsetTop:s,visibleHeight:c,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:a,ref:o}=ZV(i,!0,n),s=M.useCallback(()=>{i(o.current)},[i,o]);return M.useEffect(()=>{if(t){t.addEventListener(`scroll`,s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener(`scroll`,s),e.unobserve(t)}}let e=o.current?.ownerDocument.defaultView;return e?.addEventListener(`scroll`,s),e?.addEventListener(`resize`,s),()=>{e?.removeEventListener(`scroll`,s),e?.removeEventListener(`resize`,s)}},[s,t,o]),a}var nH=NV(()=>{let e=jV(),t=jV(),n=X(0),r=jV(),i=X(0),a=jV(),o=jV(),s=X(0),c=X(0),l=X(0),u=X(0),d=jV(),f=jV(),p=X(!1),m=X(!1),h=X(!1);return q(Y(e,J(({scrollTop:e})=>e)),t),q(Y(e,J(({scrollHeight:e})=>e)),o),q(t,i),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:p,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:h,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:a}},[],{singleton:!0}),rH={lvl:0};function iH(e,t){let n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]),a=[];for(let o=1;o<n;o++){let{index:n,value:s}=t(e[o]);a.push({end:n-1,start:r,value:i}),r=n,i=s}return a.push({end:1/0,start:r,value:i}),a}function aH(e){return e===rH}function oH(e,t){if(!aH(e))return t===e.k?e.v:t<e.k?oH(e.l,t):oH(e.r,t)}function sH(e,t,n=`k`){if(aH(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=sH(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return sH(e.l,t,n)}function cH(e,t,n){return aH(e)?yH(t,n,1):t===e.k?hH(e,{k:t,v:n}):t<e.k?bH(hH(e,{l:cH(e.l,t,n)})):bH(hH(e,{r:cH(e.r,t,n)}))}function lH(){return rH}function uH(e,t,n){if(aH(e))return[];let r=sH(e,t)[0];return CH(pH(e,r,n))}function dH(e,t){if(aH(e))return rH;let{k:n,l:r,r:i}=e;if(t===n){if(aH(r))return i;if(aH(i))return r;let[t,n]=vH(r);return mH(hH(e,{k:t,l:gH(r),v:n}))}return mH(t<n?hH(e,{l:dH(r,t)}):hH(e,{r:dH(i,t)}))}function fH(e){return aH(e)?[]:[...fH(e.l),{k:e.k,v:e.v},...fH(e.r)]}function pH(e,t,n){if(aH(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(pH(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(pH(a,t,n))),s}function mH(e){let{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(_H(t))return xH(hH(e,{lvl:n-1}));if(!aH(t)&&!aH(t.r))return hH(t.r,{l:hH(t,{r:t.r.l}),lvl:n,r:hH(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(_H(e))return SH(hH(e,{lvl:n-1}));if(!aH(r)&&!aH(r.l)){let t=r.l,i=_H(t)?r.lvl-1:r.lvl;return hH(t,{l:hH(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:SH(hH(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function hH(e,t){return yH(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function gH(e){return aH(e.r)?e.l:mH(hH(e,{r:gH(e.r)}))}function _H(e){return aH(e)||e.lvl>e.r.lvl}function vH(e){return aH(e.r)?[e.k,e.v]:vH(e.r)}function yH(e,t,n,r=rH,i=rH){return{k:e,l:r,lvl:n,r:i,v:t}}function bH(e){return SH(xH(e))}function xH(e){let{l:t}=e;return!aH(t)&&t.lvl===e.lvl?hH(t,{r:hH(e,{l:t.r})}):e}function SH(e){let{lvl:t,r:n}=e;return!aH(n)&&!aH(n.r)&&n.lvl===t&&n.r.lvl===t?hH(n,{l:hH(e,{r:n.l}),lvl:t+1}):e}function CH(e){return iH(e,({k:e,v:t})=>({index:e,value:t}))}function wH(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function TH(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var EH=NV(()=>({recalcInProgress:X(!1)}),[],{singleton:!0});function DH(e,t,n){return e[OH(e,t,n)]}function OH(e,t,n,r=0){let i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw Error(`Failed binary finding record in array - ${e.join(`,`)}, searched for ${t}`)}function kH(e,t,n,r){let i=OH(e,t,r),a=OH(e,n,r,i);return e.slice(i,a+1)}function AH(e,t){return Math.round(e.getBoundingClientRect()[t])}function jH(e){return!aH(e.groupOffsetTree)}function MH({index:e},t){return t===e?0:t<e?-1:1}function NH(){return{groupIndices:[],groupOffsetTree:lH(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:lH()}}function PH(e,t){let n=aH(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),aH(e)){e=cH(e,0,i);continue}let o=uH(e,a-1,t+1);if(o.some(KH(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=dH(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=cH(e,t+1,a));c&&(e=cH(e,a,i))}return[e,n]}function FH(e){return typeof e.groupIndex<`u`}function IH({offset:e},t){return t===e?0:t<e?-1:1}function LH(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=DH(t,e,MH),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function RH(e,t){if(!jH(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function zH(e,t,n){if(FH(e))return t.groupIndices[e.groupIndex]+1;let r=RH(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function BH(e,t,n,r=0){return r>0&&(t=Math.max(t,DH(e,r,MH).offset)),iH(kH(e,t,n,IH),GH)}function VH(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,zV.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&aH(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>cH(cH(t,n,e),n+1,r),o)}else [o,s]=PH(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=WH(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>cH(e,t,LH(t,d,i)),lH()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function HH(e){return fH(e).map(({k:e,v:t},n,r)=>{let i=r[n+1];return{endIndex:i===void 0?1/0:i.k-1,size:t,startIndex:e}})}function UH(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function WH(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=OH(i,t-1,MH),s=i[c].offset;let e=sH(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===sH(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of uH(n,t,1/0)){let t=e-a,n=t*o+s+t*r;i.push({index:e,offset:n,size:c}),a=e,s=n,o=c}return{lastIndex:a,lastOffset:s,lastSize:o,offsetTree:i}}function GH(e){return{index:e.index,value:e}}function KH(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}var qH={offsetHeight:`height`,offsetWidth:`width`},JH=NV(([{log:e},{recalcInProgress:t}])=>{let n=jV(),r=jV(),i=AV(r,0),a=jV(),o=jV(),s=X(0),c=X([]),l=X(void 0),u=X(void 0),d=X(void 0),f=X(void 0),p=X((e,t)=>AH(e,qH[t])),m=X(void 0),h=X(0),g=NH(),_=AV(Y(n,DV(c,e,h),wV(VH,g),xV()),g),v=AV(Y(c,xV(),wV((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),J(({prev:e})=>e)),[]);q(Y(c,SV(e=>e.length>0),DV(_,h),J(([e,t,n])=>{let r=e.reduce((e,r,i)=>cH(e,r,LH(r,t.offsetTree,n)||i),lH());return{...t,groupIndices:e,groupOffsetTree:r}})),_),q(Y(r,DV(_),SV(([e,{lastIndex:t}])=>e<t),J(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),q(l,u);let y=AV(Y(l,J(e=>e===void 0)),!0);q(Y(u,SV(e=>e!==void 0&&aH(_V(_).sizeTree)),J(e=>{let t=_V(d),n=_V(c).length>0;return t!==void 0&&t!==0?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),q(Y(f,SV(e=>e!==void 0&&e.length>0&&aH(_V(_).sizeTree)),J(e=>{let t=[],n=e[0],r=0;for(let i=1;i<e.length;i++){let a=e[i];a!==n&&(t.push({endIndex:i-1,size:n,startIndex:r}),n=a,r=i)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),q(Y(c,DV(d,u),SV(([,e,t])=>e!==void 0&&t!==void 0),J(([e,t,n])=>{let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];r.push({startIndex:a,endIndex:a,size:t}),o!==void 0&&r.push({startIndex:a+1,endIndex:o-1,size:n})}return r})),n);let b=MV(Y(n,DV(_),wV(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),J(e=>e.changed)));mV(Y(s,wV((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),J(e=>e.diff)),e=>{let{groupIndices:n}=_V(_);if(e>0)hV(t,!0),hV(a,e+UH(e,n));else if(e<0){let t=_V(v);t.length>0&&(e-=UH(-e,t)),hV(o,e)}}),mV(Y(s,DV(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},zV.ERROR)});let x=MV(a);q(Y(a,DV(_),J(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=oH(t.sizeTree,0),a=0,o=0;for(;a<e;){let e=t.groupIndices[o],s=t.groupIndices.length===o+1?1/0:t.groupIndices[o+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:i,startIndex:e+1}),o++,a+=s+1}let s=fH(t.sizeTree);return a!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let i=t.ranges;return t.prevSize!==0&&(i=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:i}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return fH(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:i,ranges:[]}).ranges})),n);let S=MV(Y(o,DV(_,h),J(([e,{offsetTree:t},n])=>LH(-e,t,n))));return q(Y(o,DV(_,h),J(([e,t,n])=>{if(t.groupIndices.length>0){if(aH(t.sizeTree))return t;let r=lH(),i=_V(v),a=0,o=0,s=0;for(;a<-e;){s=i[o];let e=i[o+1]-s-1;o++,a+=e+1}if(r=fH(t.sizeTree).reduce((t,{k:n,v:r})=>cH(t,Math.max(0,n+e),r),r),a!==-e){let n=oH(t.sizeTree,s);r=cH(r,0,n);let i=sH(t.sizeTree,-e+1)[1];r=cH(r,1,i)}return{...t,sizeTree:r,...WH(t.offsetTree,0,r,n)}}let r=fH(t.sizeTree).reduce((t,{k:n,v:r})=>cH(t,Math.max(0,n+e),r),lH());return{...t,sizeTree:r,...WH(t.offsetTree,0,r,n)}})),_),{beforeUnshiftWith:x,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,fixedGroupSize:d,gap:h,groupIndices:c,heightEstimates:f,itemSize:p,listRefresh:b,shiftWith:o,shiftWithOffset:S,sizeRanges:n,sizes:_,statefulTotalCount:i,totalCount:r,trackItemSizes:y,unshiftWith:a}},pV(HV,EH),{singleton:!0});function YH(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var XH=NV(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=jV(),o=jV(),s=MV(Y(a,J(YH)));return q(Y(s,J(e=>e.totalCount)),n),q(Y(s,J(e=>e.groupIndices)),e),q(Y(IV(i,t,r),SV(([e,t])=>jH(t)),J(([e,t,n])=>sH(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),xV(),J(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},pV(JH,nH)),ZH=NV(([{log:e}])=>{let t=X(!1),n=MV(Y(t,SV(e=>e),xV()));return mV(t,t=>{t&&_V(e)(`props updated`,{},zV.DEBUG)}),{didMount:n,propsReady:t}},pV(HV),{singleton:!0}),QH=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function $H(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!QH)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var eU=NV(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:a,footerHeight:o,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{let p=jV(),m=jV(),h=X(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),hV(c,!1)}return q(Y(p,DV(n,d,r,h,s,o,f),DV(e,a,i),J(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=$H(e),{align:x,behavior:S,offset:C}=b,w=i-1,T=zH(b,n,w),E=LH(T,n.offsetTree,d)+o;x===`end`?(E+=f+sH(n.sizeTree,T)[1]-r+h,T===w&&(E+=s)):x===`center`?E+=(f+sH(n.sizeTree,T)[1]-r+h)/2:E-=a,C!==void 0&&C!==0&&(E+=C);let D=t=>{y(),t?(l(`retrying to scroll to`,{location:e},zV.DEBUG),hV(p,e)):(hV(m,!0),l(`list did not change, scroll successful`,{},zV.DEBUG))};if(y(),S===`smooth`){let e=!1;v=mV(t,t=>{e||=t}),g=vV(u,()=>{D(e)})}else g=vV(Y(t,tU(150)),D);return _=setTimeout(()=>{y()},1200),hV(c,!0),l(`scrolling from index to`,{behavior:S,index:T,top:E},zV.DEBUG),{behavior:S,top:E}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},pV(JH,nH,HV),{singleton:!0});function tU(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function nU(e,t){e===0?t():requestAnimationFrame(()=>{nU(e-1,t)})}function rU(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var iU=NV(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=X(!0),c=X(0),l=X(!0);return q(Y(o,DV(c),SV(([e,t])=>t!==0),CV(!1)),s),q(Y(o,DV(c),SV(([e,t])=>t!==0),CV(!1)),l),mV(Y(IV(t,o),DV(s,n,e,l),SV(([[,e],t,{sizeTree:n},r,i])=>e&&(!aH(n)||cV(r))&&!t&&!i),DV(c)),([,e])=>{vV(i,()=>{hV(l,!0)}),nU(4,()=>{vV(r,()=>{hV(s,!0)}),hV(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},pV(JH,nH,eU,ZH),{singleton:!0});function aU(e,t){return Math.abs(e-t)<1.01}var oU=`up`,sU=`down`,cU=`none`,lU={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},uU=0,dU=NV(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=X(!1),s=X(!0),c=jV(),l=jV(),u=X(4),d=X(uU),f=AV(Y(RV(Y(LV(i),TV(1),CV(!0)),Y(LV(i),TV(1),CV(!1),yV(100))),xV()),!1),p=AV(Y(RV(Y(n,CV(!0)),Y(n,CV(!1),yV(200))),xV()),!1);q(Y(IV(LV(i),LV(d)),J(([e,t])=>e<=t),xV()),s),q(Y(s,EV(50)),l);let m=MV(Y(IV(r,LV(a),LV(t),LV(e),LV(u)),wV((e,[{scrollHeight:t,scrollTop:n},r,i,a,o])=>{let s=n+r-t>-o,c={scrollHeight:t,scrollTop:n,viewportHeight:r};if(s){let t,r;return n>e.state.scrollTop?(t=`SCROLLED_DOWN`,r=e.state.scrollTop-n):(t=`SIZE_DECREASED`,r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:c}}let l;return l=c.scrollHeight>e.state.scrollHeight?`SIZE_INCREASED`:r<e.state.viewportHeight?`VIEWPORT_HEIGHT_DECREASING`:n<e.state.scrollTop?`SCROLLING_UPWARDS`:`NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM`,{atBottom:!1,notAtBottomBecause:l,state:c}},lU),xV((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=AV(Y(r,wV((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!aU(e.scrollHeight,t)){let i=t-(n+r)<1;return e.scrollTop!==n&&i?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),SV(e=>e.changed),J(e=>e.jump)),0);q(Y(m,J(e=>e.atBottom)),o),q(Y(o,EV(50)),c);let g=X(sU);q(Y(r,J(({scrollTop:e})=>e),xV(),wV((e,t)=>_V(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?oU:sU,prevScrollTop:t},{direction:sU,prevScrollTop:0}),J(e=>e.direction)),g),q(Y(r,EV(50),CV(cU)),g);let _=X(0);return q(Y(f,SV(e=>!e),CV(0)),_),q(Y(i,EV(100),DV(f),SV(([e,t])=>t),wV(([e,t],[n])=>[t,n],[0,0]),J(([e,t])=>t-e)),_),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:h,scrollDirection:g,scrollVelocity:_}},pV(nH)),fU=`top`,pU=`bottom`,mU=`none`;function hU(e,t,n){return typeof e==`number`?n===oU&&t===fU||n===sU&&t===pU?e:0:n===oU?t===fU?e.main:e.reverse:t===pU?e.main:e.reverse}function gU(e,t){return typeof e==`number`?e:e[t]??0}var _U=NV(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=jV(),o=X(0),s=X(0),c=X(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:AV(Y(IV(LV(r),LV(i),LV(n),LV(a,TH),LV(c),LV(o),LV(t),LV(e),LV(s)),J(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=mU,m=gU(l,fU),h=gU(l,pU);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=oU),i<e-f+t+h&&(p=sU),p===mU?null:[Math.max(u-n-hU(a,fU,p)-m,0),u-f-s+t+hU(a,pU,p)+h]}),SV(e=>e!==null),xV(TH)),[0,0])}},pV(nH),{singleton:!0});function vU(e,t,n){if(jH(t)){let r=RH(e,t);return[{index:sH(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}var yU={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function bU(e,t,n,r,i,a){let{lastIndex:o,lastOffset:s,lastSize:c}=i,l=0,u=0;if(e.length>0){l=e[0].offset;let t=e[e.length-1];u=t.offset+t.size}let d=n-o,f=s+d*c+(d-1)*r,p=l,m=f-u;return{bottom:u,firstItemIndex:a,items:SU(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:SU(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function xU(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-o>=e)break;o++}let s=e+o,c=rU(t,s);return bU(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function SU(e,t,n){if(e.length===0)return[];if(!jH(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,i=e[e.length-1].index,a=[],o=uH(t.groupOffsetTree,r,i),s,c=0;for(let r of e){(!s||s.end<r.index)&&(s=o.shift(),c=t.groupIndices.indexOf(s.start));let e;e=r.index===s.start?{index:c,type:`group`}:{groupIndex:c,index:r.index-(c+1)+n},a.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return a}function CU(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var wU=NV(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},a,{listBoundary:o,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:p},{recalcInProgress:m}])=>{let h=X([]),g=X(0),_=jV(),v=X(0);q(a.topItemsIndexes,h);let y=AV(Y(IV(p,m,LV(c,TH),LV(i),LV(r),LV(l),u,LV(h),LV(t),LV(n),LV(v),e),SV(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),J(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=_V(g);if(n===0)return{...yU,totalCount:n};if(e===0&&t===0)return m===0?{...yU,totalCount:n}:xU(m,i,r,s,c,u||[]);if(aH(p))return m>0?null:bU(vU(rU(i,n),d,u),[],n,c,d,s);let h=[];if(o.length>0){let e=o[0],t=o[o.length-1],n=0;for(let r of uH(p,e,t)){let i=r.value,a=Math.max(r.start,e),o=Math.min(r.end,t);for(let e=a;e<=o;e++)h.push({data:u?.[e],index:e,offset:n,size:i}),n+=i}}if(!a)return bU([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=BH(f,e,t,_);if(v.length===0)return null;let y=n-1,b=dV([],n=>{for(let r of v){let i=r.value,a=i.offset,o=r.start,s=i.size;if(i.offset<e){o+=Math.floor((e-i.offset+c)/(s+c));let t=o-r.start;a+=t*s+t*c}o<_&&(a+=(_-o)*s,o=_);let l=Math.min(r.end,y);for(let e=o;e<=l&&!(a>=t);e++)n.push({data:u?.[e],index:e,offset:a,size:s}),a+=s+c}}),x=CU(l,fU),S=CU(l,pU);if(b.length>0&&(x>0||S>0)){let e=b[0],t=b[b.length-1];if(x>0&&e.index>_){let t=Math.min(x,e.index-_),n=[],r=e.offset;for(let i=e.index-1;i>=e.index-t;i--){let t=uH(p,i,i)[0]?.value??e.size;r-=t+c,n.unshift({data:u?.[i],index:i,offset:r,size:t})}b.unshift(...n)}if(S>0&&t.index<y){let e=Math.min(S,y-t.index),n=t.offset+t.size+c;for(let r=t.index+1;r<=t.index+e;r++){let e=uH(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return bU(b,h,n,c,d,s)}),SV(e=>e!==null),xV()),yU);q(Y(e,SV(cV),J(e=>e?.length)),i),q(Y(y,J(e=>e.topListHeight)),d),q(d,s),q(Y(y,J(e=>[e.top,e.bottom])),o),q(Y(y,J(e=>e.items)),_);let b=MV(Y(y,SV(({items:e})=>e.length>0),DV(i,e),SV(([{items:e},t])=>e[e.length-1].originalIndex===t-1),J(([,e,t])=>[e-1,t]),xV(TH),J(([e])=>e))),x=MV(Y(y,EV(200),SV(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),J(({items:e})=>e[0].index),xV()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:MV(Y(y,SV(({items:e})=>e.length>0),J(({items:e})=>{let t=0,n=e.length-1;for(;e[t].type===`group`&&t<n;)t++;for(;e[n].type===`group`&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),xV(wH))),startReached:x,topItemsIndexes:h,...f}},pV(JH,XH,_U,iU,eU,dU,ZH,EH),{singleton:!0}),TU=NV(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=jV(),o=AV(Y(IV(n,e,r,t,i),J(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return q(LV(o),a),{totalListHeight:o,totalListHeightChanged:a}},pV(nH,wU),{singleton:!0}),EU=NV(([{viewportHeight:e},{totalListHeight:t}])=>{let n=X(!1);return{alignToBottom:n,paddingTopAddition:AV(Y(IV(n,e,t),SV(([e])=>e),J(([,e,t])=>Math.max(0,e-t)),EV(0),xV()),0)}},pV(nH,TU),{singleton:!0}),DU=NV(()=>({context:X(null)})),OU=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:a,viewportTop:o})=>t<o?{...i,align:n??`start`,...r===void 0?{}:{behavior:r}}:e>a?{...i,align:n??`end`,...r===void 0?{}:{behavior:r}}:null,kU=NV(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=jV();return q(Y(u,DV(t,c,n,a,i,r,s),DV(e),J(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=OU,done:d,...f}=e,p=zH(e,t,r-1),m=LH(p,t.offsetTree,l)+i+a,h=m+sH(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&vV(Y(o,SV(e=>!e),TV(_V(o)?1:2)),d),_}),SV(e=>e!==null)),l),{scrollIntoView:u}},pV(JH,nH,eU,wU,HV),{singleton:!0});function AU(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var jU=(e,t)=>typeof e==`function`?AU(e(t)):t&&AU(e),MU=NV(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:s},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:p}])=>{let m=X(!1),h=jV(),g=null;function _(e){hV(o,{align:`end`,behavior:e,index:`LAST`})}mV(Y(IV(Y(LV(t),TV(1)),c),DV(LV(m),a,s,d),J(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=jU(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),SV(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),_V(n)===void 0?g=vV(e,()=>{_V(u)(`following output to `,{totalCount:r},zV.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{_V(u)(`following output to `,{totalCount:r},zV.DEBUG),_(t)})});function v(e){let t=vV(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(_V(u)(`scrolling to bottom due to increased size`,{},zV.DEBUG),_(`auto`))});setTimeout(t,100)}mV(Y(IV(LV(m),t,l),SV(([e,,t])=>e!==!1&&t),wV(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),SV(({refreshed:e})=>e),DV(m,t)),([,e])=>{_V(s)&&v(e!==!1)}),mV(h,()=>{v(_V(m)!==!1)}),mV(IV(LV(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=X(null),b=jV();return q(RV(Y(LV(r),J(e=>e?.length??0)),Y(LV(t))),b),mV(Y(IV(Y(b,TV(1)),c),DV(LV(y),s,d,f),J(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),SV(e=>!!e),EV(0)),t=>{g!==null&&(g(),g=null),_V(n)===void 0?g=vV(e,()=>{_V(u)(`scrolling into view`,{}),hV(p,t),g=null}):requestAnimationFrame(()=>{_V(u)(`scrolling into view`,{}),hV(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},pV(JH,dU,eU,iU,ZH,HV,nH,DU,kU)),NU=NV(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(q(Y(s,DV(a),SV(([,e])=>e!==0),DV(i,r,t,n,e),J(([[,e],t,n,r,i,a=[]])=>xU(e,t,n,r,i,a))),o),{}),pV(JH,iU,wU,ZH),{singleton:!0}),PU=NV(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=X(0);return mV(Y(e,DV(r),SV(([,e])=>e!==0),J(([,e])=>({top:e}))),e=>{vV(Y(n,TV(1),SV(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{hV(t,e)})})}),{initialScrollTop:r}},pV(ZH,nH,wU),{singleton:!0}),FU=NV(([{scrollVelocity:e}])=>{let t=X(!1),n=jV(),r=X(!1);return q(Y(e,DV(r,t,n),SV(([e,t])=>t!==!1&&t!==void 0),J(([e,t,n,r])=>{let{enter:i,exit:a}=t;if(n){if(a(e,r))return!1}else if(i(e,r))return!0;return n}),xV()),t),mV(Y(IV(t,e,n),DV(r)),([[e,t,n],r])=>{e&&r!==!1&&r!==void 0&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},pV(dU),{singleton:!0}),IU=NV(([{scrollContainerState:e,scrollTo:t}])=>{let n=jV(),r=jV(),i=jV(),a=X(!1),o=X(void 0);return q(Y(IV(n,r),J(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),q(Y(t,DV(r),J(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},pV(nH)),LU=NV(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=jV(),u=X(void 0),d=X(null),f=X(null);return q(s,d),q(c,f),mV(Y(l,DV(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=HH(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),q(Y(u,SV(cV),J(RU)),i),q(Y(a,DV(u),SV(([,e])=>e!==void 0),xV(),J(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},pV(JH,nH,iU,ZH,IU));function RU(e){return{align:`start`,index:0,offset:e.scrollTop}}var zU=NV(([{topItemsIndexes:e}])=>{let t=X(0);return q(Y(t,SV(e=>e>=0),J(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},pV(wU));function BU(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var VU=BU(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),HU=NV(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:a,groupIndices:o,heightEstimates:s,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:p},{initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g},_,v,y,b,{scrollToIndex:x},S,{topItemCount:C},{groupCounts:w},T])=>{let{listState:E,minOverscanItemCount:D,topItemsIndexes:O,rangeChanged:ee,...te}=b;return q(ee,T.scrollSeekRangeChanged),q(Y(T.windowViewportRect,J(e=>e.visibleHeight)),_.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:a,groupCounts:w,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g,sizeRanges:l,topItemCount:C,topItemsIndexes:O,totalCount:f,...y,groupIndices:o,itemSize:c,listState:E,minOverscanItemCount:D,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:ee,...te,...T,..._,sizes:u,...v}},pV(JH,iU,nH,LU,MU,wU,eU,NV(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:p},{recalcInProgress:m}])=>{let h=MV(Y(c,DV(o),wV(([,e,t,n],[{bottom:r,items:i,offsetBottom:a,totalCount:o},s])=>{let c=r+a,l=0;return t===o&&e.length>0&&i.length>0&&(i[0].originalIndex===0&&e[0].originalIndex===0||(l=c-n,l!==0&&(l+=s))),[l,i,o,c]},[0,[],0,0]),SV(([e])=>e!==0),DV(r,s,n,i,p,m),SV(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===oU),J(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},zV.DEBUG),e))));function g(n){n>0?(hV(t,{behavior:`auto`,top:-n}),hV(e,0)):(hV(e,0),hV(t,{behavior:`auto`,top:-n}))}return mV(Y(h,DV(e,a)),([t,n,r])=>{r&&VU()?hV(e,n-t):g(-t)}),mV(Y(IV(AV(a,!1),e,m),SV(([e,t,n])=>!e&&!n&&t!==0),J(([e,t])=>t),EV(1)),g),q(Y(d,J(e=>({top:-e}))),t),mV(Y(l,DV(f,u),J(([e,{groupIndices:t,lastSize:n,sizeTree:r},i])=>{function a(e){return e*(n+i)}if(t.length===0)return a(e);let o=0,s=oH(r,0),c=0,l=0;for(;c<e;){c++,o+=s;let n=t.length===l+1?1/0:t[l+1]-t[l]-1;c+n>e&&(o-=s,n=e-c+1),c+=n,o+=a(n),l++}return o})),n=>{hV(e,n),requestAnimationFrame(()=>{hV(t,{top:n}),requestAnimationFrame(()=>{hV(e,0),hV(m,!1)})})}),{deviation:e}},pV(nH,dU,wU,JH,HV,EH)),zU,XH,NV(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),pV(_U,NU,ZH,FU,TU,PU,EU,IU,kU,HV,DU))));function UU(e,t){let n={},r={},i=0,a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}var WU=typeof document<`u`?M.useLayoutEffect:M.useEffect;function GU(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=M.createContext({});function c(e,n){e.propsReady!==void 0&&hV(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];hV(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];hV(i,n[r])}e.propsReady!==void 0&&hV(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];hV(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=kV(e[t.events[r]]),n),{})}return{Component:M.forwardRef(function(t,a){let{children:d,...f}=t,[p]=M.useState(()=>dV(FV(e),e=>{c(e,f)})),[m]=M.useState(oV(u,p));WU(()=>{for(let e of o)e in f&&mV(m[e],f[e]);return()=>{Object.values(m).map(gV)}},[f,m,p]),WU(()=>{c(p,f)}),M.useImperativeHandle(a,rV(l(p)));let h=n;return(0,N.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,N.jsx)(h,{...UU([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=M.useContext(s)[e];WU(()=>mV(n,t),[t,n])},useEmitterValue:e=>{let t=M.useContext(s)[e],n=M.useCallback(e=>mV(t,e),[t]);return M.useSyncExternalStore(n,()=>_V(t),()=>_V(t))},usePublisher:e=>{let t=M.useContext(s);return M.useCallback(n=>{hV(t[e],n)},[t,e])}}}var KU=M.createContext(void 0),qU=M.createContext(void 0),JU=`-webkit-sticky`,YU=`sticky`,XU=BU(()=>{if(typeof document>`u`)return YU;let e=document.createElement(`div`);return e.style.position=JU,e.style.position===JU?JU:YU}),ZU=typeof document<`u`?M.useLayoutEffect:M.useEffect;function QU(e){return`self`in e}function $U(e){return`body`in e}function eW(e,t,n,r=uV,i,a){let o=M.useRef(null),s=M.useRef(null),c=M.useRef(null),l=M.useCallback(n=>{let r,i,o,l=n.target;if($U(l)||QU(l)){let e=QU(l)?l:l.defaultView;o=a===!0?JV(e,e.scrollX):e.scrollY,r=a===!0?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=a===!0?e.innerWidth:e.innerHeight}else o=a===!0?JV(l,l.scrollLeft):l.scrollTop,r=a===!0?l.scrollWidth:l.scrollHeight,i=a===!0?l.offsetWidth:l.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(o,0),viewportHeight:i})};n.suppressFlushSync===!0?u():Ed.flushSync(u),s.current!==null&&(o===s.current||o<=0||o===r-i)&&(s.current=null,t(!0),c.current&&=(clearTimeout(c.current),null))},[e,t,a]);M.useEffect(()=>{let e=i||o.current;return KV(e),r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{KV(e),r(null),e.removeEventListener(`scroll`,l)}},[o,l,n,r,i]);function u(n){let r=o.current;if(!r||(a===!0?`offsetWidth`in r&&r.offsetWidth===0:`offsetHeight`in r&&r.offsetHeight===0))return;let i=n.behavior===`smooth`,l,u,d;QU(r)?(u=Math.max(AH(r.document.documentElement,a===!0?`width`:`height`),a===!0?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),l=a===!0?r.innerWidth:r.innerHeight,d=a===!0?JV(r,r.scrollX):r.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=AH(r,a===!0?`width`:`height`),d=a===!0?JV(r,r.scrollLeft):r.scrollTop);let f=u-l;if(n.top===void 0){r.scrollTo(n);return}let p=Math.ceil(Math.max(Math.min(f,n.top),0));if(n.top=p,aU(l,u)||p===d){e({scrollHeight:u,scrollTop:d,viewportHeight:l}),i&&t(!0);return}i?(s.current=p,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,s.current=null,t(!0)},1e3)):s.current=null,a===!0&&(n={...n.behavior===void 0?{}:{behavior:n.behavior},left:YV(r,p)}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:YV(o.current,e.top)}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function tW(e){return e}var nW=NV(([e,t])=>({...e,...t}),pV(HU,NV(()=>{let e=X(e=>`Item ${e}`),t=X(e=>`Group ${e}`),n=X({}),r=X(tW),i=X(`div`),a=X(uV),o=(e,t=null)=>AV(Y(n,J(t=>t[e]),xV()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:o(`EmptyPlaceholder`),FooterComponent:o(`Footer`),GroupComponent:o(`Group`,`div`),groupContent:t,HeaderComponent:o(`Header`),HeaderFooterTag:i,ItemComponent:o(`Item`,`div`),itemContent:e,ListComponent:o(`List`,`div`),ScrollerComponent:o(`Scroller`,`div`),scrollerRef:a,ScrollSeekPlaceholder:o(`ScrollSeekPlaceholder`),TopItemListComponent:o(`TopItemList`)}}))),rW=({height:e})=>(0,N.jsx)(`div`,{style:{height:e}}),iW={overflowAnchor:`none`,position:XU(),zIndex:1},aW={overflowAnchor:`none`},oW={...aW,display:`inline-block`,height:`100%`},sW=M.memo(function({showTopList:e=!1}){let t=wW(`listState`),n=TW(`sizeRanges`),r=wW(`useWindowScroll`),i=wW(`customScrollParent`),a=TW(`windowScrollContainerState`),o=TW(`scrollContainerState`),s=i||r?a:o,c=wW(`itemContent`),l=wW(`context`),u=wW(`groupContent`),d=wW(`trackItemSizes`),f=wW(`itemSize`),p=wW(`log`),m=TW(`gap`),h=wW(`horizontalDirection`),{callbackRef:g}=QV(n,f,d,e?uV:s,p,m,i,h,wW(`skipAnimationFrameInResizeObserver`)),[_,v]=M.useState(0);CW(`deviation`,e=>{_!==e&&v(e)});let y=wW(`EmptyPlaceholder`),b=wW(`ScrollSeekPlaceholder`)??rW,x=wW(`ListComponent`),S=wW(`ItemComponent`),C=wW(`GroupComponent`),w=wW(`computeItemKey`),T=wW(`isSeeking`),E=wW(`groupIndices`).length>0,D=wW(`alignToBottom`),O=wW(`initialItemFinalLocationReached`),ee=e?{}:{boxSizing:`border-box`,...h?{display:`inline-block`,height:`100%`,marginInlineStart:_===0?D?`auto`:0:_,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:`nowrap`}:{marginTop:_===0?D?`auto`:0:_,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...O?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,N.jsx)(y,{...pW(y,l)}):(0,N.jsx)(x,{...pW(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:ee,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=w(n+t.firstItemIndex,e.data,l);return T?(0,M.createElement)(b,{...pW(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,M.createElement)(C,{...pW(C,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:iW},u(e.index,l)):(0,M.createElement)(S,{...pW(S,l),...mW(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:h?oW:aW},E?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),cW={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},lW={outline:`none`,overflowX:`auto`,position:`relative`},uW=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),dW=(e,t,n=0)=>({...uW(e),position:t?`relative`:`absolute`,top:t?-n:0}),fW={position:XU(),top:0,width:`100%`,zIndex:1};function pW(e,t){if(typeof e!=`string`)return{context:t}}function mW(e,t){return{item:typeof e==`string`?void 0:t}}var hW=M.memo(function(){let e=wW(`HeaderComponent`),t=TW(`headerHeight`),n=wW(`HeaderFooterTag`),r=XV(M.useMemo(()=>e=>{t(AH(e,`height`))},[t]),!0,wW(`skipAnimationFrameInResizeObserver`)),i=wW(`context`);return e==null?null:(0,N.jsx)(n,{ref:r,children:(0,N.jsx)(e,{...pW(e,i)})})}),gW=M.memo(function(){let e=wW(`FooterComponent`),t=TW(`footerHeight`),n=wW(`HeaderFooterTag`),r=XV(M.useMemo(()=>e=>{t(AH(e,`height`))},[t]),!0,wW(`skipAnimationFrameInResizeObserver`)),i=wW(`context`);return e==null?null:(0,N.jsx)(n,{ref:r,children:(0,N.jsx)(e,{...pW(e,i)})})});function _W({useEmitter:e,useEmitterValue:t,usePublisher:n}){return M.memo(function({children:r,style:i,context:a,...o}){let s=n(`scrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`scrollerRef`),d=t(`horizontalDirection`)||!1,{scrollByCallback:f,scrollerRef:p,scrollToCallback:m}=eW(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,N.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?lW:cW,...i},tabIndex:0,...o,...pW(c,a),children:r})})}function vW({useEmitter:e,useEmitterValue:t,usePublisher:n}){return M.memo(function({children:r,style:i,context:a,...o}){let s=n(`windowScrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`totalListHeight`),d=t(`deviation`),f=t(`customScrollParent`),p=M.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=eW(s,l,c,t(`scrollerRef`),f);return ZU(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,N.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...pW(c,a),children:r})})}var yW=({children:e})=>{let t=M.useContext(KU),n=TW(`viewportHeight`),r=TW(`fixedItemHeight`),i=wW(`alignToBottom`),a=wW(`horizontalDirection`),o=XV(M.useMemo(()=>aV(n,e=>AH(e,a?`width`:`height`)),[n,a]),!0,wW(`skipAnimationFrameInResizeObserver`));return M.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,N.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:uW(i),children:e})},bW=({children:e})=>{let t=M.useContext(KU),n=TW(`windowViewportRect`),r=TW(`fixedItemHeight`),i=wW(`customScrollParent`),a=wW(`useWindowScroll`),o=wW(`topListHeight`),s=tH(n,i,wW(`skipAnimationFrameInResizeObserver`)),c=wW(`alignToBottom`);return M.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,N.jsx)(`div`,{"data-viewport-type":`window`,ref:s,style:dW(c,a,o),children:e})},xW=({children:e})=>{let t=wW(`TopItemListComponent`)??`div`,n=wW(`headerHeight`);return(0,N.jsx)(t,{style:{...fW,marginTop:`${n}px`},...pW(t,wW(`context`)),children:e})},{Component:SW,useEmitter:CW,useEmitterValue:wW,usePublisher:TW}=GU(nW,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,scrollIntoViewOnChange:`scrollIntoViewOnChange`,itemContent:`itemContent`,groupContent:`groupContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,groupCounts:`groupCounts`,topItemCount:`topItemCount`,firstItemIndex:`firstItemIndex`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,heightEstimates:`heightEstimates`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`HeaderFooterTag`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,horizontalDirection:`horizontalDirection`,skipAnimationFrameInResizeObserver:`skipAnimationFrameInResizeObserver`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,autoscrollToBottom:`autoscrollToBottom`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},M.memo(function(e){let t=wW(`useWindowScroll`),n=wW(`topItemsIndexes`).length>0,r=wW(`customScrollParent`),i=wW(`context`);return(0,N.jsxs)(r||t?DW:EW,{...e,context:i,children:[n&&(0,N.jsx)(xW,{children:(0,N.jsx)(sW,{showTopList:!0})}),(0,N.jsxs)(r||t?bW:yW,{children:[(0,N.jsx)(hW,{}),(0,N.jsx)(sW,{}),(0,N.jsx)(gW,{})]})]})})),EW=_W({useEmitter:CW,useEmitterValue:wW,usePublisher:TW}),DW=vW({useEmitter:CW,useEmitterValue:wW,usePublisher:TW}),OW=SW,kW=NV(([e,t])=>({...e,...t}),pV(HU,NV(()=>{let e=X(e=>(0,N.jsxs)(`td`,{children:[`Item $`,e]})),t=X(null),n=X(e=>(0,N.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=X(null),i=X(null),a=X({}),o=X(tW),s=X(uV),c=(e,t=null)=>AV(Y(a,J(t=>t[e]),xV()),t);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c(`EmptyPlaceholder`),FillerRow:c(`FillerRow`),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`),TableBodyComponent:c(`TableBody`,`tbody`),TableComponent:c(`Table`,`table`),TableFooterComponent:c(`TableFoot`,`tfoot`),TableHeadComponent:c(`TableHead`,`thead`),TableRowComponent:c(`TableRow`,`tr`),GroupComponent:c(`Group`,`tr`)}}))),AW=({height:e})=>(0,N.jsx)(`tr`,{children:(0,N.jsx)(`td`,{style:{height:e}})}),jW=({height:e})=>(0,N.jsx)(`tr`,{children:(0,N.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),MW={overflowAnchor:`none`},NW={position:XU(),zIndex:2,overflowAnchor:`none`},PW=M.memo(function({showTopList:e=!1}){let t=BW(`listState`),n=BW(`computeItemKey`),r=BW(`firstItemIndex`),i=BW(`context`),a=BW(`isSeeking`),o=BW(`fixedHeaderHeight`),s=BW(`groupIndices`).length>0,c=BW(`itemContent`),l=BW(`groupContent`),u=BW(`ScrollSeekPlaceholder`)??AW,d=BW(`GroupComponent`),f=BW(`TableRowComponent`),p=(e?t.topItems:[]).reduce((e,t,n)=>(n===0?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,h=n(m+r,t.data,i),g=e?m===0?0:p[m-1]:0;return a?(0,M.createElement)(u,{...pW(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,M.createElement)(d,{...pW(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...NW,top:o}},l(t.index,i)):(0,M.createElement)(f,{...pW(f,i),...mW(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:h,style:e?{...NW,top:o+g}:MW},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),FW=M.memo(function(){let e=BW(`listState`),t=BW(`topItemsIndexes`).length>0,n=VW(`sizeRanges`),r=BW(`useWindowScroll`),i=BW(`customScrollParent`),a=VW(`windowScrollContainerState`),o=VW(`scrollContainerState`),s=i||r?a:o,c=BW(`trackItemSizes`),{callbackRef:l,ref:u}=QV(n,BW(`itemSize`),c,s,BW(`log`),void 0,i,!1,BW(`skipAnimationFrameInResizeObserver`)),[d,f]=M.useState(0);zW(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=BW(`EmptyPlaceholder`),m=BW(`FillerRow`)??jW,h=BW(`TableBodyComponent`),g=BW(`paddingTopAddition`),_=BW(`statefulTotalCount`),v=BW(`context`);if(_===0&&p!=null)return(0,N.jsx)(p,{...pW(p,v)});let y=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),b=e.offsetTop+g+d-y,x=e.offsetBottom,S=b>0?(0,N.jsx)(m,{context:v,height:b},`padding-top`):null,C=x>0?(0,N.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,N.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...pW(h,v),children:[S,t&&(0,N.jsx)(PW,{showTopList:!0}),(0,N.jsx)(PW,{}),C]})}),IW=({children:e})=>{let t=M.useContext(KU),n=VW(`viewportHeight`),r=VW(`fixedItemHeight`),i=XV(M.useMemo(()=>aV(n,e=>AH(e,`height`)),[n]),!0,BW(`skipAnimationFrameInResizeObserver`));return M.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,N.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:uW(!1),children:e})},LW=({children:e})=>{let t=M.useContext(KU),n=VW(`windowViewportRect`),r=VW(`fixedItemHeight`),i=BW(`customScrollParent`),a=BW(`useWindowScroll`),o=tH(n,i,BW(`skipAnimationFrameInResizeObserver`));return M.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,N.jsx)(`div`,{"data-viewport-type":`window`,ref:o,style:dW(!1,a),children:e})},{Component:RW,useEmitter:zW,useEmitterValue:BW,usePublisher:VW}=GU(kW,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,firstItemIndex:`firstItemIndex`,itemContent:`itemContent`,groupContent:`groupContent`,fixedHeaderContent:`fixedHeaderContent`,fixedFooterContent:`fixedFooterContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,topItemCount:`topItemCount`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,groupCounts:`groupCounts`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},M.memo(function(e){let t=BW(`useWindowScroll`),n=BW(`customScrollParent`),r=VW(`fixedHeaderHeight`),i=VW(`fixedFooterHeight`),a=BW(`fixedHeaderContent`),o=BW(`fixedFooterContent`),s=BW(`context`),c=XV(M.useMemo(()=>aV(r,e=>AH(e,`height`)),[r]),!0,BW(`skipAnimationFrameInResizeObserver`)),l=XV(M.useMemo(()=>aV(i,e=>AH(e,`height`)),[i]),!0,BW(`skipAnimationFrameInResizeObserver`)),u=n||t?UW:HW,d=n||t?LW:IW,f=BW(`TableComponent`),p=BW(`TableHeadComponent`),m=BW(`TableFooterComponent`),h=a?(0,N.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...pW(p,s),children:a()},`TableHead`):null,g=o?(0,N.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...pW(m,s),children:o()},`TableFoot`):null;return(0,N.jsx)(u,{...e,...pW(u,s),children:(0,N.jsx)(d,{children:(0,N.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...pW(f,s),children:[h,(0,N.jsx)(FW,{},`TableBody`),g]})})})})),HW=_W({useEmitter:zW,useEmitterValue:BW,usePublisher:VW}),UW=vW({useEmitter:zW,useEmitterValue:BW,usePublisher:VW}),WW=RW,GW={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},KW={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:qW,floor:JW,max:YW,min:XW,round:ZW}=Math;function QW(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function $W(e){return{...KW,items:e}}function eG(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function tG(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var nG=NV(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:a,scrollBy:o,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,p,{didMount:m,propsReady:h},{customScrollParent:g,useWindowScroll:_,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b},x])=>{let S=X(0),C=X(0),w=X(GW),T=X({height:0,width:0}),E=X({height:0,width:0}),D=jV(),O=jV(),ee=X(0),te=X(null),ne=X({column:0,row:0}),k=jV(),A=jV(),re=X(!1),ie=X(0),j=X(!0),ae=X(!1),oe=X(!1);mV(Y(m,DV(ie),SV(([e,t])=>t!==0)),()=>{hV(j,!1)}),mV(Y(IV(m,j,E,T,ie,ae),SV(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{hV(ae,!0),nU(1,()=>{hV(D,e)}),vV(Y(l),()=>{hV(t,[0,0]),hV(j,!0)})}),q(Y(A,SV(e=>e!=null&&e.scrollTop>0),CV(0)),C),mV(Y(m,DV(A),SV(([,e])=>e!=null)),([,e])=>{e&&(hV(T,e.viewport),hV(E,e.item),hV(ne,e.gap),e.scrollTop>0&&(hV(re,!0),vV(Y(l,TV(1)),e=>{hV(re,!1)}),hV(c,{top:e.scrollTop})))}),q(Y(T,J(({height:e})=>e)),d),q(Y(IV(LV(T,eG),LV(E,eG),LV(ne,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),LV(l)),J(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),k),q(Y(IV(LV(S),r,LV(ne,tG),LV(E,eG),LV(T,eG),LV(te),LV(C),LV(re),LV(j),LV(ie)),SV(([,,,,,,,e])=>!e),J(([e,[t,n],r,i,a,o,s,,c,l])=>{let{column:u,row:d}=r,{height:f,width:p}=i,{width:m}=a;if(s===0&&(e===0||m===0))return GW;if(p===0){let t=rU(l,e);return $W(QW(t,t+Math.max(s-1,0),o))}let h=rG(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*JW((t+d)/(f+d)),_=h*qW((n+d)/(f+d))-1,_=XW(e-1,YW(_,h-1)),g=XW(_,YW(0,g))):(g=0,_=-1);let v=QW(g,_,o),{bottom:y,top:b}=iG(a,r,i,v),x=qW(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),w),q(Y(te,SV(e=>e!==null),J(e=>e.length)),S),q(Y(IV(T,E,w,ne),SV(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),J(([e,t,{items:n},r])=>{let{bottom:i,top:a}=iG(e,r,t,n);return[a,i]}),xV(TH)),t);let se=X(!1);q(Y(l,DV(se),J(([e,t])=>t||e!==0)),se);let ce=MV(Y(IV(w,S),SV(([{items:e}])=>e.length>0),DV(se),SV(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&e.offsetBottom===0&&e.items.length===t)&&r}),J(([[,e]])=>e-1),xV())),le=MV(Y(LV(w),SV(({items:e})=>e.length>0&&e[0].index===0),CV(0),xV())),ue=MV(Y(LV(w),DV(re),SV(([{items:e},t])=>e.length>0&&!t),J(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),xV(wH),EV(0)));q(ue,p.scrollSeekRangeChanged),q(Y(D,DV(T,E,S,ne),J(([e,t,n,r,i])=>{let a=$H(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=YW(0,l,XW(r-1,l));let u=aG(t,i,n,l);return o===`end`?u=ZW(u-t.height+n.height):o===`center`&&(u=ZW(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let de=AV(Y(w,J(e=>e.offsetBottom+e.bottom)),0);return q(Y(b,J(e=>({height:e.visibleHeight,width:e.visibleWidth}))),T),{customScrollParent:g,data:te,deviation:ee,footerHeight:i,gap:ne,headerHeight:a,increaseViewportBy:e,initialItemCount:C,itemDimensions:E,overscan:n,restoreStateFrom:A,scrollBy:o,scrollContainerState:s,scrollHeight:O,scrollTo:c,scrollToIndex:D,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:T,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:w,horizontalDirection:oe,initialTopMostItemIndex:ie,totalListHeight:de,...f,endReached:ce,propsReady:h,rangeChanged:ue,startReached:le,stateChanged:k,stateRestoreInProgress:re,...x}},pV(_U,nH,dU,FU,ZH,IU,HV));function rG(e,t,n){return YW(1,JW((e+n)/(JW(t)+n)))}function iG(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=aG(e,t,n,r[0].index);return{bottom:aG(e,t,n,r[r.length-1].index)+i,top:a}}function aG(e,t,n,r){let i=JW(r/rG(e.width,n.width,t.column)),a=i*n.height+YW(0,i-1)*t.row;return a>0?a+t.row:a}var oG=NV(([e,t])=>({...e,...t}),pV(nG,NV(()=>{let e=X(e=>`Item ${e}`),t=X({}),n=X(null),r=X(`virtuoso-grid-item`),i=X(`virtuoso-grid-list`),a=X(tW),o=X(`div`),s=X(uV),c=(e,n=null)=>AV(Y(t,J(t=>t[e]),xV()),n),l=X(!1),u=X(!1);return q(LV(u),l),{components:t,computeItemKey:a,context:n,FooterComponent:c(`Footer`),HeaderComponent:c(`Header`),headerFooterTag:o,itemClassName:r,ItemComponent:c(`Item`,`div`),itemContent:e,listClassName:i,ListComponent:c(`List`,`div`),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`,`div`)}}))),sG=M.memo(function(){let e=pG(`gridState`),t=pG(`listClassName`),n=pG(`itemClassName`),r=pG(`itemContent`),i=pG(`computeItemKey`),a=pG(`isSeeking`),o=mG(`scrollHeight`),s=pG(`ItemComponent`),c=pG(`ListComponent`),l=pG(`ScrollSeekPlaceholder`),u=pG(`context`),d=mG(`itemDimensions`),f=mG(`gap`),p=pG(`log`),m=pG(`stateRestoreInProgress`),h=mG(`reportReadyState`),g=XV(M.useMemo(()=>e=>{let t=e.parentElement.parentElement.scrollHeight;o(t);let n=e.firstChild;if(n!==null){let{height:e,width:t}=n.getBoundingClientRect();d({height:e,width:t})}f({column:_G(`column-gap`,getComputedStyle(e).columnGap,p),row:_G(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return ZU(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,N.jsx)(c,{className:t,ref:g,...pW(c,u),"data-testid":`virtuoso-item-list`,style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let o=i(t.index,t.data,u);return a?(0,N.jsx)(l,{...pW(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,M.createElement)(s,{...pW(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),cG=M.memo(function(){let e=pG(`HeaderComponent`),t=mG(`headerHeight`),n=pG(`headerFooterTag`),r=XV(M.useMemo(()=>e=>{t(AH(e,`height`))},[t]),!0,!1),i=pG(`context`);return e==null?null:(0,N.jsx)(n,{ref:r,children:(0,N.jsx)(e,{...pW(e,i)})})}),lG=M.memo(function(){let e=pG(`FooterComponent`),t=mG(`footerHeight`),n=pG(`headerFooterTag`),r=XV(M.useMemo(()=>e=>{t(AH(e,`height`))},[t]),!0,!1),i=pG(`context`);return e==null?null:(0,N.jsx)(n,{ref:r,children:(0,N.jsx)(e,{...pW(e,i)})})}),uG=({children:e})=>{let t=M.useContext(qU),n=mG(`itemDimensions`),r=mG(`viewportDimensions`),i=XV(M.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return M.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,N.jsx)(`div`,{ref:i,style:uW(!1),children:e})},dG=({children:e})=>{let t=M.useContext(qU),n=mG(`windowViewportRect`),r=mG(`itemDimensions`),i=pG(`customScrollParent`),a=pG(`useWindowScroll`),o=tH(n,i,!1);return M.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,N.jsx)(`div`,{ref:o,style:dW(!1,a),children:e})},{Component:fse,useEmitter:fG,useEmitterValue:pG,usePublisher:mG}=GU(oG,{optional:{context:`context`,totalCount:`totalCount`,overscan:`overscan`,itemContent:`itemContent`,components:`components`,computeItemKey:`computeItemKey`,data:`data`,initialItemCount:`initialItemCount`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`headerFooterTag`,listClassName:`listClassName`,itemClassName:`itemClassName`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,restoreStateFrom:`restoreStateFrom`,initialTopMostItemIndex:`initialTopMostItemIndex`,increaseViewportBy:`increaseViewportBy`},methods:{scrollTo:`scrollTo`,scrollBy:`scrollBy`,scrollToIndex:`scrollToIndex`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,stateChanged:`stateChanged`,readyStateChanged:`readyStateChanged`}},M.memo(function({...e}){let t=pG(`useWindowScroll`),n=pG(`customScrollParent`),r=n||t?gG:hG,i=n||t?dG:uG,a=pG(`context`);return(0,N.jsx)(r,{...e,...pW(r,a),children:(0,N.jsxs)(i,{children:[(0,N.jsx)(cG,{}),(0,N.jsx)(sG,{}),(0,N.jsx)(lG,{})]})})})),hG=_W({useEmitter:fG,useEmitterValue:pG,usePublisher:mG}),gG=vW({useEmitter:fG,useEmitterValue:pG,usePublisher:mG});function _G(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,zV.WARN),t===`normal`?0:parseInt(t??`0`,10)}var vG=`Collapsible`,[yG,bG]=pb(vG),[xG,SG]=yG(vG),CG=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=gb({prop:r,defaultProp:i??!1,onChange:o,caller:vG});return(0,N.jsx)(xG,{scope:n,disabled:a,contentId:lx(),open:c,onOpenToggle:M.useCallback(()=>l(e=>!e),[l]),children:(0,N.jsx)(bb.div,{"data-state":kG(c),"data-disabled":a?``:void 0,...s,ref:t})})});CG.displayName=vG;var wG=`CollapsibleTrigger`,TG=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=SG(wG,n);return(0,N.jsx)(bb.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":kG(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:mb(e.onClick,i.onOpenToggle)})});TG.displayName=wG;var EG=`CollapsibleContent`,DG=M.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=SG(EG,e.__scopeCollapsible);return(0,N.jsx)(_b,{present:n||i.open,children:({present:e})=>(0,N.jsx)(OG,{...r,ref:t,present:e})})});DG.displayName=EG;var OG=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=SG(EG,n),[s,c]=M.useState(r),l=M.useRef(null),u=wl(t,l),d=M.useRef(0),f=d.current,p=M.useRef(0),m=p.current,h=o.open||s,g=M.useRef(h),_=M.useRef(void 0);return M.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),hb(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,N.jsx)(bb.div,{"data-state":kG(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function kG(e){return e?`open`:`closed`}var AG=CG,jG=TG,MG=DG,NG=`Accordion`,PG=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[FG,IG,LG]=ox(NG),[RG,pse]=pb(NG,[LG,bG]),zG=bG(),BG=M.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,N.jsx)(FG.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,N.jsx)(KG,{...a,ref:t}):(0,N.jsx)(GG,{...i,ref:t})})});BG.displayName=NG;var[VG,HG]=RG(NG),[UG,WG]=RG(NG,{collapsible:!1}),GG=M.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=gb({prop:n,defaultProp:r??``,onChange:i,caller:NG});return(0,N.jsx)(VG,{scope:e.__scopeAccordion,value:M.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:M.useCallback(()=>a&&c(``),[a,c]),children:(0,N.jsx)(UG,{scope:e.__scopeAccordion,collapsible:a,children:(0,N.jsx)(YG,{...o,ref:t})})})}),KG=M.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=gb({prop:n,defaultProp:r??[],onChange:i,caller:NG}),c=M.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=M.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,N.jsx)(VG,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,N.jsx)(UG,{scope:e.__scopeAccordion,collapsible:!0,children:(0,N.jsx)(YG,{...a,ref:t})})})}),[qG,JG]=RG(NG),YG=M.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=wl(M.useRef(null),t),c=IG(n),l=fx(i)===`ltr`,u=mb(e.onKeyDown,e=>{if(!PG.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,N.jsx)(qG,{scope:n,disabled:r,direction:i,orientation:a,children:(0,N.jsx)(FG.Slot,{scope:n,children:(0,N.jsx)(bb.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),XG=`AccordionItem`,[ZG,QG]=RG(XG),$G=M.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=JG(XG,n),o=HG(XG,n),s=zG(n),c=lx(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,N.jsx)(ZG,{scope:n,open:l,disabled:u,triggerId:c,children:(0,N.jsx)(AG,{"data-orientation":a.orientation,"data-state":oK(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});$G.displayName=XG;var eK=`AccordionHeader`,tK=M.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=JG(NG,n),a=QG(eK,n);return(0,N.jsx)(bb.h3,{"data-orientation":i.orientation,"data-state":oK(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});tK.displayName=eK;var nK=`AccordionTrigger`,rK=M.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=JG(NG,n),a=QG(nK,n),o=WG(nK,n),s=zG(n);return(0,N.jsx)(FG.ItemSlot,{scope:n,children:(0,N.jsx)(jG,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});rK.displayName=nK;var iK=`AccordionContent`,aK=M.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=JG(NG,n),a=QG(iK,n),o=zG(n);return(0,N.jsx)(MG,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});aK.displayName=iK;function oK(e){return e?`open`:`closed`}var sK=BG,cK=$G,lK=tK,uK=rK,dK=aK,fK=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},pK=(e=>e?fK(e):fK),mK=e=>e;function hK(e,t=mK){let n=M.useSyncExternalStore(e.subscribe,M.useCallback(()=>t(e.getState()),[e,t]),M.useCallback(()=>t(e.getInitialState()),[e,t]));return M.useDebugValue(n),n}var gK=e=>{let t=pK(e),n=e=>hK(t,e);return Object.assign(n,t),n},_K=(e=>e?gK(e):gK);Object.freeze({status:`aborted`});function Z(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var vK=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},yK=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},bK={};function xK(e){return e&&Object.assign(bK,e),bK}function SK(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function CK(e,t){return typeof t==`bigint`?t.toString():t}function wK(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function TK(e){return e==null}function EK(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function DK(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var OK=Symbol(`evaluating`);function kK(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==OK)return r===void 0&&(r=OK,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function AK(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function jK(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function MK(e){return JSON.stringify(e)}function NK(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var PK=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function FK(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var IK=wK(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function LK(e){if(FK(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(FK(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function RK(e){return LK(e)?{...e}:Array.isArray(e)?[...e]:e}var zK=new Set([`string`,`number`,`symbol`]);function BK(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function VK(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Q(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw 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 HK(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var UK={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function WK(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return VK(e,jK(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return AK(this,`shape`,e),e},checks:[]}))}function GK(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return VK(e,jK(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return AK(this,`shape`,r),r},checks:[]}))}function KK(e,t){if(!LK(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return VK(e,jK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return AK(this,`shape`,n),n}}))}function qK(e,t){if(!LK(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return VK(e,jK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return AK(this,`shape`,n),n}}))}function JK(e,t){return VK(e,jK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return AK(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function YK(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return VK(t,jK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return AK(this,`shape`,i),i},checks:[]}))}function XK(e,t,n){return VK(t,jK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return AK(this,`shape`,i),i}}))}function ZK(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function QK(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function $K(e){return typeof e==`string`?e:e?.message}function eq(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=$K(e.inst?._zod.def?.error?.(e))??$K(t?.error?.(e))??$K(n.customError?.(e))??$K(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function tq(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function nq(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var rq=(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,CK,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},iq=Z(`$ZodError`,rq),aq=Z(`$ZodError`,rq,{Parent:Error});function oq(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function sq(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var cq=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new vK;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>eq(e,a,xK())));throw PK(t,i?.callee),t}return o.value},lq=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>eq(e,a,xK())));throw PK(t,i?.callee),t}return o.value},uq=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new vK;return a.issues.length?{success:!1,error:new(e??iq)(a.issues.map(e=>eq(e,i,xK())))}:{success:!0,data:a.value}},dq=uq(aq),fq=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>eq(e,i,xK())))}:{success:!0,data:a.value}},pq=fq(aq),mq=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return cq(e)(t,n,i)},hq=e=>(t,n,r)=>cq(e)(t,n,r),gq=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return lq(e)(t,n,i)},_q=e=>async(t,n,r)=>lq(e)(t,n,r),vq=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return uq(e)(t,n,i)},yq=e=>(t,n,r)=>uq(e)(t,n,r),bq=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return fq(e)(t,n,i)},xq=e=>async(t,n,r)=>fq(e)(t,n,r),Sq=/^[cC][^\s-]{8,}$/,Cq=/^[0-9a-z]+$/,wq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tq=/^[0-9a-vA-V]{20}$/,Eq=/^[A-Za-z0-9]{27}$/,Dq=/^[a-zA-Z0-9_-]{21}$/,Oq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kq=/^([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})$/,Aq=e=>e?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)$/,jq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Mq=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Nq(){return new RegExp(Mq,`u`)}var Pq=/^(?:(?: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])$/,Fq=/^(([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}|:))$/,Iq=/^((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])$/,Lq=/^(([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])$/,Rq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zq=/^[A-Za-z0-9_-]*$/,Bq=/^\+[1-9]\d{6,14}$/,Vq=`(?:(?:\\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])))`,Hq=RegExp(`^${Vq}$`);function Uq(e){let 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 Wq(e){return RegExp(`^${Uq(e)}$`)}function Gq(e){let t=Uq({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Vq}T(?:${r})$`)}var Kq=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},qq=/^-?\d+$/,Jq=/^-?\d+(?:\.\d+)?$/,Yq=/^(?:true|false)$/i,Xq=/^null$/i,Zq=/^[^A-Z]*$/,Qq=/^[^a-z]*$/,$q=Z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),eJ={number:`number`,bigint:`bigint`,object:`date`},tJ=Z(`$ZodCheckLessThan`,(e,t)=>{$q.init(e,t);let n=eJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),nJ=Z(`$ZodCheckGreaterThan`,(e,t)=>{$q.init(e,t);let n=eJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rJ=Z(`$ZodCheckMultipleOf`,(e,t)=>{$q.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):DK(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})}}),iJ=Z(`$ZodCheckNumberFormat`,(e,t)=>{$q.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=UK[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=qq)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),aJ=Z(`$ZodCheckMaxLength`,(e,t)=>{var n;$q.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!TK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=tq(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),oJ=Z(`$ZodCheckMinLength`,(e,t)=>{var n;$q.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!TK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=tq(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),sJ=Z(`$ZodCheckLengthEquals`,(e,t)=>{var n;$q.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!TK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=tq(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),cJ=Z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;$q.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),lJ=Z(`$ZodCheckRegex`,(e,t)=>{cJ.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})}}),uJ=Z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Zq,cJ.init(e,t)}),dJ=Z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Qq,cJ.init(e,t)}),fJ=Z(`$ZodCheckIncludes`,(e,t)=>{$q.init(e,t);let n=BK(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),pJ=Z(`$ZodCheckStartsWith`,(e,t)=>{$q.init(e,t);let n=RegExp(`^${BK(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),mJ=Z(`$ZodCheckEndsWith`,(e,t)=>{$q.init(e,t);let n=RegExp(`.*${BK(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),hJ=Z(`$ZodCheckOverwrite`,(e,t)=>{$q.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),gJ=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
80
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
81
+ `))}},_J={major:4,minor:3,patch:6},vJ=Z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_J;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ZK(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new vK;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ZK(e,t))});else{if(e.issues.length===t)continue;r||=ZK(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ZK(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new vK;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new vK;return o.then(e=>t(e,r,a))}return t(o,r,a)}}kK(e,`~standard`,()=>({validate:t=>{try{let n=dq(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return pq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),yJ=Z(`$ZodString`,(e,t)=>{vJ.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kq(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),bJ=Z(`$ZodStringFormat`,(e,t)=>{cJ.init(e,t),yJ.init(e,t)}),xJ=Z(`$ZodGUID`,(e,t)=>{t.pattern??=kq,bJ.init(e,t)}),SJ=Z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Aq(e)}else t.pattern??=Aq();bJ.init(e,t)}),CJ=Z(`$ZodEmail`,(e,t)=>{t.pattern??=jq,bJ.init(e,t)}),wJ=Z(`$ZodURL`,(e,t)=>{bJ.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.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(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.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=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),TJ=Z(`$ZodEmoji`,(e,t)=>{t.pattern??=Nq(),bJ.init(e,t)}),EJ=Z(`$ZodNanoID`,(e,t)=>{t.pattern??=Dq,bJ.init(e,t)}),DJ=Z(`$ZodCUID`,(e,t)=>{t.pattern??=Sq,bJ.init(e,t)}),OJ=Z(`$ZodCUID2`,(e,t)=>{t.pattern??=Cq,bJ.init(e,t)}),kJ=Z(`$ZodULID`,(e,t)=>{t.pattern??=wq,bJ.init(e,t)}),AJ=Z(`$ZodXID`,(e,t)=>{t.pattern??=Tq,bJ.init(e,t)}),jJ=Z(`$ZodKSUID`,(e,t)=>{t.pattern??=Eq,bJ.init(e,t)}),MJ=Z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gq(t),bJ.init(e,t)}),NJ=Z(`$ZodISODate`,(e,t)=>{t.pattern??=Hq,bJ.init(e,t)}),PJ=Z(`$ZodISOTime`,(e,t)=>{t.pattern??=Wq(t),bJ.init(e,t)}),FJ=Z(`$ZodISODuration`,(e,t)=>{t.pattern??=Oq,bJ.init(e,t)}),IJ=Z(`$ZodIPv4`,(e,t)=>{t.pattern??=Pq,bJ.init(e,t),e._zod.bag.format=`ipv4`}),LJ=Z(`$ZodIPv6`,(e,t)=>{t.pattern??=Fq,bJ.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),RJ=Z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Iq,bJ.init(e,t)}),zJ=Z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Lq,bJ.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function BJ(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var VJ=Z(`$ZodBase64`,(e,t)=>{t.pattern??=Rq,bJ.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{BJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function HJ(e){if(!zq.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return BJ(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var UJ=Z(`$ZodBase64URL`,(e,t)=>{t.pattern??=zq,bJ.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{HJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),WJ=Z(`$ZodE164`,(e,t)=>{t.pattern??=Bq,bJ.init(e,t)});function GJ(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var KJ=Z(`$ZodJWT`,(e,t)=>{bJ.init(e,t),e._zod.check=n=>{GJ(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),qJ=Z(`$ZodNumber`,(e,t)=>{vJ.init(e,t),e._zod.pattern=e._zod.bag.pattern??Jq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),JJ=Z(`$ZodNumberFormat`,(e,t)=>{iJ.init(e,t),qJ.init(e,t)}),YJ=Z(`$ZodBoolean`,(e,t)=>{vJ.init(e,t),e._zod.pattern=Yq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),XJ=Z(`$ZodNull`,(e,t)=>{vJ.init(e,t),e._zod.pattern=Xq,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),ZJ=Z(`$ZodUnknown`,(e,t)=>{vJ.init(e,t),e._zod.parse=e=>e}),QJ=Z(`$ZodNever`,(e,t)=>{vJ.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function $J(e,t,n){e.issues.length&&t.issues.push(...QK(n,e.issues)),t.value[n]=e.value}var eY=Z(`$ZodArray`,(e,t)=>{vJ.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>$J(t,n,e))):$J(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function tY(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...QK(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function nY(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=HK(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function rY(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>tY(e,n,i,t,u))):tY(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var iY=Z(`$ZodObject`,(e,t)=>{if(vJ.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=wK(()=>nY(t));kK(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=FK,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>tY(n,t,e,s,r))):tY(i,t,e,s,r)}return i?rY(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),aY=Z(`$ZodObjectJIT`,(e,t)=>{iY.init(e,t);let n=e._zod.parse,r=wK(()=>nY(t)),i=e=>{let t=new gJ([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=MK(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=MK(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
82
+ if (${n}.issues.length) {
83
+ if (${o} in input) {
84
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
85
+ ...iss,
86
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
87
+ })));
88
+ }
89
+ }
90
+
91
+ if (${n}.value === undefined) {
92
+ if (${o} in input) {
93
+ newResult[${o}] = undefined;
94
+ }
95
+ } else {
96
+ newResult[${o}] = ${n}.value;
97
+ }
98
+
99
+ `):t.write(`
100
+ if (${n}.issues.length) {
101
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
102
+ ...iss,
103
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
104
+ })));
105
+ }
106
+
107
+ if (${n}.value === undefined) {
108
+ if (${o} in input) {
109
+ newResult[${o}] = undefined;
110
+ }
111
+ } else {
112
+ newResult[${o}] = ${n}.value;
113
+ }
114
+
115
+ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=FK,s=!bK.jitless,c=s&&IK.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?rY([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function oY(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ZK(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>eq(e,r,xK())))}),t)}var sY=Z(`$ZodUnion`,(e,t)=>{vJ.init(e,t),kK(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),kK(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),kK(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),kK(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>EK(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>oY(t,i,e,a)):oY(s,i,e,a)}}),cY=Z(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,sY.init(e,t);let n=e._zod.parse;kK(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=wK(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!FK(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),lY=Z(`$ZodIntersection`,(e,t)=>{vJ.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>dY(e,t,n)):dY(e,i,a)}});function uY(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(LK(e)&&LK(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=uY(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=uY(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function dY(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ZK(e))return e;let o=uY(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var fY=Z(`$ZodRecord`,(e,t)=>{vJ.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!LK(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...QK(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...QK(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Jq.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>eq(e,r,xK())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...QK(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...QK(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),pY=Z(`$ZodEnum`,(e,t)=>{vJ.init(e,t);let n=SK(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>zK.has(typeof e)).map(e=>typeof e==`string`?BK(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),mY=Z(`$ZodLiteral`,(e,t)=>{if(vJ.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?BK(e):e?BK(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),hY=Z(`$ZodTransform`,(e,t)=>{vJ.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new yK(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new vK;return n.value=i,n}});function gY(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var _Y=Z(`$ZodOptional`,(e,t)=>{vJ.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),kK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${EK(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>gY(t,e.value)):gY(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),vY=Z(`$ZodExactOptional`,(e,t)=>{_Y.init(e,t),kK(e._zod,`values`,()=>t.innerType._zod.values),kK(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),yY=Z(`$ZodNullable`,(e,t)=>{vJ.init(e,t),kK(e._zod,`optin`,()=>t.innerType._zod.optin),kK(e._zod,`optout`,()=>t.innerType._zod.optout),kK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${EK(e.source)}|null)$`):void 0}),kK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),bY=Z(`$ZodDefault`,(e,t)=>{vJ.init(e,t),e._zod.optin=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>xY(e,t)):xY(r,t)}});function xY(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var SY=Z(`$ZodPrefault`,(e,t)=>{vJ.init(e,t),e._zod.optin=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),CY=Z(`$ZodNonOptional`,(e,t)=>{vJ.init(e,t),kK(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>wY(t,e)):wY(i,e)}});function wY(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var TY=Z(`$ZodCatch`,(e,t)=>{vJ.init(e,t),kK(e._zod,`optin`,()=>t.innerType._zod.optin),kK(e._zod,`optout`,()=>t.innerType._zod.optout),kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>eq(e,n,xK()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>eq(e,n,xK()))},input:e.value}),e.issues=[]),e)}}),EY=Z(`$ZodPipe`,(e,t)=>{vJ.init(e,t),kK(e._zod,`values`,()=>t.in._zod.values),kK(e._zod,`optin`,()=>t.in._zod.optin),kK(e._zod,`optout`,()=>t.out._zod.optout),kK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>DY(e,t.in,n)):DY(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>DY(e,t.out,n)):DY(r,t.out,n)}});function DY(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var OY=Z(`$ZodReadonly`,(e,t)=>{vJ.init(e,t),kK(e._zod,`propValues`,()=>t.innerType._zod.propValues),kK(e._zod,`values`,()=>t.innerType._zod.values),kK(e._zod,`optin`,()=>t.innerType?._zod?.optin),kK(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(kY):kY(r)}});function kY(e){return e.value=Object.freeze(e.value),e}var AY=Z(`$ZodCustom`,(e,t)=>{$q.init(e,t),vJ.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>jY(t,n,r,e));jY(i,n,r,e)}});function jY(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(nq(e))}}var MY,NY=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function PY(){return new NY}(MY=globalThis).__zod_globalRegistry??(MY.__zod_globalRegistry=PY());var FY=globalThis.__zod_globalRegistry;function IY(e,t){return new e({type:`string`,...Q(t)})}function LY(e,t){return new e({type:`string`,coerce:!0,...Q(t)})}function RY(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Q(t)})}function zY(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Q(t)})}function BY(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Q(t)})}function VY(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Q(t)})}function HY(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Q(t)})}function UY(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Q(t)})}function WY(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Q(t)})}function GY(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Q(t)})}function KY(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Q(t)})}function qY(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Q(t)})}function JY(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Q(t)})}function YY(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Q(t)})}function XY(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Q(t)})}function ZY(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Q(t)})}function QY(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Q(t)})}function $Y(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Q(t)})}function eX(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Q(t)})}function tX(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Q(t)})}function nX(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Q(t)})}function rX(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Q(t)})}function iX(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Q(t)})}function aX(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Q(t)})}function oX(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Q(t)})}function sX(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Q(t)})}function cX(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Q(t)})}function lX(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Q(t)})}function uX(e,t){return new e({type:`number`,checks:[],...Q(t)})}function dX(e,t){return new e({type:`number`,coerce:!0,checks:[],...Q(t)})}function fX(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Q(t)})}function pX(e,t){return new e({type:`boolean`,...Q(t)})}function mX(e,t){return new e({type:`null`,...Q(t)})}function hX(e){return new e({type:`unknown`})}function gX(e,t){return new e({type:`never`,...Q(t)})}function _X(e,t){return new tJ({check:`less_than`,...Q(t),value:e,inclusive:!1})}function vX(e,t){return new tJ({check:`less_than`,...Q(t),value:e,inclusive:!0})}function yX(e,t){return new nJ({check:`greater_than`,...Q(t),value:e,inclusive:!1})}function bX(e,t){return new nJ({check:`greater_than`,...Q(t),value:e,inclusive:!0})}function xX(e,t){return new rJ({check:`multiple_of`,...Q(t),value:e})}function SX(e,t){return new aJ({check:`max_length`,...Q(t),maximum:e})}function CX(e,t){return new oJ({check:`min_length`,...Q(t),minimum:e})}function wX(e,t){return new sJ({check:`length_equals`,...Q(t),length:e})}function TX(e,t){return new lJ({check:`string_format`,format:`regex`,...Q(t),pattern:e})}function EX(e){return new uJ({check:`string_format`,format:`lowercase`,...Q(e)})}function DX(e){return new dJ({check:`string_format`,format:`uppercase`,...Q(e)})}function OX(e,t){return new fJ({check:`string_format`,format:`includes`,...Q(t),includes:e})}function kX(e,t){return new pJ({check:`string_format`,format:`starts_with`,...Q(t),prefix:e})}function AX(e,t){return new mJ({check:`string_format`,format:`ends_with`,...Q(t),suffix:e})}function jX(e){return new hJ({check:`overwrite`,tx:e})}function MX(e){return jX(t=>t.normalize(e))}function NX(){return jX(e=>e.trim())}function PX(){return jX(e=>e.toLowerCase())}function FX(){return jX(e=>e.toUpperCase())}function IX(){return jX(e=>NK(e))}function LX(e,t,n){return new e({type:`array`,element:t,...Q(n)})}function RX(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Q(n)})}function zX(e){let t=BX(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(nq(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(nq(r))}},e(n.value,n)));return t}function BX(e,t){let n=new $q({check:`custom`,...Q(t)});return n._zod.check=e,n}function VX(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??FY,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function HX(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,HX(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&GX(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function UX(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
116
+
117
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function WX(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:qX(t,`input`,e.processors),output:qX(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function GX(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return GX(r.element,n);if(r.type===`set`)return GX(r.valueType,n);if(r.type===`lazy`)return GX(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return GX(r.innerType,n);if(r.type===`intersection`)return GX(r.left,n)||GX(r.right,n);if(r.type===`record`||r.type===`map`)return GX(r.keyType,n)||GX(r.valueType,n);if(r.type===`pipe`)return GX(r.in,n)||GX(r.out,n);if(r.type===`object`){for(let e in r.shape)if(GX(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(GX(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(GX(e,n))return!0;return!!(r.rest&&GX(r.rest,n))}return!1}var KX=(e,t={})=>n=>{let r=VX({...n,processors:t});return HX(e,r),UX(r,e),WX(r,e)},qX=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=VX({...i??{},target:a,io:t,processors:n});return HX(e,o),UX(o,e),WX(o,e)},JX={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},YX=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=JX[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},XX=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},ZX=(e,t,n,r)=>{n.type=`boolean`},QX=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},$X=(e,t,n,r)=>{n.not={}},eZ=(e,t,n,r)=>{let i=e._zod.def,a=SK(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},tZ=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},nZ=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},rZ=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},iZ=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=HX(a.element,t,{...r,path:[...r.path,`items`]})},aZ=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=HX(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=HX(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},oZ=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>HX(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},sZ=(e,t,n,r)=>{let i=e._zod.def,a=HX(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=HX(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},cZ=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=HX(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=HX(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=HX(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},lZ=(e,t,n,r)=>{let i=e._zod.def,a=HX(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},uZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},dZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},fZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},pZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},mZ=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;HX(a,t,r);let o=t.seen.get(e);o.ref=a},hZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},gZ=(e,t,n,r)=>{let i=e._zod.def;HX(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_Z=Z(`ZodISODateTime`,(e,t)=>{MJ.init(e,t),UZ.init(e,t)});function vZ(e){return oX(_Z,e)}var yZ=Z(`ZodISODate`,(e,t)=>{NJ.init(e,t),UZ.init(e,t)});function bZ(e){return sX(yZ,e)}var xZ=Z(`ZodISOTime`,(e,t)=>{PJ.init(e,t),UZ.init(e,t)});function SZ(e){return cX(xZ,e)}var CZ=Z(`ZodISODuration`,(e,t)=>{FJ.init(e,t),UZ.init(e,t)});function wZ(e){return lX(CZ,e)}var TZ=(e,t)=>{iq.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>sq(e,t)},flatten:{value:t=>oq(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,CK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,CK,2)}},isEmpty:{get(){return e.issues.length===0}}})};Z(`ZodError`,TZ);var EZ=Z(`ZodError`,TZ,{Parent:Error}),DZ=cq(EZ),OZ=lq(EZ),kZ=uq(EZ),AZ=fq(EZ),jZ=mq(EZ),MZ=hq(EZ),NZ=gq(EZ),PZ=_q(EZ),FZ=vq(EZ),IZ=yq(EZ),LZ=bq(EZ),RZ=xq(EZ),zZ=Z(`ZodType`,(e,t)=>(vJ.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:qX(e,`input`),output:qX(e,`output`)}}),e.toJSONSchema=KX(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(jK(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>VK(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>DZ(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>kZ(e,t,n),e.parseAsync=async(t,n)=>OZ(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>AZ(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>jZ(e,t,n),e.decode=(t,n)=>MZ(e,t,n),e.encodeAsync=async(t,n)=>NZ(e,t,n),e.decodeAsync=async(t,n)=>PZ(e,t,n),e.safeEncode=(t,n)=>FZ(e,t,n),e.safeDecode=(t,n)=>IZ(e,t,n),e.safeEncodeAsync=async(t,n)=>LZ(e,t,n),e.safeDecodeAsync=async(t,n)=>RZ(e,t,n),e.refine=(t,n)=>e.check(i$(t,n)),e.superRefine=t=>e.check(a$(t)),e.overwrite=t=>e.check(jX(t)),e.optional=()=>VQ(e),e.exactOptional=()=>UQ(e),e.nullable=()=>GQ(e),e.nullish=()=>VQ(GQ(e)),e.nonoptional=t=>ZQ(e,t),e.array=()=>SQ(e),e.or=t=>DQ([e,t]),e.and=t=>jQ(e,t),e.transform=t=>e$(e,zQ(t)),e.default=t=>qQ(e,t),e.prefault=t=>YQ(e,t),e.catch=t=>QQ(e,t),e.pipe=t=>e$(e,t),e.readonly=()=>n$(e),e.describe=t=>{let n=e.clone();return FY.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return FY.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return FY.get(e);let n=e.clone();return FY.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),BZ=Z(`_ZodString`,(e,t)=>{yJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YX(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(TX(...t)),e.includes=(...t)=>e.check(OX(...t)),e.startsWith=(...t)=>e.check(kX(...t)),e.endsWith=(...t)=>e.check(AX(...t)),e.min=(...t)=>e.check(CX(...t)),e.max=(...t)=>e.check(SX(...t)),e.length=(...t)=>e.check(wX(...t)),e.nonempty=(...t)=>e.check(CX(1,...t)),e.lowercase=t=>e.check(EX(t)),e.uppercase=t=>e.check(DX(t)),e.trim=()=>e.check(NX()),e.normalize=(...t)=>e.check(MX(...t)),e.toLowerCase=()=>e.check(PX()),e.toUpperCase=()=>e.check(FX()),e.slugify=()=>e.check(IX())}),VZ=Z(`ZodString`,(e,t)=>{yJ.init(e,t),BZ.init(e,t),e.email=t=>e.check(RY(WZ,t)),e.url=t=>e.check(WY(qZ,t)),e.jwt=t=>e.check(aX(cQ,t)),e.emoji=t=>e.check(GY(JZ,t)),e.guid=t=>e.check(zY(GZ,t)),e.uuid=t=>e.check(BY(KZ,t)),e.uuidv4=t=>e.check(VY(KZ,t)),e.uuidv6=t=>e.check(HY(KZ,t)),e.uuidv7=t=>e.check(UY(KZ,t)),e.nanoid=t=>e.check(KY(YZ,t)),e.guid=t=>e.check(zY(GZ,t)),e.cuid=t=>e.check(qY(XZ,t)),e.cuid2=t=>e.check(JY(ZZ,t)),e.ulid=t=>e.check(YY(QZ,t)),e.base64=t=>e.check(nX(aQ,t)),e.base64url=t=>e.check(rX(oQ,t)),e.xid=t=>e.check(XY($Z,t)),e.ksuid=t=>e.check(ZY(eQ,t)),e.ipv4=t=>e.check(QY(tQ,t)),e.ipv6=t=>e.check($Y(nQ,t)),e.cidrv4=t=>e.check(eX(rQ,t)),e.cidrv6=t=>e.check(tX(iQ,t)),e.e164=t=>e.check(iX(sQ,t)),e.datetime=t=>e.check(vZ(t)),e.date=t=>e.check(bZ(t)),e.time=t=>e.check(SZ(t)),e.duration=t=>e.check(wZ(t))});function HZ(e){return IY(VZ,e)}var UZ=Z(`ZodStringFormat`,(e,t)=>{bJ.init(e,t),BZ.init(e,t)}),WZ=Z(`ZodEmail`,(e,t)=>{CJ.init(e,t),UZ.init(e,t)}),GZ=Z(`ZodGUID`,(e,t)=>{xJ.init(e,t),UZ.init(e,t)}),KZ=Z(`ZodUUID`,(e,t)=>{SJ.init(e,t),UZ.init(e,t)}),qZ=Z(`ZodURL`,(e,t)=>{wJ.init(e,t),UZ.init(e,t)}),JZ=Z(`ZodEmoji`,(e,t)=>{TJ.init(e,t),UZ.init(e,t)}),YZ=Z(`ZodNanoID`,(e,t)=>{EJ.init(e,t),UZ.init(e,t)}),XZ=Z(`ZodCUID`,(e,t)=>{DJ.init(e,t),UZ.init(e,t)}),ZZ=Z(`ZodCUID2`,(e,t)=>{OJ.init(e,t),UZ.init(e,t)}),QZ=Z(`ZodULID`,(e,t)=>{kJ.init(e,t),UZ.init(e,t)}),$Z=Z(`ZodXID`,(e,t)=>{AJ.init(e,t),UZ.init(e,t)}),eQ=Z(`ZodKSUID`,(e,t)=>{jJ.init(e,t),UZ.init(e,t)}),tQ=Z(`ZodIPv4`,(e,t)=>{IJ.init(e,t),UZ.init(e,t)}),nQ=Z(`ZodIPv6`,(e,t)=>{LJ.init(e,t),UZ.init(e,t)}),rQ=Z(`ZodCIDRv4`,(e,t)=>{RJ.init(e,t),UZ.init(e,t)}),iQ=Z(`ZodCIDRv6`,(e,t)=>{zJ.init(e,t),UZ.init(e,t)}),aQ=Z(`ZodBase64`,(e,t)=>{VJ.init(e,t),UZ.init(e,t)}),oQ=Z(`ZodBase64URL`,(e,t)=>{UJ.init(e,t),UZ.init(e,t)}),sQ=Z(`ZodE164`,(e,t)=>{WJ.init(e,t),UZ.init(e,t)}),cQ=Z(`ZodJWT`,(e,t)=>{KJ.init(e,t),UZ.init(e,t)}),lQ=Z(`ZodNumber`,(e,t)=>{qJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XX(e,t,n,r),e.gt=(t,n)=>e.check(yX(t,n)),e.gte=(t,n)=>e.check(bX(t,n)),e.min=(t,n)=>e.check(bX(t,n)),e.lt=(t,n)=>e.check(_X(t,n)),e.lte=(t,n)=>e.check(vX(t,n)),e.max=(t,n)=>e.check(vX(t,n)),e.int=t=>e.check(fQ(t)),e.safe=t=>e.check(fQ(t)),e.positive=t=>e.check(yX(0,t)),e.nonnegative=t=>e.check(bX(0,t)),e.negative=t=>e.check(_X(0,t)),e.nonpositive=t=>e.check(vX(0,t)),e.multipleOf=(t,n)=>e.check(xX(t,n)),e.step=(t,n)=>e.check(xX(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function uQ(e){return uX(lQ,e)}var dQ=Z(`ZodNumberFormat`,(e,t)=>{JJ.init(e,t),lQ.init(e,t)});function fQ(e){return fX(dQ,e)}var pQ=Z(`ZodBoolean`,(e,t)=>{YJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZX(e,t,n,r)});function mQ(e){return pX(pQ,e)}var hQ=Z(`ZodNull`,(e,t)=>{XJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QX(e,t,n,r)});function gQ(e){return mX(hQ,e)}var _Q=Z(`ZodUnknown`,(e,t)=>{ZJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function vQ(){return hX(_Q)}var yQ=Z(`ZodNever`,(e,t)=>{QJ.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$X(e,t,n,r)});function bQ(e){return gX(yQ,e)}var xQ=Z(`ZodArray`,(e,t)=>{eY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iZ(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(CX(t,n)),e.nonempty=t=>e.check(CX(1,t)),e.max=(t,n)=>e.check(SX(t,n)),e.length=(t,n)=>e.check(wX(t,n)),e.unwrap=()=>e.element});function SQ(e,t){return LX(xQ,e,t)}var CQ=Z(`ZodObject`,(e,t)=>{aY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aZ(e,t,n,r),kK(e,`shape`,()=>t.shape),e.keyof=()=>FQ(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vQ()}),e.loose=()=>e.clone({...e._zod.def,catchall:vQ()}),e.strict=()=>e.clone({...e._zod.def,catchall:bQ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>KK(e,t),e.safeExtend=t=>qK(e,t),e.merge=t=>JK(e,t),e.pick=t=>WK(e,t),e.omit=t=>GK(e,t),e.partial=(...t)=>YK(BQ,e,t[0]),e.required=(...t)=>XK(XQ,e,t[0])});function wQ(e,t){return new CQ({type:`object`,shape:e??{},...Q(t)})}function TQ(e,t){return new CQ({type:`object`,shape:e,catchall:vQ(),...Q(t)})}var EQ=Z(`ZodUnion`,(e,t)=>{sY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oZ(e,t,n,r),e.options=t.options});function DQ(e,t){return new EQ({type:`union`,options:e,...Q(t)})}var OQ=Z(`ZodDiscriminatedUnion`,(e,t)=>{EQ.init(e,t),cY.init(e,t)});function kQ(e,t,n){return new OQ({type:`union`,options:t,discriminator:e,...Q(n)})}var AQ=Z(`ZodIntersection`,(e,t)=>{lY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sZ(e,t,n,r)});function jQ(e,t){return new AQ({type:`intersection`,left:e,right:t})}var MQ=Z(`ZodRecord`,(e,t)=>{fY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cZ(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function NQ(e,t,n){return new MQ({type:`record`,keyType:e,valueType:t,...Q(n)})}var PQ=Z(`ZodEnum`,(e,t)=>{pY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eZ(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new PQ({...t,checks:[],...Q(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new PQ({...t,checks:[],...Q(r),entries:i})}});function FQ(e,t){return new PQ({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Q(t)})}var IQ=Z(`ZodLiteral`,(e,t)=>{mY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tZ(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function LQ(e,t){return new IQ({type:`literal`,values:Array.isArray(e)?e:[e],...Q(t)})}var RQ=Z(`ZodTransform`,(e,t)=>{hY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rZ(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new yK(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(nq(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(nq(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function zQ(e){return new RQ({type:`transform`,transform:e})}var BQ=Z(`ZodOptional`,(e,t)=>{_Y.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function VQ(e){return new BQ({type:`optional`,innerType:e})}var HQ=Z(`ZodExactOptional`,(e,t)=>{vY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function UQ(e){return new HQ({type:`optional`,innerType:e})}var WQ=Z(`ZodNullable`,(e,t)=>{yY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function GQ(e){return new WQ({type:`nullable`,innerType:e})}var KQ=Z(`ZodDefault`,(e,t)=>{bY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qQ(e,t){return new KQ({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():RK(t)}})}var JQ=Z(`ZodPrefault`,(e,t)=>{SY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function YQ(e,t){return new JQ({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():RK(t)}})}var XQ=Z(`ZodNonOptional`,(e,t)=>{CY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ZQ(e,t){return new XQ({type:`nonoptional`,innerType:e,...Q(t)})}var mse=Z(`ZodCatch`,(e,t)=>{TY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function QQ(e,t){return new mse({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var $Q=Z(`ZodPipe`,(e,t)=>{EY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mZ(e,t,n,r),e.in=t.in,e.out=t.out});function e$(e,t){return new $Q({type:`pipe`,in:e,out:t})}var t$=Z(`ZodReadonly`,(e,t)=>{OY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hZ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function n$(e){return new t$({type:`readonly`,innerType:e})}var r$=Z(`ZodCustom`,(e,t)=>{AY.init(e,t),zZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nZ(e,t,n,r)});function i$(e,t={}){return RX(r$,e,t)}function a$(e){return zX(e)}function o$(e,t){return e$(zQ(e),t)}function s$(e){return LY(VZ,e)}function c$(e){return dX(lQ,e)}var l$=e=>typeof e==`string`,u$=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},d$=e=>e==null?``:String(e),f$=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},p$=/###/g,m$=e=>e&&e.includes(`###`)?e.replace(p$,`.`):e,h$=e=>!e||l$(e),g$=(e,t,n)=>{let r=l$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(h$(e))return{};let t=m$(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return h$(e)?{}:{obj:e,k:m$(r[i])}},_$=(e,t,n)=>{let{obj:r,k:i}=g$(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=g$(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=g$(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},v$=(e,t,n,r)=>{let{obj:i,k:a}=g$(e,t,Object);i[a]=i[a]||[],i[a].push(n)},y$=(e,t)=>{let{obj:n,k:r}=g$(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},b$=(e,t,n)=>{let r=y$(e,n);return r===void 0?y$(t,n):r},x$=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?l$(e[r])||e[r]instanceof String||l$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):x$(e[r],t[r],n):e[r]=t[r]);return e},S$=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),C$={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},w$=e=>l$(e)?e.replace(/[&<>"'\/]/g,e=>C$[e]):e,T$=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},E$=[` `,`,`,`?`,`!`,`;`],D$=new T$(20),O$=(e,t,n)=>{t||=``,n||=``;let r=E$.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=D$.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},k$=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},A$=e=>e?.replace(/_/g,`-`),j$={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},M$=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||j$,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>l$(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),l$(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},N$=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},P$=class extends N${constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=y$(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!l$(n)?s:k$(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),_$(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(l$(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=y$(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?x$(s,n,i):s={...s,...n},_$(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},F$={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},I$=Symbol(`i18next/PATH_KEY`);function L$(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===I$?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function R$(e,t){let{[I$]:n}=e(L$()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var z$=e=>!l$(e)&&typeof e!=`boolean`&&typeof e!=`number`,B$=class e extends N${constructor(e,t={}){super(),f$([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=M$.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=z$(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!O$(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:l$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=R$(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?R$(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!l$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=z$(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(l$(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:z$(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&l$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=l$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!l$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=l$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=F$.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return l$(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?R$(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!l$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(l$(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!l$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},V$=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M$.create(`languageUtils`)}getScriptPartFromCode(e){if(e=A$(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=A$(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l$(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),l$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return l$(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):l$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},H$={zero:0,one:1,two:2,few:3,many:4,other:5},U$={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},W$=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=M$.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=A$(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),U$;if(!e.match(/-|_/))return U$;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>H$[e]-H$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},G$=(e,t,n,r=`.`,i=!0)=>{let a=b$(e,t,n);return!a&&i&&l$(n)&&(a=k$(e,n,r),a===void 0&&(a=k$(t,n,r))),a},K$=e=>e.replace(/\$/g,`$$$$`),q$=class{constructor(e={}){this.logger=M$.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?w$:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?S$(i):a||`{{`,this.suffix=o?S$(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?S$(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?S$(l):``,this.nestingPrefix=d?S$(d):f||S$(`$t(`),this.nestingSuffix=p?S$(p):m||S$(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=G$(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(G$(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=l$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !l$(a)&&!this.useRawValueToEscape&&(a=d$(a));let s=t.safeValue(a);if(e=e.replace(i[0],K$(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${S$(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!l$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!l$(i))return i;l$(i)||(i=d$(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},J$=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Y$=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(A$(r),i),t[o]=s),s(n)}},X$=e=>(t,n,r)=>e(A$(n),r)(t),Z$=class{constructor(e={}){this.logger=M$.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Y$:X$;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Y$(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=J$(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Q$=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},$$=class extends N${constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=M$.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{v$(n.loaded,[i],a),Q$(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();l$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},e1=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),l$(e[1])&&(t.defaultValue=e[1]),l$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),t1=e=>(l$(e.ns)&&(e.ns=[e.ns]),l$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),n1=()=>{},r1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},i1=class e extends N${constructor(e={},t){if(super(),this.options=t1(e),this.services={},this.logger=M$,this.modules={external:[]},r1(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(l$(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=e1();this.options={...n,...this.options,...t1(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?M$.init(r(this.modules.logger),this.options):M$.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Z$;let t=new V$(this.options);this.store=new P$(this.options.resources,this.options);let n=this.services;n.logger=M$,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new W$(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new q$(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new $$(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new B$(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=n1,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=u$(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=n1){let n=t,r=l$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=u$();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=n1,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&F$.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=u$();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=l$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l$(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=R$(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=R$(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=R$(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return l$(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=u$();return this.options.ns?(l$(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=u$();l$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new V$(e1());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=n1){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new P$(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...e1().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new q$(n)}return a.translator=new B$(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();i1.createInstance,i1.dir,i1.init,i1.loadResources,i1.reloadResources,i1.use,i1.changeLanguage,i1.getFixedT;var a1=i1.t;i1.exists,i1.setDefaultNamespace,i1.hasLoadedNamespace,i1.loadNamespaces,i1.loadLanguages;var o1={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,"!doctype":!0,"!DOCTYPE":!0},s1=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function c1(e){let t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(o1[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){let t=e.indexOf(`-->`);return{type:`comment`,comment:t===-1?``:e.slice(4,t)}}let r=new RegExp(s1),i=null;for(;i=r.exec(e),i!==null;)if(i[0].trim())if(i[1]){let e=i[1].trim(),n=[e,null],a=e.indexOf(`=`);a>-1&&(n=[e.slice(0,a),e.slice(a+1)]),t.attrs[n[0]]=n[1],r.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var l1=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u1=/<\/?([^\s]+?)[/\s>]/,d1=/^\s*$/,f1=/^(script|style)$/i,p1=`\0`,m1=Object.create(null);function h1(e){e.forEach(function(e){if(e.type===`text`){e.content=e.content.split(p1).join(`<`);return}if(e.type===`comment`){e.comment=e.comment.split(p1).join(`<`);return}for(let t in e.attrs){let n=e.attrs[t];typeof n==`string`&&n.indexOf(p1)>-1&&(e.attrs[t]=n.split(p1).join(`<`))}e.children.length&&h1(e.children)})}function g1(e,t){let n=t&&t.components||m1,r=t&&t.allowedTags,i=!1;if(r){let t=typeof r==`function`?r:function(e){return r.indexOf(e)>-1},n=``,a=0;l1.lastIndex=0;let o;for(;o=l1.exec(e);){let r=o[0];n+=e.slice(a,o.index);let s=r.match(u1);r.startsWith(`<!--`)||s&&t(s[1])?(n+=r,a=o.index+r.length):(i=!0,n+=p1,a=o.index+1,l1.lastIndex=a)}e=n+e.slice(a)}let a=[],o=[],s,c=-1,l=!1,u=0,d;if(e.indexOf(`<`)!==0){let t=e.indexOf(`<`);a.push({type:`text`,content:t===-1?e:e.substring(0,t)})}let f=[],p;for(;p=l1.exec(e);)f.push(p);return f.forEach(function(e,t){let n=e[0];if(!n||n.startsWith(`<!--`))return;let r=0,i=0,a=-1,o=null;for(let e=0;e<n.length;e++){let t=n.charAt(e);o?t===o&&(o=null):t===`"`||t===`'`?o=t:t===`<`?(r++,r===2&&(a=e)):t===`>`&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(n.charAt(a+1));if(r>i&&s){let e=n.substring(0,a),r=n.substring(e.length);f[t][0]=r,f[t].index+=e.length}}),f.forEach(function(t,r){let i=t[0];if(!i)return;let p=t.index;if(p<u)return;if(l){if(i!==`</`+s.name+`>`)return;l=!1}let m=i.charAt(1)!==`/`,h=i.startsWith(`<!--`),g=p+i.length,_=e.charAt(g),v=f[r+1],y;if(_===`<`&&v){let t=e.substring(g,v.index);y=t.split(`<`).length>t.split(`>`).length}let b;if(h){let t=c1(i);if(c<0)return a.push(t),a;b=o[c],b.children.push(t);let n=e.slice(g,v?v.index:void 0);return n.length>0&&b.children.push({type:`text`,content:n}),a}if(m){c++,s=c1(i),s.type===`tag`&&n[s.name]&&(s.type=`component`,l=!0);let t=!1;if(!l&&!s.voidElement&&f1.test(s.name)){t=!0,d||=e.toLowerCase();let n=d.indexOf(`</`+s.name.toLowerCase()+`>`,g),r=n===-1?e.length:n,i=e.slice(g,r);i&&s.children.push({type:`text`,content:i}),u=r}!s.voidElement&&!l&&!t&&_&&_!==`<`&&s.children.push({type:`text`,content:e.slice(g,v?v.index:void 0)}),c===0&&a.push(s),b=o[c-1],b&&b.children.push(s),o[c]=s}if((!m||s.voidElement)&&(c>-1&&(s.voidElement||s.name===i.slice(2,-1))&&(c--,s=c===-1?a:o[c]),!l&&(_!==`<`||y)&&_)){b=c===-1?a:o[c].children;let t=v?v.index:-1,n=e.slice(g,t===-1?void 0:t);d1.test(n)&&(n=` `),(t>-1&&c+b.length>=0||n!==` `)&&b.push({type:`text`,content:n})}}),i&&h1(a),a}function _1(e){let t=[];for(let n in e)e[n]===null?t.push(n):t.push(n+`="`+String(e[n]).replace(/"/g,`&quot;`)+`"`);return t.length?` `+t.join(` `):``}function v1(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:{let n=t.voidElement&&t.name.toLowerCase()!==`!doctype`?`/>`:`>`;return e+=`<`+t.name+(t.attrs?_1(t.attrs):``)+n,t.voidElement?e:e+t.children.reduce(v1,``)+`</`+t.name+`>`}case`comment`:return e+=`<!--`+t.comment+`-->`,e}}function y1(e){return e.reduce(function(e,t){return e+v1(``,t)},``)}var b1={parse:g1,stringify:y1},x1=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);O1(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},S1={},C1=(e,t,n,r)=>{O1(n)&&S1[n]||(O1(n)&&(S1[n]=new Date),x1(e,t,n,r))},w1=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},T1=(e,t,n)=>{e.loadNamespaces(t,w1(e,n))},E1=(e,t,n,r)=>{if(O1(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return T1(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,w1(e,r))},D1=(e,t,n={})=>!t.languages||!t.languages.length?(C1(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),O1=e=>typeof e==`string`,k1=e=>typeof e==`object`&&!!e,A1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,j1={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},M1=e=>j1[e],N1=e=>e.replace(A1,M1),P1={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:N1,transDefaultProps:void 0},F1=(e={})=>{P1={...P1,...e}},I1=()=>P1,L1,R1=e=>{L1=e},z1=()=>L1,B1=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},V1=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?U1(t):t},H1=e=>Array.isArray(e)&&e.every(M.isValidElement),U1=e=>Array.isArray(e)?e:[e],W1=(e,t)=>{let n={...t};return n.props={...t.props,...e.props},n},G1=e=>{let t={};if(!e)return t;let n=e=>{U1(e).forEach(e=>{O1(e)||(B1(e)?n(V1(e)):k1(e)&&!(0,M.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t},K1=(e,t,n,r)=>{if(!e)return``;let i=``,a=U1(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(O1(e)){i+=`${e}`;return}if((0,M.isValidElement)(e)){let{props:s,type:c}=e,l=Object.keys(s).length,u=o.indexOf(c)>-1,d=s.children;if(!d&&u&&!l){i+=`<${c}/>`;return}if(!d&&(!u||l)||s.i18nIsDynamicList){i+=`<${a}></${a}>`;return}if(u&&l<=1){let e=O1(d)?d:K1(d,t,n,r);i+=`<${c}>${e}</${c}>`;return}let f=K1(d,t,n,r);i+=`<${a}>${f}</${a}>`;return}if(e===null){x1(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(k1(e)){let{format:t,...a}=e,o=Object.keys(a);if(o.length===1){let e=t?`${o[0]}, ${t}`:o[0];i+=`{{${e}}}`;return}x1(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}x1(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},q1=(e,t,n,r,i,a,o)=>{if(n===``)return[];let s=i.transKeepBasicHtmlNodesFor||[],c=n&&new RegExp(s.map(e=>`<${e}`).join(`|`)).test(n);if(!e&&!t&&!c&&!o)return[n];let l=t??{},u=e=>{U1(e).forEach(e=>{O1(e)||(B1(e)?u(V1(e)):k1(e)&&!(0,M.isValidElement)(e)&&Object.assign(l,e))})};u(e);let d=Object.keys(l),f=b1.parse(`<0>${n}</0>`,{allowedTags:e=>/^\d+$/.test(e)||s.indexOf(e)>-1||d.indexOf(e)>-1}),p={...l,...a},m=(e,t,n)=>{let r=V1(e),i=g(r,t.children,n);return H1(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},h=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,M.cloneElement)(e,{key:r},i?void 0:t))):n.push(...M.Children.map([e],e=>{if(e.type===M.Fragment||e.props?.i18nIsDynamicList!==void 0){let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`children`||t===`i18nIsDynamicList`||(n[t]=e.props[t])}),(0,M.createElement)(e.type,n,i?null:t)}let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`ref`||t===`children`||(n[t]=e.props[t])}),(0,M.cloneElement)(e,n,i?null:t)}))},g=(e,n,a)=>{let l=U1(e),u=U1(n),d={};return u.reduce((e,n,u)=>{let f=n.children?.[0]?.content&&r.services.interpolator.interpolate(n.children[0].content,p,r.language);if(n.type===`tag`){let _=l[parseInt(n.name,10)];!_&&t&&(_=t[n.name]),a.length===1&&!_&&(_=a[0][n.name]),_||={};let v={...n.attrs};o&&Object.keys(v).forEach(e=>{let t=v[e];O1(t)&&(v[e]=N1(t))});let y=Object.keys(v).length===0?_:W1({props:v},_),b=(0,M.isValidElement)(y),x=b&&B1(n,!0)&&!n.voidElement,S=c&&k1(y)&&y.dummy&&!b,C=k1(t)&&Object.hasOwnProperty.call(t,n.name);if(O1(y)){let t=r.services.interpolator.interpolate(y,p,r.language);e.push(t)}else if(B1(y)||x)h(y,m(y,n,a),e,u);else if(S)h(y,g(l,n.children,a),e,u);else if(Number.isNaN(parseFloat(n.name)))if(C)h(y,m(y,n,a),e,u,n.voidElement);else if(i.transSupportBasicHtmlNodes&&s.indexOf(n.name)>-1)if(n.voidElement)e.push((0,M.createElement)(n.name,{key:`${n.name}-${u}`}));else{let t=d[n.name]||0;d[n.name]=t+1;let r,i=0;for(let e=0;e<l.length;e+=1){let a=l[e];if((0,M.isValidElement)(a)&&a.type===n.name){if(i===t){r=a;break}i+=1}}let o=g(r?U1(V1(r)):l,n.children,a);e.push((0,M.createElement)(n.name,{key:`${n.name}-${u}`},o))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=g(l,n.children,a);e.push(`<${n.name}>${t}</${n.name}>`)}else if(k1(y)&&!b){let t=n.children[0]?f:null;t&&e.push(t)}else h(y,f,e,u,n.children.length!==1||!f)}else if(n.type===`text`){let t=i.transWrapTextNodes,a=typeof i.unescape==`function`?i.unescape:I1().unescape,s=o?a(r.services.interpolator.interpolate(n.content,p,r.language)):r.services.interpolator.interpolate(n.content,p,r.language);t?e.push((0,M.createElement)(t,{key:`${n.name}-${u}`},s)):e.push(s)}return e},[])};return V1(g([{dummy:!0,children:e||[]}],f,U1(e||[]))[0])},J1=(e,t,n)=>{let r=e.key||t,i=(0,M.cloneElement)(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function a(){return(0,M.createElement)(M.Fragment,null,i)}return(0,M.createElement)(a,{key:r})},Y1=(e,t)=>e.map((e,n)=>J1(e,n,t)),X1=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:J1(e[r],r,t)})}),n},Z1=(e,t,n,r)=>e?Array.isArray(e)?Y1(e,t):k1(e)?X1(e,t):(C1(n,`TRANS_INVALID_COMPONENTS`,`<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null,Q1=e=>!k1(e)||Array.isArray(e)?!1:Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function $1({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:l,i18n:u,t:d,shouldUnescape:f,...p}){let m=u||z1();if(!m)return C1(m,`NO_I18NEXT_INSTANCE`,`Trans: You need to pass in an i18next instance using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`,{i18nKey:r}),e;let h=d||m.t.bind(m)||(e=>e),g={...I1(),...m.options?.react},_=l||h.ns||m.options?.defaultNS;_=O1(_)?[_]:_||[`translation`];let{transDefaultProps:v}=g,y=v?.tOptions?{...v.tOptions,...a}:a,b=f??v?.shouldUnescape,x=v?.values?{...v.values,...o}:o,S=v?.components?{...v.components,...c}:c,C=K1(e,g,m,r),w=s||y?.defaultValue||C||g.transEmptyNodeValue||(typeof r==`function`?R$(r):r),{hashTransKey:T}=g,E=r||(T?T(C||w):C||w);o=m.options?.interpolation?.defaultVariables?x&&Object.keys(x).length>0?{...x,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables}:x;let D=G1(e);D&&typeof D.count==`number`&&t===void 0&&(t=D.count);let O=o||t!==void 0&&!m.options?.interpolation?.alwaysFormat||!e?y.interpolation:{interpolation:{...y.interpolation,prefix:`#$?`,suffix:`?$#`}},ee={...y,context:i||y.context,count:t,...o,...O,defaultValue:w,ns:_},te=E?h(E,ee):w;te===E&&w&&(te=w);let ne=Z1(S,te,m,r),k=ne||e,A=null;Q1(ne)&&(A=ne,k=e);let re=q1(k,A,te,m,g,ee,b),ie=n??g.defaultTransParent;return ie?(0,M.createElement)(ie,p,re):re}var e0={type:`3rdParty`,init(e){F1(e.options.react),R1(e)}},t0=(0,M.createContext)(),n0=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function r0({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:l,i18n:u,t:d,shouldUnescape:f,...p}){let{i18n:m,defaultNS:h}=(0,M.useContext)(t0)||{},g=u||m||z1(),_=d||g?.t.bind(g);return $1({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a,values:o,defaults:s,components:c,ns:l||_?.ns||h||g?.options?.defaultNS,i18n:g,t:d,shouldUnescape:f,...p})}var i0=i((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),a0=i(((e,t)=>{t.exports=i0()})),o0=a0(),s0={t:(e,t)=>{if(O1(t))return t;if(k1(t)&&O1(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},c0=()=>()=>{},l0=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,M.useContext)(t0)||{},a=n||r||z1();a&&!a.reportNamespaces&&(a.reportNamespaces=new n0),a||C1(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,M.useMemo)(()=>({...I1(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=O1(l)?[l]:l||[`translation`],d=(0,M.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,M.useRef)(0),p=(0,M.useCallback)(e=>{if(!a)return c0;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,M.useRef)(),h=(0,M.useCallback)(()=>{if(!a)return s0;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>D1(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,M.useState)(0),{t:v,ready:y}=(0,o0.useSyncExternalStore)(p,h,h);(0,M.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?E1(a,t.lng,d,e):T1(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,M.useRef)(null),S=(0,M.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,M.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(C1(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y){let e=!1;try{e=!1}catch{}throw e&&C1(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?E1(a,t.lng,d,n):T1(a,d,n)})}return w},u0=[`__proto__`,`constructor`,`prototype`];function d0(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());if(u0.indexOf(o)>-1)return{};!e[o]&&n&&(e[o]=new n),e=e[o]}if(i())return{};var s=r(a.shift());return u0.indexOf(s)>-1?{}:{obj:e,k:s}}function f0(e,t,n){var r=d0(e,t,Object),i=r.obj,a=r.k;i!==void 0&&(i[a]=n)}function p0(e,t){var n=d0(e,t),r=n.obj,i=n.k;if(r)return r[i]}var m0=[],h0=m0.forEach,g0=m0.slice;function _0(e){return h0.call(g0.call(arguments,1),function(t){if(t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];u0.indexOf(i)>-1||e[i]===void 0&&(e[i]=t[i])}}),e}function v0(e,t){let n=t&&t.cache?t.cache:O0,r=t&&t.serializer?t.serializer:E0;return(t&&t.strategy?t.strategy:C0)(e,{cache:n,serializer:r})}function y0(e){return e==null||typeof e==`number`||typeof e==`boolean`}function b0(e,t,n,r){let i=y0(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function x0(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function S0(e,t,n,r,i){return n.bind(t,e,r,i)}function C0(e,t){let n=e.length===1?b0:x0;return S0(e,this,n,t.cache.create(),t.serializer)}function w0(e,t){return S0(e,this,x0,t.cache.create(),t.serializer)}function T0(e,t){return S0(e,this,b0,t.cache.create(),t.serializer)}var E0=function(){return JSON.stringify(arguments)},D0=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},O0={create:function(){return new D0}},k0={variadic:w0,monadic:T0},A0=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function j0(e){let t={};return e.replace(A0,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var M0=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function N0(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(M0).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function P0(e){return e.replace(/^(.*?)-/,``)}var F0=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,I0=/^(@+)?(\+|#+)?[rs]?$/g,L0=/(\*)(0+)|(#+)(0+)|(0+)/g,R0=/^(0+)$/;function z0(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(I0,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function B0(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function V0(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!R0.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function H0(e){return B0(e)||{}}function U0(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=P0(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...H0(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...H0(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(L0,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(R0.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(F0.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(F0,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...z0(e)});continue}if(I0.test(n.stem)){t={...t,...z0(n.stem)};continue}let e=B0(n.stem);e&&(t={...t,...e});let r=V0(n.stem);r&&(t={...t,...r})}return t}var W0=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function G0(e){return e.type===0}function K0(e){return e.type===1}function q0(e){return e.type===2}function J0(e){return e.type===3}function Y0(e){return e.type===4}function X0(e){return e.type===5}function Z0(e){return e.type===6}function Q0(e){return e.type===7}function $0(e){return e.type===8}function e2(e){return!!(e&&typeof e==`object`&&e.type===0)}function t2(e){return!!(e&&typeof e==`object`&&e.type===1)}var n2=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,r2={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function i2(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=a2(t);for((c==`H`||c==`k`)&&(s=0);s-- >0;)n+=`a`;for(;o-- >0;)n=c+n}else i===`J`?n+=`H`:n+=i}return n}function a2(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(r2[r||``]||r2[n||``]||r2[`${n}-001`]||r2[`001`])[0]}var o2=RegExp(`^${n2.source}*`),s2=RegExp(`${n2.source}*$`);function c2(e,t){return{start:e,end:t}}var l2=!!Object.fromEntries,u2=!!String.prototype.trimStart,d2=!!String.prototype.trimEnd,f2=l2?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},p2=u2?function(e){return e.trimStart()}:function(e){return e.replace(o2,``)},m2=d2?function(e){return e.trimEnd()}:function(e){return e.replace(s2,``)},h2=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function g2(e,t){return h2.lastIndex=t,h2.exec(e)[1]??``}function _2(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var v2=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=_2(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:c2(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:c2(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,c2(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&y2(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:c2(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!y2(this.char()))return this.error(23,c2(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:c2(n,this.clonePosition())},err:null}:this.error(23,c2(o,this.clonePosition()))):this.error(26,c2(e,this.clonePosition()))}else return this.error(27,c2(n,this.clonePosition()))}else return this.error(23,c2(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&x2(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=c2(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!b2(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,c2(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,c2(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,c2(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,c2(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:c2(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,c2(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,c2(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=g2(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:c2(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,c2(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=m2(n.val);if(r.length===0)return this.error(6,c2(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:c2(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=c2(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=p2(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}else{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=i2(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?j0(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,c2(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,c2(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=c2(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:f2(c.val),location:u},err:null}:{val:{type:6,value:n,options:f2(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,c2(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,c2(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,c2(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=N0(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?U0(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=c2(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,c2(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:c2(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,c2(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,c2(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=c2(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&S2(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function y2(e){return e>=97&&e<=122||e>=65&&e<=90}function b2(e){return y2(e)||e===47}function x2(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function S2(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function C2(e){e.forEach(e=>{if(delete e.location,X0(e)||Z0(e))for(let t in e.options)delete e.options[t].location,C2(e.options[t].value);else q0(e)&&e2(e.style)||(J0(e)||Y0(e))&&t2(e.style)?delete e.style.location:$0(e)&&C2(e.children)})}function w2(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new v2(e,t).parse();if(n.err){let e=SyntaxError(W0[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||C2(n.val),n.val}var T2=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},E2=class extends T2{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},D2=class extends T2{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},O2=class extends T2{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function k2(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function A2(e){return typeof e==`function`}function j2(e,t,n,r,i,a,o){if(e.length===1&&G0(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(G0(c)){s.push({type:0,value:c.value});continue}if(Q0(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new O2(e,o);let l=i[e];if(K0(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(J0(c)){let e=typeof c.style==`string`?r.date[c.style]:t2(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(Y0(c)){let e=typeof c.style==`string`?r.time[c.style]:t2(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(q0(c)){let e=typeof c.style==`string`?r.number[c.style]:e2(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if($0(c)){let{children:e,value:l}=c,u=i[l];if(!A2(u))throw new D2(l,`function`,o);let d=u(j2(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(X0(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new E2(c.value,l,Object.keys(c.options),o);s.push(...j2(a.value,t,n,r,i));continue}if(Z0(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new T2(`Intl.PluralRules is not available in this environment.
118
+ Try polyfilling it using "@formatjs/intl-pluralrules"
119
+ `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new E2(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...j2(a.value,t,n,r,i,u-(c.offset||0)));continue}}return k2(s)}function M2(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function N2(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=M2(e[r],t[r]),n),{...e}):e}function P2(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function F2(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:v0((...e)=>new Intl.NumberFormat(...e),{cache:P2(e.number),strategy:k0.variadic}),getDateTimeFormat:v0((...e)=>new Intl.DateTimeFormat(...e),{cache:P2(e.dateTime),strategy:k0.variadic}),getPluralRules:v0((...e)=>new Intl.PluralRules(...e),{cache:P2(e.pluralRules),strategy:k0.variadic})}}var I2=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>j2(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=N2(e.formats,r),this.formatters=i&&i.formatters||F2(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=w2}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function L2(e,t){return H2(e)||V2(e,t)||z2(e,t)||R2()}function R2(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
120
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z2(e,t){if(e){if(typeof e==`string`)return B2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B2(e,t)}}function B2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V2(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function H2(e){if(Array.isArray(e))return e}function U2(e){"@babel/helpers - typeof";return U2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},U2(e)}function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?W2(Object(n),!0).forEach(function(t){K2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q2(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function J2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y2(e,t,n){return t&&J2(e.prototype,t),n&&J2(e,n),e}function X2(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var Z2=function(){function e(t){q2(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return Y2(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=_0(r,t,this.options||{},X2()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=I2,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?G2(G2({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=p0(this.mem,s));try{return c||(c=new I2(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&f0(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||U2(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=L2(r[n],2),a=i[0],o=i[1];typeof o==`string`?t[a]=o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):t[a]=o}return t}}]),e}();Z2.type=`i18nFormat`;var Q2;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(Q2||={});var $2=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},hse=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,gse=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?hse(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new $2(`"${e}" plugin is not implemented on ${c}`,Q2.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}else throw new $2(`"${e}.${t}()" is not implemented on ${c}`,Q2.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,`name`,{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{g({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=$2,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},e4=(e=>e.Capacitor=gse(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),t4=e4.registerPlugin,n4=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new e4.Exception(e,Q2.Unimplemented)}unavailable(e=`not available`){return new e4.Exception(e,Q2.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},r4=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),i4=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),_se=class extends n4{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=i4(n).trim(),r=i4(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=r4(e.key),n=r4(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};t4(`CapacitorCookies`,{web:()=>new _se});var vse=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),yse=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},bse=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,a4=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=yse(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else (r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},xse=class extends n4{async request(e){let t=a4(e,e.webFetchExtra),n=bse(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await vse(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};t4(`CapacitorHttp`,{web:()=>new xse});var Sse;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(Sse||={});var Cse;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(Cse||={});var wse=class extends n4{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};t4(`SystemBars`,{web:()=>new wse});function o4(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var s4=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return s4(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return s4(t)(e)}}}},Tse=(e,t)=>(n,r,i)=>{let a={storage:o4(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return s4(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p};function Ese(e){let t={};if(typeof e.type==`string`&&(t.type=e.type),typeof e.level==`string`&&(t.level=Ha(e.level)),typeof e.event_id==`string`&&(t.event_id=e.event_id),typeof e.category==`string`&&(t.category=e.category),typeof e.message==`string`&&(t.message=e.message),typeof e.data==`object`&&e.data!==null&&(t.data=e.data),typeof e.timestamp==`string`){let n=Date.parse(e.timestamp)/1e3;isNaN(n)||(t.timestamp=n)}return t}var c4=u;function Dse(){return c4.WEBVIEW_SERVER_URL}function Ose(){return c4.CAP_SPOTLIGHT_URL}function kse(e){return{attachStacktrace:e.attachStacktrace,attachThreads:e.attachThreads,debug:e.debug,dist:e.dist,dsn:e.dsn,enabled:e.enabled,enableNdkScopeSync:e.enableNdkScopeSync,enableWatchdogTerminationTracking:e.enableWatchdogTerminationTracking,environment:e.environment,maxBreadcrumbs:e.maxBreadcrumbs,release:e.release,sampleRate:e.sampleRate,sendClientReports:e.sendClientReports,sendDefaultPii:e.sendDefaultPii,sessionTrackingIntervalMillis:e.sessionTrackingIntervalMillis,tracesSampleRate:e.tracesSampleRate,enableCaptureFailedRequests:e.enableCaptureFailedRequests,...e.strictTraceContinuation!==void 0&&{strictTraceContinuation:e.strictTraceContinuation},...e.orgId!==void 0&&{orgId:e.orgId},...Ase(e),...jse(e),...Mse()}}function Ase(e){return e4.getPlatform()===`ios`?{enableAppHangTracking:e.enableAppHangTracking,appHangTimeoutInterval:e.appHangTimeoutInterval}:{}}function jse(e){if(e.enableLogs&&e4.getPlatform()===`android`)return{enableLogs:!0}}function Mse(){let e=Ose();if(e)return{sidecarUrl:e}}var l4=t4(`SentryCapacitor`),Nse=`value`;function u4(e){let t=Ut()?.getOptions(),n=rr(e,t?.normalizeDepth,t?.normalizeMaxBreadth);return typeof n!=`object`||!n?{[Nse]:n}:n}function d4(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}var f4=[],Pse=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(let e=0;e<64;++e)f4[e]=Pse[e];function Fse(e){return f4[e>>18&63]+f4[e>>12&63]+f4[e>>6&63]+f4[e&63]}function Ise(e,t,n){let r,i=[];for(let a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(Fse(r));return i.join(``)}function Lse(e){let t,n=e.length,r=n%3,i=[],a=16383;for(let t=0,o=n-r;t<o;t+=a)i.push(Ise(e,t,t+a>o?o:t+a));return r===1?(t=e[n-1],i.push(`${f4[t>>2]+f4[t<<4&63]}==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(`${f4[t>>10]+f4[t>>4&63]+f4[t<<2&63]}=`)),i.join(``)}var p4={async sendEnvelope(e){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;let[t,n]=e,r=d4(JSON.stringify(t));r.push(10);for(let e of n){let[t,n]=this._processItem(e),i,a=[];typeof n==`string`?(i=`text/plain`,a=d4(n)):n instanceof Uint8Array?(i=typeof t.content_type==`string`?t.content_type:`application/octet-stream`,a=[...n]):(i=typeof t.content_type==`string`?t.content_type:`application/json`,a=d4(JSON.stringify(n))),t.content_type=i,t.length=a.length;let o=JSON.stringify(t);r.push(...d4(o)),r.push(10),r=r.concat(a),r.push(10)}let i=200;return await l4.captureEnvelope({envelope:Lse(r)}).then(e=>e,e=>{D.error(`Failed to capture Envelope: `,e),i=500}),{statusCode:i}},async initNativeSdk(e){if(!e.dsn)return D.warn(`Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized.`),this.enableNative=!1,!1;if(!e.enableNative)return e.enableNativeNagger&&D.warn(`Note: Native Sentry SDK is disabled.`),this.enableNative=!1,!1;if(!this.isNativeClientAvailable())throw this._NativeClientError;let t=kse(e);return l4.initNativeSdk({options:t})},async fetchNativeDeviceContexts(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.fetchNativeDeviceContexts()},async fetchNativeLogAttributes(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.fetchNativeLogAttributes()},async fetchNativeRelease(){if(!this.enableNative)throw this._DisabledNativeError;return l4.fetchNativeRelease()},async fetchNativeSdkInfo(){if(!this.enableNative)throw this._DisabledNativeError;return l4.fetchNativeSdkInfo()},crash(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.crash()}},setUser(e){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let t=null,n=null;if(e){let{id:r,ip_address:i,email:a,username:o,...s}=e;t=this._serializeObject({email:a,id:r,ip_address:i,username:o},!0),n=this._serializeObject(s,!0)}l4.setUser({defaultUserKeys:t,otherUserKeys:n})},setTag(e,t){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let n=typeof t==`string`?t:JSON.stringify(t);l4.setTag({key:e,value:n})},setExtra(e,t){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let n=typeof t==`string`?t:JSON.stringify(t);l4.setExtra({key:e,value:n})},addBreadcrumb(e){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.addBreadcrumb({...e,level:e.level?this._processLevel(e.level):void 0,data:e.data?u4(e.data):void 0})}},clearBreadcrumbs(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.clearBreadcrumbs()}},closeNativeSdk(){if(!this.enableNative)return D.log(this._DisabledNativeError),Promise.resolve();if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.closeNativeSdk().then(()=>{this.enableNative=!1})},setContext(e,t){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;this.platform===`android`?this.setExtra(e,t):l4.setContext({key:e,value:t===null?null:this._serializeObject(t)})}},pauseAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?l4.pauseAppHangTracking():D.warn(`PauseAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},resumeAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?l4.resumeAppHangTracking():D.warn(`ResumeAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},_processItem(e){if(p4.platform===`android`){let[t,n]=e;if(t.type==`event`||t.type==`transaction`){let e=this._processLevels(n);return`message`in e&&(e.message={message:e.message}),[t,e]}}return e},_serializeObject(e,t){let n={};return Object.keys(e).forEach(r=>{let i=e[r];(t!==!0||i!==void 0)&&(n[r]=typeof i==`string`?i:JSON.stringify(i))}),n},_processLevels(e){return{...e,level:e.level?this._processLevel(e.level):void 0,breadcrumbs:e.breadcrumbs?.map(e=>({...e,level:e.level?this._processLevel(e.level):void 0}))}},_processLevel(e){return e==`log`?`debug`:e==`critical`?`fatal`:e},isModuleLoaded(){return!!l4},isNativeClientAvailable(){return this.isModuleLoaded()&&e4.isPluginAvailable(`SentryCapacitor`)},_DisabledNativeError:Error(`Native is disabled`),_NativeClientError:Error(`Native Client is not available, can't start on native.`),_IosOnlyMessage:`is only supported on iOS.`,enableNative:!0,platform:e4.getPlatform()},Rse=`DeviceContext`,zse=()=>({name:Rse,processEvent:Bse});async function Bse(e,t,n){try{let t=await p4.fetchNativeDeviceContexts();if(e.contexts={...t.contexts,...e.contexts},`user`in t){let n=t.user;e.user||={...n}}let r=Array.isArray(t.breadcrumbs)?t.breadcrumbs.map(Ese):void 0;if(r){let t=n?.getOptions().maxBreadcrumbs??100;e.breadcrumbs=r.concat(e.breadcrumbs||[]).sort((e,t)=>(e.timestamp??0)-(t.timestamp??0)).slice(-t)}}catch(e){D.log(`Failed to get device context from native: ${e}`)}return e}var Vse=`EventOrigin`,Hse=()=>({name:Vse,preprocessEvent:Use});async function Use(e){return e.tags=e.tags??{},e.tags[`event.origin`]=`javascript`,e.tags[`event.environment`]=`javascript`,e}var Wse=`LogEnricher`,Gse=()=>({name:Wse,setup(e){Kse().then(()=>{e.on(`beforeCaptureLog`,e=>{qse(e)})},e=>{D.log(e)})}}),m4=void 0;function h4(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}async function Kse(){try{let e=await p4.fetchNativeLogAttributes();m4={...e?.contexts?.device&&{brand:e.contexts.device?.brand,model:e.contexts.device?.model,family:e.contexts.device?.family},...e?.contexts?.os&&{os:e.contexts.os.name,version:e.contexts.os.version},...e?.release&&{release:e.release}}}catch(e){return Promise.reject(`[LOGS]: Failed to prepare attributes from Native Layer: ${e}`)}return Promise.resolve()}function qse(e){if(m4===void 0)return;let t=e.attributes??{};h4(t,`device.brand`,m4.brand),h4(t,`device.model`,m4.model),h4(t,`device.family`,m4.family),h4(t,`os.name`,m4.os),h4(t,`os.version`,m4.version),h4(t,`sentry.release`,m4.release),e.attributes=t}var Jse=`Release`,Yse=()=>({name:Jse,processEvent:Xse});async function Xse(e,t,n){let r=n.getOptions();if(typeof r?.release==`string`&&(e.release=r.release),typeof r?.dist==`string`&&(e.dist=r.dist),e.release&&e.dist)return e;try{let t=await p4.fetchNativeRelease();t&&(e.release||=`${t.id}@${t.version}+${t.build}`,e.dist||=`${t.build}`)}catch{}return e}var Zse=()=>ao({iteratee:Qse});function Qse(e){if(e.filename){let t=/^https?:\/\//.test(e.filename),n=Dse();n?e.filename=e.filename.replace(n,``):e.filename=e.filename.replace(/^https?:\/\/localhost(:\d+)?/,``).replace(/^capacitor:\/\/localhost(:\d+)?/,``),e.filename=e.filename.replace(/^ng:\/\//,``),e.filename===`[native code]`||e.filename===`native`?e.in_app=!1:(t||(e.filename=`app://${e.filename.startsWith(`/`)?e.filename:`/${e.filename}`}`),e.in_app=!0)}return e}var g4=`4.1.0`,$se=`SdkInfo`,_4=null,v4=void 0,ece=()=>({name:$se,processEvent:tce,setup(e){v4=e.getOptions().sendDefaultPii,v4&&e.on(`beforeSendEvent`,(e=>{e.user?.ip_address===`{{auto}}`&&delete e.user.ip_address}))}});async function tce(e){if(p4.platform===`ios`&&_4===null)try{_4=await p4.fetchNativeSdkInfo()}catch{D.warn(`[SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation.`)}e.platform=e.platform||`javascript`;let t=e.sdk||{};return t.packages=[...t.packages||[],..._4&&[_4]||[],{name:`npm:@sentry/capacitor`,version:g4}],t.settings={infer_ip:v4?`auto`:`never`,...t.settings},e.sdk=t,e}var nce=`SentryNativeLog`,y4;async function rce(e,t,n){let r=await l4.addListener(nce,e);n()?await r.remove():(t(r),D.log(`Native log listener set up successfully.`))}function ice(e){if(y4)return;let t=e4.getPlatform();if(t!==`ios`&&t!==`android`){D.log(`Native log listener is only supported on iOS and Android.`);return}let n,r=!1;y4=()=>{r=!0,y4=void 0,n?.remove()},rce(e,e=>{n=e},()=>r).catch(e=>{D.warn(`Failed to set up native log listener:`,e),y4=void 0})}function ace(){y4?.()}function oce(e){let t=`[Native] [${e.component}] ${e.message}`;switch(e.level.toLowerCase()){case`fatal`:case`error`:D.error(t);break;case`warning`:D.warn(t);break;default:D.log(t);break}}function b4(e,t,n){He(e,t,n)}function x4(e,t){let n=Ge(e[t]);n&&(e[t]=n)}var S4=new WeakMap;function C4(e){S4.has(e)||(S4.set(e,!0),b4(e,`setUser`,t=>n=>(p4.setUser(n),t.call(e,n))),b4(e,`setTag`,t=>(n,r)=>(p4.setTag(n,r),t.call(e,n,r))),b4(e,`setTags`,t=>n=>(Object.keys(n).forEach(e=>{p4.setTag(e,n[e])}),t.call(e,n))),b4(e,`setExtras`,t=>n=>(Object.keys(n).forEach(e=>{p4.setExtra(e,n[e])}),t.call(e,n))),b4(e,`setExtra`,t=>(n,r)=>(p4.setExtra(n,r),t.call(e,n,r))),b4(e,`addBreadcrumb`,t=>(n,r)=>{let i={...n,level:n.level||`info`,data:n.data?u4(n.data):void 0};t.call(e,i,r);let a=e.getLastBreadcrumb();return a&&p4.addBreadcrumb(a),e}),b4(e,`clearBreadcrumbs`,t=>()=>(p4.clearBreadcrumbs(),t.call(e))),b4(e,`setContext`,t=>(n,r)=>(p4.setContext(n,r),t.call(e,n,r))))}function w4(e){S4.has(e)&&(S4.delete(e),x4(e,`clearBreadcrumbs`),x4(e,`setContext`),x4(e,`setExtra`),x4(e,`setExtras`),x4(e,`setTags`),x4(e,`setTag`),x4(e,`setUser`),x4(e,`addBreadcrumb`))}function sce(e,t){e.enableNative&&(e.transport=t,w4(Vt()),w4(Bt()))}function cce(){var e;let t=Ut();if(t){let n=t.getOptions();if(!n._metadata?.sdk)return;let r=n._metadata.sdk;r.name=`${r.name}.capacitor`,r.version=g4,(e=r.packages)==null||e.push({name:`sentry.javascript.capacitor`,version:`4.1.0`}),n._metadata.sdk=r}}function lce(e,t,n,r){p4.initNativeSdk(t).then(()=>{t.debug&&ice(t.onNativeLog??oce),n(e)}).catch(t=>{console.error(`Native Sentry SDK failed to initialize. Using Sentry JavaScript SDK without native integraiton.
121
+ `,{error:t}),sce(e,r),n(e)}).finally(()=>{cce()})}function uce(e){let t=[];return t.push(Zse()),t.push(Yse()),t.push(Hse()),t.push(ece()),e.enableNative?(t.push(zse()),t.push(Gse())):t.push(Ss()),t.push(Da(),Ea(),ms(),ps(),vs(),za(),Wa()),e.enableAutoSessionTracking&&!e.enableNative&&t.push(gs()),t}var dce=()=>{let e=f(),t=e.__SENTRY__=e.__SENTRY__||{};(t[d]=t[`10.52.0`]||{}).encodePolyfill=fce},fce=e=>new Uint8Array(d4(e)),pce=class{constructor(e={}){this._buffer=zi(e.bufferSize||30)}send(e){return this._buffer.add(()=>p4.sendEnvelope(e))}flush(e){return this._buffer.drain(e)}};function mce(e={}){return new pce(e)}function hce(e,t={}){return typeof e==`function`?(...n)=>{try{return e(...n)}catch(r){return D.error(t.loggerMessage?t.loggerMessage:`The ${e.name} callback threw an error`,r),n[0]}}:e}var gce=()=>typeof TextEncoder<`u`;function _ce(e,t=As){let n={enableAutoSessionTracking:!0,enableWatchdogTerminationTracking:!0,enableCaptureFailedRequests:!1,...e};n.siblingOptions&&delete n.siblingOptions,n.enabled===!1||p4.platform===`web`?(n.enableNative=!1,n.enableNativeNagger=!1):(n.enableNativeNagger??=!0,n.enableNative??=!0),n.enableNative&&!e.transport&&p4.platform!==`web`&&(n.transport=e.transport||mce,n.transportOptions={...e.transportOptions??{},bufferSize:30}),gce()||dce(),n.enableNative&&(C4(Vt()),C4(Bt()));let r={...e.siblingOptions?.vueOptions,...e.siblingOptions?.nuxtClientOptions,...n,integrations:hce(e.integrations,{loggerMessage:`The integrations threw an error`}),enableMetrics:n._experiments?.enableMetrics,beforeSendMetric:n._experiments?.beforeSendMetric};r.defaultIntegrations=e.defaultIntegrations===void 0?uce(n):e.defaultIntegrations,lce(r,{...n,enableAutoSessionTracking:p4.platform!==`web`&&n.enableAutoSessionTracking},t,e.transport)}async function vce(){ace();try{let e=Ut();e&&(await e.close(),await p4.closeNativeSdk())}catch{D.error(`Failed to close the SDK`)}}var T4;(function(e){e[e.Sunday=1]=`Sunday`,e[e.Monday=2]=`Monday`,e[e.Tuesday=3]=`Tuesday`,e[e.Wednesday=4]=`Wednesday`,e[e.Thursday=5]=`Thursday`,e[e.Friday=6]=`Friday`,e[e.Saturday=7]=`Saturday`})(T4||={});var yce=t4(`LocalNotifications`,{web:()=>s(()=>import(`./web-BlKAJber.js`).then(e=>new e.LocalNotificationsWeb),[])}),bce=t4(`Network`,{web:()=>s(()=>import(`./web-BmoVVmPZ.js`).then(e=>new e.NetworkWeb),[])}),E4=(0,M.createContext)({});function D4(e){let t=(0,M.useRef)(null);return t.current===null&&(t.current=e()),t.current}var O4=typeof window<`u`?M.useLayoutEffect:M.useEffect,k4=(0,M.createContext)(null);function A4(e,t){e.indexOf(t)===-1&&e.push(t)}function j4(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M4=(e,t,n)=>n>t?t:n<e?e:n,N4={},P4=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F4=e=>typeof e==`object`&&!!e,I4=e=>/^0[^.\s]+$/u.test(e);function L4(e){let t;return()=>(t===void 0&&(t=e()),t)}var R4=e=>e,z4=(...e)=>e.reduce((e,t)=>n=>t(e(n))),B4=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},V4=class{constructor(){this.subscriptions=[]}add(e){return A4(this.subscriptions,e),()=>j4(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},H4=e=>e*1e3,U4=e=>e/1e3,W4=(e,t)=>t?1e3/t*e:0,xce=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},G4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sce=1e-7,Cce=12;function wce(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=G4(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Sce&&++s<Cce);return o}function K4(e,t,n,r){if(e===t&&n===r)return R4;let i=t=>wce(t,0,1,e,n);return e=>e===0||e===1?e:G4(i(e),t,r)}var q4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J4=e=>t=>1-e(1-t),Y4=K4(.33,1.53,.69,.99),X4=J4(Y4),Z4=q4(X4),Q4=e=>e>=1?1:(e*=2)<1?.5*X4(e):.5*(2-2**(-10*(e-1))),$4=e=>1-Math.sin(Math.acos(e)),e3=J4($4),t3=q4($4),Tce=K4(.42,0,1,1),Ece=K4(0,0,.58,1),n3=K4(.42,0,.58,1),r3=e=>Array.isArray(e)&&typeof e[0]!=`number`;function i3(e,t){return r3(e)?e[xce(0,e.length,t)]:e}var a3=e=>Array.isArray(e)&&typeof e[0]==`number`,o3={linear:R4,easeIn:Tce,easeInOut:n3,easeOut:Ece,circIn:$4,circInOut:t3,circOut:e3,backIn:X4,backInOut:Z4,backOut:Y4,anticipate:Q4},Dce=e=>typeof e==`string`,s3=e=>{if(a3(e)){e.length;let[t,n,r,i]=e;return K4(t,n,r,i)}else if(Dce(e))return o3[e],`${e}`,o3[e];return e},c3=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Oce(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var kce=40;function l3(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=c3.reduce((e,t)=>(e[t]=Oce(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N4.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,kce),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:c3.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<c3.length;t++)o[c3[t]].cancel(e)},state:i,steps:o}}var{schedule:u3,cancel:d3,state:f3,steps:p3}=l3(typeof requestAnimationFrame<`u`?requestAnimationFrame:R4,!0),m3;function Ace(){m3=void 0}var h3={now:()=>(m3===void 0&&h3.set(f3.isProcessing||N4.useManualTiming?f3.timestamp:performance.now()),m3),set:e=>{m3=e,queueMicrotask(Ace)}},g3=e=>t=>typeof t==`string`&&t.startsWith(e),_3=g3(`--`),jce=g3(`var(--`),v3=e=>jce(e)?Mce.test(e.split(`/*`)[0].trim()):!1,Mce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function y3(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var b3={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},x3={...b3,transform:e=>M4(0,1,e)},S3={...b3,default:1},C3=e=>Math.round(e*1e5)/1e5,w3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nce(e){return e==null}var Pce=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T3=(e,t)=>n=>!!(typeof n==`string`&&Pce.test(n)&&n.startsWith(e)||t&&!Nce(n)&&Object.prototype.hasOwnProperty.call(n,t)),E3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(w3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fce=e=>M4(0,255,e),D3={...b3,transform:e=>Math.round(Fce(e))},O3={test:T3(`rgb`,`red`),parse:E3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+D3.transform(e)+`, `+D3.transform(t)+`, `+D3.transform(n)+`, `+C3(x3.transform(r))+`)`};function Ice(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var k3={test:T3(`#`),parse:Ice,transform:O3.transform},A3=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j3=A3(`deg`),M3=A3(`%`),$=A3(`px`),Lce=A3(`vh`),Rce=A3(`vw`),N3={...M3,parse:e=>M3.parse(e)/100,transform:e=>M3.transform(e*100)},P3={test:T3(`hsl`,`hue`),parse:E3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M3.transform(C3(t))+`, `+M3.transform(C3(n))+`, `+C3(x3.transform(r))+`)`},F3={test:e=>O3.test(e)||k3.test(e)||P3.test(e),parse:e=>O3.test(e)?O3.parse(e):P3.test(e)?P3.parse(e):k3.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?O3.transform(e):P3.transform(e),getAnimatableNone:e=>{let t=F3.parse(e);return t.alpha=0,F3.transform(t)}},zce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bce(e){return isNaN(e)&&typeof e==`string`&&(e.match(w3)?.length||0)+(e.match(zce)?.length||0)>0}var I3=`number`,L3=`color`,Vce=`var`,Hce=`var(`,R3="${}",Uce=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function z3(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Uce,e=>(F3.test(e)?(r.color.push(a),i.push(L3),n.push(F3.parse(e))):e.startsWith(Hce)?(r.var.push(a),i.push(Vce),n.push(e)):(r.number.push(a),i.push(I3),n.push(parseFloat(e))),++a,R3)).split(R3),indexes:r,types:i}}function Wce(e){return z3(e).values}function B3({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===I3?i+=C3(r[a]):e===L3?i+=F3.transform(r[a]):i+=r[a]}return i}}function Gce(e){return B3(z3(e))}var Kce=e=>typeof e==`number`?0:F3.test(e)?F3.getAnimatableNone(e):e,qce=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Kce(e);function Jce(e){let t=z3(e);return B3(t)(t.values.map((e,n)=>qce(e,t.split[n])))}var V3={test:Bce,parse:Wce,createTransformer:Gce,getAnimatableNone:Jce};function H3(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yce({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=H3(s,r,e+1/3),a=H3(s,r,e),o=H3(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function U3(e,t){return n=>n>0?t:e}var W3=(e,t,n)=>e+(t-e)*n,G3=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xce=[k3,O3,P3],Zce=e=>Xce.find(t=>t.test(e));function K3(e){let t=Zce(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===P3&&(n=Yce(n)),n}var q3=(e,t)=>{let n=K3(e),r=K3(t);if(!n||!r)return U3(e,t);let i={...n};return e=>(i.red=G3(n.red,r.red,e),i.green=G3(n.green,r.green,e),i.blue=G3(n.blue,r.blue,e),i.alpha=W3(n.alpha,r.alpha,e),O3.transform(i))},J3=new Set([`none`,`hidden`]);function Qce(e,t){return J3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $ce(e,t){return n=>W3(e,t,n)}function Y3(e){return typeof e==`number`?$ce:typeof e==`string`?v3(e)?U3:F3.test(e)?q3:nle:Array.isArray(e)?X3:typeof e==`object`?F3.test(e)?q3:ele:U3}function X3(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Y3(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ele(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Y3(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function tle(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var nle=(e,t)=>{let n=V3.createTransformer(t),r=z3(e),i=z3(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?J3.has(e)&&!i.values.length||J3.has(t)&&!r.values.length?Qce(e,t):z4(X3(tle(r,i),i.values),n):(`${e}${t}`,U3(e,t))};function Z3(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?W3(e,t,n):Y3(e)(e,t)}var rle=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u3.update(t,e),stop:()=>d3(t),now:()=>f3.isProcessing?f3.timestamp:h3.now()}},Q3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},$3=2e4;function e6(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function t6(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(e6(r),$3);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:U4(i)}}var n6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function r6(e,t){return e*Math.sqrt(1-t*t)}var ile=12;function ale(e,t,n){let r=n;for(let n=1;n<ile;n++)r-=e(r)/t(r);return r}var i6=.001;function ole({duration:e=n6.duration,bounce:t=n6.bounce,velocity:n=n6.velocity,mass:r=n6.mass}){let i,a;n6.maxDuration;let o=1-t;o=M4(n6.minDamping,n6.maxDamping,o),e=M4(n6.minDuration,n6.maxDuration,U4(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=r6(t,o),c=Math.exp(-i);return i6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=r6(t**2,o);return(-i(t)+i6>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-i6+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ale(i,a,s);if(e=H4(e),isNaN(c))return{stiffness:n6.stiffness,damping:n6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var sle=[`duration`,`bounce`],cle=[`stiffness`,`damping`,`mass`];function a6(e,t){return t.some(t=>e[t]!==void 0)}function lle(e){let t={velocity:n6.velocity,stiffness:n6.stiffness,damping:n6.damping,mass:n6.mass,isResolvedFromDuration:!1,...e};if(!a6(e,cle)&&a6(e,sle))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:n6.mass,stiffness:i,damping:a}}else{let n=ole({...e,velocity:0});t={...t,...n,mass:n6.mass},t.isResolvedFromDuration=!0}return t}function o6(e=n6.visualDuration,t=n6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=lle({...n,velocity:-U4(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=U4(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?n6.restSpeed.granular:n6.restSpeed.default,i||=v?n6.restDelta.granular:n6.restDelta.default;let y,b,x,S,C,w;if(h<1)x=r6(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>H4(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=H4(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=H4(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(e6(T),$3),t=Q3(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}o6.applyToOptions=e=>{let t=t6(e,100,o6);return e.ease=t.ease,e.duration=H4(t.duration),e.type=`keyframes`,e};var ule=5;function s6(e,t,n){let r=Math.max(t-ule,0);return W4(n-e(r),t-r)}function c6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=o6({keyframes:[f.value,m(f.value)],velocity:s6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function dle(e,t,n){let r=[],i=n||N4.mix||Z3,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=z4(Array.isArray(t)?t[n]||R4:t,a)),r.push(a)}return r}function l6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=dle(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=B4(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M4(e[0],e[a-1],t)):l}function u6(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=B4(0,t,r);e.push(W3(n,1,i))}}function d6(e){let t=[0];return u6(t,e.length-1),t}function fle(e,t){return e.map(e=>e*t)}function ple(e,t){return e.map(()=>t||n3).splice(0,e.length-1)}function f6({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=r3(r)?r.map(s3):s3(r),a={done:!1,value:t[0]},o=l6(fle(n&&n.length===t.length?n:d6(t),e),t,{ease:Array.isArray(i)?i:ple(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var mle=e=>e!==null;function p6(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(mle),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hle={decay:c6,inertia:c6,tween:f6,keyframes:f6,spring:o6};function m6(e){typeof e.type==`string`&&(e.type=hle[e.type])}var h6=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},gle=e=>e/100,g6=class extends h6{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==h3.now()&&this.tick(h3.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;m6(e);let{type:t=f6,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||f6;s!==f6&&typeof o[0]!=`number`&&(this.mixKeyframes=z4(gle,Z3(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=e6(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=M4(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==c6&&(b.value=p6(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return U4(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(this.currentTime)}set time(e){e=H4(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return s6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(h3.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=U4(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=rle,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(h3.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function _le(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var _6=e=>e*180/Math.PI,v6=e=>y6(_6(Math.atan2(e[1],e[0]))),vle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:v6,rotateZ:v6,skewX:e=>_6(Math.atan(e[1])),skewY:e=>_6(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},y6=e=>(e%=360,e<0&&(e+=360),e),b6=v6,x6=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),S6=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:x6,scaleY:S6,scale:e=>(x6(e)+S6(e))/2,rotateX:e=>y6(_6(Math.atan2(e[6],e[5]))),rotateY:e=>y6(_6(Math.atan2(-e[2],e[0]))),rotateZ:b6,rotate:b6,skewX:e=>_6(Math.atan(e[4])),skewY:e=>_6(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C6(e){return+!!e.includes(`scale`)}function w6(e,t){if(!e||e===`none`)return C6(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=yle,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vle,i=t}if(!i)return C6(t);let a=r[t],o=i[1].split(`,`).map(xle);return typeof a==`function`?a(o):o[a]}var ble=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return w6(n,t)};function xle(e){return parseFloat(e.trim())}var T6=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],E6=new Set([...T6,`pathRotation`]),D6=e=>e===b3||e===$,Sle=new Set([`x`,`y`,`z`]),Cle=T6.filter(e=>!Sle.has(e));function wle(e){let t=[];return Cle.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var O6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>w6(t,`x`),y:(e,{transform:t})=>w6(t,`y`)};O6.translateX=O6.x,O6.translateY=O6.y;var k6=new Set,A6=!1,j6=!1,M6=!1;function N6(){if(j6){let e=Array.from(k6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=wle(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}j6=!1,A6=!1,k6.forEach(e=>e.complete(M6)),k6.clear()}function P6(){k6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(j6=!0)})}function Tle(){M6=!0,P6(),N6(),M6=!1}var F6=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(k6.add(this),A6||(A6=!0,u3.read(P6),u3.resolveKeyframes(N6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}_le(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),k6.delete(this)}cancel(){this.state===`scheduled`&&(k6.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ele=e=>e.startsWith(`--`);function I6(e,t,n){Ele(t)?e.style.setProperty(t,n):e.style[t]=n}var Dle={};function L6(e,t){let n=L4(e);return()=>Dle[t]??n()}var Ole=L6(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),R6=L6(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),z6=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,B6={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:z6([0,.65,.55,1]),circOut:z6([.55,0,1,.45]),backIn:z6([.31,.01,.66,-.59]),backOut:z6([.33,1.53,.69,.99])};function V6(e,t){if(e)return typeof e==`function`?R6()?Q3(e,t):`ease-out`:a3(e)?z6(e):Array.isArray(e)?e.map(e=>V6(e,t)||B6.easeOut):B6[e]}function kle(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=V6(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function H6(e){return typeof e==`function`&&`applyToOptions`in e}function Ale({type:e,...t}){return H6(e)&&R6()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var U6=class extends h6{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ale(e);this.animation=kle(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=p6(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),I6(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return U4(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H4(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ole()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),R4):r(this)}},W6={anticipate:Q4,backInOut:Z4,circInOut:t3};function jle(e){return e in W6}function Mle(e){typeof e.ease==`string`&&jle(e.ease)&&(e.ease=W6[e.ease])}var G6=10,Nle=class extends U6{constructor(e){Mle(e),m6(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new g6({...a,autoplay:!1}),s=Math.max(G6,h3.now()-this.startTime),c=M4(0,G6,s-G6),l=o.sample(s).value,{name:u}=this.options;i&&u&&I6(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},K6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V3.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ple(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Fle(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=K6(i,t),s=K6(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Ple(e)||(n===`spring`||H6(n))&&r}function q6(e){e.duration=0,e.type=`keyframes`}var J6=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ile=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lle(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ile.test(e[t]))return!0;return!1}var Rle=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zle=L4(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ble(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zle()&&n&&(J6.has(n)||Rle.has(n)&&Lle(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vle=40,Hle=class extends h6{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=h3.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||F6;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=h3.now();let u=!0;Fle(e,i,a,o)||(u=!1,(N4.instantAnimations||!s)&&l?.(p6(e,n,t)),e[0]=e[e.length-1],q6(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vle?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ble(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Nle({...d,element:p})}catch{m=new g6(d)}else m=new g6(d);m.finished.then(()=>{this.notifyFinished()}).catch(R4),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Tle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Ule=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Y6(this.animations,`duration`)}get iterationDuration(){return Y6(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Y6(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Wle=class extends Ule{then(e,t){return this.finished.finally(e).then(()=>{})}};function X6(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Z6=30,Gle=e=>!isNaN(parseFloat(e)),Q6={current:void 0},Kle=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=h3.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=h3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gle(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new V4);let n=this.events[e].add(t);return e===`change`?()=>{n(),u3.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Q6.current&&Q6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=h3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Z6)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Z6);return W4(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function $6(e,t){return new Kle(e,t)}function e8(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function t8(e,t){let n=e?.[t]??e?.default??e;return n===e?n:e8(n,e)}var qle={type:`spring`,stiffness:500,damping:25,restSpeed:10},Jle=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yle={type:`keyframes`,duration:.8},Xle={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Zle=(e,{keyframes:t})=>t.length>2?Yle:E6.has(e)?e.startsWith(`scale`)?Jle(t[1]):qle:Xle,Qle=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function $le(e){for(let t in e)if(!Qle.has(t))return!0;return!1}var n8=(e,t,n,r={},i,a)=>o=>{let s=t8(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=H4(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$le(s)||Object.assign(u,Zle(e,u)),u.duration&&=H4(u.duration),u.repeatDelay&&=H4(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(q6(u),u.delay===0&&(d=!0)),(N4.instantAnimations||N4.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,q6(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=p6(u.keyframes,s);if(e!==void 0){u3.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new g6(u):new Hle(u)},eue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tue(e){let t=eue.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function r8(e,t,n=1){`${e}`;let[r,i]=tue(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return P4(e)?parseFloat(e):e}return v3(i)?r8(i,t,n+1):i}function i8(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a8(e,t,n,r){if(typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}return t}function o8(e,t,n){let r=e.getProps();return a8(r,t,n===void 0?r.custom:n,e)}var s8=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...T6]),c8=e=>Array.isArray(e);function nue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$6(n))}function rue(e){return c8(e)?e[e.length-1]||0:e}function l8(e,t){let{transitionEnd:n={},transition:r={},...i}=o8(e,t)||{};i={...i,...n};for(let t in i)nue(e,t,rue(i[t]))}var u8=e=>!!(e&&e.getVelocity);function iue(e){return!!(u8(e)&&e.add)}function d8(e,t){let n=e.getValue(`willChange`);if(iue(n))return n.add(t);if(!n&&N4.WillChange){let n=new N4.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function f8(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var p8=`data-`+f8(`framerAppearId`);function m8(e){return e.props[p8]}function aue({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function h8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?e8(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&aue(f,t))continue;let o={delay:n,...t8(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){u3.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=m8(e);if(n){let e=window.MotionHandoffAnimation(n,t,u3);e!==null&&(o.startTime=e,p=!0)}}d8(e,t);let m=l??e.shouldReduceMotion;r.start(n8(t,r,i,m&&s8.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>u3.update(()=>{o&&l8(e,o)});d.length?Promise.all(d).then(t):t()}return d}function g8(e,t,n={}){let r=o8(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(h8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return oue(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function oue(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(g8(c,t,{...o,delay:n+(typeof r==`function`?0:r)+X6(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function _8(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>g8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=g8(e,t,n);else{let i=typeof t==`function`?o8(e,t,n.custom):t;r=Promise.all(h8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var sue={test:e=>e===`auto`,parse:e=>e},v8=e=>t=>t.test(e),y8=[b3,$,M3,j3,Rce,Lce,sue],b8=e=>y8.find(v8(e));function cue(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||I4(e)}var lue=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function uue(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(w3)||[];if(!r)return e;let i=n.replace(r,``),a=+!!lue.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var due=/\b([a-z-]*)\(.*?\)/gu,x8={...V3,getAnimatableNone:e=>{let t=e.match(due);return t?t.map(uue).join(` `):e}},S8={...V3,getAnimatableNone:e=>{let t=V3.parse(e);return V3.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},C8={...b3,transform:Math.round},w8={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:j3,pathRotation:j3,rotateX:j3,rotateY:j3,rotateZ:j3,scale:S3,scaleX:S3,scaleY:S3,scaleZ:S3,skew:j3,skewX:j3,skewY:j3,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:x3,originX:N3,originY:N3,originZ:$,zIndex:C8,fillOpacity:x3,strokeOpacity:x3,numOctaves:C8},fue={...w8,color:F3,backgroundColor:F3,outlineColor:F3,fill:F3,stroke:F3,borderColor:F3,borderTopColor:F3,borderRightColor:F3,borderBottomColor:F3,borderLeftColor:F3,filter:x8,WebkitFilter:x8,mask:S8,WebkitMask:S8},T8=e=>fue[e],pue=new Set([x8,S8]);function E8(e,t){let n=T8(e);return pue.has(n)||(n=V3),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var mue=new Set([`auto`,`none`,`0`]);function hue(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!mue.has(t)&&z3(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=E8(n,i)}var gue=class extends F6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),v3(r))){let i=r8(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!s8.has(n)||e.length!==2)return;let[r,i]=e,a=b8(r),o=b8(i);if(y3(r)!==y3(i)&&O6[n]){this.needsMeasurement=!0;return}if(a!==o)if(D6(a)&&D6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else O6[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||cue(e[t]))&&n.push(t);n.length&&hue(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=O6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=O6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},D8=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function O8(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var k8=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function A8(e){return F4(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:j8,cancel:_ue}=l3(queueMicrotask,!1),M8={x:!1,y:!1};function N8(){return M8.x||M8.y}function vue(e){return e===`x`||e===`y`?M8[e]?null:(M8[e]=!0,()=>{M8[e]=!1}):M8.x||M8.y?null:(M8.x=M8.y=!0,()=>{M8.x=M8.y=!1})}function P8(e,t){let n=O8(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yue(e){return!(e.pointerType===`touch`||N8())}function bue(e,t,n={}){let[r,i,a]=P8(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!yue(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var F8=(e,t)=>t?e===t?!0:F8(e,t.parentElement):!1,I8=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,xue=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Sue(e){return xue.has(e.tagName)||e.isContentEditable===!0}var Cue=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function wue(e){return Cue.has(e.tagName)||e.isContentEditable===!0}var L8=new WeakSet;function R8(e){return t=>{t.key===`Enter`&&e(t)}}function z8(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tue=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=R8(()=>{if(L8.has(n))return;z8(n,`down`);let e=R8(()=>{z8(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>z8(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function B8(e){return I8(e)&&!N8()}var V8=new WeakSet;function Eue(e,t,n={}){let[r,i,a]=P8(e,n),o=e=>{let r=e.currentTarget;if(!B8(e)||V8.has(e))return;L8.add(r),n.stopPropagation&&V8.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),L8.has(r)&&L8.delete(r),B8(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||F8(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),A8(e)&&(e.addEventListener(`focus`,e=>Tue(e,i)),!Sue(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function H8(e){return F4(e)&&`ownerSVGElement`in e}var U8=new WeakMap,W8,G8=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:H8(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Due=G8(`inline`,`width`,`offsetWidth`),Oue=G8(`block`,`height`,`offsetHeight`);function kue({target:e,borderBoxSize:t}){U8.get(e)?.forEach(n=>{n(e,{get width(){return Due(e,t)},get height(){return Oue(e,t)}})})}function Aue(e){e.forEach(kue)}function jue(){typeof ResizeObserver>`u`||(W8=new ResizeObserver(Aue))}function Mue(e,t){W8||jue();let n=O8(e);return n.forEach(e=>{let n=U8.get(e);n||(n=new Set,U8.set(e,n)),n.add(t),W8?.observe(e)}),()=>{n.forEach(e=>{let n=U8.get(e);n?.delete(t),n?.size||W8?.unobserve(e)})}}var K8=new Set,q8;function Nue(){q8=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};K8.forEach(t=>t(e))},window.addEventListener(`resize`,q8)}function Pue(e){return K8.add(e),q8||Nue(),()=>{K8.delete(e),!K8.size&&typeof q8==`function`&&(window.removeEventListener(`resize`,q8),q8=void 0)}}function J8(e,t){return typeof e==`function`?Pue(e):Mue(e,t)}var Y8={value:null,addProjectionMetrics:null};function X8(e){return H8(e)&&e.tagName===`svg`}function Fue(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=l6(i,a,o);return t?s(r):s}function Iue(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Q8(e.get()),r=Q8(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new g6({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Z8(e,s)),u3.postRender(u)},c),u8(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Z8(t,s),!1)):e.set(Z8(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Z8(e,t){return t?e+t:e}function Q8(e){return typeof e==`number`?e:parseFloat(e)}var Lue=[...y8,F3,V3],Rue=e=>Lue.find(v8(e)),$8=()=>({translate:0,scale:1,origin:0,originPoint:0}),e5=()=>({x:$8(),y:$8()}),t5=()=>({min:0,max:0}),n5=()=>({x:t5(),y:t5()}),r5=new WeakMap;function i5(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function a5(e){return typeof e==`string`||Array.isArray(e)}var o5=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],s5=[`initial`,...o5];function c5(e){return i5(e.animate)||s5.some(t=>a5(e[t]))}function l5(e){return!!(c5(e)||e.variants)}function zue(e,t,n){for(let r in t){let i=t[r],a=n[r];if(u8(i))e.addValue(r,i);else if(u8(a))e.addValue(r,$6(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,$6(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var u5={current:null},d5={current:!1},Bue=typeof window<`u`;function f5(){if(d5.current=!0,Bue)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>u5.current=e.matches;e.addEventListener(`change`,t),t()}else u5.current=!1}var p5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],m5={};function h5(e){m5=e}function Vue(){return m5}var g5=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=F6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=h3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,u3.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=c5(t),this.isVariantNode=l5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&u8(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,r5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(d5.current||f5(),this.shouldReduceMotion=u5.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),d3(this.notifyUpdate),d3(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&J6.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new U6({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:H4(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=E6.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&u3.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in m5){let t=m5[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n5()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<p5.length;t++){let n=p5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zue(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=$6(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(P4(n)||I4(n))?n=parseFloat(n):!Rue(n)&&V3.test(t)&&(n=E8(e,t)),this.setBaseTarget(e,u8(n)?n.get():n)),u8(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=a8(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!u8(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new V4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){j8.render(this.render)}},_5=class extends g5{constructor(){super(...arguments),this.KeyframeResolver=gue}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;u8(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},v5=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function y5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Uue(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function b5(e){return e===void 0||e===1}function x5({scale:e,scaleX:t,scaleY:n}){return!b5(e)||!b5(t)||!b5(n)}function S5(e){return x5(e)||C5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function C5(e){return w5(e.x)||w5(e.y)}function w5(e){return e&&e!==`0%`}function T5(e,t,n){return n+t*(e-n)}function E5(e,t,n,r,i){return i!==void 0&&(e=T5(e,i,r)),T5(e,n,r)+t}function D5(e,t=0,n=1,r,i){e.min=E5(e.min,t,n,r,i),e.max=E5(e.max,t,n,r,i)}function O5(e,{x:t,y:n}){D5(e.x,t.translate,t.scale,t.originPoint),D5(e.y,n.translate,n.scale,n.originPoint)}var k5=.999999999999,A5=1.0000000000001;function Wue(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(j5(e.x,-a.scroll.offset.x),j5(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,O5(e,o)),r&&S5(a.latestValues)&&P5(e,a.latestValues,a.layout?.layoutBox))}t.x<A5&&t.x>k5&&(t.x=1),t.y<A5&&t.y>k5&&(t.y=1)}function j5(e,t){e.min+=t,e.max+=t}function M5(e,t,n,r,i=.5){D5(e,t,n,W3(e.min,e.max,i),r)}function N5(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function P5(e,t,n){let r=n??e;M5(e.x,N5(t.x,r.x),t.scaleX,t.scale,t.originX),M5(e.y,N5(t.y,r.y),t.scaleY,t.scale,t.originY)}function F5(e,t){return y5(Uue(e.getBoundingClientRect(),t))}function Gue(e,t,n){let r=F5(e,n),{scroll:i}=t;return i&&(j5(r.x,i.offset.x),j5(r.y,i.offset.y)),r}var Kue={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},que=T6.length;function Jue(e,t,n){let r=``,i=!0;for(let a=0;a<que;a++){let o=T6[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=k8(s,w8[o]);if(!c){i=!1;let t=Kue[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${k8(a,w8.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function I5(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(E6.has(e)){o=!0;continue}else if(_3(e)){i[e]=n;continue}else{let t=k8(n,w8[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Jue(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function L5(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function R5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var z5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${R5(e,t.target.x)}% ${R5(e,t.target.y)}%`}},Yue={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V3.parse(e);if(i.length>5)return r;let a=V3.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W3(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},B5={borderRadius:{...z5,applyTo:[...D8]},borderTopLeftRadius:z5,borderTopRightRadius:z5,borderBottomLeftRadius:z5,borderBottomRightRadius:z5,boxShadow:Yue};function V5(e,{layout:t,layoutId:n}){return E6.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!B5[e]||e===`opacity`)}function H5(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(u8(r[t])||i&&u8(i[t])||V5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Xue(e){return window.getComputedStyle(e)}var U5=class extends _5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=L5}readValueFromInstance(e,t){if(E6.has(t))return this.projection?.isProjecting?C6(t):ble(e,t);{let n=Xue(e),r=(_3(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return F5(e,t)}build(e,t,n){I5(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return H5(e,t,n)}};function Zue(e,t){return e in t}var Que=class extends g5{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Zue(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return n5()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},$ue={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ede={offset:`strokeDashoffset`,array:`strokeDasharray`};function tde(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?$ue:ede;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var nde=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function W5(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(I5(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of nde)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&tde(d,i,a,o,!1)}var G5=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),K5=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function rde(e,t,n,r){L5(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(G5.has(n)?n:f8(n),t.attrs[n])}function q5(e,t,n){let r=H5(e,t,n);for(let n in e)if(u8(e[n])||u8(t[n])){let t=T6.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var J5=class extends _5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=n5}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E6.has(t)){let e=T8(t);return e&&e.default||0}return t=G5.has(t)?t:f8(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return q5(e,t,n)}build(e,t,n){W5(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){rde(e,t,n,r)}mount(e){this.isSVGTag=K5(e.tagName),super.mount(e)}},ide=s5.length;function Y5(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Y5(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ide;n++){let r=s5[n],i=e.props[r];(a5(i)||i===!1)&&(t[r]=i)}return t}function X5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ade=[...o5].reverse(),ode=o5.length;function sde(e){return t=>Promise.all(t.map(({animation:t,options:n})=>_8(e,t,n)))}function cde(e){let t=sde(e),n=Q5(),r=!0,i=!1,a=t=>(n,r)=>{let i=o8(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Y5(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ode;t++){let p=ade[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=a5(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||i5(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=lde(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=c8(t)&&c8(n)?!X5(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=o8(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=X6(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=o8(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Q5(),i=!0}}}function lde(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!X5(t,e):!1}function Z5(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q5(){return{animate:Z5(!0),whileInView:Z5(),whileHover:Z5(),whileTap:Z5(),whileDrag:Z5(),whileFocus:Z5(),exit:Z5()}}function $5(e,t){e.min=t.min,e.max=t.max}function e7(e,t){$5(e.x,t.x),$5(e.y,t.y)}function t7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var n7=1e-4,ude=1-n7,dde=1+n7,r7=.01,fde=0-r7,pde=0+r7;function i7(e){return e.max-e.min}function mde(e,t,n){return Math.abs(e-t)<=n}function a7(e,t,n,r=.5){e.origin=r,e.originPoint=W3(t.min,t.max,e.origin),e.scale=i7(n)/i7(t),e.translate=W3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ude&&e.scale<=dde||isNaN(e.scale))&&(e.scale=1),(e.translate>=fde&&e.translate<=pde||isNaN(e.translate))&&(e.translate=0)}function o7(e,t,n,r){a7(e.x,t.x,n.x,r?r.originX:void 0),a7(e.y,t.y,n.y,r?r.originY:void 0)}function s7(e,t,n,r=0){e.min=(r?W3(n.min,n.max,r):n.min)+t.min,e.max=e.min+i7(t)}function hde(e,t,n,r){s7(e.x,t.x,n.x,r?.x),s7(e.y,t.y,n.y,r?.y)}function c7(e,t,n,r=0){let i=r?W3(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+i7(t)}function l7(e,t,n,r){c7(e.x,t.x,n.x,r?.x),c7(e.y,t.y,n.y,r?.y)}function u7(e,t,n,r,i){return e-=t,e=T5(e,1/n,r),i!==void 0&&(e=T5(e,1/i,r)),e}function gde(e,t=0,n=1,r=.5,i,a=e,o=e){if(M3.test(t)&&(t=parseFloat(t),t=W3(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W3(a.min,a.max,r);e===a&&(s-=t),e.min=u7(e.min,t,n,s,i),e.max=u7(e.max,t,n,s,i)}function d7(e,t,[n,r,i],a,o){gde(e,t[n],t[r],t[i],t.scale,a,o)}var _de=[`x`,`scaleX`,`originX`],vde=[`y`,`scaleY`,`originY`];function f7(e,t,n,r){d7(e.x,t,_de,n?n.x:void 0,r?r.x:void 0),d7(e.y,t,vde,n?n.y:void 0,r?r.y:void 0)}function p7(e){return e.translate===0&&e.scale===1}function m7(e){return p7(e.x)&&p7(e.y)}function h7(e,t){return e.min===t.min&&e.max===t.max}function yde(e,t){return h7(e.x,t.x)&&h7(e.y,t.y)}function g7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _7(e,t){return g7(e.x,t.x)&&g7(e.y,t.y)}function v7(e){return i7(e.x)/i7(e.y)}function y7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function b7(e){return[e(`x`),e(`y`)]}function bde(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var xde=D8.length,x7=e=>typeof e==`string`?parseFloat(e):e,S7=e=>typeof e==`number`||$.test(e);function Sde(e,t,n,r,i,a){i?(e.opacity=W3(0,n.opacity??1,Cde(r)),e.opacityExit=W3(t.opacity??1,0,wde(r))):a&&(e.opacity=W3(t.opacity??1,n.opacity??1,r));for(let i=0;i<xde;i++){let a=D8[i],o=C7(t,a),s=C7(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||S7(o)===S7(s)?(e[a]=Math.max(W3(x7(o),x7(s),r),0),(M3.test(s)||M3.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W3(t.rotate||0,n.rotate||0,r))}function C7(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Cde=w7(0,.5,e3),wde=w7(.5,.95,R4);function w7(e,t,n){return r=>r<e?0:r>t?1:n(B4(e,t,r))}function T7(e,t,n){let r=u8(e)?e:$6(e);return r.start(n8(``,r,t,n)),r.animation}function E7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Tde=(e,t)=>e.depth-t.depth,Ede=class{constructor(){this.children=[],this.isDirty=!1}add(e){A4(this.children,e),this.isDirty=!0}remove(e){j4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tde),this.isDirty=!1,this.children.forEach(e)}};function Dde(e,t){let n=h3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(d3(r),e(a-t))};return u3.setup(r,!0),()=>d3(r)}function D7(e){return u8(e)?e.get():e}var Ode=class{constructor(){this.members=[]}add(e){A4(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(j4(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(j4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},O7={hasAnimatedSinceResize:!0,hasEverUpdated:!1},k7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},A7=[``,`X`,`Y`,`Z`],kde=1e3,Ade=0;function j7(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function M7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=m8(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,u3,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&M7(r)}function N7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ade++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Y8.value&&(k7.nodes=k7.calculatedTargetDeltas=k7.calculatedProjections=0),this.nodes.forEach(Nde),this.nodes.forEach(zde),this.nodes.forEach(Bde),this.nodes.forEach(Pde),Y8.addProjectionMetrics&&Y8.addProjectionMetrics(k7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ede)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new V4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=H8(t)&&!X8(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;u3.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Dde(i,250),O7.hasAnimatedSinceResize&&(O7.hasAnimatedSinceResize=!1,this.nodes.forEach(I7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Gde,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!_7(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t8(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||I7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),d3(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vde),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ide),this.nodes.forEach(P7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(F7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lde),this.nodes.forEach(Rde),this.nodes.forEach(jde),this.nodes.forEach(Mde)):this.nodes.forEach(F7),this.clearAllSnapshots();let e=h3.now();f3.delta=M4(0,1e3/60,e-f3.timestamp),f3.timestamp=e,f3.isProcessing=!0,p3.update.process(f3),p3.preRender.process(f3),p3.render.process(f3),f3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,j8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fde),this.sharedNodes.forEach(Hde)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u3.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u3.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!i7(this.snapshot.measuredBox.x)&&!i7(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=n5(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!m7(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||S5(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Kde(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return n5();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qde))){let{scroll:e}=this.root;e&&(j5(t.x,e.offset.x),j5(t.y,e.offset.y))}return t}removeElementScroll(e){let t=n5();if(e7(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&e7(t,e),j5(t.x,i.offset.x),j5(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||n5();e7(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(j5(r.x,-n.scroll.offset.x),j5(r.y,-n.scroll.offset.y)),S5(n.latestValues)&&P5(r,n.latestValues,n.layout?.layoutBox)}return S5(this.latestValues)&&P5(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=n5();e7(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!S5(n.latestValues))continue;let r;n.instance&&(x5(n.latestValues)&&n.updateSnapshot(),r=n5(),e7(r,n.measurePageBox())),f7(t,n.latestValues,n.snapshot?.layoutBox,r)}return S5(this.latestValues)&&f7(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==f3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=f3.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=n5(),this.targetWithTransforms=n5()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hde(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):e7(this.target,this.layout.layoutBox),O5(this.target,this.targetDelta)):e7(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Y8.value&&k7.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||x5(this.parent.latestValues)||C5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n5(),this.relativeTargetOrigin=n5(),l7(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),e7(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===f3.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;e7(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Wue(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=n5());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(t7(this.prevProjectionDelta.x,this.projectionDelta.x),t7(this.prevProjectionDelta.y,this.projectionDelta.y)),o7(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!y7(this.projectionDelta.x,this.prevProjectionDelta.x)||!y7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Y8.value&&k7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e5(),this.projectionDelta=e5(),this.projectionDeltaWithTransform=e5()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=e5();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=n5(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Wde));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=W3(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=W3(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(L7(o.x,e.x,n),L7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(l7(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ude(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&yde(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=n5(),e7(f,this.relativeTarget)),c&&(this.animationValues=a,Sde(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(d3(this.pendingAnimation),void 0),this.pendingAnimation=u3.update(()=>{O7.hasAnimatedSinceResize=!0,this.motionValue||=$6(0),this.motionValue.jump(0,!1),this.currentAnimation=T7(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&H7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n5();let t=i7(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=i7(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}e7(t,n),P5(t,i),o7(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ode),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&j7(`z`,e,r,this.animationValues);for(let t=0;t<A7.length;t++)j7(`rotate${A7[t]}`,e,r,this.animationValues),j7(`skew${A7[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=D7(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=D7(t?.pointerEvents)||``),this.hasProjected&&!S5(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=bde(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in B5){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=B5[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?D7(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(P7),this.root.sharedNodes.clear()}}}function jde(e){e.updateLayout()}function Mde(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)b7(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=i7(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$5(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else H7(i,t.layoutBox,n)&&b7(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=i7(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=e5();o7(o,n,t.layoutBox);let s=e5();a?o7(s,e.applyTransform(r,!0),t.measuredBox):o7(s,n,t.layoutBox);let c=!m7(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=n5();l7(s,t.layoutBox,i.layoutBox,o);let c=n5();l7(c,n,a.layoutBox,o),_7(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Nde(e){Y8.value&&k7.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Pde(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fde(e){e.clearSnapshot()}function P7(e){e.clearMeasurements()}function Ide(e){e.isLayoutDirty=!0,e.updateLayout()}function F7(e){e.isLayoutDirty=!1}function Lde(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Rde(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function I7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zde(e){e.resolveTargetDelta()}function Bde(e){e.calcProjection()}function Vde(e){e.resetSkewAndRotation()}function Hde(e){e.removeLeadSnapshot()}function L7(e,t,n){e.translate=W3(t.translate,0,n),e.scale=W3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function R7(e,t,n,r){e.min=W3(t.min,n.min,r),e.max=W3(t.max,n.max,r)}function Ude(e,t,n,r){R7(e.x,t.x,n.x,r),R7(e.y,t.y,n.y,r)}function Wde(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gde={duration:.45,ease:[.4,0,.1,1]},z7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B7=z7(`applewebkit/`)&&!z7(`chrome/`)?Math.round:R4;function V7(e){e.min=B7(e.min),e.max=B7(e.max)}function Kde(e){V7(e.x),V7(e.y)}function H7(e,t,n){return e===`position`||e===`preserve-aspect`&&!mde(v7(t),v7(n),.2)}function qde(e){return e!==e.root&&e.scroll?.wasRoot}var Jde=N7({attachResizeListener:(e,t)=>E7(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),U7={current:void 0},W7=N7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!U7.current){let e=new Jde({});e.mount(window),e.setOptions({layoutScroll:!0}),U7.current=e}return U7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),G7=(0,M.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function K7(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Yde(...e){return t=>{let n=!1,r=e.map(e=>{let r=K7(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():K7(e[t],null)}}}}function Xde(...e){return M.useCallback(Yde(...e),e)}var Zde=class extends M.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(A8(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=A8(e)&&e.offsetWidth||0,r=A8(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Qde({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,M.useId)(),s=(0,M.useRef)(null),c=(0,M.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,M.useContext)(G7),u=Xde(s,e.props?.ref??e?.ref);return(0,M.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
122
+ [data-motion-pop-id="${o}"] {
123
+ position: absolute !important;
124
+ width: ${e}px !important;
125
+ height: ${u}px !important;
126
+ ${_}px !important;
127
+ ${v}px !important;
128
+ }
129
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,N.jsx)(Zde,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:M.cloneElement(e,{ref:u})})}var $de=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=D4(efe),d=(0,M.useId)(),f=(0,M.useRef)(n),p=(0,M.useRef)(r);O4(()=>{f.current=n,p.current=r});let m=!0,h=(0,M.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,M.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),M.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,N.jsx)(Qde,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,N.jsx)(k4.Provider,{value:h,children:e})};function efe(){return new Map}function q7(e=!0){let t=(0,M.useContext)(k4);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,M.useId)();(0,M.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,M.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function tfe(){return nfe((0,M.useContext)(k4))}function nfe(e){return e===null?!0:e.isPresent}var J7=e=>e.key||``;function Y7(e){let t=[];return M.Children.forEach(e,e=>{(0,M.isValidElement)(e)&&t.push(e)}),t}var rfe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=q7(o),f=(0,M.useMemo)(()=>Y7(e),[e]),p=o&&!u?[]:f.map(J7),m=(0,M.useRef)(!0),h=(0,M.useRef)(f),g=D4(()=>new Map),_=(0,M.useRef)(new Set),[v,y]=(0,M.useState)(f),[b,x]=(0,M.useState)(f);O4(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=J7(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=J7(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Y7(e)),y(f),null}let{forceRender:C}=(0,M.useContext)(E4);return(0,N.jsx)(N.Fragment,{children:b.map(e=>{let v=J7(e),y=o&&!u?!1:f===b||p.includes(v);return(0,N.jsx)($de,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},X7=(0,M.createContext)({strict:!1}),Z7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Q7=!1;function ife(){if(Q7)return;let e={};for(let t in Z7)e[t]={isEnabled:e=>Z7[t].some(t=>!!e[t])};h5(e),Q7=!0}function $7(){return ife(),Vue()}function afe(e){let t=$7();for(let n in e)t[n]={...t[n],...e[n]};h5(t)}var ofe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function e9(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ofe.has(e)}var sfe=r({default:()=>t9}),t9,cfe=t((()=>{throw t9={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),n9=e=>!e9(e);function lfe(e){typeof e==`function`&&(n9=t=>t.startsWith(`on`)?!e9(t):e(t))}try{lfe((cfe(),e(sfe)).default)}catch{}function ufe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||u8(e[i])||(n9(i)||n===!0&&e9(i)||!t&&!e9(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var r9=(0,M.createContext)({});function dfe(e,t){if(c5(e)){let{initial:t,animate:n}=e;return{initial:t===!1||a5(t)?t:void 0,animate:a5(n)?n:void 0}}return e.inherit===!1?{}:t}function ffe(e){let{initial:t,animate:n}=dfe(e,(0,M.useContext)(r9));return(0,M.useMemo)(()=>({initial:t,animate:n}),[i9(t),i9(n)])}function i9(e){return Array.isArray(e)?e.join(` `):e}var a9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o9(e,t,n){for(let r in t)!u8(t[r])&&!V5(r,n)&&(e[r]=t[r])}function pfe({transformTemplate:e},t){return(0,M.useMemo)(()=>{let n=a9();return I5(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mfe(e,t){let n=e.style||{},r={};return o9(r,n,e),Object.assign(r,pfe(e,t)),r}function hfe(e,t){let n={},r=mfe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var s9=()=>({...a9(),attrs:{}});function gfe(e,t,n,r){let i=(0,M.useMemo)(()=>{let n=s9();return W5(n,t,K5(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};o9(t,e.style,e),i.style={...t,...i.style}}return i}var _fe=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function c9(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(_fe.indexOf(e)>-1||/[A-Z]/u.test(e))}function vfe(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??c9(e)?gfe:hfe)(t,r,i,e),c=ufe(t,typeof e==`string`,a),l=e===M.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,M.useMemo)(()=>u8(u)?u.get():u,[u]);return(0,M.createElement)(e,{...l,children:d})}function yfe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bfe(n,r,i,e),renderState:t()}}function bfe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=D7(a[e]);let{initial:o,animate:s}=e,c=c5(e),l=l5(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!i5(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=a8(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var l9=e=>(t,n)=>{let r=(0,M.useContext)(r9),i=(0,M.useContext)(k4),a=()=>yfe(e,t,r,i);return n?a():D4(a)},xfe=l9({scrapeMotionValuesFromProps:H5,createRenderState:a9}),Sfe=l9({scrapeMotionValuesFromProps:q5,createRenderState:s9}),Cfe=Symbol.for(`motionComponentSymbol`);function wfe(e,t,n){let r=(0,M.useRef)(n);(0,M.useInsertionEffect)(()=>{r.current=n});let i=(0,M.useRef)(null);return(0,M.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var u9=(0,M.createContext)({});function d9(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Tfe(e,t,n,r,i,a){let{visualElement:o}=(0,M.useContext)(r9),s=(0,M.useContext)(X7),c=(0,M.useContext)(k4),l=(0,M.useContext)(G7),u=l.reducedMotion,d=l.skipAnimations,f=(0,M.useRef)(null),p=(0,M.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,M.useContext)(u9);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Efe(f.current,n,i,h);let g=(0,M.useRef)(!1);(0,M.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[p8],v=(0,M.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return O4(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,M.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Efe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:f9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&d9(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function f9(e){if(e)return e.options.allowProjection===!1?f9(e.parent):e.projection}function p9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&afe(r);let a=n?n===`svg`:c9(e),o=a?Sfe:xfe;function s(n,s){let c,l={...(0,M.useContext)(G7),...n,layoutId:Dfe(n)},{isStatic:u}=l,d=ffe(n),f=o(n,u);if(!u&&typeof window<`u`){Ofe(l,r);let t=kfe(l);c=t.MeasureLayout,d.visualElement=Tfe(e,f,l,i,t.ProjectionNode,a)}return(0,N.jsxs)(r9.Provider,{value:d,children:[c&&d.visualElement?(0,N.jsx)(c,{visualElement:d.visualElement,...l}):null,vfe(e,n,wfe(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,M.forwardRef)(s);return c[Cfe]=e,c}function Dfe({layoutId:e}){let t=(0,M.useContext)(E4).id;return t&&e!==void 0?t+`-`+e:e}function Ofe(e,t){(0,M.useContext)(X7).strict}function kfe(e){let{drag:t,layout:n}=$7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Afe(e,t){if(typeof Proxy>`u`)return p9;let n=new Map,r=(n,r)=>p9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,p9(a,void 0,e,t)),n.get(a))})}var jfe=(e,t)=>t.isSVG??c9(e)?new J5(t):new U5(t,{allowProjection:e!==M.Fragment}),Mfe=class extends v5{constructor(e){super(e),e.animationState||=cde(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Nfe=0,Pfe={animation:{Feature:Mfe},exit:{Feature:class extends v5{constructor(){super(...arguments),this.id=Nfe++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=o8(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function m9(e){return{point:{x:e.pageX,y:e.pageY}}}var Ffe=e=>t=>I8(t)&&e(t,m9(t));function h9(e,t,n,r){return E7(e,t,Ffe(n),r)}var g9=({current:e})=>e?e.ownerDocument.defaultView:null,_9=(e,t)=>Math.abs(e-t);function Ife(e,t){let n=_9(e.x,t.x),r=_9(e.y,t.y);return Math.sqrt(n**2+r**2)}var v9=new Set([`auto`,`scroll`]),y9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=b9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=S9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Ife(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=f3;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=b9(t,this.transformPagePoint),u3.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=S9(e.type===`pointercancel`?this.lastMoveEventInfo:b9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!I8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=b9(m9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=f3;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,S9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=z4(h9(this.contextWindow,`pointermove`,this.handlePointerMove,d),h9(this.contextWindow,`pointerup`,this.handlePointerUp,d),h9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(v9.has(e.overflowX)||v9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),u3.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),d3(this.updatePoint)}};function b9(e,t){return t?{point:t(e.point)}:e}function x9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function S9({point:e},t){return{point:e,delta:x9(e,C9(t)),offset:x9(e,Lfe(t)),velocity:Rfe(t,.1)}}function Lfe(e){return e[0]}function C9(e){return e[e.length-1]}function Rfe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=C9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>H4(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>H4(t)*2&&(r=e[1]);let a=U4(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function zfe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W3(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W3(n,e,r.max):Math.min(e,n)),e}function w9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Bfe(e,{top:t,left:n,bottom:r,right:i}){return{x:w9(e.x,n,i),y:w9(e.y,t,r)}}function T9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Vfe(e,t){return{x:T9(e.x,t.x),y:T9(e.y,t.y)}}function Hfe(e,t){let n=.5,r=i7(e),i=i7(t);return i>r?n=B4(t.min,t.max-r,e.min):r>i&&(n=B4(e.min,e.max-i,t.min)),M4(0,1,n)}function Ufe(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var E9=.35;function Wfe(e=E9){return e===!1?e=0:e===!0&&(e=E9),{x:D9(e,`left`,`right`),y:D9(e,`top`,`bottom`)}}function D9(e,t,n){return{min:O9(e,t),max:O9(e,n)}}function O9(e,t){return typeof e==`number`?e:e[t]||0}var Gfe=new WeakMap,Kfe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n5(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(m9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vue(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),b7(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M3.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=i7(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&u3.update(()=>i(e,t),!1,!0),d8(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Jfe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&u3.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new y9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:g9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&u3.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!A9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=zfe(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&d9(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Bfe(n.layoutBox,e):this.constraints=!1,this.elastic=Wfe(t),r!==this.constraints&&!d9(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&b7(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ufe(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!d9(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Gue(n,r.root,this.visualElement.getTransformPagePoint()),a=Vfe(r.layout.layoutBox,i);if(t){let e=t(Hue(a));this.hasMutatedConstraints=!!e,e&&(a=y5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=b7(o=>{if(!A9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return d8(this.visualElement,e),n.start(n8(e,n,0,t,this.visualElement,!1))}stopAnimation(){b7(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){b7(t=>{let{drag:n}=this.getProps();if(!A9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-W3(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!d9(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};b7(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Hfe({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),b7(t=>{if(!A9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W3(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Gfe.set(this.visualElement,this);let e=this.visualElement.current,t=h9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&wue(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();d9(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=qfe(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),u3.read(r);let o=E7(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(b7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=E9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function k9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qfe(e,t,n){let r=J8(e,k9(n)),i=J8(t,k9(n));return()=>{r(),i()}}function A9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jfe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Yfe=class extends v5{constructor(e){super(e),this.removeGroupControls=R4,this.removeListeners=R4,this.controls=new Kfe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R4}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},j9=e=>(t,n)=>{e&&u3.update(()=>e(t,n),!1,!0)},Xfe=class extends v5{constructor(){super(...arguments),this.removePointerDownListener=R4}onPointerDown(e){this.session=new y9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:j9(e),onStart:j9(t),onMove:j9(n),onEnd:(e,t)=>{delete this.session,r&&u3.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},M9=!1,Zfe=class extends M.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),M9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),O7.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),M9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||u3.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),j8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;M9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function N9(e){let[t,n]=q7(),r=(0,M.useContext)(E4);return(0,N.jsx)(Zfe,{...e,layoutGroup:r,switchLayoutGroup:(0,M.useContext)(u9),isPresent:t,safeToRemove:n})}var Qfe={pan:{Feature:Xfe},drag:{Feature:Yfe,ProjectionNode:W7,MeasureLayout:N9}};function P9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&u3.postRender(()=>i(t,m9(t)))}var $fe=class extends v5{mount(){let{current:e}=this.node;e&&(this.unmount=bue(e,(e,t)=>(P9(this.node,t,`Start`),e=>P9(this.node,e,`End`))))}unmount(){}},epe=class extends v5{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=z4(E7(this.node.current,`focus`,()=>this.onFocus()),E7(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function F9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&u3.postRender(()=>i(t,m9(t)))}var tpe=class extends v5{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Eue(e,(e,t)=>(F9(this.node,t,`Start`),(e,{success:t})=>F9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},I9=new WeakMap,L9=new WeakMap,npe=e=>{let t=I9.get(e.target);t&&t(e)},rpe=e=>{e.forEach(npe)};function ipe({root:e,...t}){let n=e||document;L9.has(n)||L9.set(n,{});let r=L9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rpe,{root:e,...t})),r[i]}function ape(e,t,n){let r=ipe(t);return I9.set(e,n),r.observe(e),()=>{I9.delete(e),r.unobserve(e)}}var ope={some:0,all:1},spe=class extends v5{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ope[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ape(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cpe(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cpe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var lpe={inView:{Feature:spe},tap:{Feature:tpe},focus:{Feature:epe},hover:{Feature:$fe}},upe={layout:{ProjectionNode:W7,MeasureLayout:N9}},dpe=Afe({...Pfe,...lpe,...Qfe,...upe},jfe);function R9(e){let t=D4(()=>$6(e)),{isStatic:n}=(0,M.useContext)(G7);if(n){let[,n]=(0,M.useState)(e);(0,M.useEffect)(()=>t.on(`change`,n),[])}return t}function z9(e,t){let n=R9(t()),r=()=>n.set(t());return r(),O4(()=>{let t=()=>u3.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),d3(r)}}),n}function fpe(e){Q6.current=[],e();let t=z9(Q6.current,e);return Q6.current=void 0,t}function B9(e,t,n,r){if(typeof e==`function`)return fpe(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return ppe(e,t,n,r);let i=typeof t==`function`?t:Fue(t,n,r),a=Array.isArray(e)?V9(e,i):V9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function V9(e,t){let n=D4(()=>[]);return z9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function ppe(e,t,n,r){let i=D4(()=>Object.keys(n)),a=D4(()=>({}));for(let o of i)a[o]=B9(e,t,n[o],r);return a}function mpe(e,t={}){let{isStatic:n}=(0,M.useContext)(G7),r=()=>u8(e)?e.get():e;if(n)return B9(r);let i=R9(r());return(0,M.useInsertionEffect)(()=>Iue(i,e,t),[i,JSON.stringify(t)]),i}function hpe(e,t={}){return mpe(e,{type:`spring`,...t})}function gpe(){!d5.current&&f5();let[e]=(0,M.useState)(u5.current);return e}function _pe(e){e.values.forEach(e=>e.stop())}function H9(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&l8(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{H9(e,t)})})}function vpe(e,t){if(Array.isArray(t))return H9(e,t);if(typeof t==`string`)return H9(e,[t]);l8(e,t)}function ype(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(_8(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{vpe(e,t)})},stop(){e.forEach(e=>{_pe(e)})},mount(){return()=>{t.stop()}}};return t}function U9(e){return typeof e==`object`&&!Array.isArray(e)}function W9(e,t,n,r){return e==null?[]:typeof e==`string`&&U9(t)?O8(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function bpe(e,t,n){return e*(t+1)+n*t}function G9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function xpe(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(j4(e,i),r--)}}function Spe(e,t,n,r,i,a){xpe(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:W3(i,a,r[o]),easing:i3(n,o)})}function Cpe(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function wpe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Tpe=`easeInOut`,K9=20;function Epe(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,G9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=G9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Dpe(e),{delay:l=0,times:u=d6(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=H6(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Ape(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=H4(b));let r=t6(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&u6(u,T),c.length===1&&c.unshift(null),m&&`${m}${K9}`,m&&m<K9){let e=b>0?_/b:0;b=bpe(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?J4(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:i3(f,e-1))}Cpe(u,m,e)}let E=w+b;Spe(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(u8(p)){let e=q9(p,s);_(m,h,J9(`default`,e))}else{let e=W9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=q9(r,s);for(let e in m)_(m[e],Ope(h,e),J9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(wpe);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(B4(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Tpe)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function q9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function J9(e,t){return t[e]||(t[e]=[]),t[e]}function Dpe(e){return Array.isArray(e)?e:[e]}function Ope(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var kpe=e=>typeof e==`number`,Ape=e=>e.every(kpe);function jpe(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=H8(e)&&!X8(e)?new J5(t):new U5(t);n.mount(e),r5.set(e,n)}function Mpe(e){let t=new Que({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),r5.set(e,t)}function Npe(e,t){return u8(e)||typeof e==`number`||typeof e==`string`&&!U9(t)}function Y9(e,t,n,r){let i=[];if(Npe(e,t))i.push(T7(e,U9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=W9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?jpe:Mpe;r5.has(r)||s(r);let c=r5.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...h8(c,{...t,transition:l},{}))}}return i}function Ppe(e,t,n){let r=[];return Epe(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=$6(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:o6}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Y9(n,e,t))}),r}function Fpe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Ipe(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Fpe(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Ppe(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Y9(e,i,{...c,...r},t)}let l=new Wle(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{j4(t.animations,l)})),l}return i}var Lpe=Ipe();function Rpe(){let e=D4(ype);return O4(e.mount,[]),e}var zpe=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Bpe=()=>new zpe;function Vpe(){return D4(Bpe)}var Hpe=t4(`CameraPreview`,{web:()=>s(()=>import(`./web-vcW3se1t.js`).then(e=>new e.CameraPreviewWeb),[])}),X9=e=>Symbol.iterator in e,Z9=e=>`entries`in e,Q9=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Upe=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Wpe(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:X9(e)&&X9(t)?Z9(e)&&Z9(t)?Q9(e,t):Upe(e,t):Q9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Gpe(e){let t=M.useRef(void 0);return n=>{let r=e(n);return Wpe(t.current,r)?t.current:t.current=r}}var $9=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;export{uK as $,_l as $n,nx as $t,i1 as A,$ne as An,cw as At,TQ as B,une as Bn,ew as Bt,a4 as C,Ug as Cn,OD as Ct,a0 as D,Og as Dn,aw as Dt,l0 as E,Ag as En,HD as Et,gQ as F,Jp as Fn,$C as Ft,HZ as G,Hl as Gn,ES as Gt,wQ as H,Wp as Hn,eC as Ht,SQ as I,lne as In,lw as It,_K as J,Pl as Jn,Yx as Jt,DQ as K,zl as Kn,gS as Kt,mQ as L,Yp as Ln,uw as Lt,c$ as M,Yne as Mn,tw as Mt,s$ as N,Xne as Nn,ow as Nt,r0 as O,zg as On,nw as Ot,FQ as P,Zne as Pn,sw as Pt,sK as Q,vl as Qn,ax as Qt,kQ as R,Gp as Rn,fw as Rt,n4 as S,Sg as Sn,JD as St,Z2 as T,Vg as Tn,wD as Tt,o$ as U,Kp as Un,lS as Ut,uQ as V,Up as Vn,hC as Vt,NQ as W,bd as Wn,vS as Wt,lK as X,bl as Xn,Xx as Xt,dK as Y,xl as Yn,Jx as Yt,cK as Z,yl as Zn,Yb as Zt,vce as _,Fy as _n,Ut as _r,bD as _t,Rpe as a,Ere as an,bc as ar,yL as at,Tse as b,Ly as bn,KD as bt,hpe as c,jy as cn,$s as cr,Qj as ct,dpe as d,Py as dn,Ms as dr,Vj as dt,Tb as en,hl as er,OW as et,rfe as f,ky as fn,Ca as fr,Cj as ft,T4 as g,Ty as gn,Vr as gr,nA as gt,yce as h,Ny as hn,Mee as hr,OA as ht,Vpe as i,Dre as in,wc as ir,VL as it,a1 as j,Qne as jn,rw as jt,e0 as k,wg as kn,iw as kt,B9 as l,Oy as ln,nc as lr,$j as lt,bce as m,My as mn,Aee as mr,RA as mt,Gpe as n,db as nn,tl as nr,QB as nt,Lpe as o,ub as on,yc as or,eL as ot,tfe as p,Dy as pn,mi as pr,LA as pt,vQ as q,Al as qn,Zx as qt,Hpe as r,Ore as rn,$c as rr,BB as rt,gpe as s,fb as sn,hc as sr,nM as st,$9 as t,Db as tn,nl as tr,WW as tt,R9 as u,Ay as un,Rs as ur,Lj as ut,_ce as v,Iy as vn,zt as vr,AD as vt,t4 as w,Pg as wn,SD as wt,e4 as x,Ey as xn,XD as xt,o4 as y,Ry as yn,TD as yt,LQ as z,qp as zn,dw as zt};