@vellumai/web 0.11.6 → 0.11.7-staging.2
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.
- package/dist/assets/{a2a-invite-Dcxf1Lse.js → a2a-invite-CalxmT9U.js} +1 -1
- package/dist/assets/about-page-oelEgoKN.js +1 -0
- package/dist/assets/account-page-DoWCrccl.js +1 -0
- package/dist/assets/account-shell-D6h6YPdW.js +1 -0
- package/dist/assets/acp-run-detail-panel-BqBDl6QB.js +5 -0
- package/dist/assets/activity-steps-panel-C5Nlm1Ax.js +1 -0
- package/dist/assets/add-credits-modal-Clc-YWYG.js +1 -0
- package/dist/assets/ai-page-DtRit5K4.js +1 -0
- package/dist/assets/android-billing-handoff-D6KkZQcR.js +1 -0
- package/dist/assets/api-key-screen-BWXzfFaa.js +1 -0
- package/dist/assets/app-info-BzVdvgJM.js +1 -0
- package/dist/assets/archive-redirect-page-DD3q7S_q.js +1 -0
- package/dist/assets/assistant-status-panel-i2Q5Ng1C.js +1 -0
- package/dist/assets/auth-welcome-screen-ghh-qFOz.js +1 -0
- package/dist/assets/avatar-random-BEjqLOzH.js +1 -0
- package/dist/assets/background-task-detail-panel-igcj1myW.js +1 -0
- package/dist/assets/billing-page-BtVWtaxz.js +3 -0
- package/dist/assets/billing-redirect-page-DaIhDbvM.js +1 -0
- package/dist/assets/bookmarks-page-CvCqY1u_.js +1 -0
- package/dist/assets/{build.umd-DjyW4NzX.js → build.umd-CJjt7Lfj.js} +1 -1
- package/dist/assets/bundle-confirm-page-DuW3Ltpg.js +1 -0
- package/dist/assets/channel-transcript-panel-C5dxI2kC.js +1 -0
- package/dist/assets/channels-Dv8-4WT6.js +9 -0
- package/dist/assets/channels-NP4ODNxS.js +9 -0
- package/dist/assets/channels-page-route-CaZZgVvj.js +1 -0
- package/dist/assets/chat-CuSRAhBb.js +3 -0
- package/dist/assets/{chat-4LXYoAUR.js → chat-Dw-Xoh_r.js} +2 -2
- package/dist/assets/checkout-continuation-gyr3KRhJ.js +1 -0
- package/dist/assets/checkout-page-CpaWMY_L.js +1 -0
- package/dist/assets/checkout-return-target-uGUiSRvm.js +1 -0
- package/dist/assets/command-palette-Dqv1yvzc.js +1 -0
- package/dist/assets/command-palette-window-page-C4vKhArq.js +1 -0
- package/dist/assets/common-BZmEPLQq.js +1 -0
- package/dist/assets/common-wNADLj0r.js +1 -0
- package/dist/assets/community-page-xiwPgo2f.js +1 -0
- package/dist/assets/companion-layout-BgFk39Te.js +1 -0
- package/dist/assets/companion-surface-page-BE_GKIQH.js +1 -0
- package/dist/assets/connect-page-1WOW2Uyb.js +1 -0
- package/dist/assets/consent-controls-RsRyTWzn.js +1 -0
- package/dist/assets/contacts-DY80_acF.js +1 -0
- package/dist/assets/contacts-O_w2EdRt.js +1 -0
- package/dist/assets/contacts-gateway-aq64PPDs.js +1 -0
- package/dist/assets/contacts-page-route-fh_BygpY.js +1 -0
- package/dist/assets/credential-entry-page-CHyGUHNE.js +1 -0
- package/dist/assets/credentials-page-u4m5eB0e.js +1 -0
- package/dist/assets/{csv-preview-rpZix2b7.js → csv-preview-D1DFyAyk.js} +2 -2
- package/dist/assets/danger-zone-redirect-page-pm7xtA64.js +1 -0
- package/dist/assets/debug-page-BiRFASyO.js +4 -0
- package/dist/assets/deploy-dialogs-BQGFr3pp.js +1 -0
- package/dist/assets/detail-card-BTciodin.js +1 -0
- package/dist/assets/detail-drawer-svbxV7k9.js +1 -0
- package/dist/assets/detail-panel-stop-button-DvPi_A52.js +1 -0
- package/dist/assets/developer-page-YJ4ePRAY.js +1 -0
- package/dist/assets/devices-redirect-page-Bc3d-ANN.js +1 -0
- package/dist/assets/dictation-overlay-page-CV5-bWnC.js +1 -0
- package/dist/assets/diff-rows-DzBJ95DT.js +1 -0
- package/dist/assets/document-viewer-page-B9aeVcPf.js +1 -0
- package/dist/assets/ellipsis-vertical-npNyglhR.js +1 -0
- package/dist/assets/emails-page-DuxmJeBh.js +1 -0
- package/dist/assets/environment-store-Cb7OK6xz.js +1 -0
- package/dist/assets/esm-BFMxsKfC.js +2 -0
- package/dist/assets/esm-BWaPHKOl.js +2 -0
- package/dist/assets/esm-B_9x3_5A.js +2 -0
- package/dist/assets/esm-BmkPJcrm.js +1 -0
- package/dist/assets/esm-C8_GJq6u.js +1 -0
- package/dist/assets/esm-CvsVyyLL.js +2 -0
- package/dist/assets/esm-D8F0P9NS.js +1 -0
- package/dist/assets/esm-DLD7mc5e.js +2 -0
- package/dist/assets/esm-lFkAo6qR.js +2 -0
- package/dist/assets/file-editor-qyflOek_.js +1 -0
- package/dist/assets/folder-open-8sWiN1cw.js +1 -0
- package/dist/assets/format-countdown-Cge3iaM1.js +1 -0
- package/dist/assets/general-page-CplJ3sOI.js +1 -0
- package/dist/assets/hatching-screen-tqPPQDHG.js +1 -0
- package/dist/assets/home-page-route-CMsbxqsW.js +1 -0
- package/dist/assets/hosting-screen-7idZudJ8.js +1 -0
- package/dist/assets/icons-CSdHOix6.js +1 -0
- package/dist/assets/identity-page-route-C4EAb-ac.js +7 -0
- package/dist/assets/index-2ECSWhtU.css +2 -0
- package/dist/assets/index-7XDiAJ-A.js +357 -0
- package/dist/assets/inspect-page-DsXykArJ.js +9 -0
- package/dist/assets/integrations-page-CmMVSsvu.js +1 -0
- package/dist/assets/{intelligence-DNb2No5j.js → intelligence-DwVUW6jm.js} +1 -1
- package/dist/assets/{intelligence-cL2kPl3v.js → intelligence-JlruxYAh.js} +1 -1
- package/dist/assets/intelligence-layout-DKknlxHu.js +1 -0
- package/dist/assets/keyboard-shortcuts-redirect-page-CFu5x117.js +1 -0
- package/dist/assets/{latest-assistant-text-DCyUvxgH.js → latest-assistant-text-CVRVSoFg.js} +2 -2
- package/dist/assets/library-detail-page-CKFkI0QY.js +1 -0
- package/dist/assets/library-page-dIrR1lib.js +1 -0
- package/dist/assets/login-page-Bca-1DK6.js +1 -0
- package/dist/assets/logout-page-BzAORi0q.js +1 -0
- package/dist/assets/logs-layout-BsqrLQee.js +1 -0
- package/dist/assets/markdown-preview-DLXGytZI.js +1 -0
- package/dist/assets/media-preview-daMlnyj8.js +1 -0
- package/dist/assets/memory-page-route-CX1I7izG.js +2 -0
- package/dist/assets/memory-router-playground-page-Mk3rfyGO.js +1 -0
- package/dist/assets/message-files-panel-D-C9C2PJ.js +1 -0
- package/dist/assets/metric-card-Bij5WGzs.js +1 -0
- package/dist/assets/notifications-page-C6zUs2x1.js +1 -0
- package/dist/assets/{oauth-complete-page-Bh6VG8SS.js → oauth-complete-page-CuNDqPAt.js} +1 -1
- package/dist/assets/{oauth-popup-complete-page-6YLSOCV_.js → oauth-popup-complete-page-hRc3yLWH.js} +2 -2
- package/dist/assets/onboarding-BbtVI8KM.js +1 -0
- package/dist/assets/onboarding-BoaKLlZ5.js +1 -0
- package/dist/assets/page-empty-state-BrGkTMcK.js +1 -0
- package/dist/assets/page-shell-DtdXurhX.js +1 -0
- package/dist/assets/pairing-page-CwLe0EJV.js +1 -0
- package/dist/assets/password-reset-page-C7qvqEJQ.js +1 -0
- package/dist/assets/{pdf-a3pPuuVL.js → pdf-fWDhmWcw.js} +1 -1
- package/dist/assets/pdf-file-preview-DbwHMWey.js +1 -0
- package/dist/assets/pdf.worker.min-Dr1KORA9.mjs +31 -0
- package/dist/assets/personality-page-Ci_b1dH9.js +1 -0
- package/dist/assets/plans-page-CyqILV_j.js +1 -0
- package/dist/assets/platform-loopback-page-CgXx1oDQ.js +1 -0
- package/dist/assets/plugin-detail-page-CvC_LUz2.js +1 -0
- package/dist/assets/plugins-page-9LuPE9IY.js +1 -0
- package/dist/assets/preview-error-DbAQP8oG.js +1 -0
- package/dist/assets/privacy-page-OIOZKgWi.js +1 -0
- package/dist/assets/privacy-screen-DFnrbIrM.js +1 -0
- package/dist/assets/provider-callback-page-DGVehvIp.js +1 -0
- package/dist/assets/provider-key-CUAJZvaQ.js +1 -0
- package/dist/assets/provider-signup-page-B5gnrbym.js +1 -0
- package/dist/assets/{provisioning-targets-CE25g21J.js → provisioning-targets-BbLfumae.js} +1 -1
- package/dist/assets/quick-input-page-Ccy-FS5S.js +1 -0
- package/dist/assets/react-DPM_L_aA.js +12 -0
- package/dist/assets/repeat-DVEpBLT_.js +1 -0
- package/dist/assets/research-mock-page-DqfkGU9x.js +1 -0
- package/dist/assets/research-onboarding-route-D3qFv6SM.js +50 -0
- package/dist/assets/review-terms-screen-BD3wP3KC.js +1 -0
- package/dist/assets/schedules-B_SL_iV4.js +1 -0
- package/dist/assets/schedules-page-D64tvhuZ.js +1 -0
- package/dist/assets/security-redirect-page-CWR-HICc.js +1 -0
- package/dist/assets/select-assistant-screen-SfWB0oQ2.js +1 -0
- package/dist/assets/self-hosted-servers-BHF9gq8j.js +1 -0
- package/dist/assets/service-form-controls-DNfWnjSp.js +1 -0
- package/dist/assets/setting-row-DRwmii99.js +1 -0
- package/dist/assets/settings-divider-X9YnFIFQ.js +1 -0
- package/dist/assets/settings-gjWN0WQO.js +3 -0
- package/dist/assets/settings-iLTzqZW8.js +3 -0
- package/dist/assets/settings-layout-C2Um5qit.js +1 -0
- package/dist/assets/share-feedback-modal-BzV03dUO.js +2 -0
- package/dist/assets/sidebar-tree-C1t1xfKD.js +1 -0
- package/dist/assets/signup-page-Dyhm65FW.js +1 -0
- package/dist/assets/signup-shell-CSThcwPa.js +1 -0
- package/dist/assets/skill-detail-page-Cja0k8_e.js +2 -0
- package/dist/assets/skill-detail-panel-BIOL410z.js +1 -0
- package/dist/assets/skill-icon-Me8DDEMt.js +1 -0
- package/dist/assets/skill-removal-dialog-bN91N7f8.js +1 -0
- package/dist/assets/skills-page-CYogTXmH.js +1 -0
- package/dist/assets/sounds-page-DAy2o3wO.js +1 -0
- package/dist/assets/start-screen-DyyYavfM.js +1 -0
- package/dist/assets/status-badge-pill-BAkXhxwa.js +1 -0
- package/dist/assets/stt-language-picker-modal-CpGwbd4g.js +1 -0
- package/dist/assets/subagent-detail-panel-330bH7ee.js +4 -0
- package/dist/assets/superpowers-page-D6wv3GWO.js +1 -0
- package/dist/assets/system-events-page-CFN8tMUJ.js +1 -0
- package/dist/assets/system-events-redirect-page-BarOgFkA.js +1 -0
- package/dist/assets/text-preview-CZeqyzdw.js +1 -0
- package/dist/assets/theme-stage-page-Pcnh0PTQ.js +1 -0
- package/dist/assets/{tiptap-document-editor-sg7gdh_H.js → tiptap-document-editor-ZZmtZ799.js} +30 -30
- package/dist/assets/tool-detail-panel-BgCSb_m5.js +12 -0
- package/dist/assets/trait-cycle-row-BWNJ21g4.js +1 -0
- package/dist/assets/upgrade-cancel-page-ByVEWPeH.js +1 -0
- package/dist/assets/upgrade-success-page-iAPLJbee.js +1 -0
- package/dist/assets/usage-redirect-page-BHd-7in5.js +1 -0
- package/dist/assets/use-assistant-identity-details-oVmPdjVe.js +1 -0
- package/dist/assets/use-checkout-dismiss-refresh-BO2cN2i8.js +1 -0
- package/dist/assets/use-edge-swipe-back-CzESg8qG.js +2 -0
- package/dist/assets/use-hotkey-recorder-CY089_4p.js +1 -0
- package/dist/assets/use-invite-link-dialog-Ck-LquhT.js +1 -0
- package/dist/assets/use-platform-assistant-id-DcVWp7KY.js +1 -0
- package/dist/assets/use-return-to-short-circuit-NDSwANeI.js +1 -0
- package/dist/assets/use-side-list-room-DQbUPFcU.js +1 -0
- package/dist/assets/use-skill-actions-CNBx-WS1.js +1 -0
- package/dist/assets/use-skill-detail-files-BGIXJykk.js +1 -0
- package/dist/assets/use-supports-credentials-settings-C6S_OHMP.js +1 -0
- package/dist/assets/use-transcript-message-by-id-Dqm1PMu3.js +1 -0
- package/dist/assets/use-truncated-blob-text-DLF_hf3O.js +1 -0
- package/dist/assets/vendor-WUN87CSE.js +385 -0
- package/dist/assets/voice-page-nBfEMyWs.js +1 -0
- package/dist/assets/weather-forecast-display-B6j-V-yS.js +1 -0
- package/dist/assets/web-CE-RjE8i.js +1 -0
- package/dist/assets/web-Cv_J7__I.js +1 -0
- package/dist/assets/web-Cw24uxYA.js +1 -0
- package/dist/assets/web-DDFO9PaS.js +1 -0
- package/dist/assets/web-DL2rv-Fb.js +1 -0
- package/dist/assets/web-DPEGYPrR.js +1 -0
- package/dist/assets/web-Q8lSPj8Z.js +1 -0
- package/dist/assets/web-kKGZ0Pbn.js +1 -0
- package/dist/assets/web-pwf5Vh3V.js +1 -0
- package/dist/assets/welcome-screen-BrwdmDqM.js +1 -0
- package/dist/assets/workflow-detail-panel-DcTQSyju.js +1 -0
- package/dist/assets/workspace-page-Dwfwnkh5.js +1 -0
- package/dist/assets/{xterm-QkObDWKu.js → xterm-DfM4JBPp.js} +1 -1
- package/dist/assets/xterm-addon-fit-DuBTfuI9.js +1 -0
- package/dist/images/integrations/ATTRIBUTION.md +10 -5
- package/dist/images/integrations/calendly.svg +1 -0
- package/dist/images/integrations/eventbrite.svg +1 -0
- package/dist/images/integrations/monday.svg +1 -0
- package/dist/index.html +7 -336
- package/package.json +1 -1
- package/dist/assets/AnimatePresence-BkWQRluv.js +0 -9
- package/dist/assets/Combination-kHxEP36G.js +0 -41
- package/dist/assets/QueryClientProvider-BPZM68-A.js +0 -1
- package/dist/assets/Trans-CBhhVbOk.js +0 -1
- package/dist/assets/about-page-hURQzaZb.js +0 -1
- package/dist/assets/account-page-BUHRzIQn.js +0 -1
- package/dist/assets/account-shell-Y97PMm-a.js +0 -1
- package/dist/assets/acp-run-actions-DznGEBjQ.js +0 -1
- package/dist/assets/acp-run-detail-panel-CVPDXyP6.js +0 -5
- package/dist/assets/acp-run-store-D8roCscD.js +0 -1
- package/dist/assets/activity-steps-panel-BzTDFCQ4.js +0 -1
- package/dist/assets/add-credential-modal-aeUdZtSp.js +0 -1
- package/dist/assets/add-credits-modal-CtS-PzoH.js +0 -1
- package/dist/assets/ai-page-C6zXOVyP.js +0 -1
- package/dist/assets/android-billing-handoff-BoSQm4gg.js +0 -1
- package/dist/assets/animate-CuPjEtk6.js +0 -1
- package/dist/assets/animated-avatar-DAJHVYXE.js +0 -1
- package/dist/assets/api-BUuIGDig.js +0 -1
- package/dist/assets/api-key-screen-DauZKmq9.js +0 -1
- package/dist/assets/app-card-B5AFFdUO.js +0 -1
- package/dist/assets/app-info-CBSIGREh.js +0 -1
- package/dist/assets/apple-logo-GkgGOZWf.js +0 -1
- package/dist/assets/archive-DMKVAVAX.js +0 -1
- package/dist/assets/archive-redirect-page-DXqjPmpK.js +0 -1
- package/dist/assets/arrow-down-to-line-CJ0OBlcT.js +0 -1
- package/dist/assets/arrow-left-DUklm7Fd.js +0 -1
- package/dist/assets/arrow-right-De7tYwD7.js +0 -1
- package/dist/assets/arrow-up-CijF4S8i.js +0 -1
- package/dist/assets/assistant-feature-flag-store-Co_o5uD3.js +0 -1
- package/dist/assets/assistant-identity-store-DBkGjqzV.js +0 -1
- package/dist/assets/assistant-status-panel-DYkXgK0D.js +0 -1
- package/dist/assets/audio-context-YNIG4zMo.js +0 -1
- package/dist/assets/auth-store-BVjw4Y6z.js +0 -2
- package/dist/assets/auth-welcome-screen-DbDu2DKV.js +0 -1
- package/dist/assets/avatar-bundled-components-C1i6ys8w.js +0 -1
- package/dist/assets/avatar-random-BOjdaclE.js +0 -1
- package/dist/assets/avatar-renderer-CnJd2PqC.js +0 -1
- package/dist/assets/avatar-subagent-CdgpbwL0.js +0 -1
- package/dist/assets/avatar-svg-compositor-DxBmLeF3.js +0 -1
- package/dist/assets/avatar-tone-D_3T6CNS.js +0 -1
- package/dist/assets/background-task-actions-Cs3pTNVl.js +0 -1
- package/dist/assets/background-task-detail-panel-BWAwy3I3.js +0 -1
- package/dist/assets/background-task-store-Ba89lNRi.js +0 -1
- package/dist/assets/ban-JFtQ_88n.js +0 -1
- package/dist/assets/bell-B3GoRAIC.js +0 -1
- package/dist/assets/billing-page-FxI0W3-_.js +0 -3
- package/dist/assets/billing-redirect-page-l6nC_qa5.js +0 -1
- package/dist/assets/bookmarks-page-6p-UochF.js +0 -1
- package/dist/assets/brain-lgsb4JhV.js +0 -1
- package/dist/assets/browser-BaGW19xY.js +0 -2
- package/dist/assets/browser-timezone-DEQubHhx.js +0 -1
- package/dist/assets/bug-DJjWtfUu.js +0 -1
- package/dist/assets/build-state-ChDL0BPH.js +0 -1
- package/dist/assets/bundle-confirm-page-9jTfMrek.js +0 -1
- package/dist/assets/bundle-mjs-CctC_00U.js +0 -1
- package/dist/assets/button-B1kEAcLt.js +0 -1
- package/dist/assets/by-tool-use-id-index-DOOfRauy.js +0 -1
- package/dist/assets/calendar-Bbg9LoLZ.js +0 -1
- package/dist/assets/camera-DOhkFhC8.js +0 -1
- package/dist/assets/card-B4b9cF6X.js +0 -1
- package/dist/assets/channels-DU7UcoR_.js +0 -1
- package/dist/assets/channels-P8K1t248.js +0 -1
- package/dist/assets/channels-page-route-DBtIRtsL.js +0 -9
- package/dist/assets/chart-column-BSXp3tJF.js +0 -1
- package/dist/assets/chat-BG7p3zq1.js +0 -3
- package/dist/assets/chat-Bfo3dMB3.js +0 -1
- package/dist/assets/chat-avatar-DM2DBsml.js +0 -1
- package/dist/assets/chat-layout-slots-store-D_NI8Xtw.js +0 -1
- package/dist/assets/chat-markdown-message-CTuuKxjN.js +0 -1
- package/dist/assets/check-bDVYejGM.js +0 -1
- package/dist/assets/checkbox--DYEubRE.js +0 -1
- package/dist/assets/checkout-continuation-LLv0HLko.js +0 -1
- package/dist/assets/checkout-page-B14XHmIb.js +0 -1
- package/dist/assets/checkout-return-target-BX6588K4.js +0 -1
- package/dist/assets/chevron-down-D437oaYt.js +0 -1
- package/dist/assets/chevron-left-C51UUK4r.js +0 -1
- package/dist/assets/chevron-right-D5lPX854.js +0 -1
- package/dist/assets/chevron-up-B_I9Uakl.js +0 -1
- package/dist/assets/chunk-5KNZJZUH-CPFsMQoz.js +0 -4
- package/dist/assets/circle-alert-BaeJJrSp.js +0 -1
- package/dist/assets/circle-check-CnoFVsRZ.js +0 -1
- package/dist/assets/circle-check-big-CHpJAmSB.js +0 -1
- package/dist/assets/circle-minus--pYdZe0n.js +0 -1
- package/dist/assets/circle-x-BnqzdPia.js +0 -1
- package/dist/assets/client-feature-flag-store-BmjgGl9P.js +0 -1
- package/dist/assets/client-perf-CL-Sfpnu.js +0 -1
- package/dist/assets/client.gen-D1UKq9QZ.js +0 -6
- package/dist/assets/clipboard-copy-BFyCoPu3.js +0 -1
- package/dist/assets/clock-HLo0irRS.js +0 -1
- package/dist/assets/cloud-6GKvvsQ6.js +0 -1
- package/dist/assets/cloud-off-B8SagsfP.js +0 -1
- package/dist/assets/cn-naJKasky.js +0 -1
- package/dist/assets/code-B7j8vdg9.js +0 -1
- package/dist/assets/coins-S_-Fmv_r.js +0 -1
- package/dist/assets/command-palette-C0x3z7aQ.js +0 -1
- package/dist/assets/command-palette-window-page-BShi7rwo.js +0 -1
- package/dist/assets/common-C7YGlfJZ.js +0 -1
- package/dist/assets/common-DFfCPRFe.js +0 -1
- package/dist/assets/community-page-ChiOX6Op.js +0 -1
- package/dist/assets/companion-surface-BYj8yxCS.js +0 -1
- package/dist/assets/companion-surface-page-HYtLs0-t.js +0 -1
- package/dist/assets/composer-settings-BCehrZgj.js +0 -1
- package/dist/assets/confirm-dialog-EPYSBP_B.js +0 -1
- package/dist/assets/connect-page-tyHxf7TL.js +0 -1
- package/dist/assets/consent-controls-C7U2N-h8.js +0 -1
- package/dist/assets/consent-cuDRWUkB.js +0 -1
- package/dist/assets/contacts-CotcPejk.js +0 -1
- package/dist/assets/contacts-E-8UOrGK.js +0 -1
- package/dist/assets/contacts-gateway-BLGKdcif.js +0 -1
- package/dist/assets/contacts-page-route-KVjx4fqm.js +0 -1
- package/dist/assets/conversation-cache-CrybogTL.js +0 -1
- package/dist/assets/conversation-navigation-Ck_iLhjv.js +0 -1
- package/dist/assets/conversation-queries-Clrll8jF.js +0 -1
- package/dist/assets/conversation-selection-BVLi6RIL.js +0 -1
- package/dist/assets/conversation-store-BHWyRtQs.js +0 -1
- package/dist/assets/copy-to-clipboard-Blihejp9.js +0 -1
- package/dist/assets/cpu-KP1UdyS1.js +0 -1
- package/dist/assets/create-selectors-sLdtxUZQ.js +0 -1
- package/dist/assets/createLucideIcon-CMfEC_aW.js +0 -1
- package/dist/assets/credential-entry-page-Cs6FHnUn.js +0 -1
- package/dist/assets/credentials-page-D8G-44GI.js +0 -1
- package/dist/assets/danger-zone-redirect-page-Cds_krO3.js +0 -1
- package/dist/assets/debug-page-BMqKvkSo.js +0 -4
- package/dist/assets/deploy-dialogs-DqkTJUGk.js +0 -1
- package/dist/assets/deploy-store-FijtU8HL.js +0 -1
- package/dist/assets/desktop-voice-activity-DUGtHbRg.js +0 -1
- package/dist/assets/detail-card-D9EAxXI8.js +0 -1
- package/dist/assets/detail-drawer-D-CPwyBO.js +0 -1
- package/dist/assets/detail-panel-stop-button-ClfJeo-s.js +0 -1
- package/dist/assets/detail-shell-CNYbfTO7.js +0 -1
- package/dist/assets/developer-page-C7o31rYB.js +0 -1
- package/dist/assets/devices-redirect-page-CeKwKvN-.js +0 -1
- package/dist/assets/diagnostics-BC7vRbDB.js +0 -1
- package/dist/assets/dictation-overlay-C-whP7yL.js +0 -1
- package/dist/assets/dictation-overlay-page-sfEwzU14.js +0 -1
- package/dist/assets/diff-rows-D_K2ZMJ5.js +0 -1
- package/dist/assets/discord-logo-sC02ywjh.js +0 -1
- package/dist/assets/dist-BnrwumrD.js +0 -1
- package/dist/assets/dist-Cr8OiiXj.js +0 -1
- package/dist/assets/dist-Ct3qbbty.js +0 -1
- package/dist/assets/dist-Czhl4zX3.js +0 -1
- package/dist/assets/dist-D3VsKBK8.js +0 -1
- package/dist/assets/dist-DaY2OuMX.js +0 -1
- package/dist/assets/doctor-handoff-store-DEirTOZw.js +0 -1
- package/dist/assets/document-viewer-container-yyhVIyAB.js +0 -2
- package/dist/assets/document-viewer-page-Co_sxuvK.js +0 -1
- package/dist/assets/download-BIMKsVBw.js +0 -1
- package/dist/assets/edge-swipe-arbiter-store-ByePvbty.js +0 -1
- package/dist/assets/edit-chat-session-Cm8kKicc.js +0 -1
- package/dist/assets/effective-timezone-BW38Gdmx.js +0 -1
- package/dist/assets/ellipsis-DLGzVN7S.js +0 -1
- package/dist/assets/ellipsis-vertical-BJaOQqv_.js +0 -1
- package/dist/assets/emails-page-a1sfkbkL.js +0 -1
- package/dist/assets/environment-store-DKl9RR50.js +0 -1
- package/dist/assets/esm-BAE-_6f7.js +0 -1
- package/dist/assets/esm-BTQ42Hgz.js +0 -2
- package/dist/assets/esm-BnXPDdij.js +0 -2
- package/dist/assets/esm-CC077SPL.js +0 -2
- package/dist/assets/esm-CbZfwR7m.js +0 -2
- package/dist/assets/esm-DA5sciAy.js +0 -2
- package/dist/assets/esm-DbODHbQp.js +0 -2
- package/dist/assets/esm-Doko4a-G.js +0 -2
- package/dist/assets/esm-KUiHjb53.js +0 -1
- package/dist/assets/esm-uRwymN1a.js +0 -1
- package/dist/assets/event-bus-CN0zipw2.js +0 -1
- package/dist/assets/external-anchor-CJ2uCBN2.js +0 -1
- package/dist/assets/external-link-cVsOyP-B.js +0 -1
- package/dist/assets/external-urls-BE71Yb2T.js +0 -1
- package/dist/assets/eye-Bkw-NEUk.js +0 -1
- package/dist/assets/eye-bbox-crwIELLL.js +0 -1
- package/dist/assets/eye-off-BtRToWVw.js +0 -1
- package/dist/assets/feature-flag-catalog-DWnmasL0.js +0 -1
- package/dist/assets/feed-item-status-actions-Bw41rlaj.js +0 -1
- package/dist/assets/field-quMum4Ij.js +0 -1
- package/dist/assets/file-DukGjoT9.js +0 -1
- package/dist/assets/file-code-KOdjB_EC.js +0 -1
- package/dist/assets/file-editor-Cx3p3Rxf.js +0 -1
- package/dist/assets/file-markdown-D43Nsqm2.js +0 -2
- package/dist/assets/file-plus-BE5pS64_.js +0 -1
- package/dist/assets/file-text-CexzqcsX.js +0 -1
- package/dist/assets/first-run-scope-DITgHc6G.js +0 -1
- package/dist/assets/folder-BshXYSOQ.js +0 -1
- package/dist/assets/folder-open-Dp3CKxO5.js +0 -1
- package/dist/assets/format-date-C4mrDYY6.js +0 -1
- package/dist/assets/format-usd-Be34KtzB.js +0 -1
- package/dist/assets/funnel-events-Dl6Nt7nA.js +0 -1
- package/dist/assets/general-page-rg_u_yPE.js +0 -1
- package/dist/assets/get-memory-stats-DxspWLxk.js +0 -1
- package/dist/assets/globe-DJ3y3hQh.js +0 -1
- package/dist/assets/haptics-BS-glrYv.js +0 -2
- package/dist/assets/hard-drive-CXysKjuo.js +0 -1
- package/dist/assets/hard-navigate-BVv7q79D.js +0 -1
- package/dist/assets/hatching-screen-8lXCy9WG.js +0 -1
- package/dist/assets/heart-DF_JiyEl.js +0 -1
- package/dist/assets/home-page-route-QunjBmtS.js +0 -1
- package/dist/assets/hosting-screen-B-5gejYX.js +0 -1
- package/dist/assets/i18n-BtV8MCsZ.js +0 -15
- package/dist/assets/identity-_6tLszkL.js +0 -1
- package/dist/assets/identity-page-route-B0XGpYIE.js +0 -7
- package/dist/assets/image-B4sohCAa.js +0 -1
- package/dist/assets/inbox-D8dK1dMC.js +0 -1
- package/dist/assets/index-C9XKdblY.css +0 -2
- package/dist/assets/index-Gjnx86x6.js +0 -11
- package/dist/assets/infiniteQueryOptions-DTCCTa10.js +0 -1
- package/dist/assets/info-C-HjpKAE.js +0 -1
- package/dist/assets/ingest-OJG7HVUh.js +0 -1
- package/dist/assets/input-ChbJ2nzd.js +0 -1
- package/dist/assets/inspect-page-bs_j1c9j.js +0 -9
- package/dist/assets/installed-plugins-query-C8omZZV4.js +0 -1
- package/dist/assets/integration-icon-C6Y4VGkv.js +0 -1
- package/dist/assets/integrations-page-D7ENik74.js +0 -1
- package/dist/assets/intelligence-layout-gaexcakY.js +0 -1
- package/dist/assets/interactive-target-h9aYOKy2.js +0 -1
- package/dist/assets/internal-thread-actions-DkNfSArh.js +0 -1
- package/dist/assets/invalidate-memory-queries-DWuNUXFq.js +0 -1
- package/dist/assets/invalidate-plugin-queries-CBgy5O6i.js +0 -1
- package/dist/assets/is-electron-D45bjFI8.js +0 -1
- package/dist/assets/jsx-runtime-COOF1INC.js +0 -1
- package/dist/assets/key-round-BEQmZ4Ji.js +0 -1
- package/dist/assets/keyboard-shortcuts-redirect-page-BDuYwofA.js +0 -1
- package/dist/assets/laptop-XN6nYvdB.js +0 -1
- package/dist/assets/layout-grid-Cyrnt_YU.js +0 -1
- package/dist/assets/library-detail-page-DXCZhY4s.js +0 -1
- package/dist/assets/library-page-CKAu2a08.js +0 -1
- package/dist/assets/lightbulb-BSnKqAOd.js +0 -1
- package/dist/assets/link-2-Di62Fo_i.js +0 -1
- package/dist/assets/link-CbkkEBEX.js +0 -1
- package/dist/assets/list-Dtwz1hOH.js +0 -1
- package/dist/assets/list-row-BvCm9O6y.js +0 -1
- package/dist/assets/llm-model-catalog-Bk0q_XG4.js +0 -1
- package/dist/assets/loader-circle-DZ65N8bz.js +0 -1
- package/dist/assets/local-mode-BQ8gp0wB.js +0 -1
- package/dist/assets/local-runtime-upgrade-BXc9x-7Y.js +0 -1
- package/dist/assets/local-settings-D9SNRv4p.js +0 -1
- package/dist/assets/log-in-CGeZfDEs.js +0 -1
- package/dist/assets/log-out-DPkGVfNH.js +0 -1
- package/dist/assets/login-flow-CrSxmLFE.js +0 -1
- package/dist/assets/login-page-uUo0uRmJ.js +0 -1
- package/dist/assets/logout-page-BYZfOpa1.js +0 -1
- package/dist/assets/logs-layout-B34XKM-k.js +0 -1
- package/dist/assets/mail-CqdA6Y_p.js +0 -1
- package/dist/assets/markdown-preview-eCDa4paC.js +0 -1
- package/dist/assets/media-preview-1xn1SAn9.js +0 -1
- package/dist/assets/memory-page-route-DiVaW98S.js +0 -2
- package/dist/assets/memory-router-playground-page-DgILWgQu.js +0 -1
- package/dist/assets/menu-DPM2p9S5.js +0 -1
- package/dist/assets/message-circle-DBYzIjYB.js +0 -1
- package/dist/assets/message-content-uWZUlo6D.js +0 -1
- package/dist/assets/message-files-panel-Bv-5dvcD.js +0 -1
- package/dist/assets/message-square-XpKWNcyv.js +0 -1
- package/dist/assets/message-square-text-CvSl10LZ.js +0 -1
- package/dist/assets/messages-BXHTKK_v.js +0 -13
- package/dist/assets/metric-card-CTonLoYE.js +0 -1
- package/dist/assets/mic-DQbnjgmt.js +0 -1
- package/dist/assets/middleware-BmAQ4_8P.js +0 -1
- package/dist/assets/mime-sniff--WYdEIBE.js +0 -1
- package/dist/assets/minimize-2-DzL_lI8t.js +0 -1
- package/dist/assets/misc-dA4Wklt2.js +0 -1
- package/dist/assets/modal-_49mDK_d.js +0 -1
- package/dist/assets/monitor-BKwWxjph.js +0 -1
- package/dist/assets/moon-MfogEw5q.js +0 -1
- package/dist/assets/native-anchor-CmnMg6B6.js +0 -1
- package/dist/assets/native-biometric-DEP8Sr4X.js +0 -6
- package/dist/assets/native-deep-link--guFKiPO.js +0 -2
- package/dist/assets/native-file-DlQtjxJn.js +0 -2
- package/dist/assets/navigation-resolver-CRsrd5gh.js +0 -1
- package/dist/assets/not-found-BXR_4Uja.js +0 -1
- package/dist/assets/notice-BHeYlKvv.js +0 -1
- package/dist/assets/notifications-Dcgkgn8Q.js +0 -1
- package/dist/assets/notifications-page-CSH6gHaX.js +0 -1
- package/dist/assets/oauth-connection-utils-D_78dCYn.js +0 -1
- package/dist/assets/oauth-popup-DEDdbkj2.js +0 -1
- package/dist/assets/onboarding-D2bBWpx1.js +0 -1
- package/dist/assets/onboarding-DJeJhXd6.js +0 -1
- package/dist/assets/onboarding-layout-C9v6Q2QQ.js +0 -1
- package/dist/assets/onboarding-navigation-oNFNDeeW.js +0 -1
- package/dist/assets/onboarding-store-BhT1z8Wi.js +0 -1
- package/dist/assets/open-workspace-file-fIr0qcsc.js +0 -2
- package/dist/assets/operational-status-BdcYEcTh.js +0 -1
- package/dist/assets/optimistic-lifecycle-BlDyVYIt.js +0 -1
- package/dist/assets/page-empty-state-B_nQdAFR.js +0 -1
- package/dist/assets/page-shell-BHyGukA1.js +0 -1
- package/dist/assets/page-surface-store-D5IgLCtn.js +0 -1
- package/dist/assets/pairing-page-fVI54lsD.js +0 -1
- package/dist/assets/palette-BlX3XmVL.js +0 -1
- package/dist/assets/paperclip-Ce-wbj5L.js +0 -1
- package/dist/assets/password-reset-page-ClhMzYsx.js +0 -1
- package/dist/assets/pdf-file-preview-BjbSLoD9.js +0 -1
- package/dist/assets/pdf-preview-xa07R01f.js +0 -2
- package/dist/assets/pencil-1uDrqXvV.js +0 -1
- package/dist/assets/personality-page-CK3vkhkl.js +0 -1
- package/dist/assets/plans-page-CuZeAQhx.js +0 -1
- package/dist/assets/platform-detection-DUeD4WFO.js +0 -1
- package/dist/assets/platform-login-notice-B2ZwcEYp.js +0 -1
- package/dist/assets/platform-loopback-page-CMnaXj8y.js +0 -1
- package/dist/assets/play-D-HSCeZj.js +0 -1
- package/dist/assets/plug-AMxPbUcz.js +0 -1
- package/dist/assets/plugin-detail-page-D9Qk7GmS.js +0 -1
- package/dist/assets/plugins-page-Bm0hcoSf.js +0 -1
- package/dist/assets/plugins-surface-DB7dv9Hu.js +0 -1
- package/dist/assets/plus-rgqTRjE1.js +0 -1
- package/dist/assets/pointer-DktxhCd8.js +0 -1
- package/dist/assets/popover-GOTwOlgQ.js +0 -1
- package/dist/assets/prechat-Cl2-DnE_.js +0 -1
- package/dist/assets/prefs-CAMw44jD.js +0 -1
- package/dist/assets/preload-helper-BewR0kVT.js +0 -1
- package/dist/assets/preview-error-DW-EUl80.js +0 -1
- package/dist/assets/preview-skeleton-CLI9ptyu.js +0 -1
- package/dist/assets/privacy-page-D-a7l0YY.js +0 -1
- package/dist/assets/privacy-screen-CxwxgE4s.js +0 -1
- package/dist/assets/profile-pickers-D8XVv50L.js +0 -1
- package/dist/assets/progress-bar-C9zSzt4m.js +0 -1
- package/dist/assets/provider-callback-page-65a2DK0l.js +0 -1
- package/dist/assets/provider-key-CcPF1Zqp.js +0 -1
- package/dist/assets/provider-signup-page-BC86aF7W.js +0 -1
- package/dist/assets/proxy-CROyCGs8.js +0 -1
- package/dist/assets/public-asset-Dk1mdzbh.js +0 -1
- package/dist/assets/push-registration-D0zDMpTx.js +0 -2
- package/dist/assets/puzzle-PqInNnOi.js +0 -1
- package/dist/assets/queryOptions-DGyQTr3e.js +0 -1
- package/dist/assets/quick-input-page-DAf2lbri.js +0 -1
- package/dist/assets/react-DJZBPgpf.js +0 -1
- package/dist/assets/react-query.gen-C5widOeH.js +0 -1
- package/dist/assets/react-query.gen-C_GLKG7m.js +0 -1
- package/dist/assets/reduced-motion-B-KLzfs_.js +0 -1
- package/dist/assets/refresh-cw-BDh1a2sj.js +0 -1
- package/dist/assets/relative-time-COU7Zqre.js +0 -1
- package/dist/assets/remote-gateway-session-C3H0Oq0r.js +0 -1
- package/dist/assets/remove-from-device-dialog-CXmGFbKk.js +0 -1
- package/dist/assets/repeat-6uW-THNc.js +0 -1
- package/dist/assets/research-facts-gT4POsZw.js +0 -1
- package/dist/assets/research-mock-page-B41v4MzE.js +0 -1
- package/dist/assets/research-onboarding-persistence-Bnn7ljSq.js +0 -1
- package/dist/assets/research-onboarding-route-CbZ14lCf.js +0 -50
- package/dist/assets/research-results-view-BHXLkoKK.js +0 -3
- package/dist/assets/resolved-assistants-store-DEtotxhR.js +0 -1
- package/dist/assets/retire-confirm-dialog-1nxn6f4M.js +0 -1
- package/dist/assets/review-terms-screen-BsDHdmoO.js +0 -1
- package/dist/assets/rotate-ccw-BYcZOtjy.js +0 -1
- package/dist/assets/routes-C6ueuiMd.js +0 -1
- package/dist/assets/routes-Cly3ytK4.js +0 -24
- package/dist/assets/runtime-upgrade-banner-DC63rkQ7.js +0 -2
- package/dist/assets/sandbox-bridge-DSJSIgUC.js +0 -275
- package/dist/assets/schedules-BZzuRuQs.js +0 -1
- package/dist/assets/schedules-DVOFbt86.js +0 -1
- package/dist/assets/schedules-page-CjqAP78z.js +0 -1
- package/dist/assets/schemas-BNPZ_RzM.js +0 -39
- package/dist/assets/sdk.gen-BluU0h_N.js +0 -6
- package/dist/assets/sdk.gen-BuAyyHNm.js +0 -6
- package/dist/assets/sdk.gen-CrcsMCNX.js +0 -1
- package/dist/assets/search-DYHr3LM9.js +0 -1
- package/dist/assets/section-membership-Bma0R_Bn.js +0 -1
- package/dist/assets/security-redirect-page-C3VbbfyM.js +0 -1
- package/dist/assets/select-DmdFZj4l.js +0 -1
- package/dist/assets/select-assistant-screen-CV_3BKEH.js +0 -1
- package/dist/assets/self-hosted-servers-BMPYPayb.js +0 -1
- package/dist/assets/semver-CeGQrxWZ.js +0 -1
- package/dist/assets/send-1mFY4II3.js +0 -1
- package/dist/assets/setting-row-urcByt7n.js +0 -1
- package/dist/assets/settings-BggpKBtA.js +0 -3
- package/dist/assets/settings-C37vdp_B.js +0 -1
- package/dist/assets/settings-DSeJ7uGb.js +0 -3
- package/dist/assets/settings-divider-CYam_4yQ.js +0 -1
- package/dist/assets/settings-layout-CDRF6b06.js +0 -1
- package/dist/assets/settings-navigation-DyFIJJGF.js +0 -1
- package/dist/assets/share-feedback-modal-TnZsiNw9.js +0 -2
- package/dist/assets/shield-OLSnLaN7.js +0 -1
- package/dist/assets/shield-check-BuRfLkGi.js +0 -1
- package/dist/assets/sidebar-tree-Y1RDeJ9E.js +0 -1
- package/dist/assets/signup-page-DRzsOblS.js +0 -1
- package/dist/assets/signup-shell-DH0qR_2b.js +0 -1
- package/dist/assets/site-favicon-DLf2W4xi.js +0 -1
- package/dist/assets/skeleton-BV6nOVEl.js +0 -1
- package/dist/assets/skill-detail-page-3Wiz9A7q.js +0 -2
- package/dist/assets/skill-detail-panel-DbLFuSyn.js +0 -1
- package/dist/assets/skill-icon-D52BIuW4.js +0 -1
- package/dist/assets/skills-DASSBxT-.js +0 -1
- package/dist/assets/skills-page-DhKl7Mti.js +0 -1
- package/dist/assets/sliders-horizontal-BPa-_UE6.js +0 -1
- package/dist/assets/smartphone-P7vq0dcA.js +0 -1
- package/dist/assets/sound-manager-D8p3_c3W.js +0 -1
- package/dist/assets/sounds-page-CWBPL1YA.js +0 -1
- package/dist/assets/sparkles-D6kBPNlr.js +0 -1
- package/dist/assets/square-sQS2OW8v.js +0 -1
- package/dist/assets/src-BKET5Cno.js +0 -293
- package/dist/assets/star-C4JuiUip.js +0 -1
- package/dist/assets/start-screen-OMf-yHG3.js +0 -1
- package/dist/assets/status-badge-pill-MTA2Lfk-.js +0 -1
- package/dist/assets/stt-language-picker-modal-CmeO8yxD.js +0 -1
- package/dist/assets/subagent-detail-panel-CUW2rBET.js +0 -4
- package/dist/assets/subagent-store-BcbcFnS8.js +0 -3
- package/dist/assets/sun-Dtr03Yty.js +0 -1
- package/dist/assets/superpowers-page-CuvXfGPO.js +0 -1
- package/dist/assets/surface-parse-helpers-f-hT9LIR.js +0 -1
- package/dist/assets/swipe-action-reveal-BhA-hrfj.js +0 -1
- package/dist/assets/system-events-page-tEAEdDzA.js +0 -1
- package/dist/assets/system-events-redirect-page-BMSQQBAs.js +0 -1
- package/dist/assets/tag-DAsImP7W.js +0 -1
- package/dist/assets/target-zLlNzjMl.js +0 -1
- package/dist/assets/telegram-setup-wizard-BT6u6vcb.js +0 -1
- package/dist/assets/terminal-Bw8gHw-v.js +0 -1
- package/dist/assets/text-preview-qkra1xEh.js +0 -1
- package/dist/assets/theme-preferences-ysFQ1QCN.js +0 -1
- package/dist/assets/theme-stage-page-DiqUiOmJ.js +0 -1
- package/dist/assets/three-dot-indicator-rcDwZDFG.js +0 -1
- package/dist/assets/threshold-presets-DF7FTTlD.js +0 -1
- package/dist/assets/toast-BKrDuNtu.js +0 -1
- package/dist/assets/toggle-CdhdS_iC.js +0 -1
- package/dist/assets/tool-detail-panel-BR3PsmdK.js +0 -12
- package/dist/assets/transcript-message-body-shared-DWzxxSaD.js +0 -1
- package/dist/assets/trash-2-CVpEwOYZ.js +0 -1
- package/dist/assets/triangle-alert-B6J57Xfo.js +0 -1
- package/dist/assets/trust-rules-api-eZhPplXW.js +0 -1
- package/dist/assets/typed-storage-Bw4gW_Pk.js +0 -1
- package/dist/assets/typography-SdxpXI_m.js +0 -1
- package/dist/assets/upgrade-cancel-page-pljx8YOz.js +0 -1
- package/dist/assets/upgrade-success-page-CJUETwIe.js +0 -1
- package/dist/assets/upload-8ENnMpW_.js +0 -1
- package/dist/assets/usage-redirect-page-DBkOdl41.js +0 -1
- package/dist/assets/use-active-assistant-id-lxYJu99R.js +0 -1
- package/dist/assets/use-app-theme-CaWLhQW_.js +0 -1
- package/dist/assets/use-assistant-avatar-C2TgszRj.js +0 -1
- package/dist/assets/use-assistant-capability-De-35T6E.js +0 -1
- package/dist/assets/use-assistant-identity-details-rXIIiXr1.js +0 -1
- package/dist/assets/use-attachment-preview-BAX_ivri.js +0 -2
- package/dist/assets/use-attachment-squares-rU9s8st8.js +0 -1
- package/dist/assets/use-body-scroll-lock-8ObBdX00.js +0 -1
- package/dist/assets/use-bookmarks-BrjNq3T_.js +0 -1
- package/dist/assets/use-bundled-avatar-components-C6-AuQ2I.js +0 -2
- package/dist/assets/use-bus-subscription-DfxTm1-Q.js +0 -1
- package/dist/assets/use-checkout-dismiss-refresh-CjgC7Pck.js +0 -1
- package/dist/assets/use-command-palette-sections-tRUwMswg.js +0 -1
- package/dist/assets/use-copy-to-clipboard-B4c7SAc-.js +0 -1
- package/dist/assets/use-discord-nudge-BkpFjoOQ.js +0 -1
- package/dist/assets/use-edge-swipe-CCn4_Vm3.js +0 -1
- package/dist/assets/use-edge-swipe-back-xU9GuipH.js +0 -2
- package/dist/assets/use-edit-app-DDA6_WrI.js +0 -1
- package/dist/assets/use-effective-timezone-BfyKw5_H.js +0 -1
- package/dist/assets/use-element-size-CVF6o81H.js +0 -1
- package/dist/assets/use-hotkey-recorder-IMOc7G5D.js +0 -1
- package/dist/assets/use-invite-link-dialog-CvA_-72H.js +0 -1
- package/dist/assets/use-is-mobile-DYVRtRin.js +0 -1
- package/dist/assets/use-is-org-ready-B6oCKWeF.js +0 -1
- package/dist/assets/use-local-file-info-CSgzMBYt.js +0 -1
- package/dist/assets/use-media-query-BMHGif0t.js +0 -1
- package/dist/assets/use-obscure-credits-flag-CWxw1xHq.js +0 -1
- package/dist/assets/use-onboarding-login-CJ6HY3Pk.js +0 -1
- package/dist/assets/use-platform-assistant-id-DwSyMaOn.js +0 -1
- package/dist/assets/use-platform-gate-s29eeyq-.js +0 -1
- package/dist/assets/use-reduced-motion-CVyEdyEe.js +0 -1
- package/dist/assets/use-return-to-short-circuit-Bx5s2Syg.js +0 -1
- package/dist/assets/use-save-twilio-credentials-Zjhi1c0P.js +0 -1
- package/dist/assets/use-side-list-room-BT-2EM5d.js +0 -1
- package/dist/assets/use-skill-actions-BtnAACsE.js +0 -1
- package/dist/assets/use-skill-detail-files-B_E6xY9x.js +0 -1
- package/dist/assets/use-sticky-profiles-DpkWeMmN.js +0 -1
- package/dist/assets/use-stt-language-selection-BWJdaCRu.js +0 -1
- package/dist/assets/use-subagent-card-data-CfuRPesp.js +0 -1
- package/dist/assets/use-supports-bookmarks-Qhc5HpKD.js +0 -1
- package/dist/assets/use-supports-credentials-settings-BD0GXxL7.js +0 -1
- package/dist/assets/use-supports-inference-profiles-DS2ZLoNc.js +0 -1
- package/dist/assets/use-swipe-horizontal-B9YOWcB6.js +0 -1
- package/dist/assets/use-touch-mobile-hfZPfT1P.js +0 -1
- package/dist/assets/use-transcript-message-by-id-DfWH7JRN.js +0 -1
- package/dist/assets/use-transcript-messages-CFkvE46_.js +0 -3
- package/dist/assets/use-truncated-blob-text-DmnckNwK.js +0 -1
- package/dist/assets/use-voice-sample-preview-B8HUywXz.js +0 -1
- package/dist/assets/useInfiniteQuery-Dz6qbDTQ.js +0 -1
- package/dist/assets/useMutation-Cl7cazkm.js +0 -1
- package/dist/assets/useQueries-RuiDsyUH.js +0 -1
- package/dist/assets/useQuery-BtL9k7Sh.js +0 -1
- package/dist/assets/user-DqmJs6-I.js +0 -1
- package/dist/assets/user-plus-Bg01QRAF.js +0 -1
- package/dist/assets/users-DLjK4Ffo.js +0 -1
- package/dist/assets/utils-CAI1IDgW.js +0 -1
- package/dist/assets/viewer-store-CHptQmkY.js +0 -1
- package/dist/assets/voice-input-device-DsSHVzmw.js +0 -1
- package/dist/assets/voice-page-Dgcf5OOp.js +0 -1
- package/dist/assets/voice-providers-note-nJKW4coW.js +0 -1
- package/dist/assets/volume-2-DQKLkySB.js +0 -1
- package/dist/assets/weather-forecast-display-_NYO0wBC.js +0 -1
- package/dist/assets/web-8Dh87AZ1.js +0 -1
- package/dist/assets/web-BAQ66WKm.js +0 -1
- package/dist/assets/web-BFD28UZm.js +0 -1
- package/dist/assets/web-BcIK5wrq.js +0 -1
- package/dist/assets/web-C_sL6qhW.js +0 -1
- package/dist/assets/web-D0e5_5xl.js +0 -1
- package/dist/assets/web-D4Rr20FV.js +0 -1
- package/dist/assets/web-iI5WHtNC.js +0 -1
- package/dist/assets/web-qqG-3jDd.js +0 -1
- package/dist/assets/welcome-screen-DK4_01J3.js +0 -1
- package/dist/assets/widget-snapshot-OH8xHYY2.js +0 -1
- package/dist/assets/workflow-detail-panel-TqYAg0bB.js +0 -1
- package/dist/assets/workflow-kvRB4Mc5.js +0 -1
- package/dist/assets/workflow-status-B_zEZCnR.js +0 -1
- package/dist/assets/workflow-store-DH4q15s9.js +0 -1
- package/dist/assets/workspace-page-Dbwb2RCx.js +0 -1
- package/dist/assets/workspace-path-links-Y-WgBhhL.js +0 -1
- package/dist/assets/workspace-theme-tokens-DmrDqHwx.js +0 -1
- package/dist/assets/workspace-tree-query-DnEMWZ1K.js +0 -1
- package/dist/assets/wrench-ajjC5omI.js +0 -1
- package/dist/assets/x-nhRPd-Mz.js +0 -1
- package/dist/assets/xterm-addon-fit-DIrY4yvs.js +0 -1
- package/dist/assets/zap-Db0KA7N4.js +0 -1
- /package/dist/assets/{account-Cs9SXbU1.js → account-B6zEi6O8.js} +0 -0
- /package/dist/assets/{account-DWeaNEN6.js → account-WSklJ2-s.js} +0 -0
- /package/dist/assets/{app-types-CpnkPGh8.js → app-types-BSxLQFrc.js} +0 -0
- /package/dist/assets/{credential-requests-D74qo-et.js → credential-requests-DQ9WS6Rl.js} +0 -0
- /package/dist/assets/{credential-requests-BsHMMFoG.js → credential-requests-DUwvVpZo.js} +0 -0
- /package/dist/assets/{definitions-BKQ6A5IV.js → definitions-BTBjNf1i.js} +0 -0
- /package/dist/assets/{definitions-Bi8Nex3B.js → definitions-Dz0UVs0Z.js} +0 -0
- /package/dist/assets/{emoji-catalog-data-81v3IYMV.js → emoji-catalog-data-a3DXKyhe.js} +0 -0
- /package/dist/assets/{format-file-size-gDJ7ppQ0.js → format-file-size-BCpFMv3k.js} +0 -0
- /package/dist/assets/{home-C5CVL0Ta.js → home-BWUNWNMl.js} +0 -0
- /package/dist/assets/{home-QpGM3cDE.js → home-DJ6q91Qp.js} +0 -0
- /package/dist/assets/{library-mD_34-zu.js → library-Bu_eLt14.js} +0 -0
- /package/dist/assets/{library-a7r2rPRX.js → library-Diqzwx-J.js} +0 -0
- /package/dist/assets/{link-click-LjKsC7uu.js → link-click-DpfLT-iQ.js} +0 -0
- /package/dist/assets/{logs-DYhiKdQ8.js → logs-Bs19Ze4Q.js} +0 -0
- /package/dist/assets/{logs-CwEMxFk_.js → logs-FJQpRVDW.js} +0 -0
- /package/dist/assets/{machine-sizes-DOMlCbKb.js → machine-sizes-C3ptouhz.js} +0 -0
- /package/dist/assets/{onboarding-step-layout-_Fbi43YU.js → onboarding-step-layout-BlSoa02H.js} +0 -0
- /package/dist/assets/{plugin-attribution-7tkVwdle.js → plugin-attribution-c6x0DrZM.js} +0 -0
- /package/dist/assets/{profile-metadata-BPGeIeNj.js → profile-metadata-Bk4pj7o_.js} +0 -0
- /package/dist/assets/{radio-card-nav-C67JvVkE.js → radio-card-nav-DlRweN3g.js} +0 -0
- /package/dist/assets/{remote-web-Btj-E-og.js → remote-web-9YsnKwue.js} +0 -0
- /package/dist/assets/{remote-web-yAGitwPt.js → remote-web-bapYzahN.js} +0 -0
- /package/dist/assets/{chunk-jRWAZmH_.js → rolldown-runtime-BM3Ffeng.js} +0 -0
- /package/dist/assets/{schedules-K8jULmC8.js → schedules-CYD1CzCP.js} +0 -0
- /package/dist/assets/{schedules-Dd44UKOx.js → schedules-DhwNRBkz.js} +0 -0
- /package/dist/assets/{terminal-CazBoirG.js → terminal-7pMYRiby.js} +0 -0
- /package/dist/assets/{terminal-DP646Xj3.js → terminal-BMbpDjYx.js} +0 -0
- /package/dist/assets/{src-CfUWwwYf.css → vendor-CfUWwwYf.css} +0 -0
- /package/dist/assets/{workspace-Dva7bu2g.js → workspace-BAHtR2RN.js} +0 -0
- /package/dist/assets/{workspace-xgS4oaDo.js → workspace-BnkQd2SU.js} +0 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-BM3Ffeng.js";import{_ as a,b as o,t as s,y as c}from"./react-DPM_L_aA.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},ee=50,te=/\(error: (.*)\)/,ne=/captureMessage|captureException/;function re(...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=te.test(n)?n.replace(te,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ee+r)break}}return ae(i.slice(r))}}function ie(e){return Array.isArray(e)?re(...e):e}function ae(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(oe(t).function||``)&&t.pop(),t.reverse(),ne.test(oe(t).function||``)&&(t.pop(),ne.test(oe(t).function||``)&&t.pop()),t.slice(0,ee).map(e=>({...e,filename:e.filename||oe(t).filename,function:e.function||`?`}))}function oe(e){return e[e.length-1]||{}}var se=`<anonymous>`;function O(e){try{return!e||typeof e!=`function`?se:e.name||se}catch{return se}}function ce(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 le(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var ue={},de={};function fe(e,t){return ue[e]=ue[e]||[],ue[e].push(t),()=>{let n=ue[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function pe(e,t){if(!de[e]){de[e]=!0;try{t()}catch(t){l&&D.error(`Error while instrumenting ${e}`,t)}}}function me(e,t){let n=e&&ue[e];if(n)for(let r of n)try{r(t)}catch(t){l&&D.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${O(r)}\nError:`,t)}}var he=null;function ge(e){let t=`error`;fe(t,e),pe(t,_e)}function _e(){he=u.onerror,u.onerror=function(e,t,n,r,i){return me(`error`,{column:r,error:i,line:n,msg:e,url:t}),he?he.apply(this,arguments):!1},u.onerror.__SENTRY_INSTRUMENTED__=!0}var ve=null;function ye(e){let t=`unhandledrejection`;fe(t,e),pe(t,be)}function be(){ve=u.onunhandledrejection,u.onunhandledrejection=function(e){return me(`unhandledrejection`,e),ve?ve.apply(this,arguments):!0},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var xe=Object.prototype.toString;function Se(e){switch(xe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Ie(e,Error)}}function Ce(e,t){return xe.call(e)===`[object ${t}]`}function we(e){return Ce(e,`ErrorEvent`)}function Te(e){return Ce(e,`DOMError`)}function Ee(e){return Ce(e,`DOMException`)}function De(e){return Ce(e,`String`)}function Oe(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function ke(e){return e===null||Oe(e)||typeof e!=`object`&&typeof e!=`function`}function Ae(e){return Ce(e,`Object`)}function je(e){return typeof Event<`u`&&Ie(e,Event)}function Me(e){return typeof Element<`u`&&Ie(e,Element)}function Ne(e){return Ce(e,`RegExp`)}function Pe(e){return!!(e?.then&&typeof e.then==`function`)}function Fe(e){return Ae(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Ie(e,t){try{return e instanceof t}catch{return!1}}function Le(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Re(e){return typeof Request<`u`&&Ie(e,Request)}var ze=u,eee=80;function Be(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||eee;for(;n&&i++<5&&(o=tee(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 tee(e,t){let n=e,r=[];if(!n?.tagName)return``;if(ze.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&&De(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 Ve(){try{return ze.document.location.href}catch{return``}}function nee(e,t=5){if(!ze.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(Se(e))return{message:e.message,name:e.name,stack:e.stack,...Je(e)};if(je(e)){let t={type:e.type,target:qe(e.target),currentTarget:qe(e.currentTarget),...Je(e)};return typeof CustomEvent<`u`&&Ie(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qe(e){try{return Me(e)?Be(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Je(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function Ye(e){let t=Object.keys(Ke(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Xe;function Ze(e){if(Xe!==void 0)return Xe?Xe(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=u;return t in n&&typeof n[t]==`function`?(Xe=n[t],Xe(e)):(Xe=null,e())}function Qe(){return Ze(()=>Math.random())}function $e(){return Ze(()=>Date.now())}function et(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function tt(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Le(r)?n.push(le(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function nt(e,t,n=!1){return De(e)?Ne(t)?t.test(e):De(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function rt(e,t=[],n=!1){return t.some(t=>nt(e,t,n))}function it(){let e=u;return e.crypto||e.msCrypto}var at;function ree(){return Qe()*16}function ot(e=it()){try{if(e?.randomUUID)return Ze(()=>e.randomUUID()).replace(/-/g,``)}catch{}return at||=`10000000100040008000100000000000`,at.replace(/[018]/g,e=>(e^(ree()&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(iee(e))return!0;try{Ue(e,`__sentry_captured__`,!0)}catch{}return!1}function iee(e){try{return e.__sentry_captured__}catch{}}var ft=1e3;function pt(){return $e()/ft}function aee(){let{performance:e}=u;if(!e?.now||!e.timeOrigin)return pt;let t=e.timeOrigin;return()=>(t+Ze(()=>e.now()))/ft}var oee;function mt(){return(oee??=aee())()}function ht(e){let t=mt(),n={sid:ot(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>see(n)};return e&>(n,e),n}function gt(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||mt(),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 _t(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),gt(e,n)}function see(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 vt(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]=vt(r[e],t[e],n-1));return r}function yt(){return ot()}function bt(){return ot().substring(16)}var xt=`_sentrySpan`;function St(e,t){t?Ue(e,xt,t):delete e[xt]}function Ct(e){return e[xt]}var cee=100,wt=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:yt(),sampleRand:Qe()}}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,St(t,Ct(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&>(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():Ae(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,St(this,void 0),this._attachments=[],this.setPropagationContext({traceId:yt(),sampleRand:Qe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:cee;if(n<=0)return this;let r={timestamp:pt(),...e,message:e.message?et(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:Ct(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=vt(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 lee(){return m(`defaultCurrentScope`,()=>new wt)}function uee(){return m(`defaultIsolationScope`,()=>new wt)}var Tt=e=>e instanceof Promise&&!e[Et],Et=Symbol(`chained PromiseLike`),Dt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Tt(r)&&Tt(e)?r:Ot(e,r)},Ot=(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,{[Et]:!0}),t},kt=class{constructor(e,t){let n;n=e||new wt;let r;r=t||new wt,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 Pe(n)?Dt(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 At(){let e=p(f());return e.stack=e.stack||new kt(lee(),uee())}function jt(e){return At().withScope(e)}function Mt(e,t){let n=At();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Nt(e){return At().withScope(()=>e(At().getIsolationScope()))}function Pt(){return{withIsolationScope:Nt,withScope:jt,withSetScope:Mt,withSetIsolationScope:(e,t)=>Nt(t),getCurrentScope:()=>At().getScope(),getIsolationScope:()=>At().getIsolationScope()}}function Ft(e){let t=p(e);return t.acs?t.acs:Pt()}var dee;function fee(){return dee?.()}function It(){return Ft(f()).getCurrentScope()}function Lt(){return Ft(f()).getIsolationScope()}function Rt(){return m(`globalScope`,()=>new wt)}function zt(...e){let t=Ft(f());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Bt(){return It().getClient()}function pee(e){let t=fee();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||bt()};return r&&(a.parent_span_id=r),a}var Vt=`sentry.source`,mee=`sentry.sample_rate`,Ht=`sentry.op`,Ut=`sentry.origin`,hee=`sentry.measurement_unit`,gee=`sentry.measurement_value`,Wt=`sentry.custom_span_name`,Gt=`sentry.profile_id`,Kt=`sentry.exclusive_time`,qt=`gen_ai.conversation.id`;function Jt(e){try{let t=u.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Yt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var Xt=`_sentryScope`,Zt=`_sentryIsolationScope`;function Qt(e,t,n){e&&(Ue(e,Zt,Jt(n)),Ue(e,Xt,t))}function $t(e){let t=e;return{scope:t[Xt],isolationScope:Yt(t[Zt])}}function en(e){let t=tn(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 tn(e){if(!(!e||!De(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=nn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):nn(e)}function nn(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 rn=/^o(\d+)\./,an=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function on(e){return e===`http`||e===`https`}function sn(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 cn(e){let t=an.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 ln({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function ln(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function un(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+$/)?on(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 dn(e){return e.match(rn)?.[1]}function fn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=dn(n)),r}function pn(e){let t=typeof e==`string`?cn(e):ln(e);if(!(!t||!un(t)))return t}function mn(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 hn=!1;function gn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=Sn(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function _n(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Sn(e).parent_span_id,a=$t(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||bt():t,trace_id:n}}function vn(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 yn(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 bn(e){return typeof e==`number`?xn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?xn(e.getTime()):mt()}function xn(e){return e>9999999999?e/1e3:e}function Sn(e){if(yee(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(vee(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:_ee(e),start_timestamp:bn(i),timestamp:bn(o)||void 0,status:wn(s),op:r[Ht],origin:r[Ut],links:vn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function _ee(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function vee(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function yee(e){return typeof e.getSpanJSON==`function`}function Cn(e){let{traceFlags:t}=e.spanContext();return t===1}function wn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function bee(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var Tn=`_sentryChildSpans`,En=`_sentryRootSpan`;function Dn(e,t){Ue(t,En,e[En]||e),e[Tn]?e[Tn].add(t):Ue(e,Tn,new Set([t]))}function xee(e){let t=new Set;function n(e){if(!t.has(e)&&Cn(e)){t.add(e);let r=e[Tn]?Array.from(e[Tn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var On=See;function See(e){return e[En]||e}function kn(){hn||=(v(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function An(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||Bt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function jn(e){D.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Mn(e,t){if(!t?.length)return!1;for(let n of t){if(Tee(n)){if(e.description&&nt(e.description,n))return l&&jn(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&&nt(e.description,n.name):!0,i=n.op?e.op&&nt(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>Cee(e.attributes?.[t],n)):!0;if(r&&i&&a)return l&&jn(e),!0}return!1}function Cee(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?nt(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function wee(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 Tee(e){return typeof e==`string`||e instanceof RegExp}var Eee=`production`,Nn=`_frozenDsc`;function Pn(e,t){Ue(e,Nn,t)}function Fn(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:fn(t)};return t.emit(`createDsc`,i),i}function Dee(e,t){let n=t.getPropagationContext();return n.dsc||Fn(n.traceId,e)}function In(e){let t=Bt();if(!t)return{};let n=On(e),r=Sn(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[Nn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&en(l);if(u)return s(u);let d=Fn(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),An()&&(d.sampled=String(Cn(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??$t(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var Ln=class{constructor(e={}){this._traceId=e.traceId||yt(),this._spanId=e.spanId||bt(),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 Rn(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}var zn=Symbol.for(`sentry.skipNormalization`),Bn=Symbol.for(`sentry.overrideNormalizationDepth`);function Vn(e){return!!e[zn]}function Hn(e){let t=e[Bn];return typeof t==`number`?t:void 0}function Un(e,t=100,n=1/0){try{return Gn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Wn(e,t=3,n=100*1024){let r=Un(e,t);return Yn(r)>n?Wn(e,t-1,n):r}function Gn(e,t,n=1/0,r=1/0,i=Xn()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Kn(e,t);if(!s.startsWith(`[object `))return s;if(Vn(t))return t;let c=Hn(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 Gn(``,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]=Gn(e,t,l-1,r,i),f++}return o(t),d}function Kn(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(Le(t))return le(t);if(Fe(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${O(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=qn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function qn(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Jn(e){return~-encodeURI(e).split(/%..|./).length}function Yn(e){return Jn(JSON.stringify(e))}function Xn(){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 Zn(e,t=[]){return[e,t]}function Qn(e,t){let[n,r]=e;return[n,[...r,t]]}function $n(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 er(e,t){return $n(e,(e,n)=>t.includes(n))}function tr(e){let t=p(u);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function nr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[tr(r),e]:r.push(typeof e==`string`?tr(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(Un(n))}i(e)}}return typeof r==`string`?r:rr(r)}function rr(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 ir(e){return[{type:`span`},e]}function ar(e){let t=typeof e.data==`string`?tr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var or={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 sr(e){return e in or}function cr(e){return sr(e)?or[e]:e}function lr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ur(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:sn(r)},...i&&{trace:i}}}function dr(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 fr(e,t,n,r){let i=lr(n);return Zn({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:sn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function pr(e,t,n,r){let i=lr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;dr(e,n?.sdk);let o=ur(e,i,r,t);return delete e.sdkProcessingMetadata,Zn(o,[[{type:a},e]])}function mr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=In(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:sn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=Sn(e);return!Mn({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=Sn(e);return(Rn(s)?t:s(t))||(kn(),t)}:Sn,f=[];for(let e of l){let t=d(e);t&&f.push(ir(t))}return Zn(o,f)}function hr(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Sn(e),{spanId:i}=e.spanContext(),a=Cn(e),o=On(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}=Sn(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 gr(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Sn(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${On(e)===e?`root `:``}span "${t}" with ID ${r}`;D.log(i)}function _r(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[hee],i=n[gee];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function vr(e){return e.getOptions().traceLifecycle===`stream`}var yr=1e3,br=class{constructor(e={}){this._traceId=e.traceId||yt(),this._spanId=e.spanId||bt(),this._startTime=e.startTimestamp||mt(),this._links=e.links,this._attributes={},this.setAttributes({[Ut]:`manual`,[Ht]: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=bn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Vt,`custom`),this}end(e){this._endTime||(this._endTime=bn(e),gr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ht],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:wn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ut],profile_id:this._attributes[Gt],exclusive_time:this._attributes[Kt],measurements:_r(this._events),is_segment:this._isStandaloneSpan&&On(this)===this||void 0,segment_id:this._isStandaloneSpan?On(this).spanContext().spanId:void 0,links:vn(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===On(this),status:bee(this._status),attributes:this._attributes,links:yn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){l&&D.log(`[Tracing] Adding an event to span:`,e);let r=xr(t)?t:n||mt(),i=xr(t)?{}:t||{},a={name:e,time:bn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Bt();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===On(this)))return;if(this._isStandaloneSpan){this._sampled?wr(mr([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&&vr(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&($t(this).scope||It()).captureEvent(t)}_convertSpanToTransaction(){if(!Sr(Sn(this)))return;this._name||=(l&&D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=$t(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=xee(this).filter(e=>e!==this&&!Cr(e)).map(e=>Sn(e)).filter(Sr),i=this._attributes[Vt];delete this._attributes[Wt],r.forEach(e=>{delete e.data[Wt]});let a={contexts:{trace:gn(this)},spans:r.length>yr?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,yr):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:In(this)},request:n,...i&&{transaction_info:{source:i}}},o=_r(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 xr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Sr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Cr(e){return e instanceof br&&e.isStandaloneSpan()}function wr(e){let t=Bt();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Tr(e,t,n){if(!An(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=mn(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 Er=`__SENTRY_SUPPRESS_TRACING__`;function Dr(e){let t=jr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Ar(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>zt(e.scope,t):i===void 0?e=>e():e=>Or(i,e))(()=>{let t=It(),a=Pr(t,i),o=Bt();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new Ln):kr({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Or(e,t){let n=jr();return n.withActiveSpan?n.withActiveSpan(e,t):zt(n=>(St(n,e||void 0),t(n)))}function kr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!An()){let r=new Ln;return(n||!e)&&Pn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...In(r)}),r}let i=Bt();if(Fr(i,t))return Ir(r)||i?.recordDroppedEvent(`ignored`,`span`),new Ln({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});let a=Lt(),o;if(e&&!n)o=Nr(e,r,t),Dn(e,o);else if(e){let n=In(e),{traceId:i,spanId:a}=e.spanContext(),s=Cn(e);o=Mr({traceId:i,parentSpanId:a,...t},r,s),Pn(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=Mr({traceId:e,parentSpanId:i,...t},r,s),n&&Pn(o,n)}return hr(o),Qt(o,r,a),o}function Ar(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=bn(e.startTime),delete n.startTime,n}return t}function jr(){return Ft(f())}function Mr(e,t,n){let r=Bt(),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=Ir(t),[f,p,m]=d?[!1]:Tr(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:mn(u.dsc?.sample_rate)},u.sampleRand),h=new br({...e,attributes:{[Vt]:`custom`,[mee]: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`,vr(r)?`span`:`transaction`)),r&&r.emit(`spanStart`,h),h}function Nr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=Ir(t),o=a?!1:Cn(e),s=o?new br({...n,parentSpanId:r,traceId:i,sampled:o}):new Ln({traceId:i});Dn(e,s);let c=Bt();return c?(vr(c)&&s instanceof Ln&&(e instanceof Ln&&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 Pr(e,t){if(t)return t;if(t===null)return;let n=Ct(e);if(!n)return;let r=Bt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?On(n):n}function Fr(e,t){let n=e?.getOptions().ignoreSpans;return!e||!vr(e)||!n?.length?!1:Mn({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Ir(e){return e.getScopeData().sdkProcessingMetadata[Er]===!0}function Lr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Vr(e,t),r&&Wr(e,r),Gr(e,n),Hr(e,i),Ur(e,a)}function Rr(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;zr(e,`extra`,n),zr(e,`tags`,r),zr(e,`attributes`,i),zr(e,`user`,a),zr(e,`contexts`,o),e.sdkProcessingMetadata=vt(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 zr(e,t,n){e[t]=vt(e[t],n,1)}function Br(e,t){let n=Rt().getScopeData();return e&&Rr(n,e.getScopeData()),t&&Rr(n,t.getScopeData()),n}function Vr(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 Hr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ur(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Wr(e,t){e.contexts={trace:_n(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:In(t),...e.sdkProcessingMetadata};let n=Sn(On(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Gr(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 Kr(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 qr(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 Jr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Yr=0,Xr=1,Zr=2;function Qr(e){return new ei(t=>{t(e)})}function $r(e){return new ei((t,n)=>{n(e)})}var ei=class e{constructor(e){this._state=Yr,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===Yr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Xr&&e[1](this._value),this._state===Zr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Yr){if(Pe(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Xr,e)},r=e=>{t(Zr,e)};try{e(n,r)}catch(e){r(e)}}};function Oee(e,t,n,r=0){try{let i=ti(t,n,e,r);return Pe(i)?i:Qr(i)}catch(e){return $r(e)}}function ti(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`),Pe(a)?a.then(e=>ti(e,t,n,r+1)):ti(a,t,n,r+1)}var ni,ri,ii,ai;function kee(e){let t=u._sentryDebugIds,n=u._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(ai&&r.length===ri&&i.length===ii)return ai;ri=r.length,ii=i.length,ai={},ni||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=ni?.[r];if(i&&ai&&t)ai[i[0]]=t,ni&&(ni[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&&ai&&ni){ai[i]=t,ni[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),ai}function Aee(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||pt()},l=n.integrations||e.integrations.map(e=>e.name);jee(c,e),Pee(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Mee(c,e.stackParser);let u=Iee(r,n.captureContext);n.mechanism&&ut(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Br(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Lr(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Qr(c):Oee(m,c,n)).then(e=>(e&&Nee(e),typeof o==`number`&&o>0?Fee(e,o,s):e))}function jee(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=et(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=et(e.value,a)})}function Mee(e,t){let n=kee(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Nee(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 Pee(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Fee(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Un(e.data,t,n)}}))},...e.user&&{user:Un(e.user,t,n)},...e.contexts&&{contexts:Un(e.contexts,t,n)},...e.extra&&{extra:Un(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Un(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Un(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Un(e.contexts.flags,3,n)),r}function Iee(e,t){if(!t)return e;let n=e?e.clone():new wt;return n.update(t),n}function Lee(e){if(e)return Ree(e)||Bee(e)?{captureContext:e}:e}function Ree(e){return e instanceof wt||typeof e==`function`}var zee=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Bee(e){return Object.keys(e).some(e=>zee.includes(e))}function oi(e,t){return It().captureException(e,Lee(t))}function Vee(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return It().captureMessage(e,n,r)}function si(e,t){return It().captureEvent(e,t)}function Hee(e,t){Lt().setContext(e,t)}function Uee(e){Lt().setUser(e)}function Wee(){return Lt().lastEventId()}function ci(e){let t=Lt(),{user:n}=Br(t,It()),{userAgent:r}=u.navigator||{},i=ht({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&>(a,{status:`exited`}),li(),t.setSession(i),i}function li(){let e=Lt(),t=It().getSession()||e.getSession();t&&_t(t),ui(),e.setSession()}function ui(){let e=Lt(),t=Bt(),n=e.getSession();n&&t&&t.captureSession(n)}function di(e=!1){if(e){li();return}ui()}function fi(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Gee(e){return`${fi(e)}${e.projectId}/envelope/`}function Kee(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 qee(e,t,n){return t||`${Gee(e)}?${Kee(e,n)}`}function Jee(e,t){let n=pn(e);if(!n)return``;let r=`${fi(n)}embed/error-page/`,i=`dsn=${sn(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 pi=[];function Yee(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 Xee(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 Yee(r)}function Zee(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&hi(e,t,n)}),n}function mi(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function hi(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,!pi.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),pi.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 gi(e){return e}function Qee(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function $ee(){return`npm`}function ete(){return!Qee()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function _i(){return typeof window<`u`&&(!ete()||tte())}function tte(){return u.process?.type===`renderer`}function nte(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,..._i()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function rte(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=sn(r)),Zn(a,[nte(e,i)])}function vi(e,t){let n=t??ite(e)??[];if(n.length===0)return;let r=e.getOptions(),i=rte(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);yi().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function ite(e){return yi().get(e)}function yi(){return m(`clientToLogBufferMap`,()=>new WeakMap)}function ate(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,..._i()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function ote(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=sn(r)),Zn(a,[ate(e,i)])}function bi(e,t){let n=t??ste(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ote(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);xi().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function ste(e){return xi().get(e)}function xi(){return m(`clientToMetricBufferMap`,()=>new WeakMap)}function Si(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Ci=Symbol.for(`SentryBufferFullError`);function wi(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return $r(Ci);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Qr(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Si(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var cte=60*1e3;function lte(e,t=$e()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?cte:r-t}function ute(e,t){return e[t]||e.all||0}function dte(e,t,n=$e()){return ute(e,t)>n}function fte(e,{statusCode:t,headers:n},r=$e()){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+lte(o,r):t===429&&(i.all=r+60*1e3);return i}function Ti(e,t,n=wi(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if($n(i,(t,n)=>{let i=cr(n);dte(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=Zn(i[0],a),s=t=>{if(er(o,[`client_report`])){l&&D.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}$n(o,(n,r)=>{e.recordDroppedEvent(t,cr(r))})};return n.add(()=>t({body:nr(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=fte(r,e),e),e=>{throw s(`network_error`),l&&D.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Ci)return l&&D.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Ei(e,t,n){let r=[{type:`client_report`},{timestamp:n||pt(),discarded_events:e}];return Zn(t?{dsn:t}:{},[r])}function Di(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 Oi(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?.[Gt],exclusive_time:o?.[Kt],measurements:e.measurements,is_segment:!0}}function ki(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 Ai=`Not capturing exception because it's already been captured.`,ji=`Discarded session because of missing or non-string release`,Mi=Symbol.for(`SentryInternalError`),Ni=Symbol.for(`SentryDoNotSendEventError`),Pi=5e3;function Fi(e){return{message:e,[Mi]:!0}}function Ii(e){return{message:e,[Ni]:!0}}function Li(e){return!!e&&typeof e==`object`&&Mi in e}function Ri(e){return!!e&&typeof e==`object`&&Ni in e}function zi(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=Si(setTimeout(()=>{i(e)},Pi)))}),e.on(`flush`,()=>{i(e)})}var Bi=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=wi(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=pn(e.dsn):l&&D.warn(`No DSN provided, client will not send events.`),this._dsn){let t=qee(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&&zi(this,`afterCaptureLog`,`flushLogs`,qi,vi),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&zi(this,`afterCaptureMetric`,`flushMetrics`,Ki,bi)}captureException(e,t,n){let r=ot();if(dt(e))return l&&D.log(Ai),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=Oe(e)?e:String(e),o=ke(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(Ai),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Vi(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),gt(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){vi(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),hi(this,e,this._integrations),t||mi(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=pr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Qn(n,ar(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Eee}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){l&&D.warn(ji);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){l&&D.warn(ji);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=fr(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=Zee(this,e),mi(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)&&(gt(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),Aee(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...pee(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Dee(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=It(),r=Lt()){return l&&Wi(e)&&D.log(`Captured error event \`${Di(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{l&&(Ri(e)?D.log(e.message):Li(e)?D.warn(e.message):D.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Gi(e),s=Wi(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:mn(a);if(s&&typeof l==`number`&&Qe()>l)return this.recordDroppedEvent(`sample_rate`,`error`),$r(Ii(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Vi(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Ii("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Hi(Ui(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 Ii(`${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 Ri(e)||Li(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Fi(`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===Ci&&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=Ei(e,this._options.tunnel&&sn(this._dsn));this.sendEnvelope(t)}};function Vi(e){return e===`replay_event`?`replay`:e||`error`}function Hi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Pe(e))return e.then(e=>{if(!Ae(e)&&e!==null)throw Fi(n);return e},e=>{throw Fi(`${t} rejected with ${e}`)});if(!Ae(e)&&e!==null)throw Fi(n);return e}function Ui(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Rn(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(Wi(c)&&i)return i(c,r);if(Gi(c)){if(s||o){let t=Oi(c);if(o?.length&&Mn({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=vt(n,ki(e)):kn()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&Mn({description:e.description,op:e.op,attributes:e.data},o)){wee(n,e);continue}if(s){let n=s(e);n?t.push(n):(kn(),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 Wi(e){return e.type===void 0}function Gi(e){return e.type===`transaction`}function Ki(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ji(e.attributes)}function qi(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ji(e.attributes)}function Ji(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Yi(e[0]):ke(e)?t+=Yi(e):t+=100}),t}function Yi(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Xi(e,t){return e(t.stack||``,1)}function Zi(e){return Se(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Qi(e){return Zi(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function $i(e,t){let n={type:t.name||t.constructor.name,value:Qi(t)},r=Xi(e,t);return r.length&&(n.stacktrace={frames:r}),n}function ea(e,t){t.debug===!0&&(l?D.enable():v(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),It().update(t.initialScope);let n=new e(t);return ta(n),n.init(),n}function ta(e){It().setClient(e)}function na(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 ra(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 ia=100;function aa(e,t){let n=Bt(),r=Lt();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ia}=n.getOptions();if(a<=0)return;let o={timestamp:pt(),...e},s=i?v(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var oa,sa=`FunctionToString`,ca=new WeakMap,la=gi((()=>({name:sa,setupOnce(){oa=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ge(this),n=ca.has(Bt())&&t!==void 0?t:this;return oa.apply(n,e)}}catch{}},setup(e){ca.set(e,!0)}}))),ua=[/^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$/],da=`EventFilters`,fa=gi((e={})=>{let t;return{name:da,setup(n){t=ma(e,n.getOptions())},processEvent(n,r,i){return t||=ma(e,i.getOptions()),ha(n,t)?null:n}}}),pa=gi(((e={})=>({...fa(e),name:`InboundFilters`})));function ma(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ua],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ha(e,t){if(!e.type){if(ga(e,t.ignoreErrors))return l&&D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ct(e)}`),!0;if(Sa(e))return l&&D.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ct(e)}`),!0;if(va(e,t.denyUrls))return l&&D.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ct(e)}.\nUrl: ${xa(e)}`),!0;if(!ya(e,t.allowUrls))return l&&D.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ct(e)}.\nUrl: ${xa(e)}`),!0}else if(e.type===`transaction`&&_a(e,t.ignoreTransactions))return l&&D.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ct(e)}`),!0;return!1}function ga(e,t){return t?.length?Di(e).some(e=>rt(e,t)):!1}function _a(e,t){if(!t?.length)return!1;let n=e.transaction;return n?rt(n,t):!1}function va(e,t){if(!t?.length)return!1;let n=xa(e);return n?rt(n,t):!1}function ya(e,t){if(!t?.length)return!0;let n=xa(e);return n?rt(n,t):!0}function ba(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 xa(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?ba(t):null}catch{return l&&D.error(`Cannot extract url for event ${ct(e)}`),null}}function Sa(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ca(e,t,n,r,i,a){if(!i.exception?.values||!a||!Ie(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=wa(e,t,r,a.originalException,n,i.exception.values,o,0))}function wa(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Ie(r[i],Error)){Ea(o,s,r);let a=e(t,r[i]),l=c.length;Da(a,i,l,s),c=wa(e,t,n,r[i],i,[a,...c],a,l)}return Ta(r)&&r.errors.forEach((a,l)=>{if(Ie(a,Error)){Ea(o,s,r);let u=e(t,a),d=c.length;Da(u,`errors[${l}]`,d,s),c=wa(e,t,n,a,i,[u,...c],u,d)}}),c}function Ta(e){return Array.isArray(e.errors)}function Ea(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ta(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Da(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Oa=`cause`,ka=5,Aa=`LinkedErrors`,ja=gi(((e={})=>{let t=e.limit||ka,n=e.key||Oa;return{name:Aa,preprocessEvent(e,r,i){Ca($i,i.getOptions().stackParser,n,t,e,r)}}}));function Ma(e){let t=`console`,n=fe(t,e);return pe(t,Na),n}function Na(){`console`in u&&h.forEach(function(e){e in u.console&&He(u.console,e,function(t){return _[e]=t,function(...t){me(`console`,{args:t,level:e}),_[e]?.apply(u.console,t)}})})}function Pa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Fa=`Dedupe`,Ia=gi((()=>{let e;return{name:Fa,processEvent(t){if(t.type)return t;try{if(La(t,e))return l&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function La(e,t){return t?!!(Ra(e,t)||za(e,t)):!1}function Ra(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Va(e,t)||!Ba(e,t))}function za(e,t){let n=Ha(t),r=Ha(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Va(e,t)||!Ba(e,t))}function Ba(e,t){let n=ce(e),r=ce(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 Va(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 Ha(e){return e.exception?.values?.[0]}function Ua(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 Wa=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Ga(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Wa.exec(t);return n?n.slice(1):[]}function Ka(...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=Ua(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function qa(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 Ja(e,t){e=Ka(e).slice(1),t=Ka(t).slice(1);let n=qa(e.split(`/`)),r=qa(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 Ya(e,t){let n=Ga(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var Xa=`RewriteFrames`,Za=gi((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in u&&!!u.window,i=e.iteratee||Qa({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:Xa,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function Qa({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?Ja(t,e):Ya(e)}`}return r}}var $a=`ConversationId`,eo=gi((()=>({name:$a,setup(e){e.on(`spanStart`,e=>{let t=It().getScopeData(),n=Lt().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Sn(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(qt,r)}})}})));function to(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var no=u;function ro(){return`history`in no&&!!no.history}function io(){if(!(`fetch`in no))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ao(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oo(){if(typeof EdgeRuntime==`string`)return!0;if(!io())return!1;if(ao(no.fetch))return!0;let e=!1,t=no.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ao(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 so(e,t){let n=`fetch`,r=fe(n,e);return pe(n,()=>co(void 0,t)),r}function co(e,t=!1){t&&!oo()||He(u,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=fo(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:mt()*1e3,virtualError:r,headers:po(n)};return e||me(`fetch`,{...o}),t.apply(u,n).then(async t=>(e?e(t):me(`fetch`,{...o,endTimestamp:mt()*1e3,response:t}),t),e=>{me(`fetch`,{...o,endTimestamp:mt()*1e3,error:e}),Se(e)&&e.stack===void 0&&(e.stack=r.stack,Ue(e,`framesToPop`,1));let t=Bt()?.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 lo(e,t){return!!e&&typeof e==`object`&&!!e[t]}function uo(e){return typeof e==`string`?e:e?lo(e,`url`)?e.url:e.toString?e.toString():``:``}function fo(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:uo(t),method:lo(n,`method`)?String(n.method).toUpperCase():Re(t)&&lo(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:uo(t),method:lo(t,`method`)?String(t.method).toUpperCase():`GET`}}function po(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Re(t))return new Headers(t.headers)}catch{}}var mo=u,ho=0;function go(){return ho>0}function _o(){ho++,setTimeout(()=>{ho--})}function vo(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=>vo(e,t));return e.apply(this,r)}catch(e){throw _o(),zt(r=>{r.addEventProcessor(e=>(t.mechanism&&(lt(e,void 0,void 0),ut(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),oi(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 yo(){let e=Ve(),{referrer:t}=mo.document||{},{userAgent:n}=mo.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function bo(e,t){let n=Co(e,t),r={type:Oo(t),value:ko(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function xo(e,t,n,r){let i=Bt()?.getOptions().normalizeDepth,a=Io(t),o={__serialized__:Wn(t,i)};if(a)return{exception:{values:[bo(e,a)]},extra:o};let s={exception:{values:[{type:je(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Po(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Co(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function So(e,t){return{exception:{values:[bo(e,t)]}}}function Co(e,t){let n=t.stacktrace||t.stack||``,r=To(t),i=Eo(t);try{return e(n,r,i)}catch{}return[]}var wo=/Minified React error #\d+;/i;function To(e){return e&&wo.test(e.message)?1:0}function Eo(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Do(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Oo(e){let t=e?.name;return!t&&Do(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function ko(e){let t=e?.message;return Do(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Qi(t.error):Qi(e):`No error message`}function Ao(e,t,n,r){let i=Mo(e,t,n?.syntheticException||void 0,r);return ut(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Qr(i)}function jo(e,t,n=`info`,r,i){let a=No(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Qr(a)}function Mo(e,t,n,r,i){let a;if(we(t)&&t.error)return So(e,t.error);if(Te(t)||Ee(t)){let i=t;if(`stack`in t)a=So(e,t);else{let t=i.name||(Te(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=No(e,o,n,r),lt(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Se(t)?So(e,t):Ae(t)||je(t)?(a=xo(e,t,n,i),ut(a,{synthetic:!0}),a):(a=No(e,t,n,r),lt(a,`${t}`,void 0),ut(a,{synthetic:!0}),a)}function No(e,t,n,r){let i={};if(r&&n){let r=Co(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),ut(i,{synthetic:!0})}if(Oe(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 Po(e,{isUnhandledRejection:t}){let n=Ye(e),r=t?`promise rejection`:`exception`;return we(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:je(e)?`Event \`${Fo(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Fo(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Io(e){return Object.values(e).find(e=>e instanceof Error)}var Lo=class extends Bi{constructor(e){let t=Ro(e);ra(t,`browser`,[`browser`],mo.SENTRY_SDK_SOURCE||$ee()),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;mo.document&&(r||i||s)&&mo.document.addEventListener(`visibilitychange`,()=>{mo.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&vi(this),s&&bi(this))}),n&&this.on(`beforeSendSession`,na)}eventFromException(e,t){return Ao(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return jo(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 Ro(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:mo.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var zo=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Bo=u,Vo=1e3,Ho,Uo,Wo;function Go(e){fe(`dom`,e),pe(`dom`,Ko)}function Ko(){if(!Bo.document)return;let e=me.bind(null,`dom`),t=Yo(e,!0);Bo.document.addEventListener(`click`,t,!1),Bo.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Bo[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=Yo(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 qo(e){if(e.type!==Uo)return!1;try{if(!e.target||e.target._sentryId!==Wo)return!1}catch{}return!0}function Jo(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Yo(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Xo(n);if(Jo(n.type,r))return;Ue(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ue(r,`_sentryId`,ot());let i=n.type===`keypress`?`input`:n.type;qo(n)||(e({event:n,name:i,global:t}),Uo=n.type,Wo=r?r._sentryId:void 0),clearTimeout(Ho),Ho=Bo.setTimeout(()=>{Wo=void 0,Uo=void 0},Vo)}}function Xo(e){try{return e.target}catch{return null}}var Zo;function Qo(e){let t=`history`;fe(t,e),pe(t,$o)}function $o(){if(Bo.addEventListener(`popstate`,()=>{let e=Bo.location.href,t=Zo;Zo=e,t!==e&&me(`history`,{from:t,to:e})}),!ro())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Zo,i=es(String(n));if(Zo=i,r===i)return e.apply(this,t);me(`history`,{from:r,to:i})}return e.apply(this,t)}}He(Bo.history,`pushState`,e),He(Bo.history,`replaceState`,e)}function es(e){try{return new URL(e,Bo.location.origin).toString()}catch{return e}}var ts={};function ns(e){let t=ts[e];if(t)return t;let n=Bo[e];if(ao(n))return ts[e]=n.bind(Bo);let r=Bo.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){zo&&D.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(ts[e]=n.bind(Bo))}function rs(e){ts[e]=void 0}var is=`__sentry_xhr_v3__`;function as(e){fe(`xhr`,e),pe(`xhr`,os)}function os(){if(!Bo.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=mt()*1e3,a=De(n[0])?n[0].toUpperCase():void 0,o=ss(n[1]);if(!a||!o)return e.apply(t,n);t[is]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[is];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}me(`xhr`,{endTimestamp:mt()*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[is];return a&&De(r)&&De(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[is];return r?(n[0]!==void 0&&(r.body=n[0]),me(`xhr`,{startTimestamp:mt()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function ss(e){if(De(e))return e;try{return e.toString()}catch{}}var cs=40;function ls(e,t=ns(`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 rs(`fetch`),e}finally{n-=a,r--}}return Ti(e,i,wi(e.bufferSize||cs))}var us=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ds=30,fs=50;function ps(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 ms=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gs=/\((\S*)(?::(\d+))(?::(\d+))\)/,_s=/at (.+?) ?\(data:(.+?),/,vs=[ds,e=>{let t=e.match(_s);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=ms.exec(e);if(n){let[,e,t,r]=n;return ps(e,`?`,+t,+r)}let r=hs.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=gs.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Ss(r[1]||`?`,r[2]);return ps(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],ys=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xs=re(vs,[fs,e=>{let t=ys.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=bs.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]=Ss(n,e),ps(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Ss=(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]},Cs=1024,ws=`Breadcrumbs`,Ts=gi(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ws,setup(e){t.console&&Ma(Os(e)),t.dom&&Go(Ds(e,t.dom)),t.xhr&&as(ks(e)),t.fetch&&so(As(e)),t.history&&Qo(js(e)),t.sentry&&e.on(`beforeSendEvent`,Es(e))}}}));function Es(e){return function(t){Bt()===e&&aa({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ct(t)},{event:t})}}function Ds(e,t){return function(n){if(Bt()!==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>Cs&&(us&&D.warn(`\`dom.maxStringLength\` cannot exceed ${Cs}, but a value of ${o} was configured. Sentry will use ${Cs} instead.`),o=Cs),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Ms(e)?e.target:e;r=Be(t,{keyAttrs:a,maxStringLength:o}),i=nee(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),aa(s,{event:n.event,name:n.name,global:n.global})}}function Os(e){return function(t){if(Bt()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Pa(t.level),message:tt(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${tt(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;aa(n,{input:t.args,level:t.level})}}function ks(e){return function(t){if(Bt()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[is];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:to(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),aa(d,u)}}function As(e){return function(t){if(Bt()!==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),aa(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:to(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),aa(s,o)}}}function js(e){return function(t){if(Bt()!==e)return;let n=t.from,r=t.to,i=Kr(mo.location.href),a=n?Kr(n):void 0,o=Kr(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),aa({category:`navigation`,data:{from:n,to:r}})}}function Ms(e){return!!e&&!!e.target}var Ns=`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(`,`),Ps=`BrowserApiErrors`,Fs=gi(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Ps,setupOnce(){t.setTimeout&&He(mo,`setTimeout`,Is),t.setInterval&&He(mo,`setInterval`,Is),t.requestAnimationFrame&&He(mo,`requestAnimationFrame`,Ls),t.XMLHttpRequest&&`XMLHttpRequest`in mo&&He(XMLHttpRequest.prototype,`send`,Rs);let e=t.eventTarget;e&&(Array.isArray(e)?e:Ns).forEach(e=>zs(e,t))}}}));function Is(e){return function(...t){let n=t[0];return t[0]=vo(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${O(e)}`}}),e.apply(this,t)}}function Ls(e){return function(t){return e.apply(this,[vo(t,{mechanism:{data:{handler:O(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Rs(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:O(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ge(t);return r&&(n.mechanism.data.handler=O(r)),vo(t,n)})}),e.apply(this,t)}}function zs(e,t){let n=mo[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(n){return function(r,i,a){try{Bs(i)&&(i.handleEvent=vo(i.handleEvent,{mechanism:{data:{handler:O(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&pte(this,r,i),n.apply(this,[r,vo(i,{mechanism:{data:{handler:O(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 Bs(e){return typeof e.handleEvent==`function`}function pte(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Vs=gi((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(mo.document===void 0){us&&D.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ci({ignoreDuration:!0}),di();let e=Lt(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(di(),n=t)}),t===`route`&&Qo(({from:e,to:t})=>{e!==t&&(ci({ignoreDuration:!0}),di())})}}}),mte=`CultureContext`,hte=gi((()=>({name:mte,preprocessEvent(e){let t=Hs();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Hs();t&&Jr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Hs(){try{let e=mo.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var gte=`GlobalHandlers`,Us=gi(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:gte,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_te(e),Ws(`onerror`)),t.onunhandledrejection&&(vte(e),Ws(`onunhandledrejection`))}}}));function _te(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=Gs();if(Bt()!==e||go())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=xte(Mo(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,si(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function vte(e){ye(t=>{let{stackParser:n,attachStacktrace:r}=Gs();if(Bt()!==e||go())return;let i=yte(t),a=ke(i)?bte(i):Mo(n,i,void 0,r,!0);a.level=`error`,si(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function yte(e){if(ke(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 bte(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xte(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:Ste(t)??Ve(),function:`?`,in_app:!0}),e}function Ws(e){us&&D.log(`Global Handler attached: ${e}`)}function Gs(){return Bt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ste(e){if(!(!De(e)||e.length===0))return e.startsWith(`data:`)?`<${qr(e,!1)}>`:e}var Ks=gi(()=>({name:`HttpContext`,preprocessEvent(e){if(!mo.navigator&&!mo.location&&!mo.document)return;let t=yo(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!mo.navigator&&!mo.location&&!mo.document)return;let t=yo();Jr(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Cte=`cause`,wte=5,Tte=`LinkedErrors`,Ete=gi(((e={})=>{let t=e.limit||wte,n=e.key||Cte;return{name:Tte,preprocessEvent(e,r,i){Ca(bo,i.getOptions().stackParser,n,t,e,r)}}}));function Dte(){return Ote()?(us&&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 Ote(){if(mo.window===void 0)return!1;let e=mo;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Ve();return!(mo===mo.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function kte(e){return[pa(),la(),eo(),Fs(),Ts(),Us(),Ete(),Ia(),Ks(),hte(),Vs()]}function qs(e={}){let t=!e.skipBrowserExtensionCheck&&Dte(),n=e.defaultIntegrations==null?kte():e.defaultIntegrations;return ea(Lo,{...e,enabled:t?!1:e.enabled,stackParser:ie(e.stackParser||xs),integrations:Xee({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ls})}function Js(e={}){let t=mo.document,n=t?.head||t?.body;if(!n){us&&D.error(`[showReportDialog] Global document not defined`);return}let r=It(),i=Bt()?.getDsn();if(!i){us&&D.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Wee()},o=mo.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=Jee(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{mo.removeEventListener(`message`,e)}};mo.addEventListener(`message`,e)}n.appendChild(o)}var k=n(o());function Ate(e){let t={...e};return ra(t,`react`),Hee(`react`,{version:k.version}),qs(t)}function jte(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Mte(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 Nte(e,{componentStack:t},n){if(jte(k.version)&&Se(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,Mte(e,n)}return zt(r=>(r.setContext(`react`,{componentStack:t}),oi(e,n)))}var Pte=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Ys={componentStack:null,error:null,eventId:null},Fte=class extends k.Component{constructor(e){super(e),this.state=Ys,this._openFallbackReportDialog=!0;let t=Bt();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;zt(s=>{r&&r(s,e,n);let c=Nte(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===Ys?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(Ys)}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`?k.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return k.isValidElement(r)?r:(e&&Pte&&D.warn(`fallback did not produce a valid ReactElement`),null)}},Xs=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(){}},Ite={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Zs=new class{#e=Ite;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 Lte(e){setTimeout(e,0)}var Qs=typeof window>`u`||`Deno`in globalThis;function $s(){}function Rte(e,t){return typeof e==`function`?e(t):e}function ec(e){return typeof e==`number`&&e>=0&&e!==1/0}function tc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nc(e,t){return typeof e==`function`?e(t):e}function rc(e,t){return typeof e==`function`?e(t):e}function ic(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==oc(o,t.options))return!1}else if(!cc(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 ac(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(sc(t.options.mutationKey)!==sc(a))return!1}else if(!cc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function oc(e,t){return(t?.queryKeyHashFn||sc)(e)}function sc(e){return JSON.stringify(e,(e,t)=>fc(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function cc(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>cc(e[n],t[n])):!1}var zte=Object.prototype.hasOwnProperty;function lc(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=dc(e)&&dc(t);if(!r&&!(fc(e)&&fc(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:zte.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=lc(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function uc(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 dc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fc(e){if(!pc(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!pc(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function pc(e){return Object.prototype.toString.call(e)===`[object Object]`}function Bte(e){return new Promise(t=>{Zs.setTimeout(t,e)})}function mc(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:lc(e,t)}function Vte(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hte(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hc=Symbol();function gc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===hc?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function _c(e,t){return typeof e==`function`?e(...t):!!e}function Ute(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 vc=new class extends Xs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&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 yc(){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 Wte=Lte;function Gte(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Wte,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 bc=Gte(),xc=new class extends Xs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&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 Kte(e){return Math.min(1e3*2**e,3e4)}function Sc(e){return(e??`online`)===`online`?xc.isOnline():!0}var Cc=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function qte(e){return e instanceof Cc}function wc(e){let t=!1,n=0,r,i=yc(),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=()=>vc.isFocused()&&(e.networkMode===`always`||xc.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??(Qs?0:3),o=e.retryDelay??Kte,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),Bte(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 Tc=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ec(this.gcTime)&&(this.#e=Zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(Zs.clearTimeout(this.#e),void 0)}},Jte=class extends Tc{#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=Oc(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=Oc(this.options);e.data!==void 0&&(this.setState(Dc(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=mc(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($s).catch($s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>rc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>nc(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:!tc(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=gc(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=wc({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,...Ec(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Dc(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),bc.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Ec(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sc(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Dc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Oc(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 kc=class extends Xs{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=yc(),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),Ac(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jc(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 rc(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&&!uc(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Mc(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||rc(this.options.enabled,this.#t)!==rc(t.enabled,this.#t)||nc(this.options.staleTime,this.#t)!==nc(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||rc(this.options.enabled,this.#t)!==rc(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 Xte(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($s)),t}#g(){this.#b();let e=nc(this.options.staleTime,this.#t);if(Qs||this.#r.isStale||!ec(e))return;let t=tc(this.#r.dataUpdatedAt,e)+1;this.#d=Zs.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,!(Qs||rc(this.options.enabled,this.#t)===!1||!ec(this.#p)||this.#p===0)&&(this.#f=Zs.setInterval(()=>{(this.options.refetchIntervalInBackground||vc.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(Zs.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(Zs.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&&Ac(e,t),o=i&&Mc(e,n,t,r);(a||o)&&(l={...l,...Ec(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=mc(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=mc(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:Nc(e,t),refetch:this.refetch,promise:this.#o,isEnabled:rc(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=yc())},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),!uc(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){bc.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Yte(e,t){return rc(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function Ac(e,t){return Yte(e,t)||e.state.data!==void 0&&jc(e,t,t.refetchOnMount)}function jc(e,t,n){if(rc(t.enabled,e)!==!1&&nc(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Nc(e,t)}return!1}function Mc(e,t,n,r){return(e!==t||rc(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Nc(e,n)}function Nc(e,t){return rc(t.enabled,e)!==!1&&e.isStaleByTime(nc(t.staleTime,e))}function Xte(e,t){return!uc(e.getCurrentResult(),t)}function Pc(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=>{Ute(e,()=>t.signal,()=>n=!0)},u=gc(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?Hte:Vte;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Ic:Fc,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:Fc(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 Fc(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 Ic(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Zte(e,t){return t?Fc(e,t)!=null:!1}function Qte(e,t){return!t||!e.getPreviousPageParam?!1:Ic(e,t)!=null}var $te=class extends kc{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:Pc()})}getOptimisticResult(e){return e.behavior=Pc(),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:Zte(t,n.data),hasPreviousPage:Qte(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},ene=class extends Tc{#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||Lc(),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=wc({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),bc.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Lc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var tne=class extends Xs{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 ene({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=Rc(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=Rc(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=Rc(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=Rc(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){bc.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=>ac(t,e))}findAll(e={}){return this.getAll().filter(t=>ac(e,t))}notify(e){bc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return bc.batch(()=>Promise.all(e.map(e=>e.continue().catch($s))))}};function Rc(e){return e.options.scope?.id}var nne=class extends Xs{#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),uc(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&sc(t.mutationKey)!==sc(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??Lc();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){bc.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 zc(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function rne(e,t,n){let r=e.slice(0);return r[t]=n,r}var ine=class extends Xs{#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,bc.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||!uc(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(zc(e,n).forEach(e=>{e.destroy()}),zc(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=lc(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 kc(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#p(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=rne(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)&&bc.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},ane=class extends Xs{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??oc(r,t),a=this.get(i);return a||(a=new Jte({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(){bc.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=>ic(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ic(e,t)):t}notify(e){bc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){bc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){bc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},one=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ane,this.#t=e.mutationCache||new tne,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=vc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xc.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(nc(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=Rte(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return bc.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;bc.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return bc.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=bc.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then($s).catch($s)}invalidateQueries(e,t={}){return bc.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=bc.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($s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then($s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(nc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($s).catch($s)}fetchInfiniteQuery(e){return e.behavior=Pc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($s).catch($s)}ensureInfiniteQueryData(e){return e.behavior=Pc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xc.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(sc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{cc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(sc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{cc(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||=oc(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===hc&&(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()}},A=s(),Bc=k.createContext(void 0),Vc=e=>{let t=k.useContext(Bc);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},sne=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,A.jsx)(Bc.Provider,{value:e,children:t})),Hc=k.createContext(!1),Uc=()=>k.useContext(Hc);Hc.Provider;function cne(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var lne=k.createContext(cne()),Wc=()=>k.useContext(lne),Gc=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?_c(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Kc=e=>{k.useEffect(()=>{e.clearReset()},[e])},qc=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||_c(n,[e.error,r])),Jc=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))}},une=(e,t)=>e.isLoading&&e.isFetching&&!t,Yc=(e,t)=>e?.suspense&&t.isPending,Xc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dne({queries:e,...t},n){let r=Vc(n),i=Uc(),a=Wc(),o=k.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{Jc(e),Gc(e,a,r.getQueryCache().get(e.queryHash))}),Kc(a);let[s]=k.useState(()=>new ine(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;k.useSyncExternalStore(k.useCallback(e=>d?s.subscribe(bc.batchCalls(e)):$s,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),k.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>Yc(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&Yc(n,e)?Xc(n,new kc(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&qc({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 Zc(e,t,n){let r=Uc(),i=Wc(),a=Vc(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Jc(o),Gc(o,i,s),Kc(i);let c=!a.getQueryCache().get(o.queryHash),[l]=k.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(e=>{let t=d?l.subscribe(bc.batchCalls(e)):$s;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),k.useEffect(()=>{l.setOptions(o)},[o,l]),Yc(o,u))throw Xc(o,l,i);if(qc({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&&!Qs&&une(u,r)&&(c?Xc(o,l,i):s?.promise)?.catch($s).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function fne(e,t){return Zc(e,kc,t)}function pne(e){return e}function mne(e){return e}function hne(e,t){let n=Vc(t),[r]=k.useState(()=>new nne(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);let i=k.useSyncExternalStore(k.useCallback(e=>r.subscribe(bc.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((e,t)=>{r.mutate(e,t).catch($s)},[r]);if(i.error&&_c(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function gne(e,t){return Zc(e,$te,t)}function Qc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function $c(...e){return t=>{let n=!1,r=e.map(e=>{let r=Qc(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():Qc(e[t],null)}}}}function el(...e){return k.useCallback($c(...e),e)}var tl=Symbol.for(`react.lazy`),nl=k.use;function rl(e){return typeof e==`object`&&!!e&&`then`in e}function il(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===tl&&`_payload`in e&&rl(e._payload)}function al(e){let t=sl(e),n=k.forwardRef((e,n)=>{let{children:r,...i}=e;il(r)&&typeof nl==`function`&&(r=nl(r._payload));let a=k.Children.toArray(r),o=a.find(dl);if(o){let e=o.props.children,r=a.map(t=>t===o?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t);return(0,A.jsx)(t,{...i,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return(0,A.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ol=al(`Slot`);function sl(e){let t=k.forwardRef((e,t)=>{let{children:n,...r}=e;if(il(n)&&typeof nl==`function`&&(n=nl(n._payload)),k.isValidElement(n)){let e=pl(n),i=fl(r,n.props);return n.type!==k.Fragment&&(i.ref=t?$c(t,e):e),k.cloneElement(n,i)}return k.Children.count(n)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cl=Symbol(`radix.slottable`);function ll(e){let t=({children:e})=>(0,A.jsx)(A.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=cl,t}var ul=ll(`Slottable`);function dl(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===cl}function fl(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 pl(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 ml(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=ml(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function hl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ml(e))&&(r&&(r+=` `),r+=t);return r}var gl=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,_l=hl,vl=(e,t)=>n=>{if(t?.variants==null)return _l(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=gl(t)||gl(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 _l(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)},yl=(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},bl=(e,t)=>({classGroupId:e,validator:t}),xl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sl=`-`,Cl=[],wl=`arbitrary..`,Tl=e=>{let t=Ol(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Dl(e);let n=e.split(Sl);return El(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?yl(i,t):t:i||Cl}return n[e]||Cl}}},El=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=El(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Sl):e.slice(t).join(Sl),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Dl=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?wl+r:void 0})(),Ol=e=>{let{theme:t,classGroups:n}=e;return kl(n,t)},kl=(e,t)=>{let n=xl();for(let r in e){let i=e[r];Al(i,n,r,t)}return n},Al=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];jl(i,t,n,r)}},jl=(e,t,n,r)=>{if(typeof e==`string`){Ml(e,t,n);return}if(typeof e==`function`){Nl(e,t,n,r);return}Pl(e,t,n,r)},Ml=(e,t,n)=>{let r=e===``?t:Fl(t,e);r.classGroupId=n},Nl=(e,t,n,r)=>{if(Il(e)){Al(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(bl(n,e))},Pl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Al(o,Fl(t,a),n,r)}},Fl=(e,t)=>{let n=e,r=t.split(Sl),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=xl(),n.nextPart.set(t,i)),n=i}return n},Il=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ll=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)}}},Rl=`!`,zl=`:`,Bl=[],Vl=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Hl=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===zl){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(Rl)?(c=s.slice(0,-1),l=!0):s.startsWith(Rl)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Vl(t,l,c,u)};if(t){let e=t+zl,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Vl(Bl,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ul=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}},Wl=e=>({cache:Ll(e.cacheSize),parseClassName:Hl(e),sortModifiers:Ul(e),postfixLookupClassGroupIds:Gl(e),...Tl(e)}),Gl=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},Kl=/\s+/,ql=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Kl),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?_+Rl:_,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},Jl=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Yl(n))&&(i&&(i+=` `),i+=r);return i},Yl=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Yl(e[r]))&&(n&&(n+=` `),n+=t);return n},Xl=(e,...t)=>{let n,r,i,a,o=o=>(n=Wl(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=ql(e,n);return i(e,a),a};return a=o,(...e)=>a(Jl(...e))},Zl=[],Ql=e=>{let t=t=>t[e]||Zl;return t.isThemeGetter=!0,t},$l=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ru=/\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$/,iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,au=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,su=e=>tu.test(e),cu=e=>!!e&&!Number.isNaN(Number(e)),lu=e=>!!e&&Number.isInteger(Number(e)),uu=e=>e.endsWith(`%`)&&cu(e.slice(0,-1)),du=e=>nu.test(e),fu=()=>!0,pu=e=>ru.test(e)&&!iu.test(e),mu=()=>!1,hu=e=>au.test(e),gu=e=>ou.test(e),_u=e=>!bu(e)&&!Ou(e),vu=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)),yu=e=>Iu(e,Bu,mu),bu=e=>$l.test(e),xu=e=>Iu(e,Vu,pu),Su=e=>Iu(e,Hu,cu),Cu=e=>Iu(e,Wu,fu),wu=e=>Iu(e,Uu,mu),Tu=e=>Iu(e,Ru,mu),Eu=e=>Iu(e,zu,gu),Du=e=>Iu(e,Gu,hu),Ou=e=>eu.test(e),ku=e=>Lu(e,Vu),Au=e=>Lu(e,Uu),ju=e=>Lu(e,Ru),Mu=e=>Lu(e,Bu),Nu=e=>Lu(e,zu),Pu=e=>Lu(e,Gu,!0),Fu=e=>Lu(e,Wu,!0),Iu=(e,t,n)=>{let r=$l.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Lu=(e,t,n=!1)=>{let r=eu.exec(e);return r?r[1]?t(r[1]):n:!1},Ru=e=>e===`position`||e===`percentage`,zu=e=>e===`image`||e===`url`,Bu=e=>e===`length`||e===`size`||e===`bg-size`,Vu=e=>e===`length`,Hu=e=>e===`number`,Uu=e=>e===`family-name`,Wu=e=>e===`number`||e===`weight`,Gu=e=>e===`shadow`,Ku=()=>{let e=Ql(`color`),t=Ql(`font`),n=Ql(`text`),r=Ql(`font-weight`),i=Ql(`tracking`),a=Ql(`leading`),o=Ql(`breakpoint`),s=Ql(`container`),c=Ql(`spacing`),l=Ql(`radius`),u=Ql(`shadow`),d=Ql(`inset-shadow`),f=Ql(`text-shadow`),p=Ql(`drop-shadow`),m=Ql(`blur`),h=Ql(`perspective`),g=Ql(`aspect`),_=Ql(`ease`),v=Ql(`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(),Ou,bu],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Ou,bu,c],T=()=>[su,`full`,`auto`,...w()],E=()=>[lu,`none`,`subgrid`,Ou,bu],D=()=>[`auto`,{span:[`full`,lu,Ou,bu]},lu,Ou,bu],ee=()=>[lu,`auto`,Ou,bu],te=()=>[`auto`,`min`,`max`,`fr`,Ou,bu],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ie=()=>[`auto`,...w()],ae=()=>[su,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],oe=()=>[su,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],se=()=>[su,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,Ou,bu],ce=()=>[...b(),ju,Tu,{position:[Ou,bu]}],le=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ue=()=>[`auto`,`cover`,`contain`,Mu,yu,{size:[Ou,bu]}],de=()=>[uu,ku,xu],fe=()=>[``,`none`,`full`,l,Ou,bu],pe=()=>[``,cu,ku,xu],me=()=>[`solid`,`dashed`,`dotted`,`double`],he=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ge=()=>[cu,uu,ju,Tu],_e=()=>[``,`none`,m,Ou,bu],ve=()=>[`none`,cu,Ou,bu],ye=()=>[`none`,cu,Ou,bu],be=()=>[cu,Ou,bu],xe=()=>[su,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[du],breakpoint:[du],color:[fu],container:[du],"drop-shadow":[du],ease:[`in`,`out`,`in-out`],font:[_u],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[du],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[du],shadow:[du],spacing:[`px`,cu],text:[du],"text-shadow":[du],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,su,bu,Ou,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Ou,bu]}],"container-named":[vu],columns:[{columns:[cu,bu,Ou,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:[lu,`auto`,Ou,bu]}],basis:[{basis:[su,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[cu,su,`auto`,`initial`,`none`,bu]}],grow:[{grow:[``,cu,Ou,bu]}],shrink:[{shrink:[``,cu,Ou,bu]}],order:[{order:[lu,`first`,`last`,`none`,Ou,bu]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],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:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],"inline-size":[{inline:[`auto`,...oe()]}],"min-inline-size":[{"min-inline":[`auto`,...oe()]}],"max-inline-size":[{"max-inline":[`none`,...oe()]}],"block-size":[{block:[`auto`,...se()]}],"min-block-size":[{"min-block":[`auto`,...se()]}],"max-block-size":[{"max-block":[`none`,...se()]}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,...ae()]}],"font-size":[{text:[`base`,n,ku,xu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Fu,Cu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,uu,bu]}],"font-family":[{font:[Au,wu,t]}],"font-features":[{"font-features":[bu]}],"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,Ou,bu]}],"line-clamp":[{"line-clamp":[cu,`none`,Ou,Su]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Ou,bu]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Ou,bu]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...me(),`wavy`]}],"text-decoration-thickness":[{decoration:[cu,`from-font`,`auto`,Ou,xu]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[cu,`auto`,Ou,bu]}],"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:[lu,Ou,bu]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Ou,bu]}],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`,Ou,bu]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},lu,Ou,bu],radial:[``,Ou,bu],conic:[lu,Ou,bu]},Nu,Eu]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...me(),`hidden`,`none`]}],"divide-style":[{divide:[...me(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...me(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[cu,Ou,bu]}],"outline-w":[{outline:[``,cu,ku,xu]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,Pu,Du]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,Pu,Du]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:pe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[cu,xu]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,Pu,Du]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[cu,Ou,bu]}],"mix-blend":[{"mix-blend":[...he(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":he()}],"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":[cu]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[Ou,bu]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":[cu]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Ou,bu]}],filter:[{filter:[``,`none`,Ou,bu]}],blur:[{blur:_e()}],brightness:[{brightness:[cu,Ou,bu]}],contrast:[{contrast:[cu,Ou,bu]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Pu,Du]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,cu,Ou,bu]}],"hue-rotate":[{"hue-rotate":[cu,Ou,bu]}],invert:[{invert:[``,cu,Ou,bu]}],saturate:[{saturate:[cu,Ou,bu]}],sepia:[{sepia:[``,cu,Ou,bu]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Ou,bu]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[cu,Ou,bu]}],"backdrop-contrast":[{"backdrop-contrast":[cu,Ou,bu]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,cu,Ou,bu]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[cu,Ou,bu]}],"backdrop-invert":[{"backdrop-invert":[``,cu,Ou,bu]}],"backdrop-opacity":[{"backdrop-opacity":[cu,Ou,bu]}],"backdrop-saturate":[{"backdrop-saturate":[cu,Ou,bu]}],"backdrop-sepia":[{"backdrop-sepia":[``,cu,Ou,bu]}],"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`,Ou,bu]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[cu,`initial`,Ou,bu]}],ease:[{ease:[`linear`,`initial`,_,Ou,bu]}],delay:[{delay:[cu,Ou,bu]}],animate:[{animate:[`none`,v,Ou,bu]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Ou,bu]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[Ou,bu,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],zoom:[{zoom:[lu,Ou,bu]}],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"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`,Ou,bu]}],"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":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"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`,Ou,bu]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[cu,ku,xu,Su]}],stroke:[{stroke:[`none`,...O()]}],"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`]}},qu=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(Ju(e,`cacheSize`,t),Ju(e,`prefix`,n),Ju(e,`experimentalParseClassName`,r),Yu(e.theme,a.theme),Yu(e.classGroups,a.classGroups),Yu(e.conflictingClassGroups,a.conflictingClassGroups),Yu(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Ju(e,`postfixLookupClassGroups`,a.postfixLookupClassGroups),Ju(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Xu(e.theme,i.theme),Xu(e.classGroups,i.classGroups),Xu(e.conflictingClassGroups,i.conflictingClassGroups),Xu(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Zu(e,i,`postfixLookupClassGroups`),Zu(e,i,`orderSensitiveModifiers`),e),Ju=(e,t,n)=>{n!==void 0&&(e[t]=n)},Yu=(e,t)=>{if(t)for(let n in t)Ju(e,n,t[n])},Xu=(e,t)=>{if(t)for(let n in t)Zu(e,t,n)},Zu=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Qu=(e,...t)=>typeof e==`function`?Xl(Ku,e,...t):Xl(()=>qu(Ku(),e),...t);typeof window<`u`&&window.document&&window.document.createElement;function $u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ed(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function td(...e){return t=>{let n=!1,r=e.map(e=>{let r=ed(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():ed(e[t],null)}}}}function nd(...e){return k.useCallback(td(...e),e)}function rd(e,t=[]){let n=[];function r(t,r){let i=k.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=k.useMemo(()=>o,Object.values(o));return(0,A.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=k.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=>k.createContext(e));return function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,id(i,...t)]}function id(...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 k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var ad=n(c(),1);function od(e){let t=k.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];md(r)&&typeof vd==`function`&&(r=vd(r._payload)),k.Children.forEach(r,e=>{if(fd(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;md(n)&&typeof vd==`function`&&(n=vd(n._payload)),a=ld(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=k.cloneElement(a,void 0,s):!o&&k.Children.count(r)===1&&k.isValidElement(r)&&(a=r);let c=a?dd(a):void 0,l=nd(n,c);if(!a){if(r||r===0)throw Error(o?_d(e):gd(e));return r}let u=ud(i,a.props??{});return a.type!==k.Fragment&&(u.ref=n?l:c),k.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var sd=Symbol.for(`radix.slottable`);function cd(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=sd,t}var ld=(e,t)=>{if(`child`in e.props){let t=e.props.child;return k.isValidElement(t)?k.cloneElement(t,void 0,e.props.children(t.props.children)):null}return k.isValidElement(t)?t:null};function ud(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 dd(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 fd(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===sd}var pd=Symbol.for(`react.lazy`);function md(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===pd&&`_payload`in e&&hd(e._payload)}function hd(e){return typeof e==`object`&&!!e&&`then`in e}var gd=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,_d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,vd=k.use,yd=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=od(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bd(e,t){e&&ad.flushSync(()=>e.dispatchEvent(t))}function xd(e){let t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Sd=globalThis?.document?k.useLayoutEffect:()=>{},Cd=k.useEffectEvent,wd=k.useInsertionEffect;function Td(e){if(typeof Cd==`function`)return Cd(e);let t=k.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof wd==`function`?wd(()=>{t.current=e}):Sd(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Ed=`DismissableLayer`,Dd=`dismissableLayer.update`,Od=`dismissableLayer.pointerDownOutside`,kd=`dismissableLayer.focusOutside`,Ad,jd=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Md=k.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=k.useContext(jd),[d,f]=k.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=k.useState({}),h=nd(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=k.useRef(!1),C=Id(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=Ld(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=Td(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return k.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T]),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ad=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Rd(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Ad))}},[d,p,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Rd())},[d,u]),k.useEffect(()=>{let e=()=>m({});return document.addEventListener(Dd,e),()=>document.removeEventListener(Dd,e)},[]),(0,A.jsx)(yd.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:$u(e.onFocusCapture,w.onFocusCapture),onBlurCapture:$u(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:$u(e.onPointerDownCapture,C.onPointerDownCapture)})});Md.displayName=Ed;var Nd=`DismissableLayerBranch`,Pd=k.forwardRef((e,t)=>{let n=k.useContext(jd),r=k.useRef(null),i=nd(t,r);return k.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,A.jsx)(yd.div,{...e,ref:i})});Pd.displayName=Nd;function Fd(){let e=k.useContext(jd),[t,n]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function Id(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a}=t,o=xd(e),s=k.useRef(!1),c=k.useRef(!1),l=k.useRef(new Map),u=k.useRef(()=>{});return k.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||zd(Od,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 Ld(e,t=globalThis?.document){let n=xd(e),r=k.useRef(!1);return k.useEffect(()=>{let e=e=>{e.target&&!r.current&&zd(kd,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 Rd(){let e=new CustomEvent(Dd);document.dispatchEvent(e)}function zd(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?bd(i,a):i.dispatchEvent(a)}var Bd=k.useId||(()=>void 0),Vd=0;function Hd(e){let[t,n]=k.useState(Bd());return Sd(()=>{e||n(e=>e??String(Vd++))},[e]),e||(t?`radix-${t}`:``)}var Ud=[`top`,`right`,`bottom`,`left`],Wd=[`start`,`end`],Gd=Ud.reduce((e,t)=>e.concat(t,t+`-`+Wd[0],t+`-`+Wd[1]),[]),Kd=Math.min,qd=Math.max,Jd=Math.round,Yd=Math.floor,Xd=e=>({x:e,y:e}),Zd={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qd(e,t,n){return qd(e,Kd(t,n))}function $d(e,t){return typeof e==`function`?e(t):e}function ef(e){return e.split(`-`)[0]}function tf(e){return e.split(`-`)[1]}function nf(e){return e===`x`?`y`:`x`}function rf(e){return e===`y`?`height`:`width`}function af(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function of(e){return nf(af(e))}function sf(e,t,n){n===void 0&&(n=!1);let r=tf(e),i=of(e),a=rf(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=gf(o)),[o,gf(o)]}function cf(e){let t=gf(e);return[lf(e),t,lf(t)]}function lf(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var uf=[`left`,`right`],df=[`right`,`left`],ff=[`top`,`bottom`],pf=[`bottom`,`top`];function mf(e,t,n){switch(e){case`top`:case`bottom`:return n?t?df:uf:t?uf:df;case`left`:case`right`:return t?ff:pf;default:return[]}}function hf(e,t,n,r){let i=tf(e),a=mf(ef(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(lf)))),a}function gf(e){let t=ef(e);return Zd[t]+e.slice(t.length)}function _f(e){return{top:0,right:0,bottom:0,left:0,...e}}function vf(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:_f(e)}function yf(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 bf(e,t,n){let{reference:r,floating:i}=e,a=af(t),o=of(t),s=rf(o),c=ef(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(tf(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 xf(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}=$d(t,e),p=vf(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=yf(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=yf(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 Sf=50,Cf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:xf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bf(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<Sf&&(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}=bf(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},wf=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}=$d(e,t)||{};if(l==null)return{};let d=vf(u),f={x:n,y:r},p=of(i),m=rf(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=Kd(d[_],T),D=Kd(d[v],T),ee=E,te=C-h[m]-D,ne=C/2-h[m]/2+w,re=Qd(ee,ne,te),ie=!c.arrow&&tf(i)!=null&&ne!==re&&a.reference[m]/2-(ne<ee?E:D)-h[m]/2<0,ae=ie?ne<ee?ne-ee:ne-te:0;return{[p]:f[p]+ae,data:{[p]:re,centerOffset:ne-re-ae,...ie&&{alignmentOffset:ae}},reset:ie}}});function Tf(e,t,n){return(e?[...n.filter(t=>tf(t)===e),...n.filter(t=>tf(t)!==e)]:n.filter(e=>ef(e)===e)).filter(n=>e?tf(n)===e||(t?lf(n)!==n:!1):!0)}var Ef=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=Gd,autoAlignment:u=!0,...d}=$d(e,t),f=c!==void 0||l===Gd?Tf(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=sf(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[ef(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=tf(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,tf(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}}}}},Df=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}=$d(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ef(r),_=af(o),v=ef(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[gf(o)]:cf(o)),x=p!==`none`;!d&&x&&b.push(...hf(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=sf(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`&&_!==af(t))||T.every(e=>af(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=af(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 Of(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kf(e){return Ud.some(t=>e[t]>=0)}var Af=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$d(e,t);switch(i){case`referenceHidden`:{let e=Of(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:kf(e)}}}case`escaped`:{let e=Of(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:kf(e)}}}default:return{}}}}};function jf(e){let t=Kd(...e.map(e=>e.left)),n=Kd(...e.map(e=>e.top)),r=qd(...e.map(e=>e.right)),i=qd(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Mf(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=>yf(jf(e)))}var Nf=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}=$d(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=Mf(u),f=yf(jf(u)),p=vf(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(af(n)===`y`){let e=d[0],t=d[d.length-1],r=ef(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=ef(n)===`left`,t=qd(...d.map(e=>e.right)),r=Kd(...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}}:{}}}},Pf=new Set([`left`,`top`]);async function Ff(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ef(n),s=tf(n),c=af(n)===`y`,l=Pf.has(o)?-1:1,u=a&&c?-1:1,d=$d(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 If=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 Ff(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}}}}},Lf=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}=$d(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=af(ef(i)),p=nf(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=Qd(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=Qd(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}}}}}},Rf=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}=$d(e,t),u={x:n,y:r},d=af(i),f=nf(d),p=u[f],m=u[d],h=$d(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=Pf.has(ef(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}}}},zf=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}=$d(e,t),u=await o.detectOverflow(t,l),d=ef(i),f=tf(i),p=af(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=Kd(h-u[g],v),x=Kd(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=qd(u.left,0),t=qd(u.right,0),n=qd(u.top,0),r=qd(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:qd(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:qd(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 Bf(){return typeof window<`u`}function Vf(e){return Wf(e)?(e.nodeName||``).toLowerCase():`#document`}function Hf(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uf(e){return((Wf(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Wf(e){return Bf()?e instanceof Node||e instanceof Hf(e).Node:!1}function Gf(e){return Bf()?e instanceof Element||e instanceof Hf(e).Element:!1}function Kf(e){return Bf()?e instanceof HTMLElement||e instanceof Hf(e).HTMLElement:!1}function qf(e){return!Bf()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Hf(e).ShadowRoot}function Jf(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ap(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Yf(e){return/^(table|td|th)$/.test(Vf(e))}function Xf(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Zf=/transform|translate|scale|rotate|perspective|filter/,Qf=/paint|layout|strict|content/,$f=e=>!!e&&e!==`none`,ep;function tp(e){let t=Gf(e)?ap(e):e;return $f(t.transform)||$f(t.translate)||$f(t.scale)||$f(t.rotate)||$f(t.perspective)||!rp()&&($f(t.backdropFilter)||$f(t.filter))||Zf.test(t.willChange||``)||Qf.test(t.contain||``)}function np(e){let t=sp(e);for(;Kf(t)&&!ip(t);){if(tp(t))return t;if(Xf(t))return null;t=sp(t)}return null}function rp(){return ep??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ep}function ip(e){return/^(html|body|#document)$/.test(Vf(e))}function ap(e){return Hf(e).getComputedStyle(e)}function op(e){return Gf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sp(e){if(Vf(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||qf(e)&&e.host||Uf(e);return qf(t)?t.host:t}function cp(e){let t=sp(e);return ip(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kf(t)&&Jf(t)?t:cp(t)}function lp(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=cp(e),i=r===e.ownerDocument?.body,a=Hf(r);if(i){let e=up(a);return t.concat(a,a.visualViewport||[],Jf(r)?r:[],e&&n?lp(e):[])}else return t.concat(r,lp(r,[],n))}function up(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dp(e){let t=ap(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Kf(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Jd(n)!==a||Jd(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fp(e){return Gf(e)?e:e.contextElement}function pp(e){let t=fp(e);if(!Kf(t))return Xd(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=dp(t),o=(a?Jd(n.width):n.width)/r,s=(a?Jd(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var mp=Xd(0);function hp(e){let t=Hf(e);return!rp()||!t.visualViewport?mp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Hf(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=fp(e),o=Xd(1);t&&(r?Gf(r)&&(o=pp(r)):o=pp(e));let s=gp(a,n,r)?hp(a):Xd(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=Hf(a),t=r&&Gf(r)?Hf(r):r,n=e,i=up(n);for(;i&&r&&t!==n;){let e=pp(i),t=i.getBoundingClientRect(),r=ap(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=Hf(i),i=up(n)}}return yf({width:u,height:d,x:c,y:l})}function vp(e,t){let n=op(e).scrollLeft;return t?t.left+n:_p(Uf(e)).left+n}function yp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vp(e,n),y:n.top+t.scrollTop}}function bp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Uf(r),s=t?Xf(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xd(1),u=Xd(0),d=Kf(r);if((d||!d&&!a)&&((Vf(r)!==`body`||Jf(o))&&(c=op(r)),d)){let e=_p(r);l=pp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?yp(o,c):Xd(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 xp(e){return Array.from(e.getClientRects())}function Sp(e){let t=Uf(e),n=op(e),r=e.ownerDocument.body,i=qd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+vp(e),s=-n.scrollTop;return ap(r).direction===`rtl`&&(o+=qd(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Cp=25;function wp(e,t){let n=Hf(e),r=Uf(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=rp();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=vp(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<=Cp&&(a-=o)}else l<=Cp&&(a+=l);return{width:a,height:o,x:s,y:c}}function Tp(e,t){let n=_p(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Kf(e)?pp(e):Xd(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ep(e,t,n){let r;if(t===`viewport`)r=wp(e,n);else if(t===`document`)r=Sp(Uf(e));else if(Gf(t))r=Tp(t,n);else{let n=hp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return yf(r)}function Dp(e,t){let n=sp(e);return n===t||!Gf(n)||ip(n)?!1:ap(n).position===`fixed`||Dp(n,t)}function Op(e,t){let n=t.get(e);if(n)return n;let r=lp(e,[],!1).filter(e=>Gf(e)&&Vf(e)!==`body`),i=null,a=ap(e).position===`fixed`,o=a?sp(e):e;for(;Gf(o)&&!ip(o);){let t=ap(o),n=tp(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Jf(o)&&!n&&Dp(e,o))?r=r.filter(e=>e!==o):i=t,o=sp(o)}return t.set(e,r),r}function kp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xf(t)?[]:Op(t,this._c):[].concat(n),r],o=Ep(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=Ep(t,a[e],i);s=qd(n.top,s),c=Kd(n.right,c),l=Kd(n.bottom,l),u=qd(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ap(e){let{width:t,height:n}=dp(e);return{width:t,height:n}}function jp(e,t,n){let r=Kf(t),i=Uf(t),a=n===`fixed`,o=_p(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xd(0);function l(){c.x=vp(i)}if(r||!r&&!a)if((Vf(t)!==`body`||Jf(i))&&(s=op(t)),r){let e=_p(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?yp(i,s):Xd(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 Mp(e){return ap(e).position===`static`}function Np(e,t){if(!Kf(e)||ap(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Uf(e)===n&&(n=n.ownerDocument.body),n}function Pp(e,t){let n=Hf(e);if(Xf(e))return n;if(!Kf(e)){let t=sp(e);for(;t&&!ip(t);){if(Gf(t)&&!Mp(t))return t;t=sp(t)}return n}let r=Np(e,t);for(;r&&Yf(r)&&Mp(r);)r=Np(r,t);return r&&ip(r)&&Mp(r)&&!tp(r)?n:r||np(e)||n}var Fp=async function(e){let t=this.getOffsetParent||Pp,n=this.getDimensions,r=await n(e.floating);return{reference:jp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ip(e){return ap(e).direction===`rtl`}var Lp={convertOffsetParentRelativeRectToViewportRelativeRect:bp,getDocumentElement:Uf,getClippingRect:kp,getOffsetParent:Pp,getElementRects:Fp,getClientRects:xp,getDimensions:Ap,getScale:pp,isElement:Gf,isRTL:Ip};function Rp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zp(e,t){let n=null,r,i=Uf(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=Yd(d),h=Yd(i.clientWidth-(u+f)),g=Yd(i.clientHeight-(d+p)),_=Yd(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qd(0,Kd(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&&!Rp(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 Bp(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=fp(e),u=i||a?[...l?lp(l):[],...t?lp(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?zp(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?_p(e):null;c&&g();function g(){let t=_p(e);h&&!Rp(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 Vp=If,Hp=Ef,Up=Lf,Wp=Df,Gp=zf,Kp=Af,qp=wf,Jp=Nf,Yp=Rf,Xp=(e,t,n)=>{let r=new Map,i={platform:Lp,...n},a={...i.platform,_c:r};return Cf(e,t,{...i,platform:a})},Zp=typeof document<`u`?k.useLayoutEffect:function(){};function Qp(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(!Qp(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)&&!Qp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function $p(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function em(e,t){let n=$p(e);return Math.round(t*n)/n}function tm(e){let t=k.useRef(e);return Zp(()=>{t.current=e}),t}function nm(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]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(r);Qp(f,r)||p(r);let[m,h]=k.useState(null),[g,_]=k.useState(null),v=k.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=k.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=k.useRef(null),C=k.useRef(null),w=k.useRef(u),T=c!=null,E=tm(c),D=tm(i),ee=tm(l),te=k.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Xp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};ne.current&&!Qp(w.current,t)&&(w.current=t,ad.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);Zp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=k.useRef(!1);Zp(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Zp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,te);te()}},[b,x,te,E,T]);let re=k.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ie=k.useMemo(()=>({reference:b,floating:x}),[b,x]),ae=k.useMemo(()=>{let e={position:n,left:0,top:0};if(!ie.floating)return e;let t=em(ie.floating,u.x),r=em(ie.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...$p(ie.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ie.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:te,refs:re,elements:ie,floatingStyles:ae}),[u,te,re,ie,ae])}var rm=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?{}:qp({element:r.current,padding:i}).fn(n):r?qp({element:r,padding:i}).fn(n):{}}}},im=(e,t)=>{let n=Vp(e);return{name:n.name,fn:n.fn,options:[e,t]}},am=(e,t)=>{let n=Up(e);return{name:n.name,fn:n.fn,options:[e,t]}},om=(e,t)=>({fn:Yp(e).fn,options:[e,t]}),sm=(e,t)=>{let n=Wp(e);return{name:n.name,fn:n.fn,options:[e,t]}},cm=(e,t)=>{let n=Gp(e);return{name:n.name,fn:n.fn,options:[e,t]}},lm=(e,t)=>{let n=Kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},um=(e,t)=>{let n=rm(e);return{name:n.name,fn:n.fn,options:[e,t]}},dm=`Arrow`,fm=k.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,A.jsx)(yd.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,A.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});fm.displayName=dm;var pm=fm;function mm(e){let[t,n]=k.useState(void 0);return Sd(()=>{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 hm=`Popper`,[gm,_m]=rd(hm),[vm,ym]=gm(hm),bm=e=>{let{__scopePopper:t,children:n}=e,[r,i]=k.useState(null),[a,o]=k.useState(void 0);return(0,A.jsx)(vm,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};bm.displayName=hm;var xm=`PopperAnchor`,Sm=k.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=ym(xm,n),o=k.useRef(null),s=a.onAnchorChange,c=nd(t,k.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=k.useRef(null);k.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Mm(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,A.jsx)(yd.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});Sm.displayName=xm;var Cm=`PopperContent`,[wm,Tm]=gm(Cm),Em=k.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=ym(Cm,n),[_,v]=k.useState(null),y=nd(t,v),[b,x]=k.useState(null),S=mm(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],ee=D.length>0,te={padding:E,boundary:D.filter(Am),altBoundary:ee},{refs:ne,floatingStyles:re,placement:ie,isPositioned:ae,middlewareData:oe}=nm({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>Bp(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[im({mainAxis:i+w,alignmentAxis:o}),c&&am({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?om():void 0,...te}),c&&sm({...te}),cm({...te,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&&um({element:b,padding:s}),jm({arrowWidth:C,arrowHeight:w}),f&&lm({strategy:`referenceHidden`,...te,boundary:ee?te.boundary:void 0})]}),se=g.setPlacementState;Sd(()=>(se(ie),()=>{se(void 0)}),[ie,se]);let[O,ce]=Mm(ie),le=xd(m);Sd(()=>{ae&&le?.()},[ae,le]);let ue=oe.arrow?.x,de=oe.arrow?.y,fe=oe.arrow?.centerOffset!==0,[pe,me]=k.useState();return Sd(()=>{_&&me(window.getComputedStyle(_).zIndex)},[_]),(0,A.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...re,transform:ae?re.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:pe,"--radix-popper-transform-origin":[oe.transformOrigin?.x,oe.transformOrigin?.y].join(` `),...oe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,A.jsx)(wm,{scope:n,placedSide:O,placedAlign:ce,onArrowChange:x,arrowX:ue,arrowY:de,shouldHideArrow:fe,children:(0,A.jsx)(yd.div,{"data-side":O,"data-align":ce,...h,ref:y,style:{...h.style,animation:ae?void 0:`none`}})})})});Em.displayName=Cm;var Dm=`PopperArrow`,Om={top:`bottom`,right:`left`,bottom:`top`,left:`right`},km=k.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Tm(Dm,n),a=Om[i.placedSide];return(0,A.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,A.jsx)(pm,{...r,ref:t,style:{...r.style,display:`block`}})})});km.displayName=Dm;function Am(e){return e!==null}var jm=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]=Mm(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 Mm(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Nm=bm,Pm=Sm,Fm=Em,Im=km,_ne=`Portal`,Lm=k.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=k.useState(!1);Sd(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ad.createPortal((0,A.jsx)(yd.div,{...r,ref:t}),o):null});Lm.displayName=_ne;function vne(e,t){return k.useReducer((e,n)=>t[e][n]??e,e)}var Rm=e=>{let{present:t,children:n}=e,r=yne(t),i=typeof n==`function`?n({present:r.isPresent}):k.Children.only(n),a=bne(r.ref,xne(i));return typeof n==`function`||r.isPresent?k.cloneElement(i,{ref:a}):null};Rm.displayName=`Presence`;function yne(e){let[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef(`none`),[o,s]=vne(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return k.useEffect(()=>{let e=Bm(r.current);a.current=o===`mounted`?e:`none`},[o]),Sd(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Bm(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Sd(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Bm(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=Bm(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:k.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function zm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function bne(...e){let t=k.useRef(e);return t.current=e,k.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=zm(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():zm(n[e],null)}}},[])}function Bm(e){return e?.animationName||`none`}function xne(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 Sne=k.useInsertionEffect||Sd;function Vm({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Cne({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=k.useRef(e!==void 0);k.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,k.useCallback(t=>{if(s){let n=wne(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Cne({defaultProp:e,onChange:t}){let[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return Sne(()=>{a.current=t},[t]),k.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function wne(e){return typeof e==`function`}var Tne=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`}),Ene=`VisuallyHidden`,Hm=k.forwardRef((e,t)=>(0,A.jsx)(yd.span,{...e,ref:t,style:{...Tne,...e.style}}));Hm.displayName=Ene;var Dne=Hm,[Um,One]=rd(`Tooltip`,[_m]),Wm=_m(),Gm=`TooltipProvider`,kne=700,Km=`tooltip.open`,[Ane,qm]=Um(Gm),Jm=e=>{let{__scopeTooltip:t,delayDuration:n=kne,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=k.useRef(!0),s=k.useRef(!1),c=k.useRef(0);return k.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,A.jsx)(Ane,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:k.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Jm.displayName=Gm;var Ym=`Tooltip`,[jne,Xm]=Um(Ym),Zm=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=qm(Ym,e.__scopeTooltip),l=Wm(t),[u,d]=k.useState(null),f=Hd(),p=k.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=k.useRef(!1),[_,v]=Vm({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Km))):c.onClose(),a?.(e)},caller:Ym}),y=k.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=k.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=k.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=k.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return k.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,A.jsx)(Nm,{...l,children:(0,A.jsx)(jne,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:k.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:k.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};Zm.displayName=Ym;var Qm=`TooltipTrigger`,$m=k.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Xm(Qm,n),a=qm(Qm,n),o=Wm(n),s=nd(t,k.useRef(null),i.onTriggerChange),c=k.useRef(!1),l=k.useRef(!1),u=k.useCallback(()=>c.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,A.jsx)(Pm,{asChild:!0,...o,children:(0,A.jsx)(yd.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:$u(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:$u(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:$u(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:$u(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:$u(e.onBlur,i.onClose),onClick:$u(e.onClick,i.onClose)})})});$m.displayName=Qm;var eh=`TooltipPortal`,[Mne,Nne]=Um(eh,{forceMount:void 0}),th=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Xm(eh,t);return(0,A.jsx)(Mne,{scope:t,forceMount:n,children:(0,A.jsx)(Rm,{present:n||a.open,children:(0,A.jsx)(Lm,{asChild:!0,container:i,children:r})})})};th.displayName=eh;var nh=`TooltipContent`,rh=k.forwardRef((e,t)=>{let n=Nne(nh,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Xm(nh,e.__scopeTooltip);return(0,A.jsx)(Rm,{present:r||o.open,children:o.disableHoverableContent?(0,A.jsx)(ih,{side:i,...a,ref:t}):(0,A.jsx)(Pne,{side:i,...a,ref:t})})}),Pne=k.forwardRef((e,t)=>{let n=Xm(nh,e.__scopeTooltip),r=qm(nh,e.__scopeTooltip),i=k.useRef(null),a=nd(t,i),[o,s]=k.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=k.useCallback(()=>{s(null),d(!1)},[d]),p=k.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Bne(r,zne(r,n.getBoundingClientRect())),a=Vne(t.getBoundingClientRect());s(Une([...i,...a])),d(!0)},[d]);return k.useEffect(()=>()=>f(),[f]),k.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]),k.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=!Hne(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,A.jsx)(ih,{...e,ref:a})}),[Fne,Ine]=Um(Ym,{isInside:!1}),Lne=cd(`TooltipContent`),ih=k.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Xm(nh,n),l=Wm(n),{onClose:u}=c;return k.useEffect(()=>(document.addEventListener(Km,u),()=>document.removeEventListener(Km,u)),[u]),k.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,A.jsx)(Md,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,A.jsxs)(Fm,{"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,A.jsx)(Lne,{children:r}),(0,A.jsx)(Fne,{scope:n,isInside:!0,children:(0,A.jsx)(Dne,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});rh.displayName=nh;var ah=`TooltipArrow`,Rne=k.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Wm(n);return Ine(ah,n).isInside?null:(0,A.jsx)(Im,{...i,...r,ref:t})});Rne.displayName=ah;function zne(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 Bne(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 Vne(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 Hne(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 Une(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)),Wne(t)}function Wne(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 Gne=Jm,Kne=Zm,qne=$m,Jne=th,Yne=rh,oh=0,sh=null;function ch(){k.useEffect(()=>{sh||={start:lh(),end:lh()};let{start:e,end:t}=sh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),oh++,()=>{oh===1&&(sh?.start.remove(),sh?.end.remove(),sh=null),oh=Math.max(0,oh-1)}},[])}function lh(){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 uh=`focusScope.autoFocusOnMount`,dh=`focusScope.autoFocusOnUnmount`,fh={bubbles:!1,cancelable:!0},Xne=`FocusScope`,ph=k.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=k.useState(null),l=xd(i),u=xd(a),d=k.useRef(null),f=nd(t,c),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:gh(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||gh(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&gh(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]),k.useEffect(()=>{if(s){_h.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(uh,fh);s.addEventListener(uh,l),s.dispatchEvent(t),t.defaultPrevented||(Zne(nre(mh(s)),{select:!0}),document.activeElement===e&&gh(s))}return()=>{s.removeEventListener(uh,l),setTimeout(()=>{let t=new CustomEvent(dh,fh);s.addEventListener(dh,u),s.dispatchEvent(t),t.defaultPrevented||gh(e??document.body,{select:!0}),s.removeEventListener(dh,u),_h.remove(p)},0)}}},[s,l,u,p]);let m=k.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]=Qne(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&gh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&gh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,A.jsx)(yd.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});ph.displayName=Xne;function Zne(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(gh(r,{select:t}),document.activeElement!==n)return}function Qne(e){let t=mh(e);return[hh(t,e),hh(t.reverse(),e)]}function mh(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 hh(e,t){for(let n of e)if(!$ne(n,{upTo:t}))return n}function $ne(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 ere(e){return e instanceof HTMLInputElement&&`select`in e}function gh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ere(e)&&t&&e.select()}}var _h=tre();function tre(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=vh(e,t),e.unshift(t)},remove(t){e=vh(e,t),e[0]?.resume()}}}function vh(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nre(e){return e.filter(e=>e.tagName!==`A`)}var rre=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},yh=new WeakMap,bh=new WeakMap,xh={},Sh=0,Ch=function(e){return e&&(e.host||Ch(e.parentNode))},ire=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ch(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})},are=function(e,t,n,r){var i=ire(t,Array.isArray(e)?e:[e]);xh[n]||(xh[n]=new WeakMap);var a=xh[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=(yh.get(e)||0)+1,l=(a.get(e)||0)+1;yh.set(e,c),a.set(e,l),o.push(e),c===1&&i&&bh.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(),Sh++,function(){o.forEach(function(e){var t=yh.get(e)-1,i=a.get(e)-1;yh.set(e,t),a.set(e,i),t||(bh.has(e)||e.removeAttribute(r),bh.delete(e)),i||e.removeAttribute(n)}),Sh--,Sh||(yh=new WeakMap,yh=new WeakMap,bh=new WeakMap,xh={})}},wh=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||rre(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),are(r,i,n,`aria-hidden`)):function(){return null}},Th=function(){return Th=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},Th.apply(this,arguments)};function Eh(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 ore(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`,Oh=`width-before-scroll-bar`,sre=`with-scroll-bars-hidden`,cre=`--removed-body-scroll-bar-size`;function kh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function lre(e,t){var n=(0,k.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 ure=typeof window<`u`?k.useLayoutEffect:k.useEffect,Ah=new WeakMap;function dre(e,t){var n=lre(t||null,function(t){return e.forEach(function(e){return kh(e,t)})});return ure(function(){var t=Ah.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||kh(e,null)}),i.forEach(function(e){r.has(e)||kh(e,a)})}Ah.set(n,e)},[e]),n}function fre(e){return e}function pre(e,t){t===void 0&&(t=fre);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 mre(e){e===void 0&&(e={});var t=pre(null);return t.options=Th({async:!0,ssr:!1},e),t}var jh=function(e){var t=e.sideCar,n=Eh(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 k.createElement(r,Th({},n))};jh.isSideCarExport=!0;function hre(e,t){return e.useMedium(t),jh}var Mh=mre(),Nh=function(){},Ph=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:Nh,onWheelCapture:Nh,onTouchMoveCapture:Nh}),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=Eh(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=dre([n,t]),C=Th(Th({},b),i);return k.createElement(k.Fragment,null,u&&k.createElement(x,{sideCar:Mh,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?k.cloneElement(k.Children.only(s),Th(Th({},C),{ref:S})):k.createElement(v,Th({},C,{className:c,ref:S}),s))});Ph.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ph.classNames={fullWidth:Oh,zeroRight:Dh};var Fh,gre=function(){if(Fh)return Fh;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _re(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=gre();return t&&e.setAttribute(`nonce`,t),e}function vre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yre(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var bre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_re())&&(vre(t,n),yre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xre=function(){var e=bre();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ih=function(){var e=xre();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Sre={left:0,top:0,right:0,gap:0},Lh=function(e){return parseInt(e||``,10)||0},Cre=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[Lh(n),Lh(r),Lh(i)]},wre=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Sre;var t=Cre(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])}},Tre=Ih(),Rh=`data-scroll-locked`,Ere=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
|
+
.${sre} {
|
|
6
|
+
overflow: hidden ${r};
|
|
7
|
+
padding-right: ${s}px ${r};
|
|
8
|
+
}
|
|
9
|
+
body[${Rh}] {
|
|
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
|
+
.${Oh} {
|
|
27
|
+
margin-right: ${s}px ${r};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.${Dh} .${Dh} {
|
|
31
|
+
right: 0 ${r};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.${Oh} .${Oh} {
|
|
35
|
+
margin-right: 0 ${r};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body[${Rh}] {
|
|
39
|
+
${cre}: ${s}px;
|
|
40
|
+
}
|
|
41
|
+
`},zh=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Dre=function(){k.useEffect(function(){return document.body.setAttribute(Rh,(zh()+1).toString()),function(){var e=zh()-1;e<=0?document.body.removeAttribute(Rh):document.body.setAttribute(Rh,e.toString())}},[])},Ore=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Dre();var a=k.useMemo(function(){return wre(i)},[i]);return k.createElement(Tre,{styles:Ere(a,!t,i,n?``:`!important`)})},Bh=!1;if(typeof window<`u`)try{var Vh=Object.defineProperty({},`passive`,{get:function(){return Bh=!0,!0}});window.addEventListener(`test`,Vh,Vh),window.removeEventListener(`test`,Vh,Vh)}catch{Bh=!1}var Hh=Bh?{passive:!1}:!1,kre=function(e){return e.tagName===`TEXTAREA`},Uh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!kre(e)&&n[t]===`visible`)},Are=function(e){return Uh(e,`overflowY`)},jre=function(e){return Uh(e,`overflowX`)},Wh=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Gh(e,r)){var i=Kh(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mre=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Nre=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Gh=function(e,t){return e===`v`?Are(t):jre(t)},Kh=function(e,t){return e===`v`?Mre(t):Nre(t)},Pre=function(e,t){return e===`h`&&t===`rtl`?-1:1},Fre=function(e,t,n,r,i){var a=Pre(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=Kh(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Gh(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},qh=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jh=function(e){return[e.deltaX,e.deltaY]},Yh=function(e){return e&&`current`in e?e.current:e},Ire=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lre=function(e){return`
|
|
42
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
43
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
44
|
+
`},Rre=0,Xh=[];function zre(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),i=k.useState(Rre++)[0],a=k.useState(Ih)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ore([e.lockRef.current],(e.shards||[]).map(Yh),!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=k.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=qh(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=Wh(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Wh(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 Fre(h,t,e,h===`h`?s:c,!0)},[]),c=k.useCallback(function(e){var n=e;if(!(!Xh.length||Xh[Xh.length-1]!==a)){var r=`deltaY`in n?Jh(n):qh(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Ire(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Yh).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=k.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Bre(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=k.useCallback(function(e){n.current=qh(e),r.current=void 0},[]),d=k.useCallback(function(t){l(t.type,Jh(t),t.target,s(t,e.lockRef.current))},[]),f=k.useCallback(function(t){l(t.type,qh(t),t.target,s(t,e.lockRef.current))},[]);k.useEffect(function(){return Xh.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Hh),document.addEventListener(`touchmove`,c,Hh),document.addEventListener(`touchstart`,u,Hh),function(){Xh=Xh.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Hh),document.removeEventListener(`touchmove`,c,Hh),document.removeEventListener(`touchstart`,u,Hh)}},[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(a,{styles:Lre(i)}):null,p?k.createElement(Ore,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bre(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Vre=hre(Mh,zre),Zh=k.forwardRef(function(e,t){return k.createElement(Ph,Th({},e,{ref:t,sideCar:Vre}))});Zh.classNames=Ph.classNames;var Qh=`Popover`,[$h,Hre]=rd(Qh,[_m]),eg=_m(),[Ure,tg]=$h(Qh),ng=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=eg(t),c=k.useRef(null),[l,u]=k.useState(!1),[d,f]=Vm({prop:r,defaultProp:i??!1,onChange:a,caller:Qh});return(0,A.jsx)(Nm,{...s,children:(0,A.jsx)(Ure,{scope:t,contentId:Hd(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:o,children:n})})};ng.displayName=Qh;var rg=`PopoverAnchor`,ig=k.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=tg(rg,n),a=eg(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return k.useEffect(()=>(o(),()=>s()),[o,s]),(0,A.jsx)(Pm,{...a,...r,ref:t})});ig.displayName=rg;var ag=`PopoverTrigger`,og=k.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=tg(ag,n),a=eg(n),o=nd(t,i.triggerRef),s=(0,A.jsx)(yd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":mg(i.open),...r,ref:o,onClick:$u(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,A.jsx)(Pm,{asChild:!0,...a,children:s})});og.displayName=ag;var sg=`PopoverPortal`,[Wre,Gre]=$h(sg,{forceMount:void 0}),cg=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=tg(sg,t);return(0,A.jsx)(Wre,{scope:t,forceMount:n,children:(0,A.jsx)(Rm,{present:n||a.open,children:(0,A.jsx)(Lm,{asChild:!0,container:i,children:r})})})};cg.displayName=sg;var lg=`PopoverContent`,ug=k.forwardRef((e,t)=>{let n=Gre(lg,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=tg(lg,e.__scopePopover);return(0,A.jsx)(Rm,{present:r||a.open,children:a.modal?(0,A.jsx)(qre,{...i,ref:t}):(0,A.jsx)(Jre,{...i,ref:t})})});ug.displayName=lg;var Kre=od(`PopoverContent.RemoveScroll`),qre=k.forwardRef((e,t)=>{let n=tg(lg,e.__scopePopover),r=k.useRef(null),i=nd(t,r),a=k.useRef(!1);return k.useEffect(()=>{let e=r.current;if(e)return wh(e)},[]),(0,A.jsx)(Zh,{as:Kre,allowPinchZoom:!0,children:(0,A.jsx)(dg,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$u(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:$u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:$u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Jre=k.forwardRef((e,t)=>{let n=tg(lg,e.__scopePopover),r=k.useRef(!1),i=k.useRef(!1);return(0,A.jsx)(dg,{...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()}})}),dg=k.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=tg(lg,n),p=eg(n);return ch(),(0,A.jsx)(ph,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,A.jsx)(Md,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,A.jsx)(Fm,{"data-state":mg(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)`}})})})}),fg=`PopoverClose`,pg=k.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=tg(fg,n);return(0,A.jsx)(yd.button,{type:`button`,...r,ref:t,onClick:$u(e.onClick,()=>i.onOpenChange(!1))})});pg.displayName=fg;var Yre=`PopoverArrow`,Xre=k.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eg(n);return(0,A.jsx)(Im,{...i,...r,ref:t})});Xre.displayName=Yre;function mg(e){return e?`open`:`closed`}var Zre=ng,Qre=ig,$re=og,eie=cg,tie=ug,nie=pg;function hg(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,A.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=k.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=>k.createContext(e));return function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,rie(i,...t)]}function rie(...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 k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function gg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var _g=globalThis?.document?k.useLayoutEffect:()=>{},iie=k.useInsertionEffect||_g;function vg({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=aie({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=k.useRef(e!==void 0);k.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,k.useCallback(t=>{if(s){let n=oie(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function aie({defaultProp:e,onChange:t}){let[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return iie(()=>{a.current=t},[t]),k.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function oie(e){return typeof e==`function`}function sie(e){let t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function cie(e){let[t,n]=k.useState(void 0);return _g(()=>{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 lie(e,t){return k.useReducer((e,n)=>t[e][n]??e,e)}var yg=e=>{let{present:t,children:n}=e,r=uie(t),i=typeof n==`function`?n({present:r.isPresent}):k.Children.only(n),a=el(r.ref,die(i));return typeof n==`function`||r.isPresent?k.cloneElement(i,{ref:a}):null};yg.displayName=`Presence`;function uie(e){let[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef(`none`),[o,s]=lie(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return k.useEffect(()=>{let e=bg(r.current);a.current=o===`mounted`?e:`none`},[o]),_g(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=bg(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),_g(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=bg(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=bg(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:k.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function bg(e){return e?.animationName||`none`}function die(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 xg(e){let t=fie(e),n=k.forwardRef((e,n)=>{let{children:r,...i}=e,a=k.Children.toArray(r),o=a.find(mie);if(o){let e=o.props.children,r=a.map(t=>t===o?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t);return(0,A.jsx)(t,{...i,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return(0,A.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function fie(e){let t=k.forwardRef((e,t)=>{let{children:n,...r}=e;if(k.isValidElement(n)){let e=gie(n),i=hie(r,n.props);return n.type!==k.Fragment&&(i.ref=t?$c(t,e):e),k.cloneElement(n,i)}return k.Children.count(n)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pie=Symbol(`radix.slottable`);function mie(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===pie}function hie(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 gie(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 Sg=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=xg(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Cg=`Checkbox`,[_ie,vie]=hg(Cg),[yie,wg]=_ie(Cg);function bie(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]=vg({prop:n,defaultProp:i??!1,onChange:c,caller:Cg}),[m,h]=k.useState(null),[g,_]=k.useState(null),v=k.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:Mg(i)?!1:i,isFormControl:y,bubbleInput:g,setBubbleInput:_};return(0,A.jsx)(yie,{scope:t,...b,children:xie(d)?d(b):r})}var Tg=`CheckboxTrigger`,Eg=k.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}=wg(Tg,e),h=el(i,u),g=k.useRef(c);return k.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(g.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,A.jsx)(Sg.button,{type:`button`,role:`checkbox`,"aria-checked":Mg(c)?`mixed`:c,"aria-required":l,"data-state":Ng(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:gg(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:gg(n,e=>{d(e=>Mg(e)?!0:!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});Eg.displayName=Tg;var Dg=k.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,A.jsx)(bie,{__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,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Eg,{...d,ref:t,__scopeCheckbox:n}),e&&(0,A.jsx)(jg,{__scopeCheckbox:n})]})})});Dg.displayName=Cg;var Og=`CheckboxIndicator`,kg=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=wg(Og,n);return(0,A.jsx)(yg,{present:r||Mg(a.checked)||a.checked===!0,children:(0,A.jsx)(Sg.span,{"data-state":Ng(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});kg.displayName=Og;var Ag=`CheckboxBubbleInput`,jg=k.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}=wg(Ag,e),m=el(n,p),h=sie(a),g=cie(r);k.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=Mg(a),n.call(e,Mg(a)?!1:a),e.dispatchEvent(t)}},[f,h,a,i]);let _=k.useRef(Mg(a)?!1:a);return(0,A.jsx)(Sg.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%)`}})});jg.displayName=Ag;function xie(e){return typeof e==`function`}function Mg(e){return e===`indeterminate`}function Ng(e){return Mg(e)?`indeterminate`:e?`checked`:`unchecked`}function Pg(e){let t=e+`CollectionProvider`,[n,r]=rd(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=k.useRef(null),a=k.useRef(new Map).current;return(0,A.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=od(s),l=k.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,A.jsx)(c,{ref:nd(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=od(u),p=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),s=nd(t,o),c=a(u,n);return k.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,A.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return k.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 Sie=k.createContext(void 0);function Fg(e){let t=k.useContext(Sie);return e||t||`ltr`}var Ig=`rovingFocusGroup.onEntryFocus`,Cie={bubbles:!1,cancelable:!0},Lg=`RovingFocusGroup`,[Rg,zg,wie]=Pg(Lg),[Tie,Bg]=rd(Lg,[wie]),[Eie,Die]=Tie(Lg),Vg=k.forwardRef((e,t)=>(0,A.jsx)(Rg.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,A.jsx)(Rg.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,A.jsx)(Oie,{...e,ref:t})})}));Vg.displayName=Lg;var Oie=k.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=k.useRef(null),p=nd(t,f),m=Fg(a),[h,g]=Vm({prop:o,defaultProp:s??null,onChange:c,caller:Lg}),[_,v]=k.useState(!1),y=xd(l),b=zg(n),x=k.useRef(!1),[S,C]=k.useState(0);return k.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Ig,y),()=>e.removeEventListener(Ig,y)},[y]),(0,A.jsx)(Eie,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:k.useCallback(e=>g(e),[g]),onItemShiftTab:k.useCallback(()=>v(!0),[]),onFocusableItemAdd:k.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:k.useCallback(()=>C(e=>e-1),[]),children:(0,A.jsx)(yd.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:$u(e.onMouseDown,()=>{x.current=!0}),onFocus:$u(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Ig,Cie);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Wg([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:$u(e.onBlur,()=>v(!1))})})}),Hg=`RovingFocusGroupItem`,Ug=k.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Hd(),l=a||c,u=Die(Hg,n),d=u.currentTabStopId===l,f=zg(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return k.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,A.jsx)(Rg.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,A.jsx)(yd.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:$u(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:$u(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:$u(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=jie(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?Mie(n,r+1):n.slice(r+1)}setTimeout(()=>Wg(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});Ug.displayName=Hg;var kie={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Aie(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function jie(e,t,n){let r=Aie(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return kie[r]}function Wg(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Mie(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Gg=Vg,Kg=Ug;function qg(e){let t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Jg=`Radio`,[Nie,Yg]=rd(Jg),[Pie,Xg]=Nie(Jg);function Zg(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]=k.useState(null),[p,m]=k.useState(null),h={checked:n,disabled:i,required:c,name:o,form:a,value:l,control:d,setControl:f,hasConsumerStoppedPropagationRef:k.useRef(!1),isFormControl:d?!!a||!!d.closest(`form`):!0,bubbleInput:p,setBubbleInput:m,onCheck:()=>s?.()};return(0,A.jsx)(Pie,{scope:t,...h,children:a_(u)?u(h):r})}var Qg=`RadioTrigger`,$g=k.forwardRef(({__scopeRadio:e,onClick:t,...n},r)=>{let{checked:i,disabled:a,value:o,setControl:s,onCheck:c,hasConsumerStoppedPropagationRef:l,isFormControl:u,bubbleInput:d}=Xg(Qg,e),f=nd(r,s);return(0,A.jsx)(yd.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":o_(i),"data-disabled":a?``:void 0,disabled:a,value:o,...n,ref:f,onClick:$u(t,e=>{i||c(),d&&u&&(l.current=e.isPropagationStopped(),l.current||e.stopPropagation())})})});$g.displayName=Qg;var e_=k.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i,required:a,disabled:o,value:s,onCheck:c,form:l,...u}=e;return(0,A.jsx)(Zg,{__scopeRadio:n,checked:i,disabled:o,required:a,onCheck:c,name:r,form:l,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)($g,{...u,ref:t,__scopeRadio:n}),e&&(0,A.jsx)(i_,{__scopeRadio:n})]})})});e_.displayName=Jg;var t_=`RadioIndicator`,n_=k.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Xg(t_,n);return(0,A.jsx)(Rm,{present:r||a.checked,children:(0,A.jsx)(yd.span,{"data-state":o_(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});n_.displayName=t_;var r_=`RadioBubbleInput`,i_=k.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}=Xg(r_,e),p=nd(n,d),m=qg(i),h=mm(r);k.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=k.useRef(i);return(0,A.jsx)(yd.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%)`}})});i_.displayName=r_;function a_(e){return typeof e==`function`}function o_(e){return e?`checked`:`unchecked`}var s_=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],c_=`RadioGroup`,[l_,Fie]=rd(c_,[Bg,Yg]),u_=Bg(),d_=Yg(),[f_,p_]=l_(c_),m_=k.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=u_(n),m=Fg(l),[h,g]=Vm({prop:a,defaultProp:i??null,onChange:d,caller:c_});return(0,A.jsx)(f_,{scope:n,name:r,required:o,disabled:s,value:h,onValueChange:g,children:(0,A.jsx)(Gg,{asChild:!0,...p,orientation:c,dir:m,loop:u,children:(0,A.jsx)(yd.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:m,...f,ref:t})})})});m_.displayName=c_;var h_=`RadioGroupItem`,g_=`RadioGroupItemProvider`,__=`RadioGroupItemTrigger`,v_=`RadioGroupItemBubbleInput`;function y_(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:a}=e,o=p_(g_,t),s=d_(t),c=o.disabled||r;return(0,A.jsx)(Zg,{...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 b_=k.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=u_(n),a=d_(n),{checked:o,disabled:s}=Xg(__,a.__scopeRadio),c=k.useRef(null),l=nd(t,c),u=k.useRef(!1);return k.useEffect(()=>{let e=e=>{s_.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,A.jsx)(Kg,{asChild:!0,...i,focusable:!s,active:o,children:(0,A.jsx)($g,{...a,...r,ref:l,onKeyDown:$u(r.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:$u(r.onFocus,()=>{u.current&&c.current?.click()})})})});b_.displayName=__;var x_=k.forwardRef((e,t)=>{let{__scopeRadioGroup:n,value:r,disabled:i,...a}=e;return(0,A.jsx)(y_,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b_,{...a,ref:t,__scopeRadioGroup:n}),e&&(0,A.jsx)(S_,{__scopeRadioGroup:n})]})})});x_.displayName=h_;var S_=k.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,A.jsx)(i_,{...d_(n),...r,ref:t})});S_.displayName=v_;var C_=`RadioGroupIndicator`,w_=k.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,A.jsx)(n_,{...d_(n),...r,ref:t})});w_.displayName=C_;function T_(e){let t=e+`CollectionProvider`,[n,r]=hg(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=k.useRef(null),a=k.useRef(new Map).current;return(0,A.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=xg(s),l=k.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,A.jsx)(c,{ref:el(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=xg(u),p=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),s=el(t,o),c=a(u,n);return k.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,A.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return k.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 E_=k.useId||(()=>void 0),D_=0;function O_(e){let[t,n]=k.useState(E_());return _g(()=>{e||n(e=>e??String(D_++))},[e]),e||(t?`radix-${t}`:``)}function k_(e){let t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...e)=>t.current?.(...e),[])}var A_=k.createContext(void 0);function j_(e){let t=k.useContext(A_);return e||t||`ltr`}var M_=`rovingFocusGroup.onEntryFocus`,N_={bubbles:!1,cancelable:!0},P_=`RovingFocusGroup`,[F_,I_,L_]=T_(P_),[R_,z_]=hg(P_,[L_]),[B_,V_]=R_(P_),H_=k.forwardRef((e,t)=>(0,A.jsx)(F_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,A.jsx)(F_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,A.jsx)(U_,{...e,ref:t})})}));H_.displayName=P_;var U_=k.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=k.useRef(null),p=el(t,f),m=j_(a),[h,g]=vg({prop:o,defaultProp:s??null,onChange:c,caller:P_}),[_,v]=k.useState(!1),y=k_(l),b=I_(n),x=k.useRef(!1),[S,C]=k.useState(0);return k.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(M_,y),()=>e.removeEventListener(M_,y)},[y]),(0,A.jsx)(B_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:k.useCallback(e=>g(e),[g]),onItemShiftTab:k.useCallback(()=>v(!0),[]),onFocusableItemAdd:k.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:k.useCallback(()=>C(e=>e-1),[]),children:(0,A.jsx)(Sg.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:gg(e.onMouseDown,()=>{x.current=!0}),onFocus:gg(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(M_,N_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Y_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:gg(e.onBlur,()=>v(!1))})})}),W_=`RovingFocusGroupItem`,G_=k.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=O_(),l=a||c,u=V_(W_,n),d=u.currentTabStopId===l,f=I_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return k.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,A.jsx)(F_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,A.jsx)(Sg.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:gg(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:gg(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:gg(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=J_(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?X_(n,r+1):n.slice(r+1)}setTimeout(()=>Y_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});G_.displayName=W_;var K_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function q_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function J_(e,t,n){let r=q_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return K_[r]}function Y_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function X_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Z_=H_,Q_=G_,$_=`Tabs`,[ev,Iie]=hg($_,[z_]),tv=z_(),[nv,rv]=ev($_),iv=k.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=j_(s),[d,f]=vg({prop:r,onChange:i,defaultProp:a??``,caller:$_});return(0,A.jsx)(nv,{scope:n,baseId:O_(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,A.jsx)(Sg.div,{dir:u,"data-orientation":o,...l,ref:t})})});iv.displayName=$_;var av=`TabsList`,ov=k.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=rv(av,n),o=tv(n);return(0,A.jsx)(Z_,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,A.jsx)(Sg.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});ov.displayName=av;var sv=`TabsTrigger`,cv=k.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=rv(sv,n),s=tv(n),c=dv(o.baseId,r),l=fv(o.baseId,r),u=r===o.value;return(0,A.jsx)(Q_,{asChild:!0,...s,focusable:!i,active:u,children:(0,A.jsx)(Sg.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:gg(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:gg(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:gg(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});cv.displayName=sv;var lv=`TabsContent`,uv=k.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=rv(lv,n),c=dv(s.baseId,r),l=fv(s.baseId,r),u=r===s.value,d=k.useRef(u);return k.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.jsx)(yg,{present:i||u,children:({present:n})=>(0,A.jsx)(Sg.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})})});uv.displayName=lv;function dv(e,t){return`${e}-trigger-${t}`}function fv(e,t){return`${e}-content-${t}`}var pv=iv,mv=ov,hv=cv,gv=uv;function _v(e,[t,n]){return Math.min(n,Math.max(t,e))}var vv=[`PageUp`,`PageDown`],yv=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],bv={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},xv=`Slider`,[Sv,Cv,wv]=Pg(xv),[Tv,Lie]=rd(xv,[wv]),[Ev,Dv]=Tv(xv),Ov=k.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=k.useRef(new Set),_=k.useRef(0),v=k.useRef(!1),y=o===`horizontal`?jv:Mv,[b=[],x]=Vm({prop:u,defaultProp:l,onChange:e=>{[...g.current][_.current]?.focus({preventScroll:!0,focusVisible:v.current}),v.current=!1,d(e)}}),S=k.useRef(b);function C(e){E(e,Zv(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=ny(a),s=_v(ry(Math.round((e-r)/a)*a+r,o),[r,i]);x((e=[])=>{let r=Jv(e,s,t);if(ey(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,A.jsx)(Ev,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:_,thumbs:g.current,values:b,orientation:o,form:m,children:(0,A.jsx)(Sv.Provider,{scope:e.__scopeSlider,children:(0,A.jsx)(Sv.Slot,{scope:e.__scopeSlider,children:(0,A.jsx)(y,{"aria-disabled":s,"data-disabled":s?``:void 0,...h,ref:t,onPointerDown:$u(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=vv.includes(e.key)||e.shiftKey&&yv.includes(e.key)?10:1,r=_.current,i=b[r];E(i+a*n*t,r,{commit:!0})}}})})})})});Ov.displayName=xv;var[kv,Av]=Tv(xv,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),jv=k.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=k.useState(null),p=nd(t,f),m=k.useRef(void 0),h=Fg(i),g=h===`ltr`,_=g&&!a||!g&&a;function v(e){let t=m.current||d.getBoundingClientRect(),i=ty([0,t.width],_?[n,r]:[r,n]);return m.current=t,i(e-t.left)}return(0,A.jsx)(kv,{scope:e.__scopeSlider,startEdge:_?`left`:`right`,endEdge:_?`right`:`left`,direction:_?1:-1,size:`width`,children:(0,A.jsx)(Nv,{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=bv[_?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Mv=k.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=k.useRef(null),d=nd(t,u),f=k.useRef(void 0),p=!i;function m(e){let t=f.current||u.current.getBoundingClientRect(),i=ty([0,t.height],p?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,A.jsx)(kv,{scope:e.__scopeSlider,startEdge:p?`bottom`:`top`,endEdge:p?`top`:`bottom`,size:`height`,direction:p?1:-1,children:(0,A.jsx)(Nv,{"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=bv[p?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Nv=k.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=Dv(xv,n);return(0,A.jsx)(yd.span,{...l,ref:t,onKeyDown:$u(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):vv.concat(yv).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:$u(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:$u(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:$u(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),Pv=`SliderTrack`,Fv=k.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Dv(Pv,n);return(0,A.jsx)(yd.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});Fv.displayName=Pv;var Iv=`SliderRange`,Lv=k.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Dv(Iv,n),a=Av(Iv,n),o=nd(t,k.useRef(null)),s=i.values.length,c=i.values.map(e=>Yv(e,i.min,i.max)),l=s>1?Math.min(...c):0,u=100-Math.max(...c);return(0,A.jsx)(yd.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:l+`%`,[a.endEdge]:u+`%`}})});Lv.displayName=Iv;var Rv=`SliderThumb`,[zv,Bv]=Tv(Rv),Vv=`SliderThumbProvider`;function Hv(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,a=Dv(Vv,t),o=Cv(t),[s,c]=k.useState(null),l=k.useMemo(()=>s?o().findIndex(e=>e.ref.current===s):-1,[o,s]),u=mm(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:Yv(f,a.min,a.max);k.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,A.jsx)(zv,{scope:t,...h,children:iy(i)?i(h):r})}Hv.displayName=Vv;var Uv=`SliderThumbTrigger`,Wv=k.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Dv(Uv,n),a=Av(Uv,n),{index:o,value:s,percent:c,size:l,onThumbChange:u}=Bv(Uv,n),d=nd(t,u),f=Xv(o,i.values.length),p=l?.[a.size],m=p?Qv(p,c,a.direction):0;return(0,A.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[a.startEdge]:`calc(${c}% + ${m}px)`},children:(0,A.jsx)(Sv.ItemSlot,{scope:n,children:(0,A.jsx)(yd.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:$u(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})})})});Wv.displayName=Uv;var Gv=k.forwardRef((e,t)=>{let{__scopeSlider:n,name:r,...i}=e;return(0,A.jsx)(Hv,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Wv,{...i,ref:t,__scopeSlider:n}),r?(0,A.jsx)(qv,{__scopeSlider:n},e):null]})})});Gv.displayName=Rv;var Kv=`SliderBubbleInput`,qv=k.forwardRef(({__scopeSlider:e,...t},n)=>{let{value:r,name:i,form:a}=Bv(Kv,e),o=k.useRef(null),s=nd(o,n),c=qg(r);return k.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,A.jsx)(yd.input,{style:{display:`none`},name:i,form:a,...t,ref:s,defaultValue:r})});qv.displayName=Kv;function Jv(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function Yv(e,t,n){return _v(100/(n-t)*(e-t),[0,100])}function Xv(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function Zv(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 Qv(e,t,n){let r=e/2;return(r-ty([0,50],[0,r])(t)*n)*n}function $v(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ey(e,t){if(t>0){let n=$v(e);return Math.min(...n)>=t}return!0}function ty(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 ny(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 ry(e,t){let n=10**t;return Math.round(e*n)/n}function iy(e){return typeof e==`function`}var ay=`Dialog`,[oy,Rie]=rd(ay),[sy,cy]=oy(ay),ly=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=k.useRef(null),c=k.useRef(null),[l,u]=Vm({prop:r,defaultProp:i??!1,onChange:a,caller:ay});return(0,A.jsx)(sy,{scope:t,triggerRef:s,contentRef:c,contentId:Hd(),titleId:Hd(),descriptionId:Hd(),open:l,onOpenChange:u,onOpenToggle:k.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};ly.displayName=ay;var uy=`DialogTrigger`,dy=k.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=cy(uy,n),a=nd(t,i.triggerRef);return(0,A.jsx)(yd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":jy(i.open),...r,ref:a,onClick:$u(e.onClick,i.onOpenToggle)})});dy.displayName=uy;var fy=`DialogPortal`,[py,my]=oy(fy,{forceMount:void 0}),hy=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=cy(fy,t);return(0,A.jsx)(py,{scope:t,forceMount:n,children:k.Children.map(r,e=>(0,A.jsx)(Rm,{present:n||a.open,children:(0,A.jsx)(Lm,{asChild:!0,container:i,children:e})}))})};hy.displayName=fy;var gy=`DialogOverlay`,_y=k.forwardRef((e,t)=>{let n=my(gy,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=cy(gy,e.__scopeDialog);return a.modal?(0,A.jsx)(Rm,{present:r||a.open,children:(0,A.jsx)(yy,{...i,ref:t})}):null});_y.displayName=gy;var vy=od(`DialogOverlay.RemoveScroll`),yy=k.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=cy(gy,n),a=nd(t,Fd());return(0,A.jsx)(Zh,{as:vy,allowPinchZoom:!0,shards:[i.contentRef],children:(0,A.jsx)(yd.div,{"data-state":jy(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})}),by=`DialogContent`,xy=k.forwardRef((e,t)=>{let n=my(by,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=cy(by,e.__scopeDialog);return(0,A.jsx)(Rm,{present:r||a.open,children:a.modal?(0,A.jsx)(Sy,{...i,ref:t}):(0,A.jsx)(Cy,{...i,ref:t})})});xy.displayName=by;var Sy=k.forwardRef((e,t)=>{let n=cy(by,e.__scopeDialog),r=k.useRef(null),i=nd(t,n.contentRef,r);return k.useEffect(()=>{let e=r.current;if(e)return wh(e)},[]),(0,A.jsx)(wy,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:$u(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:$u(e.onFocusOutside,e=>e.preventDefault())})}),Cy=k.forwardRef((e,t)=>{let n=cy(by,e.__scopeDialog),r=k.useRef(!1),i=k.useRef(!1);return(0,A.jsx)(wy,{...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()}})}),wy=k.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=cy(by,n);return ch(),(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(ph,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,A.jsx)(Md,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":jy(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),Ty=`DialogTitle`,Ey=k.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=cy(Ty,n);return(0,A.jsx)(yd.h2,{id:i.titleId,...r,ref:t})});Ey.displayName=Ty;var Dy=`DialogDescription`,Oy=k.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=cy(Dy,n);return(0,A.jsx)(yd.p,{id:i.descriptionId,...r,ref:t})});Oy.displayName=Dy;var ky=`DialogClose`,Ay=k.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=cy(ky,n);return(0,A.jsx)(yd.button,{type:`button`,...r,ref:t,onClick:$u(e.onClick,()=>i.onOpenChange(!1))})});Ay.displayName=ky;function jy(e){return e?`open`:`closed`}function My(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 Ny=e=>{switch(e){case`success`:return Iy;case`info`:return Ry;case`warning`:return Ly;case`error`:return zy;default:return null}},Py=Array(12).fill(0),Fy=({visible:e,className:t})=>k.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},k.createElement(`div`,{className:`sonner-spinner`},Py.map((e,t)=>k.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Iy=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},k.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`})),Ly=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},k.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`})),Ry=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},k.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`})),zy=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},k.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`})),By=k.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`},k.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),k.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Vy=()=>{let[e,t]=k.useState(document.hidden);return k.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Hy=1,Uy=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:Hy++,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],k.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Gy(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`&&!k.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`&&!k.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`&&!k.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`&&!k.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||Hy++;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}},Wy=(e,t)=>{let n=t?.id||Hy++;return Uy.addToast({title:e,...t,id:n}),n},Gy=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Ky=Object.assign(Wy,{success:Uy.success,info:Uy.info,warning:Uy.warning,error:Uy.error,custom:Uy.custom,message:Uy.message,promise:Uy.promise,dismiss:Uy.dismiss,loading:Uy.loading},{getHistory:()=>Uy.toasts,getToasts:()=>Uy.getActiveToasts()});My(`[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 qy(e){return e.label!==void 0}var Jy=3,Yy=`24px`,Xy=`16px`,Zy=4e3,Qy=356,$y=14,eb=45,tb=200;function nb(...e){return e.filter(Boolean).join(` `)}function rb(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var ib=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]=k.useState(null),[ee,te]=k.useState(null),[ne,re]=k.useState(!1),[ie,ae]=k.useState(!1),[oe,se]=k.useState(!1),[O,ce]=k.useState(!1),[le,ue]=k.useState(!1),[de,fe]=k.useState(0),[pe,me]=k.useState(0),he=k.useRef(n.duration||y||Zy),ge=k.useRef(null),_e=k.useRef(null),ve=c===0,ye=c+1<=o,be=n.type,xe=n.dismissible!==!1,Se=n.className||``,Ce=n.descriptionClassName||``,we=k.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Te=k.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Ee=k.useMemo(()=>n.duration||y||Zy,[n.duration,y]),De=k.useRef(0),Oe=k.useRef(0),ke=k.useRef(0),Ae=k.useRef(null),[je,Me]=b.split(`-`),Ne=k.useMemo(()=>s.reduce((e,t,n)=>n>=we?e:e+t.height,0),[s,we]),Pe=Vy(),Fe=n.invert||t,Ie=be===`loading`;Oe.current=k.useMemo(()=>we*x+Ne,[we,Ne]),k.useEffect(()=>{he.current=Ee},[Ee]),k.useEffect(()=>{re(!0)},[]),k.useEffect(()=>{let e=_e.current;if(e){let t=e.getBoundingClientRect().height;return me(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),k.useLayoutEffect(()=>{if(!ne)return;let e=_e.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,me(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])},[ne,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Le=k.useCallback(()=>{ae(!0),fe(Oe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},tb)},[n,d,a,Oe]);k.useEffect(()=>{if(n.promise&&be===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Pe?(()=>{if(ke.current<De.current){let e=new Date().getTime()-De.current;he.current-=e}ke.current=new Date().getTime()})():he.current!==1/0&&(De.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Le()},he.current)),()=>clearTimeout(e)},[u,i,n,be,Pe,Le]),k.useEffect(()=>{n.delete&&(Le(),n.onDismiss==null||n.onDismiss.call(n,n))},[Le,n.delete]);function Re(){return w?.loading?k.createElement(`div`,{className:nb(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":be===`loading`},w.loading):k.createElement(Fy,{className:nb(C?.loader,n?.classNames?.loader),visible:be===`loading`})}let ze=n.icon||w?.[be]||Ny(be);return k.createElement(`li`,{tabIndex:0,ref:_e,className:nb(_,Se,C?.toast,n?.classNames?.toast,C?.default,C?.[be],n?.classNames?.[be]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":ne,"data-promise":!!n.promise,"data-swiped":le,"data-removed":ie,"data-visible":ye,"data-y-position":je,"data-x-position":Me,"data-index":c,"data-front":ve,"data-swiping":oe,"data-dismissible":xe,"data-type":be,"data-invert":Fe,"data-swipe-out":O,"data-swipe-direction":ee,"data-expanded":!!(u||S&&ne),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ie?de:Oe.current}px`,"--initial-height":S?`auto`:`${pe}px`,...m,...n.style},onDragEnd:()=>{se(!1),D(null),Ae.current=null},onPointerDown:e=>{e.button!==2&&(Ie||!xe||(ge.current=new Date,fe(Oe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(se(!0),Ae.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(O||!xe)return;Ae.current=null;let e=Number(_e.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(_e.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ge.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=eb||a>.11){fe(Oe.current),n.onDismiss==null||n.onDismiss.call(n,n),te(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Le(),ce(!0);return}else{var o,s;(o=_e.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=_e.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ue(!1),se(!1),D(null)},onPointerMove:t=>{var n,r;if(!Ae.current||!xe||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ae.current.y,a=t.clientX-Ae.current.x,o=e.swipeDirections??rb(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)&&ue(!0),(n=_e.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=_e.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Te&&!n.jsx&&be!==`loading`?k.createElement(`button`,{"aria-label":T,"data-disabled":Ie,"data-close-button":!0,onClick:Ie||!xe?()=>{}:()=>{Le(),n.onDismiss==null||n.onDismiss.call(n,n)},className:nb(C?.closeButton,n?.classNames?.closeButton)},w?.close??By):null,(be||n.icon||n.promise)&&n.icon!==null&&(w?.[be]!==null||n.icon)?k.createElement(`div`,{"data-icon":``,className:nb(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Re():null,n.type===`loading`?null:ze):null,k.createElement(`div`,{"data-content":``,className:nb(C?.content,n?.classNames?.content)},k.createElement(`div`,{"data-title":``,className:nb(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?k.createElement(`div`,{"data-description":``,className:nb(v,Ce,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),k.isValidElement(n.cancel)?n.cancel:n.cancel&&qy(n.cancel)?k.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{qy(n.cancel)&&xe&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Le())},className:nb(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,k.isValidElement(n.action)?n.action:n.action&&qy(n.action)?k.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{qy(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Le())},className:nb(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function ab(){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 ob(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Xy:Yy;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 sb=k.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=Jy,toastOptions:g,dir:_=ab(),gap:v=$y,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=k.useState([]),C=k.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=k.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=k.useState([]),[D,ee]=k.useState(!1),[te,ne]=k.useState(!1),[re,ie]=k.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),ae=k.useRef(null),oe=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),se=k.useRef(null),O=k.useRef(!1),ce=k.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Uy.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return k.useEffect(()=>Uy.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{ad.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]),k.useEffect(()=>{if(d!==`system`){ie(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ie(`dark`):ie(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ie(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ie(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),k.useEffect(()=>{x.length<=1&&ee(!1)},[x]),k.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;ee(!0),(t=ae.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===ae.current||ae.current?.contains(document.activeElement))&&ee(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),k.useEffect(()=>{if(ae.current)return()=>{se.current&&(se.current.focus({preventScroll:!0}),se.current=null,O.current=!1)}},[ae.current]),k.createElement(`section`,{ref:t,"aria-label":`${b} ${oe}`,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?k.createElement(`ol`,{key:t,dir:_===`auto`?ab():_,tabIndex:-1,ref:ae,className:c,"data-sonner-toaster":!0,"data-sonner-theme":re,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Qy}px`,"--gap":`${v}px`,...m,...ob(l,u)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,se.current&&=(se.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||O.current||(O.current=!0,se.current=e.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{te||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ne(!0)},onPointerUp:()=>ne(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>k.createElement(ib,{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:te,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ce,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}))}),cb=[`Enter`,` `],lb=[`ArrowDown`,`PageUp`,`Home`],ub=[`ArrowUp`,`PageDown`,`End`],db=[...lb,...ub],fb={ltr:[...cb,`ArrowRight`],rtl:[...cb,`ArrowLeft`]},pb={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},mb=`Menu`,[hb,gb,_b]=Pg(mb),[vb,yb]=rd(mb,[_b,_m,Bg]),bb=_m(),xb=Bg(),[Sb,Cb]=vb(mb),[wb,Tb]=vb(mb),Eb=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=bb(t),[c,l]=k.useState(null),u=k.useRef(!1),d=xd(a),f=Fg(i);return k.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})}},[]),k.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,A.jsx)(Nm,{...s,children:(0,A.jsx)(Sb,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,A.jsx)(wb,{scope:t,onClose:k.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Eb.displayName=mb;var Db=`MenuAnchor`,Ob=k.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=bb(n);return(0,A.jsx)(Pm,{...i,...r,ref:t})});Ob.displayName=Db;var kb=`MenuPortal`,[Ab,jb]=vb(kb,{forceMount:void 0}),Mb=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Cb(kb,t);return(0,A.jsx)(Ab,{scope:t,forceMount:n,children:(0,A.jsx)(Rm,{present:n||a.open,children:(0,A.jsx)(Lm,{asChild:!0,container:i,children:r})})})};Mb.displayName=kb;var Nb=`MenuContent`,[Pb,Fb]=vb(Nb),Ib=k.forwardRef((e,t)=>{let n=jb(Nb,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Cb(Nb,e.__scopeMenu),o=Tb(Nb,e.__scopeMenu);return(0,A.jsx)(hb.Provider,{scope:e.__scopeMenu,children:(0,A.jsx)(Rm,{present:r||a.open,children:(0,A.jsx)(hb.Slot,{scope:e.__scopeMenu,children:o.modal?(0,A.jsx)(Lb,{...i,ref:t}):(0,A.jsx)(Rb,{...i,ref:t})})})})}),Lb=k.forwardRef((e,t)=>{let n=Cb(Nb,e.__scopeMenu),r=k.useRef(null),i=nd(t,r);return k.useEffect(()=>{let e=r.current;if(e)return wh(e)},[]),(0,A.jsx)(Bb,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Rb=k.forwardRef((e,t)=>{let n=Cb(Nb,e.__scopeMenu);return(0,A.jsx)(Bb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),zb=od(`MenuContent.ScrollLock`),Bb=k.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=Cb(Nb,n),_=Tb(Nb,n),v=bb(n),y=xb(n),b=gb(n),[x,S]=k.useState(null),C=k.useRef(null),w=nd(t,C,g.onContentChange),T=k.useRef(0),E=k.useRef(``),D=k.useRef(0),ee=k.useRef(null),te=k.useRef(`right`),ne=k.useRef(0),re=m?Zh:k.Fragment,ie=m?{as:zb,allowPinchZoom:!0}:void 0,ae=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=wx(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())};k.useEffect(()=>()=>window.clearTimeout(T.current),[]),ch();let oe=k.useCallback(e=>te.current===ee.current?.side&&Ex(e,ee.current?.area),[]);return(0,A.jsx)(Pb,{scope:n,searchRef:E,onItemEnter:k.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),onItemLeave:k.useCallback(e=>{oe(e)||(C.current?.focus(),S(null))},[oe]),onTriggerLeave:k.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),pointerGraceTimerRef:D,onPointerGraceIntentChange:k.useCallback(e=>{ee.current=e},[]),children:(0,A.jsx)(re,{...ie,children:(0,A.jsx)(ph,{asChild:!0,trapped:i,onMountAutoFocus:$u(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,A.jsx)(Md,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,A.jsx)(Gg,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:$u(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,A.jsx)(Fm,{role:`menu`,"aria-orientation":`vertical`,"data-state":yx(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:$u(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&&ae(e.key));let i=C.current;if(e.target!==i||!db.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);ub.includes(e.key)&&a.reverse(),Sx(a)}),onBlur:$u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:$u(e.onPointerMove,Dx(e=>{let t=e.target,n=ne.current!==e.clientX;e.currentTarget.contains(t)&&n&&(te.current=e.clientX>ne.current?`right`:`left`,ne.current=e.clientX)}))})})})})})})});Ib.displayName=Nb;var Vb=`MenuGroup`,Hb=k.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,A.jsx)(yd.div,{role:`group`,...r,ref:t})});Hb.displayName=Vb;var Ub=`MenuLabel`,Wb=k.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,A.jsx)(yd.div,{...r,ref:t})});Wb.displayName=Ub;var Gb=`MenuItem`,Kb=`menu.itemSelect`,qb=k.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=k.useRef(null),o=Tb(Gb,e.__scopeMenu),s=Fb(Gb,e.__scopeMenu),c=nd(t,a),l=k.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Kb,{bubbles:!0,cancelable:!0});e.addEventListener(Kb,e=>r?.(e),{once:!0}),bd(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,A.jsx)(Jb,{...i,ref:c,disabled:n,onClick:$u(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:$u(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:$u(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||cb.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});qb.displayName=Gb;var Jb=k.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Fb(Gb,n),s=xb(n),c=k.useRef(null),l=nd(t,c),[u,d]=k.useState(!1),[f,p]=k.useState(``);return k.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,A.jsx)(hb.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,A.jsx)(Kg,{asChild:!0,...s,focusable:!r,children:(0,A.jsx)(yd.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:$u(e.onPointerMove,Dx(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$u(e.onPointerLeave,Dx(e=>o.onItemLeave(e))),onFocus:$u(e.onFocus,()=>d(!0)),onBlur:$u(e.onBlur,()=>d(!1))})})})}),Yb=`MenuCheckboxItem`,Xb=k.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,A.jsx)(ix,{scope:e.__scopeMenu,checked:n,children:(0,A.jsx)(qb,{role:`menuitemcheckbox`,"aria-checked":bx(n)?`mixed`:n,...i,ref:t,"data-state":xx(n),onSelect:$u(i.onSelect,()=>r?.(bx(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Xb.displayName=Yb;var Zb=`MenuRadioGroup`,[Qb,$b]=vb(Zb,{value:void 0,onValueChange:()=>{}}),ex=k.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=xd(r);return(0,A.jsx)(Qb,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,A.jsx)(Hb,{...i,ref:t})})});ex.displayName=Zb;var tx=`MenuRadioItem`,nx=k.forwardRef((e,t)=>{let{value:n,...r}=e,i=$b(tx,e.__scopeMenu),a=n===i.value;return(0,A.jsx)(ix,{scope:e.__scopeMenu,checked:a,children:(0,A.jsx)(qb,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":xx(a),onSelect:$u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nx.displayName=tx;var rx=`MenuItemIndicator`,[ix,ax]=vb(rx,{checked:!1}),ox=k.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=ax(rx,n);return(0,A.jsx)(Rm,{present:r||bx(a.checked)||a.checked===!0,children:(0,A.jsx)(yd.span,{...i,ref:t,"data-state":xx(a.checked)})})});ox.displayName=rx;var sx=`MenuSeparator`,cx=k.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,A.jsx)(yd.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});cx.displayName=sx;var lx=`MenuArrow`,ux=k.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=bb(n);return(0,A.jsx)(Im,{...i,...r,ref:t})});ux.displayName=lx;var dx=`MenuSub`,[fx,px]=vb(dx),mx=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Cb(dx,t),o=bb(t),[s,c]=k.useState(null),[l,u]=k.useState(null),d=xd(i);return k.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,A.jsx)(Nm,{...o,children:(0,A.jsx)(Sb,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,A.jsx)(fx,{scope:t,contentId:Hd(),triggerId:Hd(),trigger:s,onTriggerChange:c,children:n})})})};mx.displayName=dx;var hx=`MenuSubTrigger`,gx=k.forwardRef((e,t)=>{let n=Cb(hx,e.__scopeMenu),r=Tb(hx,e.__scopeMenu),i=px(hx,e.__scopeMenu),a=Fb(hx,e.__scopeMenu),o=k.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);k.useEffect(()=>u,[u]),k.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=nd(t,i.onTriggerChange);return(0,A.jsx)(Ob,{asChild:!0,...l,children:(0,A.jsx)(Jb,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":yx(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$u(e.onPointerMove,Dx(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:$u(e.onPointerLeave,Dx(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:$u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||fb[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});gx.displayName=hx;var _x=`MenuSubContent`,vx=k.forwardRef((e,t)=>{let n=jb(Nb,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=Cb(Nb,e.__scopeMenu),s=Tb(Nb,e.__scopeMenu),c=px(_x,e.__scopeMenu),l=k.useRef(null),u=nd(t,l);return(0,A.jsx)(hb.Provider,{scope:e.__scopeMenu,children:(0,A.jsx)(Rm,{present:r||o.open,children:(0,A.jsx)(hb.Slot,{scope:e.__scopeMenu,children:(0,A.jsx)(Bb,{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:$u(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:$u(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:$u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=pb[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});vx.displayName=_x;function yx(e){return e?`open`:`closed`}function bx(e){return e===`indeterminate`}function xx(e){return bx(e)?`indeterminate`:e?`checked`:`unchecked`}function Sx(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wx(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=Cx(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 Tx(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 Ex(e,t){return t?Tx({x:e.clientX,y:e.clientY},t):!1}function Dx(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Ox=Eb,kx=Ob,Ax=Mb,jx=Ib,Mx=Hb,Nx=Wb,Px=qb,Fx=Xb,Ix=ex,Lx=nx,Rx=ox,zx=cx,Bx=ux,Vx=mx,Hx=gx,Ux=vx,Wx=`DropdownMenu`,[Gx,zie]=rd(Wx,[yb]),Kx=yb(),[qx,Jx]=Gx(Wx),Yx=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Kx(t),l=k.useRef(null),[u,d]=Vm({prop:i,defaultProp:a??!1,onChange:o,caller:Wx});return(0,A.jsx)(qx,{scope:t,triggerId:Hd(),triggerRef:l,contentId:Hd(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,A.jsx)(Ox,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Yx.displayName=Wx;var Xx=`DropdownMenuTrigger`,Zx=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Jx(Xx,n),o=Kx(n),s=nd(t,a.triggerRef);return(0,A.jsx)(kx,{asChild:!0,...o,children:(0,A.jsx)(yd.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:$u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:$u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Zx.displayName=Xx;var Qx=`DropdownMenuPortal`,$x=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Kx(t);return(0,A.jsx)(Ax,{...r,...n})};$x.displayName=Qx;var eS=`DropdownMenuContent`,tS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Jx(eS,n),a=Kx(n),o=k.useRef(!1);return(0,A.jsx)(jx,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:$u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:$u(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)`}})});tS.displayName=eS;var nS=`DropdownMenuGroup`,rS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Mx,{...i,...r,ref:t})});rS.displayName=nS;var iS=`DropdownMenuLabel`,aS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Nx,{...i,...r,ref:t})});aS.displayName=iS;var oS=`DropdownMenuItem`,sS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Px,{...i,...r,ref:t})});sS.displayName=oS;var cS=`DropdownMenuCheckboxItem`,lS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Fx,{...i,...r,ref:t})});lS.displayName=cS;var uS=`DropdownMenuRadioGroup`,dS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Ix,{...i,...r,ref:t})});dS.displayName=uS;var fS=`DropdownMenuRadioItem`,pS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Lx,{...i,...r,ref:t})});pS.displayName=fS;var mS=`DropdownMenuItemIndicator`,hS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Rx,{...i,...r,ref:t})});hS.displayName=mS;var gS=`DropdownMenuSeparator`,_S=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(zx,{...i,...r,ref:t})});_S.displayName=gS;var vS=`DropdownMenuArrow`,yS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Bx,{...i,...r,ref:t})});yS.displayName=vS;var bS=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=Kx(t),[s,c]=Vm({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,A.jsx)(Vx,{...o,open:s,onOpenChange:c,children:n})},xS=`DropdownMenuSubTrigger`,SS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Hx,{...i,...r,ref:t})});SS.displayName=xS;var CS=`DropdownMenuSubContent`,wS=k.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Kx(n);return(0,A.jsx)(Ux,{...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)`}})});wS.displayName=CS;var TS=Yx,ES=Zx,DS=$x,OS=tS,kS=aS,AS=sS,jS=lS,MS=dS,NS=pS,PS=hS,FS=_S,IS=bS,LS=SS,RS=wS,zS=`ContextMenu`,[BS,Bie]=rd(zS,[yb]),VS=yb(),[HS,US]=BS(zS),WS=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=k.useRef(!1);{let e=k.useRef(!1);k.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]=Vm({prop:i,defaultProp:!1,onChange:r,caller:zS}),u=VS(t);return(0,A.jsx)(HS,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,A.jsx)(Ox,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})};WS.displayName=zS;var GS=`ContextMenuTrigger`,KS=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=US(GS,n),o=VS(n),s=k.useRef({x:0,y:0}),c=k.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=k.useRef(0),u=k.useCallback(()=>window.clearTimeout(l.current),[]),d=e=>{a.hasInteractedRef.current=!0,s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return k.useEffect(()=>u,[u]),k.useEffect(()=>void(r&&u()),[r,u]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(kx,{...o,virtualRef:c}),(0,A.jsx)(yd.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:$u(e.onContextMenu,e=>{u(),d(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:$u(e.onPointerDown,xC(e=>{u(),a.open&&a.onOpenChange(!1),l.current=window.setTimeout(()=>d(e),700)})),onPointerMove:r?e.onPointerMove:$u(e.onPointerMove,xC(u)),onPointerCancel:r?e.onPointerCancel:$u(e.onPointerCancel,xC(u)),onPointerUp:r?e.onPointerUp:$u(e.onPointerUp,xC(u))})]})});KS.displayName=GS;var qS=`ContextMenuPortal`,JS=e=>{let{__scopeContextMenu:t,...n}=e,r=VS(t);return(0,A.jsx)(Ax,{...r,...n})};JS.displayName=qS;var YS=`ContextMenuContent`,XS=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=US(YS,n),a=VS(n),o=k.useRef(!1);return(0,A.jsx)(jx,{...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)`}})});XS.displayName=YS;var ZS=`ContextMenuGroup`,QS=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Mx,{...i,...r,ref:t})});QS.displayName=ZS;var $S=`ContextMenuLabel`,eC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Nx,{...i,...r,ref:t})});eC.displayName=$S;var tC=`ContextMenuItem`,nC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Px,{...i,...r,ref:t})});nC.displayName=tC;var rC=`ContextMenuCheckboxItem`,iC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Fx,{...i,...r,ref:t})});iC.displayName=rC;var aC=`ContextMenuRadioGroup`,oC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Ix,{...i,...r,ref:t})});oC.displayName=aC;var sC=`ContextMenuRadioItem`,cC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Lx,{...i,...r,ref:t})});cC.displayName=sC;var lC=`ContextMenuItemIndicator`,uC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Rx,{...i,...r,ref:t})});uC.displayName=lC;var dC=`ContextMenuSeparator`,fC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(zx,{...i,...r,ref:t})});fC.displayName=dC;var pC=`ContextMenuArrow`,mC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Bx,{...i,...r,ref:t})});mC.displayName=pC;var hC=`ContextMenuSub`,gC=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=VS(t),[s,c]=Vm({prop:i,defaultProp:a??!1,onChange:r,caller:hC});return(0,A.jsx)(Vx,{...o,open:s,onOpenChange:c,children:n})};gC.displayName=hC;var _C=`ContextMenuSubTrigger`,vC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Hx,{...i,...r,ref:t})});vC.displayName=_C;var yC=`ContextMenuSubContent`,bC=k.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=VS(n);return(0,A.jsx)(Ux,{...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)`}})});bC.displayName=yC;function xC(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var SC=WS,CC=KS,wC=JS,TC=XS,EC=eC,DC=nC,OC=iC,kC=oC,AC=cC,jC=uC,MC=fC,NC=gC,PC=vC,FC=bC,IC=Object.defineProperty,LC=(e,t)=>IC(e,`name`,{value:t,configurable:!0});function RC(e,[t,n]){return Math.min(n,Math.max(t,e))}LC(RC,`clamp`);var zC=Object.defineProperty,BC=(e,t)=>zC(e,`name`,{value:t,configurable:!0}),VC=!!(typeof window<`u`&&window.document&&window.document.createElement);function HC(e,t,{checkForDefaultPrevented:n=!0}={}){return BC(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}BC(HC,`composeEventHandlers`);function UC(e){if(!VC)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}BC(UC,`getOwnerWindow`);function WC(e){if(!VC)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}BC(WC,`getOwnerDocument`);function GC(e,t=!1){let{activeElement:n}=WC(e);if(!n?.nodeName)return null;if(KC(n)&&n.contentDocument)return GC(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=WC(n).getElementById(e);if(t)return t}}return n}BC(GC,`getActiveElement`);function KC(e){return e.tagName===`IFRAME`}BC(KC,`isFrame`);var qC=Object.defineProperty,JC=(e,t)=>qC(e,`name`,{value:t,configurable:!0});function YC(e,t){let n=k.createContext(t);n.displayName=e+`Context`;let r=JC(e=>{let{children:t,...r}=e,i=k.useMemo(()=>r,Object.values(r));return(0,A.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=k.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return JC(i,`useContext`),[r,i]}JC(YC,`createContext`);function XC(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=JC(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,A.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=k.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return JC(s,`useContext`),[o,s]}JC(r,`createContext`);let i=JC(()=>{let t=n.map(e=>k.createContext(e));return JC(function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ZC(i,...t)]}JC(XC,`createContextScope`);function ZC(...e){let t=e[0];if(e.length===1)return t;let n=JC(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return JC(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}JC(ZC,`composeContextScopes`);var QC=Object.defineProperty,$C=(e,t)=>QC(e,`name`,{value:t,configurable:!0});function ew(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}$C(ew,`setRef`);function tw(...e){return t=>{let n=!1,r=e.map(e=>{let r=ew(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():ew(e[t],null)}}}}$C(tw,`composeRefs`);function nw(...e){return k.useCallback(tw(...e),e)}$C(nw,`useComposedRefs`);var rw=Object.defineProperty,iw=(e,t)=>rw(e,`name`,{value:t,configurable:!0});function aw(e){let t=k.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];pw(r)&&typeof _w==`function`&&(r=_w(r._payload)),k.Children.forEach(r,e=>{if(dw(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;pw(n)&&typeof _w==`function`&&(n=_w(n._payload)),a=cw(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=k.cloneElement(a,void 0,s):!o&&k.Children.count(r)===1&&k.isValidElement(r)&&(a=r);let c=a?uw(a):void 0,l=nw(n,c);if(!a){if(r||r===0)throw Error(o?gw(e):hw(e));return r}let u=lw(i,a.props??{});return a.type!==k.Fragment&&(u.ref=n?l:c),k.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}iw(aw,`createSlot`);var ow=Symbol.for(`radix.slottable`);function sw(e){let t=iw(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=ow,t}iw(sw,`createSlottable`);var cw=iw((e,t)=>{if(`child`in e.props){let t=e.props.child;return k.isValidElement(t)?k.cloneElement(t,void 0,e.props.children(t.props.children)):null}return k.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function lw(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}}iw(lw,`mergeProps`);function uw(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)}iw(uw,`getElementRef`);function dw(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ow}iw(dw,`isSlottable`);var fw=Symbol.for(`react.lazy`);function pw(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===fw&&`_payload`in e&&mw(e._payload)}iw(pw,`isLazyComponent`);function mw(e){return typeof e==`object`&&!!e&&`then`in e}iw(mw,`isPromiseLike`);var hw=iw(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),gw=iw(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),_w=k.use,vw=Object.defineProperty,yw=(e,t)=>vw(e,`name`,{value:t,configurable:!0});function bw(e){let t=e+`CollectionProvider`,[n,r]=XC(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=yw(e=>{let{scope:t,children:n}=e,r=k.useRef(null),a=k.useRef(new Map).current;return(0,A.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=aw(s),l=k.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,A.jsx)(c,{ref:nw(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=aw(u),p=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),s=nw(t,o),c=a(u,n);return k.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,A.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return k.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 yw(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}yw(bw,`createCollection`);var xw=new WeakMap,Sw=class e extends Map{static{yw(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],xw.set(this,!0)}set(e,t){return xw.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=Tw(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=Cw(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Cw(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Cw(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 Cw(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=ww(e,t);return n===-1?void 0:e[n]}yw(Cw,`at`);function ww(e,t){let n=e.length,r=Tw(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}yw(ww,`toSafeIndex`);function Tw(e){return e!==e||e===0?0:Math.trunc(e)}yw(Tw,`toSafeInteger`);function Ew(e){let t=e+`CollectionProvider`,[n,r]=XC(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Sw,setItemMap:yw(()=>void 0,`setItemMap`)}),o=yw(({state:e,...t})=>e?(0,A.jsx)(c,{...t,state:e}):(0,A.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=yw(e=>{let t=h();return(0,A.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=yw(e=>{let{scope:t,children:n,state:r}=e,a=k.useRef(null),[o,s]=k.useState(null),c=nw(a,s),[l,u]=r;return k.useEffect(()=>{if(!o)return;let e=Aw(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,A.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=aw(l),d=k.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,A.jsx)(u,{ref:nw(t,a(l,n).collectionRef),children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=aw(f),m=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),[s,c]=k.useState(null),l=nw(t,o,c),{setItemMap:u}=a(f,n),d=k.useRef(i);Dw(d.current,i)||(d.current=i);let m=d.current;return k.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(kw):(t.set(s,{...e,element:s}),t.toSorted(kw)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Sw(e)))}},[s,m,u]),(0,A.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return k.useState(new Sw)}yw(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return yw(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}yw(Ew,`createCollection`);function Dw(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}yw(Dw,`shallowEqual`);function Ow(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}yw(Ow,`isElementPreceding`);function kw(e,t){return!e[1].element||!t[1].element?0:Ow(e[1].element,t[1].element)?-1:1}yw(kw,`sortByDocumentPosition`);function Aw(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}yw(Aw,`getChildListObserver`);var jw=Object.defineProperty,Mw=(e,t)=>jw(e,`name`,{value:t,configurable:!0}),Nw=k.createContext(void 0);function Pw(e){let t=k.useContext(Nw);return e||t||`ltr`}Mw(Pw,`useDirection`);var Fw=Object.defineProperty,Iw=(e,t)=>Fw(e,`name`,{value:t,configurable:!0}),Lw=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=aw(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rw(e,t){e&&ad.flushSync(()=>e.dispatchEvent(t))}Iw(Rw,`dispatchDiscreteCustomEvent`);var zw=Object.defineProperty,Bw=(e,t)=>zw(e,`name`,{value:t,configurable:!0});function Vw(e){let t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}Bw(Vw,`useCallbackRef`);var Hw=Object.defineProperty,Uw=(e,t)=>Hw(e,`name`,{value:t,configurable:!0}),Ww=`dismissableLayer.update`,Gw=`dismissableLayer.pointerDownOutside`,Kw=`dismissableLayer.focusOutside`,qw,Jw=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Yw=k.forwardRef(Uw(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=k.useContext(Jw),[d,f]=k.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=k.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=k.useRef(!1),C=Qw(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=$w(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=Vw(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return k.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qw=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),eT(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=qw))}},[d,p,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),eT())},[d,u]),k.useEffect(()=>{let e=Uw(()=>m({}),`handleUpdate`);return document.addEventListener(Ww,e),()=>document.removeEventListener(Ww,e)},[]),(0,A.jsx)(Lw.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:HC(e.onFocusCapture,w.onFocusCapture),onBlurCapture:HC(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:HC(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function Xw(){let e=k.useContext(Jw),[t,n]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Uw(Xw,`useDismissableLayerSurface`);var Zw=Uw(()=>!0,`IS_TRUE`);function Qw(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Zw}=t,s=Vw(e),c=k.useRef(!1),l=k.useRef(!1),u=k.useRef(new Map),d=k.useRef(()=>{});return k.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Uw(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Uw(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)}Uw(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Uw(p,`handleInteractionBubble`);let m=Uw(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||tT(Gw,s,p,{discrete:!0})};if(Uw(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:Uw(()=>c.current=!0,`onPointerDownCapture`)}}Uw(Qw,`usePointerDownOutside`);function $w(e,t=globalThis?.document){let n=Vw(e),r=k.useRef(!1);return k.useEffect(()=>{let e=Uw(e=>{e.target&&!r.current&&tT(Kw,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Uw(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Uw(()=>r.current=!1,`onBlurCapture`)}}Uw($w,`useFocusOutside`);function eT(){let e=new CustomEvent(Ww);document.dispatchEvent(e)}Uw(eT,`dispatchUpdate`);function tT(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?Rw(i,a):i.dispatchEvent(a)}Uw(tT,`handleAndDispatchCustomEvent`);var nT=Object.defineProperty,rT=(e,t)=>nT(e,`name`,{value:t,configurable:!0}),iT=0,aT=null;function oT(e){return sT(),e.children}rT(oT,`FocusGuards`);function sT(){k.useEffect(()=>{aT||={start:cT(),end:cT()};let{start:e,end:t}=aT;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),iT++,()=>{iT===1&&(aT?.start.remove(),aT?.end.remove(),aT=null),iT=Math.max(0,iT-1)}},[])}rT(sT,`useFocusGuards`);function cT(){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}rT(cT,`createFocusGuard`);var lT=Object.defineProperty,uT=(e,t)=>lT(e,`name`,{value:t,configurable:!0}),dT=`focusScope.autoFocusOnMount`,fT=`focusScope.autoFocusOnUnmount`,pT={bubbles:!1,cancelable:!0},mT=k.forwardRef(uT(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=k.useState(null),l=Vw(i),u=Vw(a),d=k.useRef(null),f=nw(t,c),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:xT(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||xT(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&xT(s)};uT(e,`handleFocusIn`),uT(t,`handleFocusOut`),uT(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]),k.useEffect(()=>{if(s){ST.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(dT,pT);s.addEventListener(dT,l),s.dispatchEvent(t),t.defaultPrevented||(hT(TT(_T(s)),{select:!0}),document.activeElement===e&&xT(s))}return()=>{s.removeEventListener(dT,l),setTimeout(()=>{let t=new CustomEvent(fT,pT);s.addEventListener(fT,u),s.dispatchEvent(t),t.defaultPrevented||xT(e??document.body,{select:!0}),s.removeEventListener(fT,u),ST.remove(p)},0)}}},[s,l,u,p]);let m=k.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]=gT(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&xT(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&xT(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,A.jsx)(Lw.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function hT(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(xT(r,{select:t}),document.activeElement!==n)return}uT(hT,`focusFirst`);function gT(e){let t=_T(e);return[vT(t,e),vT(t.reverse(),e)]}uT(gT,`getTabbableEdges`);function _T(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:uT(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}uT(_T,`getTabbableCandidates`);function vT(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):yT(r,{upTo:t})))return r}uT(vT,`findVisible`);function yT(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}uT(yT,`isHidden`);function bT(e){return e instanceof HTMLInputElement&&`select`in e}uT(bT,`isSelectableInput`);function xT(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bT(e)&&t&&e.select()}}uT(xT,`focus`);var ST=CT();function CT(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=wT(e,t),e.unshift(t)},remove(t){e=wT(e,t),e[0]?.resume()}}}uT(CT,`createFocusScopesStack`);function wT(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}uT(wT,`arrayRemove`);function TT(e){return e.filter(e=>e.tagName!==`A`)}uT(TT,`removeLinks`);var ET=globalThis?.document?k.useLayoutEffect:()=>{},DT=Object.defineProperty,OT=(e,t)=>DT(e,`name`,{value:t,configurable:!0}),kT=k.useId||(()=>void 0),AT=0;function jT(e){let[t,n]=k.useState(kT());return ET(()=>{e||n(e=>e??String(AT++))},[e]),e||(t?`radix-${t}`:``)}OT(jT,`useId`);var MT=Object.defineProperty,NT=(e,t)=>MT(e,`name`,{value:t,configurable:!0});function PT(e){let[t,n]=k.useState(void 0);return ET(()=>{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}NT(PT,`useSize`);var FT=Object.defineProperty,IT=(e,t)=>FT(e,`name`,{value:t,configurable:!0}),LT=`Popper`,[RT,zT]=XC(LT),[BT,VT]=RT(LT),HT=IT(e=>{let{__scopePopper:t,children:n}=e,[r,i]=k.useState(null),[a,o]=k.useState(void 0);return(0,A.jsx)(BT,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),UT=`PopperAnchor`,WT=k.forwardRef(IT(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=VT(UT,n),o=k.useRef(null),s=a.onAnchorChange,c=nw(t,k.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=k.useRef(null);k.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&XT(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,A.jsx)(Lw.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),GT=`PopperContent`,[KT,Vie]=RT(GT),qT=k.forwardRef(IT(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=VT(GT,n),[_,v]=k.useState(null),y=nw(t,v),[b,x]=k.useState(null),S=PT(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],ee=D.length>0,te={padding:E,boundary:D.filter(JT),altBoundary:ee},{refs:ne,floatingStyles:re,placement:ie,isPositioned:ae,middlewareData:oe}=nm({strategy:`fixed`,placement:T,whileElementsMounted:IT((...e)=>Bp(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[im({mainAxis:i+w,alignmentAxis:o}),c&&am({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?om():void 0,...te}),c&&sm({...te}),cm({...te,apply:IT(({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&&um({element:b,padding:s}),YT({arrowWidth:C,arrowHeight:w}),f&&lm({strategy:`referenceHidden`,...te,boundary:ee?te.boundary:void 0})]}),se=g.setPlacementState;ET(()=>(se(ie),()=>{se(void 0)}),[ie,se]);let[O,ce]=XT(ie),le=Vw(m);ET(()=>{ae&&le?.()},[ae,le]);let ue=oe.arrow?.x,de=oe.arrow?.y,fe=oe.arrow?.centerOffset!==0,[pe,me]=k.useState();return ET(()=>{_&&me(window.getComputedStyle(_).zIndex)},[_]),(0,A.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...re,transform:ae?re.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:pe,"--radix-popper-transform-origin":[oe.transformOrigin?.x,oe.transformOrigin?.y].join(` `),...oe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,A.jsx)(KT,{scope:n,placedSide:O,placedAlign:ce,onArrowChange:x,arrowX:ue,arrowY:de,shouldHideArrow:fe,children:(0,A.jsx)(Lw.div,{"data-side":O,"data-align":ce,...h,ref:y,style:{...h.style,animation:ae?h.style?.animation:`none`}})})})},`PopperContent`));function JT(e){return e!==null}IT(JT,`isNotNull`);var YT=IT(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]=XT(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 XT(e){let[t,n=`center`]=e.split(`-`);return[t,n]}IT(XT,`getSideAndAlignFromPlacement`);var ZT=HT,QT=WT,$T=qT,eE=Object.defineProperty,tE=k.forwardRef(((e,t)=>eE(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=k.useState(!1);ET(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ad.createPortal((0,A.jsx)(Lw.div,{...r,ref:t}),o):null},`Portal`)),nE=Object.defineProperty,rE=(e,t)=>nE(e,`name`,{value:t,configurable:!0});function iE(e,t){return k.useReducer((e,n)=>t[e][n]??e,e)}rE(iE,`useStateMachine`);var aE=rE(e=>{let{present:t,children:n}=e,r=oE(t),i=typeof n==`function`?n({present:r.isPresent}):k.Children.only(n),a=cE(r.ref,uE(i));return typeof n==`function`||r.isPresent?k.cloneElement(i,{ref:a}):null},`Presence`);function oE(e){let[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef(`none`),o=k.useRef(void 0),[s,c]=iE(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return k.useEffect(()=>{s===`mounted`?(a.current=o.current??lE(r.current),o.current=void 0):a.current=`none`},[s]),ET(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=lE(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]),ET(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=rE(a=>{let o=lE(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=rE(e=>{e.target===t&&(a.current=lE(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:k.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=lE(t)}else r.current=null;n(e)},[])}}rE(oE,`usePresence`);function sE(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}rE(sE,`setRef`);function cE(...e){let t=k.useRef(e);return t.current=e,k.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=sE(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():sE(n[e],null)}}},[])}rE(cE,`useStableComposedRefs`);function lE(e){return e?.animationName||`none`}rE(lE,`getAnimationName`);function uE(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)}rE(uE,`getElementRef`);var dE=Object.defineProperty,fE=(e,t)=>dE(e,`name`,{value:t,configurable:!0}),pE=k.useEffectEvent,mE=k.useInsertionEffect;function hE(e){if(typeof pE==`function`)return pE(e);let t=k.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof mE==`function`?mE(()=>{t.current=e}):ET(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}fE(hE,`useEffectEvent`);var gE=Object.defineProperty,_E=(e,t)=>gE(e,`name`,{value:t,configurable:!0}),vE=k.useInsertionEffect||ET;function yE({prop:e,defaultProp:t,onChange:n=_E(()=>{},`onChange`),caller:r}){let[i,a,o]=bE({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,k.useCallback(t=>{if(s){let n=xE(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}_E(yE,`useControllableState`);function bE({defaultProp:e,onChange:t}){let[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return vE(()=>{a.current=t},[t]),k.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}_E(bE,`useUncontrolledState`);function xE(e){return typeof e==`function`}_E(xE,`isFunction`);var SE=Symbol(`RADIX:SYNC_STATE`);function CE(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=hE(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=k.useReducer((t,n)=>{if(n.type===SE)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=k.useRef(p);k.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=k.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return k.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:SE,state:i})},[i,d.state,c]),[h,f]}_E(CE,`useControllableStateReducer`);var wE=Object.defineProperty,TE=(e,t)=>wE(e,`name`,{value:t,configurable:!0});function EE(e){let t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}TE(EE,`usePrevious`);var DE=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`}),OE=Object.defineProperty,kE=(e,t)=>OE(e,`name`,{value:t,configurable:!0}),AE=[` `,`Enter`,`ArrowUp`,`ArrowDown`],jE=[` `,`Enter`],ME=`Select`,[NE,PE,FE]=bw(ME),[IE,Hie]=XC(ME,[FE,zT]),LE=zT(),[RE,zE]=IE(ME),[BE,VE]=IE(ME);function HE(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=LE(t),[_,v]=k.useState(null),[y,b]=k.useState(null),[x,S]=k.useState(!1),C=Pw(l),[w,T]=yE({prop:r,defaultProp:i??!1,onChange:a,caller:ME}),[E,D]=yE({prop:o,defaultProp:s,onChange:c,caller:ME}),ee=k.useRef(null),te=k.useRef(E);k.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=kE(()=>D(te.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let ne=_?!!m||!!_.closest(`form`):!0,[re,ie]=k.useState(new Set),ae=jT(),oe=Array.from(re).map(e=>e.props.value).join(`;`),se=k.useCallback(e=>{ie(t=>new Set(t).add(e))},[]),O=k.useCallback(e=>{ie(t=>{let n=new Set(t);return n.delete(e),n})},[]),ce={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:ae,value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:ee,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:re,nativeSelectKey:oe,isFormControl:ne};return(0,A.jsx)(ZT,{...g,children:(0,A.jsx)(RE,{scope:t,...ce,children:(0,A.jsx)(NE.Provider,{scope:t,children:(0,A.jsx)(BE,{scope:t,onNativeOptionAdd:se,onNativeOptionRemove:O,children:SD(h)?h(ce):n})})})})}kE(HE,`SelectProvider`);var UE=kE(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,A.jsx)(HE,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[n,e?(0,A.jsx)(xD,{__scopeSelect:t}):null]})})},`Select`),WE=`SelectTrigger`,GE=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=LE(n),o=zE(WE,n),s=o.disabled||r,c=nw(t,o.onTriggerChange),l=PE(n),u=k.useRef(`touch`),[d,f,p]=wD(e=>{let t=l().filter(e=>!e.disabled),n=TD(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=kE(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,A.jsx)(QT,{asChild:!0,...a,children:(0,A.jsx)(Lw.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":CD(o.value)?``:void 0,...i,ref:c,onClick:HC(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:HC(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:HC(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&AE.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),KE=`SelectValue`,qE=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=zE(KE,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=nw(t,c.onValueNodeChange);ET(()=>{l(u)},[l,u]);let f=CD(c.value);return(0,A.jsx)(Lw.span,{...s,asChild:f?!1:s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,A.jsx)(k.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),JE=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,A.jsx)(Lw.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[YE,XE]=IE(`SelectPortal`,{forceMount:void 0}),ZE=kE(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,A.jsx)(YE,{scope:e.__scopeSelect,forceMount:n,children:(0,A.jsx)(tE,{asChild:!0,...r})})},`SelectPortal`),QE=`SelectContent`,$E=k.forwardRef(kE(function(e,t){let n=XE(QE,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=zE(QE,e.__scopeSelect),[o,s]=k.useState();return ET(()=>{s(new DocumentFragment)},[]),(0,A.jsx)(aE,{present:r||a.open,children:({present:e})=>e?(0,A.jsx)(aD,{...i,ref:t}):(0,A.jsx)(eD,{...i,fragment:o})})},`SelectContent`)),eD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ad.createPortal((0,A.jsx)(nD,{scope:n,children:(0,A.jsx)(NE.Slot,{scope:n,children:(0,A.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),tD=10,[nD,rD]=IE(QE),iD=aw(`SelectContent.RemoveScroll`),aD=k.forwardRef(kE(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=zE(QE,n),[y,b]=k.useState(null),[x,S]=k.useState(null),C=nw(t,b),[w,T]=k.useState(null),[E,D]=k.useState(null),ee=PE(n),[te,ne]=k.useState(!1),re=k.useRef(!1);k.useEffect(()=>{if(y)return wh(y)},[y]),sT();let ie=k.useCallback(e=>{let[t,...n]=ee().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},[ee,x]),ae=k.useCallback(()=>ie([w,y]),[ie,w,y]);k.useEffect(()=>{te&&ae()},[te,ae]);let{onOpenChange:oe,triggerPointerDownPosRef:se}=v;k.useEffect(()=>{if(y){let e={x:0,y:0},t=kE(t=>{e={x:Math.abs(Math.round(t.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(se.current?.y??0))}},`handlePointerMove`),n=kE(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||oe(!1),document.removeEventListener(`pointermove`,t),se.current=null},`handlePointerUp`);return se.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,oe,se]),k.useEffect(()=>{let e=kE(()=>oe(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[oe]);let[O,ce]=wD(e=>{let t=ee().filter(e=>!e.disabled),n=TD(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),le=k.useCallback((e,t,n)=>{let r=!re.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(re.current=!0))},[v.value]),ue=k.useCallback(()=>y?.focus(),[y]),de=k.useCallback((e,t,n)=>{let r=!re.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),fe=r===`popper`?sD:oD,pe=fe===sD?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,A.jsx)(nD,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:le,selectedItem:w,onItemLeave:ue,itemTextRefCallback:de,focusSelectedItem:ae,selectedItemText:E,position:r,isPositioned:te,searchRef:O,children:(0,A.jsx)(Zh,{as:iD,allowPinchZoom:!0,children:(0,A.jsx)(mT,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:HC(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,A.jsx)(Yw,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,A.jsx)(fe,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...pe,onPlaced:()=>ne(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:HC(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ce(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=ee().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(()=>ie(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),oD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=zE(QE,n),o=rD(QE,n),[s,c]=k.useState(null),[l,u]=k.useState(null),d=nw(t,u),f=PE(n),p=k.useRef(!1),m=k.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=k.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-tD,d=RC(a,[tD,Math.max(tD,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-tD,d=RC(a,[tD,Math.max(tD,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-tD*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-tD,D=c-E,ee=g.offsetHeight/2,te=g.offsetTop+ee,ne=m+v+te,re=x-ne;if(ne<=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=ne+Math.max(D,ee+(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)+ee)+re;s.style.height=t+`px`,h.scrollTop=ne-E+h.offsetTop}s.style.margin=`${tD}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]);ET(()=>y(),[y]);let[b,x]=k.useState();return ET(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,A.jsx)(cD,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:k.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,A.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,A.jsx)(Lw.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),sD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=tD,...a}=e,o=LE(n);return(0,A.jsx)($T,{...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`)),[cD,lD]=IE(QE,{}),uD=`SelectViewport`,dD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=rD(uD,n),o=lD(uD,n),s=nw(t,a.onViewportChange),c=k.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.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,A.jsx)(NE.Slot,{scope:n,children:(0,A.jsx)(Lw.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:HC(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-tD*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`)),[Uie,Wie]=IE(`SelectGroup`),fD=`SelectItem`,[pD,mD]=IE(fD),hD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=zE(fD,n),c=rD(fD,n),l=s.value===r,[u,d]=k.useState(a??``),[f,p]=k.useState(!1),m=nw(t,Vw(e=>c.itemRefCallback?.(e,r,i))),h=jT(),g=k.useRef(`touch`),_=kE(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,A.jsx)(pD,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:k.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,A.jsx)(NE.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,A.jsx)(Lw.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:HC(o.onFocus,()=>p(!0)),onBlur:HC(o.onBlur,()=>p(!1)),onClick:HC(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:HC(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:HC(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:HC(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:HC(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:HC(o.onKeyDown,e=>{i||e.target!==e.currentTarget||c.searchRef?.current!==``&&e.key===` `||(jE.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),gD=`SelectItemText`,_D=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=zE(gD,n),s=rD(gD,n),c=mD(gD,n),l=VE(gD,n),[u,d]=k.useState(null),f=Vw(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=nw(t,d,c.onItemTextChange,f),m=u?.textContent,h=k.useMemo(()=>(0,A.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return ET(()=>(g(h),()=>_(h)),[g,_,h]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Lw.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!CD(o.value)?ad.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),vD=`SelectItemIndicator`,yD=k.forwardRef(kE(function(e,t){let{__scopeSelect:n,...r}=e;return mD(vD,n).isSelected?(0,A.jsx)(Lw.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),bD=`SelectBubbleInput`,xD=k.forwardRef(kE(function({__scopeSelect:e,...t},n){let r=zE(bD,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=k.useRef(null),m=nw(n,p),h=i??``,g=EE(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return k.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,A.jsxs)(Lw.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...DE,...t.style},ref:m,defaultValue:h,children:[CD(i)&&!_?(0,A.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function SD(e){return typeof e==`function`}kE(SD,`isFunction`);function CD(e){return e===``||e===void 0}kE(CD,`shouldShowPlaceholder`);function wD(e){let t=Vw(e),n=k.useRef(``),r=k.useRef(0),i=k.useCallback(e=>{let i=n.current+e;t(i),kE((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=k.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}kE(wD,`useTypeaheadSearch`);function TD(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=ED(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}kE(TD,`findNextItem`);function ED(e,t){return e.map((n,r)=>e[(t+r)%e.length])}kE(ED,`wrapArray`);function DD(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 OD(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Gie=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kie=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qie={};function kD(e,t){return((t||qie).jsx?Kie:Gie).test(e)}var Jie=/[ \t\n\f\r]/g;function Yie(e){return typeof e==`object`?e.type===`text`?AD(e.value):!1:AD(e)}function AD(e){return e.replace(Jie,``)===``}var jD=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};jD.prototype.normal={},jD.prototype.property={},jD.prototype.space=void 0;function MD(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new jD(n,r,t)}function ND(e){return e.toLowerCase()}var PD=class{constructor(e,t){this.attribute=t,this.property=e}};PD.prototype.attribute=``,PD.prototype.booleanish=!1,PD.prototype.boolean=!1,PD.prototype.commaOrSpaceSeparated=!1,PD.prototype.commaSeparated=!1,PD.prototype.defined=!1,PD.prototype.mustUseProperty=!1,PD.prototype.number=!1,PD.prototype.overloadedBoolean=!1,PD.prototype.property=``,PD.prototype.spaceSeparated=!1,PD.prototype.space=void 0;var FD=r({boolean:()=>ID,booleanish:()=>LD,commaOrSpaceSeparated:()=>VD,commaSeparated:()=>BD,number:()=>j,overloadedBoolean:()=>RD,spaceSeparated:()=>zD}),Xie=0,ID=HD(),LD=HD(),RD=HD(),j=HD(),zD=HD(),BD=HD(),VD=HD();function HD(){return 2**++Xie}var UD=Object.keys(FD),WD=class extends PD{constructor(e,t,n,r){let i=-1;if(super(e,t),GD(this,`space`,r),typeof n==`number`)for(;++i<UD.length;){let e=UD[i];GD(this,UD[i],(n&FD[e])===FD[e])}}};WD.prototype.defined=!0;function GD(e,t,n){n&&(e[t]=n)}function KD(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new WD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ND(r)]=r,n[ND(a.attribute)]=r}return new jD(t,n,e.space)}var qD=KD({properties:{ariaActiveDescendant:null,ariaAtomic:LD,ariaAutoComplete:null,ariaBusy:LD,ariaChecked:LD,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:zD,ariaCurrent:null,ariaDescribedBy:zD,ariaDetails:null,ariaDisabled:LD,ariaDropEffect:zD,ariaErrorMessage:null,ariaExpanded:LD,ariaFlowTo:zD,ariaGrabbed:LD,ariaHasPopup:null,ariaHidden:LD,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zD,ariaLevel:j,ariaLive:null,ariaModal:LD,ariaMultiLine:LD,ariaMultiSelectable:LD,ariaOrientation:null,ariaOwns:zD,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:LD,ariaReadOnly:LD,ariaRelevant:null,ariaRequired:LD,ariaRoleDescription:zD,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:LD,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function JD(e,t){return t in e?e[t]:t}function YD(e,t){return JD(e,t.toLowerCase())}var Zie=KD({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:BD,acceptCharset:zD,accessKey:zD,action:null,allow:null,allowFullScreen:ID,allowPaymentRequest:ID,allowUserMedia:ID,alpha:ID,alt:null,as:null,async:ID,autoCapitalize:null,autoComplete:zD,autoFocus:ID,autoPlay:ID,blocking:zD,capture:null,charSet:null,checked:ID,cite:null,className:zD,closedBy:null,colorSpace:null,cols:j,colSpan:j,command:null,commandFor:null,content:null,contentEditable:LD,controls:ID,controlsList:zD,coords:j|BD,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ID,defer:ID,dir:null,dirName:null,disabled:ID,download:RD,draggable:LD,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ID,formTarget:null,headers:zD,height:j,hidden:RD,high:j,href:null,hrefLang:null,htmlFor:zD,httpEquiv:zD,id:null,imageSizes:null,imageSrcSet:null,inert:ID,inputMode:null,integrity:null,is:null,isMap:ID,itemId:null,itemProp:zD,itemRef:zD,itemScope:ID,itemType:zD,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ID,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ID,muted:ID,name:null,nonce:null,noModule:ID,noValidate:ID,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:ID,optimum:j,pattern:null,ping:zD,placeholder:null,playsInline:ID,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ID,referrerPolicy:null,rel:zD,required:ID,reversed:ID,rows:j,rowSpan:j,sandbox:zD,scope:null,scoped:ID,seamless:ID,selected:ID,shadowRootClonable:ID,shadowRootCustomElementRegistry:ID,shadowRootDelegatesFocus:ID,shadowRootMode:null,shadowRootSerializable:ID,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:LD,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ID,useMap:null,value:LD,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zD,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ID,declare:ID,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ID,noHref:ID,noShade:ID,noWrap:ID,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:LD,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ID,disablePictureInPicture:ID,disableRemotePlayback:ID,exportParts:BD,part:zD,prefix:null,property:null,results:j,security:null,unselectable:null},space:`html`,transform:YD}),Qie=KD({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:VD,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:zD,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ID,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:BD,g2:BD,glyphName:BD,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:VD,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zD,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:VD,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:VD,rev:VD,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:VD,requiredFeatures:VD,requiredFonts:VD,requiredFormats:VD,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:VD,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:VD,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:VD,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:JD}),XD=KD({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()}}),ZD=KD({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:YD}),QD=KD({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),$ie={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`},eae=/[A-Z]/g,$D=/-[a-z]/g,tae=/^data[-\w.:]+$/i;function eO(e,t){let n=ND(t),r=t,i=PD;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&tae.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace($D,rae);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!$D.test(e)){let n=e.replace(eae,nae);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=WD}return new i(r,t)}function nae(e){return`-`+e.toLowerCase()}function rae(e){return e.charAt(1).toUpperCase()}var tO=MD([qD,Zie,XD,ZD,QD],`html`),nO=MD([qD,Qie,XD,ZD,QD],`svg`);function rO(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iO(e){return e.join(` `).trim()}var iae=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})),aae=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(iae());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}})),oae=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))}})),sae=i(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(aae()),r=oae();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})),aO=sO(`end`),oO=sO(`start`);function sO(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 cO(e){let t=oO(e),n=aO(e);if(t&&n)return{start:t,end:n}}function lO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?dO(e.position):`start`in e||`end`in e?dO(e):`line`in e||`column`in e?uO(e):``}function uO(e){return fO(e&&e.line)+`:`+fO(e&&e.column)}function dO(e){return uO(e&&e.start)+`-`+uO(e&&e.end)}function fO(e){return e&&typeof e==`number`?e:1}var pO=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=lO(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}};pO.prototype.file=``,pO.prototype.name=``,pO.prototype.reason=``,pO.prototype.message=``,pO.prototype.stack=``,pO.prototype.column=void 0,pO.prototype.line=void 0,pO.prototype.ancestors=void 0,pO.prototype.cause=void 0,pO.prototype.fatal=void 0,pO.prototype.place=void 0,pO.prototype.ruleId=void 0,pO.prototype.source=void 0;var cae=n(sae(),1),mO={}.hasOwnProperty,lae=new Map,uae=/[A-Z]/g,dae=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),fae=new Set([`td`,`th`]),hO=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function pae(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=xae(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=bae(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`?nO:tO,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=gO(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function gO(e,t,n){if(t.type===`element`)return mae(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return hae(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return _ae(e,t,n);if(t.type===`mdxjsEsm`)return gae(e,t);if(t.type===`root`)return vae(e,t,n);if(t.type===`text`)return yae(e,t)}function mae(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=nO,e.schema=i),e.ancestors.push(t);let a=bO(e,t.tagName,!1),o=Sae(e,t),s=yO(e,t);return dae.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Yie(e):!0})),_O(e,o,a,t),vO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function hae(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)}xO(e,t.position)}function gae(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xO(e,t.position)}function _ae(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=nO,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:bO(e,t.name,!0),o=Cae(e,t),s=yO(e,t);return _O(e,o,a,t),vO(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function vae(e,t,n){let r={};return vO(r,yO(e,t)),e.create(t,e.Fragment,r,n)}function yae(e,t){return t.value}function _O(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function vO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function bae(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 xae(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=oO(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 Sae(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&mO.call(t.properties,i)){let a=wae(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&fae.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 Cae(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 xO(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 xO(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function yO(e,t){let n=[],r=-1,i=e.passKeys?new Map:lae;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=gO(e,a,o);s!==void 0&&n.push(s)}return n}function wae(e,t,n){let r=eO(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?OD(n):iO(n)),r.property===`style`){let t=typeof n==`object`?n:Tae(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Eae(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?$ie[r.property]||r.property:r.attribute,n]}}function Tae(e,t){try{return(0,cae.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new pO("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=hO+`#cannot-parse-style-attribute`,r}}function bO(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=kD(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=kD(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return mO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);xO(e)}function xO(e,t){let n=new pO("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=hO+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Eae(e){let t={},n;for(n in e)mO.call(e,n)&&(t[Dae(n)]=e[n]);return t}function Dae(e){let t=e.replace(uae,Oae);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Oae(e){return`-`+e.toLowerCase()}var SO={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`]},kae={};function CO(e,t){let n=t||kae;return wO(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function wO(e,t,n){if(Aae(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 TO(e.children,t,n)}return Array.isArray(e)?TO(e,t,n):``}function TO(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=wO(e[i],t,n);return r.join(``)}function Aae(e){return!!(e&&typeof e==`object`)}var EO=document.createElement(`i`);function DO(e){let t=`&`+e+`;`;EO.innerHTML=t;let n=EO.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function OO(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 kO(e,t){return e.length>0?(OO(e,e.length,0,t),e):t}var AO={}.hasOwnProperty;function jO(e){let t={},n=-1;for(;++n<e.length;)jae(t,e[n]);return t}function jae(e,t){let n;for(n in t){let r=(AO.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){AO.call(r,a)||(r[a]=[]);let e=i[a];Mae(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Mae(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);OO(e,0,0,r)}function MO(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 NO(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var PO=UO(/[A-Za-z]/),FO=UO(/[\dA-Za-z]/),Nae=UO(/[#-'*+\--9=?A-Z^-~]/);function IO(e){return e!==null&&(e<32||e===127)}var LO=UO(/\d/),Pae=UO(/[\dA-Fa-f]/),Fae=UO(/[!-/:-@[-`{-~]/);function RO(e){return e!==null&&e<-2}function zO(e){return e!==null&&(e<0||e===32)}function BO(e){return e===-2||e===-1||e===32}var VO=UO(/\p{P}|\p{S}/u),HO=UO(/\s/);function UO(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function WO(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&FO(e.charCodeAt(n+1))&&FO(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 GO(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return BO(r)?(e.enter(n),s(r)):t(r)}function s(r){return BO(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Iae={tokenize:Lae};function Lae(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`),GO(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 RO(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Rae={tokenize:zae},KO={tokenize:Bae};function zae(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 OO(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(KO,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(KO,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 RO(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++;OO(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 Bae(e,t,n){return GO(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function qO(e){if(e===null||zO(e)||HO(e))return 1;if(VO(e))return 2}function JO(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 YO={name:`attention`,resolveAll:Vae,tokenize:Hae};function Vae(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};XO(d,-c),XO(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=kO(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=kO(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=kO(l,JO(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=kO(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=kO(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,OO(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 Hae(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qO(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=qO(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 XO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Uae={name:`autolink`,tokenize:Wae};function Wae(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 PO(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||FO(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||FO(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||IO(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Nae(t)?(e.consume(t),l):n(t)}function u(e){return FO(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||FO(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ZO={partial:!0,tokenize:Gae};function Gae(e,t,n){return r;function r(t){return BO(t)?GO(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||RO(e)?t(e):n(e)}}var QO={continuation:{tokenize:qae},exit:Jae,name:`blockQuote`,tokenize:Kae};function Kae(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 BO(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function qae(e,t,n){let r=this;return i;function i(t){return BO(t)?GO(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(QO,t,n)(r)}}function Jae(e){e.exit(`blockQuote`)}var $O={name:`characterEscape`,tokenize:Yae};function Yae(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 Fae(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ek={name:`characterReference`,tokenize:Xae};function Xae(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=FO,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=Pae,u):(e.enter(`characterReferenceValue`),a=7,o=LO,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===FO&&!DO(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 tk={partial:!0,tokenize:Qae},nk={concrete:!0,name:`codeFenced`,tokenize:Zae};function Zae(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`),BO(t)?GO(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||RO(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(tk,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||RO(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):BO(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),GO(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||RO(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||RO(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&&BO(t)?GO(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||RO(t)?e.check(tk,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||RO(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`),BO(t)?GO(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`),BO(t)?GO(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||RO(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Qae(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 rk={name:`codeIndented`,tokenize:eoe},$ae={partial:!0,tokenize:toe};function eoe(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),GO(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):RO(t)?e.attempt($ae,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||RO(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function toe(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):RO(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):GO(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):RO(e)?i(e):n(e)}}var noe={name:`codeText`,previous:ioe,resolve:roe,tokenize:aoe};function roe(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 ioe(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function aoe(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)):RO(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||RO(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 ooe=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&&ik(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),ik(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ik(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);ik(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ik(this.left,t.reverse())}}};function ik(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 ak(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ooe(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,soe(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 OO(e,0,1/0,u.slice(0)),!l}function soe(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 coe={resolve:uoe,tokenize:doe},loe={partial:!0,tokenize:foe};function uoe(e){return ak(e),e}function doe(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):RO(t)?e.check(loe,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 foe(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),GO(e,a,`linePrefix`)}function a(i){if(i===null||RO(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 ok(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||IO(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||RO(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||zO(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||IO(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 sk(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):RO(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||RO(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!BO(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function ck(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):RO(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),GO(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||RO(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 lk(e,t){let n;return r;function r(i){return RO(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):BO(i)?GO(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var poe={name:`definition`,tokenize:hoe},moe={partial:!0,tokenize:goe};function hoe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return sk.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=NO(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 zO(t)?lk(e,l)(t):l(t)}function l(t){return ok(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(moe,d,d)(t)}function d(t){return BO(t)?GO(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||RO(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function goe(e,t,n){return r;function r(t){return zO(t)?lk(e,i)(t):n(t)}function i(t){return ck(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return BO(t)?GO(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||RO(e)?t(e):n(e)}}var _oe={name:`hardBreakEscape`,tokenize:voe};function voe(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return RO(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var yoe={name:`headingAtx`,resolve:boe,tokenize:xoe};function boe(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`},OO(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function xoe(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||zO(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||RO(n)?(e.exit(`atxHeading`),t(n)):BO(n)?GO(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||zO(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Soe=`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`],Coe={concrete:!0,name:`htmlFlow`,resolveTo:Eoe,tokenize:Doe},woe={partial:!0,tokenize:koe},Toe={partial:!0,tokenize:Ooe};function Eoe(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 Doe(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:O):PO(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):PO(a)?(e.consume(a),i=4,r.interrupt?t:O):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:O):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:ee:m):n(i)}function h(t){return PO(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||zO(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&uk.includes(l)?(i=1,r.interrupt?t(s):ee(s)):Soe.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):ee(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||FO(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:ee):n(i)}function v(t){return BO(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||PO(t)?(e.consume(t),b):BO(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||FO(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):BO(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):BO(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||RO(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||zO(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||BO(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||RO(t)?ee(t):BO(t)?(e.consume(t),D):n(t)}function ee(t){return t===45&&i===2?(e.consume(t),ie):t===60&&i===1?(e.consume(t),ae):t===62&&i===4?(e.consume(t),ce):t===63&&i===3?(e.consume(t),O):t===93&&i===5?(e.consume(t),se):RO(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(woe,le,te)(t)):t===null||RO(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),ee)}function te(t){return e.check(Toe,ne,le)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return t===null||RO(t)?te(t):(e.enter(`htmlFlowData`),ee(t))}function ie(t){return t===45?(e.consume(t),O):ee(t)}function ae(t){return t===47?(e.consume(t),o=``,oe):ee(t)}function oe(t){if(t===62){let n=o.toLowerCase();return uk.includes(n)?(e.consume(t),ce):ee(t)}return PO(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),oe):ee(t)}function se(t){return t===93?(e.consume(t),O):ee(t)}function O(t){return t===62?(e.consume(t),ce):t===45&&i===2?(e.consume(t),O):ee(t)}function ce(t){return t===null||RO(t)?(e.exit(`htmlFlowData`),le(t)):(e.consume(t),ce)}function le(n){return e.exit(`htmlFlow`),t(n)}}function Ooe(e,t,n){let r=this;return i;function i(t){return RO(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 koe(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ZO,t,n)}}var Aoe={name:`htmlText`,tokenize:joe};function joe(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):PO(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):PO(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):RO(t)?(o=d,ae(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ie(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):RO(t)?(o=h,ae(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ie(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ie(t):RO(t)?(o=v,ae(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):RO(t)?(o=y,ae(t)):(e.consume(t),y)}function b(e){return e===62?ie(e):y(e)}function x(t){return PO(t)?(e.consume(t),S):n(t)}function S(t){return t===45||FO(t)?(e.consume(t),S):C(t)}function C(t){return RO(t)?(o=C,ae(t)):BO(t)?(e.consume(t),C):ie(t)}function w(t){return t===45||FO(t)?(e.consume(t),w):t===47||t===62||zO(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),ie):t===58||t===95||PO(t)?(e.consume(t),E):RO(t)?(o=T,ae(t)):BO(t)?(e.consume(t),T):ie(t)}function E(t){return t===45||t===46||t===58||t===95||FO(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),ee):RO(t)?(o=D,ae(t)):BO(t)?(e.consume(t),D):T(t)}function ee(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):RO(t)?(o=ee,ae(t)):BO(t)?(e.consume(t),ee):(e.consume(t),ne)}function te(t){return t===i?(e.consume(t),i=void 0,re):t===null?n(t):RO(t)?(o=te,ae(t)):(e.consume(t),te)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||zO(t)?T(t):(e.consume(t),ne)}function re(e){return e===47||e===62||zO(e)?T(e):n(e)}function ie(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ae(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return BO(t)?GO(e,se,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):se(t)}function se(t){return e.enter(`htmlTextData`),o(t)}}var dk={name:`labelEnd`,resolveAll:Foe,resolveTo:Ioe,tokenize:Loe},Moe={tokenize:Roe},Noe={tokenize:zoe},Poe={tokenize:Boe};function Foe(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&&OO(e,0,e.length,n),e}function Ioe(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=kO(s,e.slice(a+1,a+r+3)),s=kO(s,[[`enter`,u,t]]),s=kO(s,JO(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=kO(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=kO(s,e.slice(o+1)),s=kO(s,[[`exit`,c,t]]),OO(e,a,e.length,s),e}function Loe(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(NO(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(Moe,u,o?u:d)(t):t===91?e.attempt(Noe,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Poe,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Roe(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 zO(t)?lk(e,a)(t):a(t)}function a(t){return t===41?u(t):ok(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return zO(t)?lk(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?ck(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return zO(t)?lk(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 zoe(e,t,n){let r=this;return i;function i(t){return sk.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(NO(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Boe(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 Voe={name:`labelStartImage`,resolveAll:dk.resolveAll,tokenize:Hoe};function Hoe(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 Uoe={name:`labelStartLink`,resolveAll:dk.resolveAll,tokenize:Woe};function Woe(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 fk={name:`lineEnding`,tokenize:Goe};function Goe(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),GO(e,t,`linePrefix`)}}var pk={name:`thematicBreak`,tokenize:Koe};function Koe(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||RO(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),BO(t)?GO(e,s,`whitespace`)(t):s(t))}}var mk={continuation:{tokenize:Xoe},exit:Qoe,name:`list`,tokenize:Yoe},qoe={partial:!0,tokenize:$oe},Joe={partial:!0,tokenize:Zoe};function Yoe(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:LO(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(pk,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 LO(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(ZO,r.interrupt?n:u,e.attempt(qoe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return BO(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 Xoe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ZO,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,GO(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!BO(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(Joe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,GO(e,e.attempt(mk,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Zoe(e,t,n){let r=this;return GO(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 Qoe(e){e.exit(this.containerState.type)}function $oe(e,t,n){let r=this;return GO(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!BO(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var hk={name:`setextUnderline`,resolveTo:ese,tokenize:tse};function ese(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 tse(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`),BO(t)?GO(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||RO(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var nse={tokenize:rse};function rse(e){let t=this,n=e.attempt(ZO,r,e.attempt(this.parser.constructs.flowInitial,i,GO(e,e.attempt(this.parser.constructs.flow,i,e.attempt(coe,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 ise={resolveAll:_k()},ase=gk(`string`),ose=gk(`text`);function gk(e){return{resolveAll:_k(e===`text`?sse: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 _k(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 sse(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 cse=r({attentionMarkers:()=>gse,contentInitial:()=>use,disable:()=>_se,document:()=>lse,flow:()=>fse,flowInitial:()=>dse,insideSpan:()=>hse,string:()=>pse,text:()=>mse}),lse={42:mk,43:mk,45:mk,48:mk,49:mk,50:mk,51:mk,52:mk,53:mk,54:mk,55:mk,56:mk,57:mk,62:QO},use={91:poe},dse={[-2]:rk,[-1]:rk,32:rk},fse={35:yoe,42:pk,45:[hk,pk],60:Coe,61:hk,95:pk,96:nk,126:nk},pse={38:ek,92:$O},mse={[-5]:fk,[-4]:fk,[-3]:fk,33:Voe,38:ek,42:YO,60:[Uae,Aoe],91:Uoe,92:[_oe,$O],93:dk,95:YO,96:noe},hse={null:[YO,ise]},gse={null:[42,95]},_se={null:[]};function vse(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=kO(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=JO(a,l.events,l),l.events):[]}function f(e,t){return bse(p(e),t)}function p(e){return yse(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){RO(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&&OO(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 yse(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 bse(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 xse(e){let t={constructs:jO([cse,...(e||{}).extensions||[]]),content:n(Iae),defined:[],document:n(Rae),flow:n(nse),lazy:{},string:n(ase),text:n(ose)};return t;function n(e){return n;function n(n){return vse(t,e,n)}}}function Sse(e){for(;!ak(e););return e}var vk=/[\0\t\n\r]/g;function Cse(){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(vk.lastIndex=u,c=vk.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 wse=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tse(e){return e.replace(wse,Ese)}function Ese(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return MO(n.slice(t?2:1),t?16:10)}return DO(n)||e}var yk={}.hasOwnProperty;function Dse(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Ose(n)(Sse(xse(n).document().write(Cse()(e,t,!0))))}function Ose(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ee),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(Se),blockQuote:a(_e),characterEscape:T,characterReference:T,codeFenced:a(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ve,o),codeText:a(ye,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(be),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(xe),hardBreakEscape:a(Ce),hardBreakTrailing:a(Ce),htmlFlow:a(we,o),htmlFlowData:T,htmlText:a(we,o),htmlTextData:T,image:a(Te),label:o,link:a(Ee),listItem:a(Oe),listItemValue:f,listOrdered:a(De,d),listUnordered:a(De),paragraph:a(ke),reference:ue,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Se),strong:a(Ae),thematicBreak:a(Me)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ge,autolinkProtocol:he,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:pe,characterReference:me,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(re),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(te),htmlFlowData:E,htmlText:c(ne),htmlTextData:E,image:c(ae),label:se,labelText:oe,lineEnding:D,link:c(ie),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:de,resourceDestinationString:O,resourceTitleString:ce,resource:le,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};xk(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]];yk.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]||Sk).call(a,void 0,e[0])}for(r.position={start:bk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:bk(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:bk(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]||Sk).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+lO({start:e.start,end:e.end})+`): it’s not open`);n.position.end=bk(e.end)}function u(){return CO(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=NO(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=je(),n.position={start:bk(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=bk(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=bk(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 ee(){this.data.atHardBreak=!0}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 re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ie(){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 ae(){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 oe(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Tse(t),n.identifier=NO(t).toLowerCase()}function se(){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 O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ce(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function le(){this.data.inReference=void 0}function ue(){this.data.referenceType=`collapsed`}function de(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=NO(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function fe(e){this.data.characterReferenceType=e.type}function pe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=MO(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=DO(t);let i=this.stack[this.stack.length-1];i.value+=r}function me(e){let t=this.stack.pop();t.position.end=bk(e.end)}function he(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ge(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function _e(){return{type:`blockquote`,children:[]}}function ve(){return{type:`code`,lang:null,meta:null,value:``}}function ye(){return{type:`inlineCode`,value:``}}function be(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function xe(){return{type:`emphasis`,children:[]}}function Se(){return{type:`heading`,depth:0,children:[]}}function Ce(){return{type:`break`}}function we(){return{type:`html`,value:``}}function Te(){return{type:`image`,title:null,url:``,alt:null}}function Ee(){return{type:`link`,title:null,url:``,children:[]}}function De(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Oe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ke(){return{type:`paragraph`,children:[]}}function Ae(){return{type:`strong`,children:[]}}function je(){return{type:`text`,value:``}}function Me(){return{type:`thematicBreak`}}}function bk(e){return{line:e.line,column:e.column,offset:e.offset}}function xk(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?xk(e,r):kse(e,r)}}function kse(e,t){let n;for(n in t)if(yk.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 Sk(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+lO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+lO({start:t.start,end:t.end})+`) is still open`)}function Ck(e){let t=this;t.parser=n;function n(n){return Dse(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Ase(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 jse(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
48
|
+
`}]}function Mse(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 Nse(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pse(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fse(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=WO(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 Ise(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 Lse(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function wk(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 Rse(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wk(e,t);let i={src:WO(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 zse(e,t){let n={src:WO(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 Bse(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 Vse(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wk(e,t);let i={href:WO(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 Hse(e,t){let n={href:WO(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 Use(e,t,n){let r=e.all(t),i=n?Wse(n):Tk(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 Wse(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Tk(n[r])}return t}function Tk(e){return e.spread??e.children.length>1}function Gse(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 Kse(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qse(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Jse(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yse(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=oO(t.children[1]),o=aO(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 Xse(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 Zse(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Ek=9,Dk=32;function Qse(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Ok(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ok(t.slice(i),i>0,!1)),a.join(``)}function Ok(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Ek||t===Dk;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Ek||t===Dk;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function $se(e,t){let n={type:`text`,value:Qse(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ece(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var tce={blockquote:Ase,break:jse,code:Mse,delete:Nse,emphasis:Pse,footnoteReference:Fse,heading:Ise,html:Lse,imageReference:Rse,image:zse,inlineCode:Bse,linkReference:Vse,link:Hse,listItem:Use,list:Gse,paragraph:Kse,root:qse,strong:Jse,table:Yse,tableCell:Zse,tableRow:Xse,text:$se,thematicBreak:ece,toml:kk,yaml:kk,definition:kk,footnoteDefinition:kk};function kk(){}var nce=typeof self==`object`?self:globalThis,Ak=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new nce[e](t)},rce=(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(Ak(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(Ak(a,o),i)};return r},jk=e=>rce(new Map,e)(0),Mk=``,{toString:ice}={},{keys:ace}=Object,Nk=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=ice.call(e).slice(8,-1);switch(n){case`Array`:return[1,Mk];case`Object`:return[2,Mk];case`Date`:return[3,Mk];case`RegExp`:return[4,Mk];case`Map`:return[5,Mk];case`Set`:return[6,Mk];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},Pk=([e,t])=>e===0&&(t===`function`||t===`symbol`),oce=(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]=Nk(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 ace(r))(e||!Pk(Nk(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?Mk: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||!(Pk(Nk(n))||Pk(Nk(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Pk(Nk(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Fk=(e,{json:t,lossy:n}={})=>{let r=[];return oce(!(t||n),!!t,new Map,r)(e),r},Ik=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?jk(Fk(e,t)):structuredClone(e):(e,t)=>jk(Fk(e,t));function sce(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 cce(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function lce(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||sce,r=e.options.footnoteBackLabel||cce,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=WO(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:{...Ik(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 Lk=(function(e){if(e==null)return pce;if(typeof e==`function`)return Rk(e);if(typeof e==`object`)return Array.isArray(e)?uce(e):dce(e);if(typeof e==`string`)return fce(e);throw Error(`Expected function, string, or object as test`)});function uce(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Lk(e[n]);return Rk(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function dce(e){let t=e;return Rk(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function fce(e){return Rk(t);function t(t){return t&&t.type===e}}function Rk(e){return t;function t(t,n,r){return!!(mce(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function pce(){return!0}function mce(e){return typeof e==`object`&&!!e&&`type`in e}function hce(e){return e}var zk=[],gce=`skip`;function Bk(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Lk(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 (`+hce(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=zk,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=_ce(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 _ce(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?zk:[e]}function Vk(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),Bk(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 Hk={}.hasOwnProperty,vce={};function yce(e,t){let n=t||vce,r=new Map,i=new Map,a={all:s,applyData:xce,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tce,...n.handlers},one:o,options:n,patch:bce,wrap:Cce};return Vk(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(Hk.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=Ik(n);return r.children=a.all(e),r}return Ik(e)}return(a.options.unknownHandler||Sce)(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=Uk(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Uk(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function bce(e,t){e.position&&(t.position=cO(e))}function xce(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,Ik(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Sce(e,t){let n=t.data||{},r=`value`in t&&!(Hk.call(n,`hProperties`)||Hk.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 Cce(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 Uk(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wk(e,t){let n=yce(e,t),r=n.one(e,void 0),i=lce(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 wce(e,t){return e&&`run`in e?async function(n,r){let i=Wk(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Wk(n,{file:r,...e||t})}}function Gk(e){if(e)throw e}var Kk=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 qk(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 Tce(){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?Ece(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 Ece(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 Jk={basename:Dce,dirname:Oce,extname:kce,join:Ace,sep:`/`};function Dce(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Yk(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 Oce(e){if(Yk(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 kce(e){Yk(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 Ace(...e){let t=-1,n;for(;++t<e.length;)Yk(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:jce(n)}function jce(e){Yk(e);let t=e.codePointAt(0)===47,n=Mce(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Mce(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 Yk(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Nce={cwd:Pce};function Pce(){return`/`}function Xk(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Fce(e){if(typeof e==`string`)e=new URL(e);else if(!Xk(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 Ice(e)}function Ice(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 Zk=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Qk=class{constructor(e){let t;t=e?Xk(e)?{path:e}:typeof e==`string`||Lce(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Nce.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Zk.length;){let e=Zk[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)Zk.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Jk.basename(this.path):void 0}set basename(e){eA(e,`basename`),$k(e,`basename`),this.path=Jk.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Jk.dirname(this.path):void 0}set dirname(e){tA(this.basename,`dirname`),this.path=Jk.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Jk.extname(this.path):void 0}set extname(e){if($k(e,`extname`),tA(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=Jk.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Xk(e)&&(e=Fce(e)),eA(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Jk.basename(this.path,this.extname):void 0}set stem(e){eA(e,`stem`),$k(e,`stem`),this.path=Jk.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 pO(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 $k(e,t){if(e&&e.includes(Jk.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Jk.sep+"`")}function eA(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function tA(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Lce(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Rce=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),zce={}.hasOwnProperty,nA=new class e extends Rce{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=Tce()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Kk.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(aA(`data`,this.frozen),this.namespace[e]=t,this):zce.call(this.namespace,e)&&this.namespace[e]||void 0:e?(aA(`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=cA(e),n=this.parser||this.Parser;return rA(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),rA(`process`,this.parser||this.Parser),iA(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=cA(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);Vce(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(),rA(`processSync`,this.parser||this.Parser),iA(`processSync`,this.compiler||this.Compiler),this.process(e,r),sA(`processSync`,`process`,t),n;function r(e,r){t=!0,Gk(e),n=r}}run(e,t,n){oA(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=cA(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),sA(`runSync`,`run`,n),r;function i(e,t){Gk(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=cA(t),r=this.compiler||this.Compiler;return iA(`stringify`,r),oA(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(aA(`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,Kk.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];qk(o)&&qk(r)&&(r=(0,Kk.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function rA(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function iA(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function aA(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 oA(e){if(!qk(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function sA(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function cA(e){return Bce(e)?e:new Qk(e)}function Bce(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Vce(e){return typeof e==`string`||Hce(e)}function Hce(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var lA=[],uA={allowDangerousHtml:!0},Uce=/^(https?|ircs?|mailto|xmpp)$/i,Wce=[{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 Gce(e){let t=Kce(e),n=qce(e);return Jce(t.runSync(t.parse(n),n),e)}function Kce(e){let t=e.rehypePlugins||lA,n=e.remarkPlugins||lA,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...uA}:uA;return nA().use(Ck).use(n).use(wce,r).use(t)}function qce(e){let t=e.children||``,n=new Qk;return typeof t==`string`?n.value=t:``+t,n}function Jce(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||dA;for(let e of Wce)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Vk(e,l),pae(e,{Fragment:A.Fragment,components:i,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.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 SO)if(Object.hasOwn(SO,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=SO[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 dA(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||Uce.test(e.slice(0,t))?e:``}var fA=/[#.]/g;function Yce(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){fA.lastIndex=i;let e=fA.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 pA(e,t,n){let r=n?$ce(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=Yce(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,Xce(i))a.unshift(i);else for(let[t,n]of Object.entries(i))Zce(e,o.properties,t,n)}for(let e of a)mA(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function Xce(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 Zce(e,t,n,r){let i=eO(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?rO(r):i.commaSeparated?DD(r):i.commaOrSpaceSeparated?rO(DD(r).join(` `)):hA(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?Qce(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(hA(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function mA(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)mA(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?mA(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function hA(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||ND(n)===ND(t)))return!0}return n}function Qce(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function $ce(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var ele=`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(`.`),gA=pA(tO,`div`),_A=pA(nO,`g`,ele),vA={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/`};function tle(e,t){return yA(e,t||{})||{type:`root`,children:[]}}function yA(e,t){let n=nle(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function nle(e,t){switch(e.nodeType){case 1:return ole(e,t);case 3:return ile(e);case 8:return ale(e);case 9:return bA(e,t);case 10:return rle();case 11:return bA(e,t);default:return}}function bA(e,t){return{type:`root`,children:xA(e,t)}}function rle(){return{type:`doctype`}}function ile(e){return{type:`text`,value:e.nodeValue||``}}function ale(e){return{type:`comment`,value:e.nodeValue||``}}function ole(e,t){let n=e.namespaceURI,r=n===vA.svg?_A:gA,i=n===vA.html?e.tagName.toLowerCase():e.tagName,a=n===vA.html&&i===`template`?e.content:e,o=e.getAttributeNames(),s={},c=-1;for(;++c<o.length;)s[o[c]]=e.getAttribute(o[c])||``;return r(i,s,xA(a,t))}function xA(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=yA(n[i],t);e!==void 0&&r.push(e)}return r}var sle=new DOMParser;function cle(e,t){return tle(t?.fragment?lle(e):sle.parseFromString(e,`text/html`))}function lle(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var SA=(function(e,t,n){let r=Lk(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),t<0)throw Error(`Expected child node or index`);for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),CA=(function(e){if(e==null)return fle;if(typeof e==`string`)return dle(e);if(typeof e==`object`)return ule(e);if(typeof e==`function`)return wA(e);throw Error("Expected function, string, or array as `test`")});function ule(e){let t=[],n=-1;for(;++n<e.length;)t[n]=CA(e[n]);return wA(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function dle(e){return wA(t);function t(t){return t.tagName===e}}function wA(e){return t;function t(t,n,r){return!!(ple(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function fle(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function ple(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}var TA=/\n/g,EA=/[\t ]+/g,DA=CA(`br`),OA=CA(xle),mle=CA(`p`),kA=CA(`tr`),hle=CA([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,ble,Sle]),AA=CA(`address.article.aside.blockquote.body.caption.center.dd.dialog.dir.dl.dt.div.figure.figcaption.footer.form,.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.legend.li.listing.main.menu.nav.ol.p.plaintext.pre.section.ul.xmp`.split(`.`));function gle(e,t){let n=t||{},r=`children`in e?e.children:[],i=AA(e),a=NA(e,{whitespace:n.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),o=[];(e.type===`text`||e.type===`comment`)&&o.push(...MA(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...jA(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?DA(r[s+1]):i}));let c=[],l;for(s=-1;++s<o.length;){let e=o[s];typeof e==`number`?l!==void 0&&e>l&&(l=e):e&&(l!==void 0&&l>-1&&c.push(`
|
|
58
|
+
`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function jA(e,t,n){return e.type===`element`?_le(e,t,n):e.type===`text`?n.whitespace===`normal`?MA(e,n):vle(e):[]}function _le(e,t,n){let r=NA(e,n),i=e.children||[],a=-1,o=[];if(hle(e))return o;let s,c;for(DA(e)||kA(e)&&SA(t,e,kA)?c=`
|
|
59
|
+
`:mle(e)?(s=2,c=2):AA(e)&&(s=1,c=1);++a<i.length;)o=o.concat(jA(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?DA(i[a+1]):c}));return OA(e)&&SA(t,e,OA)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function MA(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){TA.lastIndex=a;let e=TA.exec(n),i=e&&`index`in e?e.index:n.length;r.push(yle(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a===0?t.breakBefore:!0,i===n.length?t.breakAfter:!0)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function vle(e){return[String(e.value)]}function yle(e,t,n){let r=[],i=0,a;for(;i<e.length;){EA.lastIndex=i;let n=EA.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function NA(e,t){if(e.type===`element`){let n=e.properties||{};switch(e.tagName){case`listing`:case`plaintext`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return n.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return n.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`;default:}}return t.whitespace}function ble(e){return!!(e.properties||{}).hidden}function xle(e){return e.tagName===`td`||e.tagName===`th`}function Sle(e){return e.tagName===`dialog`&&!(e.properties||{}).open}var M=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Cle=/([A-Z])/g,wle=e=>e.replace(Cle,`-$1`).toLowerCase(),Tle={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Ele=/[&><"']/g,PA=e=>String(e).replace(Ele,e=>Tle[e]),FA=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?FA(e.body[0]):e:e.type===`font`?FA(e.body):e,Dle=new Set([`mathord`,`textord`,`atom`]),IA=e=>Dle.has(FA(e).type),Ole=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},LA={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function kle(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ale(e){return e.default===void 0?kle(Array.isArray(e.type)?e.type[0]:e.type):e.default}function jle(e,t,n,r){var i=n[t];e[t]=i===void 0?Ale(r):r.processor?r.processor(i):i}var RA=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(LA)){var n=LA[t];n&&jle(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new M(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Ole(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},zA=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return JA[Mle[this.id]]}sub(){return JA[Nle[this.id]]}fracNum(){return JA[Ple[this.id]]}fracDen(){return JA[Fle[this.id]]}cramp(){return JA[Ile[this.id]]}text(){return JA[Lle[this.id]]}isTight(){return this.size>=2}},BA=0,VA=1,HA=2,UA=3,WA=4,GA=5,KA=6,qA=7,JA=[new zA(BA,0,!1),new zA(VA,0,!0),new zA(HA,1,!1),new zA(UA,1,!0),new zA(WA,2,!1),new zA(GA,2,!0),new zA(KA,3,!1),new zA(qA,3,!0)],Mle=[WA,GA,WA,GA,KA,qA,KA,qA],Nle=[GA,GA,GA,GA,qA,qA,qA,qA],Ple=[HA,UA,WA,GA,KA,qA,KA,qA],Fle=[UA,UA,GA,GA,qA,qA,qA,qA],Ile=[VA,VA,UA,UA,GA,GA,qA,qA],Lle=[BA,VA,HA,UA,HA,UA,HA,UA],YA={DISPLAY:JA[BA],TEXT:JA[HA],SCRIPT:JA[WA],SCRIPTSCRIPT:JA[KA]},XA=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Rle(e){for(var t=0;t<XA.length;t++)for(var n=XA[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var ZA=[];XA.forEach(e=>e.blocks.forEach(e=>ZA.push(...e)));function QA(e){for(var t=0;t<ZA.length;t+=2)if(e>=ZA[t]&&e<=ZA[t+1])return!0;return!1}var $A=e=>e+` `+e,ej=80,zle=function(e,t){return`M95,`+(622+e+t)+`
|
|
60
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
61
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
62
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
63
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
64
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
65
|
+
l`+e/2.075+` -`+e+`
|
|
66
|
+
c5.3,-9.3,12,-14,20,-14
|
|
67
|
+
H400000v`+(40+e)+`H845.2724
|
|
68
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
69
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
70
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Ble=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
71
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
72
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
73
|
+
l`+e/2.084+` -`+e+`
|
|
74
|
+
c4.7,-7.3,11,-11,19,-11
|
|
75
|
+
H40000v`+(40+e)+`H1012.3
|
|
76
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
77
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
78
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
79
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
80
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Vle=function(e,t){return`M983 `+(10+e+t)+`
|
|
81
|
+
l`+e/3.13+` -`+e+`
|
|
82
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
83
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
84
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
85
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
86
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
87
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
88
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
89
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Hle=function(e,t){return`M424,`+(2398+e+t)+`
|
|
90
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
91
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
92
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
93
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
94
|
+
l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
|
|
95
|
+
v`+(40+e)+`H1014.6
|
|
96
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
97
|
+
c-2,6,-10,9,-24,9
|
|
98
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
99
|
+
h400000v`+(40+e)+`h-400000z`},Ule=function(e,t){return`M473,`+(2713+e+t)+`
|
|
100
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
101
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
102
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
103
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
104
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
105
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
106
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Wle=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Gle=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
107
|
+
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
108
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
109
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
110
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},Kle=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=zle(t,ej);break;case`sqrtSize1`:r=Ble(t,ej);break;case`sqrtSize2`:r=Vle(t,ej);break;case`sqrtSize3`:r=Hle(t,ej);break;case`sqrtSize4`:r=Ule(t,ej);break;case`sqrtTall`:r=Gle(t,ej,n)}return r},qle=function(e,t){switch(e){case`⎜`:return $A(`M291 0 H417 V`+t+` H291z`);case`∣`:return $A(`M145 0 H188 V`+t+` H145z`);case`∥`:return $A(`M145 0 H188 V`+t+` H145z`)+$A(`M367 0 H410 V`+t+` H367z`);case`⎟`:return $A(`M457 0 H583 V`+t+` H457z`);case`⎢`:return $A(`M319 0 H403 V`+t+` H319z`);case`⎥`:return $A(`M263 0 H347 V`+t+` H263z`);case`⎪`:return $A(`M384 0 H504 V`+t+` H384z`);case`⏐`:return $A(`M312 0 H355 V`+t+` H312z`);case`‖`:return $A(`M257 0 H300 V`+t+` H257z`)+$A(`M478 0 H521 V`+t+` H478z`);default:return``}},tj={doubleleftarrow:`M262 157
|
|
111
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
112
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
113
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
114
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
115
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
116
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
117
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
118
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
119
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
120
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
121
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
122
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
123
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
124
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
125
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
126
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
127
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
128
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
129
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
130
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
131
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
132
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
133
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
134
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
135
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
136
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
137
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
138
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
139
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
140
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
141
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
142
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
143
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
144
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
145
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
146
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
147
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
148
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
149
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
150
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
151
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
152
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
153
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
154
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
155
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
156
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:$A(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:$A(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:$A(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:$A(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
157
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
158
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
159
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:$A(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
160
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
161
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
162
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
163
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
164
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
165
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
166
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
167
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
168
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
169
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
170
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
171
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
172
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
173
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
174
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
175
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
176
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
177
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
178
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
179
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
180
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
181
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
182
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
183
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
184
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
185
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
186
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
187
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
188
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
189
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
190
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
191
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
192
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
193
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
194
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
195
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
196
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
197
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
198
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
199
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
200
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
201
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
202
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
203
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
204
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
205
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
206
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
207
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
208
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:$A(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:$A(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:$A(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
209
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
210
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
211
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
212
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
213
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
214
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
215
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
216
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
217
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
218
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
219
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
220
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
221
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
222
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
223
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
224
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
225
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
226
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
227
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
228
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
229
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
230
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
231
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
232
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
233
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
234
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
235
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
236
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
237
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
238
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
239
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
240
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
241
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
242
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
243
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
244
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
245
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
246
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
247
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
248
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
249
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
250
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
251
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
252
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
253
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
254
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
255
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
256
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
257
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
258
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
259
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
260
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
261
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
262
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
263
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
264
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
265
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
266
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
267
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
268
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
269
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
270
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
271
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
272
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
273
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
274
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
275
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
276
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
277
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
278
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
279
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
280
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
281
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Jle=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
282
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
283
|
+
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
284
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
285
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
286
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
287
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
|
288
|
+
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
289
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
290
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
|
|
291
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
|
|
292
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
|
|
293
|
+
M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
|
|
294
|
+
M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
295
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
296
|
+
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
297
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
298
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
299
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
300
|
+
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
301
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
302
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
303
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
|
304
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
305
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
306
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
307
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
308
|
+
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
309
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function Yle(e){return`toText`in e}var nj=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(Yle(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},rj={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Xle={ex:!0,em:!0,mu:!0},ij=function(e){return typeof e!=`string`&&(e=e.unit),e in rj||e in Xle||e===`ex`},aj=function(e,t){var n;if(e.unit in rj)n=rj[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new M(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},oj=function(e){return+e.toFixed(4)+`em`},sj=function(e){return e.filter(e=>e).join(` `)},cj=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=wle(n)+`:`+r+`;`)}return t},lj=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},uj=function(e){var t=document.createElement(e);t.className=sj(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Zle=/[\s"'>/=\x00-\x1f]/,dj=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+PA(sj(this.classes))+`"`);var n=cj(this.style);n&&(t+=` style="`+PA(n)+`"`);for(var r of Object.keys(this.attributes)){if(Zle.test(r))throw new M(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+PA(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},fj=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,lj.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return uj.call(this,`span`)}toMarkup(){return dj.call(this,`span`)}},pj=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,lj.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return uj.call(this,`a`)}toMarkup(){return dj.call(this,`a`)}},Qle=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+PA(this.src)+`"`+(` alt="`+PA(this.alt)+`"`),t=cj(this.style);return t&&(e+=` style="`+PA(t)+`"`),e+=`'/>`,e}},$le={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},mj=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Rle(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=$le[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=oj(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=sj(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=PA(sj(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+oj(this.italic)+`;`),n+=cj(this.style),n&&(e=!0,t+=` style="`+PA(n)+`"`);var r=PA(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},hj=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+PA(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},gj=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,tj[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+PA(this.alternate)+`"/>`:`<path d="`+PA(tj[this.pathName])+`"/>`}},_j=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+PA(this.attributes[t])+`"`;return e+=`/>`,e}};function eue(e){if(e instanceof mj)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function tue(e){if(e instanceof fj)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var nue=e=>e instanceof fj||e instanceof pj||e instanceof nj,vj={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},yj={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},bj={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function rue(e,t){vj[e]=t}function xj(e,t,n){if(!vj[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=vj[t][r];if(!i&&e[0]in bj&&(r=bj[e[0]].charCodeAt(0),i=vj[t][r]),!i&&n===`text`&&QA(r)&&(i=vj[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Sj={};function iue(e){var t=e>=5?0:e>=3?1:2;if(!Sj[t]){var n=Sj[t]={cssEmPerMu:yj.quad[t]/18};for(var r in yj)yj.hasOwnProperty(r)&&(n[r]=yj[r][t])}return Sj[t]}var Cj={math:{},text:{}};function N(e,t,n,r,i,a){Cj[e][i]={font:t,group:n,replace:r},a&&r&&(Cj[e][r]=Cj[e][i])}var P=`math`,F=`text`,I=`main`,L=`ams`,wj=`accent-token`,Tj=`bin`,Ej=`close`,Dj=`inner`,Oj=`mathord`,kj=`op-token`,Aj=`open`,jj=`punct`,R=`rel`,Mj=`spacing`,z=`textord`;N(P,I,R,`≡`,`\\equiv`,!0),N(P,I,R,`≺`,`\\prec`,!0),N(P,I,R,`≻`,`\\succ`,!0),N(P,I,R,`∼`,`\\sim`,!0),N(P,I,R,`⊥`,`\\perp`),N(P,I,R,`⪯`,`\\preceq`,!0),N(P,I,R,`⪰`,`\\succeq`,!0),N(P,I,R,`≃`,`\\simeq`,!0),N(P,I,R,`∣`,`\\mid`,!0),N(P,I,R,`≪`,`\\ll`,!0),N(P,I,R,`≫`,`\\gg`,!0),N(P,I,R,`≍`,`\\asymp`,!0),N(P,I,R,`∥`,`\\parallel`),N(P,I,R,`⋈`,`\\bowtie`,!0),N(P,I,R,`⌣`,`\\smile`,!0),N(P,I,R,`⊑`,`\\sqsubseteq`,!0),N(P,I,R,`⊒`,`\\sqsupseteq`,!0),N(P,I,R,`≐`,`\\doteq`,!0),N(P,I,R,`⌢`,`\\frown`,!0),N(P,I,R,`∋`,`\\ni`,!0),N(P,I,R,`∝`,`\\propto`,!0),N(P,I,R,`⊢`,`\\vdash`,!0),N(P,I,R,`⊣`,`\\dashv`,!0),N(P,I,R,`∋`,`\\owns`),N(P,I,jj,`.`,`\\ldotp`),N(P,I,jj,`⋅`,`\\cdotp`),N(P,I,jj,`⋅`,`·`),N(F,I,z,`⋅`,`·`),N(P,I,z,`#`,`\\#`),N(F,I,z,`#`,`\\#`),N(P,I,z,`&`,`\\&`),N(F,I,z,`&`,`\\&`),N(P,I,z,`ℵ`,`\\aleph`,!0),N(P,I,z,`∀`,`\\forall`,!0),N(P,I,z,`ℏ`,`\\hbar`,!0),N(P,I,z,`∃`,`\\exists`,!0),N(P,I,z,`∇`,`\\nabla`,!0),N(P,I,z,`♭`,`\\flat`,!0),N(P,I,z,`ℓ`,`\\ell`,!0),N(P,I,z,`♮`,`\\natural`,!0),N(P,I,z,`♣`,`\\clubsuit`,!0),N(P,I,z,`℘`,`\\wp`,!0),N(P,I,z,`♯`,`\\sharp`,!0),N(P,I,z,`♢`,`\\diamondsuit`,!0),N(P,I,z,`ℜ`,`\\Re`,!0),N(P,I,z,`♡`,`\\heartsuit`,!0),N(P,I,z,`ℑ`,`\\Im`,!0),N(P,I,z,`♠`,`\\spadesuit`,!0),N(P,I,z,`§`,`\\S`,!0),N(F,I,z,`§`,`\\S`),N(P,I,z,`¶`,`\\P`,!0),N(F,I,z,`¶`,`\\P`),N(P,I,z,`†`,`\\dag`),N(F,I,z,`†`,`\\dag`),N(F,I,z,`†`,`\\textdagger`),N(P,I,z,`‡`,`\\ddag`),N(F,I,z,`‡`,`\\ddag`),N(F,I,z,`‡`,`\\textdaggerdbl`),N(P,I,Ej,`⎱`,`\\rmoustache`,!0),N(P,I,Aj,`⎰`,`\\lmoustache`,!0),N(P,I,Ej,`⟯`,`\\rgroup`,!0),N(P,I,Aj,`⟮`,`\\lgroup`,!0),N(P,I,Tj,`∓`,`\\mp`,!0),N(P,I,Tj,`⊖`,`\\ominus`,!0),N(P,I,Tj,`⊎`,`\\uplus`,!0),N(P,I,Tj,`⊓`,`\\sqcap`,!0),N(P,I,Tj,`∗`,`\\ast`),N(P,I,Tj,`⊔`,`\\sqcup`,!0),N(P,I,Tj,`◯`,`\\bigcirc`,!0),N(P,I,Tj,`∙`,`\\bullet`,!0),N(P,I,Tj,`‡`,`\\ddagger`),N(P,I,Tj,`≀`,`\\wr`,!0),N(P,I,Tj,`⨿`,`\\amalg`),N(P,I,Tj,`&`,`\\And`),N(P,I,R,`⟵`,`\\longleftarrow`,!0),N(P,I,R,`⇐`,`\\Leftarrow`,!0),N(P,I,R,`⟸`,`\\Longleftarrow`,!0),N(P,I,R,`⟶`,`\\longrightarrow`,!0),N(P,I,R,`⇒`,`\\Rightarrow`,!0),N(P,I,R,`⟹`,`\\Longrightarrow`,!0),N(P,I,R,`↔`,`\\leftrightarrow`,!0),N(P,I,R,`⟷`,`\\longleftrightarrow`,!0),N(P,I,R,`⇔`,`\\Leftrightarrow`,!0),N(P,I,R,`⟺`,`\\Longleftrightarrow`,!0),N(P,I,R,`↦`,`\\mapsto`,!0),N(P,I,R,`⟼`,`\\longmapsto`,!0),N(P,I,R,`↗`,`\\nearrow`,!0),N(P,I,R,`↩`,`\\hookleftarrow`,!0),N(P,I,R,`↪`,`\\hookrightarrow`,!0),N(P,I,R,`↘`,`\\searrow`,!0),N(P,I,R,`↼`,`\\leftharpoonup`,!0),N(P,I,R,`⇀`,`\\rightharpoonup`,!0),N(P,I,R,`↙`,`\\swarrow`,!0),N(P,I,R,`↽`,`\\leftharpoondown`,!0),N(P,I,R,`⇁`,`\\rightharpoondown`,!0),N(P,I,R,`↖`,`\\nwarrow`,!0),N(P,I,R,`⇌`,`\\rightleftharpoons`,!0),N(P,L,R,`≮`,`\\nless`,!0),N(P,L,R,``,`\\@nleqslant`),N(P,L,R,``,`\\@nleqq`),N(P,L,R,`⪇`,`\\lneq`,!0),N(P,L,R,`≨`,`\\lneqq`,!0),N(P,L,R,``,`\\@lvertneqq`),N(P,L,R,`⋦`,`\\lnsim`,!0),N(P,L,R,`⪉`,`\\lnapprox`,!0),N(P,L,R,`⊀`,`\\nprec`,!0),N(P,L,R,`⋠`,`\\npreceq`,!0),N(P,L,R,`⋨`,`\\precnsim`,!0),N(P,L,R,`⪹`,`\\precnapprox`,!0),N(P,L,R,`≁`,`\\nsim`,!0),N(P,L,R,``,`\\@nshortmid`),N(P,L,R,`∤`,`\\nmid`,!0),N(P,L,R,`⊬`,`\\nvdash`,!0),N(P,L,R,`⊭`,`\\nvDash`,!0),N(P,L,R,`⋪`,`\\ntriangleleft`),N(P,L,R,`⋬`,`\\ntrianglelefteq`,!0),N(P,L,R,`⊊`,`\\subsetneq`,!0),N(P,L,R,``,`\\@varsubsetneq`),N(P,L,R,`⫋`,`\\subsetneqq`,!0),N(P,L,R,``,`\\@varsubsetneqq`),N(P,L,R,`≯`,`\\ngtr`,!0),N(P,L,R,``,`\\@ngeqslant`),N(P,L,R,``,`\\@ngeqq`),N(P,L,R,`⪈`,`\\gneq`,!0),N(P,L,R,`≩`,`\\gneqq`,!0),N(P,L,R,``,`\\@gvertneqq`),N(P,L,R,`⋧`,`\\gnsim`,!0),N(P,L,R,`⪊`,`\\gnapprox`,!0),N(P,L,R,`⊁`,`\\nsucc`,!0),N(P,L,R,`⋡`,`\\nsucceq`,!0),N(P,L,R,`⋩`,`\\succnsim`,!0),N(P,L,R,`⪺`,`\\succnapprox`,!0),N(P,L,R,`≆`,`\\ncong`,!0),N(P,L,R,``,`\\@nshortparallel`),N(P,L,R,`∦`,`\\nparallel`,!0),N(P,L,R,`⊯`,`\\nVDash`,!0),N(P,L,R,`⋫`,`\\ntriangleright`),N(P,L,R,`⋭`,`\\ntrianglerighteq`,!0),N(P,L,R,``,`\\@nsupseteqq`),N(P,L,R,`⊋`,`\\supsetneq`,!0),N(P,L,R,``,`\\@varsupsetneq`),N(P,L,R,`⫌`,`\\supsetneqq`,!0),N(P,L,R,``,`\\@varsupsetneqq`),N(P,L,R,`⊮`,`\\nVdash`,!0),N(P,L,R,`⪵`,`\\precneqq`,!0),N(P,L,R,`⪶`,`\\succneqq`,!0),N(P,L,R,``,`\\@nsubseteqq`),N(P,L,Tj,`⊴`,`\\unlhd`),N(P,L,Tj,`⊵`,`\\unrhd`),N(P,L,R,`↚`,`\\nleftarrow`,!0),N(P,L,R,`↛`,`\\nrightarrow`,!0),N(P,L,R,`⇍`,`\\nLeftarrow`,!0),N(P,L,R,`⇏`,`\\nRightarrow`,!0),N(P,L,R,`↮`,`\\nleftrightarrow`,!0),N(P,L,R,`⇎`,`\\nLeftrightarrow`,!0),N(P,L,R,`△`,`\\vartriangle`),N(P,L,z,`ℏ`,`\\hslash`),N(P,L,z,`▽`,`\\triangledown`),N(P,L,z,`◊`,`\\lozenge`),N(P,L,z,`Ⓢ`,`\\circledS`),N(P,L,z,`®`,`\\circledR`),N(F,L,z,`®`,`\\circledR`),N(P,L,z,`∡`,`\\measuredangle`,!0),N(P,L,z,`∄`,`\\nexists`),N(P,L,z,`℧`,`\\mho`),N(P,L,z,`Ⅎ`,`\\Finv`,!0),N(P,L,z,`⅁`,`\\Game`,!0),N(P,L,z,`‵`,`\\backprime`),N(P,L,z,`▲`,`\\blacktriangle`),N(P,L,z,`▼`,`\\blacktriangledown`),N(P,L,z,`■`,`\\blacksquare`),N(P,L,z,`⧫`,`\\blacklozenge`),N(P,L,z,`★`,`\\bigstar`),N(P,L,z,`∢`,`\\sphericalangle`,!0),N(P,L,z,`∁`,`\\complement`,!0),N(P,L,z,`ð`,`\\eth`,!0),N(F,I,z,`ð`,`ð`),N(P,L,z,`╱`,`\\diagup`),N(P,L,z,`╲`,`\\diagdown`),N(P,L,z,`□`,`\\square`),N(P,L,z,`□`,`\\Box`),N(P,L,z,`◊`,`\\Diamond`),N(P,L,z,`¥`,`\\yen`,!0),N(F,L,z,`¥`,`\\yen`,!0),N(P,L,z,`✓`,`\\checkmark`,!0),N(F,L,z,`✓`,`\\checkmark`),N(P,L,z,`ℶ`,`\\beth`,!0),N(P,L,z,`ℸ`,`\\daleth`,!0),N(P,L,z,`ℷ`,`\\gimel`,!0),N(P,L,z,`ϝ`,`\\digamma`,!0),N(P,L,z,`ϰ`,`\\varkappa`),N(P,L,Aj,`┌`,`\\@ulcorner`,!0),N(P,L,Ej,`┐`,`\\@urcorner`,!0),N(P,L,Aj,`└`,`\\@llcorner`,!0),N(P,L,Ej,`┘`,`\\@lrcorner`,!0),N(P,L,R,`≦`,`\\leqq`,!0),N(P,L,R,`⩽`,`\\leqslant`,!0),N(P,L,R,`⪕`,`\\eqslantless`,!0),N(P,L,R,`≲`,`\\lesssim`,!0),N(P,L,R,`⪅`,`\\lessapprox`,!0),N(P,L,R,`≊`,`\\approxeq`,!0),N(P,L,Tj,`⋖`,`\\lessdot`),N(P,L,R,`⋘`,`\\lll`,!0),N(P,L,R,`≶`,`\\lessgtr`,!0),N(P,L,R,`⋚`,`\\lesseqgtr`,!0),N(P,L,R,`⪋`,`\\lesseqqgtr`,!0),N(P,L,R,`≑`,`\\doteqdot`),N(P,L,R,`≓`,`\\risingdotseq`,!0),N(P,L,R,`≒`,`\\fallingdotseq`,!0),N(P,L,R,`∽`,`\\backsim`,!0),N(P,L,R,`⋍`,`\\backsimeq`,!0),N(P,L,R,`⫅`,`\\subseteqq`,!0),N(P,L,R,`⋐`,`\\Subset`,!0),N(P,L,R,`⊏`,`\\sqsubset`,!0),N(P,L,R,`≼`,`\\preccurlyeq`,!0),N(P,L,R,`⋞`,`\\curlyeqprec`,!0),N(P,L,R,`≾`,`\\precsim`,!0),N(P,L,R,`⪷`,`\\precapprox`,!0),N(P,L,R,`⊲`,`\\vartriangleleft`),N(P,L,R,`⊴`,`\\trianglelefteq`),N(P,L,R,`⊨`,`\\vDash`,!0),N(P,L,R,`⊪`,`\\Vvdash`,!0),N(P,L,R,`⌣`,`\\smallsmile`),N(P,L,R,`⌢`,`\\smallfrown`),N(P,L,R,`≏`,`\\bumpeq`,!0),N(P,L,R,`≎`,`\\Bumpeq`,!0),N(P,L,R,`≧`,`\\geqq`,!0),N(P,L,R,`⩾`,`\\geqslant`,!0),N(P,L,R,`⪖`,`\\eqslantgtr`,!0),N(P,L,R,`≳`,`\\gtrsim`,!0),N(P,L,R,`⪆`,`\\gtrapprox`,!0),N(P,L,Tj,`⋗`,`\\gtrdot`),N(P,L,R,`⋙`,`\\ggg`,!0),N(P,L,R,`≷`,`\\gtrless`,!0),N(P,L,R,`⋛`,`\\gtreqless`,!0),N(P,L,R,`⪌`,`\\gtreqqless`,!0),N(P,L,R,`≖`,`\\eqcirc`,!0),N(P,L,R,`≗`,`\\circeq`,!0),N(P,L,R,`≜`,`\\triangleq`,!0),N(P,L,R,`∼`,`\\thicksim`),N(P,L,R,`≈`,`\\thickapprox`),N(P,L,R,`⫆`,`\\supseteqq`,!0),N(P,L,R,`⋑`,`\\Supset`,!0),N(P,L,R,`⊐`,`\\sqsupset`,!0),N(P,L,R,`≽`,`\\succcurlyeq`,!0),N(P,L,R,`⋟`,`\\curlyeqsucc`,!0),N(P,L,R,`≿`,`\\succsim`,!0),N(P,L,R,`⪸`,`\\succapprox`,!0),N(P,L,R,`⊳`,`\\vartriangleright`),N(P,L,R,`⊵`,`\\trianglerighteq`),N(P,L,R,`⊩`,`\\Vdash`,!0),N(P,L,R,`∣`,`\\shortmid`),N(P,L,R,`∥`,`\\shortparallel`),N(P,L,R,`≬`,`\\between`,!0),N(P,L,R,`⋔`,`\\pitchfork`,!0),N(P,L,R,`∝`,`\\varpropto`),N(P,L,R,`◀`,`\\blacktriangleleft`),N(P,L,R,`∴`,`\\therefore`,!0),N(P,L,R,`∍`,`\\backepsilon`),N(P,L,R,`▶`,`\\blacktriangleright`),N(P,L,R,`∵`,`\\because`,!0),N(P,L,R,`⋘`,`\\llless`),N(P,L,R,`⋙`,`\\gggtr`),N(P,L,Tj,`⊲`,`\\lhd`),N(P,L,Tj,`⊳`,`\\rhd`),N(P,L,R,`≂`,`\\eqsim`,!0),N(P,I,R,`⋈`,`\\Join`),N(P,L,R,`≑`,`\\Doteq`,!0),N(P,L,Tj,`∔`,`\\dotplus`,!0),N(P,L,Tj,`∖`,`\\smallsetminus`),N(P,L,Tj,`⋒`,`\\Cap`,!0),N(P,L,Tj,`⋓`,`\\Cup`,!0),N(P,L,Tj,`⩞`,`\\doublebarwedge`,!0),N(P,L,Tj,`⊟`,`\\boxminus`,!0),N(P,L,Tj,`⊞`,`\\boxplus`,!0),N(P,L,Tj,`⋇`,`\\divideontimes`,!0),N(P,L,Tj,`⋉`,`\\ltimes`,!0),N(P,L,Tj,`⋊`,`\\rtimes`,!0),N(P,L,Tj,`⋋`,`\\leftthreetimes`,!0),N(P,L,Tj,`⋌`,`\\rightthreetimes`,!0),N(P,L,Tj,`⋏`,`\\curlywedge`,!0),N(P,L,Tj,`⋎`,`\\curlyvee`,!0),N(P,L,Tj,`⊝`,`\\circleddash`,!0),N(P,L,Tj,`⊛`,`\\circledast`,!0),N(P,L,Tj,`⋅`,`\\centerdot`),N(P,L,Tj,`⊺`,`\\intercal`,!0),N(P,L,Tj,`⋒`,`\\doublecap`),N(P,L,Tj,`⋓`,`\\doublecup`),N(P,L,Tj,`⊠`,`\\boxtimes`,!0),N(P,L,R,`⇢`,`\\dashrightarrow`,!0),N(P,L,R,`⇠`,`\\dashleftarrow`,!0),N(P,L,R,`⇇`,`\\leftleftarrows`,!0),N(P,L,R,`⇆`,`\\leftrightarrows`,!0),N(P,L,R,`⇚`,`\\Lleftarrow`,!0),N(P,L,R,`↞`,`\\twoheadleftarrow`,!0),N(P,L,R,`↢`,`\\leftarrowtail`,!0),N(P,L,R,`↫`,`\\looparrowleft`,!0),N(P,L,R,`⇋`,`\\leftrightharpoons`,!0),N(P,L,R,`↶`,`\\curvearrowleft`,!0),N(P,L,R,`↺`,`\\circlearrowleft`,!0),N(P,L,R,`↰`,`\\Lsh`,!0),N(P,L,R,`⇈`,`\\upuparrows`,!0),N(P,L,R,`↿`,`\\upharpoonleft`,!0),N(P,L,R,`⇃`,`\\downharpoonleft`,!0),N(P,I,R,`⊶`,`\\origof`,!0),N(P,I,R,`⊷`,`\\imageof`,!0),N(P,L,R,`⊸`,`\\multimap`,!0),N(P,L,R,`↭`,`\\leftrightsquigarrow`,!0),N(P,L,R,`⇉`,`\\rightrightarrows`,!0),N(P,L,R,`⇄`,`\\rightleftarrows`,!0),N(P,L,R,`↠`,`\\twoheadrightarrow`,!0),N(P,L,R,`↣`,`\\rightarrowtail`,!0),N(P,L,R,`↬`,`\\looparrowright`,!0),N(P,L,R,`↷`,`\\curvearrowright`,!0),N(P,L,R,`↻`,`\\circlearrowright`,!0),N(P,L,R,`↱`,`\\Rsh`,!0),N(P,L,R,`⇊`,`\\downdownarrows`,!0),N(P,L,R,`↾`,`\\upharpoonright`,!0),N(P,L,R,`⇂`,`\\downharpoonright`,!0),N(P,L,R,`⇝`,`\\rightsquigarrow`,!0),N(P,L,R,`⇝`,`\\leadsto`),N(P,L,R,`⇛`,`\\Rrightarrow`,!0),N(P,L,R,`↾`,`\\restriction`),N(P,I,z,`‘`,"`"),N(P,I,z,`$`,`\\$`),N(F,I,z,`$`,`\\$`),N(F,I,z,`$`,`\\textdollar`),N(P,I,z,`%`,`\\%`),N(F,I,z,`%`,`\\%`),N(P,I,z,`_`,`\\_`),N(F,I,z,`_`,`\\_`),N(F,I,z,`_`,`\\textunderscore`),N(P,I,z,`∠`,`\\angle`,!0),N(P,I,z,`∞`,`\\infty`,!0),N(P,I,z,`′`,`\\prime`),N(P,I,z,`△`,`\\triangle`),N(P,I,z,`Γ`,`\\Gamma`,!0),N(P,I,z,`Δ`,`\\Delta`,!0),N(P,I,z,`Θ`,`\\Theta`,!0),N(P,I,z,`Λ`,`\\Lambda`,!0),N(P,I,z,`Ξ`,`\\Xi`,!0),N(P,I,z,`Π`,`\\Pi`,!0),N(P,I,z,`Σ`,`\\Sigma`,!0),N(P,I,z,`Υ`,`\\Upsilon`,!0),N(P,I,z,`Φ`,`\\Phi`,!0),N(P,I,z,`Ψ`,`\\Psi`,!0),N(P,I,z,`Ω`,`\\Omega`,!0),N(P,I,z,`A`,`Α`),N(P,I,z,`B`,`Β`),N(P,I,z,`E`,`Ε`),N(P,I,z,`Z`,`Ζ`),N(P,I,z,`H`,`Η`),N(P,I,z,`I`,`Ι`),N(P,I,z,`K`,`Κ`),N(P,I,z,`M`,`Μ`),N(P,I,z,`N`,`Ν`),N(P,I,z,`O`,`Ο`),N(P,I,z,`P`,`Ρ`),N(P,I,z,`T`,`Τ`),N(P,I,z,`X`,`Χ`),N(P,I,z,`¬`,`\\neg`,!0),N(P,I,z,`¬`,`\\lnot`),N(P,I,z,`⊤`,`\\top`),N(P,I,z,`⊥`,`\\bot`),N(P,I,z,`∅`,`\\emptyset`),N(P,L,z,`∅`,`\\varnothing`),N(P,I,Oj,`α`,`\\alpha`,!0),N(P,I,Oj,`β`,`\\beta`,!0),N(P,I,Oj,`γ`,`\\gamma`,!0),N(P,I,Oj,`δ`,`\\delta`,!0),N(P,I,Oj,`ϵ`,`\\epsilon`,!0),N(P,I,Oj,`ζ`,`\\zeta`,!0),N(P,I,Oj,`η`,`\\eta`,!0),N(P,I,Oj,`θ`,`\\theta`,!0),N(P,I,Oj,`ι`,`\\iota`,!0),N(P,I,Oj,`κ`,`\\kappa`,!0),N(P,I,Oj,`λ`,`\\lambda`,!0),N(P,I,Oj,`μ`,`\\mu`,!0),N(P,I,Oj,`ν`,`\\nu`,!0),N(P,I,Oj,`ξ`,`\\xi`,!0),N(P,I,Oj,`ο`,`\\omicron`,!0),N(P,I,Oj,`π`,`\\pi`,!0),N(P,I,Oj,`ρ`,`\\rho`,!0),N(P,I,Oj,`σ`,`\\sigma`,!0),N(P,I,Oj,`τ`,`\\tau`,!0),N(P,I,Oj,`υ`,`\\upsilon`,!0),N(P,I,Oj,`ϕ`,`\\phi`,!0),N(P,I,Oj,`χ`,`\\chi`,!0),N(P,I,Oj,`ψ`,`\\psi`,!0),N(P,I,Oj,`ω`,`\\omega`,!0),N(P,I,Oj,`ε`,`\\varepsilon`,!0),N(P,I,Oj,`ϑ`,`\\vartheta`,!0),N(P,I,Oj,`ϖ`,`\\varpi`,!0),N(P,I,Oj,`ϱ`,`\\varrho`,!0),N(P,I,Oj,`ς`,`\\varsigma`,!0),N(P,I,Oj,`φ`,`\\varphi`,!0),N(P,I,Tj,`∗`,`*`,!0),N(P,I,Tj,`+`,`+`),N(P,I,Tj,`−`,`-`,!0),N(P,I,Tj,`⋅`,`\\cdot`,!0),N(P,I,Tj,`∘`,`\\circ`,!0),N(P,I,Tj,`÷`,`\\div`,!0),N(P,I,Tj,`±`,`\\pm`,!0),N(P,I,Tj,`×`,`\\times`,!0),N(P,I,Tj,`∩`,`\\cap`,!0),N(P,I,Tj,`∪`,`\\cup`,!0),N(P,I,Tj,`∖`,`\\setminus`,!0),N(P,I,Tj,`∧`,`\\land`),N(P,I,Tj,`∨`,`\\lor`),N(P,I,Tj,`∧`,`\\wedge`,!0),N(P,I,Tj,`∨`,`\\vee`,!0),N(P,I,z,`√`,`\\surd`),N(P,I,Aj,`⟨`,`\\langle`,!0),N(P,I,Aj,`∣`,`\\lvert`),N(P,I,Aj,`∥`,`\\lVert`),N(P,I,Ej,`?`,`?`),N(P,I,Ej,`!`,`!`),N(P,I,Ej,`⟩`,`\\rangle`,!0),N(P,I,Ej,`∣`,`\\rvert`),N(P,I,Ej,`∥`,`\\rVert`),N(P,I,R,`=`,`=`),N(P,I,R,`:`,`:`),N(P,I,R,`≈`,`\\approx`,!0),N(P,I,R,`≅`,`\\cong`,!0),N(P,I,R,`≥`,`\\ge`),N(P,I,R,`≥`,`\\geq`,!0),N(P,I,R,`←`,`\\gets`),N(P,I,R,`>`,`\\gt`,!0),N(P,I,R,`∈`,`\\in`,!0),N(P,I,R,``,`\\@not`),N(P,I,R,`⊂`,`\\subset`,!0),N(P,I,R,`⊃`,`\\supset`,!0),N(P,I,R,`⊆`,`\\subseteq`,!0),N(P,I,R,`⊇`,`\\supseteq`,!0),N(P,L,R,`⊈`,`\\nsubseteq`,!0),N(P,L,R,`⊉`,`\\nsupseteq`,!0),N(P,I,R,`⊨`,`\\models`),N(P,I,R,`←`,`\\leftarrow`,!0),N(P,I,R,`≤`,`\\le`),N(P,I,R,`≤`,`\\leq`,!0),N(P,I,R,`<`,`\\lt`,!0),N(P,I,R,`→`,`\\rightarrow`,!0),N(P,I,R,`→`,`\\to`),N(P,L,R,`≱`,`\\ngeq`,!0),N(P,L,R,`≰`,`\\nleq`,!0),N(P,I,Mj,`\xA0`,`\\ `),N(P,I,Mj,`\xA0`,`\\space`),N(P,I,Mj,`\xA0`,`\\nobreakspace`),N(F,I,Mj,`\xA0`,`\\ `),N(F,I,Mj,`\xA0`,` `),N(F,I,Mj,`\xA0`,`\\space`),N(F,I,Mj,`\xA0`,`\\nobreakspace`),N(P,I,Mj,``,`\\nobreak`),N(P,I,Mj,``,`\\allowbreak`),N(P,I,jj,`,`,`,`),N(P,I,jj,`;`,`;`),N(P,L,Tj,`⊼`,`\\barwedge`,!0),N(P,L,Tj,`⊻`,`\\veebar`,!0),N(P,I,Tj,`⊙`,`\\odot`,!0),N(P,I,Tj,`⊕`,`\\oplus`,!0),N(P,I,Tj,`⊗`,`\\otimes`,!0),N(P,I,z,`∂`,`\\partial`,!0),N(P,I,Tj,`⊘`,`\\oslash`,!0),N(P,L,Tj,`⊚`,`\\circledcirc`,!0),N(P,L,Tj,`⊡`,`\\boxdot`,!0),N(P,I,Tj,`△`,`\\bigtriangleup`),N(P,I,Tj,`▽`,`\\bigtriangledown`),N(P,I,Tj,`†`,`\\dagger`),N(P,I,Tj,`⋄`,`\\diamond`),N(P,I,Tj,`⋆`,`\\star`),N(P,I,Tj,`◃`,`\\triangleleft`),N(P,I,Tj,`▹`,`\\triangleright`),N(P,I,Aj,`{`,`\\{`),N(F,I,z,`{`,`\\{`),N(F,I,z,`{`,`\\textbraceleft`),N(P,I,Ej,`}`,`\\}`),N(F,I,z,`}`,`\\}`),N(F,I,z,`}`,`\\textbraceright`),N(P,I,Aj,`{`,`\\lbrace`),N(P,I,Ej,`}`,`\\rbrace`),N(P,I,Aj,`[`,`\\lbrack`,!0),N(F,I,z,`[`,`\\lbrack`,!0),N(P,I,Ej,`]`,`\\rbrack`,!0),N(F,I,z,`]`,`\\rbrack`,!0),N(P,I,Aj,`(`,`\\lparen`,!0),N(P,I,Ej,`)`,`\\rparen`,!0),N(F,I,z,`<`,`\\textless`,!0),N(F,I,z,`>`,`\\textgreater`,!0),N(P,I,Aj,`⌊`,`\\lfloor`,!0),N(P,I,Ej,`⌋`,`\\rfloor`,!0),N(P,I,Aj,`⌈`,`\\lceil`,!0),N(P,I,Ej,`⌉`,`\\rceil`,!0),N(P,I,z,`\\`,`\\backslash`),N(P,I,z,`∣`,`|`),N(P,I,z,`∣`,`\\vert`),N(F,I,z,`|`,`\\textbar`,!0),N(P,I,z,`∥`,`\\|`),N(P,I,z,`∥`,`\\Vert`),N(F,I,z,`∥`,`\\textbardbl`),N(F,I,z,`~`,`\\textasciitilde`),N(F,I,z,`\\`,`\\textbackslash`),N(F,I,z,`^`,`\\textasciicircum`),N(P,I,R,`↑`,`\\uparrow`,!0),N(P,I,R,`⇑`,`\\Uparrow`,!0),N(P,I,R,`↓`,`\\downarrow`,!0),N(P,I,R,`⇓`,`\\Downarrow`,!0),N(P,I,R,`↕`,`\\updownarrow`,!0),N(P,I,R,`⇕`,`\\Updownarrow`,!0),N(P,I,kj,`∐`,`\\coprod`),N(P,I,kj,`⋁`,`\\bigvee`),N(P,I,kj,`⋀`,`\\bigwedge`),N(P,I,kj,`⨄`,`\\biguplus`),N(P,I,kj,`⋂`,`\\bigcap`),N(P,I,kj,`⋃`,`\\bigcup`),N(P,I,kj,`∫`,`\\int`),N(P,I,kj,`∫`,`\\intop`),N(P,I,kj,`∬`,`\\iint`),N(P,I,kj,`∭`,`\\iiint`),N(P,I,kj,`∏`,`\\prod`),N(P,I,kj,`∑`,`\\sum`),N(P,I,kj,`⨂`,`\\bigotimes`),N(P,I,kj,`⨁`,`\\bigoplus`),N(P,I,kj,`⨀`,`\\bigodot`),N(P,I,kj,`∮`,`\\oint`),N(P,I,kj,`∯`,`\\oiint`),N(P,I,kj,`∰`,`\\oiiint`),N(P,I,kj,`⨆`,`\\bigsqcup`),N(P,I,kj,`∫`,`\\smallint`),N(F,I,Dj,`…`,`\\textellipsis`),N(P,I,Dj,`…`,`\\mathellipsis`),N(F,I,Dj,`…`,`\\ldots`,!0),N(P,I,Dj,`…`,`\\ldots`,!0),N(P,I,Dj,`⋯`,`\\@cdots`,!0),N(P,I,Dj,`⋱`,`\\ddots`,!0),N(P,I,z,`⋮`,`\\varvdots`),N(F,I,z,`⋮`,`\\varvdots`),N(P,I,wj,`ˊ`,`\\acute`),N(P,I,wj,`ˋ`,`\\grave`),N(P,I,wj,`¨`,`\\ddot`),N(P,I,wj,`~`,`\\tilde`),N(P,I,wj,`ˉ`,`\\bar`),N(P,I,wj,`˘`,`\\breve`),N(P,I,wj,`ˇ`,`\\check`),N(P,I,wj,`^`,`\\hat`),N(P,I,wj,`⃗`,`\\vec`),N(P,I,wj,`˙`,`\\dot`),N(P,I,wj,`˚`,`\\mathring`),N(P,I,Oj,``,`\\@imath`),N(P,I,Oj,``,`\\@jmath`),N(P,I,z,`ı`,`ı`),N(P,I,z,`ȷ`,`ȷ`),N(F,I,z,`ı`,`\\i`,!0),N(F,I,z,`ȷ`,`\\j`,!0),N(F,I,z,`ß`,`\\ss`,!0),N(F,I,z,`æ`,`\\ae`,!0),N(F,I,z,`œ`,`\\oe`,!0),N(F,I,z,`ø`,`\\o`,!0),N(F,I,z,`Æ`,`\\AE`,!0),N(F,I,z,`Œ`,`\\OE`,!0),N(F,I,z,`Ø`,`\\O`,!0),N(F,I,wj,`ˊ`,`\\'`),N(F,I,wj,`ˋ`,"\\`"),N(F,I,wj,`ˆ`,`\\^`),N(F,I,wj,`˜`,`\\~`),N(F,I,wj,`ˉ`,`\\=`),N(F,I,wj,`˘`,`\\u`),N(F,I,wj,`˙`,`\\.`),N(F,I,wj,`¸`,`\\c`),N(F,I,wj,`˚`,`\\r`),N(F,I,wj,`ˇ`,`\\v`),N(F,I,wj,`¨`,`\\"`),N(F,I,wj,`˝`,`\\H`),N(F,I,wj,`◯`,`\\textcircled`);var Nj={"--":!0,"---":!0,"``":!0,"''":!0};N(F,I,z,`–`,`--`,!0),N(F,I,z,`–`,`\\textendash`),N(F,I,z,`—`,`---`,!0),N(F,I,z,`—`,`\\textemdash`),N(F,I,z,`‘`,"`",!0),N(F,I,z,`‘`,`\\textquoteleft`),N(F,I,z,`’`,`'`,!0),N(F,I,z,`’`,`\\textquoteright`),N(F,I,z,`“`,"``",!0),N(F,I,z,`“`,`\\textquotedblleft`),N(F,I,z,`”`,`''`,!0),N(F,I,z,`”`,`\\textquotedblright`),N(P,I,z,`°`,`\\degree`,!0),N(F,I,z,`°`,`\\degree`),N(F,I,z,`°`,`\\textdegree`,!0),N(P,I,z,`£`,`\\pounds`),N(P,I,z,`£`,`\\mathsterling`,!0),N(F,I,z,`£`,`\\pounds`),N(F,I,z,`£`,`\\textsterling`,!0),N(P,L,z,`✠`,`\\maltese`),N(F,L,z,`✠`,`\\maltese`);for(var Pj=`0123456789/@."`,Fj=0;Fj<Pj.length;Fj++){var Ij=Pj.charAt(Fj);N(P,I,z,Ij,Ij)}for(var Lj=`0123456789!@*()-=+";:?/.,`,Rj=0;Rj<Lj.length;Rj++){var zj=Lj.charAt(Rj);N(F,I,z,zj,zj)}for(var Bj=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Vj=0;Vj<Bj.length;Vj++){var Hj=Bj.charAt(Vj);N(P,I,Oj,Hj,Hj),N(F,I,z,Hj,Hj)}N(P,L,z,`C`,`ℂ`),N(F,L,z,`C`,`ℂ`),N(P,L,z,`H`,`ℍ`),N(F,L,z,`H`,`ℍ`),N(P,L,z,`N`,`ℕ`),N(F,L,z,`N`,`ℕ`),N(P,L,z,`P`,`ℙ`),N(F,L,z,`P`,`ℙ`),N(P,L,z,`Q`,`ℚ`),N(F,L,z,`Q`,`ℚ`),N(P,L,z,`R`,`ℝ`),N(F,L,z,`R`,`ℝ`),N(P,L,z,`Z`,`ℤ`),N(F,L,z,`Z`,`ℤ`),N(P,I,Oj,`h`,`ℎ`),N(F,I,Oj,`h`,`ℎ`);for(var Uj,Wj=0;Wj<Bj.length;Wj++){var Gj=Bj.charAt(Wj);Uj=String.fromCharCode(55349,56320+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56372+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56424+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56580+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56684+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56736+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56788+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56840+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56944+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Wj<26&&(Uj=String.fromCharCode(55349,56632+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj),Uj=String.fromCharCode(55349,56476+Wj),N(P,I,Oj,Gj,Uj),N(F,I,z,Gj,Uj))}Uj=String.fromCharCode(55349,56668),N(P,I,Oj,`k`,Uj),N(F,I,z,`k`,Uj);for(var Kj=0;Kj<10;Kj++){var qj=Kj.toString();Uj=String.fromCharCode(55349,57294+Kj),N(P,I,Oj,qj,Uj),N(F,I,z,qj,Uj),Uj=String.fromCharCode(55349,57314+Kj),N(P,I,Oj,qj,Uj),N(F,I,z,qj,Uj),Uj=String.fromCharCode(55349,57324+Kj),N(P,I,Oj,qj,Uj),N(F,I,z,qj,Uj),Uj=String.fromCharCode(55349,57334+Kj),N(P,I,Oj,qj,Uj),N(F,I,z,qj,Uj)}for(var Jj=`ÐÞþ`,Yj=0;Yj<Jj.length;Yj++){var Xj=Jj.charAt(Yj);N(P,I,Oj,Xj,Xj),N(F,I,z,Xj,Xj)}var Zj={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Qj={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},$j={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},eM={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},tM={mathClass:``,textClass:``,font:``},nM={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},rM={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},iM={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},aM={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},oM={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},sM={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},cM={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},lM=[Zj,Zj,Qj,Qj,$j,$j,eM,tM,tM,tM,nM,nM,rM,rM,iM,iM,aM,aM,oM,oM,sM,sM,tM,tM,cM,cM],uM=[Zj,tM,aM,oM,cM],dM=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return lM[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return uM[Math.floor((r-120782)/10)];if(r===120485||r===120486)return lM[0];if(120486<r&&r<120782)return tM;throw new M(`Unsupported character: `+e)},fM=function(e,t,n){if(Cj[n][e]){var r=Cj[n][e].replace;r&&(e=r)}return{value:e,metrics:xj(e,t,n)}},pM=function(e,t,n,r,i){var a=fM(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new mj(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new mj(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},mM=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&fM(e,`Main-Bold`,t).metrics?pM(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Cj[t][e].font===`main`?pM(e,`Main-Regular`,t,n,r):pM(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},hM=function(e,t,n){return n!==`textord`&&fM(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},gM=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=dM(i);f=m.font,p=m[r+`Class`]}if(f)return pM(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=hM(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=kM[o].fontName,g=[o]):(h=OM(s,c,l),g=[s,c,l]);if(fM(i,h,r).metrics)return pM(i,h,r,t,a.concat(g));if(Nj.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(pM(i[y],h,r,t,a.concat(g)));return CM(v)}}if(n===`mathord`)return pM(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Cj[r][i]&&Cj[r][i].font;if(b===`ams`)return pM(i,OM(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return pM(i,OM(`textrm`,c,l),r,t,a.concat(c,l));var x=OM(b,c,l);return pM(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},_M=(e,t)=>{if(sj(e.classes)!==sj(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},vM=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof mj&&r instanceof mj&&_M(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},yM=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},B=function(e,t,n,r){var i=new fj(e,t,n,r);return yM(i),i},bM=(e,t,n,r)=>new fj(e,t,n,r),xM=function(e,t,n){var r=B([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=oj(r.height),r.maxFontSize=1,r},SM=function(e,t,n,r){var i=new pj(e,t,n,r);return yM(i),i},CM=function(e){var t=new nj(e);return yM(t),t},wM=function(e,t){return e instanceof nj?B([],[e],t):e},TM=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},EM=function(e,t){for(var{children:n,depth:r}=TM(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=B([`pstrut`],[]);c.style.height=oj(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=B(g,[c,h],void 0,_);v.style.top=oj(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=B([`vlist`],l);y.style.height=oj(d);var b;if(u<0){var x=B([`vlist`],[B([],[])]);x.style.height=oj(-u),b=[B([`vlist-r`],[y,B([`vlist-s`],[new mj(``)])]),B([`vlist-r`],[x])]}else b=[B([`vlist-r`],[y])];var S=B([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},DM=(e,t)=>{var n=B([`mspace`],[],t),r=aj(e,t);return n.style.marginRight=oj(r),n},OM=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},kM={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},AM={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},jM=function(e,t){var[n,r,i]=AM[e],a=bM([`overlay`],[new hj([new gj(n)],{width:oj(r),height:oj(i),style:`width:`+oj(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=oj(i),a.style.width=oj(r),a},MM={number:3,unit:`mu`},NM={number:4,unit:`mu`},PM={number:5,unit:`mu`},FM={mord:{mop:MM,mbin:NM,mrel:PM,minner:MM},mop:{mord:MM,mop:MM,mrel:PM,minner:MM},mbin:{mord:NM,mop:NM,mopen:NM,minner:NM},mrel:{mord:PM,mop:PM,mopen:PM,minner:PM},mopen:{},mclose:{mop:MM,mbin:NM,mrel:PM,minner:MM},mpunct:{mord:MM,mop:MM,mrel:PM,mopen:MM,mclose:MM,mpunct:MM,minner:MM},minner:{mord:MM,mop:MM,mbin:NM,mrel:PM,mopen:MM,mpunct:MM,minner:MM}},IM={mord:{mop:MM},mop:{mord:MM,mop:MM},mbin:{},mrel:{},mopen:{},mclose:{mop:MM},mpunct:{},minner:{mop:MM}},LM={},RM={},zM={};function BM(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)LM[n[c]]=s;t&&(a&&(RM[t]=a),o&&(zM[t]=o))}function VM(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;BM({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var HM=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},UM=function(e){return e.type===`ordgroup`?e.body:[e]},WM=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),GM=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),KM={display:YA.DISPLAY,text:YA.TEXT,script:YA.SCRIPT,scriptscript:YA.SCRIPTSCRIPT},qM={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},JM=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=eN(e[a],t);if(o instanceof nj){var s=o.children;i.push(...s)}else i.push(o)}if(vM(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(KM[l.style]))}var u=B([r[0]||`leftmost`],[],t),d=B([r[1]||`rightmost`],[],t),f=n===`root`;return YM(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&GM.has(r)?t.classes[0]=`mord`:r===`mbin`&&WM.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),YM(i,(e,t)=>{var n=QM(t),r=QM(e),i=n&&r?e.hasClass(`mtight`)?IM[n]?.[r]:FM[n]?.[r]:null;if(i)return DM(i,c)},{node:u},d,f),i},YM=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=XM(o);if(s){YM(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=B([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},XM=function(e){return e instanceof nj||e instanceof pj||e instanceof fj&&e.hasClass(`enclosing`)?e:null},ZM=function(e,t){var n=XM(e);if(n){var r=n.children;if(r.length){if(t===`right`)return ZM(r[r.length-1],`right`);if(t===`left`)return ZM(r[0],`left`)}}return e},QM=function(e,t){return e?(t&&(e=ZM(e,t)),qM[e.classes[0]]||null):null},$M=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return B(t.concat(n))},eN=function(e,t,n){if(!e)return B();if(RM[e.type]){var r=RM[e.type](e,t);if(n&&t.size!==n.size){r=B(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new M(`Got group of unknown type: '`+e.type+`'`)};function tN(e,t){var n=B([`base`],e,t),r=B([`strut`]);return r.style.height=oj(n.height+n.depth),n.depth&&(r.style.verticalAlign=oj(-n.depth)),n.children.unshift(r),n}function nN(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=JM(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(tN(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(tN(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(tN(o,t));var l;n?(l=tN(JM(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=B([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=oj(u.height+u.depth),u.depth&&(d.style.verticalAlign=oj(-u.depth))}return u}function rN(e){return new nj(e)}var V=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=sj(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof iN&&this.children[n+1]instanceof iN){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof iN;)r+=this.children[++n].toText();e.appendChild(new iN(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=PA(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+PA(sj(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},iN=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return PA(this.toText())}toText(){return this.text}},aN=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,oj(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+oj(this.width)+`"/>`}toText(){return this.character?this.character:` `}},oN=new Set([`\\imath`,`\\jmath`]),sN=new Set([`mrow`,`mtable`]),cN=function(e,t,n){return Cj[t][e]&&Cj[t][e].replace&&e.charCodeAt(0)!==55349&&!(Nj.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Cj[t][e].replace),new iN(e)},lN=function(e){return e.length===1?e[0]:new V(`mrow`,e)},uN={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},dN=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=uN[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(oN.has(a))return null;if(Cj[r][a]){var o=Cj[r][a].replace;o&&(a=o)}var s=kM[n].fontName;return xj(a,s,r)?kM[n].variant:null};function fN(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof iN&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof iN&&n.text===`,`}else return!1}var pN=function(e,t,n){if(e.length===1){var r=hN(e[0],t);return n&&r instanceof V&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=hN(e[o],t);if(s instanceof V&&a instanceof V){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(fN(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&fN(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||fN(a))){var c=s.children[0];c instanceof V&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof iN&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof iN&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},mN=function(e,t,n){return lN(pN(e,t,n))},hN=function(e,t){if(!e)return new V(`mrow`);if(zM[e.type])return zM[e.type](e,t);throw new M(`Got group of unknown type: '`+e.type+`'`)};function gN(e,t,n,r,i){var a=pN(e,n),o=a.length===1&&a[0]instanceof V&&sN.has(a[0].type)?a[0]:new V(`mrow`,a),s=new V(`annotation`,[new iN(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new V(`math`,[new V(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),B([i?`katex`:`katex-mathml`],[c])}var _N=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],vN=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],yN=function(e,t){return t.size<2?e:_N[e-1][t.size-1]},bN=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=vN[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:yN(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:vN[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=yN(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=iue(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};bN.BASESIZE=6;var xN=function(e){return new bN({style:e.displayMode?YA.DISPLAY:YA.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},SN=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=B(n,[e])}return e},CN=function(e,t,n){var r=xN(n),i;return n.output===`mathml`?gN(e,t,r,n.displayMode,!0):(i=n.output===`html`?B([`katex`],[nN(e,r)]):B([`katex`],[gN(e,t,r,n.displayMode,!1),nN(e,r)]),SN(i,n))},wN=function(e,t,n){return SN(B([`katex`],[nN(e,xN(n))]),n)},TN={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},EN=function(e){var t=new V(`mo`,[new iN(TN[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},DN={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},ON=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),kN=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(ON.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:bM([],[new hj([new gj(o)],{width:`100%`,height:oj(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=DN[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
310
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new hj([new gj(d[v])],{width:`400em`,height:oj(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=bM([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=oj(m),l.push(b)}return{span:B([`stretchy`],l,t),minWidth:f,height:m}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=oj(a),i>0&&(r.style.minWidth=oj(i)),r},AN=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=B([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new _j({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new _j({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=bM([],[new hj(c,{width:`100%`,height:oj(o)})],i)}return a.height=o,a.style.height=oj(o),a},jN={bin:1,close:1,inner:1,open:1,punct:1,rel:1},MN={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function NN(e){return e in jN}function PN(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function FN(e){var t=IN(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function IN(e){return e&&(e.type===`atom`||MN.hasOwnProperty(e.type))?e:null}var LN=e=>{if(e instanceof mj)return e;if(nue(e)&&e.children.length===1)return LN(e.children[0])},RN=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=PN(e.base,`accent`),n=r.base,e.base=n,i=tue(eN(e,t)),e.base=r):(r=PN(e,`accent`),n=r.base);var a=eN(n,t.havingCrampedStyle()),o=r.isShifty&&IA(n),s=0;o&&(s=LN(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=kN(r,t),u=EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+oj(2*s)+`)`,marginLeft:oj(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=jM(`vec`,t),f=AM.vec[1]):(d=gM({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=eue(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=B([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=oj(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=B([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},zN=(e,t)=>{var n=e.isStretchy?EN(e.label):new V(`mo`,[cN(e.label,e.mode)]),r=new V(`mover`,[hN(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},BN=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));BM({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=HM(t[0]),r=!BN.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:RN,mathmlBuilder:zN}),BM({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:RN,mathmlBuilder:zN}),BM({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=eN(e.base,t),r=kN(e,t),i=e.label===`\\utilde`?.12:0;return B([`mord`,`accentunder`],[EM({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=EN(e.label),r=new V(`munder`,[hN(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var VN=e=>{var t=new V(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};BM({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=wM(eN(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=wM(eN(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=kN(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=EM({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=EM({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return B([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=EN(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=VN(hN(e.body,t));r=e.below?new V(`munderover`,[n,VN(hN(e.below,t)),i]):new V(`mover`,[n,i])}else e.below?r=new V(`munder`,[n,VN(hN(e.below,t))]):(r=VN(),r=new V(`mover`,[n,r]));return r}});function HN(e,t){var n=JM(e.body,t,!0);return B([e.mclass],n,t)}function UN(e,t){var n,r=pN(e.body,t);return e.mclass===`minner`?n=new V(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new V(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new V(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}BM({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:UM(i),isCharacterBox:IA(i)}},htmlBuilder:HN,mathmlBuilder:UN});var WN=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};BM({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:WN(t[0]),body:UM(t[1]),isCharacterBox:IA(t[1])}}}),BM({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:WN(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:UM(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:IA(c)}},htmlBuilder:HN,mathmlBuilder:UN}),BM({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:WN(t[0]),body:UM(t[0])}},htmlBuilder(e,t){var n=JM(e.body,t,!0),r=B([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new V(`mstyle`,pN(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var GN={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},KN=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),qN=e=>e.type===`textord`&&e.text===`@`,JN=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function YN(e,t,n){var r=GN[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function XN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new M(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=KN(),c=0;c<o.length;c++)if(!qN(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=FN(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(JN(o[p],l)){f=!1,c=p;break}if(qN(o[p]))throw new M(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new M(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new M(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[YN(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=KN()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}BM({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=wM(eN(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=oj(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new V(`mrow`,[hN(e.label,t)]);return n=new V(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new V(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),BM({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=wM(eN(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new V(`mrow`,[hN(e.fragment,t)])}}),BM({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=PN(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=PN(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new M(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new M(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var ZN=(e,t)=>CM(JM(e.body,t.withColor(e.color),!1)),QN=(e,t)=>{var n=new V(`mstyle`,pN(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};BM({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=PN(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:UM(i)}},htmlBuilder:ZN,mathmlBuilder:QN}),BM({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=PN(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:ZN,mathmlBuilder:QN}),BM({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&PN(i,`size`).value}},htmlBuilder(e,t){var n=B([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=oj(aj(e.size,t)))),n},mathmlBuilder(e,t){var n=new V(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,oj(aj(e.size,t)))),n}});var $N={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},eP=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new M(`Expected a control sequence`,e);return t},tP=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},nP=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};BM({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if($N[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=$N[r.text]),PN(t.parseFunction(),`internal`);throw new M(`Invalid token after macro prefix`,r)}}),BM({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new M(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new M(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new M(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new M(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===$N[n]),{type:`internal`,mode:t.mode}}}),BM({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=eP(t.gullet.popToken());return t.gullet.consumeSpaces(),nP(t,r,tP(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),BM({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=eP(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return nP(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var rP=function(e,t,n){var r=xj(Cj.math[e]&&Cj.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},iP=function(e,t,n,r){var i=n.havingBaseStyle(t),a=B(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},aP=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=oj(i),e.height-=i,e.depth+=i},oP=function(e,t,n,r,i,a){var o=iP(pM(e,`Main-Regular`,i,r),t,r,a);return n&&aP(o,r,t),o},sP=function(e,t,n,r){return pM(e,`Size`+t+`-Regular`,n,r)},cP=function(e,t,n,r,i,a){var o=sP(e,t,i,r),s=iP(B([`delimsizing`,`size`+t],[o],r),YA.TEXT,r,a);return n&&aP(s,r,YA.TEXT),s},lP=function(e,t,n){return{type:`elem`,elem:B([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[B([],[pM(e,t,n)])])}},uP=function(e,t,n){var r=vj[`Size4-Regular`][e.charCodeAt(0)]?vj[`Size4-Regular`][e.charCodeAt(0)][4]:vj[`Size1-Regular`][e.charCodeAt(0)][4],i=bM([],[new hj([new gj(`inner`,qle(e,Math.round(1e3*t)))],{width:oj(r),height:oj(t),style:`width:`+oj(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=oj(t),i.style.width=oj(r),{type:`elem`,elem:i}},dP=.008,fP={type:`kern`,size:-1*dP},pP=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),mP=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),hP=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):pP.has(e)?(c=`∣`,u=`vert`,d=333):mP.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=rP(o,f,i),m=p.height+p.depth,h=rP(c,f,i),g=h.height+h.depth,_=rP(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=rP(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var D=C-m-v,ee=Math.round(C*1e3),te=Jle(u,Math.round(D*1e3)),ne=new gj(u,te),re=oj(d/1e3),ie=oj(ee/1e3),ae=bM([],[new hj([ne],{width:re,height:ie,viewBox:`0 0 `+d+` `+ee})],r);ae.height=ee/1e3,ae.style.width=re,ae.style.height=ie,E.push({type:`elem`,elem:ae})}else{if(E.push(lP(l,f,i)),E.push(fP),s===null){var oe=C-m-v+2*dP;E.push(uP(c,oe,r))}else{var se=(C-m-v-y)/2+2*dP;E.push(uP(c,se,r)),E.push(fP),E.push(lP(s,f,i)),E.push(fP),E.push(uP(c,se,r))}E.push(fP),E.push(lP(o,f,i))}var O=r.havingBaseStyle(YA.TEXT);return iP(B([`delimsizing`,`mult`],[EM({positionType:`bottom`,positionData:T,children:E})],O),YA.TEXT,r,a)},gP=80,_P=.08,vP=function(e,t,n,r,i){return bM([`hide-tail`],[new hj([new gj(e,Kle(e,r,n))],{width:`400em`,height:oj(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},yP=function(e,t){var n=t.havingBaseSizing(),r=kP(`\\surd`,e*n.sizeMultiplier,DP,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+gP,e<1?i=1:e<1.4&&(i=.7),s=(1+a+_P)/i,c=(1+a)/i,o=vP(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+gP)*CP[r.size],c=(CP[r.size]+a)/i,s=(CP[r.size]+a+_P)/i,o=vP(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+_P,c=e+a,l=Math.floor(1e3*e+a)+gP,o=vP(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=oj(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},bP=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),xP=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),SP=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),CP=[0,1.2,1.8,2.4,3],wP=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),bP.has(e)||SP.has(e))return cP(e,t,!1,n,r,i);if(xP.has(e))return hP(e,CP[t],!1,n,r,i);throw new M(`Illegal delimiter: '`+e+`'`)},TP=[{type:`small`,style:YA.SCRIPTSCRIPT},{type:`small`,style:YA.SCRIPT},{type:`small`,style:YA.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],EP=[{type:`small`,style:YA.SCRIPTSCRIPT},{type:`small`,style:YA.SCRIPT},{type:`small`,style:YA.TEXT},{type:`stack`}],DP=[{type:`small`,style:YA.SCRIPTSCRIPT},{type:`small`,style:YA.SCRIPT},{type:`small`,style:YA.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],OP=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},kP=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=rP(e,OP(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},AP=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=SP.has(e)?TP:bP.has(e)?DP:EP,s=kP(e,t,o,r);return s.type===`small`?oP(e,s.style,n,r,i,a):s.type===`large`?cP(e,s.size,n,r,i,a):hP(e,t,n,r,i,a)},jP=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return AP(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},MP={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},NP=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function PP(e){return`isMiddle`in e}function FP(e,t){var n=IN(e);if(n&&NP.has(n.text))return n;throw n?new M(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new M(`Invalid delimiter type '`+e.type+`'`,e)}BM({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=FP(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:MP[e.funcName].size,mclass:MP[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?B([e.mclass]):wP(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(cN(e.delim,e.mode));var n=new V(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=oj(CP[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function IP(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}BM({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new M(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:FP(t[0],e).text,color:n}}}),BM({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=FP(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=PN(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{IP(e);for(var n=JM(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];PP(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?$M(t,[`mopen`]):jP(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(PP(u)){var d=u.isMiddle;n[l]=jP(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=$M(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=jP(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),B([`minner`],n,t)},mathmlBuilder:(e,t)=>{IP(e);var n=pN(e.body,t);if(e.left!==`.`){var r=new V(`mo`,[cN(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new V(`mo`,[cN(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return lN(n)}}),BM({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=FP(t[0],e);if(!e.parser.leftrightDepth)throw new M(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=$M(t,[]):(n=wP(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new V(`mo`,[e.delim===`\\vert`||e.delim===`|`?cN(`|`,`text`):cN(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var LP=(e,t)=>{var n=wM(eN(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=IA(e.body);if(r===`sout`)a=B([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=aj({number:.6,unit:`pt`},t),l=aj({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=oj(d/2+c);var f=Math.floor(1e3*d*i);a=bM([`hide-tail`],[new hj([new gj(`phase`,Wle(f))],{width:`400em`,height:oj(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=oj(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=AN(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=oj(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=oj(h),a.style.borderRightWidth=oj(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=EM({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=EM({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?B([`mord`,`cancel-lap`],[g],t):B([`mord`],[g],t)},RP=(e,t)=>{var n,r=new V(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[hN(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+oj(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};BM({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=PN(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:LP,mathmlBuilder:RP}),BM({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=PN(t[0],`color-token`).color,o=PN(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:LP,mathmlBuilder:RP}),BM({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),BM({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:LP,mathmlBuilder:RP}),BM({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:LP,mathmlBuilder:RP}),BM({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var zP={};function BP(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)zP[n[c]]=s;a&&(RM[t]=a),o&&(zM[t]=o)}var VP={};function H(e,t){VP[e]=t}var HP=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},UP=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,HP.range(this,t))}};function WP(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var GP=e=>{if(!e.parser.settings.displayMode)throw new M(`{`+e.envName+`} can be used only in display mode.`)},KP=new Set([`gather`,`gather*`]);function qP(e){if(!e.includes(`ed`))return!e.includes(`*`)}function JP(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new M(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new UP(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(WP(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new M(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(WP(e)),m=[],h.push(m),y()}else throw new M(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function YP(e){return e.slice(0,1)===`d`?`display`:`text`}var XP=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(YA.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?aj({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=eN(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=aj(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,D=e.cols||[],ee=[],te,ne,re=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ie=s[n],ae=ie.pos-E,oe=e.tags[n],se=void 0;se=oe===!0?B([`eqn-num`],[],t):oe===!1?B([],[],t):B([],JM(oe,t,!0),t),se.depth=ie.depth,se.height=ie.height,re.push({type:`elem`,elem:se,shift:ae})}for(r=0,ne=0;r<o||ne<D.length;++r,++ne){for(var O=D[ne],ce=!0;(le=O)?.type===`separator`;){var le;if(ce||(te=B([`arraycolsep`],[]),te.style.width=oj(t.fontMetrics().doubleRuleSep),ee.push(te)),O.separator===`|`||O.separator===`:`){var ue=O.separator===`|`?`solid`:`dashed`,de=B([`vertical-separator`],[],t);de.style.height=oj(_),de.style.borderRightWidth=oj(l),de.style.borderRightStyle=ue,de.style.margin=`0 `+oj(-l/2);var fe=_-E;fe&&(de.style.verticalAlign=oj(-fe)),ee.push(de)}else throw new M(`Invalid separator type: `+O.separator);ne++,O=D[ne],ce=!1}if(!(r>=o)){var pe=void 0;(r>0||e.hskipBeforeAndAfter)&&(pe=O?.pregap??d,pe!==0&&(te=B([`arraycolsep`],[]),te.style.width=oj(pe),ee.push(te)));var me=[];for(n=0;n<i;++n){var he=s[n],ge=he.cells[r];if(ge){var _e=he.pos-E;ge.depth=he.depth,ge.height=he.height,me.push({type:`elem`,elem:ge,shift:_e})}}var ve=EM({positionType:`individualShift`,children:me}),ye=B([`col-align-`+(O?.align||`c`)],[ve]);ee.push(ye),(r<o-1||e.hskipBeforeAndAfter)&&(pe=O?.postgap??d,pe!==0&&(te=B([`arraycolsep`],[]),te.style.width=oj(pe),ee.push(te)))}}var be=B([`mtable`],ee);if(c.length>0){for(var xe=xM(`hline`,t,l),Se=xM(`hdashline`,t,l),Ce=[{type:`elem`,elem:be,shift:0}];c.length>0;){var we=c.pop(),Te=we.pos-E;we.isDashed?Ce.push({type:`elem`,elem:Se,shift:Te}):Ce.push({type:`elem`,elem:xe,shift:Te})}be=EM({positionType:`individualShift`,children:Ce})}if(re.length===0)return B([`mord`],[be],t);var Ee=B([`tag`],[EM({positionType:`individualShift`,children:re})],t);return CM([be,Ee])},ZP={c:`center `,l:`left `,r:`right `},QP=function(e,t){for(var n=[],r=new V(`mtd`,[],[`mtr-glue`]),i=new V(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new V(`mtd`,[hN(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new V(`mtr`,s))}var l=new V(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,oj(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=ZP[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new V(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new V(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},$P=function(e,t){e.envName.includes(`ed`)||GP(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=JP(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:qP(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=PN(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)PN(PN(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new M(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};BP({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(IN(t[0])?[t[0]]:PN(t[0],`ordgroup`).body).map(function(e){var t=FN(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new M(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return JP(e.parser,r,YP(e.envName))},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new M(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=JP(e.parser,r,YP(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=JP(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(IN(t[0])?[t[0]]:PN(t[0],`ordgroup`).body).map(function(e){var t=FN(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new M(`Unknown column alignment: `+t,e)});if(n.length>1)throw new M(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=JP(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new M(`{subarray} can contain only one column`);return i},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=JP(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},YP(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:$P,htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){KP.has(e.envName)&&GP(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:qP(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return JP(e.parser,t,`display`)},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:$P,htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){GP(e);var t={autoTag:qP(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return JP(e.parser,t,`display`)},htmlBuilder:XP,mathmlBuilder:QP}),BP({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return GP(e),XN(e.parser)},htmlBuilder:XP,mathmlBuilder:QP}),H(`\\nonumber`,`\\gdef\\@eqnsw{0}`),H(`\\notag`,`\\nonumber`),BM({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new M(e.funcName+` valid only within array environment`)}});var eF=zP;BM({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new M(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=PN(i.body[o],`textord`).text;if(r===`\\begin`){if(!eF.hasOwnProperty(a))throw new M(`No such environment: `+a,i);var s=eF[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=PN(n.parseFunction(),`environment`);if(p.name!==a)throw new M(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var tF=(e,t)=>{var n=e.font,r=t.withFont(n);return eN(e.body,r)},nF=(e,t)=>{var n=e.font,r=t.withFont(n);return hN(e.body,r)},rF={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};BM({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=HM(t[0]),a=r;return a in rF&&(a=rF[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:tF,mathmlBuilder:nF}),BM({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:WN(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:IA(r)}}}),BM({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:tF,mathmlBuilder:nF});var iF=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=eN(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=eN(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=aj(e.barSize,t),u=xM(`frac-line`,t,d)):u=xM(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===YA.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=EM({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=EM({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===YA.DISPLAY.size?t.fontMetrics().delim1:n.size===YA.SCRIPTSCRIPT.size?t.havingStyle(YA.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?$M(t,[`mopen`]):AP(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?B([]):e.rightDelim==null?$M(t,[`mclose`]):AP(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return B([`mord`].concat(a.sizingClasses(t)),[x,B([`mfrac`],[g]),S],t)},aF=(e,t)=>{var n=new V(`mfrac`,[hN(e.numer,t),hN(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=aj(e.barSize,t);n.setAttribute(`linethickness`,oj(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new V(`mo`,[new iN(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new V(`mo`,[new iN(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return lN(i)}return n},oF=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;BM({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),oF({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:iF,mathmlBuilder:aF}),BM({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var sF=[`display`,`text`,`script`,`scriptscript`],cF=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};BM({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=HM(t[0]),o=a.type===`atom`&&a.family===`open`?cF(a.text):null,s=HM(t[1]),c=s.type===`atom`&&s.family===`close`?cF(s.text):null,l=PN(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=PN(p.body[0],`textord`);f=sF[Number(m.text)]}}else p=PN(p,`textord`),f=sF[Number(p.text)];return oF({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),BM({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:PN(t[0],`size`).value,token:i}}}),BM({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=PN(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var lF=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?eN(e.sup,t.havingStyle(n.sup()),t):eN(e.sub,t.havingStyle(n.sub()),t),i=PN(e.base,`horizBrace`)):i=PN(e,`horizBrace`);var a=eN(i.base,t.havingBaseStyle(YA.DISPLAY)),o=kN(i,t),s=i.isOver?EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):EM({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=B([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):EM({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return B([`minner`,i.isOver?`mover`:`munder`],[s],t)};BM({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:lF,mathmlBuilder:(e,t)=>{var n=EN(e.label);return new V(e.isOver?`mover`:`munder`,[hN(e.base,t),n])}}),BM({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=PN(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:UM(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=JM(e.body,t,!1);return SM(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=mN(e.body,t);return n instanceof V||(n=new V(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),BM({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=PN(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:UM(s)}}}),BM({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:UM(t[0])}},htmlBuilder(e,t){return CM(JM(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new V(`mrow`,pN(e.body,t.withFont(``)))}}),BM({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=PN(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new M(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:UM(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=JM(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=B(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>mN(e.body,t)}),BM({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:UM(t[0]),mathml:UM(t[1])}},htmlBuilder:(e,t)=>CM(JM(e.html,t,!1)),mathmlBuilder:(e,t)=>mN(e.mathml,t)});var uF=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!ij(n))throw new M(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};BM({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=PN(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=uF(d);break;case`height`:a=uF(d);break;case`totalheight`:o=uF(d);break;default:throw new M(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=PN(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=aj(e.height,t),r=0;e.totalheight.number>0&&(r=aj(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=aj(e.width,t));var a={height:oj(n+r)};i>0&&(a.width=oj(i)),r>0&&(a.verticalAlign=oj(-r));var o=new Qle(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new V(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=aj(e.height,t),i=0;if(e.totalheight.number>0&&(i=aj(e.totalheight,t)-r,n.setAttribute(`valign`,oj(-i))),n.setAttribute(`height`,oj(r+i)),e.width.number>0){var a=aj(e.width,t);n.setAttribute(`width`,oj(a))}return n.setAttribute(`src`,e.src),n}}),BM({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=PN(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return DM(e.dimension,t)},mathmlBuilder(e,t){return new aN(aj(e.dimension,t))}}),BM({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=B([],[eN(e.body,t)]),n=B([`inner`],[n],t)):n=B([`inner`],[eN(e.body,t)]);var r=B([`fix`],[]),i=B([e.alignment],[n,r],t),a=B([`strut`]);return a.style.height=oj(i.height+i.depth),i.depth&&(a.style.verticalAlign=oj(-i.depth)),i.children.unshift(a),i=B([`thinbox`],[i],t),B([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new V(`mpadded`,[hN(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),BM({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),BM({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new M(`Mismatched `+e.funcName)}});var dF=(e,t)=>{switch(t.style.size){case YA.DISPLAY.size:return e.display;case YA.TEXT.size:return e.text;case YA.SCRIPT.size:return e.script;case YA.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};BM({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:UM(t[0]),text:UM(t[1]),script:UM(t[2]),scriptscript:UM(t[3])}},htmlBuilder:(e,t)=>CM(JM(dF(e,t),t,!1)),mathmlBuilder:(e,t)=>mN(dF(e,t),t)});var fF=(e,t,n,r,i,a,o)=>{e=B([],[e]);var s=n&&IA(n),c,l;if(t){var u=eN(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=eN(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=EM({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:oj(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:oj(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=EM({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:oj(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=EM({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:oj(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=B([`mspace`],[],r);m.style.marginRight=oj(a),p.unshift(m)}return B([`mop`,`op-limits`],p,r)},pF=new Set([`\\smallint`]),mF=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=PN(e.base,`op`),i=!0):a=PN(e,`op`);var o=t.style,s=!1;o.size===YA.DISPLAY.size&&a.symbol&&!pF.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=pM(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=jM(d+`Size`+(s?`2`:`1`),t);c=EM({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=JM(a.body,t,!0);p.length===1&&p[0]instanceof mj?(c=p[0],c.classes[0]=`mop`):c=B([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(mM(a.name[h],a.mode,t));c=B([`mop`],m,t)}var g=0,_=0;return(c instanceof mj||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?fF(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=oj(g)),c)},hF=(e,t)=>{var n;if(e.symbol)n=new V(`mo`,[cN(e.name,e.mode)]),pF.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new V(`mo`,pN(e.body,t));else{n=new V(`mi`,[new iN(e.name.slice(1))]);var r=new V(`mo`,[cN(``,`text`)]);n=e.parentIsSupSub?new V(`mrow`,[n,r]):rN([n,r])}return n},gF={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};BM({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=gF[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:mF,mathmlBuilder:hF}),BM({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:UM(r)}},htmlBuilder:mF,mathmlBuilder:hF});var _F={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};BM({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:mF,mathmlBuilder:hF}),BM({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:mF,mathmlBuilder:hF}),BM({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=_F[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:mF,mathmlBuilder:hF});var vF=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=PN(e.base,`operatorname`),i=!0):a=PN(e,`operatorname`);var o;if(a.body.length>0){for(var s=JM(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof mj&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=B([`mop`],s,t)}else o=B([`mop`],[],t);return i?fF(o,n,r,t,t.style,0,0):o};BM({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:UM(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:vF,mathmlBuilder:(e,t)=>{for(var n=pN(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof aN))if(a instanceof V)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof iN?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new iN(n.map(e=>e.toText()).join(``))]);var s=new V(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new V(`mo`,[cN(``,`text`)]);return e.parentIsSupSub?new V(`mrow`,[s,c]):rN([s,c])}}),H(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),VM({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?CM(JM(e.body,t,!1)):B([`mord`],JM(e.body,t,!0),t)},mathmlBuilder(e,t){return mN(e.body,t,!0)}}),BM({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=eN(e.body,t.havingCrampedStyle()),r=xM(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return B([`mord`,`overline`],[EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new V(`mo`,[new iN(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new V(`mover`,[hN(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),BM({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:UM(r)}},htmlBuilder:(e,t)=>CM(JM(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new V(`mphantom`,pN(e.body,t))}),H(`\\hphantom`,`\\smash{\\phantom{#1}}`),BM({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>B([`mord`,`rlap`],[B([`inner`],[eN(e.body,t.withPhantom())]),B([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new V(`mpadded`,[new V(`mphantom`,pN(UM(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),BM({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=PN(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=eN(e.body,t);return EM({positionType:`shift`,positionData:-aj(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new V(`mpadded`,[hN(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),BM({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),BM({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=PN(t[0],`size`),o=PN(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&PN(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=B([`mord`,`rule`],[],t),r=aj(e.width,t),i=aj(e.height,t),a=e.shift?aj(e.shift,t):0;return n.style.borderRightWidth=oj(r),n.style.borderTopWidth=oj(i),n.style.bottom=oj(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=aj(e.width,t),r=aj(e.height,t),i=e.shift?aj(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new V(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,oj(n)),o.setAttribute(`height`,oj(r));var s=new V(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,oj(i)):(s.setAttribute(`height`,oj(i)),s.setAttribute(`depth`,oj(-i))),s.setAttribute(`voffset`,oj(i)),s}});function yF(e,t,n){for(var r=JM(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return CM(r)}var bF=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];BM({type:`sizing`,names:bF,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:bF.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return yF(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new V(`mstyle`,pN(e.body,n));return r.setAttribute(`mathsize`,oj(n.sizeMultiplier)),r}}),BM({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&PN(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=FN(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=B([],[eN(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return B([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return B([`mord`],[EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new V(`mpadded`,[hN(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),BM({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=eN(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=wM(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<YA.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=yP(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=oj(c);var d=EM({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(YA.SCRIPTSCRIPT),p=eN(e.index,f,t);return B([`mord`,`sqrt`],[B([`root`],[EM({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return B([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new V(`mroot`,[hN(n,t),hN(r,t)]):new V(`msqrt`,[hN(n,t)])}});var xF={display:YA.DISPLAY,text:YA.TEXT,script:YA.SCRIPT,scriptscript:YA.SCRIPTSCRIPT};function SF(e){return e in xF}BM({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!SF(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=xF[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),yF(e.body,r,t)},mathmlBuilder(e,t){var n=xF[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new V(`mstyle`,pN(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var CF=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===YA.DISPLAY.size||n.alwaysHandleSupSub)?mF:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===YA.DISPLAY.size||n.limits)?vF:null:n.type===`accent`?IA(n.base)?RN:null:n.type===`horizBrace`&&!e.sub===n.isOver?lF:null:null};VM({type:`supsub`,htmlBuilder(e,t){var n=CF(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=eN(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&IA(r);if(i){var p=t.havingStyle(t.style.sup());s=eN(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=eN(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===YA.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=oj(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof mj||y)&&(v=oj(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=EM({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=EM({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=EM({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return B([QM(o,`right`)||`mord`],[o,B([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[hN(e.base,t)];e.sub&&a.push(hN(e.sub,t)),e.sup&&a.push(hN(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===YA.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===YA.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===YA.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===YA.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===YA.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===YA.DISPLAY)?`munder`:`msub`}return new V(o,a)}}),VM({type:`atom`,htmlBuilder(e,t){return mM(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new V(`mo`,[cN(e.text,e.mode)]);if(e.family===`bin`){var r=dN(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var wF={mi:`italic`,mn:`normal`,mtext:`normal`};VM({type:`mathord`,htmlBuilder(e,t){return gM(e,t,`mathord`)},mathmlBuilder(e,t){var n=new V(`mi`,[cN(e.text,e.mode,t)]),r=dN(e,t)||`italic`;return r!==wF[n.type]&&n.setAttribute(`mathvariant`,r),n}}),VM({type:`textord`,htmlBuilder(e,t){return gM(e,t,`textord`)},mathmlBuilder(e,t){var n=cN(e.text,e.mode,t),r=dN(e,t)||`normal`,i=e.mode===`text`?new V(`mtext`,[n]):/[0-9]/.test(e.text)?new V(`mn`,[n]):e.text===`\\prime`?new V(`mo`,[n]):new V(`mi`,[n]);return r!==wF[i.type]&&i.setAttribute(`mathvariant`,r),i}});var TF={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},EF={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};VM({type:`spacing`,htmlBuilder(e,t){if(EF.hasOwnProperty(e.text)){var n=EF[e.text].className||``;if(e.mode===`text`){var r=gM(e,t,`textord`);return r.classes.push(n),r}else return B([`mspace`,n],[mM(e.text,e.mode,t)],t)}else if(TF.hasOwnProperty(e.text))return B([`mspace`,TF[e.text]],[],t);else throw new M(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(EF.hasOwnProperty(e.text))n=new V(`mtext`,[new iN(`\xA0`)]);else if(TF.hasOwnProperty(e.text))return new V(`mspace`);else throw new M(`Unknown type of space "`+e.text+`"`);return n}});var DF=()=>{var e=new V(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};VM({type:`tag`,mathmlBuilder(e,t){var n=new V(`mtable`,[new V(`mtr`,[DF(),new V(`mtd`,[mN(e.body,t)]),DF(),new V(`mtd`,[mN(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var OF={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},kF={"\\textbf":`textbf`,"\\textmd":`textmd`},AF={"\\textit":`textit`,"\\textup":`textup`},jF=(e,t)=>{var n=e.font;return n?OF[n]?t.withTextFontFamily(OF[n]):kF[n]?t.withTextFontWeight(kF[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(AF[n]):t};BM({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:UM(i),font:r}},htmlBuilder(e,t){var n=jF(e,t);return B([`mord`,`text`],JM(e.body,n,!0),n)},mathmlBuilder(e,t){var n=jF(e,t);return mN(e.body,n)}}),BM({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=eN(e.body,t),r=xM(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return B([`mord`,`underline`],[EM({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new V(`mo`,[new iN(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new V(`munder`,[hN(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),BM({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=eN(e.body,t),r=t.fontMetrics().axisHeight;return EM({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new V(`mrow`,[new V(`mpadded`,[hN(e.body,t)],[`vcenter`])])}}),BM({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new M(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=MF(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(pM(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return B([`mord`,`text`].concat(i.sizingClasses(t)),vM(r),i)},mathmlBuilder(e,t){var n=new V(`mtext`,[new iN(MF(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var MF=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),NF=LM,PF=`[ \r
|
|
311
|
+
]`,FF=`\\\\[a-zA-Z@]+`,IF=`\\\\[^\ud800-\udfff]`,LF=`(`+FF+`)`+PF+`*`,RF=`\\\\(
|
|
312
|
+
|[ \r ]+
|
|
313
|
+
?)[ \r ]*`,zF=`[̀-ͯ]`,BF=RegExp(zF+`+$`),VF=`(`+PF+`+)|`+(RF+`|`)+`([!-\\[\\]-‧-豈-]`+(zF+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(zF+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+LF)+(`|`+IF+`)`),HF=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(VF,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new UP(`EOF`,new HP(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new M(`Unexpected character: '`+e[t]+`'`,new UP(e[t],new HP(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
314
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new UP(r,new HP(this,t,this.tokenRegex.lastIndex))}},UF=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},WF=VP;H(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),H(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),H(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),H(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),H(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),H(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),H(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var GF={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};H(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new M("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=GF[t.text],r==null||r>=n)throw new M(`Invalid base-`+n+` digit `+t.text);for(var i;(i=GF[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var KF=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new M(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new M(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new M(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new M(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};H(`\\newcommand`,e=>KF(e,!1,!0,!1)),H(`\\renewcommand`,e=>KF(e,!0,!1,!1)),H(`\\providecommand`,e=>KF(e,!0,!0,!0)),H(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),H(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),H(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),NF[n],Cj.math[n],Cj.text[n]),``}),H(`\\bgroup`,`{`),H(`\\egroup`,`}`),H(`~`,`\\nobreakspace`),H(`\\lq`,"`"),H(`\\rq`,`'`),H(`\\aa`,`\\r a`),H(`\\AA`,`\\r A`),H(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),H(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),H(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),H(`ℬ`,`\\mathscr{B}`),H(`ℰ`,`\\mathscr{E}`),H(`ℱ`,`\\mathscr{F}`),H(`ℋ`,`\\mathscr{H}`),H(`ℐ`,`\\mathscr{I}`),H(`ℒ`,`\\mathscr{L}`),H(`ℳ`,`\\mathscr{M}`),H(`ℛ`,`\\mathscr{R}`),H(`ℭ`,`\\mathfrak{C}`),H(`ℌ`,`\\mathfrak{H}`),H(`ℨ`,`\\mathfrak{Z}`),H(`\\Bbbk`,`\\Bbb{k}`),H(`\\llap`,`\\mathllap{\\textrm{#1}}`),H(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),H(`\\clap`,`\\mathclap{\\textrm{#1}}`),H(`\\mathstrut`,`\\vphantom{(}`),H(`\\underbar`,`\\underline{\\text{#1}}`),H(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),H(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),H(`\\ne`,`\\neq`),H(`≠`,`\\neq`),H(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),H(`∉`,`\\notin`),H(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),H(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),H(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),H(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),H(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),H(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),H(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),H(`⟂`,`\\perp`),H(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),H(`∌`,`\\notni`),H(`⌜`,`\\ulcorner`),H(`⌝`,`\\urcorner`),H(`⌞`,`\\llcorner`),H(`⌟`,`\\lrcorner`),H(`©`,`\\copyright`),H(`®`,`\\textregistered`),H(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),H(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),H(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),H(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),H(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),H(`⋮`,`\\vdots`),H(`\\varGamma`,`\\mathit{\\Gamma}`),H(`\\varDelta`,`\\mathit{\\Delta}`),H(`\\varTheta`,`\\mathit{\\Theta}`),H(`\\varLambda`,`\\mathit{\\Lambda}`),H(`\\varXi`,`\\mathit{\\Xi}`),H(`\\varPi`,`\\mathit{\\Pi}`),H(`\\varSigma`,`\\mathit{\\Sigma}`),H(`\\varUpsilon`,`\\mathit{\\Upsilon}`),H(`\\varPhi`,`\\mathit{\\Phi}`),H(`\\varPsi`,`\\mathit{\\Psi}`),H(`\\varOmega`,`\\mathit{\\Omega}`),H(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),H(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),H(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),H(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),H(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),H(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),H(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),H(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var qF={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},JF=new Set([`bin`,`rel`]);H(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in qF?t=qF[n]:(n.slice(0,4)===`\\not`||n in Cj.math&&JF.has(Cj.math[n].group))&&(t=`\\dotsb`),t});var YF={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};H(`\\dotso`,function(e){return e.future().text in YF?`\\ldots\\,`:`\\ldots`}),H(`\\dotsc`,function(e){var t=e.future().text;return t in YF&&t!==`,`?`\\ldots\\,`:`\\ldots`}),H(`\\cdots`,function(e){return e.future().text in YF?`\\@cdots\\,`:`\\@cdots`}),H(`\\dotsb`,`\\cdots`),H(`\\dotsm`,`\\cdots`),H(`\\dotsi`,`\\!\\cdots`),H(`\\dotsx`,`\\ldots\\,`),H(`\\DOTSI`,`\\relax`),H(`\\DOTSB`,`\\relax`),H(`\\DOTSX`,`\\relax`),H(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),H(`\\,`,`\\tmspace+{3mu}{.1667em}`),H(`\\thinspace`,`\\,`),H(`\\>`,`\\mskip{4mu}`),H(`\\:`,`\\tmspace+{4mu}{.2222em}`),H(`\\medspace`,`\\:`),H(`\\;`,`\\tmspace+{5mu}{.2777em}`),H(`\\thickspace`,`\\;`),H(`\\!`,`\\tmspace-{3mu}{.1667em}`),H(`\\negthinspace`,`\\!`),H(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),H(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),H(`\\enspace`,`\\kern.5em `),H(`\\enskip`,`\\hskip.5em\\relax`),H(`\\quad`,`\\hskip1em\\relax`),H(`\\qquad`,`\\hskip2em\\relax`),H(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),H(`\\tag@paren`,`\\tag@literal{({#1})}`),H(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new M(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),H(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),H(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),H(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),H(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),H(`\\newline`,`\\\\\\relax`),H(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var XF=oj(vj[`Main-Regular`][84][1]-.7*vj[`Main-Regular`][65][1]);H(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+XF+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),H(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+XF+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),H(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),H(`\\@hspace`,`\\hskip #1\\relax`),H(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),H(`\\ordinarycolon`,`:`),H(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),H(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),H(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),H(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),H(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),H(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),H(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),H(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),H(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),H(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),H(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),H(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),H(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),H(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),H(`∷`,`\\dblcolon`),H(`∹`,`\\eqcolon`),H(`≔`,`\\coloneqq`),H(`≕`,`\\eqqcolon`),H(`⩴`,`\\Coloneqq`),H(`\\ratio`,`\\vcentcolon`),H(`\\coloncolon`,`\\dblcolon`),H(`\\colonequals`,`\\coloneqq`),H(`\\coloncolonequals`,`\\Coloneqq`),H(`\\equalscolon`,`\\eqqcolon`),H(`\\equalscoloncolon`,`\\Eqqcolon`),H(`\\colonminus`,`\\coloneq`),H(`\\coloncolonminus`,`\\Coloneq`),H(`\\minuscolon`,`\\eqcolon`),H(`\\minuscoloncolon`,`\\Eqcolon`),H(`\\coloncolonapprox`,`\\Colonapprox`),H(`\\coloncolonsim`,`\\Colonsim`),H(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),H(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),H(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),H(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),H(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),H(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),H(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),H(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),H(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),H(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),H(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),H(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),H(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),H(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),H(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),H(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),H(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),H(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),H(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),H(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),H(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),H(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),H(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),H(`\\imath`,`\\html@mathml{\\@imath}{ı}`),H(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),H(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),H(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),H(`⟦`,`\\llbracket`),H(`⟧`,`\\rrbracket`),H(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),H(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),H(`⦃`,`\\lBrace`),H(`⦄`,`\\rBrace`),H(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),H(`⦵`,`\\minuso`),H(`\\darr`,`\\downarrow`),H(`\\dArr`,`\\Downarrow`),H(`\\Darr`,`\\Downarrow`),H(`\\lang`,`\\langle`),H(`\\rang`,`\\rangle`),H(`\\uarr`,`\\uparrow`),H(`\\uArr`,`\\Uparrow`),H(`\\Uarr`,`\\Uparrow`),H(`\\N`,`\\mathbb{N}`),H(`\\R`,`\\mathbb{R}`),H(`\\Z`,`\\mathbb{Z}`),H(`\\alef`,`\\aleph`),H(`\\alefsym`,`\\aleph`),H(`\\Alpha`,`\\mathrm{A}`),H(`\\Beta`,`\\mathrm{B}`),H(`\\bull`,`\\bullet`),H(`\\Chi`,`\\mathrm{X}`),H(`\\clubs`,`\\clubsuit`),H(`\\cnums`,`\\mathbb{C}`),H(`\\Complex`,`\\mathbb{C}`),H(`\\Dagger`,`\\ddagger`),H(`\\diamonds`,`\\diamondsuit`),H(`\\empty`,`\\emptyset`),H(`\\Epsilon`,`\\mathrm{E}`),H(`\\Eta`,`\\mathrm{H}`),H(`\\exist`,`\\exists`),H(`\\harr`,`\\leftrightarrow`),H(`\\hArr`,`\\Leftrightarrow`),H(`\\Harr`,`\\Leftrightarrow`),H(`\\hearts`,`\\heartsuit`),H(`\\image`,`\\Im`),H(`\\infin`,`\\infty`),H(`\\Iota`,`\\mathrm{I}`),H(`\\isin`,`\\in`),H(`\\Kappa`,`\\mathrm{K}`),H(`\\larr`,`\\leftarrow`),H(`\\lArr`,`\\Leftarrow`),H(`\\Larr`,`\\Leftarrow`),H(`\\lrarr`,`\\leftrightarrow`),H(`\\lrArr`,`\\Leftrightarrow`),H(`\\Lrarr`,`\\Leftrightarrow`),H(`\\Mu`,`\\mathrm{M}`),H(`\\natnums`,`\\mathbb{N}`),H(`\\Nu`,`\\mathrm{N}`),H(`\\Omicron`,`\\mathrm{O}`),H(`\\plusmn`,`\\pm`),H(`\\rarr`,`\\rightarrow`),H(`\\rArr`,`\\Rightarrow`),H(`\\Rarr`,`\\Rightarrow`),H(`\\real`,`\\Re`),H(`\\reals`,`\\mathbb{R}`),H(`\\Reals`,`\\mathbb{R}`),H(`\\Rho`,`\\mathrm{P}`),H(`\\sdot`,`\\cdot`),H(`\\sect`,`\\S`),H(`\\spades`,`\\spadesuit`),H(`\\sub`,`\\subset`),H(`\\sube`,`\\subseteq`),H(`\\supe`,`\\supseteq`),H(`\\Tau`,`\\mathrm{T}`),H(`\\thetasym`,`\\vartheta`),H(`\\weierp`,`\\wp`),H(`\\Zeta`,`\\mathrm{Z}`),H(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),H(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),H(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),H(`\\bra`,`\\mathinner{\\langle{#1}|}`),H(`\\ket`,`\\mathinner{|{#1}\\rangle}`),H(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),H(`\\Bra`,`\\left\\langle#1\\right|`),H(`\\Ket`,`\\left|#1\\right\\rangle`);var ZF=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};H(`\\bra@ket`,ZF(!1)),H(`\\bra@set`,ZF(!0)),H(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),H(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),H(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),H(`\\angln`,`{\\angl n}`),H(`\\blue`,`\\textcolor{##6495ed}{#1}`),H(`\\orange`,`\\textcolor{##ffa500}{#1}`),H(`\\pink`,`\\textcolor{##ff00af}{#1}`),H(`\\red`,`\\textcolor{##df0030}{#1}`),H(`\\green`,`\\textcolor{##28ae7b}{#1}`),H(`\\gray`,`\\textcolor{gray}{#1}`),H(`\\purple`,`\\textcolor{##9d38bd}{#1}`),H(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),H(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),H(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),H(`\\blueD`,`\\textcolor{##11accd}{#1}`),H(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),H(`\\tealA`,`\\textcolor{##94fff5}{#1}`),H(`\\tealB`,`\\textcolor{##26edd5}{#1}`),H(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),H(`\\tealD`,`\\textcolor{##01a995}{#1}`),H(`\\tealE`,`\\textcolor{##208170}{#1}`),H(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),H(`\\greenB`,`\\textcolor{##8af281}{#1}`),H(`\\greenC`,`\\textcolor{##74cf70}{#1}`),H(`\\greenD`,`\\textcolor{##1fab54}{#1}`),H(`\\greenE`,`\\textcolor{##0d923f}{#1}`),H(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),H(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),H(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),H(`\\goldD`,`\\textcolor{##e07d10}{#1}`),H(`\\goldE`,`\\textcolor{##a75a05}{#1}`),H(`\\redA`,`\\textcolor{##fca9a9}{#1}`),H(`\\redB`,`\\textcolor{##ff8482}{#1}`),H(`\\redC`,`\\textcolor{##f9685d}{#1}`),H(`\\redD`,`\\textcolor{##e84d39}{#1}`),H(`\\redE`,`\\textcolor{##bc2612}{#1}`),H(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),H(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),H(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),H(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),H(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),H(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),H(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),H(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),H(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),H(`\\purpleE`,`\\textcolor{##543b78}{#1}`),H(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),H(`\\mintB`,`\\textcolor{##edf2df}{#1}`),H(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),H(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),H(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),H(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),H(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),H(`\\grayE`,`\\textcolor{##babec2}{#1}`),H(`\\grayF`,`\\textcolor{##888d93}{#1}`),H(`\\grayG`,`\\textcolor{##626569}{#1}`),H(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),H(`\\grayI`,`\\textcolor{##21242c}{#1}`),H(`\\kaBlue`,`\\textcolor{##314453}{#1}`),H(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var QF={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$F=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new UF(WF,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new HF(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new UP(`EOF`,n.loc)),this.pushTokens(r),new UP(``,HP.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new M(`Extra }`,i)}else if(i.text===`EOF`)throw new M(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new M(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new M(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new M(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new M(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new M(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new UP(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new HF(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||NF.hasOwnProperty(e)||Cj.math.hasOwnProperty(e)||Cj.text.hasOwnProperty(e)||QF.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?NF.hasOwnProperty(e)&&!NF[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},eI=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,tI=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),nI={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},rI={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},iI=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new $F(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new M(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new UP(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&NF[i.text]&&NF[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new M(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new M(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new M(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new M(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new M(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new M(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(tI[i.text]){var s=eI.test(i.text),c=[];for(c.push(new UP(tI[i.text])),this.consume();;){var l=this.fetch().text;if(!tI[l]||eI.test(l)!==s)break;c.unshift(new UP(tI[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=NF[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new M(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new M(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new M(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=NF[e];if(o&&o.handler)return o.handler(a,t,n);throw new M(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new M(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new M(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new M(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new M(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new M(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new M(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new M(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!ij(i))throw new M(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:HP.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!QF.hasOwnProperty(r)){if(this.settings.throwOnError)throw new M(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:HP.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:HP.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:HP.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new M(`\\verb assertion failed --
|
|
315
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}rI.hasOwnProperty(t[0])&&!Cj[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=rI[t[0]]+t.slice(1));var i=BF.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Cj[this.mode][t]){this.settings.strict&&this.mode===`math`&&Jj.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Cj[this.mode][t].group,s=HP.range(e);a=NN(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(QA(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:HP.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!nI[l])throw new M(`Unknown accent ' `+l+`'`,e);var u=nI[l][this.mode]||nI[l].text;if(!u)throw new M(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:HP.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};iI.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var aI=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new iI(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new M(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new UP(`\\df@tag`)])}]}return r},oI=function(e,t,n){t.textContent=``;var r=uI(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),oI=function(){throw new M(`KaTeX doesn't work in quirks mode.`)});var sI=function(e,t){return uI(e,t).toMarkup()},cI=function(e,t){return aI(e,new RA(t))},lI=function(e,t,n){if(n.throwOnError||!(e instanceof M))throw e;var r=B([`katex-error`],[new mj(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},uI=function(e,t){var n=new RA(t);try{return CN(aI(e,n),e,n)}catch(t){return lI(t,e,n)}},dI={version:`0.16.47`,render:oI,renderToString:sI,ParseError:M,SETTINGS_SCHEMA:LA,__parse:cI,__renderToDomTree:uI,__renderToHTMLTree:function(e,t){var n=new RA(t);try{return wN(aI(e,n),e,n)}catch(t){return lI(t,e,n)}},__setFontMetrics:rue,__defineSymbol:N,__defineFunction:BM,__defineMacro:H,__domTree:{Span:fj,Anchor:pj,SymbolNode:mj,SvgNode:hj,PathNode:gj,LineNode:_j}},fI={},pI=[];function mI(e){let t=e||fI;return function(e,n){Bk(e,`element`,function(e,r){let i=Array.isArray(e.properties.className)?e.properties.className:pI,a=i.includes(`language-math`),o=i.includes(`math-display`),s=i.includes(`math-inline`),c=o;if(!a&&!o&&!s)return;let l=r[r.length-1],u=e;if(e.tagName===`code`&&a&&l&&l.type===`element`&&l.tagName===`pre`&&(u=l,l=r[r.length-2],c=!0),!l)return;let d=gle(u,{whitespace:`pre`}),f;try{f=dI.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(i){let a=i,o=a.name.toLowerCase();n.message(`Could not render math with KaTeX`,{ancestors:[...r,e],cause:a,place:e.position,ruleId:o,source:`rehype-katex`});try{f=dI.renderToString(d,{...t,displayMode:c,strict:`ignore`,throwOnError:!1})}catch{f=[{type:`element`,tagName:`span`,properties:{className:[`katex-error`],style:`color:`+(t.errorColor||`#cc0000`),title:String(i)},children:[{type:`text`,value:d}]}]}}typeof f==`string`&&(f=cle(f,{fragment:!0}).children);let p=l.children.indexOf(u);return l.children.splice(p,1,...f),gce})}}function hI(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 gI(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function _I(e,t,n){let r=Lk((n||{}).ignore||[]),i=vI(t),a=-1;for(;++a<i.length;)Bk(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 vI(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([yI(e[0]),bI(e[1])])}return t}function yI(e){return typeof e==`string`?new RegExp(gI(e),`g`):e}function bI(e){return typeof e==`function`?e:function(){return e}}var xI=`phrasing`,SI=[`autolink`,`link`,`image`,`label`];function CI(){return{transforms:[jI],enter:{literalAutolink:TI,literalAutolinkEmail:EI,literalAutolinkHttp:EI,literalAutolinkWww:EI},exit:{literalAutolink:AI,literalAutolinkEmail:kI,literalAutolinkHttp:DI,literalAutolinkWww:OI}}}function wI(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:xI,notInConstruct:SI},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:xI,notInConstruct:SI},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:xI,notInConstruct:SI}]}}function TI(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function EI(e){this.config.enter.autolinkProtocol.call(this,e)}function DI(e){this.config.exit.autolinkProtocol.call(this,e)}function OI(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 kI(e){this.config.exit.autolinkEmail.call(this,e)}function AI(e){this.exit(e)}function jI(e){_I(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,MI],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,NI]],{ignore:[`link`,`linkReference`]})}function MI(e,t,n,r,i){let a=``;if(!II(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!PI(n)))return!1;let o=FI(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 NI(e,t,n,r){return!II(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function PI(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 FI(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=hI(e,`(`),a=hI(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 II(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||HO(n)||VO(n))&&(!t||n!==47)}KI.peek=GI;function LI(){this.buffer()}function RI(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function zI(){this.buffer()}function BI(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function VI(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=NO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function HI(e){this.exit(e)}function UI(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=NO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function WI(e){this.exit(e)}function GI(){return`[`}function KI(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 qI(){return{enter:{gfmFootnoteCallString:LI,gfmFootnoteCall:RI,gfmFootnoteDefinitionLabelString:zI,gfmFootnoteDefinition:BI},exit:{gfmFootnoteCallString:VI,gfmFootnoteCall:HI,gfmFootnoteDefinitionLabelString:UI,gfmFootnoteDefinition:WI}}}function JI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:KI},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?`
|
|
316
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?XI:YI))),s(),o}}function YI(e,t,n){return t===0?e:XI(e,t,n)}function XI(e,t,n){return(n?``:` `)+e}var ZI=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];nL.peek=rL;function QI(){return{canContainEols:[`delete`],enter:{strikethrough:eL},exit:{strikethrough:tL}}}function $I(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:ZI}],handlers:{delete:nL}}}function eL(e){this.enter({type:`delete`,children:[]},e)}function tL(e){this.exit(e)}function nL(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 rL(){return`~`}function iL(e){return e.length}function aL(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||iL,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=oL(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]=sL(r[d]);else{let e=sL(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(`
|
|
317
|
+
`)}function oL(e){return e==null?``:String(e)}function sL(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}var cL={}.hasOwnProperty;function lL(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&cL.call(t,e)){let n=String(t[e]);i=cL.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}function uL(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()),dL);return i(),o}function dL(e,t,n){return`>`+(n?``:` `)+e}function fL(e,t){return pL(e,t.inConstruct,!0)&&!pL(e,t.notInConstruct,!1)}function pL(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 mL(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
318
|
+
`&&fL(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
319
|
+
`}function hL(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 gL(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 _L(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function vL(e,t,n,r){let i=_L(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(gL(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,yL);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(hL(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:`
|
|
320
|
+
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
321
|
+
`),a&&(u+=s.move(a+`
|
|
322
|
+
`)),u+=s.move(c),l(),u}function yL(e,t,n){return(n?``:` `)+e}function bL(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function xL(e,t,n,r){let i=bL(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?` `:`
|
|
323
|
+
`,...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 SL(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function CL(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function wL(e,t,n){let r=qO(e),i=qO(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}}TL.peek=EL;function TL(e,t,n,r){let i=SL(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=wL(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=CL(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=wL(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+CL(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function EL(e,t,n){return n.options.emphasis||`*`}function DL(e,t){let n=!1;return Vk(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)&&CO(e)&&(t.options.setext||n))}function OL(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(DL(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
324
|
+
`,after:`
|
|
325
|
+
`});return r(),t(),o+`
|
|
326
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
327
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
328
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=CL(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}kL.peek=AL;function kL(e){return e.value||``}function AL(){return`<`}jL.peek=ML;function jL(e,t,n,r){let i=bL(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 ML(){return`!`}NL.peek=PL;function NL(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 PL(){return`!`}FL.peek=IL;function FL(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 IL(){return"`"}function LL(e,t){let n=CO(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))}RL.peek=zL;function RL(e,t,n,r){let i=bL(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(LL(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 zL(e,t,n){return LL(e,n)?`<`:`[`}BL.peek=VL;function BL(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 VL(){return`[`}function HL(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 UL(e){let t=HL(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 WL(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function GL(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 KL(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?WL(n):HL(n),s=e.ordered?o===`.`?`)`:`.`:UL(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),GL(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 qL(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 JL(e,t,n,r){let i=qL(n),a=n.bulletCurrent||HL(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 YL(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var XL=Lk([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function ZL(e,t,n,r){return(e.children.some(function(e){return XL(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function QL(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}$L.peek=eR;function $L(e,t,n,r){let i=QL(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=wL(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=CL(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=wL(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+CL(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function eR(e,t,n){return n.options.strong||`*`}function tR(e,t,n,r){return n.safe(e.value,r)}function nR(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 rR(e,t,n){let r=(GL(n)+(n.options.ruleSpaces?` `:``)).repeat(nR(n));return n.options.ruleSpaces?r.slice(0,-1):r}var iR={blockquote:uL,break:mL,code:vL,definition:xL,emphasis:TL,hardBreak:mL,heading:OL,html:kL,image:jL,imageReference:NL,inlineCode:FL,link:RL,linkReference:BL,list:KL,listItem:JL,paragraph:YL,root:ZL,strong:$L,text:tR,thematicBreak:rR};function aR(){return{enter:{table:oR,tableData:uR,tableHeader:uR,tableRow:cR},exit:{codeText:dR,table:sR,tableData:lR,tableHeader:lR,tableRow:lR}}}function oR(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 sR(e){this.exit(e),this.data.inTable=void 0}function cR(e){this.enter({type:`tableRow`,children:[]},e)}function lR(e){this.exit(e)}function uR(e){this.enter({type:`tableCell`,children:[]},e)}function dR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,fR));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function fR(e,t){return t===`|`?t:e}function pR(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
329
|
+
`,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(`
|
|
330
|
+
`))}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 aL(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=iR.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function mR(){return{exit:{taskListCheckValueChecked:gR,taskListCheckValueUnchecked:gR,paragraph:_R}}}function hR(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:vR}}}function gR(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function _R(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 vR(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=iR.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 yR(){return[CI(),qI(),QI(),aR(),mR()]}function bR(e){return{extensions:[wI(),JI(e),$I(),pR(e),hR()]}}var xR={tokenize:FR,partial:!0},SR={tokenize:IR,partial:!0},CR={tokenize:LR,partial:!0},wR={tokenize:RR,partial:!0},TR={tokenize:zR,partial:!0},ER={name:`wwwAutolink`,tokenize:NR,previous:BR},DR={name:`protocolAutolink`,tokenize:PR,previous:VR},OR={name:`emailAutolink`,tokenize:MR,previous:HR},kR={};function AR(){return{text:kR}}for(var jR=48;jR<123;)kR[jR]=OR,jR++,jR===58?jR=65:jR===91&&(jR=97);kR[43]=OR,kR[45]=OR,kR[46]=OR,kR[95]=OR,kR[72]=[OR,DR],kR[104]=[OR,DR],kR[87]=[OR,ER],kR[119]=[OR,ER];function MR(e,t,n){let r=this,i,a;return o;function o(t){return!UR(t)||!HR.call(r,r.previous)||WR(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return UR(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(TR,u,l)(t):t===45||t===95||FO(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&&PO(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function NR(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!BR.call(r,r.previous)||WR(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(xR,e.attempt(SR,e.attempt(CR,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function PR(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&VR.call(r,r.previous)&&!WR(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(PO(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||IO(t)||zO(t)||HO(t)||VO(t)?n(t):e.attempt(SR,e.attempt(CR,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function FR(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 IR(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(wR,c,s)(t):t===null||zO(t)||HO(t)||t!==45&&VO(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 LR(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(wR,t,a)(o):o===null||zO(o)||HO(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function RR(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||zO(o)||HO(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||zO(e)||HO(e)?t(e):r(e)}function a(e){return PO(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):PO(t)?(e.consume(t),o):n(t)}}function zR(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return FO(e)?n(e):t(e)}}function BR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zO(e)}function VR(e){return!PO(e)}function HR(e){return!(e===47||UR(e))}function UR(e){return e===43||e===45||e===46||e===95||FO(e)}function WR(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 GR={tokenize:$R,partial:!0};function KR(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:XR,continuation:{tokenize:ZR},exit:QR}},text:{91:{name:`gfmFootnoteCall`,tokenize:YR},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:qR,resolveTo:JR}}}}function qR(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=NO(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 JR(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 YR(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||zO(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(NO(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return zO(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 XR(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||zO(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=NO(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return zO(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),GO(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function ZR(e,t,n){return e.check(ZO,t,e.attempt(GR,t,n))}function QR(e){e.exit(`gfmFootnoteDefinition`)}function $R(e,t,n){let r=this;return GO(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 ez(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&&OO(o,o.length,0,JO(s,e.slice(r+1,n),t)),OO(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),OO(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=qO(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=qO(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var tz=class{constructor(){this.map=[]}add(e,t,n){nz(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 nz(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 rz(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 iz(){return{flow:{null:{name:`table`,tokenize:az,resolveAll:oz}}}}function az(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):RO(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):BO(t)?GO(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||zO(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,BO(t)?GO(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 BO(t)?GO(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||RO(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 BO(t)?GO(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||RO(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||RO(n)?(e.exit(`tableRow`),t(n)):BO(n)?GO(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||zO(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 oz(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 tz;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(cz(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=sz(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=sz(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=sz(f,t,o,i,n,d)):(o[0]=o[1],d=sz(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&cz(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=rz(t.events,n))}return e}function sz(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},lz(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=lz(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=lz(t.events,n[2]),a=lz(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({},lz(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function cz(e,t,n,r,i){let a=[],o=lz(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 lz(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var uz={name:`tasklistCheck`,tokenize:fz};function dz(){return{text:{91:uz}}}function fz(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 zO(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 RO(r)?t(r):BO(r)?e.check({tokenize:pz},t,n)(r):n(r)}}function pz(e,t,n){return GO(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function mz(e){return jO([AR(),KR(),ez(e),iz(),dz()])}var hz={};function gz(e){let t=this,n=e||hz,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(mz(n)),a.push(yR()),o.push(bR(n))}function _z(){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 vz(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
331
|
+
`,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(hL(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:`
|
|
332
|
+
`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
|
|
333
|
+
`),i&&(c+=a.move(i+`
|
|
334
|
+
`)),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 yz={tokenize:xz,concrete:!0,name:`mathFlow`},bz={tokenize:Sz,partial:!0};function xz(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`),GO(e,l,`whitespace`)(t))}function l(t){return t===null||RO(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||RO(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(bz,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?GO(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):RO(t)?e.attempt(bz,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||RO(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 GO(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`),GO(e,c,`whitespace`)(t))}function c(r){return r===null||RO(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function Sz(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 Cz(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:wz,previous:Tz,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):RO(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||RO(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 wz(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 Tz(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Ez(e){return{flow:{36:yz},text:{36:Cz(e)}}}var Dz={};function Oz(e){let t=this,n=e||Dz,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ez(n)),a.push(_z()),o.push(vz(n))}var kz=0,Az=1,jz=2,Mz=4;function Nz(e){return()=>e}function Pz(e){e()}function Fz(e,t){return n=>e(t(n))}function Iz(e,t){return()=>e(t)}function Lz(e,t){return n=>e(t,n)}function Rz(e){return e!==void 0}function zz(...e){return()=>{e.map(Pz)}}function Bz(){}function Vz(e,t){return t(e),e}function Hz(e,t){return t(e)}function Uz(...e){return e}function Wz(e,t){return e(Az,t)}function Gz(e,t){e(kz,t)}function Kz(e){e(jz)}function qz(e){return e(Mz)}function Jz(e,t){return Wz(e,Lz(t,kz))}function Yz(e,t){let n=e(Az,e=>{n(),t(e)});return n}function Xz(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Zz(e,t){return e===t}function Qz(e=Zz){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function $z(e){return t=>n=>{e(n)&&t(n)}}function eB(e){return t=>Fz(t,e)}function tB(e){return t=>()=>{t(e)}}function U(e,...t){let n=oB(...t);return((t,r)=>{switch(t){case jz:Kz(e);return;case Az:return Wz(e,n(r))}})}function nB(e,t){return n=>r=>{n(t=e(t,r))}}function rB(e){return t=>n=>{e>0?e--:t(n)}}function iB(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function aB(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;Wz(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 oB(...e){return t=>e.reduceRight(Hz,t)}function sB(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case Az:return a?n===a?void 0:(r(),n=a,t=Wz(e,a),t):(r(),Bz);case jz:r(),n=null;return}}}function W(e){let t=e,n=lB();return((e,r)=>{switch(e){case kz:t=r;break;case Az:r(t);break;case Mz:return t}return n(e,r)})}function cB(e,t){return Vz(W(t),t=>Jz(e,t))}function lB(){let e=[];return((t,n)=>{switch(t){case kz:e.slice().forEach(e=>{e(n)});return;case jz:e.splice(0,e.length);return;case Az:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function uB(e){return Vz(lB(),t=>Jz(e,t))}function dB(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:fB(),singleton:n}}var fB=()=>Symbol();function pB(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 mB(...e){let t=lB(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;Wz(e,e=>{n[a]=e,r|=o,r===i&&Gz(t,n)})}),function(e,a){switch(e){case jz:Kz(t);return;case Az:return r===i&&a(n),Wz(t,a)}}}function hB(e,t=Zz){return U(e,Qz(t))}function gB(...e){return function(t,n){switch(t){case jz:return;case Az:return zz(...e.map(e=>Wz(e,n)))}}}var _B={DEBUG:0,INFO:1,WARN:2,ERROR:3},vB={[_B.DEBUG]:`debug`,[_B.ERROR]:`error`,[_B.INFO]:`log`,[_B.WARN]:`warn`},yB=()=>typeof globalThis>`u`?window:globalThis,bB=dB(()=>{let e=W(_B.ERROR);return{log:W((t,n,r=_B.INFO)=>{r>=(yB().VIRTUOSO_LOG_LEVEL??qz(e))&&console[vB[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0}),xB=new WeakMap;function SB(e){return`self`in e?e.document.documentElement:e}function CB(e){let t=SB(e),n=xB.get(t);if(n!==void 0)return n;let r=t.ownerDocument.defaultView.getComputedStyle(t).direction===`rtl`;return xB.set(t,r),r}function wB(e){xB.delete(SB(e))}function TB(e,t){return CB(e)?-t:t}var EB=TB;function DB(e,t){return TB(e,t)}function OB(e,t,n){return kB(e,t,n).callbackRef}function kB(e,t,n){let r=k.useRef(null),i=e=>{},a=k.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 AB(e,t,n,r,i,a,o,s,c){return kB(k.useCallback(n=>{let c=jB(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?EB(o,o.scrollLeft):o.scrollTop:u?s?EB(d,d.scrollX||d.document.documentElement.scrollLeft):d.scrollY||d.document.documentElement.scrollTop:s?EB(l,l.scrollLeft):l.scrollTop;r({scrollHeight:f,scrollTop:Math.max(m,0),viewportHeight:p}),a?.(s?MB(`column-gap`,getComputedStyle(n).columnGap,i):MB(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function jB(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},_B.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 MB(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,_B.WARN),t===`normal`?0:parseInt(t??`0`,10)}function NB(e,t,n){let r=k.useRef(null),i=k.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}=kB(i,!0,n),s=k.useCallback(()=>{i(o.current)},[i,o]);return k.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 PB=dB(()=>{let e=lB(),t=lB(),n=W(0),r=lB(),i=W(0),a=lB(),o=lB(),s=W(0),c=W(0),l=W(0),u=W(0),d=lB(),f=lB(),p=W(!1),m=W(!1),h=W(!1);return Jz(U(e,eB(({scrollTop:e})=>e)),t),Jz(U(e,eB(({scrollHeight:e})=>e)),o),Jz(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}),FB={lvl:0};function IB(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 LB(e){return e===FB}function RB(e,t){if(!LB(e))return t===e.k?e.v:t<e.k?RB(e.l,t):RB(e.r,t)}function zB(e,t,n=`k`){if(LB(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=zB(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return zB(e.l,t,n)}function BB(e,t,n){return LB(e)?ZB(t,n,1):t===e.k?qB(e,{k:t,v:n}):t<e.k?QB(qB(e,{l:BB(e.l,t,n)})):QB(qB(e,{r:BB(e.r,t,n)}))}function VB(){return FB}function HB(e,t,n){if(LB(e))return[];let r=zB(e,t)[0];return tV(GB(e,r,n))}function UB(e,t){if(LB(e))return FB;let{k:n,l:r,r:i}=e;if(t===n){if(LB(r))return i;if(LB(i))return r;let[t,n]=XB(r);return KB(qB(e,{k:t,l:JB(r),v:n}))}return KB(t<n?qB(e,{l:UB(r,t)}):qB(e,{r:UB(i,t)}))}function WB(e){return LB(e)?[]:[...WB(e.l),{k:e.k,v:e.v},...WB(e.r)]}function GB(e,t,n){if(LB(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(GB(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(GB(a,t,n))),s}function KB(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(YB(t))return $B(qB(e,{lvl:n-1}));if(!LB(t)&&!LB(t.r))return qB(t.r,{l:qB(t,{r:t.r.l}),lvl:n,r:qB(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(YB(e))return eV(qB(e,{lvl:n-1}));if(!LB(r)&&!LB(r.l)){let t=r.l,i=YB(t)?r.lvl-1:r.lvl;return qB(t,{l:qB(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:eV(qB(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function qB(e,t){return ZB(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 JB(e){return LB(e.r)?e.l:KB(qB(e,{r:JB(e.r)}))}function YB(e){return LB(e)||e.lvl>e.r.lvl}function XB(e){return LB(e.r)?[e.k,e.v]:XB(e.r)}function ZB(e,t,n,r=FB,i=FB){return{k:e,l:r,lvl:n,r:i,v:t}}function QB(e){return eV($B(e))}function $B(e){let{l:t}=e;return!LB(t)&&t.lvl===e.lvl?qB(t,{r:qB(e,{l:t.r})}):e}function eV(e){let{lvl:t,r:n}=e;return!LB(n)&&!LB(n.r)&&n.lvl===t&&n.r.lvl===t?qB(n,{l:qB(e,{r:n.l}),lvl:t+1}):e}function tV(e){return IB(e,({k:e,v:t})=>({index:e,value:t}))}function nV(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function rV(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var iV=dB(()=>({recalcInProgress:W(!1)}),[],{singleton:!0});function aV(e,t,n){return e[oV(e,t,n)]}function oV(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 sV(e,t,n,r){let i=oV(e,t,r),a=oV(e,n,r,i);return e.slice(i,a+1)}function cV(e,t){return Math.round(e.getBoundingClientRect()[t])}function lV(e){return!LB(e.groupOffsetTree)}function uV({index:e},t){return t===e?0:t<e?-1:1}function dV(){return{groupIndices:[],groupOffsetTree:VB(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:VB()}}function fV(e,t){let n=LB(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),LB(e)){e=BB(e,0,i);continue}let o=HB(e,a-1,t+1);if(o.some(wV(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=UB(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=BB(e,t+1,a));c&&(e=BB(e,a,i))}return[e,n]}function pV(e){return typeof e.groupIndex<`u`}function mV({offset:e},t){return t===e?0:t<e?-1:1}function hV(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=aV(t,e,uV),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function gV(e,t){if(!lV(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function _V(e,t,n){if(pV(e))return t.groupIndices[e.groupIndex]+1;let r=gV(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function vV(e,t,n,r=0){return r>0&&(t=Math.max(t,aV(e,r,uV).offset)),IB(sV(e,t,n,mV),CV)}function yV(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,_B.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&LB(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>BB(BB(t,n,e),n+1,r),o)}else [o,s]=fV(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=SV(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>BB(e,t,hV(t,d,i)),VB()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function bV(e){return WB(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 xV(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 SV(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=oV(i,t-1,uV),s=i[c].offset;let e=zB(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===zB(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of HB(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 CV(e){return{index:e.index,value:e}}function wV(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 TV={offsetHeight:`height`,offsetWidth:`width`},EV=dB(([{log:e},{recalcInProgress:t}])=>{let n=lB(),r=lB(),i=cB(r,0),a=lB(),o=lB(),s=W(0),c=W([]),l=W(void 0),u=W(void 0),d=W(void 0),f=W(void 0),p=W((e,t)=>cV(e,TV[t])),m=W(void 0),h=W(0),g=dV(),_=cB(U(n,aB(c,e,h),nB(yV,g),Qz()),g),v=cB(U(c,Qz(),nB((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),eB(({prev:e})=>e)),[]);Jz(U(c,$z(e=>e.length>0),aB(_,h),eB(([e,t,n])=>{let r=e.reduce((e,r,i)=>BB(e,r,hV(r,t.offsetTree,n)||i),VB());return{...t,groupIndices:e,groupOffsetTree:r}})),_),Jz(U(r,aB(_),$z(([e,{lastIndex:t}])=>e<t),eB(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),Jz(l,u);let y=cB(U(l,eB(e=>e===void 0)),!0);Jz(U(u,$z(e=>e!==void 0&&LB(qz(_).sizeTree)),eB(e=>{let t=qz(d),n=qz(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),Jz(U(f,$z(e=>e!==void 0&&e.length>0&&LB(qz(_).sizeTree)),eB(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),Jz(U(c,aB(d,u),$z(([,e,t])=>e!==void 0&&t!==void 0),eB(([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=uB(U(n,aB(_),nB(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),eB(e=>e.changed)));Wz(U(s,nB((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),eB(e=>e.diff)),e=>{let{groupIndices:n}=qz(_);if(e>0)Gz(t,!0),Gz(a,e+xV(e,n));else if(e<0){let t=qz(v);t.length>0&&(e-=xV(-e,t)),Gz(o,e)}}),Wz(U(s,aB(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},_B.ERROR)});let x=uB(a);Jz(U(a,aB(_),eB(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=RB(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=WB(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 WB(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=uB(U(o,aB(_,h),eB(([e,{offsetTree:t},n])=>hV(-e,t,n))));return Jz(U(o,aB(_,h),eB(([e,t,n])=>{if(t.groupIndices.length>0){if(LB(t.sizeTree))return t;let r=VB(),i=qz(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=WB(t.sizeTree).reduce((t,{k:n,v:r})=>BB(t,Math.max(0,n+e),r),r),a!==-e){let n=RB(t.sizeTree,s);r=BB(r,0,n);let i=zB(t.sizeTree,-e+1)[1];r=BB(r,1,i)}return{...t,sizeTree:r,...SV(t.offsetTree,0,r,n)}}let r=WB(t.sizeTree).reduce((t,{k:n,v:r})=>BB(t,Math.max(0,n+e),r),VB());return{...t,sizeTree:r,...SV(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}},Uz(bB,iV),{singleton:!0});function DV(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var OV=dB(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=lB(),o=lB(),s=uB(U(a,eB(DV)));return Jz(U(s,eB(e=>e.totalCount)),n),Jz(U(s,eB(e=>e.groupIndices)),e),Jz(U(mB(i,t,r),$z(([e,t])=>lV(t)),eB(([e,t,n])=>zB(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),Qz(),eB(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},Uz(EV,PB)),kV=dB(([{log:e}])=>{let t=W(!1),n=uB(U(t,$z(e=>e),Qz()));return Wz(t,t=>{t&&qz(e)(`props updated`,{},_B.DEBUG)}),{didMount:n,propsReady:t}},Uz(bB),{singleton:!0}),AV=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function jV(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!AV)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var MV=dB(([{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=lB(),m=lB(),h=W(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),Gz(c,!1)}return Jz(U(p,aB(n,d,r,h,s,o,f),aB(e,a,i),eB(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=jV(e),{align:x,behavior:S,offset:C}=b,w=i-1,T=_V(b,n,w),E=hV(T,n.offsetTree,d)+o;x===`end`?(E+=f+zB(n.sizeTree,T)[1]-r+h,T===w&&(E+=s)):x===`center`?E+=(f+zB(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},_B.DEBUG),Gz(p,e)):(Gz(m,!0),l(`list did not change, scroll successful`,{},_B.DEBUG))};if(y(),S===`smooth`){let e=!1;v=Wz(t,t=>{e||=t}),g=Yz(u,()=>{D(e)})}else g=Yz(U(t,NV(150)),D);return _=setTimeout(()=>{y()},1200),Gz(c,!0),l(`scrolling from index to`,{behavior:S,index:T,top:E},_B.DEBUG),{behavior:S,top:E}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},Uz(EV,PB,bB),{singleton:!0});function NV(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function PV(e,t){e===0?t():requestAnimationFrame(()=>{PV(e-1,t)})}function FV(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var IV=dB(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=W(!0),c=W(0),l=W(!0);return Jz(U(o,aB(c),$z(([e,t])=>t!==0),tB(!1)),s),Jz(U(o,aB(c),$z(([e,t])=>t!==0),tB(!1)),l),Wz(U(mB(t,o),aB(s,n,e,l),$z(([[,e],t,{sizeTree:n},r,i])=>e&&(!LB(n)||Rz(r))&&!t&&!i),aB(c)),([,e])=>{Yz(i,()=>{Gz(l,!0)}),PV(4,()=>{Yz(r,()=>{Gz(s,!0)}),Gz(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},Uz(EV,PB,MV,kV),{singleton:!0});function LV(e,t){return Math.abs(e-t)<1.01}var RV=`up`,zV=`down`,BV=`none`,VV={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},HV=0,UV=dB(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=W(!1),s=W(!0),c=lB(),l=lB(),u=W(4),d=W(HV),f=cB(U(gB(U(hB(i),rB(1),tB(!0)),U(hB(i),rB(1),tB(!1),Xz(100))),Qz()),!1),p=cB(U(gB(U(n,tB(!0)),U(n,tB(!1),Xz(200))),Qz()),!1);Jz(U(mB(hB(i),hB(d)),eB(([e,t])=>e<=t),Qz()),s),Jz(U(s,iB(50)),l);let m=uB(U(mB(r,hB(a),hB(t),hB(e),hB(u)),nB((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}},VV),Qz((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=cB(U(r,nB((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!LV(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}),$z(e=>e.changed),eB(e=>e.jump)),0);Jz(U(m,eB(e=>e.atBottom)),o),Jz(U(o,iB(50)),c);let g=W(zV);Jz(U(r,eB(({scrollTop:e})=>e),Qz(),nB((e,t)=>qz(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?RV:zV,prevScrollTop:t},{direction:zV,prevScrollTop:0}),eB(e=>e.direction)),g),Jz(U(r,iB(50),tB(BV)),g);let _=W(0);return Jz(U(f,$z(e=>!e),tB(0)),_),Jz(U(i,iB(100),aB(f),$z(([e,t])=>t),nB(([e,t],[n])=>[t,n],[0,0]),eB(([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:_}},Uz(PB)),WV=`top`,GV=`bottom`,KV=`none`;function qV(e,t,n){return typeof e==`number`?n===RV&&t===WV||n===zV&&t===GV?e:0:n===RV?t===WV?e.main:e.reverse:t===GV?e.main:e.reverse}function JV(e,t){return typeof e==`number`?e:e[t]??0}var YV=dB(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=lB(),o=W(0),s=W(0),c=W(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:cB(U(mB(hB(r),hB(i),hB(n),hB(a,rV),hB(c),hB(o),hB(t),hB(e),hB(s)),eB(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=KV,m=JV(l,WV),h=JV(l,GV);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=RV),i<e-f+t+h&&(p=zV),p===KV?null:[Math.max(u-n-qV(a,WV,p)-m,0),u-f-s+t+qV(a,GV,p)+h]}),$z(e=>e!==null),Qz(rV)),[0,0])}},Uz(PB),{singleton:!0});function XV(e,t,n){if(lV(t)){let r=gV(e,t);return[{index:zB(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 ZV={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function QV(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:eH(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:eH(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function $V(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=FV(t,s);return QV(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function eH(e,t,n){if(e.length===0)return[];if(!lV(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=HB(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 tH(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var nH=dB(([{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=W([]),g=W(0),_=lB(),v=W(0);Jz(a.topItemsIndexes,h);let y=cB(U(mB(p,m,hB(c,rV),hB(i),hB(r),hB(l),u,hB(h),hB(t),hB(n),hB(v),e),$z(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),eB(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=qz(g);if(n===0)return{...ZV,totalCount:n};if(e===0&&t===0)return m===0?{...ZV,totalCount:n}:$V(m,i,r,s,c,u||[]);if(LB(p))return m>0?null:QV(XV(FV(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 HB(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 QV([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=vV(f,e,t,_);if(v.length===0)return null;let y=n-1,b=Vz([],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=tH(l,WV),S=tH(l,GV);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=HB(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=HB(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return QV(b,h,n,c,d,s)}),$z(e=>e!==null),Qz()),ZV);Jz(U(e,$z(Rz),eB(e=>e?.length)),i),Jz(U(y,eB(e=>e.topListHeight)),d),Jz(d,s),Jz(U(y,eB(e=>[e.top,e.bottom])),o),Jz(U(y,eB(e=>e.items)),_);let b=uB(U(y,$z(({items:e})=>e.length>0),aB(i,e),$z(([{items:e},t])=>e[e.length-1].originalIndex===t-1),eB(([,e,t])=>[e-1,t]),Qz(rV),eB(([e])=>e))),x=uB(U(y,iB(200),$z(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),eB(({items:e})=>e[0].index),Qz()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:uB(U(y,$z(({items:e})=>e.length>0),eB(({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}}),Qz(nV))),startReached:x,topItemsIndexes:h,...f}},Uz(EV,OV,YV,IV,MV,UV,kV,iV),{singleton:!0}),rH=dB(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=lB(),o=cB(U(mB(n,e,r,t,i),eB(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return Jz(hB(o),a),{totalListHeight:o,totalListHeightChanged:a}},Uz(PB,nH),{singleton:!0}),iH=dB(([{viewportHeight:e},{totalListHeight:t}])=>{let n=W(!1);return{alignToBottom:n,paddingTopAddition:cB(U(mB(n,e,t),$z(([e])=>e),eB(([,e,t])=>Math.max(0,e-t)),iB(0),Qz()),0)}},Uz(PB,rH),{singleton:!0}),aH=dB(()=>({context:W(null)})),oH=({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,sH=dB(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=lB();return Jz(U(u,aB(t,c,n,a,i,r,s),aB(e),eB(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=oH,done:d,...f}=e,p=_V(e,t,r-1),m=hV(p,t.offsetTree,l)+i+a,h=m+zB(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&Yz(U(o,$z(e=>!e),rB(qz(o)?1:2)),d),_}),$z(e=>e!==null)),l),{scrollIntoView:u}},Uz(EV,PB,MV,nH,bB),{singleton:!0});function cH(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var lH=(e,t)=>typeof e==`function`?cH(e(t)):t&&cH(e),uH=dB(([{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=W(!1),h=lB(),g=null;function _(e){Gz(o,{align:`end`,behavior:e,index:`LAST`})}Wz(U(mB(U(hB(t),rB(1)),c),aB(hB(m),a,s,d),eB(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=lH(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),$z(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),qz(n)===void 0?g=Yz(e,()=>{qz(u)(`following output to `,{totalCount:r},_B.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{qz(u)(`following output to `,{totalCount:r},_B.DEBUG),_(t)})});function v(e){let t=Yz(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(qz(u)(`scrolling to bottom due to increased size`,{},_B.DEBUG),_(`auto`))});setTimeout(t,100)}Wz(U(mB(hB(m),t,l),$z(([e,,t])=>e!==!1&&t),nB(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),$z(({refreshed:e})=>e),aB(m,t)),([,e])=>{qz(s)&&v(e!==!1)}),Wz(h,()=>{v(qz(m)!==!1)}),Wz(mB(hB(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=W(null),b=lB();return Jz(gB(U(hB(r),eB(e=>e?.length??0)),U(hB(t))),b),Wz(U(mB(U(b,rB(1)),c),aB(hB(y),s,d,f),eB(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),$z(e=>!!e),iB(0)),t=>{g!==null&&(g(),g=null),qz(n)===void 0?g=Yz(e,()=>{qz(u)(`scrolling into view`,{}),Gz(p,t),g=null}):requestAnimationFrame(()=>{qz(u)(`scrolling into view`,{}),Gz(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},Uz(EV,UV,MV,IV,kV,bB,PB,aH,sH)),dH=dB(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(Jz(U(s,aB(a),$z(([,e])=>e!==0),aB(i,r,t,n,e),eB(([[,e],t,n,r,i,a=[]])=>$V(e,t,n,r,i,a))),o),{}),Uz(EV,IV,nH,kV),{singleton:!0}),fH=dB(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=W(0);return Wz(U(e,aB(r),$z(([,e])=>e!==0),eB(([,e])=>({top:e}))),e=>{Yz(U(n,rB(1),$z(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{Gz(t,e)})})}),{initialScrollTop:r}},Uz(kV,PB,nH),{singleton:!0}),pH=dB(([{scrollVelocity:e}])=>{let t=W(!1),n=lB(),r=W(!1);return Jz(U(e,aB(r,t,n),$z(([e,t])=>t!==!1&&t!==void 0),eB(([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}),Qz()),t),Wz(U(mB(t,e,n),aB(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}},Uz(UV),{singleton:!0}),mH=dB(([{scrollContainerState:e,scrollTo:t}])=>{let n=lB(),r=lB(),i=lB(),a=W(!1),o=W(void 0);return Jz(U(mB(n,r),eB(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),Jz(U(t,aB(r),eB(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},Uz(PB)),hH=dB(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=lB(),u=W(void 0),d=W(null),f=W(null);return Jz(s,d),Jz(c,f),Wz(U(l,aB(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=bV(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),Jz(U(u,$z(Rz),eB(gH)),i),Jz(U(a,aB(u),$z(([,e])=>e!==void 0),Qz(),eB(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},Uz(EV,PB,IV,kV,mH));function gH(e){return{align:`start`,index:0,offset:e.scrollTop}}var _H=dB(([{topItemsIndexes:e}])=>{let t=W(0);return Jz(U(t,$z(e=>e>=0),eB(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},Uz(nH));function vH(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var yH=vH(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),bH=dB(([{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:ee,rangeChanged:te,...ne}=b;return Jz(te,T.scrollSeekRangeChanged),Jz(U(T.windowViewportRect,eB(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:ee,totalCount:f,...y,groupIndices:o,itemSize:c,listState:E,minOverscanItemCount:D,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:te,...ne,...T,..._,sizes:u,...v}},Uz(EV,IV,PB,hH,uH,nH,MV,dB(([{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=uB(U(c,aB(o),nB(([,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]),$z(([e])=>e!==0),aB(r,s,n,i,p,m),$z(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===RV),eB(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},_B.DEBUG),e))));function g(n){n>0?(Gz(t,{behavior:`auto`,top:-n}),Gz(e,0)):(Gz(e,0),Gz(t,{behavior:`auto`,top:-n}))}return Wz(U(h,aB(e,a)),([t,n,r])=>{r&&yH()?Gz(e,n-t):g(-t)}),Wz(U(mB(cB(a,!1),e,m),$z(([e,t,n])=>!e&&!n&&t!==0),eB(([e,t])=>t),iB(1)),g),Jz(U(d,eB(e=>({top:-e}))),t),Wz(U(l,aB(f,u),eB(([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=RB(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=>{Gz(e,n),requestAnimationFrame(()=>{Gz(t,{top:n}),requestAnimationFrame(()=>{Gz(e,0),Gz(m,!1)})})}),{deviation:e}},Uz(PB,UV,nH,EV,bB,iV)),_H,OV,dB(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),Uz(YV,dH,kV,pH,rH,fH,iH,mH,sH,bB,aH))));function xH(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 SH=typeof document<`u`?k.useLayoutEffect:k.useEffect;function CH(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=k.createContext({});function c(e,n){e.propsReady!==void 0&&Gz(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];Gz(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];Gz(i,n[r])}e.propsReady!==void 0&&Gz(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];Gz(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=sB(e[t.events[r]]),n),{})}return{Component:k.forwardRef(function(t,a){let{children:d,...f}=t,[p]=k.useState(()=>Vz(pB(e),e=>{c(e,f)})),[m]=k.useState(Iz(u,p));SH(()=>{for(let e of o)e in f&&Wz(m[e],f[e]);return()=>{Object.values(m).map(Kz)}},[f,m,p]),SH(()=>{c(p,f)}),k.useImperativeHandle(a,Nz(l(p)));let h=n;return(0,A.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,A.jsx)(h,{...xH([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=k.useContext(s)[e];SH(()=>Wz(n,t),[t,n])},useEmitterValue:e=>{let t=k.useContext(s)[e],n=k.useCallback(e=>Wz(t,e),[t]);return k.useSyncExternalStore(n,()=>qz(t),()=>qz(t))},usePublisher:e=>{let t=k.useContext(s);return k.useCallback(n=>{Gz(t[e],n)},[t,e])}}}var wH=k.createContext(void 0),TH=k.createContext(void 0),EH=`-webkit-sticky`,DH=`sticky`,OH=vH(()=>{if(typeof document>`u`)return DH;let e=document.createElement(`div`);return e.style.position=EH,e.style.position===EH?EH:DH}),kH=typeof document<`u`?k.useLayoutEffect:k.useEffect;function AH(e){return`self`in e}function jH(e){return`body`in e}function MH(e,t,n,r=Bz,i,a){let o=k.useRef(null),s=k.useRef(null),c=k.useRef(null),l=k.useCallback(n=>{let r,i,o,l=n.target;if(jH(l)||AH(l)){let e=AH(l)?l:l.defaultView;o=a===!0?EB(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?EB(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():ad.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]);k.useEffect(()=>{let e=i||o.current;return wB(e),r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{wB(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;AH(r)?(u=Math.max(cV(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?EB(r,r.scrollX):r.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=cV(r,a===!0?`width`:`height`),d=a===!0?EB(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,LV(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:DB(r,p)}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:DB(o.current,e.top)}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function NH(e){return e}var PH=dB(([e,t])=>({...e,...t}),Uz(bH,dB(()=>{let e=W(e=>`Item ${e}`),t=W(e=>`Group ${e}`),n=W({}),r=W(NH),i=W(`div`),a=W(Bz),o=(e,t=null)=>cB(U(n,eB(t=>t[e]),Qz()),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`)}}))),FH=({height:e})=>(0,A.jsx)(`div`,{style:{height:e}}),IH={overflowAnchor:`none`,position:OH(),zIndex:1},LH={overflowAnchor:`none`},RH={...LH,display:`inline-block`,height:`100%`},zH=k.memo(function({showTopList:e=!1}){let t=nU(`listState`),n=rU(`sizeRanges`),r=nU(`useWindowScroll`),i=nU(`customScrollParent`),a=rU(`windowScrollContainerState`),o=rU(`scrollContainerState`),s=i||r?a:o,c=nU(`itemContent`),l=nU(`context`),u=nU(`groupContent`),d=nU(`trackItemSizes`),f=nU(`itemSize`),p=nU(`log`),m=rU(`gap`),h=nU(`horizontalDirection`),{callbackRef:g}=AB(n,f,d,e?Bz:s,p,m,i,h,nU(`skipAnimationFrameInResizeObserver`)),[_,v]=k.useState(0);tU(`deviation`,e=>{_!==e&&v(e)});let y=nU(`EmptyPlaceholder`),b=nU(`ScrollSeekPlaceholder`)??FH,x=nU(`ListComponent`),S=nU(`ItemComponent`),C=nU(`GroupComponent`),w=nU(`computeItemKey`),T=nU(`isSeeking`),E=nU(`groupIndices`).length>0,D=nU(`alignToBottom`),ee=nU(`initialItemFinalLocationReached`),te=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},...ee?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,A.jsx)(y,{...GH(y,l)}):(0,A.jsx)(x,{...GH(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:te,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=w(n+t.firstItemIndex,e.data,l);return T?(0,k.createElement)(b,{...GH(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,k.createElement)(C,{...GH(C,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:IH},u(e.index,l)):(0,k.createElement)(S,{...GH(S,l),...KH(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?RH:LH},E?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),BH={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},VH={outline:`none`,overflowX:`auto`,position:`relative`},HH=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),UH=(e,t,n=0)=>({...HH(e),position:t?`relative`:`absolute`,top:t?-n:0}),WH={position:OH(),top:0,width:`100%`,zIndex:1};function GH(e,t){if(typeof e!=`string`)return{context:t}}function KH(e,t){return{item:typeof e==`string`?void 0:t}}var qH=k.memo(function(){let e=nU(`HeaderComponent`),t=rU(`headerHeight`),n=nU(`HeaderFooterTag`),r=OB(k.useMemo(()=>e=>{t(cV(e,`height`))},[t]),!0,nU(`skipAnimationFrameInResizeObserver`)),i=nU(`context`);return e==null?null:(0,A.jsx)(n,{ref:r,children:(0,A.jsx)(e,{...GH(e,i)})})}),JH=k.memo(function(){let e=nU(`FooterComponent`),t=rU(`footerHeight`),n=nU(`HeaderFooterTag`),r=OB(k.useMemo(()=>e=>{t(cV(e,`height`))},[t]),!0,nU(`skipAnimationFrameInResizeObserver`)),i=nU(`context`);return e==null?null:(0,A.jsx)(n,{ref:r,children:(0,A.jsx)(e,{...GH(e,i)})})});function YH({useEmitter:e,useEmitterValue:t,usePublisher:n}){return k.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}=MH(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,A.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?VH:BH,...i},tabIndex:0,...o,...GH(c,a),children:r})})}function XH({useEmitter:e,useEmitterValue:t,usePublisher:n}){return k.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=k.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=MH(s,l,c,t(`scrollerRef`),f);return kH(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,A.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...GH(c,a),children:r})})}var ZH=({children:e})=>{let t=k.useContext(wH),n=rU(`viewportHeight`),r=rU(`fixedItemHeight`),i=nU(`alignToBottom`),a=nU(`horizontalDirection`),o=OB(k.useMemo(()=>Fz(n,e=>cV(e,a?`width`:`height`)),[n,a]),!0,nU(`skipAnimationFrameInResizeObserver`));return k.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,A.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:HH(i),children:e})},QH=({children:e})=>{let t=k.useContext(wH),n=rU(`windowViewportRect`),r=rU(`fixedItemHeight`),i=nU(`customScrollParent`),a=nU(`useWindowScroll`),o=nU(`topListHeight`),s=NB(n,i,nU(`skipAnimationFrameInResizeObserver`)),c=nU(`alignToBottom`);return k.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,A.jsx)(`div`,{"data-viewport-type":`window`,ref:s,style:UH(c,a,o),children:e})},$H=({children:e})=>{let t=nU(`TopItemListComponent`)??`div`,n=nU(`headerHeight`);return(0,A.jsx)(t,{style:{...WH,marginTop:`${n}px`},...GH(t,nU(`context`)),children:e})},{Component:eU,useEmitter:tU,useEmitterValue:nU,usePublisher:rU}=CH(PH,{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`}},k.memo(function(e){let t=nU(`useWindowScroll`),n=nU(`topItemsIndexes`).length>0,r=nU(`customScrollParent`),i=nU(`context`);return(0,A.jsxs)(r||t?aU:iU,{...e,context:i,children:[n&&(0,A.jsx)($H,{children:(0,A.jsx)(zH,{showTopList:!0})}),(0,A.jsxs)(r||t?QH:ZH,{children:[(0,A.jsx)(qH,{}),(0,A.jsx)(zH,{}),(0,A.jsx)(JH,{})]})]})})),iU=YH({useEmitter:tU,useEmitterValue:nU,usePublisher:rU}),aU=XH({useEmitter:tU,useEmitterValue:nU,usePublisher:rU}),oU=eU,sU=dB(([e,t])=>({...e,...t}),Uz(bH,dB(()=>{let e=W(e=>(0,A.jsxs)(`td`,{children:[`Item $`,e]})),t=W(null),n=W(e=>(0,A.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=W(null),i=W(null),a=W({}),o=W(NH),s=W(Bz),c=(e,t=null)=>cB(U(a,eB(t=>t[e]),Qz()),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`)}}))),cU=({height:e})=>(0,A.jsx)(`tr`,{children:(0,A.jsx)(`td`,{style:{height:e}})}),lU=({height:e})=>(0,A.jsx)(`tr`,{children:(0,A.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),uU={overflowAnchor:`none`},dU={position:OH(),zIndex:2,overflowAnchor:`none`},fU=k.memo(function({showTopList:e=!1}){let t=vU(`listState`),n=vU(`computeItemKey`),r=vU(`firstItemIndex`),i=vU(`context`),a=vU(`isSeeking`),o=vU(`fixedHeaderHeight`),s=vU(`groupIndices`).length>0,c=vU(`itemContent`),l=vU(`groupContent`),u=vU(`ScrollSeekPlaceholder`)??cU,d=vU(`GroupComponent`),f=vU(`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,k.createElement)(u,{...GH(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,k.createElement)(d,{...GH(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...dU,top:o}},l(t.index,i)):(0,k.createElement)(f,{...GH(f,i),...KH(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?{...dU,top:o+g}:uU},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),pU=k.memo(function(){let e=vU(`listState`),t=vU(`topItemsIndexes`).length>0,n=yU(`sizeRanges`),r=vU(`useWindowScroll`),i=vU(`customScrollParent`),a=yU(`windowScrollContainerState`),o=yU(`scrollContainerState`),s=i||r?a:o,c=vU(`trackItemSizes`),{callbackRef:l,ref:u}=AB(n,vU(`itemSize`),c,s,vU(`log`),void 0,i,!1,vU(`skipAnimationFrameInResizeObserver`)),[d,f]=k.useState(0);_U(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=vU(`EmptyPlaceholder`),m=vU(`FillerRow`)??lU,h=vU(`TableBodyComponent`),g=vU(`paddingTopAddition`),_=vU(`statefulTotalCount`),v=vU(`context`);if(_===0&&p!=null)return(0,A.jsx)(p,{...GH(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,A.jsx)(m,{context:v,height:b},`padding-top`):null,C=x>0?(0,A.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,A.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...GH(h,v),children:[S,t&&(0,A.jsx)(fU,{showTopList:!0}),(0,A.jsx)(fU,{}),C]})}),mU=({children:e})=>{let t=k.useContext(wH),n=yU(`viewportHeight`),r=yU(`fixedItemHeight`),i=OB(k.useMemo(()=>Fz(n,e=>cV(e,`height`)),[n]),!0,vU(`skipAnimationFrameInResizeObserver`));return k.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,A.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:HH(!1),children:e})},hU=({children:e})=>{let t=k.useContext(wH),n=yU(`windowViewportRect`),r=yU(`fixedItemHeight`),i=vU(`customScrollParent`),a=vU(`useWindowScroll`),o=NB(n,i,vU(`skipAnimationFrameInResizeObserver`));return k.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,A.jsx)(`div`,{"data-viewport-type":`window`,ref:o,style:UH(!1,a),children:e})},{Component:gU,useEmitter:_U,useEmitterValue:vU,usePublisher:yU}=CH(sU,{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`}},k.memo(function(e){let t=vU(`useWindowScroll`),n=vU(`customScrollParent`),r=yU(`fixedHeaderHeight`),i=yU(`fixedFooterHeight`),a=vU(`fixedHeaderContent`),o=vU(`fixedFooterContent`),s=vU(`context`),c=OB(k.useMemo(()=>Fz(r,e=>cV(e,`height`)),[r]),!0,vU(`skipAnimationFrameInResizeObserver`)),l=OB(k.useMemo(()=>Fz(i,e=>cV(e,`height`)),[i]),!0,vU(`skipAnimationFrameInResizeObserver`)),u=n||t?xU:bU,d=n||t?hU:mU,f=vU(`TableComponent`),p=vU(`TableHeadComponent`),m=vU(`TableFooterComponent`),h=a?(0,A.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...GH(p,s),children:a()},`TableHead`):null,g=o?(0,A.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...GH(m,s),children:o()},`TableFoot`):null;return(0,A.jsx)(u,{...e,...GH(u,s),children:(0,A.jsx)(d,{children:(0,A.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...GH(f,s),children:[h,(0,A.jsx)(pU,{},`TableBody`),g]})})})})),bU=YH({useEmitter:_U,useEmitterValue:vU,usePublisher:yU}),xU=XH({useEmitter:_U,useEmitterValue:vU,usePublisher:yU}),SU=gU,CU={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},wU={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:TU,floor:EU,max:DU,min:OU,round:kU}=Math;function AU(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function jU(e){return{...wU,items:e}}function MU(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function NU(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var PU=dB(([{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=W(0),C=W(0),w=W(CU),T=W({height:0,width:0}),E=W({height:0,width:0}),D=lB(),ee=lB(),te=W(0),ne=W(null),re=W({column:0,row:0}),ie=lB(),ae=lB(),oe=W(!1),se=W(0),O=W(!0),ce=W(!1),le=W(!1);Wz(U(m,aB(se),$z(([e,t])=>t!==0)),()=>{Gz(O,!1)}),Wz(U(mB(m,O,E,T,se,ce),$z(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{Gz(ce,!0),PV(1,()=>{Gz(D,e)}),Yz(U(l),()=>{Gz(t,[0,0]),Gz(O,!0)})}),Jz(U(ae,$z(e=>e!=null&&e.scrollTop>0),tB(0)),C),Wz(U(m,aB(ae),$z(([,e])=>e!=null)),([,e])=>{e&&(Gz(T,e.viewport),Gz(E,e.item),Gz(re,e.gap),e.scrollTop>0&&(Gz(oe,!0),Yz(U(l,rB(1)),e=>{Gz(oe,!1)}),Gz(c,{top:e.scrollTop})))}),Jz(U(T,eB(({height:e})=>e)),d),Jz(U(mB(hB(T,MU),hB(E,MU),hB(re,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),hB(l)),eB(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),ie),Jz(U(mB(hB(S),r,hB(re,NU),hB(E,MU),hB(T,MU),hB(ne),hB(C),hB(oe),hB(O),hB(se)),$z(([,,,,,,,e])=>!e),eB(([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 CU;if(p===0){let t=FV(l,e);return jU(AU(t,t+Math.max(s-1,0),o))}let h=FU(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*EU((t+d)/(f+d)),_=h*TU((n+d)/(f+d))-1,_=OU(e-1,DU(_,h-1)),g=OU(_,DU(0,g))):(g=0,_=-1);let v=AU(g,_,o),{bottom:y,top:b}=IU(a,r,i,v),x=TU(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),w),Jz(U(ne,$z(e=>e!==null),eB(e=>e.length)),S),Jz(U(mB(T,E,w,re),$z(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),eB(([e,t,{items:n},r])=>{let{bottom:i,top:a}=IU(e,r,t,n);return[a,i]}),Qz(rV)),t);let ue=W(!1);Jz(U(l,aB(ue),eB(([e,t])=>t||e!==0)),ue);let de=uB(U(mB(w,S),$z(([{items:e}])=>e.length>0),aB(ue),$z(([[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}),eB(([[,e]])=>e-1),Qz())),fe=uB(U(hB(w),$z(({items:e})=>e.length>0&&e[0].index===0),tB(0),Qz())),pe=uB(U(hB(w),aB(oe),$z(([{items:e},t])=>e.length>0&&!t),eB(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),Qz(nV),iB(0)));Jz(pe,p.scrollSeekRangeChanged),Jz(U(D,aB(T,E,S,re),eB(([e,t,n,r,i])=>{let a=jV(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=DU(0,l,OU(r-1,l));let u=LU(t,i,n,l);return o===`end`?u=kU(u-t.height+n.height):o===`center`&&(u=kU(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let me=cB(U(w,eB(e=>e.offsetBottom+e.bottom)),0);return Jz(U(b,eB(e=>({height:e.visibleHeight,width:e.visibleWidth}))),T),{customScrollParent:g,data:ne,deviation:te,footerHeight:i,gap:re,headerHeight:a,increaseViewportBy:e,initialItemCount:C,itemDimensions:E,overscan:n,restoreStateFrom:ae,scrollBy:o,scrollContainerState:s,scrollHeight:ee,scrollTo:c,scrollToIndex:D,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:T,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:w,horizontalDirection:le,initialTopMostItemIndex:se,totalListHeight:me,...f,endReached:de,propsReady:h,rangeChanged:pe,startReached:fe,stateChanged:ie,stateRestoreInProgress:oe,...x}},Uz(YV,PB,UV,pH,kV,mH,bB));function FU(e,t,n){return DU(1,EU((e+n)/(EU(t)+n)))}function IU(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=LU(e,t,n,r[0].index);return{bottom:LU(e,t,n,r[r.length-1].index)+i,top:a}}function LU(e,t,n,r){let i=EU(r/FU(e.width,n.width,t.column)),a=i*n.height+DU(0,i-1)*t.row;return a>0?a+t.row:a}var RU=dB(([e,t])=>({...e,...t}),Uz(PU,dB(()=>{let e=W(e=>`Item ${e}`),t=W({}),n=W(null),r=W(`virtuoso-grid-item`),i=W(`virtuoso-grid-list`),a=W(NH),o=W(`div`),s=W(Bz),c=(e,n=null)=>cB(U(t,eB(t=>t[e]),Qz()),n),l=W(!1),u=W(!1);return Jz(hB(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`)}}))),zU=k.memo(function(){let e=GU(`gridState`),t=GU(`listClassName`),n=GU(`itemClassName`),r=GU(`itemContent`),i=GU(`computeItemKey`),a=GU(`isSeeking`),o=KU(`scrollHeight`),s=GU(`ItemComponent`),c=GU(`ListComponent`),l=GU(`ScrollSeekPlaceholder`),u=GU(`context`),d=KU(`itemDimensions`),f=KU(`gap`),p=GU(`log`),m=GU(`stateRestoreInProgress`),h=KU(`reportReadyState`),g=OB(k.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:YU(`column-gap`,getComputedStyle(e).columnGap,p),row:YU(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return kH(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,A.jsx)(c,{className:t,ref:g,...GH(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,A.jsx)(l,{...GH(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,k.createElement)(s,{...GH(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),BU=k.memo(function(){let e=GU(`HeaderComponent`),t=KU(`headerHeight`),n=GU(`headerFooterTag`),r=OB(k.useMemo(()=>e=>{t(cV(e,`height`))},[t]),!0,!1),i=GU(`context`);return e==null?null:(0,A.jsx)(n,{ref:r,children:(0,A.jsx)(e,{...GH(e,i)})})}),VU=k.memo(function(){let e=GU(`FooterComponent`),t=KU(`footerHeight`),n=GU(`headerFooterTag`),r=OB(k.useMemo(()=>e=>{t(cV(e,`height`))},[t]),!0,!1),i=GU(`context`);return e==null?null:(0,A.jsx)(n,{ref:r,children:(0,A.jsx)(e,{...GH(e,i)})})}),HU=({children:e})=>{let t=k.useContext(TH),n=KU(`itemDimensions`),r=KU(`viewportDimensions`),i=OB(k.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return k.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,A.jsx)(`div`,{ref:i,style:HH(!1),children:e})},UU=({children:e})=>{let t=k.useContext(TH),n=KU(`windowViewportRect`),r=KU(`itemDimensions`),i=GU(`customScrollParent`),a=GU(`useWindowScroll`),o=NB(n,i,!1);return k.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,A.jsx)(`div`,{ref:o,style:UH(!1,a),children:e})},{Component:aue,useEmitter:WU,useEmitterValue:GU,usePublisher:KU}=CH(RU,{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`}},k.memo(function({...e}){let t=GU(`useWindowScroll`),n=GU(`customScrollParent`),r=n||t?JU:qU,i=n||t?UU:HU,a=GU(`context`);return(0,A.jsx)(r,{...e,...GH(r,a),children:(0,A.jsxs)(i,{children:[(0,A.jsx)(BU,{}),(0,A.jsx)(zU,{}),(0,A.jsx)(VU,{})]})})})),qU=YH({useEmitter:WU,useEmitterValue:GU,usePublisher:KU}),JU=XH({useEmitter:WU,useEmitterValue:GU,usePublisher:KU});function YU(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,_B.WARN),t===`normal`?0:parseInt(t??`0`,10)}var XU=`Collapsible`,[ZU,QU]=hg(XU),[$U,eW]=ZU(XU),tW=k.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=vg({prop:r,defaultProp:i??!1,onChange:o,caller:XU});return(0,A.jsx)($U,{scope:n,disabled:a,contentId:O_(),open:c,onOpenToggle:k.useCallback(()=>l(e=>!e),[l]),children:(0,A.jsx)(Sg.div,{"data-state":sW(c),"data-disabled":a?``:void 0,...s,ref:t})})});tW.displayName=XU;var nW=`CollapsibleTrigger`,rW=k.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=eW(nW,n);return(0,A.jsx)(Sg.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":sW(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:gg(e.onClick,i.onOpenToggle)})});rW.displayName=nW;var iW=`CollapsibleContent`,aW=k.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=eW(iW,e.__scopeCollapsible);return(0,A.jsx)(yg,{present:n||i.open,children:({present:e})=>(0,A.jsx)(oW,{...r,ref:t,present:e})})});aW.displayName=iW;var oW=k.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=eW(iW,n),[s,c]=k.useState(r),l=k.useRef(null),u=el(t,l),d=k.useRef(0),f=d.current,p=k.useRef(0),m=p.current,h=o.open||s,g=k.useRef(h),_=k.useRef(void 0);return k.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),_g(()=>{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,A.jsx)(Sg.div,{"data-state":sW(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 sW(e){return e?`open`:`closed`}var cW=tW,lW=rW,uW=aW,dW=`Accordion`,fW=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[pW,mW,hW]=T_(dW),[gW,oue]=hg(dW,[hW,QU]),_W=QU(),vW=k.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,A.jsx)(pW.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,A.jsx)(wW,{...a,ref:t}):(0,A.jsx)(CW,{...i,ref:t})})});vW.displayName=dW;var[yW,bW]=gW(dW),[xW,SW]=gW(dW,{collapsible:!1}),CW=k.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=vg({prop:n,defaultProp:r??``,onChange:i,caller:dW});return(0,A.jsx)(yW,{scope:e.__scopeAccordion,value:k.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:k.useCallback(()=>a&&c(``),[a,c]),children:(0,A.jsx)(xW,{scope:e.__scopeAccordion,collapsible:a,children:(0,A.jsx)(DW,{...o,ref:t})})})}),wW=k.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=vg({prop:n,defaultProp:r??[],onChange:i,caller:dW}),c=k.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=k.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,A.jsx)(yW,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,A.jsx)(xW,{scope:e.__scopeAccordion,collapsible:!0,children:(0,A.jsx)(DW,{...a,ref:t})})})}),[TW,EW]=gW(dW),DW=k.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=el(k.useRef(null),t),c=mW(n),l=j_(i)===`ltr`,u=gg(e.onKeyDown,e=>{if(!fW.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,A.jsx)(TW,{scope:n,disabled:r,direction:i,orientation:a,children:(0,A.jsx)(pW.Slot,{scope:n,children:(0,A.jsx)(Sg.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),OW=`AccordionItem`,[kW,AW]=gW(OW),jW=k.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=EW(OW,n),o=bW(OW,n),s=_W(n),c=O_(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,A.jsx)(kW,{scope:n,open:l,disabled:u,triggerId:c,children:(0,A.jsx)(cW,{"data-orientation":a.orientation,"data-state":RW(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});jW.displayName=OW;var MW=`AccordionHeader`,NW=k.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=EW(dW,n),a=AW(MW,n);return(0,A.jsx)(Sg.h3,{"data-orientation":i.orientation,"data-state":RW(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});NW.displayName=MW;var PW=`AccordionTrigger`,FW=k.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=EW(dW,n),a=AW(PW,n),o=SW(PW,n),s=_W(n);return(0,A.jsx)(pW.ItemSlot,{scope:n,children:(0,A.jsx)(lW,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});FW.displayName=PW;var IW=`AccordionContent`,LW=k.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=EW(dW,n),a=AW(IW,n),o=_W(n);return(0,A.jsx)(uW,{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}})});LW.displayName=IW;function RW(e){return e?`open`:`closed`}var zW=vW,BW=jW,VW=NW,HW=FW,UW=LW,WW=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},GW=(e=>e?WW(e):WW),KW=e=>e;function qW(e,t=KW){let n=k.useSyncExternalStore(e.subscribe,k.useCallback(()=>t(e.getState()),[e,t]),k.useCallback(()=>t(e.getInitialState()),[e,t]));return k.useDebugValue(n),n}var JW=e=>{let t=GW(e),n=e=>qW(t,e);return Object.assign(n,t),n},YW=(e=>e?JW(e):JW);Object.freeze({status:`aborted`});function G(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 XW=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ZW=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},QW={};function $W(e){return e&&Object.assign(QW,e),QW}function eG(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 tG(e,t){return typeof t==`bigint`?t.toString():t}function nG(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function rG(e){return e==null}function iG(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function aG(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 oG=Symbol(`evaluating`);function sG(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==oG)return r===void 0&&(r=oG,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function cG(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function lG(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function uG(e){return JSON.stringify(e)}function dG(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var fG=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function pG(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var mG=nG(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function hG(e){if(pG(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(pG(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function gG(e){return hG(e)?{...e}:Array.isArray(e)?[...e]:e}var _G=new Set([`string`,`number`,`symbol`]);function vG(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function yG(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function bG(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 xG(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var SG={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function CG(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 yG(e,lG(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 cG(this,`shape`,e),e},checks:[]}))}function wG(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 yG(e,lG(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 cG(this,`shape`,r),r},checks:[]}))}function TG(e,t){if(!hG(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 yG(e,lG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return cG(this,`shape`,n),n}}))}function EG(e,t){if(!hG(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return yG(e,lG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return cG(this,`shape`,n),n}}))}function DG(e,t){return yG(e,lG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return cG(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function OG(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 yG(t,lG(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 cG(this,`shape`,i),i},checks:[]}))}function kG(e,t,n){return yG(t,lG(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 cG(this,`shape`,i),i}}))}function AG(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 jG(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function MG(e){return typeof e==`string`?e:e?.message}function NG(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=MG(e.inst?._zod.def?.error?.(e))??MG(t?.error?.(e))??MG(n.customError?.(e))??MG(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function PG(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function FG(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var IG=(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,tG,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},LG=G(`$ZodError`,IG),RG=G(`$ZodError`,IG,{Parent:Error});function zG(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 BG(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 VG=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 XW;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>NG(e,a,$W())));throw fG(t,i?.callee),t}return o.value},HG=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=>NG(e,a,$W())));throw fG(t,i?.callee),t}return o.value},UG=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 XW;return a.issues.length?{success:!1,error:new(e??LG)(a.issues.map(e=>NG(e,i,$W())))}:{success:!0,data:a.value}},WG=UG(RG),GG=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=>NG(e,i,$W())))}:{success:!0,data:a.value}},KG=GG(RG),qG=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return VG(e)(t,n,i)},JG=e=>(t,n,r)=>VG(e)(t,n,r),YG=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return HG(e)(t,n,i)},XG=e=>async(t,n,r)=>HG(e)(t,n,r),ZG=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return UG(e)(t,n,i)},QG=e=>(t,n,r)=>UG(e)(t,n,r),$G=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return GG(e)(t,n,i)},eK=e=>async(t,n,r)=>GG(e)(t,n,r),tK=/^[cC][^\s-]{8,}$/,nK=/^[0-9a-z]+$/,rK=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iK=/^[0-9a-vA-V]{20}$/,aK=/^[A-Za-z0-9]{27}$/,oK=/^[a-zA-Z0-9_-]{21}$/,sK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,cK=/^([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})$/,lK=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)$/,uK=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dK=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function fK(){return new RegExp(dK,`u`)}var pK=/^(?:(?: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])$/,mK=/^(([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}|:))$/,hK=/^((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])$/,gK=/^(([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])$/,_K=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vK=/^[A-Za-z0-9_-]*$/,yK=/^\+[1-9]\d{6,14}$/,bK=`(?:(?:\\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])))`,xK=RegExp(`^${bK}$`);function SK(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 CK(e){return RegExp(`^${SK(e)}$`)}function wK(e){let t=SK({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(`^${bK}T(?:${r})$`)}var TK=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},EK=/^-?\d+$/,DK=/^-?\d+(?:\.\d+)?$/,OK=/^(?:true|false)$/i,kK=/^null$/i,AK=/^[^A-Z]*$/,jK=/^[^a-z]*$/,MK=G(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),NK={number:`number`,bigint:`bigint`,object:`date`},PK=G(`$ZodCheckLessThan`,(e,t)=>{MK.init(e,t);let n=NK[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})}}),FK=G(`$ZodCheckGreaterThan`,(e,t)=>{MK.init(e,t);let n=NK[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})}}),IK=G(`$ZodCheckMultipleOf`,(e,t)=>{MK.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):aG(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})}}),LK=G(`$ZodCheckNumberFormat`,(e,t)=>{MK.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=SG[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=EK)}),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})}}),RK=G(`$ZodCheckMaxLength`,(e,t)=>{var n;MK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!rG(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=PG(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),zK=G(`$ZodCheckMinLength`,(e,t)=>{var n;MK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!rG(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=PG(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),BK=G(`$ZodCheckLengthEquals`,(e,t)=>{var n;MK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!rG(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=PG(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})}}),VK=G(`$ZodCheckStringFormat`,(e,t)=>{var n,r;MK.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=()=>{})}),HK=G(`$ZodCheckRegex`,(e,t)=>{VK.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})}}),UK=G(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=AK,VK.init(e,t)}),WK=G(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=jK,VK.init(e,t)}),GK=G(`$ZodCheckIncludes`,(e,t)=>{MK.init(e,t);let n=vG(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})}}),KK=G(`$ZodCheckStartsWith`,(e,t)=>{MK.init(e,t);let n=RegExp(`^${vG(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})}}),qK=G(`$ZodCheckEndsWith`,(e,t)=>{MK.init(e,t);let n=RegExp(`.*${vG(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})}}),JK=G(`$ZodCheckOverwrite`,(e,t)=>{MK.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),YK=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(`
|
|
335
|
+
`).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(`
|
|
336
|
+
`))}},XK={major:4,minor:3,patch:6},ZK=G(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=XK;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=AG(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 XW;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=AG(e,t))});else{if(e.issues.length===t)continue;r||=AG(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(AG(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new XW;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 XW;return o.then(e=>t(e,r,a))}return t(o,r,a)}}sG(e,`~standard`,()=>({validate:t=>{try{let n=WG(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return KG(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),QK=G(`$ZodString`,(e,t)=>{ZK.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??TK(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}}),$K=G(`$ZodStringFormat`,(e,t)=>{VK.init(e,t),QK.init(e,t)}),eq=G(`$ZodGUID`,(e,t)=>{t.pattern??=cK,$K.init(e,t)}),tq=G(`$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??=lK(e)}else t.pattern??=lK();$K.init(e,t)}),nq=G(`$ZodEmail`,(e,t)=>{t.pattern??=uK,$K.init(e,t)}),rq=G(`$ZodURL`,(e,t)=>{$K.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})}}}),iq=G(`$ZodEmoji`,(e,t)=>{t.pattern??=fK(),$K.init(e,t)}),aq=G(`$ZodNanoID`,(e,t)=>{t.pattern??=oK,$K.init(e,t)}),oq=G(`$ZodCUID`,(e,t)=>{t.pattern??=tK,$K.init(e,t)}),sq=G(`$ZodCUID2`,(e,t)=>{t.pattern??=nK,$K.init(e,t)}),cq=G(`$ZodULID`,(e,t)=>{t.pattern??=rK,$K.init(e,t)}),lq=G(`$ZodXID`,(e,t)=>{t.pattern??=iK,$K.init(e,t)}),uq=G(`$ZodKSUID`,(e,t)=>{t.pattern??=aK,$K.init(e,t)}),dq=G(`$ZodISODateTime`,(e,t)=>{t.pattern??=wK(t),$K.init(e,t)}),fq=G(`$ZodISODate`,(e,t)=>{t.pattern??=xK,$K.init(e,t)}),pq=G(`$ZodISOTime`,(e,t)=>{t.pattern??=CK(t),$K.init(e,t)}),mq=G(`$ZodISODuration`,(e,t)=>{t.pattern??=sK,$K.init(e,t)}),hq=G(`$ZodIPv4`,(e,t)=>{t.pattern??=pK,$K.init(e,t),e._zod.bag.format=`ipv4`}),gq=G(`$ZodIPv6`,(e,t)=>{t.pattern??=mK,$K.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})}}}),_q=G(`$ZodCIDRv4`,(e,t)=>{t.pattern??=hK,$K.init(e,t)}),vq=G(`$ZodCIDRv6`,(e,t)=>{t.pattern??=gK,$K.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 yq(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var bq=G(`$ZodBase64`,(e,t)=>{t.pattern??=_K,$K.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{yq(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function xq(e){if(!vK.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return yq(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Sq=G(`$ZodBase64URL`,(e,t)=>{t.pattern??=vK,$K.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{xq(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Cq=G(`$ZodE164`,(e,t)=>{t.pattern??=yK,$K.init(e,t)});function wq(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 Tq=G(`$ZodJWT`,(e,t)=>{$K.init(e,t),e._zod.check=n=>{wq(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Eq=G(`$ZodNumber`,(e,t)=>{ZK.init(e,t),e._zod.pattern=e._zod.bag.pattern??DK,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}}),Dq=G(`$ZodNumberFormat`,(e,t)=>{LK.init(e,t),Eq.init(e,t)}),Oq=G(`$ZodBoolean`,(e,t)=>{ZK.init(e,t),e._zod.pattern=OK,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}}),kq=G(`$ZodNull`,(e,t)=>{ZK.init(e,t),e._zod.pattern=kK,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}}),Aq=G(`$ZodUnknown`,(e,t)=>{ZK.init(e,t),e._zod.parse=e=>e}),jq=G(`$ZodNever`,(e,t)=>{ZK.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Mq(e,t,n){e.issues.length&&t.issues.push(...jG(n,e.issues)),t.value[n]=e.value}var Nq=G(`$ZodArray`,(e,t)=>{ZK.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=>Mq(t,n,e))):Mq(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Pq(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...jG(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Fq(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=xG(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Iq(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=>Pq(e,n,i,t,u))):Pq(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 Lq=G(`$ZodObject`,(e,t)=>{if(ZK.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=nG(()=>Fq(t));sG(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=pG,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=>Pq(n,t,e,s,r))):Pq(i,t,e,s,r)}return i?Iq(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Rq=G(`$ZodObjectJIT`,(e,t)=>{Lq.init(e,t);let n=e._zod.parse,r=nG(()=>Fq(t)),i=e=>{let t=new YK([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=uG(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=uG(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
337
|
+
if (${n}.issues.length) {
|
|
338
|
+
if (${o} in input) {
|
|
339
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
340
|
+
...iss,
|
|
341
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
342
|
+
})));
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (${n}.value === undefined) {
|
|
347
|
+
if (${o} in input) {
|
|
348
|
+
newResult[${o}] = undefined;
|
|
349
|
+
}
|
|
350
|
+
} else {
|
|
351
|
+
newResult[${o}] = ${n}.value;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
`):t.write(`
|
|
355
|
+
if (${n}.issues.length) {
|
|
356
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
357
|
+
...iss,
|
|
358
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
359
|
+
})));
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (${n}.value === undefined) {
|
|
363
|
+
if (${o} in input) {
|
|
364
|
+
newResult[${o}] = undefined;
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
newResult[${o}] = ${n}.value;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=pG,s=!QW.jitless,c=s&&mG.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?Iq([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function zq(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=>!AG(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=>NG(e,r,$W())))}),t)}var Bq=G(`$ZodUnion`,(e,t)=>{ZK.init(e,t),sG(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),sG(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),sG(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),sG(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=>iG(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=>zq(t,i,e,a)):zq(s,i,e,a)}}),Vq=G(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Bq.init(e,t);let n=e._zod.parse;sG(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=nG(()=>{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(!pG(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)}}),Hq=G(`$ZodIntersection`,(e,t)=>{ZK.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])=>Wq(e,t,n)):Wq(e,i,a)}});function Uq(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(hG(e)&&hG(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=Uq(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=Uq(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 Wq(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}),AG(e))return e;let o=Uq(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Gq=G(`$ZodRecord`,(e,t)=>{ZK.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!hG(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(...jG(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...jG(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`&&DK.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=>NG(e,r,$W())),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(...jG(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...jG(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Kq=G(`$ZodEnum`,(e,t)=>{ZK.init(e,t);let n=eG(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>_G.has(typeof e)).map(e=>typeof e==`string`?vG(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}}),qq=G(`$ZodLiteral`,(e,t)=>{if(ZK.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`?vG(e):e?vG(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}}),Jq=G(`$ZodTransform`,(e,t)=>{ZK.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZW(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 XW;return n.value=i,n}});function Yq(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Xq=G(`$ZodOptional`,(e,t)=>{ZK.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,sG(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),sG(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${iG(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=>Yq(t,e.value)):Yq(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Zq=G(`$ZodExactOptional`,(e,t)=>{Xq.init(e,t),sG(e._zod,`values`,()=>t.innerType._zod.values),sG(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Qq=G(`$ZodNullable`,(e,t)=>{ZK.init(e,t),sG(e._zod,`optin`,()=>t.innerType._zod.optin),sG(e._zod,`optout`,()=>t.innerType._zod.optout),sG(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${iG(e.source)}|null)$`):void 0}),sG(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)}),$q=G(`$ZodDefault`,(e,t)=>{ZK.init(e,t),e._zod.optin=`optional`,sG(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=>eJ(e,t)):eJ(r,t)}});function eJ(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var tJ=G(`$ZodPrefault`,(e,t)=>{ZK.init(e,t),e._zod.optin=`optional`,sG(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))}),nJ=G(`$ZodNonOptional`,(e,t)=>{ZK.init(e,t),sG(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=>rJ(t,e)):rJ(i,e)}});function rJ(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 iJ=G(`$ZodCatch`,(e,t)=>{ZK.init(e,t),sG(e._zod,`optin`,()=>t.innerType._zod.optin),sG(e._zod,`optout`,()=>t.innerType._zod.optout),sG(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=>NG(e,n,$W()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>NG(e,n,$W()))},input:e.value}),e.issues=[]),e)}}),aJ=G(`$ZodPipe`,(e,t)=>{ZK.init(e,t),sG(e._zod,`values`,()=>t.in._zod.values),sG(e._zod,`optin`,()=>t.in._zod.optin),sG(e._zod,`optout`,()=>t.out._zod.optout),sG(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=>oJ(e,t.in,n)):oJ(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>oJ(e,t.out,n)):oJ(r,t.out,n)}});function oJ(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var sJ=G(`$ZodReadonly`,(e,t)=>{ZK.init(e,t),sG(e._zod,`propValues`,()=>t.innerType._zod.propValues),sG(e._zod,`values`,()=>t.innerType._zod.values),sG(e._zod,`optin`,()=>t.innerType?._zod?.optin),sG(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(cJ):cJ(r)}});function cJ(e){return e.value=Object.freeze(e.value),e}var lJ=G(`$ZodCustom`,(e,t)=>{MK.init(e,t),ZK.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=>uJ(t,n,r,e));uJ(i,n,r,e)}});function uJ(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(FG(e))}}var dJ,fJ=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 pJ(){return new fJ}(dJ=globalThis).__zod_globalRegistry??(dJ.__zod_globalRegistry=pJ());var mJ=globalThis.__zod_globalRegistry;function hJ(e,t){return new e({type:`string`,...bG(t)})}function gJ(e,t){return new e({type:`string`,coerce:!0,...bG(t)})}function _J(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...bG(t)})}function vJ(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...bG(t)})}function yJ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...bG(t)})}function bJ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...bG(t)})}function xJ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...bG(t)})}function SJ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...bG(t)})}function CJ(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...bG(t)})}function wJ(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...bG(t)})}function TJ(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...bG(t)})}function EJ(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...bG(t)})}function DJ(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...bG(t)})}function OJ(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...bG(t)})}function kJ(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...bG(t)})}function AJ(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...bG(t)})}function jJ(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...bG(t)})}function MJ(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...bG(t)})}function NJ(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...bG(t)})}function PJ(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...bG(t)})}function FJ(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...bG(t)})}function IJ(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...bG(t)})}function LJ(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...bG(t)})}function RJ(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...bG(t)})}function zJ(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...bG(t)})}function BJ(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...bG(t)})}function VJ(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...bG(t)})}function HJ(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...bG(t)})}function UJ(e,t){return new e({type:`number`,checks:[],...bG(t)})}function WJ(e,t){return new e({type:`number`,coerce:!0,checks:[],...bG(t)})}function GJ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...bG(t)})}function KJ(e,t){return new e({type:`boolean`,...bG(t)})}function qJ(e,t){return new e({type:`null`,...bG(t)})}function JJ(e){return new e({type:`unknown`})}function YJ(e,t){return new e({type:`never`,...bG(t)})}function XJ(e,t){return new PK({check:`less_than`,...bG(t),value:e,inclusive:!1})}function ZJ(e,t){return new PK({check:`less_than`,...bG(t),value:e,inclusive:!0})}function QJ(e,t){return new FK({check:`greater_than`,...bG(t),value:e,inclusive:!1})}function $J(e,t){return new FK({check:`greater_than`,...bG(t),value:e,inclusive:!0})}function eY(e,t){return new IK({check:`multiple_of`,...bG(t),value:e})}function tY(e,t){return new RK({check:`max_length`,...bG(t),maximum:e})}function nY(e,t){return new zK({check:`min_length`,...bG(t),minimum:e})}function rY(e,t){return new BK({check:`length_equals`,...bG(t),length:e})}function iY(e,t){return new HK({check:`string_format`,format:`regex`,...bG(t),pattern:e})}function aY(e){return new UK({check:`string_format`,format:`lowercase`,...bG(e)})}function oY(e){return new WK({check:`string_format`,format:`uppercase`,...bG(e)})}function sY(e,t){return new GK({check:`string_format`,format:`includes`,...bG(t),includes:e})}function cY(e,t){return new KK({check:`string_format`,format:`starts_with`,...bG(t),prefix:e})}function lY(e,t){return new qK({check:`string_format`,format:`ends_with`,...bG(t),suffix:e})}function uY(e){return new JK({check:`overwrite`,tx:e})}function dY(e){return uY(t=>t.normalize(e))}function fY(){return uY(e=>e.trim())}function pY(){return uY(e=>e.toLowerCase())}function mY(){return uY(e=>e.toUpperCase())}function hY(){return uY(e=>dG(e))}function gY(e,t,n){return new e({type:`array`,element:t,...bG(n)})}function _Y(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...bG(n)})}function vY(e){let t=yY(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(FG(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(FG(r))}},e(n.value,n)));return t}function yY(e,t){let n=new MK({check:`custom`,...bG(t)});return n._zod.check=e,n}function bY(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??mJ,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 xY(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,xY(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`&&wY(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 SY(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>
|
|
371
|
+
|
|
372
|
+
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 CY(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:EY(t,`input`,e.processors),output:EY(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function wY(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 wY(r.element,n);if(r.type===`set`)return wY(r.valueType,n);if(r.type===`lazy`)return wY(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 wY(r.innerType,n);if(r.type===`intersection`)return wY(r.left,n)||wY(r.right,n);if(r.type===`record`||r.type===`map`)return wY(r.keyType,n)||wY(r.valueType,n);if(r.type===`pipe`)return wY(r.in,n)||wY(r.out,n);if(r.type===`object`){for(let e in r.shape)if(wY(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(wY(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(wY(e,n))return!0;return!!(r.rest&&wY(r.rest,n))}return!1}var TY=(e,t={})=>n=>{let r=bY({...n,processors:t});return xY(e,r),SY(r,e),CY(r,e)},EY=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=bY({...i??{},target:a,io:t,processors:n});return xY(e,o),SY(o,e),CY(o,e)},DY={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},OY=(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=DY[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}))])}},kY=(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)},AY=(e,t,n,r)=>{n.type=`boolean`},jY=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},MY=(e,t,n,r)=>{n.not={}},NY=(e,t,n,r)=>{let i=e._zod.def,a=eG(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},PY=(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},FY=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},IY=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},LY=(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=xY(a.element,t,{...r,path:[...r.path,`items`]})},RY=(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]=xY(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=xY(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},zY=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>xY(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},BY=(e,t,n,r)=>{let i=e._zod.def,a=xY(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=xY(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]]},VY=(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=xY(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=xY(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=xY(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)}},HY=(e,t,n,r)=>{let i=e._zod.def,a=xY(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`}]},UY=(e,t,n,r)=>{let i=e._zod.def;xY(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},WY=(e,t,n,r)=>{let i=e._zod.def;xY(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},GY=(e,t,n,r)=>{let i=e._zod.def;xY(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)))},KY=(e,t,n,r)=>{let i=e._zod.def;xY(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},qY=(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;xY(a,t,r);let o=t.seen.get(e);o.ref=a},JY=(e,t,n,r)=>{let i=e._zod.def;xY(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},YY=(e,t,n,r)=>{let i=e._zod.def;xY(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},XY=G(`ZodISODateTime`,(e,t)=>{dq.init(e,t),SX.init(e,t)});function ZY(e){return zJ(XY,e)}var QY=G(`ZodISODate`,(e,t)=>{fq.init(e,t),SX.init(e,t)});function $Y(e){return BJ(QY,e)}var eX=G(`ZodISOTime`,(e,t)=>{pq.init(e,t),SX.init(e,t)});function tX(e){return VJ(eX,e)}var nX=G(`ZodISODuration`,(e,t)=>{mq.init(e,t),SX.init(e,t)});function rX(e){return HJ(nX,e)}var iX=(e,t)=>{LG.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>BG(e,t)},flatten:{value:t=>zG(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,tG,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,tG,2)}},isEmpty:{get(){return e.issues.length===0}}})};G(`ZodError`,iX);var aX=G(`ZodError`,iX,{Parent:Error}),oX=VG(aX),sX=HG(aX),cX=UG(aX),lX=GG(aX),uX=qG(aX),dX=JG(aX),fX=YG(aX),pX=XG(aX),mX=ZG(aX),hX=QG(aX),gX=$G(aX),_X=eK(aX),vX=G(`ZodType`,(e,t)=>(ZK.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:EY(e,`input`),output:EY(e,`output`)}}),e.toJSONSchema=TY(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(lG(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)=>yG(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>oX(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>cX(e,t,n),e.parseAsync=async(t,n)=>sX(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>lX(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>uX(e,t,n),e.decode=(t,n)=>dX(e,t,n),e.encodeAsync=async(t,n)=>fX(e,t,n),e.decodeAsync=async(t,n)=>pX(e,t,n),e.safeEncode=(t,n)=>mX(e,t,n),e.safeDecode=(t,n)=>hX(e,t,n),e.safeEncodeAsync=async(t,n)=>gX(e,t,n),e.safeDecodeAsync=async(t,n)=>_X(e,t,n),e.refine=(t,n)=>e.check(LZ(t,n)),e.superRefine=t=>e.check(RZ(t)),e.overwrite=t=>e.check(uY(t)),e.optional=()=>yZ(e),e.exactOptional=()=>xZ(e),e.nullable=()=>CZ(e),e.nullish=()=>yZ(CZ(e)),e.nonoptional=t=>kZ(e,t),e.array=()=>tZ(e),e.or=t=>aZ([e,t]),e.and=t=>lZ(e,t),e.transform=t=>NZ(e,_Z(t)),e.default=t=>TZ(e,t),e.prefault=t=>DZ(e,t),e.catch=t=>jZ(e,t),e.pipe=t=>NZ(e,t),e.readonly=()=>FZ(e),e.describe=t=>{let n=e.clone();return mJ.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return mJ.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return mJ.get(e);let n=e.clone();return mJ.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),yX=G(`_ZodString`,(e,t)=>{QK.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>OY(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(iY(...t)),e.includes=(...t)=>e.check(sY(...t)),e.startsWith=(...t)=>e.check(cY(...t)),e.endsWith=(...t)=>e.check(lY(...t)),e.min=(...t)=>e.check(nY(...t)),e.max=(...t)=>e.check(tY(...t)),e.length=(...t)=>e.check(rY(...t)),e.nonempty=(...t)=>e.check(nY(1,...t)),e.lowercase=t=>e.check(aY(t)),e.uppercase=t=>e.check(oY(t)),e.trim=()=>e.check(fY()),e.normalize=(...t)=>e.check(dY(...t)),e.toLowerCase=()=>e.check(pY()),e.toUpperCase=()=>e.check(mY()),e.slugify=()=>e.check(hY())}),bX=G(`ZodString`,(e,t)=>{QK.init(e,t),yX.init(e,t),e.email=t=>e.check(_J(CX,t)),e.url=t=>e.check(CJ(EX,t)),e.jwt=t=>e.check(RJ(VX,t)),e.emoji=t=>e.check(wJ(DX,t)),e.guid=t=>e.check(vJ(wX,t)),e.uuid=t=>e.check(yJ(TX,t)),e.uuidv4=t=>e.check(bJ(TX,t)),e.uuidv6=t=>e.check(xJ(TX,t)),e.uuidv7=t=>e.check(SJ(TX,t)),e.nanoid=t=>e.check(TJ(OX,t)),e.guid=t=>e.check(vJ(wX,t)),e.cuid=t=>e.check(EJ(kX,t)),e.cuid2=t=>e.check(DJ(AX,t)),e.ulid=t=>e.check(OJ(jX,t)),e.base64=t=>e.check(FJ(RX,t)),e.base64url=t=>e.check(IJ(zX,t)),e.xid=t=>e.check(kJ(MX,t)),e.ksuid=t=>e.check(AJ(NX,t)),e.ipv4=t=>e.check(jJ(PX,t)),e.ipv6=t=>e.check(MJ(FX,t)),e.cidrv4=t=>e.check(NJ(IX,t)),e.cidrv6=t=>e.check(PJ(LX,t)),e.e164=t=>e.check(LJ(BX,t)),e.datetime=t=>e.check(ZY(t)),e.date=t=>e.check($Y(t)),e.time=t=>e.check(tX(t)),e.duration=t=>e.check(rX(t))});function xX(e){return hJ(bX,e)}var SX=G(`ZodStringFormat`,(e,t)=>{$K.init(e,t),yX.init(e,t)}),CX=G(`ZodEmail`,(e,t)=>{nq.init(e,t),SX.init(e,t)}),wX=G(`ZodGUID`,(e,t)=>{eq.init(e,t),SX.init(e,t)}),TX=G(`ZodUUID`,(e,t)=>{tq.init(e,t),SX.init(e,t)}),EX=G(`ZodURL`,(e,t)=>{rq.init(e,t),SX.init(e,t)}),DX=G(`ZodEmoji`,(e,t)=>{iq.init(e,t),SX.init(e,t)}),OX=G(`ZodNanoID`,(e,t)=>{aq.init(e,t),SX.init(e,t)}),kX=G(`ZodCUID`,(e,t)=>{oq.init(e,t),SX.init(e,t)}),AX=G(`ZodCUID2`,(e,t)=>{sq.init(e,t),SX.init(e,t)}),jX=G(`ZodULID`,(e,t)=>{cq.init(e,t),SX.init(e,t)}),MX=G(`ZodXID`,(e,t)=>{lq.init(e,t),SX.init(e,t)}),NX=G(`ZodKSUID`,(e,t)=>{uq.init(e,t),SX.init(e,t)}),PX=G(`ZodIPv4`,(e,t)=>{hq.init(e,t),SX.init(e,t)}),FX=G(`ZodIPv6`,(e,t)=>{gq.init(e,t),SX.init(e,t)}),IX=G(`ZodCIDRv4`,(e,t)=>{_q.init(e,t),SX.init(e,t)}),LX=G(`ZodCIDRv6`,(e,t)=>{vq.init(e,t),SX.init(e,t)}),RX=G(`ZodBase64`,(e,t)=>{bq.init(e,t),SX.init(e,t)}),zX=G(`ZodBase64URL`,(e,t)=>{Sq.init(e,t),SX.init(e,t)}),BX=G(`ZodE164`,(e,t)=>{Cq.init(e,t),SX.init(e,t)}),VX=G(`ZodJWT`,(e,t)=>{Tq.init(e,t),SX.init(e,t)}),HX=G(`ZodNumber`,(e,t)=>{Eq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kY(e,t,n,r),e.gt=(t,n)=>e.check(QJ(t,n)),e.gte=(t,n)=>e.check($J(t,n)),e.min=(t,n)=>e.check($J(t,n)),e.lt=(t,n)=>e.check(XJ(t,n)),e.lte=(t,n)=>e.check(ZJ(t,n)),e.max=(t,n)=>e.check(ZJ(t,n)),e.int=t=>e.check(GX(t)),e.safe=t=>e.check(GX(t)),e.positive=t=>e.check(QJ(0,t)),e.nonnegative=t=>e.check($J(0,t)),e.negative=t=>e.check(XJ(0,t)),e.nonpositive=t=>e.check(ZJ(0,t)),e.multipleOf=(t,n)=>e.check(eY(t,n)),e.step=(t,n)=>e.check(eY(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 UX(e){return UJ(HX,e)}var WX=G(`ZodNumberFormat`,(e,t)=>{Dq.init(e,t),HX.init(e,t)});function GX(e){return GJ(WX,e)}var KX=G(`ZodBoolean`,(e,t)=>{Oq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AY(e,t,n,r)});function qX(e){return KJ(KX,e)}var JX=G(`ZodNull`,(e,t)=>{kq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jY(e,t,n,r)});function YX(e){return qJ(JX,e)}var XX=G(`ZodUnknown`,(e,t)=>{Aq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ZX(){return JJ(XX)}var QX=G(`ZodNever`,(e,t)=>{jq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MY(e,t,n,r)});function $X(e){return YJ(QX,e)}var eZ=G(`ZodArray`,(e,t)=>{Nq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LY(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(nY(t,n)),e.nonempty=t=>e.check(nY(1,t)),e.max=(t,n)=>e.check(tY(t,n)),e.length=(t,n)=>e.check(rY(t,n)),e.unwrap=()=>e.element});function tZ(e,t){return gY(eZ,e,t)}var nZ=G(`ZodObject`,(e,t)=>{Rq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RY(e,t,n,r),sG(e,`shape`,()=>t.shape),e.keyof=()=>pZ(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ZX()}),e.loose=()=>e.clone({...e._zod.def,catchall:ZX()}),e.strict=()=>e.clone({...e._zod.def,catchall:$X()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>TG(e,t),e.safeExtend=t=>EG(e,t),e.merge=t=>DG(e,t),e.pick=t=>CG(e,t),e.omit=t=>wG(e,t),e.partial=(...t)=>OG(vZ,e,t[0]),e.required=(...t)=>kG(OZ,e,t[0])});function rZ(e,t){return new nZ({type:`object`,shape:e??{},...bG(t)})}var iZ=G(`ZodUnion`,(e,t)=>{Bq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zY(e,t,n,r),e.options=t.options});function aZ(e,t){return new iZ({type:`union`,options:e,...bG(t)})}var oZ=G(`ZodDiscriminatedUnion`,(e,t)=>{iZ.init(e,t),Vq.init(e,t)});function sZ(e,t,n){return new oZ({type:`union`,options:t,discriminator:e,...bG(n)})}var cZ=G(`ZodIntersection`,(e,t)=>{Hq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BY(e,t,n,r)});function lZ(e,t){return new cZ({type:`intersection`,left:e,right:t})}var uZ=G(`ZodRecord`,(e,t)=>{Gq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VY(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function dZ(e,t,n){return new uZ({type:`record`,keyType:e,valueType:t,...bG(n)})}var fZ=G(`ZodEnum`,(e,t)=>{Kq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NY(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 fZ({...t,checks:[],...bG(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 fZ({...t,checks:[],...bG(r),entries:i})}});function pZ(e,t){return new fZ({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...bG(t)})}var mZ=G(`ZodLiteral`,(e,t)=>{qq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PY(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 hZ(e,t){return new mZ({type:`literal`,values:Array.isArray(e)?e:[e],...bG(t)})}var gZ=G(`ZodTransform`,(e,t)=>{Jq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IY(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZW(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(FG(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(FG(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function _Z(e){return new gZ({type:`transform`,transform:e})}var vZ=G(`ZodOptional`,(e,t)=>{Xq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yZ(e){return new vZ({type:`optional`,innerType:e})}var bZ=G(`ZodExactOptional`,(e,t)=>{Zq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xZ(e){return new bZ({type:`optional`,innerType:e})}var SZ=G(`ZodNullable`,(e,t)=>{Qq.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function CZ(e){return new SZ({type:`nullable`,innerType:e})}var wZ=G(`ZodDefault`,(e,t)=>{$q.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function TZ(e,t){return new wZ({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():gG(t)}})}var EZ=G(`ZodPrefault`,(e,t)=>{tJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function DZ(e,t){return new EZ({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():gG(t)}})}var OZ=G(`ZodNonOptional`,(e,t)=>{nJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function kZ(e,t){return new OZ({type:`nonoptional`,innerType:e,...bG(t)})}var AZ=G(`ZodCatch`,(e,t)=>{iJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function jZ(e,t){return new AZ({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var MZ=G(`ZodPipe`,(e,t)=>{aJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qY(e,t,n,r),e.in=t.in,e.out=t.out});function NZ(e,t){return new MZ({type:`pipe`,in:e,out:t})}var PZ=G(`ZodReadonly`,(e,t)=>{sJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JY(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function FZ(e){return new PZ({type:`readonly`,innerType:e})}var IZ=G(`ZodCustom`,(e,t)=>{lJ.init(e,t),vX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FY(e,t,n,r)});function LZ(e,t={}){return _Y(IZ,e,t)}function RZ(e){return vY(e)}function zZ(e,t){return NZ(_Z(e),t)}function BZ(e){return gJ(bX,e)}function VZ(e){return WJ(HX,e)}var HZ=e=>typeof e==`string`,UZ=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},WZ=e=>e==null?``:String(e),GZ=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},KZ=/###/g,qZ=e=>e&&e.includes(`###`)?e.replace(KZ,`.`):e,JZ=e=>!e||HZ(e),YZ=(e,t,n)=>{let r=HZ(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(JZ(e))return{};let t=qZ(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return JZ(e)?{}:{obj:e,k:qZ(r[i])}},XZ=(e,t,n)=>{let{obj:r,k:i}=YZ(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=YZ(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=YZ(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ZZ=(e,t,n,r)=>{let{obj:i,k:a}=YZ(e,t,Object);i[a]=i[a]||[],i[a].push(n)},QZ=(e,t)=>{let{obj:n,k:r}=YZ(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},$Z=(e,t,n)=>{let r=QZ(e,n);return r===void 0?QZ(t,n):r},eQ=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?HZ(e[r])||e[r]instanceof String||HZ(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):eQ(e[r],t[r],n):e[r]=t[r]);return e},tQ=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),nQ={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},rQ=e=>HZ(e)?e.replace(/[&<>"'\/]/g,e=>nQ[e]):e,iQ=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}},aQ=[` `,`,`,`?`,`!`,`;`],oQ=new iQ(20),sQ=(e,t,n)=>{t||=``,n||=``;let r=aQ.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=oQ.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},cQ=(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},lQ=e=>e?.replace(/_/g,`-`),uQ={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)}},dQ=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||uQ,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=>HZ(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),HZ(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)}},fQ=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)})}},pQ=class extends fQ{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):HZ(n)&&i?o.push(...n.split(i)):o.push(n)));let s=QZ(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!HZ(n)?s:cQ(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),XZ(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)(HZ(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=QZ(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?eQ(s,n,i):s={...s,...n},XZ(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}},mQ={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}},hQ=Symbol(`i18next/PATH_KEY`);function gQ(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===hQ?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function _Q(e,t){let{[hQ]:n}=e(gQ()),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 vQ=e=>!HZ(e)&&typeof e!=`boolean`&&typeof e!=`number`,yQ=class e extends fQ{constructor(e,t={}){super(),GZ([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=dQ.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=vQ(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&&!sQ(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:HZ(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:HZ(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=_Q(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?_Q(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&&!HZ(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=vQ(E),ee=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(ee)&&!(HZ(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:vQ(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&&HZ(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=HZ(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&&!HZ(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=HZ(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=mQ.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 HZ(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?_Q(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&&!HZ(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(HZ(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&&!HZ(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}},bQ=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dQ.create(`languageUtils`)}getScriptPartFromCode(e){if(e=lQ(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=lQ(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(HZ(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)),HZ(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 HZ(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))):HZ(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},xQ={zero:0,one:1,two:2,few:3,many:4,other:5},SQ={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},CQ=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=dQ.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=lQ(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!`),SQ;if(!e.match(/-|_/))return SQ;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)=>xQ[e]-xQ[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))}},wQ=(e,t,n,r=`.`,i=!0)=>{let a=$Z(e,t,n);return!a&&i&&HZ(n)&&(a=cQ(e,n,r),a===void 0&&(a=cQ(t,n,r))),a},TQ=e=>e.replace(/\$/g,`$$$$`),EQ=class{constructor(e={}){this.logger=dQ.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?rQ:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?tQ(i):a||`{{`,this.suffix=o?tQ(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?tQ(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?tQ(l):``,this.nestingPrefix=d?tQ(d):f||tQ(`$t(`),this.nestingSuffix=p?tQ(p):m||tQ(`)`),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=wQ(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(wQ(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=HZ(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 !HZ(a)&&!this.useRawValueToEscape&&(a=WZ(a));let s=t.safeValue(a);if(e=e.replace(i[0],TQ(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(`${tQ(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&&!HZ(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&&!HZ(i))return i;HZ(i)||(i=WZ(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}},DQ=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}},OQ=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(lQ(r),i),t[o]=s),s(n)}},kQ=e=>(t,n,r)=>e(lQ(n),r)(t),AQ=class{constructor(e={}){this.logger=dQ.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?OQ:kQ;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()]=OQ(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}=DQ(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)}},jQ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},MQ=class extends fQ{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=dQ.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=>{ZZ(n.loaded,[i],a),jQ(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();HZ(e)&&(e=this.languageUtils.toResolveHierarchy(e)),HZ(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)}}},NQ=()=>({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]),HZ(e[1])&&(t.defaultValue=e[1]),HZ(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}),PQ=e=>(HZ(e.ns)&&(e.ns=[e.ns]),HZ(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),HZ(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),FQ=()=>{},IQ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},LQ=class e extends fQ{constructor(e={},t){if(super(),this.options=PQ(e),this.services={},this.logger=dQ,this.modules={external:[]},IQ(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&&(HZ(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=NQ();this.options={...n,...this.options,...PQ(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?dQ.init(r(this.modules.logger),this.options):dQ.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:AQ;let t=new bQ(this.options);this.store=new pQ(this.options.resources,this.options);let n=this.services;n.logger=dQ,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new CQ(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 EQ(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new MQ(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 yQ(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||=FQ,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=UZ(),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=FQ){let n=t,r=HZ(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=UZ();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||=FQ,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`&&mQ.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=UZ();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=HZ(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(HZ(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=_Q(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=_Q(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=_Q(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return HZ(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=UZ();return this.options.ns?(HZ(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=UZ();HZ(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 bQ(NQ());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=FQ){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 pQ(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={...NQ().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new EQ(n)}return a.translator=new yQ(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();LQ.createInstance,LQ.dir,LQ.init,LQ.loadResources,LQ.reloadResources,LQ.use,LQ.changeLanguage,LQ.getFixedT;var RQ=LQ.t;LQ.exists,LQ.setDefaultNamespace,LQ.hasLoadedNamespace,LQ.loadNamespaces,LQ.loadLanguages;var zQ={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},BQ=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function VQ(e){let t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(zQ[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(BQ),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 HQ=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,UQ=/<\/?([^\s]+?)[/\s>]/,WQ=/^\s*$/,GQ=/^(script|style)$/i,KQ=`\0`,qQ=Object.create(null);function JQ(e){e.forEach(function(e){if(e.type===`text`){e.content=e.content.split(KQ).join(`<`);return}if(e.type===`comment`){e.comment=e.comment.split(KQ).join(`<`);return}for(let t in e.attrs){let n=e.attrs[t];typeof n==`string`&&n.indexOf(KQ)>-1&&(e.attrs[t]=n.split(KQ).join(`<`))}e.children.length&&JQ(e.children)})}function YQ(e,t){let n=t&&t.components||qQ,r=t&&t.allowedTags,i=!1;if(r){let t=typeof r==`function`?r:function(e){return r.indexOf(e)>-1},n=``,a=0;HQ.lastIndex=0;let o;for(;o=HQ.exec(e);){let r=o[0];n+=e.slice(a,o.index);let s=r.match(UQ);r.startsWith(`<!--`)||s&&t(s[1])?(n+=r,a=o.index+r.length):(i=!0,n+=KQ,a=o.index+1,HQ.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=HQ.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=VQ(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=VQ(i),s.type===`tag`&&n[s.name]&&(s.type=`component`,l=!0);let t=!1;if(!l&&!s.voidElement&&GQ.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);WQ.test(n)&&(n=` `),(t>-1&&c+b.length>=0||n!==` `)&&b.push({type:`text`,content:n})}}),i&&JQ(a),a}function XQ(e){let t=[];for(let n in e)e[n]===null?t.push(n):t.push(n+`="`+String(e[n]).replace(/"/g,`"`)+`"`);return t.length?` `+t.join(` `):``}function ZQ(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?XQ(t.attrs):``)+n,t.voidElement?e:e+t.children.reduce(ZQ,``)+`</`+t.name+`>`}case`comment`:return e+=`<!--`+t.comment+`-->`,e}}function QQ(e){return e.reduce(function(e,t){return e+ZQ(``,t)},``)}var $Q={parse:YQ,stringify:QQ},e$=(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);s$(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},t$={},n$=(e,t,n,r)=>{s$(n)&&t$[n]||(s$(n)&&(t$[n]=new Date),e$(e,t,n,r))},r$=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},i$=(e,t,n)=>{e.loadNamespaces(t,r$(e,n))},a$=(e,t,n,r)=>{if(s$(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return i$(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,r$(e,r))},o$=(e,t,n={})=>!t.languages||!t.languages.length?(n$(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}}),s$=e=>typeof e==`string`,c$=e=>typeof e==`object`&&!!e,l$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,u$={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},d$=e=>u$[e],f$=e=>e.replace(l$,d$),p$={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:f$,transDefaultProps:void 0},m$=(e={})=>{p$={...p$,...e}},h$=()=>p$,g$,_$=e=>{g$=e},v$=()=>g$,y$=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},b$=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?S$(t):t},x$=e=>Array.isArray(e)&&e.every(k.isValidElement),S$=e=>Array.isArray(e)?e:[e],C$=(e,t)=>{let n={...t};return n.props={...t.props,...e.props},n},w$=e=>{let t={};if(!e)return t;let n=e=>{S$(e).forEach(e=>{s$(e)||(y$(e)?n(b$(e)):c$(e)&&!(0,k.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t},T$=(e,t,n,r)=>{if(!e)return``;let i=``,a=S$(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(s$(e)){i+=`${e}`;return}if((0,k.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=s$(d)?d:T$(d,t,n,r);i+=`<${c}>${e}</${c}>`;return}let f=T$(d,t,n,r);i+=`<${a}>${f}</${a}>`;return}if(e===null){e$(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(c$(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}e$(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}e$(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},E$=(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=>{S$(e).forEach(e=>{s$(e)||(y$(e)?u(b$(e)):c$(e)&&!(0,k.isValidElement)(e)&&Object.assign(l,e))})};u(e);let d=Object.keys(l),f=$Q.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=b$(e),i=g(r,t.children,n);return x$(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},h=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,k.cloneElement)(e,{key:r},i?void 0:t))):n.push(...k.Children.map([e],e=>{if(e.type===k.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,k.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,k.cloneElement)(e,n,i?null:t)}))},g=(e,n,a)=>{let l=S$(e),u=S$(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];s$(t)&&(v[e]=f$(t))});let y=Object.keys(v).length===0?_:C$({props:v},_),b=(0,k.isValidElement)(y),x=b&&y$(n,!0)&&!n.voidElement,S=c&&c$(y)&&y.dummy&&!b,C=c$(t)&&Object.hasOwnProperty.call(t,n.name);if(s$(y)){let t=r.services.interpolator.interpolate(y,p,r.language);e.push(t)}else if(y$(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,k.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,k.isValidElement)(a)&&a.type===n.name){if(i===t){r=a;break}i+=1}}let o=g(r?S$(b$(r)):l,n.children,a);e.push((0,k.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(c$(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:h$().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,k.createElement)(t,{key:`${n.name}-${u}`},s)):e.push(s)}return e},[])};return b$(g([{dummy:!0,children:e||[]}],f,S$(e||[]))[0])},D$=(e,t,n)=>{let r=e.key||t,i=(0,k.cloneElement)(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function a(){return(0,k.createElement)(k.Fragment,null,i)}return(0,k.createElement)(a,{key:r})},O$=(e,t)=>e.map((e,n)=>D$(e,n,t)),k$=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:D$(e[r],r,t)})}),n},A$=(e,t,n,r)=>e?Array.isArray(e)?O$(e,t):c$(e)?k$(e,t):(n$(n,`TRANS_INVALID_COMPONENTS`,`<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null,j$=e=>!c$(e)||Array.isArray(e)?!1:Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function M$({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||v$();if(!m)return n$(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={...h$(),...m.options?.react},_=l||h.ns||m.options?.defaultNS;_=s$(_)?[_]:_||[`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=T$(e,g,m,r),w=s||y?.defaultValue||C||g.transEmptyNodeValue||(typeof r==`function`?_Q(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=w$(e);D&&typeof D.count==`number`&&t===void 0&&(t=D.count);let ee=o||t!==void 0&&!m.options?.interpolation?.alwaysFormat||!e?y.interpolation:{interpolation:{...y.interpolation,prefix:`#$?`,suffix:`?$#`}},te={...y,context:i||y.context,count:t,...o,...ee,defaultValue:w,ns:_},ne=E?h(E,te):w;ne===E&&w&&(ne=w);let re=A$(S,ne,m,r),ie=re||e,ae=null;j$(re)&&(ae=re,ie=e);let oe=E$(ie,ae,ne,m,g,te,b),se=n??g.defaultTransParent;return se?(0,k.createElement)(se,p,oe):oe}var N$={type:`3rdParty`,init(e){m$(e.options.react),_$(e)}},P$=(0,k.createContext)(),F$=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function I$({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,k.useContext)(P$)||{},g=u||m||v$(),_=d||g?.t.bind(g);return M$({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 L$=i((e=>{var t=o();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,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(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})),R$=i(((e,t)=>{t.exports=L$()})),z$=R$(),B$={t:(e,t)=>{if(s$(t))return t;if(c$(t)&&s$(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},V$=()=>()=>{},H$=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,k.useContext)(P$)||{},a=n||r||v$();a&&!a.reportNamespaces&&(a.reportNamespaces=new F$),a||n$(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,k.useMemo)(()=>({...h$(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=s$(l)?[l]:l||[`translation`],d=(0,k.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,k.useRef)(0),p=(0,k.useCallback)(e=>{if(!a)return V$;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,k.useRef)(),h=(0,k.useCallback)(()=>{if(!a)return B$;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>o$(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,k.useState)(0),{t:v,ready:y}=(0,z$.useSyncExternalStore)(p,h,h);(0,k.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?a$(a,t.lng,d,e):i$(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,k.useRef)(null),S=(0,k.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,k.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)=>(n$(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&&n$(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?a$(a,t.lng,d,n):i$(a,d,n)})}return w},U$=[`__proto__`,`constructor`,`prototype`];function W$(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(U$.indexOf(o)>-1)return{};!e[o]&&n&&(e[o]=new n),e=e[o]}if(i())return{};var s=r(a.shift());return U$.indexOf(s)>-1?{}:{obj:e,k:s}}function G$(e,t,n){var r=W$(e,t,Object),i=r.obj,a=r.k;i!==void 0&&(i[a]=n)}function K$(e,t){var n=W$(e,t),r=n.obj,i=n.k;if(r)return r[i]}var q$=[],J$=q$.forEach,Y$=q$.slice;function X$(e){return J$.call(Y$.call(arguments,1),function(t){if(t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];U$.indexOf(i)>-1||e[i]===void 0&&(e[i]=t[i])}}),e}function Z$(e,t){let n=t&&t.cache?t.cache:s1,r=t&&t.serializer?t.serializer:a1;return(t&&t.strategy?t.strategy:n1)(e,{cache:n,serializer:r})}function Q$(e){return e==null||typeof e==`number`||typeof e==`boolean`}function $$(e,t,n,r){let i=Q$(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function e1(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 t1(e,t,n,r,i){return n.bind(t,e,r,i)}function n1(e,t){let n=e.length===1?$$:e1;return t1(e,this,n,t.cache.create(),t.serializer)}function r1(e,t){return t1(e,this,e1,t.cache.create(),t.serializer)}function i1(e,t){return t1(e,this,$$,t.cache.create(),t.serializer)}var a1=function(){return JSON.stringify(arguments)},o1=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},s1={create:function(){return new o1}},c1={variadic:r1,monadic:i1},l1=/(?:[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 u1(e){let t={};return e.replace(l1,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 d1=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function f1(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(d1).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 p1(e){return e.replace(/^(.*?)-/,``)}var m1=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,h1=/^(@+)?(\+|#+)?[rs]?$/g,sue=/(\*)(0+)|(#+)(0+)|(0+)/g,g1=/^(0+)$/;function _1(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(h1,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 v1(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 cue(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)),!g1.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function y1(e){return v1(e)||{}}function lue(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=p1(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,...y1(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...y1(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(sue,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(g1.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(m1.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(m1,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,..._1(e)});continue}if(h1.test(n.stem)){t={...t,..._1(n.stem)};continue}let e=v1(n.stem);e&&(t={...t,...e});let r=cue(n.stem);r&&(t={...t,...r})}return t}var uue=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 b1(e){return e.type===0}function due(e){return e.type===1}function x1(e){return e.type===2}function S1(e){return e.type===3}function C1(e){return e.type===4}function w1(e){return e.type===5}function T1(e){return e.type===6}function fue(e){return e.type===7}function E1(e){return e.type===8}function D1(e){return!!(e&&typeof e==`object`&&e.type===0)}function O1(e){return!!(e&&typeof e==`object`&&e.type===1)}var k1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,A1={"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 pue(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=mue(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 mue(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),(A1[r||``]||A1[n||``]||A1[`${n}-001`]||A1[`001`])[0]}var hue=RegExp(`^${k1.source}*`),gue=RegExp(`${k1.source}*$`);function j1(e,t){return{start:e,end:t}}var _ue=!!Object.fromEntries,vue=!!String.prototype.trimStart,yue=!!String.prototype.trimEnd,M1=_ue?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},bue=vue?function(e){return e.trimStart()}:function(e){return e.replace(hue,``)},xue=yue?function(e){return e.trimEnd()}:function(e){return e.replace(gue,``)},N1=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function Sue(e,t){return N1.lastIndex=t,N1.exec(e)[1]??``}function Cue(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 wue=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=Cue(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:j1(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:j1(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,j1(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&P1(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:j1(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()||!P1(this.char()))return this.error(23,j1(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:j1(n,this.clonePosition())},err:null}:this.error(23,j1(o,this.clonePosition()))):this.error(26,j1(e,this.clonePosition()))}else return this.error(27,j1(n,this.clonePosition()))}else return this.error(23,j1(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&Eue(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=j1(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Tue(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,j1(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,j1(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,j1(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,j1(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:j1(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,j1(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,j1(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=Sue(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:j1(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,j1(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=xue(n.val);if(r.length===0)return this.error(6,j1(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:j1(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=j1(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=bue(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=pue(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?u1(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,j1(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,j1(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=j1(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:M1(c.val),location:u},err:null}:{val:{type:6,value:n,options:M1(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,j1(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,j1(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,j1(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=f1(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?lue(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=j1(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,j1(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:j1(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,j1(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,j1(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=j1(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()&&Due(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 P1(e){return e>=97&&e<=122||e>=65&&e<=90}function Tue(e){return P1(e)||e===47}function Eue(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 Due(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function F1(e){e.forEach(e=>{if(delete e.location,w1(e)||T1(e))for(let t in e.options)delete e.options[t].location,F1(e.options[t].value);else x1(e)&&D1(e.style)||(S1(e)||C1(e))&&O1(e.style)?delete e.style.location:E1(e)&&F1(e.children)})}function Oue(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new wue(e,t).parse();if(n.err){let e=SyntaxError(uue[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||F1(n.val),n.val}var I1=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},L1=class extends I1{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},kue=class extends I1{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},Aue=class extends I1{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function jue(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 Mue(e){return typeof e==`function`}function R1(e,t,n,r,i,a,o){if(e.length===1&&b1(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(b1(c)){s.push({type:0,value:c.value});continue}if(fue(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 Aue(e,o);let l=i[e];if(due(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(S1(c)){let e=typeof c.style==`string`?r.date[c.style]:O1(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(C1(c)){let e=typeof c.style==`string`?r.time[c.style]:O1(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(x1(c)){let e=typeof c.style==`string`?r.number[c.style]:D1(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(E1(c)){let{children:e,value:l}=c,u=i[l];if(!Mue(u))throw new kue(l,`function`,o);let d=u(R1(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(w1(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new L1(c.value,l,Object.keys(c.options),o);s.push(...R1(a.value,t,n,r,i));continue}if(T1(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new I1(`Intl.PluralRules is not available in this environment.
|
|
373
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
374
|
+
`,`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 L1(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...R1(a.value,t,n,r,i,u-(c.offset||0)));continue}}return jue(s)}function Nue(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Pue(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Nue(e[r],t[r]),n),{...e}):e}function z1(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Fue(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Z$((...e)=>new Intl.NumberFormat(...e),{cache:z1(e.number),strategy:c1.variadic}),getDateTimeFormat:Z$((...e)=>new Intl.DateTimeFormat(...e),{cache:z1(e.dateTime),strategy:c1.variadic}),getPluralRules:Z$((...e)=>new Intl.PluralRules(...e),{cache:z1(e.pluralRules),strategy:c1.variadic})}}var B1=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=>R1(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=Pue(e.formats,r),this.formatters=i&&i.formatters||Fue(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=Oue}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 Iue(e,t){return Bue(e)||zue(e,t)||Rue(e,t)||Lue()}function Lue(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
375
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rue(e,t){if(e){if(typeof e==`string`)return V1(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 V1(e,t)}}function V1(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 zue(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 Bue(e){if(Array.isArray(e))return e}function H1(e){"@babel/helpers - typeof";return H1=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},H1(e)}function U1(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 W1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?U1(Object(n),!0).forEach(function(t){Vue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hue(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function G1(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 Uue(e,t,n){return t&&G1(e.prototype,t),n&&G1(e,n),e}function Wue(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var K1=function(){function e(t){Hue(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return Uue(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=X$(r,t,this.options||{},Wue()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=B1,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?W1(W1({},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=K$(this.mem,s));try{return c||(c=new B1(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&G$(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||H1(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=Iue(r[n],2),a=i[0],o=i[1];typeof o==`string`?t[a]=o.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):t[a]=o}return t}}]),e}();K1.type=`i18nFormat`;var q1;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(q1||={});var J1=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},Gue=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,Kue=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?Gue(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 J1(`"${e}" plugin is not implemented on ${c}`,q1.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 J1(`"${e}.${t}()" is not implemented on ${c}`,q1.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=J1,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},Y1=(e=>e.Capacitor=Kue(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),X1=Y1.registerPlugin,Z1=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 Y1.Exception(e,q1.Unimplemented)}unavailable(e=`not available`){return new Y1.Exception(e,q1.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)}))}},Q1=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),$1=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),que=class extends Z1{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=$1(n).trim(),r=$1(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=Q1(e.key),n=Q1(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)}}};X1(`CapacitorCookies`,{web:()=>new que});var Jue=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)}),Yue=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},Xue=(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,e0=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=Yue(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},Zue=class extends Z1{async request(e){let t=e0(e,e.webFetchExtra),n=Xue(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 Jue(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`}))}};X1(`CapacitorHttp`,{web:()=>new Zue});var Que;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(Que||={});var $ue;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})($ue||={});var ede=class extends Z1{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`)}};X1(`SystemBars`,{web:()=>new ede});function tde(e){let t={};if(typeof e.type==`string`&&(t.type=e.type),typeof e.level==`string`&&(t.level=Pa(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 t0=u;function nde(){return t0.WEBVIEW_SERVER_URL}function rde(){return t0.CAP_SPOTLIGHT_URL}function ide(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},...ade(e),...ode(e),...sde()}}function ade(e){return Y1.getPlatform()===`ios`?{enableAppHangTracking:e.enableAppHangTracking,appHangTimeoutInterval:e.appHangTimeoutInterval}:{}}function ode(e){if(e.enableLogs&&Y1.getPlatform()===`android`)return{enableLogs:!0}}function sde(){let e=rde();if(e)return{sidecarUrl:e}}var n0=X1(`SentryCapacitor`),cde=`value`;function r0(e){let t=Bt()?.getOptions(),n=Un(e,t?.normalizeDepth,t?.normalizeMaxBreadth);return typeof n!=`object`||!n?{[cde]:n}:n}function i0(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 a0=[],lde=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(let e=0;e<64;++e)a0[e]=lde[e];function ude(e){return a0[e>>18&63]+a0[e>>12&63]+a0[e>>6&63]+a0[e&63]}function dde(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(ude(r));return i.join(``)}function fde(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(dde(e,t,t+a>o?o:t+a));return r===1?(t=e[n-1],i.push(`${a0[t>>2]+a0[t<<4&63]}==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(`${a0[t>>10]+a0[t>>4&63]+a0[t<<2&63]}=`)),i.join(``)}var o0={async sendEnvelope(e){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;let[t,n]=e,r=i0(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=i0(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=i0(JSON.stringify(n))),t.content_type=i,t.length=a.length;let o=JSON.stringify(t);r.push(...i0(o)),r.push(10),r=r.concat(a),r.push(10)}let i=200;return await n0.captureEnvelope({envelope:fde(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=ide(e);return n0.initNativeSdk({options:t})},async fetchNativeDeviceContexts(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return n0.fetchNativeDeviceContexts()},async fetchNativeLogAttributes(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return n0.fetchNativeLogAttributes()},async fetchNativeRelease(){if(!this.enableNative)throw this._DisabledNativeError;return n0.fetchNativeRelease()},async fetchNativeSdkInfo(){if(!this.enableNative)throw this._DisabledNativeError;return n0.fetchNativeSdkInfo()},crash(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;n0.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)}n0.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);n0.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);n0.setExtra({key:e,value:n})},addBreadcrumb(e){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;n0.addBreadcrumb({...e,level:e.level?this._processLevel(e.level):void 0,data:e.data?r0(e.data):void 0})}},clearBreadcrumbs(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;n0.clearBreadcrumbs()}},closeNativeSdk(){if(!this.enableNative)return D.log(this._DisabledNativeError),Promise.resolve();if(!this.isNativeClientAvailable())throw this._NativeClientError;return n0.closeNativeSdk().then(()=>{this.enableNative=!1})},setContext(e,t){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;this.platform===`android`?this.setExtra(e,t):n0.setContext({key:e,value:t===null?null:this._serializeObject(t)})}},pauseAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?n0.pauseAppHangTracking():D.warn(`PauseAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},resumeAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?n0.resumeAppHangTracking():D.warn(`ResumeAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},_processItem(e){if(o0.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!!n0},isNativeClientAvailable(){return this.isModuleLoaded()&&Y1.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:Y1.getPlatform()},pde=`DeviceContext`,mde=()=>({name:pde,processEvent:hde});async function hde(e,t,n){try{let t=await o0.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(tde):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 gde=`EventOrigin`,_de=()=>({name:gde,preprocessEvent:vde});async function vde(e){return e.tags=e.tags??{},e.tags[`event.origin`]=`javascript`,e.tags[`event.environment`]=`javascript`,e}var yde=`LogEnricher`,bde=()=>({name:yde,setup(e){xde().then(()=>{e.on(`beforeCaptureLog`,e=>{Sde(e)})},e=>{D.log(e)})}}),s0=void 0;function c0(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}async function xde(){try{let e=await o0.fetchNativeLogAttributes();s0={...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 Sde(e){if(s0===void 0)return;let t=e.attributes??{};c0(t,`device.brand`,s0.brand),c0(t,`device.model`,s0.model),c0(t,`device.family`,s0.family),c0(t,`os.name`,s0.os),c0(t,`os.version`,s0.version),c0(t,`sentry.release`,s0.release),e.attributes=t}var Cde=`Release`,wde=()=>({name:Cde,processEvent:Tde});async function Tde(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 o0.fetchNativeRelease();t&&(e.release||=`${t.id}@${t.version}+${t.build}`,e.dist||=`${t.build}`)}catch{}return e}var Ede=()=>Za({iteratee:Dde});function Dde(e){if(e.filename){let t=/^https?:\/\//.test(e.filename),n=nde();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 l0=`4.1.0`,Ode=`SdkInfo`,u0=null,d0=void 0,kde=()=>({name:Ode,processEvent:Ade,setup(e){d0=e.getOptions().sendDefaultPii,d0&&e.on(`beforeSendEvent`,(e=>{e.user?.ip_address===`{{auto}}`&&delete e.user.ip_address}))}});async function Ade(e){if(o0.platform===`ios`&&u0===null)try{u0=await o0.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||[],...u0&&[u0]||[],{name:`npm:@sentry/capacitor`,version:l0}],t.settings={infer_ip:d0?`auto`:`never`,...t.settings},e.sdk=t,e}var jde=`SentryNativeLog`,f0;async function Mde(e,t,n){let r=await n0.addListener(jde,e);n()?await r.remove():(t(r),D.log(`Native log listener set up successfully.`))}function Nde(e){if(f0)return;let t=Y1.getPlatform();if(t!==`ios`&&t!==`android`){D.log(`Native log listener is only supported on iOS and Android.`);return}let n,r=!1;f0=()=>{r=!0,f0=void 0,n?.remove()},Mde(e,e=>{n=e},()=>r).catch(e=>{D.warn(`Failed to set up native log listener:`,e),f0=void 0})}function Pde(){f0?.()}function Fde(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 p0(e,t,n){He(e,t,n)}function m0(e,t){let n=Ge(e[t]);n&&(e[t]=n)}var h0=new WeakMap;function g0(e){h0.has(e)||(h0.set(e,!0),p0(e,`setUser`,t=>n=>(o0.setUser(n),t.call(e,n))),p0(e,`setTag`,t=>(n,r)=>(o0.setTag(n,r),t.call(e,n,r))),p0(e,`setTags`,t=>n=>(Object.keys(n).forEach(e=>{o0.setTag(e,n[e])}),t.call(e,n))),p0(e,`setExtras`,t=>n=>(Object.keys(n).forEach(e=>{o0.setExtra(e,n[e])}),t.call(e,n))),p0(e,`setExtra`,t=>(n,r)=>(o0.setExtra(n,r),t.call(e,n,r))),p0(e,`addBreadcrumb`,t=>(n,r)=>{let i={...n,level:n.level||`info`,data:n.data?r0(n.data):void 0};t.call(e,i,r);let a=e.getLastBreadcrumb();return a&&o0.addBreadcrumb(a),e}),p0(e,`clearBreadcrumbs`,t=>()=>(o0.clearBreadcrumbs(),t.call(e))),p0(e,`setContext`,t=>(n,r)=>(o0.setContext(n,r),t.call(e,n,r))))}function _0(e){h0.has(e)&&(h0.delete(e),m0(e,`clearBreadcrumbs`),m0(e,`setContext`),m0(e,`setExtra`),m0(e,`setExtras`),m0(e,`setTags`),m0(e,`setTag`),m0(e,`setUser`),m0(e,`addBreadcrumb`))}function Ide(e,t){e.enableNative&&(e.transport=t,_0(Rt()),_0(Lt()))}function Lde(){var e;let t=Bt();if(t){let n=t.getOptions();if(!n._metadata?.sdk)return;let r=n._metadata.sdk;r.name=`${r.name}.capacitor`,r.version=l0,(e=r.packages)==null||e.push({name:`sentry.javascript.capacitor`,version:`4.1.0`}),n._metadata.sdk=r}}function Rde(e,t,n,r){o0.initNativeSdk(t).then(()=>{t.debug&&Nde(t.onNativeLog??Fde),n(e)}).catch(t=>{console.error(`Native Sentry SDK failed to initialize. Using Sentry JavaScript SDK without native integraiton.
|
|
376
|
+
`,{error:t}),Ide(e,r),n(e)}).finally(()=>{Lde()})}function zde(e){let t=[];return t.push(Ede()),t.push(wde()),t.push(_de()),t.push(kde()),e.enableNative?(t.push(mde()),t.push(bde())):t.push(Ks()),t.push(fa(),la(),Fs(),Ts(),Us(),ja(),Ia()),e.enableAutoSessionTracking&&!e.enableNative&&t.push(Vs()),t}var Bde=()=>{let e=f(),t=e.__SENTRY__=e.__SENTRY__||{};(t[d]=t[`10.52.0`]||{}).encodePolyfill=Vde},Vde=e=>new Uint8Array(i0(e)),Hde=class{constructor(e={}){this._buffer=wi(e.bufferSize||30)}send(e){return this._buffer.add(()=>o0.sendEnvelope(e))}flush(e){return this._buffer.drain(e)}};function Ude(e={}){return new Hde(e)}function Wde(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 Gde=()=>typeof TextEncoder<`u`;function Kde(e,t=qs){let n={enableAutoSessionTracking:!0,enableWatchdogTerminationTracking:!0,enableCaptureFailedRequests:!1,...e};n.siblingOptions&&delete n.siblingOptions,n.enabled===!1||o0.platform===`web`?(n.enableNative=!1,n.enableNativeNagger=!1):(n.enableNativeNagger??=!0,n.enableNative??=!0),n.enableNative&&!e.transport&&o0.platform!==`web`&&(n.transport=e.transport||Ude,n.transportOptions={...e.transportOptions??{},bufferSize:30}),Gde()||Bde(),n.enableNative&&(g0(Rt()),g0(Lt()));let r={...e.siblingOptions?.vueOptions,...e.siblingOptions?.nuxtClientOptions,...n,integrations:Wde(e.integrations,{loggerMessage:`The integrations threw an error`}),enableMetrics:n._experiments?.enableMetrics,beforeSendMetric:n._experiments?.beforeSendMetric};r.defaultIntegrations=e.defaultIntegrations===void 0?zde(n):e.defaultIntegrations,Rde(r,{...n,enableAutoSessionTracking:o0.platform!==`web`&&n.enableAutoSessionTracking},t,e.transport)}async function qde(){Pde();try{let e=Bt();e&&(await e.close(),await o0.closeNativeSdk())}catch{D.error(`Failed to close the SDK`)}}function v0(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 y0=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return y0(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return y0(t)(e)}}}},Jde=(e,t)=>(n,r,i)=>{let a={storage:v0(()=>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 y0(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},b0;(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`})(b0||={});var Yde=r({LocalNotifications:()=>x0,Weekday:()=>b0}),x0=X1(`LocalNotifications`,{web:()=>a(()=>import(`./web-kKGZ0Pbn.js`).then(e=>new e.LocalNotificationsWeb),[])}),Xde=X1(`Network`,{web:()=>a(()=>import(`./web-pwf5Vh3V.js`).then(e=>new e.NetworkWeb),[])}),S0=(0,k.createContext)({});function C0(e){let t=(0,k.useRef)(null);return t.current===null&&(t.current=e()),t.current}var w0=typeof window<`u`?k.useLayoutEffect:k.useEffect,T0=(0,k.createContext)(null);function E0(e,t){e.indexOf(t)===-1&&e.push(t)}function D0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var O0=(e,t,n)=>n>t?t:n<e?e:n,k0={},A0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),j0=e=>typeof e==`object`&&!!e,M0=e=>/^0[^.\s]+$/u.test(e);function N0(e){let t;return()=>(t===void 0&&(t=e()),t)}var P0=e=>e,F0=(...e)=>e.reduce((e,t)=>n=>t(e(n))),I0=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},L0=class{constructor(){this.subscriptions=[]}add(e){return E0(this.subscriptions,e),()=>D0(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}},R0=e=>e*1e3,z0=e=>e/1e3,B0=(e,t)=>t?1e3/t*e:0,Zde=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},V0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qde=1e-7,$de=12;function efe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=V0(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Qde&&++s<$de);return o}function H0(e,t,n,r){if(e===t&&n===r)return P0;let i=t=>efe(t,0,1,e,n);return e=>e===0||e===1?e:V0(i(e),t,r)}var U0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,W0=e=>t=>1-e(1-t),G0=H0(.33,1.53,.69,.99),K0=W0(G0),q0=U0(K0),J0=e=>e>=1?1:(e*=2)<1?.5*K0(e):.5*(2-2**(-10*(e-1))),Y0=e=>1-Math.sin(Math.acos(e)),X0=W0(Y0),Z0=U0(Y0),tfe=H0(.42,0,1,1),nfe=H0(0,0,.58,1),Q0=H0(.42,0,.58,1),$0=e=>Array.isArray(e)&&typeof e[0]!=`number`;function e2(e,t){return $0(e)?e[Zde(0,e.length,t)]:e}var t2=e=>Array.isArray(e)&&typeof e[0]==`number`,n2={linear:P0,easeIn:tfe,easeInOut:Q0,easeOut:nfe,circIn:Y0,circInOut:Z0,circOut:X0,backIn:K0,backInOut:q0,backOut:G0,anticipate:J0},rfe=e=>typeof e==`string`,r2=e=>{if(t2(e)){e.length;let[t,n,r,i]=e;return H0(t,n,r,i)}else if(rfe(e))return n2[e],`${e}`,n2[e];return e},i2=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ife(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 afe=40;function a2(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=i2.reduce((e,t)=>(e[t]=ife(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k0.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,afe),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:i2.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<i2.length;t++)o[i2[t]].cancel(e)},state:i,steps:o}}var{schedule:o2,cancel:s2,state:c2,steps:l2}=a2(typeof requestAnimationFrame<`u`?requestAnimationFrame:P0,!0),u2;function ofe(){u2=void 0}var d2={now:()=>(u2===void 0&&d2.set(c2.isProcessing||k0.useManualTiming?c2.timestamp:performance.now()),u2),set:e=>{u2=e,queueMicrotask(ofe)}},f2=e=>t=>typeof t==`string`&&t.startsWith(e),p2=f2(`--`),sfe=f2(`var(--`),m2=e=>sfe(e)?cfe.test(e.split(`/*`)[0].trim()):!1,cfe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function h2(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var g2={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},_2={...g2,transform:e=>O0(0,1,e)},v2={...g2,default:1},y2=e=>Math.round(e*1e5)/1e5,b2=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lfe(e){return e==null}var ufe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,x2=(e,t)=>n=>!!(typeof n==`string`&&ufe.test(n)&&n.startsWith(e)||t&&!lfe(n)&&Object.prototype.hasOwnProperty.call(n,t)),S2=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(b2);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},dfe=e=>O0(0,255,e),C2={...g2,transform:e=>Math.round(dfe(e))},w2={test:x2(`rgb`,`red`),parse:S2(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+C2.transform(e)+`, `+C2.transform(t)+`, `+C2.transform(n)+`, `+y2(_2.transform(r))+`)`};function ffe(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 T2={test:x2(`#`),parse:ffe,transform:w2.transform},E2=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),D2=E2(`deg`),O2=E2(`%`),k2=E2(`px`),pfe=E2(`vh`),mfe=E2(`vw`),A2={...O2,parse:e=>O2.parse(e)/100,transform:e=>O2.transform(e*100)},j2={test:x2(`hsl`,`hue`),parse:S2(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+O2.transform(y2(t))+`, `+O2.transform(y2(n))+`, `+y2(_2.transform(r))+`)`},M2={test:e=>w2.test(e)||T2.test(e)||j2.test(e),parse:e=>w2.test(e)?w2.parse(e):j2.test(e)?j2.parse(e):T2.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?w2.transform(e):j2.transform(e),getAnimatableNone:e=>{let t=M2.parse(e);return t.alpha=0,M2.transform(t)}},hfe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gfe(e){return isNaN(e)&&typeof e==`string`&&(e.match(b2)?.length||0)+(e.match(hfe)?.length||0)>0}var N2=`number`,P2=`color`,_fe=`var`,vfe=`var(`,F2="${}",yfe=/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 I2(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(yfe,e=>(M2.test(e)?(r.color.push(a),i.push(P2),n.push(M2.parse(e))):e.startsWith(vfe)?(r.var.push(a),i.push(_fe),n.push(e)):(r.number.push(a),i.push(N2),n.push(parseFloat(e))),++a,F2)).split(F2),indexes:r,types:i}}function bfe(e){return I2(e).values}function L2({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===N2?i+=y2(r[a]):e===P2?i+=M2.transform(r[a]):i+=r[a]}return i}}function xfe(e){return L2(I2(e))}var Sfe=e=>typeof e==`number`?0:M2.test(e)?M2.getAnimatableNone(e):e,Cfe=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Sfe(e);function wfe(e){let t=I2(e);return L2(t)(t.values.map((e,n)=>Cfe(e,t.split[n])))}var R2={test:gfe,parse:bfe,createTransformer:xfe,getAnimatableNone:wfe};function z2(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 Tfe({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=z2(s,r,e+1/3),a=z2(s,r,e),o=z2(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function B2(e,t){return n=>n>0?t:e}var V2=(e,t,n)=>e+(t-e)*n,H2=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Efe=[T2,w2,j2],Dfe=e=>Efe.find(t=>t.test(e));function U2(e){let t=Dfe(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===j2&&(n=Tfe(n)),n}var W2=(e,t)=>{let n=U2(e),r=U2(t);if(!n||!r)return B2(e,t);let i={...n};return e=>(i.red=H2(n.red,r.red,e),i.green=H2(n.green,r.green,e),i.blue=H2(n.blue,r.blue,e),i.alpha=V2(n.alpha,r.alpha,e),w2.transform(i))},G2=new Set([`none`,`hidden`]);function Ofe(e,t){return G2.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kfe(e,t){return n=>V2(e,t,n)}function K2(e){return typeof e==`number`?kfe:typeof e==`string`?m2(e)?B2:M2.test(e)?W2:Mfe:Array.isArray(e)?q2:typeof e==`object`?M2.test(e)?W2:Afe:B2}function q2(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>K2(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Afe(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=K2(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function jfe(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 Mfe=(e,t)=>{let n=R2.createTransformer(t),r=I2(e),i=I2(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?G2.has(e)&&!i.values.length||G2.has(t)&&!r.values.length?Ofe(e,t):F0(q2(jfe(r,i),i.values),n):(`${e}${t}`,B2(e,t))};function J2(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V2(e,t,n):K2(e)(e,t)}var Nfe=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>o2.update(t,e),stop:()=>s2(t),now:()=>c2.isProcessing?c2.timestamp:d2.now()}},Y2=(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)})`},X2=2e4;function Z2(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 Q2(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Z2(r),X2);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:z0(i)}}var $2={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 e4(e,t){return e*Math.sqrt(1-t*t)}var Pfe=12;function Ffe(e,t,n){let r=n;for(let n=1;n<Pfe;n++)r-=e(r)/t(r);return r}var t4=.001;function Ife({duration:e=$2.duration,bounce:t=$2.bounce,velocity:n=$2.velocity,mass:r=$2.mass}){let i,a;$2.maxDuration;let o=1-t;o=O0($2.minDamping,$2.maxDamping,o),e=O0($2.minDuration,$2.maxDuration,z0(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=e4(t,o),c=Math.exp(-i);return t4-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=e4(t**2,o);return(-i(t)+t4>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-t4+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Ffe(i,a,s);if(e=R0(e),isNaN(c))return{stiffness:$2.stiffness,damping:$2.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Lfe=[`duration`,`bounce`],Rfe=[`stiffness`,`damping`,`mass`];function n4(e,t){return t.some(t=>e[t]!==void 0)}function zfe(e){let t={velocity:$2.velocity,stiffness:$2.stiffness,damping:$2.damping,mass:$2.mass,isResolvedFromDuration:!1,...e};if(!n4(e,Rfe)&&n4(e,Lfe))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*O0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:$2.mass,stiffness:i,damping:a}}else{let n=Ife({...e,velocity:0});t={...t,...n,mass:$2.mass},t.isResolvedFromDuration=!0}return t}function r4(e=$2.visualDuration,t=$2.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}=zfe({...n,velocity:-z0(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=z0(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?$2.restSpeed.granular:$2.restSpeed.default,i||=v?$2.restDelta.granular:$2.restDelta.default;let y,b,x,S,C,w;if(h<1)x=e4(_,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=>R0(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=R0(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=R0(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(Z2(T),X2),t=Y2(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}r4.applyToOptions=e=>{let t=Q2(e,100,r4);return e.ease=t.ease,e.duration=R0(t.duration),e.type=`keyframes`,e};var Bfe=5;function i4(e,t,n){let r=Math.max(t-Bfe,0);return B0(n-e(r),t-r)}function a4({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=r4({keyframes:[f.value,m(f.value)],velocity:i4(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 Vfe(e,t,n){let r=[],i=n||k0.mix||J2,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=F0(Array.isArray(t)?t[n]||P0:t,a)),r.push(a)}return r}function o4(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=Vfe(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=I0(e[r],e[r+1],n);return s[r](i)};return n?t=>l(O0(e[0],e[a-1],t)):l}function s4(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=I0(0,t,r);e.push(V2(n,1,i))}}function c4(e){let t=[0];return s4(t,e.length-1),t}function Hfe(e,t){return e.map(e=>e*t)}function Ufe(e,t){return e.map(()=>t||Q0).splice(0,e.length-1)}function l4({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=$0(r)?r.map(r2):r2(r),a={done:!1,value:t[0]},o=o4(Hfe(n&&n.length===t.length?n:c4(t),e),t,{ease:Array.isArray(i)?i:Ufe(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Wfe=e=>e!==null;function u4(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Wfe),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Gfe={decay:a4,inertia:a4,tween:l4,keyframes:l4,spring:r4};function d4(e){typeof e.type==`string`&&(e.type=Gfe[e.type])}var f4=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)}},Kfe=e=>e/100,p4=class extends f4{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!==d2.now()&&this.tick(d2.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;d4(e);let{type:t=l4,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||l4;s!==l4&&typeof o[0]!=`number`&&(this.mixKeyframes=F0(Kfe,J2(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=Z2(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=O0(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!==a4&&(b.value=u4(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 z0(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z0(e)}get time(){return z0(this.currentTime)}set time(e){e=R0(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 i4(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(d2.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=z0(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Nfe,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(d2.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 qfe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var m4=e=>e*180/Math.PI,h4=e=>g4(m4(Math.atan2(e[1],e[0]))),Jfe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:h4,rotateZ:h4,skewX:e=>m4(Math.atan(e[1])),skewY:e=>m4(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},g4=e=>(e%=360,e<0&&(e+=360),e),_4=h4,v4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),y4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Yfe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:v4,scaleY:y4,scale:e=>(v4(e)+y4(e))/2,rotateX:e=>g4(m4(Math.atan2(e[6],e[5]))),rotateY:e=>g4(m4(Math.atan2(-e[2],e[0]))),rotateZ:_4,rotate:_4,skewX:e=>m4(Math.atan(e[4])),skewY:e=>m4(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function b4(e){return+!!e.includes(`scale`)}function x4(e,t){if(!e||e===`none`)return b4(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Yfe,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Jfe,i=t}if(!i)return b4(t);let a=r[t],o=i[1].split(`,`).map(Zfe);return typeof a==`function`?a(o):o[a]}var Xfe=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return x4(n,t)};function Zfe(e){return parseFloat(e.trim())}var S4=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],C4=new Set([...S4,`pathRotation`]),w4=e=>e===g2||e===k2,Qfe=new Set([`x`,`y`,`z`]),$fe=S4.filter(e=>!Qfe.has(e));function epe(e){let t=[];return $fe.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var T4={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})=>x4(t,`x`),y:(e,{transform:t})=>x4(t,`y`)};T4.translateX=T4.x,T4.translateY=T4.y;var E4=new Set,D4=!1,O4=!1,k4=!1;function A4(){if(O4){let e=Array.from(E4).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=epe(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)})}O4=!1,D4=!1,E4.forEach(e=>e.complete(k4)),E4.clear()}function j4(){E4.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(O4=!0)})}function tpe(){k4=!0,j4(),A4(),k4=!1}var M4=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?(E4.add(this),D4||(D4=!0,o2.read(j4),o2.resolveKeyframes(A4))):(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])}qfe(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),E4.delete(this)}cancel(){this.state===`scheduled`&&(E4.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},npe=e=>e.startsWith(`--`);function N4(e,t,n){npe(t)?e.style.setProperty(t,n):e.style[t]=n}var rpe={};function P4(e,t){let n=N0(e);return()=>rpe[t]??n()}var ipe=P4(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),F4=P4(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),I4=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,L4={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:I4([0,.65,.55,1]),circOut:I4([.55,0,1,.45]),backIn:I4([.31,.01,.66,-.59]),backOut:I4([.33,1.53,.69,.99])};function R4(e,t){if(e)return typeof e==`function`?F4()?Y2(e,t):`ease-out`:t2(e)?I4(e):Array.isArray(e)?e.map(e=>R4(e,t)||L4.easeOut):L4[e]}function ape(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=R4(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 z4(e){return typeof e==`function`&&`applyToOptions`in e}function ope({type:e,...t}){return z4(e)&&F4()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var B4=class extends f4{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=ope(e);this.animation=ape(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=u4(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),N4(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 z0(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z0(e)}get time(){return z0(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=R0(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&&ipe()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),P0):r(this)}},V4={anticipate:J0,backInOut:q0,circInOut:Z0};function spe(e){return e in V4}function cpe(e){typeof e.ease==`string`&&spe(e.ease)&&(e.ease=V4[e.ease])}var H4=10,lpe=class extends B4{constructor(e){cpe(e),d4(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 p4({...a,autoplay:!1}),s=Math.max(H4,d2.now()-this.startTime),c=O0(0,H4,s-H4),l=o.sample(s).value,{name:u}=this.options;i&&u&&N4(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},U4=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R2.test(e)||e===`0`)&&!e.startsWith(`url(`));function upe(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 dpe(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=U4(i,t),s=U4(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:upe(e)||(n===`spring`||z4(n))&&r}function W4(e){e.duration=0,e.type=`keyframes`}var G4=new Set([`opacity`,`clipPath`,`filter`,`transform`]),fpe=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ppe(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&fpe.test(e[t]))return!0;return!1}var mpe=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),hpe=N0(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function gpe(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 hpe()&&n&&(G4.has(n)||mpe.has(n)&&ppe(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var _pe=40,vpe=class extends f4{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=d2.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||M4;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=d2.now();let u=!0;dpe(e,i,a,o)||(u=!1,(k0.instantAnimations||!s)&&l?.(u4(e,n,t)),e[0]=e[e.length-1],W4(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>_pe?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&gpe(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new lpe({...d,element:p})}catch{m=new p4(d)}else m=new p4(d);m.finished.then(()=>{this.notifyFinished()}).catch(P0),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(),tpe()),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()}},ype=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 K4(this.animations,`duration`)}get iterationDuration(){return K4(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 K4(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 bpe=class extends ype{then(e,t){return this.finished.finally(e).then(()=>{})}};function q4(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 J4=30,xpe=e=>!isNaN(parseFloat(e)),Y4={current:void 0},Spe=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=d2.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=d2.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xpe(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 L0);let n=this.events[e].add(t);return e===`change`?()=>{n(),o2.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 Y4.current&&Y4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=d2.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>J4)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,J4);return B0(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 X4(e,t){return new Spe(e,t)}function Z4(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Q4(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Z4(n,e)}var Cpe={type:`spring`,stiffness:500,damping:25,restSpeed:10},wpe=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tpe={type:`keyframes`,duration:.8},Epe={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Dpe=(e,{keyframes:t})=>t.length>2?Tpe:C4.has(e)?e.startsWith(`scale`)?wpe(t[1]):Cpe:Epe,Ope=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function kpe(e){for(let t in e)if(!Ope.has(t))return!0;return!1}var $4=(e,t,n,r={},i,a)=>o=>{let s=Q4(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=R0(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};kpe(s)||Object.assign(u,Dpe(e,u)),u.duration&&=R0(u.duration),u.repeatDelay&&=R0(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(W4(u),u.delay===0&&(d=!0)),(k0.instantAnimations||k0.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,W4(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=u4(u.keyframes,s);if(e!==void 0){o2.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new p4(u):new vpe(u)},Ape=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jpe(e){let t=Ape.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function e3(e,t,n=1){`${e}`;let[r,i]=jpe(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return A0(e)?parseFloat(e):e}return m2(i)?e3(i,t,n+1):i}function t3(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function n3(e,t,n,r){if(typeof t==`function`){let[i,a]=t3(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]=t3(r);t=t(n===void 0?e.custom:n,i,a)}return t}function r3(e,t,n){let r=e.getProps();return n3(r,t,n===void 0?r.custom:n,e)}var i3=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...S4]),a3=e=>Array.isArray(e);function Mpe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,X4(n))}function Npe(e){return a3(e)?e[e.length-1]||0:e}function o3(e,t){let{transitionEnd:n={},transition:r={},...i}=r3(e,t)||{};i={...i,...n};for(let t in i)Mpe(e,t,Npe(i[t]))}var s3=e=>!!(e&&e.getVelocity);function Ppe(e){return!!(s3(e)&&e.add)}function c3(e,t){let n=e.getValue(`willChange`);if(Ppe(n))return n.add(t);if(!n&&k0.WillChange){let n=new k0.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function l3(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var u3=`data-`+l3(`framerAppearId`);function d3(e){return e.props[u3]}function Fpe({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function f3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Z4(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&&Fpe(f,t))continue;let o={delay:n,...Q4(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){o2.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=d3(e);if(n){let e=window.MotionHandoffAnimation(n,t,o2);e!==null&&(o.startTime=e,p=!0)}}c3(e,t);let m=l??e.shouldReduceMotion;r.start($4(t,r,i,m&&i3.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>o2.update(()=>{o&&o3(e,o)});d.length?Promise.all(d).then(t):t()}return d}function p3(e,t,n={}){let r=r3(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(f3(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ipe(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 Ipe(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(p3(c,t,{...o,delay:n+(typeof r==`function`?0:r)+q4(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function m3(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>p3(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=p3(e,t,n);else{let i=typeof t==`function`?r3(e,t,n.custom):t;r=Promise.all(f3(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Lpe={test:e=>e===`auto`,parse:e=>e},h3=e=>t=>t.test(e),g3=[g2,k2,O2,D2,mfe,pfe,Lpe],_3=e=>g3.find(h3(e));function Rpe(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||M0(e)}var zpe=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Bpe(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(b2)||[];if(!r)return e;let i=n.replace(r,``),a=+!!zpe.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Vpe=/\b([a-z-]*)\(.*?\)/gu,v3={...R2,getAnimatableNone:e=>{let t=e.match(Vpe);return t?t.map(Bpe).join(` `):e}},y3={...R2,getAnimatableNone:e=>{let t=R2.parse(e);return R2.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},b3={...g2,transform:Math.round},x3={borderWidth:k2,borderTopWidth:k2,borderRightWidth:k2,borderBottomWidth:k2,borderLeftWidth:k2,borderRadius:k2,borderTopLeftRadius:k2,borderTopRightRadius:k2,borderBottomRightRadius:k2,borderBottomLeftRadius:k2,width:k2,maxWidth:k2,height:k2,maxHeight:k2,top:k2,right:k2,bottom:k2,left:k2,inset:k2,insetBlock:k2,insetBlockStart:k2,insetBlockEnd:k2,insetInline:k2,insetInlineStart:k2,insetInlineEnd:k2,padding:k2,paddingTop:k2,paddingRight:k2,paddingBottom:k2,paddingLeft:k2,paddingBlock:k2,paddingBlockStart:k2,paddingBlockEnd:k2,paddingInline:k2,paddingInlineStart:k2,paddingInlineEnd:k2,margin:k2,marginTop:k2,marginRight:k2,marginBottom:k2,marginLeft:k2,marginBlock:k2,marginBlockStart:k2,marginBlockEnd:k2,marginInline:k2,marginInlineStart:k2,marginInlineEnd:k2,fontSize:k2,backgroundPositionX:k2,backgroundPositionY:k2,rotate:D2,pathRotation:D2,rotateX:D2,rotateY:D2,rotateZ:D2,scale:v2,scaleX:v2,scaleY:v2,scaleZ:v2,skew:D2,skewX:D2,skewY:D2,distance:k2,translateX:k2,translateY:k2,translateZ:k2,x:k2,y:k2,z:k2,perspective:k2,transformPerspective:k2,opacity:_2,originX:A2,originY:A2,originZ:k2,zIndex:b3,fillOpacity:_2,strokeOpacity:_2,numOctaves:b3},Hpe={...x3,color:M2,backgroundColor:M2,outlineColor:M2,fill:M2,stroke:M2,borderColor:M2,borderTopColor:M2,borderRightColor:M2,borderBottomColor:M2,borderLeftColor:M2,filter:v3,WebkitFilter:v3,mask:y3,WebkitMask:y3},S3=e=>Hpe[e],Upe=new Set([v3,y3]);function C3(e,t){let n=S3(e);return Upe.has(n)||(n=R2),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Wpe=new Set([`auto`,`none`,`0`]);function Gpe(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Wpe.has(t)&&I2(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=C3(n,i)}var Kpe=class extends M4{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(),m2(r))){let i=e3(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!i3.has(n)||e.length!==2)return;let[r,i]=e,a=_3(r),o=_3(i);if(h2(r)!==h2(i)&&T4[n]){this.needsMeasurement=!0;return}if(a!==o)if(w4(a)&&w4(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else T4[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Rpe(e[t]))&&n.push(t);n.length&&Gpe(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=T4[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]=T4[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()}},w3=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function T3(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 E3=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function D3(e){return j0(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:O3,cancel:qpe}=a2(queueMicrotask,!1),k3={x:!1,y:!1};function A3(){return k3.x||k3.y}function Jpe(e){return e===`x`||e===`y`?k3[e]?null:(k3[e]=!0,()=>{k3[e]=!1}):k3.x||k3.y?null:(k3.x=k3.y=!0,()=>{k3.x=k3.y=!1})}function j3(e,t){let n=T3(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ype(e){return!(e.pointerType===`touch`||A3())}function Xpe(e,t,n={}){let[r,i,a]=j3(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(!Ype(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 M3=(e,t)=>t?e===t?!0:M3(e,t.parentElement):!1,N3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Zpe=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Qpe(e){return Zpe.has(e.tagName)||e.isContentEditable===!0}var $pe=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function eme(e){return $pe.has(e.tagName)||e.isContentEditable===!0}var P3=new WeakSet;function F3(e){return t=>{t.key===`Enter`&&e(t)}}function I3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var tme=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=F3(()=>{if(P3.has(n))return;I3(n,`down`);let e=F3(()=>{I3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>I3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function L3(e){return N3(e)&&!A3()}var R3=new WeakSet;function nme(e,t,n={}){let[r,i,a]=j3(e,n),o=e=>{let r=e.currentTarget;if(!L3(e)||R3.has(e))return;P3.add(r),n.stopPropagation&&R3.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),P3.has(r)&&P3.delete(r),L3(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||M3(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),D3(e)&&(e.addEventListener(`focus`,e=>tme(e,i)),!Qpe(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function z3(e){return j0(e)&&`ownerSVGElement`in e}var B3=new WeakMap,V3,H3=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:z3(r)&&`getBBox`in r?r.getBBox()[t]:r[n],rme=H3(`inline`,`width`,`offsetWidth`),ime=H3(`block`,`height`,`offsetHeight`);function ame({target:e,borderBoxSize:t}){B3.get(e)?.forEach(n=>{n(e,{get width(){return rme(e,t)},get height(){return ime(e,t)}})})}function ome(e){e.forEach(ame)}function sme(){typeof ResizeObserver>`u`||(V3=new ResizeObserver(ome))}function cme(e,t){V3||sme();let n=T3(e);return n.forEach(e=>{let n=B3.get(e);n||(n=new Set,B3.set(e,n)),n.add(t),V3?.observe(e)}),()=>{n.forEach(e=>{let n=B3.get(e);n?.delete(t),n?.size||V3?.unobserve(e)})}}var U3=new Set,W3;function lme(){W3=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};U3.forEach(t=>t(e))},window.addEventListener(`resize`,W3)}function ume(e){return U3.add(e),W3||lme(),()=>{U3.delete(e),!U3.size&&typeof W3==`function`&&(window.removeEventListener(`resize`,W3),W3=void 0)}}function G3(e,t){return typeof e==`function`?ume(e):cme(e,t)}var K3={value:null,addProjectionMetrics:null};function q3(e){return z3(e)&&e.tagName===`svg`}function dme(...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=o4(i,a,o);return t?s(r):s}function fme(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=Y3(e.get()),r=Y3(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new p4({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(J3(e,s)),o2.postRender(u)},c),s3(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(J3(t,s),!1)):e.set(J3(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function J3(e,t){return t?e+t:e}function Y3(e){return typeof e==`number`?e:parseFloat(e)}var pme=[...g3,M2,R2],mme=e=>pme.find(h3(e)),X3=()=>({translate:0,scale:1,origin:0,originPoint:0}),Z3=()=>({x:X3(),y:X3()}),Q3=()=>({min:0,max:0}),$3=()=>({x:Q3(),y:Q3()}),e6=new WeakMap;function t6(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function n6(e){return typeof e==`string`||Array.isArray(e)}var r6=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],i6=[`initial`,...r6];function a6(e){return t6(e.animate)||i6.some(t=>n6(e[t]))}function o6(e){return!!(a6(e)||e.variants)}function hme(e,t,n){for(let r in t){let i=t[r],a=n[r];if(s3(i))e.addValue(r,i);else if(s3(a))e.addValue(r,X4(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,X4(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var s6={current:null},c6={current:!1},gme=typeof window<`u`;function l6(){if(c6.current=!0,gme)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>s6.current=e.matches;e.addEventListener(`change`,t),t()}else s6.current=!1}var u6=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],d6={};function f6(e){d6=e}function _me(){return d6}var p6=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=M4,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=d2.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,o2.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=a6(t),this.isVariantNode=o6(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&&s3(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,e6.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:(c6.current||l6(),this.shouldReduceMotion=s6.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(),s2(this.notifyUpdate),s2(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&&G4.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new B4({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:R0(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=C4.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&o2.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 d6){let t=d6[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):$3()}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<u6.length;t++){let n=u6[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=hme(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=X4(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`&&(A0(n)||M0(n))?n=parseFloat(n):!mme(n)&&R2.test(t)&&(n=C3(e,t)),this.setBaseTarget(e,s3(n)?n.get():n)),s3(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=n3(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&&!s3(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 L0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){O3.render(this.render)}},m6=class extends p6{constructor(){super(...arguments),this.KeyframeResolver=Kpe}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;s3(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},h6=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function g6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vme({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yme(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 _6(e){return e===void 0||e===1}function v6({scale:e,scaleX:t,scaleY:n}){return!_6(e)||!_6(t)||!_6(n)}function y6(e){return v6(e)||b6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function b6(e){return x6(e.x)||x6(e.y)}function x6(e){return e&&e!==`0%`}function S6(e,t,n){return n+t*(e-n)}function C6(e,t,n,r,i){return i!==void 0&&(e=S6(e,i,r)),S6(e,n,r)+t}function w6(e,t=0,n=1,r,i){e.min=C6(e.min,t,n,r,i),e.max=C6(e.max,t,n,r,i)}function T6(e,{x:t,y:n}){w6(e.x,t.translate,t.scale,t.originPoint),w6(e.y,n.translate,n.scale,n.originPoint)}var E6=.999999999999,D6=1.0000000000001;function bme(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&&(O6(e.x,-a.scroll.offset.x),O6(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,T6(e,o)),r&&y6(a.latestValues)&&j6(e,a.latestValues,a.layout?.layoutBox))}t.x<D6&&t.x>E6&&(t.x=1),t.y<D6&&t.y>E6&&(t.y=1)}function O6(e,t){e.min+=t,e.max+=t}function k6(e,t,n,r,i=.5){w6(e,t,n,V2(e.min,e.max,i),r)}function A6(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function j6(e,t,n){let r=n??e;k6(e.x,A6(t.x,r.x),t.scaleX,t.scale,t.originX),k6(e.y,A6(t.y,r.y),t.scaleY,t.scale,t.originY)}function M6(e,t){return g6(yme(e.getBoundingClientRect(),t))}function xme(e,t,n){let r=M6(e,n),{scroll:i}=t;return i&&(O6(r.x,i.offset.x),O6(r.y,i.offset.y)),r}var Sme={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Cme=S4.length;function wme(e,t,n){let r=``,i=!0;for(let a=0;a<Cme;a++){let o=S4[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=E3(s,x3[o]);if(!c){i=!1;let t=Sme[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${E3(a,x3.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function N6(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(C4.has(e)){o=!0;continue}else if(p2(e)){i[e]=n;continue}else{let t=E3(n,x3[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=wme(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 P6(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 F6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var I6={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(k2.test(e))e=parseFloat(e);else return e;return`${F6(e,t.target.x)}% ${F6(e,t.target.y)}%`}},Tme={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R2.parse(e);if(i.length>5)return r;let a=R2.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=V2(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},L6={borderRadius:{...I6,applyTo:[...w3]},borderTopLeftRadius:I6,borderTopRightRadius:I6,borderBottomLeftRadius:I6,borderBottomRightRadius:I6,boxShadow:Tme};function R6(e,{layout:t,layoutId:n}){return C4.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!L6[e]||e===`opacity`)}function z6(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(s3(r[t])||i&&s3(i[t])||R6(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Eme(e){return window.getComputedStyle(e)}var B6=class extends m6{constructor(){super(...arguments),this.type=`html`,this.renderInstance=P6}readValueFromInstance(e,t){if(C4.has(t))return this.projection?.isProjecting?b4(t):Xfe(e,t);{let n=Eme(e),r=(p2(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return M6(e,t)}build(e,t,n){N6(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return z6(e,t,n)}};function Dme(e,t){return e in t}var Ome=class extends p6{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Dme(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 $3()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},kme={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ame={offset:`strokeDashoffset`,array:`strokeDasharray`};function jme(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?kme:Ame;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Mme=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function V6(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(N6(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 Mme)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&&jme(d,i,a,o,!1)}var H6=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`]),U6=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Nme(e,t,n,r){P6(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(H6.has(n)?n:l3(n),t.attrs[n])}function W6(e,t,n){let r=z6(e,t,n);for(let n in e)if(s3(e[n])||s3(t[n])){let t=S4.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var G6=class extends m6{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$3}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(C4.has(t)){let e=S3(t);return e&&e.default||0}return t=H6.has(t)?t:l3(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return W6(e,t,n)}build(e,t,n){V6(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Nme(e,t,n,r)}mount(e){this.isSVGTag=U6(e.tagName),super.mount(e)}},Pme=i6.length;function K6(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&K6(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Pme;n++){let r=i6[n],i=e.props[r];(n6(i)||i===!1)&&(t[r]=i)}return t}function q6(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 Fme=[...r6].reverse(),Ime=r6.length;function Lme(e){return t=>Promise.all(t.map(({animation:t,options:n})=>m3(e,t,n)))}function Rme(e){let t=Lme(e),n=Y6(),r=!0,i=!1,a=t=>(n,r)=>{let i=r3(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=K6(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ime;t++){let p=Fme[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=n6(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||t6(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=zme(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=a3(t)&&a3(n)?!q6(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=r3(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=q4(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=r3(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=Y6(),i=!0}}}function zme(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!q6(t,e):!1}function J6(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y6(){return{animate:J6(!0),whileInView:J6(),whileHover:J6(),whileTap:J6(),whileDrag:J6(),whileFocus:J6(),exit:J6()}}function X6(e,t){e.min=t.min,e.max=t.max}function Z6(e,t){X6(e.x,t.x),X6(e.y,t.y)}function Q6(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var $6=1e-4,Bme=1-$6,Vme=1+$6,e8=.01,Hme=0-e8,Ume=0+e8;function t8(e){return e.max-e.min}function Wme(e,t,n){return Math.abs(e-t)<=n}function n8(e,t,n,r=.5){e.origin=r,e.originPoint=V2(t.min,t.max,e.origin),e.scale=t8(n)/t8(t),e.translate=V2(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Bme&&e.scale<=Vme||isNaN(e.scale))&&(e.scale=1),(e.translate>=Hme&&e.translate<=Ume||isNaN(e.translate))&&(e.translate=0)}function r8(e,t,n,r){n8(e.x,t.x,n.x,r?r.originX:void 0),n8(e.y,t.y,n.y,r?r.originY:void 0)}function i8(e,t,n,r=0){e.min=(r?V2(n.min,n.max,r):n.min)+t.min,e.max=e.min+t8(t)}function Gme(e,t,n,r){i8(e.x,t.x,n.x,r?.x),i8(e.y,t.y,n.y,r?.y)}function a8(e,t,n,r=0){let i=r?V2(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+t8(t)}function o8(e,t,n,r){a8(e.x,t.x,n.x,r?.x),a8(e.y,t.y,n.y,r?.y)}function s8(e,t,n,r,i){return e-=t,e=S6(e,1/n,r),i!==void 0&&(e=S6(e,1/i,r)),e}function Kme(e,t=0,n=1,r=.5,i,a=e,o=e){if(O2.test(t)&&(t=parseFloat(t),t=V2(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V2(a.min,a.max,r);e===a&&(s-=t),e.min=s8(e.min,t,n,s,i),e.max=s8(e.max,t,n,s,i)}function c8(e,t,[n,r,i],a,o){Kme(e,t[n],t[r],t[i],t.scale,a,o)}var qme=[`x`,`scaleX`,`originX`],Jme=[`y`,`scaleY`,`originY`];function l8(e,t,n,r){c8(e.x,t,qme,n?n.x:void 0,r?r.x:void 0),c8(e.y,t,Jme,n?n.y:void 0,r?r.y:void 0)}function u8(e){return e.translate===0&&e.scale===1}function d8(e){return u8(e.x)&&u8(e.y)}function f8(e,t){return e.min===t.min&&e.max===t.max}function Yme(e,t){return f8(e.x,t.x)&&f8(e.y,t.y)}function p8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function m8(e,t){return p8(e.x,t.x)&&p8(e.y,t.y)}function h8(e){return t8(e.x)/t8(e.y)}function g8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _8(e){return[e(`x`),e(`y`)]}function Xme(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 Zme=w3.length,v8=e=>typeof e==`string`?parseFloat(e):e,y8=e=>typeof e==`number`||k2.test(e);function Qme(e,t,n,r,i,a){i?(e.opacity=V2(0,n.opacity??1,$me(r)),e.opacityExit=V2(t.opacity??1,0,ehe(r))):a&&(e.opacity=V2(t.opacity??1,n.opacity??1,r));for(let i=0;i<Zme;i++){let a=w3[i],o=b8(t,a),s=b8(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||y8(o)===y8(s)?(e[a]=Math.max(V2(v8(o),v8(s),r),0),(O2.test(s)||O2.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V2(t.rotate||0,n.rotate||0,r))}function b8(e,t){return e[t]===void 0?e.borderRadius:e[t]}var $me=x8(0,.5,X0),ehe=x8(.5,.95,P0);function x8(e,t,n){return r=>r<e?0:r>t?1:n(I0(e,t,r))}function S8(e,t,n){let r=s3(e)?e:X4(e);return r.start($4(``,r,t,n)),r.animation}function C8(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var the=(e,t)=>e.depth-t.depth,nhe=class{constructor(){this.children=[],this.isDirty=!1}add(e){E0(this.children,e),this.isDirty=!0}remove(e){D0(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(the),this.isDirty=!1,this.children.forEach(e)}};function rhe(e,t){let n=d2.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(s2(r),e(a-t))};return o2.setup(r,!0),()=>s2(r)}function w8(e){return s3(e)?e.get():e}var ihe=class{constructor(){this.members=[]}add(e){E0(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&&(D0(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(D0(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)}},T8={hasAnimatedSinceResize:!0,hasEverUpdated:!1},E8={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},D8=[``,`X`,`Y`,`Z`],ahe=1e3,ohe=0;function O8(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function k8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=d3(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,o2,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&k8(r)}function A8({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ohe++,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,K3.value&&(E8.nodes=E8.calculatedTargetDeltas=E8.calculatedProjections=0),this.nodes.forEach(lhe),this.nodes.forEach(hhe),this.nodes.forEach(ghe),this.nodes.forEach(uhe),K3.addProjectionMetrics&&K3.addProjectionMetrics(E8)},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 nhe)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new L0),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=z3(t)&&!q3(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;o2.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=rhe(i,250),T8.hasAnimatedSinceResize&&(T8.hasAnimatedSinceResize=!1,this.nodes.forEach(N8)))})}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()||xhe,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!m8(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={...Q4(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||N8(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(),s2(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(_he),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&&k8(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(fhe),this.nodes.forEach(j8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(M8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(phe),this.nodes.forEach(mhe),this.nodes.forEach(she),this.nodes.forEach(che)):this.nodes.forEach(M8),this.clearAllSnapshots();let e=d2.now();c2.delta=O0(0,1e3/60,e-c2.timestamp),c2.timestamp=e,c2.isProcessing=!0,l2.update.process(c2),l2.preRender.process(c2),l2.render.process(c2),c2.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dhe),this.sharedNodes.forEach(vhe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,o2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){o2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!t8(this.snapshot.measuredBox.x)&&!t8(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||=$3(),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&&!d8(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||y6(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)),She(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $3();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Che))){let{scroll:e}=this.root;e&&(O6(t.x,e.offset.x),O6(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$3();if(Z6(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&&Z6(t,e),O6(t.x,i.offset.x),O6(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||$3();Z6(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&&(O6(r.x,-n.scroll.offset.x),O6(r.y,-n.scroll.offset.y)),y6(n.latestValues)&&j6(r,n.latestValues,n.layout?.layoutBox)}return y6(this.latestValues)&&j6(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=$3();Z6(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!y6(n.latestValues))continue;let r;n.instance&&(v6(n.latestValues)&&n.updateSnapshot(),r=$3(),Z6(r,n.measurePageBox())),l8(t,n.latestValues,n.snapshot?.layoutBox,r)}return y6(this.latestValues)&&l8(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!==c2.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=c2.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=$3(),this.targetWithTransforms=$3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gme(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z6(this.target,this.layout.layoutBox),T6(this.target,this.targetDelta)):Z6(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),K3.value&&E8.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||v6(this.parent.latestValues)||b6(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=$3(),this.relativeTargetOrigin=$3(),o8(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z6(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===c2.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;Z6(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;bme(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=$3());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Q6(this.prevProjectionDelta.x,this.projectionDelta.x),Q6(this.prevProjectionDelta.y,this.projectionDelta.y)),r8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!g8(this.projectionDelta.x,this.prevProjectionDelta.x)||!g8(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),K3.value&&E8.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=Z3(),this.projectionDelta=Z3(),this.projectionDeltaWithTransform=Z3()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Z3();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$3(),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(bhe));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=V2(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=V2(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(P8(o.x,e.x,n),P8(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(o8(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yhe(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Yme(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$3(),Z6(f,this.relativeTarget)),c&&(this.animationValues=a,Qme(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&&=(s2(this.pendingAnimation),void 0),this.pendingAnimation=o2.update(()=>{T8.hasAnimatedSinceResize=!0,this.motionValue||=X4(0),this.motionValue.jump(0,!1),this.currentAnimation=S8(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(ahe),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&&z8(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$3();let t=t8(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=t8(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z6(t,n),j6(t,i),r8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ihe),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&&O8(`z`,e,r,this.animationValues);for(let t=0;t<D8.length;t++)O8(`rotate${D8[t]}`,e,r,this.animationValues),O8(`skew${D8[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=w8(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=w8(t?.pointerEvents)||``),this.hasProjected&&!y6(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Xme(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 L6){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=L6[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?w8(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(j8),this.root.sharedNodes.clear()}}}function she(e){e.updateLayout()}function che(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`)_8(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=t8(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;X6(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else z8(i,t.layoutBox,n)&&_8(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=t8(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=Z3();r8(o,n,t.layoutBox);let s=Z3();a?r8(s,e.applyTransform(r,!0),t.measuredBox):r8(s,n,t.layoutBox);let c=!d8(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=$3();o8(s,t.layoutBox,i.layoutBox,o);let c=$3();o8(c,n,a.layoutBox,o),m8(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 lhe(e){K3.value&&E8.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 uhe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dhe(e){e.clearSnapshot()}function j8(e){e.clearMeasurements()}function fhe(e){e.isLayoutDirty=!0,e.updateLayout()}function M8(e){e.isLayoutDirty=!1}function phe(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function mhe(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function N8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hhe(e){e.resolveTargetDelta()}function ghe(e){e.calcProjection()}function _he(e){e.resetSkewAndRotation()}function vhe(e){e.removeLeadSnapshot()}function P8(e,t,n){e.translate=V2(t.translate,0,n),e.scale=V2(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function F8(e,t,n,r){e.min=V2(t.min,n.min,r),e.max=V2(t.max,n.max,r)}function yhe(e,t,n,r){F8(e.x,t.x,n.x,r),F8(e.y,t.y,n.y,r)}function bhe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var xhe={duration:.45,ease:[.4,0,.1,1]},I8=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),L8=I8(`applewebkit/`)&&!I8(`chrome/`)?Math.round:P0;function R8(e){e.min=L8(e.min),e.max=L8(e.max)}function She(e){R8(e.x),R8(e.y)}function z8(e,t,n){return e===`position`||e===`preserve-aspect`&&!Wme(h8(t),h8(n),.2)}function Che(e){return e!==e.root&&e.scroll?.wasRoot}var whe=A8({attachResizeListener:(e,t)=>C8(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),B8={current:void 0},V8=A8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!B8.current){let e=new whe({});e.mount(window),e.setOptions({layoutScroll:!0}),B8.current=e}return B8.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),H8=(0,k.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function U8(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function The(...e){return t=>{let n=!1,r=e.map(e=>{let r=U8(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():U8(e[t],null)}}}}function Ehe(...e){return k.useCallback(The(...e),e)}var Dhe=class extends k.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(D3(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=D3(e)&&e.offsetWidth||0,r=D3(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 Ohe({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,k.useId)(),s=(0,k.useRef)(null),c=(0,k.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,k.useContext)(H8),u=Ehe(s,e.props?.ref??e?.ref);return(0,k.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(`
|
|
377
|
+
[data-motion-pop-id="${o}"] {
|
|
378
|
+
position: absolute !important;
|
|
379
|
+
width: ${e}px !important;
|
|
380
|
+
height: ${u}px !important;
|
|
381
|
+
${_}px !important;
|
|
382
|
+
${v}px !important;
|
|
383
|
+
}
|
|
384
|
+
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,A.jsx)(Dhe,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:k.cloneElement(e,{ref:u})})}var khe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=C0(Ahe),d=(0,k.useId)(),f=(0,k.useRef)(n),p=(0,k.useRef)(r);w0(()=>{f.current=n,p.current=r});let m=!0,h=(0,k.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,k.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),k.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,A.jsx)(Ohe,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,A.jsx)(T0.Provider,{value:h,children:e})};function Ahe(){return new Map}function W8(e=!0){let t=(0,k.useContext)(T0);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,k.useId)();(0,k.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,k.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function jhe(){return Mhe((0,k.useContext)(T0))}function Mhe(e){return e===null?!0:e.isPresent}var G8=e=>e.key||``;function K8(e){let t=[];return k.Children.forEach(e,e=>{(0,k.isValidElement)(e)&&t.push(e)}),t}var Nhe=({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]=W8(o),f=(0,k.useMemo)(()=>K8(e),[e]),p=o&&!u?[]:f.map(G8),m=(0,k.useRef)(!0),h=(0,k.useRef)(f),g=C0(()=>new Map),_=(0,k.useRef)(new Set),[v,y]=(0,k.useState)(f),[b,x]=(0,k.useState)(f);w0(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=G8(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=G8(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(K8(e)),y(f),null}let{forceRender:C}=(0,k.useContext)(S0);return(0,A.jsx)(A.Fragment,{children:b.map(e=>{let v=G8(e),y=o&&!u?!1:f===b||p.includes(v);return(0,A.jsx)(khe,{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)})})},q8=(0,k.createContext)({strict:!1}),J8={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`]},Y8=!1;function Phe(){if(Y8)return;let e={};for(let t in J8)e[t]={isEnabled:e=>J8[t].some(t=>!!e[t])};f6(e),Y8=!0}function X8(){return Phe(),_me()}function Fhe(e){let t=X8();for(let n in e)t[n]={...t[n],...e[n]};f6(t)}var Ihe=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 Z8(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Ihe.has(e)}var Lhe=r({default:()=>Q8}),Q8,Rhe=t((()=>{throw Q8={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),$8=e=>!Z8(e);function zhe(e){typeof e==`function`&&($8=t=>t.startsWith(`on`)?!Z8(t):e(t))}try{zhe((Rhe(),e(Lhe)).default)}catch{}function Bhe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||s3(e[i])||($8(i)||n===!0&&Z8(i)||!t&&!Z8(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var e5=(0,k.createContext)({});function Vhe(e,t){if(a6(e)){let{initial:t,animate:n}=e;return{initial:t===!1||n6(t)?t:void 0,animate:n6(n)?n:void 0}}return e.inherit===!1?{}:t}function Hhe(e){let{initial:t,animate:n}=Vhe(e,(0,k.useContext)(e5));return(0,k.useMemo)(()=>({initial:t,animate:n}),[t5(t),t5(n)])}function t5(e){return Array.isArray(e)?e.join(` `):e}var n5=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function r5(e,t,n){for(let r in t)!s3(t[r])&&!R6(r,n)&&(e[r]=t[r])}function Uhe({transformTemplate:e},t){return(0,k.useMemo)(()=>{let n=n5();return N6(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Whe(e,t){let n=e.style||{},r={};return r5(r,n,e),Object.assign(r,Uhe(e,t)),r}function Ghe(e,t){let n={},r=Whe(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 i5=()=>({...n5(),attrs:{}});function Khe(e,t,n,r){let i=(0,k.useMemo)(()=>{let n=i5();return V6(n,t,U6(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};r5(t,e.style,e),i.style={...t,...i.style}}return i}var qhe=[`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 a5(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(qhe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jhe(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??a5(e)?Khe:Ghe)(t,r,i,e),c=Bhe(t,typeof e==`string`,a),l=e===k.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,k.useMemo)(()=>s3(u)?u.get():u,[u]);return(0,k.createElement)(e,{...l,children:d})}function Yhe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Xhe(n,r,i,e),renderState:t()}}function Xhe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=w8(a[e]);let{initial:o,animate:s}=e,c=a6(e),l=o6(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`&&!t6(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=n3(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 o5=e=>(t,n)=>{let r=(0,k.useContext)(e5),i=(0,k.useContext)(T0),a=()=>Yhe(e,t,r,i);return n?a():C0(a)},Zhe=o5({scrapeMotionValuesFromProps:z6,createRenderState:n5}),Qhe=o5({scrapeMotionValuesFromProps:W6,createRenderState:i5}),$he=Symbol.for(`motionComponentSymbol`);function ege(e,t,n){let r=(0,k.useRef)(n);(0,k.useInsertionEffect)(()=>{r.current=n});let i=(0,k.useRef)(null);return(0,k.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 s5=(0,k.createContext)({});function c5(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function tge(e,t,n,r,i,a){let{visualElement:o}=(0,k.useContext)(e5),s=(0,k.useContext)(q8),c=(0,k.useContext)(T0),l=(0,k.useContext)(H8),u=l.reducedMotion,d=l.skipAnimations,f=(0,k.useRef)(null),p=(0,k.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,k.useContext)(s5);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&nge(f.current,n,i,h);let g=(0,k.useRef)(!1);(0,k.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[u3],v=(0,k.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return w0(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,k.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function nge(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:l5(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&c5(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function l5(e){if(e)return e.options.allowProjection===!1?l5(e.parent):e.projection}function u5(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Fhe(r);let a=n?n===`svg`:a5(e),o=a?Qhe:Zhe;function s(n,s){let c,l={...(0,k.useContext)(H8),...n,layoutId:rge(n)},{isStatic:u}=l,d=Hhe(n),f=o(n,u);if(!u&&typeof window<`u`){ige(l,r);let t=age(l);c=t.MeasureLayout,d.visualElement=tge(e,f,l,i,t.ProjectionNode,a)}return(0,A.jsxs)(e5.Provider,{value:d,children:[c&&d.visualElement?(0,A.jsx)(c,{visualElement:d.visualElement,...l}):null,Jhe(e,n,ege(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,k.forwardRef)(s);return c[$he]=e,c}function rge({layoutId:e}){let t=(0,k.useContext)(S0).id;return t&&e!==void 0?t+`-`+e:e}function ige(e,t){(0,k.useContext)(q8).strict}function age(e){let{drag:t,layout:n}=X8();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function oge(e,t){if(typeof Proxy>`u`)return u5;let n=new Map,r=(n,r)=>u5(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,u5(a,void 0,e,t)),n.get(a))})}var sge=(e,t)=>t.isSVG??a5(e)?new G6(t):new B6(t,{allowProjection:e!==k.Fragment}),cge=class extends h6{constructor(e){super(e),e.animationState||=Rme(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();t6(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?.()}},lge=0,uge={animation:{Feature:cge},exit:{Feature:class extends h6{constructor(){super(...arguments),this.id=lge++,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=r3(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 d5(e){return{point:{x:e.pageX,y:e.pageY}}}var dge=e=>t=>N3(t)&&e(t,d5(t));function f5(e,t,n,r){return C8(e,t,dge(n),r)}var p5=({current:e})=>e?e.ownerDocument.defaultView:null,m5=(e,t)=>Math.abs(e-t);function fge(e,t){let n=m5(e.x,t.x),r=m5(e.y,t.y);return Math.sqrt(n**2+r**2)}var h5=new Set([`auto`,`scroll`]),g5=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=_5(this.lastRawMoveEventInfo,this.transformPagePoint));let e=y5(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=fge(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=c2;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=_5(t,this.transformPagePoint),o2.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=y5(e.type===`pointercancel`?this.lastMoveEventInfo:_5(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!N3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=_5(d5(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=c2;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,y5(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=F0(f5(this.contextWindow,`pointermove`,this.handlePointerMove,d),f5(this.contextWindow,`pointerup`,this.handlePointerUp,d),f5(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(h5.has(e.overflowX)||h5.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),o2.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),s2(this.updatePoint)}};function _5(e,t){return t?{point:t(e.point)}:e}function v5(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y5({point:e},t){return{point:e,delta:v5(e,b5(t)),offset:v5(e,pge(t)),velocity:mge(t,.1)}}function pge(e){return e[0]}function b5(e){return e[e.length-1]}function mge(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=b5(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>R0(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>R0(t)*2&&(r=e[1]);let a=z0(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 hge(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?V2(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?V2(n,e,r.max):Math.min(e,n)),e}function x5(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 gge(e,{top:t,left:n,bottom:r,right:i}){return{x:x5(e.x,n,i),y:x5(e.y,t,r)}}function S5(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 _ge(e,t){return{x:S5(e.x,t.x),y:S5(e.y,t.y)}}function vge(e,t){let n=.5,r=t8(e),i=t8(t);return i>r?n=I0(t.min,t.max-r,e.min):r>i&&(n=I0(e.min,e.max-i,t.min)),O0(0,1,n)}function yge(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 C5=.35;function bge(e=C5){return e===!1?e=0:e===!0&&(e=C5),{x:w5(e,`left`,`right`),y:w5(e,`top`,`bottom`)}}function w5(e,t,n){return{min:T5(e,t),max:T5(e,n)}}function T5(e,t){return typeof e==`number`?e:e[t]||0}var xge=new WeakMap,Sge=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=$3(),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(d5(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=Jpe(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),_8(e=>{let t=this.getAxisMotionValue(e).get()||0;if(O2.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=t8(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&o2.update(()=>i(e,t),!1,!0),c3(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=wge(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&&o2.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 g5(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:p5(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&&o2.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||!D5(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=hge(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&&c5(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=gge(n.layoutBox,e):this.constraints=!1,this.elastic=bge(t),r!==this.constraints&&!c5(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&_8(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=yge(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!c5(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=xme(n,r.root,this.visualElement.getTransformPagePoint()),a=_ge(r.layout.layoutBox,i);if(t){let e=t(vme(a));this.hasMutatedConstraints=!!e,e&&(a=g6(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=_8(o=>{if(!D5(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 c3(this.visualElement,e),n.start($4(e,n,0,t,this.visualElement,!1))}stopAnimation(){_8(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){_8(t=>{let{drag:n}=this.getProps();if(!D5(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]-V2(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!c5(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};_8(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=vge({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(),_8(t=>{if(!D5(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(V2(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xge.set(this.visualElement,this);let e=this.visualElement.current,t=f5(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&eme(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();c5(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Cge(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),o2.read(r);let o=C8(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(_8(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=C5,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function E5(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Cge(e,t,n){let r=G3(e,E5(n)),i=G3(t,E5(n));return()=>{r(),i()}}function D5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wge(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Tge=class extends h6{constructor(e){super(e),this.removeGroupControls=P0,this.removeListeners=P0,this.controls=new Sge(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P0}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()}},O5=e=>(t,n)=>{e&&o2.update(()=>e(t,n),!1,!0)},Ege=class extends h6{constructor(){super(...arguments),this.removePointerDownListener=P0}onPointerDown(e){this.session=new g5(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:p5(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:O5(e),onStart:O5(t),onMove:O5(n),onEnd:(e,t)=>{delete this.session,r&&o2.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=f5(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},k5=!1,Dge=class extends k.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),k5&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),T8.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}),k5=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||o2.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(),O3.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;k5=!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 A5(e){let[t,n]=W8(),r=(0,k.useContext)(S0);return(0,A.jsx)(Dge,{...e,layoutGroup:r,switchLayoutGroup:(0,k.useContext)(s5),isPresent:t,safeToRemove:n})}var Oge={pan:{Feature:Ege},drag:{Feature:Tge,ProjectionNode:V8,MeasureLayout:A5}};function j5(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&o2.postRender(()=>i(t,d5(t)))}var kge=class extends h6{mount(){let{current:e}=this.node;e&&(this.unmount=Xpe(e,(e,t)=>(j5(this.node,t,`Start`),e=>j5(this.node,e,`End`))))}unmount(){}},Age=class extends h6{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=F0(C8(this.node.current,`focus`,()=>this.onFocus()),C8(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function M5(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&&o2.postRender(()=>i(t,d5(t)))}var jge=class extends h6{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=nme(e,(e,t)=>(M5(this.node,t,`Start`),(e,{success:t})=>M5(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},N5=new WeakMap,P5=new WeakMap,Mge=e=>{let t=N5.get(e.target);t&&t(e)},Nge=e=>{e.forEach(Mge)};function Pge({root:e,...t}){let n=e||document;P5.has(n)||P5.set(n,{});let r=P5.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nge,{root:e,...t})),r[i]}function Fge(e,t,n){let r=Pge(t);return N5.set(e,n),r.observe(e),()=>{N5.delete(e),r.unobserve(e)}}var Ige={some:0,all:1},Lge=class extends h6{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:Ige[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=Fge(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(Rge(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Rge({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var zge={inView:{Feature:Lge},tap:{Feature:jge},focus:{Feature:Age},hover:{Feature:kge}},Bge={layout:{ProjectionNode:V8,MeasureLayout:A5}},Vge=oge({...uge,...zge,...Oge,...Bge},sge);function F5(e){let t=C0(()=>X4(e)),{isStatic:n}=(0,k.useContext)(H8);if(n){let[,n]=(0,k.useState)(e);(0,k.useEffect)(()=>t.on(`change`,n),[])}return t}function I5(e,t){let n=F5(t()),r=()=>n.set(t());return r(),w0(()=>{let t=()=>o2.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),s2(r)}}),n}function Hge(e){Y4.current=[],e();let t=I5(Y4.current,e);return Y4.current=void 0,t}function L5(e,t,n,r){if(typeof e==`function`)return Hge(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Uge(e,t,n,r);let i=typeof t==`function`?t:dme(t,n,r),a=Array.isArray(e)?R5(e,i):R5([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 R5(e,t){let n=C0(()=>[]);return I5(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Uge(e,t,n,r){let i=C0(()=>Object.keys(n)),a=C0(()=>({}));for(let o of i)a[o]=L5(e,t,n[o],r);return a}function Wge(e,t={}){let{isStatic:n}=(0,k.useContext)(H8),r=()=>s3(e)?e.get():e;if(n)return L5(r);let i=F5(r());return(0,k.useInsertionEffect)(()=>fme(i,e,t),[i,JSON.stringify(t)]),i}function Gge(e,t={}){return Wge(e,{type:`spring`,...t})}function Kge(){!c6.current&&l6();let[e]=(0,k.useState)(s6.current);return e}function qge(e){e.values.forEach(e=>e.stop())}function z5(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&o3(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{z5(e,t)})})}function Jge(e,t){if(Array.isArray(t))return z5(e,t);if(typeof t==`string`)return z5(e,[t]);o3(e,t)}function Yge(){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(m3(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Jge(e,t)})},stop(){e.forEach(e=>{qge(e)})},mount(){return()=>{t.stop()}}};return t}function B5(e){return typeof e==`object`&&!Array.isArray(e)}function V5(e,t,n,r){return e==null?[]:typeof e==`string`&&B5(t)?T3(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Xge(e,t,n){return e*(t+1)+n*t}function H5(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 Zge(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(D0(e,i),r--)}}function Qge(e,t,n,r,i,a){Zge(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:V2(i,a,r[o]),easing:e2(n,o)})}function $ge(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function e_e(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var t_e=`easeInOut`,U5=20;function n_e(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,H5(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=H5(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=r_e(e),{delay:l=0,times:u=c4(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=z4(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&o_e(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=R0(b));let r=Q2(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&&s4(u,T),c.length===1&&c.unshift(null),m&&`${m}${U5}`,m&&m<U5){let e=b>0?_/b:0;b=Xge(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`?W0(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`:e2(f,e-1))}$ge(u,m,e)}let E=w+b;Qge(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(s3(p)){let e=W5(p,s);_(m,h,G5(`default`,e))}else{let e=V5(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=W5(r,s);for(let e in m)_(m[e],i_e(h,e),G5(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(e_e);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(I0(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(t_e)),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 W5(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function G5(e,t){return t[e]||(t[e]=[]),t[e]}function r_e(e){return Array.isArray(e)?e:[e]}function i_e(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var a_e=e=>typeof e==`number`,o_e=e=>e.every(a_e);function s_e(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=z3(e)&&!q3(e)?new G6(t):new B6(t);n.mount(e),e6.set(e,n)}function c_e(e){let t=new Ome({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),e6.set(e,t)}function l_e(e,t){return s3(e)||typeof e==`number`||typeof e==`string`&&!B5(t)}function K5(e,t,n,r){let i=[];if(l_e(e,t))i.push(S8(e,B5(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=V5(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?s_e:c_e;e6.has(r)||s(r);let c=e6.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...f3(c,{...t,transition:l},{}))}}return i}function u_e(e,t,n){let r=[];return n_e(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=X4(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:r4}).forEach(({keyframes:e,transition:t},n)=>{r.push(...K5(n,e,t))}),r}function d_e(e){return Array.isArray(e)&&e.some(Array.isArray)}function f_e(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),d_e(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=u_e(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=K5(e,i,{...c,...r},t)}let l=new bpe(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{D0(t.animations,l)})),l}return i}var p_e=f_e();function m_e(){let e=C0(Yge);return w0(e.mount,[]),e}var h_e=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()})}},g_e=()=>new h_e;function __e(){return C0(g_e)}var v_e=X1(`CameraPreview`,{web:()=>a(()=>import(`./web-DDFO9PaS.js`).then(e=>new e.CameraPreviewWeb),[])}),q5=e=>Symbol.iterator in e,J5=e=>`entries`in e,Y5=(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},y_e=(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 b_e(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:q5(e)&&q5(t)?J5(e)&&J5(t)?Y5(e,t):y_e(e,t):Y5({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function x_e(e){let t=k.useRef(void 0);return n=>{let r=e(n);return b_e(t.current,r)?t.current:t.current=r}}var S_e=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;function C_e(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=X5(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=X5(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 X5(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(`
|
|
385
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var Z5={}.hasOwnProperty,w_e=Object.prototype;function T_e(e,t){let n=t||{};return Q5({file:n.file||void 0,location:!1,schema:n.space===`svg`?nO:tO,verbose:n.verbose||!1},e)}function Q5(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},e7(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:$5(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=C_e(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`},e7(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},e7(e,r,n),n}default:return n=E_e(e,t),n}}function $5(e,t){let n=-1,r=[];for(;++n<t.length;){let i=Q5(e,t[n]);r.push(i)}return r}function E_e(e,t){let n=e.schema;e.schema=t.namespaceURI===vA.svg?nO:tO;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;Z5.call(w_e,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?_A:gA)(t.tagName,i,$5(e,t.childNodes));if(e7(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&t7(r.startTag),o=r&&r.endTag&&t7(r.endTag),s=Q5(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function e7(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=D_e(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function D_e(e,t,n){let r=t7(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)Z5.call(n.attrs,i)&&(r[eO(e.schema,i).property]=t7(n.attrs[i]));n.startTag;let a=t7(n.startTag),o=n.endTag?t7(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function t7(e){let t=n7({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=n7({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function n7(e){return e.line&&e.column?e:void 0}var O_e={},k_e={}.hasOwnProperty,r7=lL(`type`,{handlers:{root:j_e,element:I_e,text:P_e,comment:F_e,doctype:N_e}});function A_e(e,t){let n=(t||O_e).space;return r7(e,n===`svg`?nO:tO)}function j_e(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=i7(e.children,n,t),a7(e,n),n}function M_e(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=i7(e.children,n,t),a7(e,n),n}function N_e(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return a7(e,t),t}function P_e(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return a7(e,t),t}function F_e(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return a7(e,t),t}function I_e(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=nO);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&k_e.call(e.properties,a)){let t=L_e(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:vA[o],childNodes:[],parentNode:null};return s.childNodes=i7(e.children,s,r),a7(e,s),e.tagName===`template`&&e.content&&(s.content=M_e(e.content,r)),s}function L_e(e,t,n){let r=eO(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?OD(n):iO(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=vA[r.space]}return i}function i7(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=r7(e[r],n);a.parentNode=t,i.push(a)}return i}function a7(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 R_e=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],z_e=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]),K;(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`})(K||={});var o7={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function s7(e){return e>=55296&&e<=57343}function B_e(e){return e>=56320&&e<=57343}function V_e(e,t){return(e-55296)*1024+9216+t}function c7(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function l7(e){return e>=64976&&e<=65007||z_e.has(e)}var q;(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`})(q||={});var H_e=65536,U_e=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=H_e,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(B_e(t))return this.pos++,this._addGap(),V_e(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(q.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,K.EOF;let n=this.html.charCodeAt(t);return n===K.CARRIAGE_RETURN?K.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,K.EOF;let e=this.html.charCodeAt(this.pos);return e===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):e===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,s7(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===K.LINE_FEED||e===K.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){c7(e)?this._err(q.controlCharacterInInputStream):l7(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},u7;(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`})(u7||={});function d7(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 W_e=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),G_e=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 K_e(e){return e>=55296&&e<=57343||e>1114111?65533:G_e.get(e)??e}var f7;(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`})(f7||={});var q_e=32,p7;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(p7||={});function m7(e){return e>=f7.ZERO&&e<=f7.NINE}function J_e(e){return e>=f7.UPPER_A&&e<=f7.UPPER_F||e>=f7.LOWER_A&&e<=f7.LOWER_F}function Y_e(e){return e>=f7.UPPER_A&&e<=f7.UPPER_Z||e>=f7.LOWER_A&&e<=f7.LOWER_Z||m7(e)}function X_e(e){return e===f7.EQUALS||Y_e(e)}var h7;(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`})(h7||={});var g7;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(g7||={});var Z_e=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=h7.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=g7.Strict}startEntity(e){this.decodeMode=e,this.state=h7.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case h7.EntityStart:return e.charCodeAt(t)===f7.NUM?(this.state=h7.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=h7.NamedEntity,this.stateNamedEntity(e,t));case h7.NumericStart:return this.stateNumericStart(e,t);case h7.NumericDecimal:return this.stateNumericDecimal(e,t);case h7.NumericHex:return this.stateNumericHex(e,t);case h7.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|q_e)===f7.LOWER_X?(this.state=h7.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=h7.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(m7(r)||J_e(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(m7(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===f7.SEMI)this.consumed+=1;else if(this.decodeMode===g7.Strict)return 0;return this.emitCodePoint(K_e(this.result),this.consumed),this.errors&&(e!==f7.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&p7.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=Q_e(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===g7.Attribute&&(i===0||X_e(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&p7.VALUE_LENGTH)>>14,i!==0){if(a===f7.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==g7.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]&p7.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]&~p7.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case h7.NamedEntity:return this.result!==0&&(this.decodeMode!==g7.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case h7.NumericDecimal:return this.emitNumericEntity(0,2);case h7.NumericHex:return this.emitNumericEntity(0,3);case h7.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case h7.EntityStart:return 0}}};function Q_e(e,t,n,r){let i=(t&p7.BRANCH_LENGTH)>>7,a=t&p7.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 J;(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/`})(J||={});var _7;(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`})(_7||={});var v7;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(v7||={});var Y;(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`})(Y||={});var X;(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`})(X||={});var $_e=new Map([[Y.A,X.A],[Y.ADDRESS,X.ADDRESS],[Y.ANNOTATION_XML,X.ANNOTATION_XML],[Y.APPLET,X.APPLET],[Y.AREA,X.AREA],[Y.ARTICLE,X.ARTICLE],[Y.ASIDE,X.ASIDE],[Y.B,X.B],[Y.BASE,X.BASE],[Y.BASEFONT,X.BASEFONT],[Y.BGSOUND,X.BGSOUND],[Y.BIG,X.BIG],[Y.BLOCKQUOTE,X.BLOCKQUOTE],[Y.BODY,X.BODY],[Y.BR,X.BR],[Y.BUTTON,X.BUTTON],[Y.CAPTION,X.CAPTION],[Y.CENTER,X.CENTER],[Y.CODE,X.CODE],[Y.COL,X.COL],[Y.COLGROUP,X.COLGROUP],[Y.DD,X.DD],[Y.DESC,X.DESC],[Y.DETAILS,X.DETAILS],[Y.DIALOG,X.DIALOG],[Y.DIR,X.DIR],[Y.DIV,X.DIV],[Y.DL,X.DL],[Y.DT,X.DT],[Y.EM,X.EM],[Y.EMBED,X.EMBED],[Y.FIELDSET,X.FIELDSET],[Y.FIGCAPTION,X.FIGCAPTION],[Y.FIGURE,X.FIGURE],[Y.FONT,X.FONT],[Y.FOOTER,X.FOOTER],[Y.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[Y.FORM,X.FORM],[Y.FRAME,X.FRAME],[Y.FRAMESET,X.FRAMESET],[Y.H1,X.H1],[Y.H2,X.H2],[Y.H3,X.H3],[Y.H4,X.H4],[Y.H5,X.H5],[Y.H6,X.H6],[Y.HEAD,X.HEAD],[Y.HEADER,X.HEADER],[Y.HGROUP,X.HGROUP],[Y.HR,X.HR],[Y.HTML,X.HTML],[Y.I,X.I],[Y.IMG,X.IMG],[Y.IMAGE,X.IMAGE],[Y.INPUT,X.INPUT],[Y.IFRAME,X.IFRAME],[Y.KEYGEN,X.KEYGEN],[Y.LABEL,X.LABEL],[Y.LI,X.LI],[Y.LINK,X.LINK],[Y.LISTING,X.LISTING],[Y.MAIN,X.MAIN],[Y.MALIGNMARK,X.MALIGNMARK],[Y.MARQUEE,X.MARQUEE],[Y.MATH,X.MATH],[Y.MENU,X.MENU],[Y.META,X.META],[Y.MGLYPH,X.MGLYPH],[Y.MI,X.MI],[Y.MO,X.MO],[Y.MN,X.MN],[Y.MS,X.MS],[Y.MTEXT,X.MTEXT],[Y.NAV,X.NAV],[Y.NOBR,X.NOBR],[Y.NOFRAMES,X.NOFRAMES],[Y.NOEMBED,X.NOEMBED],[Y.NOSCRIPT,X.NOSCRIPT],[Y.OBJECT,X.OBJECT],[Y.OL,X.OL],[Y.OPTGROUP,X.OPTGROUP],[Y.OPTION,X.OPTION],[Y.P,X.P],[Y.PARAM,X.PARAM],[Y.PLAINTEXT,X.PLAINTEXT],[Y.PRE,X.PRE],[Y.RB,X.RB],[Y.RP,X.RP],[Y.RT,X.RT],[Y.RTC,X.RTC],[Y.RUBY,X.RUBY],[Y.S,X.S],[Y.SCRIPT,X.SCRIPT],[Y.SEARCH,X.SEARCH],[Y.SECTION,X.SECTION],[Y.SELECT,X.SELECT],[Y.SOURCE,X.SOURCE],[Y.SMALL,X.SMALL],[Y.SPAN,X.SPAN],[Y.STRIKE,X.STRIKE],[Y.STRONG,X.STRONG],[Y.STYLE,X.STYLE],[Y.SUB,X.SUB],[Y.SUMMARY,X.SUMMARY],[Y.SUP,X.SUP],[Y.TABLE,X.TABLE],[Y.TBODY,X.TBODY],[Y.TEMPLATE,X.TEMPLATE],[Y.TEXTAREA,X.TEXTAREA],[Y.TFOOT,X.TFOOT],[Y.TD,X.TD],[Y.TH,X.TH],[Y.THEAD,X.THEAD],[Y.TITLE,X.TITLE],[Y.TR,X.TR],[Y.TRACK,X.TRACK],[Y.TT,X.TT],[Y.U,X.U],[Y.UL,X.UL],[Y.SVG,X.SVG],[Y.VAR,X.VAR],[Y.WBR,X.WBR],[Y.XMP,X.XMP]]);function y7(e){return $_e.get(e)??X.UNKNOWN}var Z=X,eve={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},b7=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);new Set([Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT]);var Q;(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`})(Q||={});var x7={DATA:Q.DATA,RCDATA:Q.RCDATA,RAWTEXT:Q.RAWTEXT,SCRIPT_DATA:Q.SCRIPT_DATA,PLAINTEXT:Q.PLAINTEXT,CDATA_SECTION:Q.CDATA_SECTION};function tve(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function S7(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function nve(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function C7(e){return nve(e)||S7(e)}function w7(e){return C7(e)||tve(e)}function T7(e){return e+32}function E7(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function D7(e){return E7(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function rve(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:s7(e)?q.surrogateCharacterReference:l7(e)?q.noncharacterCharacterReference:c7(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var ive=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=Q.DATA,this.returnState=Q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new U_e(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Z_e(W_e,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=rve(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:u7.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:u7.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:u7.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:u7.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(d7(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(q.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=y7(e.tagName),e.type===u7.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.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 u7.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case u7.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case u7.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:u7.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=E7(e)?u7.WHITESPACE_CHARACTER:e===K.NULL?u7.NULL_CHARACTER:u7.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(u7.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?g7.Attribute:g7.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Q.DATA:this._stateData(e);break;case Q.RCDATA:this._stateRcdata(e);break;case Q.RAWTEXT:this._stateRawtext(e);break;case Q.SCRIPT_DATA:this._stateScriptData(e);break;case Q.PLAINTEXT:this._statePlaintext(e);break;case Q.TAG_OPEN:this._stateTagOpen(e);break;case Q.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Q.TAG_NAME:this._stateTagName(e);break;case Q.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Q.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Q.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Q.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Q.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Q.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Q.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Q.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Q.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Q.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Q.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Q.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Q.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Q.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Q.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Q.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Q.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Q.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Q.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Q.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Q.BOGUS_COMMENT:this._stateBogusComment(e);break;case Q.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Q.COMMENT_START:this._stateCommentStart(e);break;case Q.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Q.COMMENT:this._stateComment(e);break;case Q.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Q.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Q.COMMENT_END:this._stateCommentEnd(e);break;case Q.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Q.DOCTYPE:this._stateDoctype(e);break;case Q.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Q.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Q.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Q.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Q.CDATA_SECTION:this._stateCdataSection(e);break;case Q.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Q.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Q.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Q.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.TAG_OPEN;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case K.AMPERSAND:this._startCharacterReference();break;case K.LESS_THAN_SIGN:this.state=Q.RCDATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.RAWTEXT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(C7(e))this._createStartTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.EXCLAMATION_MARK:this.state=Q.MARKUP_DECLARATION_OPEN;break;case K.SOLIDUS:this.state=Q.END_TAG_OPEN;break;case K.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e);break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Q.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(C7(e))this._createEndTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=Q.DATA;break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.tagName+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(S7(e)?T7(e):e)}}_stateRcdataLessThanSign(e){e===K.SOLIDUS?this.state=Q.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){C7(e)?(this.state=Q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=Q.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 K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Q.BEFORE_ATTRIBUTE_NAME,!1;case K.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Q.SELF_CLOSING_START_TAG,!1;case K.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===K.SOLIDUS?this.state=Q.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){C7(e)?(this.state=Q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case K.SOLIDUS:this.state=Q.SCRIPT_DATA_END_TAG_OPEN;break;case K.EXCLAMATION_MARK:this.state=Q.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){C7(e)?(this.state=Q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===K.SOLIDUS?this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:C7(e)?(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){C7(e)?(this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(o7.SCRIPT,!1)&&D7(this.preprocessor.peek(o7.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<o7.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===K.SOLIDUS?(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(o7.SCRIPT,!1)&&D7(this.preprocessor.peek(o7.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<o7.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=Q.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this._leaveAttrName(),this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._leaveAttrName(),this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(S7(e)?T7(e):e)}}_stateAfterAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.EQUALS_SIGN:this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:this.state=Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case K.APOSTROPHE:this.state=Q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingAttributeValue),this.state=Q.DATA,this.emitCurrentTagToken();break;default:this.state=Q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case K.APOSTROPHE:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.AMPERSAND:this._startCharacterReference();break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:case K.EQUALS_SIGN:case K.GRAVE_ACCENT:this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this._leaveAttrValue(),this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.missingWhitespaceBetweenAttributes),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case K.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=Q.DATA,this.emitCurrentTagToken();break}case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.unexpectedSolidusInTag),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(o7.DASH_DASH,!0)?(this._createCommentToken(o7.DASH_DASH.length+1),this.state=Q.COMMENT_START):this._consumeSequenceIfMatch(o7.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(o7.DOCTYPE.length+1),this.state=Q.DOCTYPE):this._consumeSequenceIfMatch(o7.CDATA_START,!0)?this.inForeignNode?this.state=Q.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(o7.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=Q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_START_DASH;break;case K.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.GREATER_THAN_SIGN:this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END_DASH;break;case K.LESS_THAN_SIGN:t.data+=`<`,this.state=Q.COMMENT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case K.EXCLAMATION_MARK:t.data+=`!`,this.state=Q.COMMENT_LESS_THAN_SIGN_BANG;break;case K.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Q.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Q.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==K.GREATER_THAN_SIGN&&e!==K.EOF&&this._err(q.nestedComment),this.state=Q.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EXCLAMATION_MARK:this.state=Q.COMMENT_END_BANG;break;case K.HYPHEN_MINUS:t.data+=`-`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:t.data+=`--!`,this.state=Q.COMMENT_END_DASH;break;case K.GREATER_THAN_SIGN:this._err(q.incorrectlyClosedComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=Q.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case K.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(S7(e))this._createDoctypeToken(String.fromCharCode(T7(e))),this.state=Q.DOCTYPE_NAME;else switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.NULL:this._err(q.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=Q.DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Q.DATA;break}case K.EOF:{this._err(q.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=Q.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.AFTER_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.NULL:this._err(q.unexpectedNullCharacter),t.name+=`�`;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(S7(e)?T7(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(o7.PUBLIC,!1)?this.state=Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(o7.SYSTEM,!1)?this.state=Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.NULL:this._err(q.unexpectedNullCharacter);break;case K.EOF:this.emitCurrentDoctype(t),this._emitEOFToken();break;default:}}_stateCdataSection(e){switch(e){case K.RIGHT_SQUARE_BRACKET:this.state=Q.CDATA_SECTION_BRACKET;break;case K.EOF:this._err(q.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===K.RIGHT_SQUARE_BRACKET?this.state=Q.CDATA_SECTION_END:(this._emitChars(`]`),this.state=Q.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA;break;case K.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=Q.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(K.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&w7(this.preprocessor.peek(1))?Q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){w7(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===K.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},O7=new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),k7=new Set([...O7,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),A7=new Set([X.APPLET,X.CAPTION,X.HTML,X.MARQUEE,X.OBJECT,X.TABLE,X.TD,X.TEMPLATE,X.TH]),ave=new Set([...A7,X.OL,X.UL]),ove=new Set([...A7,X.BUTTON]),j7=new Set([X.ANNOTATION_XML,X.MI,X.MN,X.MO,X.MS,X.MTEXT]),M7=new Set([X.DESC,X.FOREIGN_OBJECT,X.TITLE]),sve=new Set([X.TR,X.TEMPLATE,X.HTML]),cve=new Set([X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML]),lve=new Set([X.TABLE,X.TEMPLATE,X.HTML]),uve=new Set([X.TD,X.TH]),dve=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=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.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])!==J.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(b7,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(uve,J.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(lve,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(cve,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(sve,J.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]===X.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]===X.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 J.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case J.SVG:if(M7.has(r))return!1;break;case J.MATHML:if(j7.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,A7)}hasInListItemScope(e){return this.hasInDynamicScope(e,ave)}hasInButtonScope(e){return this.hasInDynamicScope(e,ove)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case J.HTML:if(b7.has(t))return!0;if(A7.has(t))return!1;break;case J.SVG:if(M7.has(t))return!1;break;case J.MATHML:if(j7.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===J.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&O7.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&k7.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&k7.has(this.currentTagId);)this.pop()}},N7=3,P7;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(P7||={});var F7={type:P7.Marker},fve=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===P7.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<N7)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<N7)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>=N7&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(F7)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:P7.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:P7.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(F7);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===P7.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===P7.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===P7.Element&&t.element===e)}},I7={createDocument(){return{nodeName:`#document`,mode:v7.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};I7.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(I7.isTextNode(n)){n.value+=t;return}}I7.appendChild(e,I7.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&I7.isTextNode(r)?r.value+=t:I7.insertBefore(e,I7.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}}},L7=`html`,pve=`about:legacy-compat`,mve=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,R7=`+//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(`,`),hve=[...R7,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],gve=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),z7=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],_ve=[...z7,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function B7(e,t){return t.some(t=>e.startsWith(t))}function vve(e){return e.name===L7&&e.publicId===null&&(e.systemId===null||e.systemId===pve)}function yve(e){if(e.name!==L7)return v7.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===mve)return v7.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),gve.has(n))return v7.QUIRKS;let e=t===null?hve:R7;if(B7(n,e))return v7.QUIRKS;if(e=t===null?z7:_ve,B7(n,e))return v7.LIMITED_QUIRKS}return v7.NO_QUIRKS}var V7={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},bve=`definitionurl`,xve=`definitionURL`,Sve=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])),Cve=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:J.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:J.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:J.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:J.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:J.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:J.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:J.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:J.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:J.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:J.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:J.XMLNS}]]),wve=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])),Tve=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function Eve(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===_7.COLOR||e===_7.SIZE||e===_7.FACE)||Tve.has(t)}function H7(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bve){e.attrs[t].name=xve;break}}function U7(e){for(let t=0;t<e.attrs.length;t++){let n=Sve.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function W7(e){for(let t=0;t<e.attrs.length;t++){let n=Cve.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 Dve(e){let t=wve.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=y7(e.tagName))}function Ove(e,t){return t===J.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function kve(e,t,n){if(t===J.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===_7.ENCODING){let t=n[e].value.toLowerCase();return t===V7.TEXT_HTML||t===V7.APPLICATION_XML}}return t===J.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function Ave(e,t,n,r){return(!r||r===J.HTML)&&kve(e,t,n)||(!r||r===J.MATHML)&&Ove(e,t)}var jve=`hidden`,Mve=8,Nve=3,$;(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`})($||={});var Pve={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},G7=new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),K7={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:I7,onParseError:null},q7=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=$.INITIAL,this.originalInsertionMode=$.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={...K7,...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 ive(this.options,this),this.activeFormattingElements=new fve(this.treeAdapter),this.fragmentContextID=n?y7(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new dve(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={...K7,...t};e??=n.treeAdapter.createElement(Y.TEMPLATE,J.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,J.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===X.TEMPLATE&&i.tmplInsertionModeStack.unshift($.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??Pve,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)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,J.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=$.TEXT}switchToPlaintextParsing(){this.insertionMode=$.TEXT,this.originalInsertionMode=$.IN_BODY,this.tokenizer.state=x7.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)===Y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=x7.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=x7.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=x7.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=x7.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,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,J.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(Y.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.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===u7.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===X.SVG&&this.treeAdapter.getTagName(t)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===J.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,J.HTML)}_processToken(e){switch(e.type){case u7.CHARACTER:this.onCharacter(e);break;case u7.NULL_CHARACTER:this.onNullCharacter(e);break;case u7.COMMENT:this.onComment(e);break;case u7.DOCTYPE:this.onDoctype(e);break;case u7.START_TAG:this._processStartTag(e);break;case u7.END_TAG:this.onEndTag(e);break;case u7.EOF:this.onEof(e);break;case u7.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return Ave(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===P7.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=$.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=$.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=$.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=$.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=$.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=$.IN_TABLE;return;case X.BODY:this.insertionMode=$.IN_BODY;return;case X.FRAMESET:this.insertionMode=$.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?$.AFTER_HEAD:$.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=$.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=$.IN_HEAD;return}break}this.insertionMode=$.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=$.IN_SELECT_IN_TABLE;return}}this.insertionMode=$.IN_SELECT}_isElementCausesFosterParenting(e){return G7.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 X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.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 eve[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ube(this,e);return}switch(this.insertionMode){case $.INITIAL:Z7(this,e);break;case $.BEFORE_HTML:Q7(this,e);break;case $.BEFORE_HEAD:$7(this,e);break;case $.IN_HEAD:n9(this,e);break;case $.IN_HEAD_NO_SCRIPT:r9(this,e);break;case $.AFTER_HEAD:i9(this,e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:s9(this,e);break;case $.TEXT:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:g9(this,e);break;case $.IN_TABLE_TEXT:x9(this,e);break;case $.IN_COLUMN_GROUP:T9(this,e);break;case $.AFTER_BODY:P9(this,e);break;case $.AFTER_AFTER_BODY:F9(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lbe(this,e);return}switch(this.insertionMode){case $.INITIAL:Z7(this,e);break;case $.BEFORE_HTML:Q7(this,e);break;case $.BEFORE_HEAD:$7(this,e);break;case $.IN_HEAD:n9(this,e);break;case $.IN_HEAD_NO_SCRIPT:r9(this,e);break;case $.AFTER_HEAD:i9(this,e);break;case $.TEXT:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:g9(this,e);break;case $.IN_COLUMN_GROUP:T9(this,e);break;case $.AFTER_BODY:P9(this,e);break;case $.AFTER_AFTER_BODY:F9(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Y7(this,e);return}switch(this.insertionMode){case $.INITIAL:case $.BEFORE_HTML:case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_TEMPLATE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:Y7(this,e);break;case $.IN_TABLE_TEXT:S9(this,e);break;case $.AFTER_BODY:Vve(this,e);break;case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:Hve(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:Uve(this,e);break;case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case $.IN_TABLE_TEXT:S9(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?dbe(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Z7(this,e);break;case $.BEFORE_HTML:Wve(this,e);break;case $.BEFORE_HEAD:Kve(this,e);break;case $.IN_HEAD:e9(this,e);break;case $.IN_HEAD_NO_SCRIPT:Yve(this,e);break;case $.AFTER_HEAD:Zve(this,e);break;case $.IN_BODY:f9(this,e);break;case $.IN_TABLE:_9(this,e);break;case $.IN_TABLE_TEXT:S9(this,e);break;case $.IN_CAPTION:qye(this,e);break;case $.IN_COLUMN_GROUP:w9(this,e);break;case $.IN_TABLE_BODY:E9(this,e);break;case $.IN_ROW:O9(this,e);break;case $.IN_CELL:Xye(this,e);break;case $.IN_SELECT:A9(this,e);break;case $.IN_SELECT_IN_TABLE:Qye(this,e);break;case $.IN_TEMPLATE:ebe(this,e);break;case $.AFTER_BODY:nbe(this,e);break;case $.IN_FRAMESET:rbe(this,e);break;case $.AFTER_FRAMESET:abe(this,e);break;case $.AFTER_AFTER_BODY:sbe(this,e);break;case $.AFTER_AFTER_FRAMESET:cbe(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?fbe(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Z7(this,e);break;case $.BEFORE_HTML:Gve(this,e);break;case $.BEFORE_HEAD:qve(this,e);break;case $.IN_HEAD:Jve(this,e);break;case $.IN_HEAD_NO_SCRIPT:Xve(this,e);break;case $.AFTER_HEAD:Qve(this,e);break;case $.IN_BODY:m9(this,e);break;case $.TEXT:Lye(this,e);break;case $.IN_TABLE:v9(this,e);break;case $.IN_TABLE_TEXT:S9(this,e);break;case $.IN_CAPTION:Jye(this,e);break;case $.IN_COLUMN_GROUP:Yye(this,e);break;case $.IN_TABLE_BODY:D9(this,e);break;case $.IN_ROW:k9(this,e);break;case $.IN_CELL:Zye(this,e);break;case $.IN_SELECT:j9(this,e);break;case $.IN_SELECT_IN_TABLE:$ye(this,e);break;case $.IN_TEMPLATE:tbe(this,e);break;case $.AFTER_BODY:N9(this,e);break;case $.IN_FRAMESET:ibe(this,e);break;case $.AFTER_FRAMESET:obe(this,e);break;case $.AFTER_AFTER_BODY:F9(this,e);break;default:}}onEof(e){switch(this.insertionMode){case $.INITIAL:Z7(this,e);break;case $.BEFORE_HTML:Q7(this,e);break;case $.BEFORE_HEAD:$7(this,e);break;case $.IN_HEAD:n9(this,e);break;case $.IN_HEAD_NO_SCRIPT:r9(this,e);break;case $.AFTER_HEAD:i9(this,e);break;case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:h9(this,e);break;case $.TEXT:Rye(this,e);break;case $.IN_TABLE_TEXT:S9(this,e);break;case $.IN_TEMPLATE:M9(this,e);break;case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:X7(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===K.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 $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.TEXT:case $.IN_COLUMN_GROUP:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:this._insertCharacters(e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:case $.AFTER_BODY:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:o9(this,e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:g9(this,e);break;case $.IN_TABLE_TEXT:b9(this,e);break;default:}}};function Fve(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):p9(e,t),n}function Ive(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 Lve(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>=Nve;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Rve(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Rve(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 zve(e,t,n){let r=y7(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Bve(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 J7(e,t){for(let n=0;n<Mve;n++){let n=Fve(e,t);if(!n)break;let r=Ive(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=Lve(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&zve(e,a,i),Bve(e,r,n)}}function Y7(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Vve(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Hve(e,t){e._appendCommentNode(t,e.document)}function X7(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 Uve(e,t){e._setDocumentType(t);let n=t.forceQuirks?v7.QUIRKS:yve(t);vve(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=$.BEFORE_HTML}function Z7(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,v7.QUIRKS),e.insertionMode=$.BEFORE_HTML,e._processToken(t)}function Wve(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=$.BEFORE_HEAD):Q7(e,t)}function Gve(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&Q7(e,t)}function Q7(e,t){e._insertFakeRootElement(),e.insertionMode=$.BEFORE_HEAD,e._processToken(t)}function Kve(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD;break;default:$7(e,t)}}function qve(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?$7(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function $7(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD,e._processToken(t)}function e9(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,x7.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,x7.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=$.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,x7.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,x7.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=$.IN_TEMPLATE,e.tmplInsertionModeStack.unshift($.IN_TEMPLATE);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:n9(e,t)}}function Jve(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=$.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:n9(e,t);break;case X.TEMPLATE:t9(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function t9(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function n9(e,t){e.openElements.pop(),e.insertionMode=$.AFTER_HEAD,e._processToken(t)}function Yve(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:e9(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:r9(e,t)}}function Xve(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=$.IN_HEAD;break;case X.BR:r9(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function r9(e,t){let n=t.type===u7.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=$.IN_HEAD,e._processToken(t)}function Zve(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.BODY:e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_BODY;break;case X.FRAMESET:e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),e9(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:i9(e,t)}}function Qve(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:i9(e,t);break;case X.TEMPLATE:t9(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function i9(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=$.IN_BODY,a9(e,t)}function a9(e,t){switch(t.type){case u7.CHARACTER:s9(e,t);break;case u7.WHITESPACE_CHARACTER:o9(e,t);break;case u7.COMMENT:Y7(e,t);break;case u7.START_TAG:f9(e,t);break;case u7.END_TAG:m9(e,t);break;case u7.EOF:h9(e,t);break;default:}}function o9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function s9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function $ve(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function eye(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function tye(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET)}function nye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function rye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&b7.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function iye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function aye(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function oye(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===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function sye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=x7.PLAINTEXT}function cye(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function lye(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(J7(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function uye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function dye(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(J7(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function fye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pye(e,t){e.treeAdapter.getDocumentMode(e.document)!==v7.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_TABLE}function c9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function l9(e){let t=d7(e,_7.TYPE);return t!=null&&t.toLowerCase()===jve}function mye(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),l9(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function hye(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function gye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _ye(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,c9(e,t)}function vye(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=x7.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$.TEXT}function yye(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,x7.RAWTEXT)}function bye(e,t){e.framesetOk=!1,e._switchToTextParsing(t,x7.RAWTEXT)}function u9(e,t){e._switchToTextParsing(t,x7.RAWTEXT)}function xye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===$.IN_TABLE||e.insertionMode===$.IN_CAPTION||e.insertionMode===$.IN_TABLE_BODY||e.insertionMode===$.IN_ROW||e.insertionMode===$.IN_CELL?$.IN_SELECT_IN_TABLE:$.IN_SELECT}function Sye(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Cye(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function wye(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function Tye(e,t){e._reconstructActiveFormattingElements(),H7(t),W7(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function Eye(e,t){e._reconstructActiveFormattingElements(),U7(t),W7(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function d9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function f9(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:uye(e,t);break;case X.A:lye(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:rye(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:nye(e,t);break;case X.LI:case X.DD:case X.DT:oye(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:c9(e,t);break;case X.HR:gye(e,t);break;case X.RB:case X.RTC:Cye(e,t);break;case X.RT:case X.RP:wye(e,t);break;case X.PRE:case X.LISTING:iye(e,t);break;case X.XMP:yye(e,t);break;case X.SVG:Eye(e,t);break;case X.HTML:$ve(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:e9(e,t);break;case X.BODY:eye(e,t);break;case X.FORM:aye(e,t);break;case X.NOBR:dye(e,t);break;case X.MATH:Tye(e,t);break;case X.TABLE:pye(e,t);break;case X.INPUT:mye(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:hye(e,t);break;case X.IMAGE:_ye(e,t);break;case X.BUTTON:cye(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:fye(e,t);break;case X.IFRAME:bye(e,t);break;case X.SELECT:xye(e,t);break;case X.OPTION:case X.OPTGROUP:Sye(e,t);break;case X.NOEMBED:case X.NOFRAMES:u9(e,t);break;case X.FRAMESET:tye(e,t);break;case X.TEXTAREA:vye(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?u9(e,t):d9(e,t);break;case X.PLAINTEXT:sye(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:d9(e,t)}}function Dye(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Oye(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,N9(e,t))}function kye(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Aye(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function jye(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function Mye(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function Nye(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Pye(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Fye(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Iye(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function p9(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!==X.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 m9(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:J7(e,t);break;case X.P:jye(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:kye(e,t);break;case X.LI:Mye(e);break;case X.DD:case X.DT:Nye(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:Pye(e);break;case X.BR:Iye(e);break;case X.BODY:Dye(e,t);break;case X.HTML:Oye(e,t);break;case X.FORM:Aye(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Fye(e,t);break;case X.TEMPLATE:t9(e,t);break;default:p9(e,t)}}function h9(e,t){e.tmplInsertionModeStack.length>0?M9(e,t):X7(e,t)}function Lye(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Rye(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function g9(e,t){if(e.openElements.currentTagId!==void 0&&G7.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=$.IN_TABLE_TEXT,t.type){case u7.CHARACTER:x9(e,t);break;case u7.WHITESPACE_CHARACTER:b9(e,t);break}else y9(e,t)}function zye(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CAPTION}function Bye(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_COLUMN_GROUP}function Vye(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=$.IN_COLUMN_GROUP,w9(e,t)}function Hye(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_TABLE_BODY}function Uye(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=$.IN_TABLE_BODY,E9(e,t)}function Wye(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Gye(e,t){l9(t)?e._appendElement(t,J.HTML):y9(e,t),t.ackSelfClosing=!0}function Kye(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _9(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:Uye(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:e9(e,t);break;case X.COL:Vye(e,t);break;case X.FORM:Kye(e,t);break;case X.TABLE:Wye(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:Hye(e,t);break;case X.INPUT:Gye(e,t);break;case X.CAPTION:zye(e,t);break;case X.COLGROUP:Bye(e,t);break;default:y9(e,t)}}function v9(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:t9(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:y9(e,t)}}function y9(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,a9(e,t),e.fosterParentingEnabled=n}function b9(e,t){e.pendingCharacterTokens.push(t)}function x9(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function S9(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)y9(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var C9=new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function qye(e,t){let n=t.tagID;C9.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,_9(e,t)):f9(e,t)}function Jye(e,t){let n=t.tagID;switch(n){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,n===X.TABLE&&v9(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:m9(e,t)}}function w9(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.COL:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:e9(e,t);break;default:T9(e,t)}}function Yye(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TEMPLATE:t9(e,t);break;case X.COL:break;default:T9(e,t)}}function T9(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE,e._processToken(t))}function E9(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,X.TR),e.insertionMode=$.IN_ROW,O9(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,_9(e,t));break;default:_9(e,t)}}function D9(e,t){let n=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,v9(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:v9(e,t)}}function O9(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,E9(e,t));break;default:_9(e,t)}}function k9(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,D9(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,D9(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:v9(e,t)}}function Xye(e,t){let n=t.tagID;C9.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),O9(e,t)):f9(e,t)}function Zye(e,t){let n=t.tagID;switch(n){case X.TD:case X.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),k9(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:m9(e,t)}}function A9(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.HR:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:e9(e,t);break;default:}}function j9(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:t9(e,t);break;default:}}function Qye(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):A9(e,t)}function $ye(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):j9(e,t)}function ebe(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e9(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=$.IN_TABLE,e.insertionMode=$.IN_TABLE,_9(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,e.insertionMode=$.IN_COLUMN_GROUP,w9(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,e.insertionMode=$.IN_TABLE_BODY,E9(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=$.IN_ROW,e.insertionMode=$.IN_ROW,O9(e,t);break;default:e.tmplInsertionModeStack[0]=$.IN_BODY,e.insertionMode=$.IN_BODY,f9(e,t)}}function tbe(e,t){t.tagID===X.TEMPLATE&&t9(e,t)}function M9(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):X7(e,t)}function nbe(e,t){t.tagID===X.HTML?f9(e,t):P9(e,t)}function N9(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=$.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.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 P9(e,t)}function P9(e,t){e.insertionMode=$.IN_BODY,a9(e,t)}function rbe(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.FRAMESET:e._insertElement(t,J.HTML);break;case X.FRAME:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:e9(e,t);break;default:}}function ibe(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=$.AFTER_FRAMESET))}function abe(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.NOFRAMES:e9(e,t);break;default:}}function obe(e,t){t.tagID===X.HTML&&(e.insertionMode=$.AFTER_AFTER_FRAMESET)}function sbe(e,t){t.tagID===X.HTML?f9(e,t):F9(e,t)}function F9(e,t){e.insertionMode=$.IN_BODY,a9(e,t)}function cbe(e,t){switch(t.tagID){case X.HTML:f9(e,t);break;case X.NOFRAMES:e9(e,t);break;default:}}function lbe(e,t){t.chars=`�`,e._insertCharacters(t)}function ube(e,t){e._insertCharacters(t),e.framesetOk=!1}function I9(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function dbe(e,t){if(Eve(t))I9(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?H7(t):r===J.SVG&&(Dve(t),U7(t)),W7(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function fbe(e,t){if(t.tagID===X.P||t.tagID===X.BR){I9(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)===J.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([Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR]);var pbe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,mbe=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),L9={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function R9(e,t){let n=wbe(e),r=lL(`type`,{handlers:{root:hbe,element:gbe,text:_be,comment:B9,doctype:vbe,raw:bbe},unknown:xbe}),i={parser:n?new q7(L9):q7.getFragmentParser(void 0,L9),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),V9(i,oO());let a=T_e(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&Vk(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 z9(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function hbe(e,t){z9(e.children,t)}function gbe(e,t){Sbe(e,t),z9(e.children,t),Cbe(e,t)}function _be(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:u7.CHARACTER,chars:e.value,location:U9(e)};V9(t,oO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function vbe(e,t){let n={type:u7.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:U9(e)};V9(t,oO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ybe(e,t){t.stitches=!0;let n=Tbe(e);`children`in e&&`children`in n&&(n.children=R9({type:`root`,children:e.children},t.options).children),B9({type:`comment`,value:{stitch:n}},t)}function B9(e,t){let n=e.value,r={type:u7.COMMENT,data:n,location:U9(e)};V9(t,oO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function bbe(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,H9(t,oO(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(pbe,`<$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 xbe(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ybe(n,t);else{let e=``;throw mbe.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 V9(e,t){H9(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=x7.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 H9(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 Sbe(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===x7.PLAINTEXT)return;V9(t,oO(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:vA.html;i===vA.html&&n===`svg`&&(i=vA.svg);let a=A_e({...e,children:[]},{space:i===vA.svg?`svg`:`html`}),o={type:u7.START_TAG,tagName:n,tagID:y7(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:U9(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Cbe(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&R_e.includes(n)||t.parser.tokenizer.state===x7.PLAINTEXT)return;V9(t,aO(e));let r={type:u7.END_TAG,tagName:n,tagID:y7(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:U9(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===x7.RCDATA||t.parser.tokenizer.state===x7.RAWTEXT||t.parser.tokenizer.state===x7.SCRIPT_DATA)&&(t.parser.tokenizer.state=x7.DATA)}function wbe(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function U9(e){let t=oO(e)||{line:void 0,column:void 0,offset:void 0},n=aO(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 Tbe(e){return`children`in e?Ik({...e,children:[]}):Ik(e)}function Ebe(e){return function(t,n){return R9(t,{...e,file:n})}}var W9=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],G9={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...W9,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...W9],h2:[[`className`,`sr-only`]],img:[...W9,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...W9,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...W9],table:[...W9],ul:[...W9,[`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(`.`)},K9={}.hasOwnProperty;function Dbe(e,t){let n={type:`root`,children:[]},r=q9({schema:t?{...G9,...t}:G9,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function q9(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return Obe(e,n);case`doctype`:return kbe(e,n);case`element`:return Abe(e,n);case`root`:return jbe(e,n);case`text`:return J9(e,n);default:}}}function Obe(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 Q9(r,t),r}}function kbe(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return Q9(e,t),e}}function Abe(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=Y9(e,t.children),i=Mbe(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&&K9.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 Q9(o,t),o}function jbe(e,t){let n={type:`root`,children:Y9(e,t.children)};return Q9(n,t),n}function J9(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return Q9(n,t),n}function Y9(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=q9(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function Mbe(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&K9.call(r,n)?r[n]:void 0,o=r&&K9.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(K9.call(s,l)){let t=s[l],n=X9(e,$9(a,l),l,t);n??=X9(e,$9(o,l),l,t),n!=null&&(c[l]=n)}if(i&&K9.call(i,n)){let e=i[n];for(l in e)K9.call(e,l)&&!K9.call(c,l)&&(c[l]=e[l])}return c}function X9(e,t,n,r){return t?Array.isArray(r)?Nbe(e,t,n,r):Z9(e,t,n,r):void 0}function Nbe(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=Z9(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function Z9(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&Pbe(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 Pbe(e,t,n){let r=e.schema.protocols&&K9.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 Q9(e,t){let n=cO(t);t.data&&(e.data=Ik(t.data)),n&&(e.position=n)}function $9(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 Fbe(e){return function(t){return Dbe(t,e)}}export{zW as $,vc as $n,Oy as $t,I$ as A,Xp as An,NC as At,sZ as B,ol as Bn,MS as Bt,Y1 as C,Yne as Cn,jC as Ct,K1 as D,qne as Dn,AC as Dt,X1 as E,Kne as En,kC as Et,BZ as F,Up as Fn,OS as Ft,dZ as G,pne as Gn,RS as Gt,UX as H,gne as Hn,TS as Ht,pZ as I,Gp as In,AS as It,ZX as J,sne as Jn,sb as Jt,xX as K,fne as Kn,LS as Kt,YX as L,Qu as Ln,PS as Lt,LQ as M,Kp as Mn,PC as Mt,RQ as N,Jp as Nn,CC as Nt,H$ as O,qp as On,SC as Ot,VZ as P,Vp as Pn,jS as Pt,BW as Q,bc as Qn,xy as Qt,tZ as R,vl as Rn,kS as Rt,Kde as S,$re as Sn,DC as St,e0 as T,Gne as Tn,wC as Tt,rZ as U,hne as Un,FS as Ut,hZ as V,ul as Vn,NS as Vt,zZ as W,mne as Wn,IS as Wt,UW as X,one as Xn,ly as Xt,YW as Y,Vc as Yn,Ky as Yt,VW as Z,qte as Zn,Ay as Zt,x0 as _,Qre as _n,GE as _t,v_e as a,Lv as an,Vee as ar,mI as at,Jde as b,eie as bn,OC as bt,p_e as c,gv as cn,Bt as cr,nA as ct,L5 as d,hv as dn,$E as dt,_y as en,sc as er,HW as et,F5 as f,m_ as fn,JE as ft,Xde as g,kg as gn,ZE as gt,jhe as h,Dg as hn,_D as ht,x_e as i,Ov as in,oi as ir,gz as it,N$ as j,Wp as jn,FC as jt,R$ as k,Hp as kn,MC as kt,Kge as l,mv as ln,It as lr,Ck as lt,Nhe as m,x_ as mn,yD as mt,Ebe as n,Ey as nn,Ate as nr,SU as nt,__e as o,Gv as on,Uee as or,Gce as ot,Vge as p,w_ as pn,hD as pt,aZ as q,dne as qn,ES as qt,S_e as r,dy as rn,aa as rr,Oz as rt,m_e as s,Fv as sn,Dr as sr,dA as st,Fbe as t,hy as tn,Fte as tr,oU as tt,Gge as u,pv as un,UE as ut,Yde as v,nie as vn,qE as vt,Z1 as w,Jne as wn,EC as wt,qde as x,Zre as xn,TC as xt,v0 as y,tie as yn,dD as yt,qX as z,hl as zn,DS as zt};
|