From 028b6a66e8f15c27856e4d947a5fc673d5775df7 Mon Sep 17 00:00:00 2001 From: benfurber Date: Wed, 18 Dec 2024 10:27:24 +0000 Subject: [PATCH] deploy: dd0ff39c9603ba3a162f5e15bb0d12bb98ba7d29 --- 404.html | 2 +- Backend Development/BackendOverview/index.html | 2 +- Backend Development/firebase-emulator/index.html | 2 +- Backend Development/firestore-backup/index.html | 2 +- Backend Development/integrations/index.html | 2 +- Backend Development/tests/index.html | 2 +- Contributing/bounties/index.html | 2 +- Contributing/docs/index.html | 2 +- Contributing/intro/index.html | 2 +- Contributing/start-contributing/index.html | 2 +- Contributing/team-principles/index.html | 2 +- Deployment/circle-ci/index.html | 2 +- Design/contributing-designs/index.html | 2 +- Design/contributing-feedback/index.html | 2 +- Design/our-design-system/index.html | 2 +- Docs Contribution/md-style-guide/index.html | 2 +- Docs Contribution/running-docs-locally/index.html | 2 +- Environmental Impact/environmental-impact/index.html | 2 +- Examples/mdx/index.html | 2 +- Frontend Development/modules/index.html | 2 +- Frontend Development/overview/index.html | 2 +- Frontend Development/storybook/index.html | 2 +- Getting Started/recommended-tools/index.html | 2 +- Install/index.html | 2 +- Maintainers/onboarding/index.html | 2 +- Maintainers/overview/index.html | 2 +- Maintainers/rollback/index.html | 2 +- Security/index.html | 2 +- Server Maintenance/dataMigration/index.html | 2 +- Server Maintenance/manualBackups/index.html | 2 +- Testing/end-to-end/index.html | 2 +- Testing/overview/index.html | 6 +++--- .../js/{22dd74f7.44899a2d.js => 22dd74f7.e8cf9e92.js} | 2 +- assets/js/3bd00479.5eef7c11.js | 1 - assets/js/3bd00479.f962a438.js | 1 + ...ntime~main.77ea5b20.js => runtime~main.d299bbcf.js} | 2 +- index.html | 2 +- .../{CardList-BNR1NNaa.js => CardList-CbnpjzYc.js} | 2 +- ...tories-B4FyprII.js => CardList.stories-Np8PMAt9.js} | 2 +- ...rdListItem-C2EHKomy.js => CardListItem-BGx1T-wd.js} | 2 +- ...es-DsO2KU8L.js => CardListItem.stories-CSuNgrVu.js} | 2 +- ...CardProfile-DYyeqKlo.js => CardProfile-CdLmtAl0.js} | 2 +- ...6VNJS4EI-BfquLmg4.js => Color-6VNJS4EI-CM_04bzp.js} | 2 +- ...CommentList-Bj5bfA7I.js => CommentList-BBX0RN0p.js} | 2 +- ...ies-BkMfDEi5.js => CommentList.stories-BISN_9SH.js} | 2 +- ...teComment-CRTPmJDx.js => CreateComment-BaAFFVqP.js} | 2 +- ...s-Vloy1ZbD.js => CreateComment.stories-qEM5jg6T.js} | 2 +- ...CreateReply-CKFS6XGy.js => CreateReply-DUkENyaH.js} | 2 +- ...ies-C8zav62j.js => CreateReply.stories-Cx-BkQze.js} | 2 +- ...DailyMotion-CGllVuHR.js => DailyMotion-Dz1bzeKy.js} | 2 +- ...ner-CydYub2w.js => DiscussionContainer-BZ5clpEB.js} | 2 +- ...lCNY.js => DiscussionContainer.stories-jH87TWN9.js} | 2 +- ...V-BeUXSf0N.js => DocsRenderer-NNNQARDV-B38O8R_S.js} | 2 +- .../assets/ElWithBeforeIcon.stories-BhZgWN-A.js | 1 + .../assets/ElWithBeforeIcon.stories-DzpHbo6W.js | 1 - ...es-XqFwNvr3.js => ExternalLink.stories-DCYr-c68.js} | 2 +- .../{Facebook-B0YrtJSP.js => Facebook-qaORpa9_.js} | 2 +- .../{FilePlayer-CkNfS4YT.js => FilePlayer-D6HBAgf5.js} | 2 +- ...ageGallery-aRBuWtbn.js => ImageGallery-DLsrCLCr.js} | 4 ++-- ...ICENSE.txt => ImageGallery-DLsrCLCr.js.LICENSE.txt} | 0 ...es-CPNFXnTP.js => ImageGallery.stories-81PO1kqf.js} | 2 +- .../{Kaltura-9fdHjCvY.js => Kaltura-C_Jc3STB.js} | 2 +- ...ilterList-B0r8SzBs.js => MapFilterList-budIcuAb.js} | 2 +- ...s-BzWKhRbv.js => MapFilterList.stories-DYa--iUu.js} | 2 +- ...MemberBadge-BvLli4rf.js => MemberBadge-CEGEtBDf.js} | 2 +- ...ies-9JuuPGsA.js => MemberBadge.stories-C-CRxL0P.js} | 2 +- ...Xb.js => MemberTypeVerticalList.client-B4M6P4G_.js} | 2 +- ...A.js => MemberTypeVerticalList.stories-B_1y335P.js} | 2 +- .../{Mixcloud-DuDvDOlm.js => Mixcloud-CKNvfe6I.js} | 2 +- .../assets/{Mux-BjtZlgaw.js => Mux-DsgTHRou.js} | 2 +- .../{PinProfile-B5ULwHjj.js => PinProfile-Dr2LiPix.js} | 2 +- ...ries-DObqSQRy.js => PinProfile.stories-A8QmIJyx.js} | 2 +- .../{SoundCloud-BkzhzFMI.js => SoundCloud-jFxH-bjR.js} | 2 +- .../{Streamable-DtYizHzY.js => Streamable-xlsced_r.js} | 2 +- .../assets/{Twitch-B63wytAj.js => Twitch-CUj3TIV3.js} | 2 +- ...Ii.js => UserEngagementWrapper.stories-mfFm7s3I.js} | 2 +- storybook-static/assets/UserStatistics-0Cgxzunj.js | 1 + storybook-static/assets/UserStatistics-B6AK-_5K.js | 1 - ...-DVrQI4M0.js => UserStatistics.stories-_QY_W2NI.js} | 2 +- ...VideoPlayer-C-s5d2fA.js => VideoPlayer-D9RcWkc3.js} | 2 +- ...ies-CPX8mhqo.js => VideoPlayer.stories-JJOtj8hI.js} | 2 +- .../{Vidyard-C6n0kCq_.js => Vidyard-BKwodvb5.js} | 2 +- .../assets/{Vimeo-Bgro7i2R.js => Vimeo-BWTYihlr.js} | 2 +- .../assets/{Wistia-DVfh-jZm.js => Wistia-BttYmsnc.js} | 2 +- ...JZ-DxLX0qq7.js => WithTooltip-V3YHNWJZ-Bzm03E-l.js} | 2 +- .../{YouTube-DTxXCrai.js => YouTube-CVBc-gT_.js} | 2 +- ...E3XI-BJc8U_Su.js => formatter-SWP5E3XI-CI3Tyzsb.js} | 2 +- .../assets/{iframe-Cbd_NVaI.js => iframe-QafAnwiH.js} | 2 +- .../assets/{index-DcmRRetP.js => index-u2PVOEPH.js} | 10 +++++----- ...tP.js.LICENSE.txt => index-u2PVOEPH.js.LICENSE.txt} | 0 .../{preview-CaQ1ymDy.js => preview-BlWnjhM1.js} | 2 +- ...THbYz.js => syntaxhighlighter-MJWPISIS-CxDMJmvs.js} | 2 +- .../{welcome-C8BCaCw_.js => welcome-CcTTxTtu.js} | 2 +- storybook-static/iframe.html | 2 +- storybook-static/project.json | 2 +- 95 files changed, 97 insertions(+), 97 deletions(-) rename assets/js/{22dd74f7.44899a2d.js => 22dd74f7.e8cf9e92.js} (98%) delete mode 100644 assets/js/3bd00479.5eef7c11.js create mode 100644 assets/js/3bd00479.f962a438.js rename assets/js/{runtime~main.77ea5b20.js => runtime~main.d299bbcf.js} (97%) rename storybook-static/assets/{CardList-BNR1NNaa.js => CardList-CbnpjzYc.js} (97%) rename storybook-static/assets/{CardList.stories-B4FyprII.js => CardList.stories-Np8PMAt9.js} (92%) rename storybook-static/assets/{CardListItem-C2EHKomy.js => CardListItem-BGx1T-wd.js} (72%) rename storybook-static/assets/{CardListItem.stories-DsO2KU8L.js => CardListItem.stories-CSuNgrVu.js} (96%) rename storybook-static/assets/{CardProfile-DYyeqKlo.js => CardProfile-CdLmtAl0.js} (96%) rename storybook-static/assets/{Color-6VNJS4EI-BfquLmg4.js => Color-6VNJS4EI-CM_04bzp.js} (99%) rename storybook-static/assets/{CommentList-Bj5bfA7I.js => CommentList-BBX0RN0p.js} (98%) rename storybook-static/assets/{CommentList.stories-BkMfDEi5.js => CommentList.stories-BISN_9SH.js} (96%) rename storybook-static/assets/{CreateComment-CRTPmJDx.js => CreateComment-BaAFFVqP.js} (80%) rename storybook-static/assets/{CreateComment.stories-Vloy1ZbD.js => CreateComment.stories-qEM5jg6T.js} (91%) rename storybook-static/assets/{CreateReply-CKFS6XGy.js => CreateReply-DUkENyaH.js} (94%) rename storybook-static/assets/{CreateReply.stories-C8zav62j.js => CreateReply.stories-Cx-BkQze.js} (91%) rename storybook-static/assets/{DailyMotion-CGllVuHR.js => DailyMotion-Dz1bzeKy.js} (97%) rename storybook-static/assets/{DiscussionContainer-CydYub2w.js => DiscussionContainer-BZ5clpEB.js} (82%) rename storybook-static/assets/{DiscussionContainer.stories-CrnqlCNY.js => DiscussionContainer.stories-jH87TWN9.js} (95%) rename storybook-static/assets/{DocsRenderer-NNNQARDV-BeUXSf0N.js => DocsRenderer-NNNQARDV-B38O8R_S.js} (91%) create mode 100644 storybook-static/assets/ElWithBeforeIcon.stories-BhZgWN-A.js delete mode 100644 storybook-static/assets/ElWithBeforeIcon.stories-DzpHbo6W.js rename storybook-static/assets/{ExternalLink.stories-XqFwNvr3.js => ExternalLink.stories-DCYr-c68.js} (83%) rename storybook-static/assets/{Facebook-B0YrtJSP.js => Facebook-qaORpa9_.js} (98%) rename storybook-static/assets/{FilePlayer-CkNfS4YT.js => FilePlayer-D6HBAgf5.js} (99%) rename storybook-static/assets/{ImageGallery-aRBuWtbn.js => ImageGallery-DLsrCLCr.js} (99%) rename storybook-static/assets/{ImageGallery-aRBuWtbn.js.LICENSE.txt => ImageGallery-DLsrCLCr.js.LICENSE.txt} (100%) rename storybook-static/assets/{ImageGallery.stories-CPNFXnTP.js => ImageGallery.stories-81PO1kqf.js} (96%) rename storybook-static/assets/{Kaltura-9fdHjCvY.js => Kaltura-C_Jc3STB.js} (97%) rename storybook-static/assets/{MapFilterList-B0r8SzBs.js => MapFilterList-budIcuAb.js} (98%) rename storybook-static/assets/{MapFilterList.stories-BzWKhRbv.js => MapFilterList.stories-DYa--iUu.js} (94%) rename storybook-static/assets/{MemberBadge-BvLli4rf.js => MemberBadge-CEGEtBDf.js} (95%) rename storybook-static/assets/{MemberBadge.stories-9JuuPGsA.js => MemberBadge.stories-C-CRxL0P.js} (98%) rename storybook-static/assets/{MemberTypeVerticalList.client-DYj-OFXb.js => MemberTypeVerticalList.client-B4M6P4G_.js} (91%) rename storybook-static/assets/{MemberTypeVerticalList.stories-DCM6CFDA.js => MemberTypeVerticalList.stories-B_1y335P.js} (96%) rename storybook-static/assets/{Mixcloud-DuDvDOlm.js => Mixcloud-CKNvfe6I.js} (97%) rename storybook-static/assets/{Mux-BjtZlgaw.js => Mux-DsgTHRou.js} (88%) rename storybook-static/assets/{PinProfile-B5ULwHjj.js => PinProfile-Dr2LiPix.js} (95%) rename storybook-static/assets/{PinProfile.stories-DObqSQRy.js => PinProfile.stories-A8QmIJyx.js} (95%) rename storybook-static/assets/{SoundCloud-BkzhzFMI.js => SoundCloud-jFxH-bjR.js} (97%) rename storybook-static/assets/{Streamable-DtYizHzY.js => Streamable-xlsced_r.js} (97%) rename storybook-static/assets/{Twitch-B63wytAj.js => Twitch-CUj3TIV3.js} (97%) rename storybook-static/assets/{UserEngagementWrapper.stories--dWaS9Ii.js => UserEngagementWrapper.stories-mfFm7s3I.js} (84%) create mode 100644 storybook-static/assets/UserStatistics-0Cgxzunj.js delete mode 100644 storybook-static/assets/UserStatistics-B6AK-_5K.js rename storybook-static/assets/{UserStatistics.stories-DVrQI4M0.js => UserStatistics.stories-_QY_W2NI.js} (95%) rename storybook-static/assets/{VideoPlayer-C-s5d2fA.js => VideoPlayer-D9RcWkc3.js} (94%) rename storybook-static/assets/{VideoPlayer.stories-CPX8mhqo.js => VideoPlayer.stories-JJOtj8hI.js} (89%) rename storybook-static/assets/{Vidyard-C6n0kCq_.js => Vidyard-BKwodvb5.js} (97%) rename storybook-static/assets/{Vimeo-Bgro7i2R.js => Vimeo-BWTYihlr.js} (98%) rename storybook-static/assets/{Wistia-DVfh-jZm.js => Wistia-BttYmsnc.js} (91%) rename storybook-static/assets/{WithTooltip-V3YHNWJZ-DxLX0qq7.js => WithTooltip-V3YHNWJZ-Bzm03E-l.js} (76%) rename storybook-static/assets/{YouTube-DTxXCrai.js => YouTube-CVBc-gT_.js} (98%) rename storybook-static/assets/{formatter-SWP5E3XI-BJc8U_Su.js => formatter-SWP5E3XI-CI3Tyzsb.js} (99%) rename storybook-static/assets/{iframe-Cbd_NVaI.js => iframe-QafAnwiH.js} (88%) rename storybook-static/assets/{index-DcmRRetP.js => index-u2PVOEPH.js} (99%) rename storybook-static/assets/{index-DcmRRetP.js.LICENSE.txt => index-u2PVOEPH.js.LICENSE.txt} (100%) rename storybook-static/assets/{preview-CaQ1ymDy.js => preview-BlWnjhM1.js} (67%) rename storybook-static/assets/{syntaxhighlighter-MJWPISIS-D6eTHbYz.js => syntaxhighlighter-MJWPISIS-CxDMJmvs.js} (77%) rename storybook-static/assets/{welcome-C8BCaCw_.js => welcome-CcTTxTtu.js} (95%) diff --git a/404.html b/404.html index 803bfd6fbd..795ba11e55 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ OneArmy Community Platform - + diff --git a/Backend Development/BackendOverview/index.html b/Backend Development/BackendOverview/index.html index 637bbf007e..5a46751dd6 100644 --- a/Backend Development/BackendOverview/index.html +++ b/Backend Development/BackendOverview/index.html @@ -4,7 +4,7 @@ Overview | OneArmy Community Platform - + diff --git a/Backend Development/firebase-emulator/index.html b/Backend Development/firebase-emulator/index.html index 0f8400dad6..f4b3c20f8e 100644 --- a/Backend Development/firebase-emulator/index.html +++ b/Backend Development/firebase-emulator/index.html @@ -4,7 +4,7 @@ Firebase Emulator | OneArmy Community Platform - + diff --git a/Backend Development/firestore-backup/index.html b/Backend Development/firestore-backup/index.html index 9cb569deae..d1da207a91 100644 --- a/Backend Development/firestore-backup/index.html +++ b/Backend Development/firestore-backup/index.html @@ -4,7 +4,7 @@ Firestore DB Backup | OneArmy Community Platform - + diff --git a/Backend Development/integrations/index.html b/Backend Development/integrations/index.html index 48dd181a76..44a11a3c01 100644 --- a/Backend Development/integrations/index.html +++ b/Backend Development/integrations/index.html @@ -4,7 +4,7 @@ Integrations | OneArmy Community Platform - + diff --git a/Backend Development/tests/index.html b/Backend Development/tests/index.html index 0a44505a80..06c08a463b 100644 --- a/Backend Development/tests/index.html +++ b/Backend Development/tests/index.html @@ -4,7 +4,7 @@ Tests | OneArmy Community Platform - + diff --git a/Contributing/bounties/index.html b/Contributing/bounties/index.html index 562ddd3bef..1ca69c96b3 100644 --- a/Contributing/bounties/index.html +++ b/Contributing/bounties/index.html @@ -4,7 +4,7 @@ Bounties | OneArmy Community Platform - + diff --git a/Contributing/docs/index.html b/Contributing/docs/index.html index 3102ffa60c..7720489085 100644 --- a/Contributing/docs/index.html +++ b/Contributing/docs/index.html @@ -4,7 +4,7 @@ Documentation | OneArmy Community Platform - + diff --git a/Contributing/intro/index.html b/Contributing/intro/index.html index 25eddde034..2c57266131 100644 --- a/Contributing/intro/index.html +++ b/Contributing/intro/index.html @@ -4,7 +4,7 @@ Overview | OneArmy Community Platform - + diff --git a/Contributing/start-contributing/index.html b/Contributing/start-contributing/index.html index 4828964ce5..1c44f56772 100644 --- a/Contributing/start-contributing/index.html +++ b/Contributing/start-contributing/index.html @@ -4,7 +4,7 @@ Start Contributing | OneArmy Community Platform - + diff --git a/Contributing/team-principles/index.html b/Contributing/team-principles/index.html index ae59c51844..528e7c9a4f 100644 --- a/Contributing/team-principles/index.html +++ b/Contributing/team-principles/index.html @@ -4,7 +4,7 @@ Team Principles | OneArmy Community Platform - + diff --git a/Deployment/circle-ci/index.html b/Deployment/circle-ci/index.html index 938fcd02d9..1bed0b032e 100644 --- a/Deployment/circle-ci/index.html +++ b/Deployment/circle-ci/index.html @@ -4,7 +4,7 @@ Deployment via CircleCI | OneArmy Community Platform - + diff --git a/Design/contributing-designs/index.html b/Design/contributing-designs/index.html index be00c441ad..627ccca0ab 100644 --- a/Design/contributing-designs/index.html +++ b/Design/contributing-designs/index.html @@ -4,7 +4,7 @@ Contributing Designs | OneArmy Community Platform - + diff --git a/Design/contributing-feedback/index.html b/Design/contributing-feedback/index.html index 9d9c5690a0..7e9d3cebe6 100644 --- a/Design/contributing-feedback/index.html +++ b/Design/contributing-feedback/index.html @@ -4,7 +4,7 @@ Contributing Feedback On Designs | OneArmy Community Platform - + diff --git a/Design/our-design-system/index.html b/Design/our-design-system/index.html index 94711976bf..4339e2fcdc 100644 --- a/Design/our-design-system/index.html +++ b/Design/our-design-system/index.html @@ -4,7 +4,7 @@ Our Design System | OneArmy Community Platform - + diff --git a/Docs Contribution/md-style-guide/index.html b/Docs Contribution/md-style-guide/index.html index e00911692f..345d902858 100644 --- a/Docs Contribution/md-style-guide/index.html +++ b/Docs Contribution/md-style-guide/index.html @@ -4,7 +4,7 @@ Markdown Style Guide | OneArmy Community Platform - + diff --git a/Docs Contribution/running-docs-locally/index.html b/Docs Contribution/running-docs-locally/index.html index 3d942b3ae2..f05755a48a 100644 --- a/Docs Contribution/running-docs-locally/index.html +++ b/Docs Contribution/running-docs-locally/index.html @@ -4,7 +4,7 @@ Running Docs Locally | OneArmy Community Platform - + diff --git a/Environmental Impact/environmental-impact/index.html b/Environmental Impact/environmental-impact/index.html index 3356931da9..2f39e5b866 100644 --- a/Environmental Impact/environmental-impact/index.html +++ b/Environmental Impact/environmental-impact/index.html @@ -4,7 +4,7 @@ Overview | OneArmy Community Platform - + diff --git a/Examples/mdx/index.html b/Examples/mdx/index.html index 6258334b35..f4d0fba79b 100644 --- a/Examples/mdx/index.html +++ b/Examples/mdx/index.html @@ -4,7 +4,7 @@ Powered by MDX | OneArmy Community Platform - + diff --git a/Frontend Development/modules/index.html b/Frontend Development/modules/index.html index 01f5e84f61..d60d68fb08 100644 --- a/Frontend Development/modules/index.html +++ b/Frontend Development/modules/index.html @@ -4,7 +4,7 @@ Modules | OneArmy Community Platform - + diff --git a/Frontend Development/overview/index.html b/Frontend Development/overview/index.html index b28892619c..be9d7e09be 100644 --- a/Frontend Development/overview/index.html +++ b/Frontend Development/overview/index.html @@ -4,7 +4,7 @@ Overview | OneArmy Community Platform - + diff --git a/Frontend Development/storybook/index.html b/Frontend Development/storybook/index.html index 46061d2455..e99fa3ae49 100644 --- a/Frontend Development/storybook/index.html +++ b/Frontend Development/storybook/index.html @@ -4,7 +4,7 @@ storybook | OneArmy Community Platform - + diff --git a/Getting Started/recommended-tools/index.html b/Getting Started/recommended-tools/index.html index b3075e74ac..f4c240575e 100644 --- a/Getting Started/recommended-tools/index.html +++ b/Getting Started/recommended-tools/index.html @@ -4,7 +4,7 @@ Recommended Tools | OneArmy Community Platform - + diff --git a/Install/index.html b/Install/index.html index 3df2804ad9..31e87d82aa 100644 --- a/Install/index.html +++ b/Install/index.html @@ -4,7 +4,7 @@ Installing your own instance | OneArmy Community Platform - + diff --git a/Maintainers/onboarding/index.html b/Maintainers/onboarding/index.html index 495ebda15a..b04ffc59ef 100644 --- a/Maintainers/onboarding/index.html +++ b/Maintainers/onboarding/index.html @@ -4,7 +4,7 @@ Onboarding | OneArmy Community Platform - + diff --git a/Maintainers/overview/index.html b/Maintainers/overview/index.html index 16d164b0ed..5abbb476c9 100644 --- a/Maintainers/overview/index.html +++ b/Maintainers/overview/index.html @@ -4,7 +4,7 @@ Overview | OneArmy Community Platform - + diff --git a/Maintainers/rollback/index.html b/Maintainers/rollback/index.html index 5b1af81240..f620b27642 100644 --- a/Maintainers/rollback/index.html +++ b/Maintainers/rollback/index.html @@ -4,7 +4,7 @@ Rollback a Release | OneArmy Community Platform - + diff --git a/Security/index.html b/Security/index.html index 76336383ee..40c8eecdb7 100644 --- a/Security/index.html +++ b/Security/index.html @@ -4,7 +4,7 @@ Security | OneArmy Community Platform - + diff --git a/Server Maintenance/dataMigration/index.html b/Server Maintenance/dataMigration/index.html index 80118e0331..82e4a7a2bb 100644 --- a/Server Maintenance/dataMigration/index.html +++ b/Server Maintenance/dataMigration/index.html @@ -4,7 +4,7 @@ Automated Backup and Migration | OneArmy Community Platform - + diff --git a/Server Maintenance/manualBackups/index.html b/Server Maintenance/manualBackups/index.html index 14b80311fb..df731f25eb 100644 --- a/Server Maintenance/manualBackups/index.html +++ b/Server Maintenance/manualBackups/index.html @@ -4,7 +4,7 @@ Manual Backups | OneArmy Community Platform - + diff --git a/Testing/end-to-end/index.html b/Testing/end-to-end/index.html index 23f55bb3a1..1ef2528632 100644 --- a/Testing/end-to-end/index.html +++ b/Testing/end-to-end/index.html @@ -4,7 +4,7 @@ E2E Testing | OneArmy Community Platform - + diff --git a/Testing/overview/index.html b/Testing/overview/index.html index 34fc5d6405..235fce3cef 100644 --- a/Testing/overview/index.html +++ b/Testing/overview/index.html @@ -3,12 +3,12 @@ -Testing Overview | OneArmy Community Platform - +Testing Overview | OneArmy Community Platform + -
Skip to main content

Testing Overview

In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating how-tos, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.

+

Testing Overview

In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating projects, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.

While this approach has served us well, we are continuously evolving our testing strategies to ensure the robustness of our platform. Recently, we've expanded our tools to adopt @testing-library so that we can continue to write tests which mimic user interactions but run significantly faster than the Cypress E2E test suites.

There are two specific aims of this approach:

    diff --git a/assets/js/22dd74f7.44899a2d.js b/assets/js/22dd74f7.e8cf9e92.js similarity index 98% rename from assets/js/22dd74f7.44899a2d.js rename to assets/js/22dd74f7.e8cf9e92.js index 1dc5fc7057..7695ed121b 100644 --- a/assets/js/22dd74f7.44899a2d.js +++ b/assets/js/22dd74f7.e8cf9e92.js @@ -1 +1 @@ -"use strict";(self.webpackChunkoa_docs=self.webpackChunkoa_docs||[]).push([[567],{5226:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"mainSidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Local Setup","href":"/","docId":"Getting Started/setup","unlisted":false},{"type":"link","label":"Recommended Tools","href":"/Getting Started/recommended-tools","docId":"Getting Started/recommended-tools","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"How To Contribute","items":[{"type":"link","label":"Start Contributing","href":"/Contributing/start-contributing","docId":"Contributing/start-contributing","unlisted":false},{"type":"link","label":"Bounties","href":"/Contributing/bounties","docId":"Contributing/bounties","unlisted":false},{"type":"category","label":"Writing Documentation","items":[{"type":"link","label":"Running Docs Locally","href":"/Docs Contribution/running-docs-locally","docId":"Docs Contribution/running-docs-locally","unlisted":false},{"type":"link","label":"Markdown Style Guide","href":"/Docs Contribution/md-style-guide","docId":"Docs Contribution/md-style-guide","unlisted":false}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"Design","items":[{"type":"link","label":"Our Design System","href":"/Design/our-design-system","docId":"Design/our-design-system","unlisted":false},{"type":"link","label":"Contributing Feedback On Designs","href":"/Design/contributing-feedback","docId":"Design/contributing-feedback","unlisted":false},{"type":"link","label":"Contributing Designs","href":"/Design/contributing-designs","docId":"Design/contributing-designs","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Frontend Development","items":[{"type":"link","label":"Overview","href":"/Frontend Development/overview","docId":"Frontend Development/overview","unlisted":false},{"type":"link","label":"Modules","href":"/Frontend Development/modules","docId":"Frontend Development/modules","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Backend Development","items":[{"type":"link","label":"Overview","href":"/Backend Development/BackendOverview","docId":"Backend Development/BackendOverview","unlisted":false},{"type":"link","label":"Firebase Emulator","href":"/Backend Development/firebase-emulator","docId":"Backend Development/firebase-emulator","unlisted":false},{"type":"link","label":"Firestore DB Backup","href":"/Backend Development/firestore-backup","docId":"Backend Development/firestore-backup","unlisted":false},{"type":"link","label":"Integrations","href":"/Backend Development/integrations","docId":"Backend Development/integrations","unlisted":false},{"type":"link","label":"Tests","href":"/Backend Development/tests","docId":"Backend Development/tests","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Testing","items":[{"type":"link","label":"Testing Overview","href":"/Testing/overview","docId":"Testing/overview","unlisted":false},{"type":"link","label":"E2E Testing","href":"/Testing/end-to-end","docId":"Testing/end-to-end","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Advanced Guides","items":[{"type":"category","label":"Continuous Integration","items":[{"type":"link","label":"Deployment via CircleCI","href":"/Deployment/circle-ci","docId":"Deployment/circle-ci","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Server Maintenance","items":[{"type":"link","label":"Automated Backup and Migration","href":"/Server Maintenance/dataMigration","docId":"Server Maintenance/dataMigration","unlisted":false},{"type":"link","label":"Manual Backups","href":"/Server Maintenance/manualBackups","docId":"Server Maintenance/manualBackups","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Environmental Impact","href":"/Environmental Impact/environmental-impact","docId":"Environmental Impact/environmental-impact","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Security","href":"/Security","docId":"Security","unlisted":false},{"type":"category","label":"Maintainers","items":[{"type":"link","label":"Overview","href":"/Maintainers/overview","docId":"Maintainers/overview","unlisted":false},{"type":"link","label":"Onboarding","href":"/Maintainers/onboarding","docId":"Maintainers/onboarding","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Component Storybook","href":"pathname:///storybook-static/index.html"}]},"docs":{"Backend Development/BackendOverview":{"id":"Backend Development/BackendOverview","title":"Overview","description":"We\'re currently using cloud functions as part of the existing firebase ecosystem to handle server-side functions. These exist in the functions folder of the repo and have examples of how to trigger from api, cron or direct call.","sidebar":"mainSidebar"},"Backend Development/firebase-emulator":{"id":"Backend Development/firebase-emulator","title":"Firebase Emulator","description":"To run backend functions locally, Firebase provides a suite of emulators to mimic most functionality seen online (e.g firestore, storage, functions, triggers, etc.)","sidebar":"mainSidebar"},"Backend Development/firestore-backup":{"id":"Backend Development/firestore-backup","title":"Firestore DB Backup","description":"Automated Backups","sidebar":"mainSidebar"},"Backend Development/integrations":{"id":"Backend Development/integrations","title":"Integrations","description":"Integrations with 3rd party services can be handled by the functions backend. Any number of triggers can be used, including Cloud Firestore (database) Triggers, HTTP, and cron Triggers.","sidebar":"mainSidebar"},"Backend Development/tests":{"id":"Backend Development/tests","title":"Tests","description":"Backend tests are written with Jest and executed against a set of emulators for core services","sidebar":"mainSidebar"},"Contributing/bounties":{"id":"Contributing/bounties","title":"Bounties","description":"As a way of saying thanks to developers for their time, we\'ve implemented a small bounty system to reward feature development.","sidebar":"mainSidebar"},"Contributing/docs":{"id":"Contributing/docs","title":"Documentation","description":""},"Contributing/intro":{"id":"Contributing/intro","title":"Overview","description":"Developer Community"},"Contributing/start-contributing":{"id":"Contributing/start-contributing","title":"Start Contributing","description":"What is my role?","sidebar":"mainSidebar"},"Contributing/team-principles":{"id":"Contributing/team-principles","title":"Team Principles","description":"The principles we hold close to guide the work we prioritise, the ways we work and the product we aim for."},"Deployment/circle-ci":{"id":"Deployment/circle-ci","title":"Deployment via CircleCI","description":"We use CircleCI to handle automated build-test-deploy cycles when PRs and releases are created from the GitHub Repository","sidebar":"mainSidebar"},"Design/contributing-designs":{"id":"Design/contributing-designs","title":"Contributing Designs","description":"We welcome anyone interested in contributing to Community Platform with their design skills in Figma. Our free Team plan allows us (at time of writing) to support an unlimited number of editors on our limited number of files and pages, so we can quickly get you into the file and making measurable improvements to the future of the platform when you\u2019re ready.","sidebar":"mainSidebar"},"Design/contributing-feedback":{"id":"Design/contributing-feedback","title":"Contributing Feedback On Designs","description":"If you\'re not looking to design you can still help out in a huge way by providing feedback on designs and features as they\'re created. Here\'s how.","sidebar":"mainSidebar"},"Design/our-design-system":{"id":"Design/our-design-system","title":"Our Design System","description":"Community Platform is a toolkit that is already being used for multiple web platforms today (including community.preciousplastic.com and community.projectkamp.com), and we want it to be used on many more in the future.","sidebar":"mainSidebar"},"Docs Contribution/md-style-guide":{"id":"Docs Contribution/md-style-guide","title":"Markdown Style Guide","description":"You can write content using GitHub flavoured Markdown syntax.","sidebar":"mainSidebar"},"Docs Contribution/running-docs-locally":{"id":"Docs Contribution/running-docs-locally","title":"Running Docs Locally","description":"Make sure dependencies are installed","sidebar":"mainSidebar"},"Environmental Impact/environmental-impact":{"id":"Environmental Impact/environmental-impact","title":"Overview","description":"Understanding website weight","sidebar":"mainSidebar"},"Examples/mdx":{"id":"Examples/mdx","title":"Powered by MDX","description":"You can write JSX and use React components within your Markdown thanks to MDX."},"Frontend Development/modules":{"id":"Frontend Development/modules","title":"Modules","description":"The platform consists of multiple modules which provide the building blocks for app features and core functionality. Examples include howtos, events and research. These modules are designed to be drop-in/drop-out to allow for different combinations of modules to included in specific deployments.","sidebar":"mainSidebar"},"Frontend Development/overview":{"id":"Frontend Development/overview","title":"Overview","description":"Tech Stack","sidebar":"mainSidebar"},"Frontend Development/storybook":{"id":"Frontend Development/storybook","title":"storybook","description":""},"Getting Started/recommended-tools":{"id":"Getting Started/recommended-tools","title":"Recommended Tools","description":"VS Code","sidebar":"mainSidebar"},"Getting Started/setup":{"id":"Getting Started/setup","title":"Local Setup","description":"Prerequisites","sidebar":"mainSidebar"},"Install":{"id":"Install","title":"Installing your own instance","description":"Requirements"},"Maintainers/onboarding":{"id":"Maintainers/onboarding","title":"Onboarding","description":"As a new maintainer, you\'re joining a small team of dedicated contributors who are working to make this project a success. This document is designed to help you get up to speed quickly and start contributing to the project as a maintainer. The aim is to provide an overview of the tools and processes we use.","sidebar":"mainSidebar"},"Maintainers/overview":{"id":"Maintainers/overview","title":"Overview","description":"Welcome to the maintainer documentation for the Platform project! As a maintainer, you play a crucial role in ensuring the success and sustainability of our project. This documentation is designed to provide you with the information and resources you need to effectively manage the project and collaborate with other contributors.","sidebar":"mainSidebar"},"Maintainers/rollback":{"id":"Maintainers/rollback","title":"Rollback a Release","description":"As a maintainer, you may need to rollback a release if a deployment has gone wrong or if there are issues with the site. This document outlines the steps to rollback a release."},"Security":{"id":"Security","title":"Security","description":"As a quickly-evolving, open project you may think that security might not feature high on our priority list. This is not the case. We are aware of the data, security and privacy concerns within our community, and are making an active effort to make sure we also do our part.","sidebar":"mainSidebar"},"Server Maintenance/dataMigration":{"id":"Server Maintenance/dataMigration","title":"Automated Backup and Migration","description":"The platform consists of many interacting components, including local cache and server databases, frontend code, backend code and serverless functions, and cloud file storage.","sidebar":"mainSidebar"},"Server Maintenance/manualBackups":{"id":"Server Maintenance/manualBackups","title":"Manual Backups","description":"In order to fully backup the platform there are 3 areas that need to be backed up:","sidebar":"mainSidebar"},"Testing/end-to-end":{"id":"Testing/end-to-end","title":"E2E Testing","description":"End-to-end testing is carried out by Cypress, and executed against a dedicated firebase project (different to development and staging).","sidebar":"mainSidebar"},"Testing/overview":{"id":"Testing/overview","title":"Testing Overview","description":"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating how-tos, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.","sidebar":"mainSidebar"}}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkoa_docs=self.webpackChunkoa_docs||[]).push([[567],{5226:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"mainSidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Local Setup","href":"/","docId":"Getting Started/setup","unlisted":false},{"type":"link","label":"Recommended Tools","href":"/Getting Started/recommended-tools","docId":"Getting Started/recommended-tools","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"How To Contribute","items":[{"type":"link","label":"Start Contributing","href":"/Contributing/start-contributing","docId":"Contributing/start-contributing","unlisted":false},{"type":"link","label":"Bounties","href":"/Contributing/bounties","docId":"Contributing/bounties","unlisted":false},{"type":"category","label":"Writing Documentation","items":[{"type":"link","label":"Running Docs Locally","href":"/Docs Contribution/running-docs-locally","docId":"Docs Contribution/running-docs-locally","unlisted":false},{"type":"link","label":"Markdown Style Guide","href":"/Docs Contribution/md-style-guide","docId":"Docs Contribution/md-style-guide","unlisted":false}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"Design","items":[{"type":"link","label":"Our Design System","href":"/Design/our-design-system","docId":"Design/our-design-system","unlisted":false},{"type":"link","label":"Contributing Feedback On Designs","href":"/Design/contributing-feedback","docId":"Design/contributing-feedback","unlisted":false},{"type":"link","label":"Contributing Designs","href":"/Design/contributing-designs","docId":"Design/contributing-designs","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Frontend Development","items":[{"type":"link","label":"Overview","href":"/Frontend Development/overview","docId":"Frontend Development/overview","unlisted":false},{"type":"link","label":"Modules","href":"/Frontend Development/modules","docId":"Frontend Development/modules","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Backend Development","items":[{"type":"link","label":"Overview","href":"/Backend Development/BackendOverview","docId":"Backend Development/BackendOverview","unlisted":false},{"type":"link","label":"Firebase Emulator","href":"/Backend Development/firebase-emulator","docId":"Backend Development/firebase-emulator","unlisted":false},{"type":"link","label":"Firestore DB Backup","href":"/Backend Development/firestore-backup","docId":"Backend Development/firestore-backup","unlisted":false},{"type":"link","label":"Integrations","href":"/Backend Development/integrations","docId":"Backend Development/integrations","unlisted":false},{"type":"link","label":"Tests","href":"/Backend Development/tests","docId":"Backend Development/tests","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Testing","items":[{"type":"link","label":"Testing Overview","href":"/Testing/overview","docId":"Testing/overview","unlisted":false},{"type":"link","label":"E2E Testing","href":"/Testing/end-to-end","docId":"Testing/end-to-end","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Advanced Guides","items":[{"type":"category","label":"Continuous Integration","items":[{"type":"link","label":"Deployment via CircleCI","href":"/Deployment/circle-ci","docId":"Deployment/circle-ci","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Server Maintenance","items":[{"type":"link","label":"Automated Backup and Migration","href":"/Server Maintenance/dataMigration","docId":"Server Maintenance/dataMigration","unlisted":false},{"type":"link","label":"Manual Backups","href":"/Server Maintenance/manualBackups","docId":"Server Maintenance/manualBackups","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Environmental Impact","href":"/Environmental Impact/environmental-impact","docId":"Environmental Impact/environmental-impact","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Security","href":"/Security","docId":"Security","unlisted":false},{"type":"category","label":"Maintainers","items":[{"type":"link","label":"Overview","href":"/Maintainers/overview","docId":"Maintainers/overview","unlisted":false},{"type":"link","label":"Onboarding","href":"/Maintainers/onboarding","docId":"Maintainers/onboarding","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"Component Storybook","href":"pathname:///storybook-static/index.html"}]},"docs":{"Backend Development/BackendOverview":{"id":"Backend Development/BackendOverview","title":"Overview","description":"We\'re currently using cloud functions as part of the existing firebase ecosystem to handle server-side functions. These exist in the functions folder of the repo and have examples of how to trigger from api, cron or direct call.","sidebar":"mainSidebar"},"Backend Development/firebase-emulator":{"id":"Backend Development/firebase-emulator","title":"Firebase Emulator","description":"To run backend functions locally, Firebase provides a suite of emulators to mimic most functionality seen online (e.g firestore, storage, functions, triggers, etc.)","sidebar":"mainSidebar"},"Backend Development/firestore-backup":{"id":"Backend Development/firestore-backup","title":"Firestore DB Backup","description":"Automated Backups","sidebar":"mainSidebar"},"Backend Development/integrations":{"id":"Backend Development/integrations","title":"Integrations","description":"Integrations with 3rd party services can be handled by the functions backend. Any number of triggers can be used, including Cloud Firestore (database) Triggers, HTTP, and cron Triggers.","sidebar":"mainSidebar"},"Backend Development/tests":{"id":"Backend Development/tests","title":"Tests","description":"Backend tests are written with Jest and executed against a set of emulators for core services","sidebar":"mainSidebar"},"Contributing/bounties":{"id":"Contributing/bounties","title":"Bounties","description":"As a way of saying thanks to developers for their time, we\'ve implemented a small bounty system to reward feature development.","sidebar":"mainSidebar"},"Contributing/docs":{"id":"Contributing/docs","title":"Documentation","description":""},"Contributing/intro":{"id":"Contributing/intro","title":"Overview","description":"Developer Community"},"Contributing/start-contributing":{"id":"Contributing/start-contributing","title":"Start Contributing","description":"What is my role?","sidebar":"mainSidebar"},"Contributing/team-principles":{"id":"Contributing/team-principles","title":"Team Principles","description":"The principles we hold close to guide the work we prioritise, the ways we work and the product we aim for."},"Deployment/circle-ci":{"id":"Deployment/circle-ci","title":"Deployment via CircleCI","description":"We use CircleCI to handle automated build-test-deploy cycles when PRs and releases are created from the GitHub Repository","sidebar":"mainSidebar"},"Design/contributing-designs":{"id":"Design/contributing-designs","title":"Contributing Designs","description":"We welcome anyone interested in contributing to Community Platform with their design skills in Figma. Our free Team plan allows us (at time of writing) to support an unlimited number of editors on our limited number of files and pages, so we can quickly get you into the file and making measurable improvements to the future of the platform when you\u2019re ready.","sidebar":"mainSidebar"},"Design/contributing-feedback":{"id":"Design/contributing-feedback","title":"Contributing Feedback On Designs","description":"If you\'re not looking to design you can still help out in a huge way by providing feedback on designs and features as they\'re created. Here\'s how.","sidebar":"mainSidebar"},"Design/our-design-system":{"id":"Design/our-design-system","title":"Our Design System","description":"Community Platform is a toolkit that is already being used for multiple web platforms today (including community.preciousplastic.com and community.projectkamp.com), and we want it to be used on many more in the future.","sidebar":"mainSidebar"},"Docs Contribution/md-style-guide":{"id":"Docs Contribution/md-style-guide","title":"Markdown Style Guide","description":"You can write content using GitHub flavoured Markdown syntax.","sidebar":"mainSidebar"},"Docs Contribution/running-docs-locally":{"id":"Docs Contribution/running-docs-locally","title":"Running Docs Locally","description":"Make sure dependencies are installed","sidebar":"mainSidebar"},"Environmental Impact/environmental-impact":{"id":"Environmental Impact/environmental-impact","title":"Overview","description":"Understanding website weight","sidebar":"mainSidebar"},"Examples/mdx":{"id":"Examples/mdx","title":"Powered by MDX","description":"You can write JSX and use React components within your Markdown thanks to MDX."},"Frontend Development/modules":{"id":"Frontend Development/modules","title":"Modules","description":"The platform consists of multiple modules which provide the building blocks for app features and core functionality. Examples include howtos, events and research. These modules are designed to be drop-in/drop-out to allow for different combinations of modules to included in specific deployments.","sidebar":"mainSidebar"},"Frontend Development/overview":{"id":"Frontend Development/overview","title":"Overview","description":"Tech Stack","sidebar":"mainSidebar"},"Frontend Development/storybook":{"id":"Frontend Development/storybook","title":"storybook","description":""},"Getting Started/recommended-tools":{"id":"Getting Started/recommended-tools","title":"Recommended Tools","description":"VS Code","sidebar":"mainSidebar"},"Getting Started/setup":{"id":"Getting Started/setup","title":"Local Setup","description":"Prerequisites","sidebar":"mainSidebar"},"Install":{"id":"Install","title":"Installing your own instance","description":"Requirements"},"Maintainers/onboarding":{"id":"Maintainers/onboarding","title":"Onboarding","description":"As a new maintainer, you\'re joining a small team of dedicated contributors who are working to make this project a success. This document is designed to help you get up to speed quickly and start contributing to the project as a maintainer. The aim is to provide an overview of the tools and processes we use.","sidebar":"mainSidebar"},"Maintainers/overview":{"id":"Maintainers/overview","title":"Overview","description":"Welcome to the maintainer documentation for the Platform project! As a maintainer, you play a crucial role in ensuring the success and sustainability of our project. This documentation is designed to provide you with the information and resources you need to effectively manage the project and collaborate with other contributors.","sidebar":"mainSidebar"},"Maintainers/rollback":{"id":"Maintainers/rollback","title":"Rollback a Release","description":"As a maintainer, you may need to rollback a release if a deployment has gone wrong or if there are issues with the site. This document outlines the steps to rollback a release."},"Security":{"id":"Security","title":"Security","description":"As a quickly-evolving, open project you may think that security might not feature high on our priority list. This is not the case. We are aware of the data, security and privacy concerns within our community, and are making an active effort to make sure we also do our part.","sidebar":"mainSidebar"},"Server Maintenance/dataMigration":{"id":"Server Maintenance/dataMigration","title":"Automated Backup and Migration","description":"The platform consists of many interacting components, including local cache and server databases, frontend code, backend code and serverless functions, and cloud file storage.","sidebar":"mainSidebar"},"Server Maintenance/manualBackups":{"id":"Server Maintenance/manualBackups","title":"Manual Backups","description":"In order to fully backup the platform there are 3 areas that need to be backed up:","sidebar":"mainSidebar"},"Testing/end-to-end":{"id":"Testing/end-to-end","title":"E2E Testing","description":"End-to-end testing is carried out by Cypress, and executed against a dedicated firebase project (different to development and staging).","sidebar":"mainSidebar"},"Testing/overview":{"id":"Testing/overview","title":"Testing Overview","description":"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating projects, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.","sidebar":"mainSidebar"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/3bd00479.5eef7c11.js b/assets/js/3bd00479.5eef7c11.js deleted file mode 100644 index 58be85d946..0000000000 --- a/assets/js/3bd00479.5eef7c11.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkoa_docs=self.webpackChunkoa_docs||[]).push([[188],{1095:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>l});var s=n(4848),i=n(8453);const r={id:"overview",title:"Testing Overview"},o=void 0,a={id:"Testing/overview",title:"Testing Overview",description:"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating how-tos, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.",source:"@site/docs/Testing/overview.md",sourceDirName:"Testing",slug:"/Testing/overview",permalink:"/Testing/overview",draft:!1,unlisted:!1,editUrl:"https://github.com/ONEARMY/community-platform/edit/master/packages/documentation/docs/Testing/overview.md",tags:[],version:"current",frontMatter:{id:"overview",title:"Testing Overview"},sidebar:"mainSidebar",previous:{title:"Tests",permalink:"/Backend Development/tests"},next:{title:"E2E Testing",permalink:"/Testing/end-to-end"}},c={},l=[{value:"Running tests",id:"running-tests",level:2},{value:"Core application",id:"core-application",level:3},{value:"Components",id:"components",level:3},{value:"Functions",id:"functions",level:3}];function d(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.p,{children:"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating how-tos, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal."}),"\n",(0,s.jsxs)(t.p,{children:["While this approach has served us well, we are continuously evolving our testing strategies to ensure the robustness of our platform. Recently, we've expanded our tools to adopt ",(0,s.jsx)(t.a,{href:"https://testing-library.com/",children:(0,s.jsx)(t.code,{children:"@testing-library"})})," so that we can continue to write tests which mimic user interactions but run significantly faster than the Cypress E2E test suites."]}),"\n",(0,s.jsx)(t.p,{children:"There are two specific aims of this approach:"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Speed up local development workflows by providing fast feedback after changes have been made"}),"\n",(0,s.jsx)(t.li,{children:"Reduce the cost around introducing new tests so that it is easier for contributors to include tests as part of their changes."}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"running-tests",children:"Running tests"}),"\n",(0,s.jsx)(t.h3,{id:"core-application",children:"Core application"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"yarn test:unit\n## Application e2e\nyarn test\n"})}),"\n",(0,s.jsx)(t.h3,{id:"components",children:"Components"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{children:"yarn test\n"})}),"\n",(0,s.jsx)(t.h3,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{children:"yarn test\n"})})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>a});var s=n(6540);const i={},r=s.createContext(i);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3bd00479.f962a438.js b/assets/js/3bd00479.f962a438.js new file mode 100644 index 0000000000..b43945f686 --- /dev/null +++ b/assets/js/3bd00479.f962a438.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkoa_docs=self.webpackChunkoa_docs||[]).push([[188],{1095:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>l});var s=n(4848),i=n(8453);const r={id:"overview",title:"Testing Overview"},o=void 0,a={id:"Testing/overview",title:"Testing Overview",description:"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating projects, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal.",source:"@site/docs/Testing/overview.md",sourceDirName:"Testing",slug:"/Testing/overview",permalink:"/Testing/overview",draft:!1,unlisted:!1,editUrl:"https://github.com/ONEARMY/community-platform/edit/master/packages/documentation/docs/Testing/overview.md",tags:[],version:"current",frontMatter:{id:"overview",title:"Testing Overview"},sidebar:"mainSidebar",previous:{title:"Tests",permalink:"/Backend Development/tests"},next:{title:"E2E Testing",permalink:"/Testing/end-to-end"}},c={},l=[{value:"Running tests",id:"running-tests",level:2},{value:"Core application",id:"core-application",level:3},{value:"Components",id:"components",level:3},{value:"Functions",id:"functions",level:3}];function d(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.p,{children:"In the earlier stages of our platform when it consisted of a small number of modules and use cases, we relied on user testing and strict TypeScript typings. However, as the platform grew in complexity, we acknowledged the need for a more comprehensive testing strategy and first started introducing end-to-end (E2E) tests, focusing primarily on core modules like reading and creating projects, updating user profiles, etc. For E2E testing, we use Cypress, which has proven to be a valuable asset in our testing arsenal."}),"\n",(0,s.jsxs)(t.p,{children:["While this approach has served us well, we are continuously evolving our testing strategies to ensure the robustness of our platform. Recently, we've expanded our tools to adopt ",(0,s.jsx)(t.a,{href:"https://testing-library.com/",children:(0,s.jsx)(t.code,{children:"@testing-library"})})," so that we can continue to write tests which mimic user interactions but run significantly faster than the Cypress E2E test suites."]}),"\n",(0,s.jsx)(t.p,{children:"There are two specific aims of this approach:"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Speed up local development workflows by providing fast feedback after changes have been made"}),"\n",(0,s.jsx)(t.li,{children:"Reduce the cost around introducing new tests so that it is easier for contributors to include tests as part of their changes."}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"running-tests",children:"Running tests"}),"\n",(0,s.jsx)(t.h3,{id:"core-application",children:"Core application"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"yarn test:unit\n## Application e2e\nyarn test\n"})}),"\n",(0,s.jsx)(t.h3,{id:"components",children:"Components"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{children:"yarn test\n"})}),"\n",(0,s.jsx)(t.h3,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{children:"yarn test\n"})})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>a});var s=n(6540);const i={},r=s.createContext(i);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.77ea5b20.js b/assets/js/runtime~main.d299bbcf.js similarity index 97% rename from assets/js/runtime~main.77ea5b20.js rename to assets/js/runtime~main.d299bbcf.js index 29a119fd82..393541149c 100644 --- a/assets/js/runtime~main.77ea5b20.js +++ b/assets/js/runtime~main.d299bbcf.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,t,r,d,o={},f={};function n(e){var a=f[e];if(void 0!==a)return a.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=o,n.c=f,e=[],n.O=(a,t,r,d)=>{if(!t){var o=1/0;for(i=0;i=d)&&Object.keys(n.O).every((e=>n.O[e](t[b])))?t.splice(b--,1):(f=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);n.r(d);var o={};a=a||[null,t({}),t([]),t(t)];for(var f=2&r&&e;"object"==typeof f&&!~a.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((a=>o[a]=()=>e[a]));return o.default=()=>e,n.d(d,o),d},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((a,t)=>(n.f[t](e,a),a)),[])),n.u=e=>"assets/js/"+({0:"777b5aa7",6:"de5b174a",9:"0899d361",14:"e6d31134",48:"a94703ab",55:"78346f93",59:"242bc96d",76:"2fd59926",94:"f41a819c",98:"a7bd4aaa",141:"5f2b48b5",188:"3bd00479",264:"34451a9b",312:"389897fc",314:"a6656452",325:"add03776",368:"d266fe60",401:"17896441",408:"7be2f98f",501:"3ad29780",567:"22dd74f7",586:"5e0e78a8",610:"839a3728",615:"45036732",631:"4db6c553",635:"7f4ab99b",642:"ace855dd",647:"5e95c892",686:"51aaf2d1",699:"ed36fe76",700:"90603c04",742:"aba21aa0",747:"13ba39d3",786:"826114b9",850:"a078990e",874:"8e1fb90b",974:"cbeb1cbe",985:"0767dfa5"}[e]||e)+"."+{0:"f4d08661",6:"df3ccabb",9:"d2c5a202",14:"7266ef80",48:"57204d92",55:"310a4605",59:"f26436fe",76:"e0af8b7c",94:"69a270ac",98:"da495b28",141:"75a9df5d",188:"5eef7c11",237:"4871197a",264:"ac65cfde",312:"1d9630bf",314:"e2b69d2a",325:"08a00677",368:"bd20d9df",401:"af807892",408:"3b1dcb47",501:"08a00bc5",567:"44899a2d",586:"f339f946",610:"2406b9fa",615:"27234e25",631:"078dadef",635:"bca99a8e",642:"f90a9d05",647:"37804138",686:"6cb31cf9",699:"20ff0403",700:"59d526d4",742:"ef569b53",747:"cc59f615",786:"f56af711",850:"e7855f48",874:"ce304e10",974:"abe02b98",985:"11eabddb"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="oa-docs:",n.l=(e,a,t,o)=>{if(r[e])r[e].push(a);else{var f,b;if(void 0!==t)for(var c=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={17896441:"401",45036732:"615","777b5aa7":"0",de5b174a:"6","0899d361":"9",e6d31134:"14",a94703ab:"48","78346f93":"55","242bc96d":"59","2fd59926":"76",f41a819c:"94",a7bd4aaa:"98","5f2b48b5":"141","3bd00479":"188","34451a9b":"264","389897fc":"312",a6656452:"314",add03776:"325",d266fe60:"368","7be2f98f":"408","3ad29780":"501","22dd74f7":"567","5e0e78a8":"586","839a3728":"610","4db6c553":"631","7f4ab99b":"635",ace855dd:"642","5e95c892":"647","51aaf2d1":"686",ed36fe76:"699","90603c04":"700",aba21aa0:"742","13ba39d3":"747","826114b9":"786",a078990e:"850","8e1fb90b":"874",cbeb1cbe:"974","0767dfa5":"985"}[e]||e,n.p+n.u(e)},(()=>{var e={354:0,869:0};n.f.j=(a,t)=>{var r=n.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(354|869)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var o=n.p+n.u(a),f=new Error;n.l(o,(t=>{if(n.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+o+")",f.name="ChunkLoadError",f.type=d,f.request=o,r[1](f)}}),"chunk-"+a,a)}},n.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,o=t[0],f=t[1],b=t[2],c=0;if(o.some((a=>0!==e[a]))){for(r in f)n.o(f,r)&&(n.m[r]=f[r]);if(b)var i=b(n)}for(a&&a(t);c{"use strict";var e,a,t,r,d,o={},f={};function n(e){var a=f[e];if(void 0!==a)return a.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=o,n.c=f,e=[],n.O=(a,t,r,d)=>{if(!t){var o=1/0;for(i=0;i=d)&&Object.keys(n.O).every((e=>n.O[e](t[b])))?t.splice(b--,1):(f=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);n.r(d);var o={};a=a||[null,t({}),t([]),t(t)];for(var f=2&r&&e;"object"==typeof f&&!~a.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((a=>o[a]=()=>e[a]));return o.default=()=>e,n.d(d,o),d},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((a,t)=>(n.f[t](e,a),a)),[])),n.u=e=>"assets/js/"+({0:"777b5aa7",6:"de5b174a",9:"0899d361",14:"e6d31134",48:"a94703ab",55:"78346f93",59:"242bc96d",76:"2fd59926",94:"f41a819c",98:"a7bd4aaa",141:"5f2b48b5",188:"3bd00479",264:"34451a9b",312:"389897fc",314:"a6656452",325:"add03776",368:"d266fe60",401:"17896441",408:"7be2f98f",501:"3ad29780",567:"22dd74f7",586:"5e0e78a8",610:"839a3728",615:"45036732",631:"4db6c553",635:"7f4ab99b",642:"ace855dd",647:"5e95c892",686:"51aaf2d1",699:"ed36fe76",700:"90603c04",742:"aba21aa0",747:"13ba39d3",786:"826114b9",850:"a078990e",874:"8e1fb90b",974:"cbeb1cbe",985:"0767dfa5"}[e]||e)+"."+{0:"f4d08661",6:"df3ccabb",9:"d2c5a202",14:"7266ef80",48:"57204d92",55:"310a4605",59:"f26436fe",76:"e0af8b7c",94:"69a270ac",98:"da495b28",141:"75a9df5d",188:"f962a438",237:"4871197a",264:"ac65cfde",312:"1d9630bf",314:"e2b69d2a",325:"08a00677",368:"bd20d9df",401:"af807892",408:"3b1dcb47",501:"08a00bc5",567:"e8cf9e92",586:"f339f946",610:"2406b9fa",615:"27234e25",631:"078dadef",635:"bca99a8e",642:"f90a9d05",647:"37804138",686:"6cb31cf9",699:"20ff0403",700:"59d526d4",742:"ef569b53",747:"cc59f615",786:"f56af711",850:"e7855f48",874:"ce304e10",974:"abe02b98",985:"11eabddb"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="oa-docs:",n.l=(e,a,t,o)=>{if(r[e])r[e].push(a);else{var f,b;if(void 0!==t)for(var c=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={17896441:"401",45036732:"615","777b5aa7":"0",de5b174a:"6","0899d361":"9",e6d31134:"14",a94703ab:"48","78346f93":"55","242bc96d":"59","2fd59926":"76",f41a819c:"94",a7bd4aaa:"98","5f2b48b5":"141","3bd00479":"188","34451a9b":"264","389897fc":"312",a6656452:"314",add03776:"325",d266fe60:"368","7be2f98f":"408","3ad29780":"501","22dd74f7":"567","5e0e78a8":"586","839a3728":"610","4db6c553":"631","7f4ab99b":"635",ace855dd:"642","5e95c892":"647","51aaf2d1":"686",ed36fe76:"699","90603c04":"700",aba21aa0:"742","13ba39d3":"747","826114b9":"786",a078990e:"850","8e1fb90b":"874",cbeb1cbe:"974","0767dfa5":"985"}[e]||e,n.p+n.u(e)},(()=>{var e={354:0,869:0};n.f.j=(a,t)=>{var r=n.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(354|869)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var o=n.p+n.u(a),f=new Error;n.l(o,(t=>{if(n.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+o+")",f.name="ChunkLoadError",f.type=d,f.request=o,r[1](f)}}),"chunk-"+a,a)}},n.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,o=t[0],f=t[1],b=t[2],c=0;if(o.some((a=>0!==e[a]))){for(r in f)n.o(f,r)&&(n.m[r]=f[r]);if(b)var i=b(n)}for(a&&a(t);c Local Setup | OneArmy Community Platform - + diff --git a/storybook-static/assets/CardList-BNR1NNaa.js b/storybook-static/assets/CardList-CbnpjzYc.js similarity index 97% rename from storybook-static/assets/CardList-BNR1NNaa.js rename to storybook-static/assets/CardList-CbnpjzYc.js index a837e1d05a..baca8b0643 100644 --- a/storybook-static/assets/CardList-BNR1NNaa.js +++ b/storybook-static/assets/CardList-CbnpjzYc.js @@ -1 +1 @@ -import{j as u}from"./jsx-runtime-CexXSJP5.js";import{a as p,r as y}from"./index-BP8_t0zE.js";import{C as k}from"./CardListItem-C2EHKomy.js";import{I}from"./Icon-Cocq8Wc0.js";import{L as O}from"./Loader-DVu-AWlv.js";import{F as g,T as j}from"./theme-ui-components.esm-BngKL4Rx.js";function C(){return C=Object.assign||function(e){for(var t=1;t0?n[e[0]]:S;return e.forEach((function(e){e{const{columnsCountBreakPoints:t,filteredList:n,list:r,onBlur:i,onPinClick:o,selectedPin:s,viewport:l}=e,a=(null===n?r:n).sort(((e,t)=>{var n,r;return Date.parse((null==(n=t.creator)?void 0:n._lastActive)||"0")-Date.parse((null==(r=e.creator)?void 0:r._lastActive)||"0")})).map((e=>{const t=e._id===(null==s?void 0:s._id);return u.jsx(k,{item:e,isSelectedPin:t,onPinClick:t?i:o,viewport:l},e._id)})),c=0===a.length,p=r,d=`${a.length} result${1==a.length?"":"s"} in view`;return u.jsxs(g,{"data-cy":`CardList-${l}`,sx:{flexDirection:"column",gap:2,padding:2},children:[!p&&u.jsx(O,{}),p&&u.jsxs(u.Fragment,{children:[u.jsxs(g,{sx:{justifyContent:"space-between",paddingX:2,paddingTop:2,fontSize:2},children:[u.jsx(j,{"data-cy":"list-results",children:d}),u.jsxs(g,{sx:{alignItems:"center",gap:1},children:[u.jsx(j,{children:" Most recently active"}),u.jsx(I,{glyph:"arrow-full-down"})]})]}),c&&b,!c&&u.jsx(M,{columnsCountBreakPoints:t||{600:1,1100:2,1600:3},children:u.jsx(_,{children:a})})]})]})};try{L.displayName="CardList",L.__docgenInfo={description:"",displayName:"CardList",props:{columnsCountBreakPoints:{defaultValue:null,description:"",name:"columnsCountBreakPoints",required:!1,type:{name:"{ [key: number]: number; }"}},filteredList:{defaultValue:null,description:"",name:"filteredList",required:!0,type:{name:"IMapPin[] | null"}},list:{defaultValue:null,description:"",name:"list",required:!0,type:{name:"IMapPin[]"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!0,type:{name:"() => void"}},onPinClick:{defaultValue:null,description:"",name:"onPinClick",required:!0,type:{name:"(arg: IMapPin) => void"}},selectedPin:{defaultValue:null,description:"",name:"selectedPin",required:!0,type:{name:"IMapPin | undefined"}},viewport:{defaultValue:null,description:"",name:"viewport",required:!0,type:{name:"string"}}}}}catch{}export{L as C}; \ No newline at end of file +import{j as u}from"./jsx-runtime-CexXSJP5.js";import{a as p,r as y}from"./index-BP8_t0zE.js";import{C as k}from"./CardListItem-BGx1T-wd.js";import{I}from"./Icon-Cocq8Wc0.js";import{L as O}from"./Loader-DVu-AWlv.js";import{F as g,T as j}from"./theme-ui-components.esm-BngKL4Rx.js";function C(){return C=Object.assign||function(e){for(var t=1;t0?n[e[0]]:S;return e.forEach((function(e){e{const{columnsCountBreakPoints:t,filteredList:n,list:r,onBlur:i,onPinClick:o,selectedPin:s,viewport:l}=e,a=(null===n?r:n).sort(((e,t)=>{var n,r;return Date.parse((null==(n=t.creator)?void 0:n._lastActive)||"0")-Date.parse((null==(r=e.creator)?void 0:r._lastActive)||"0")})).map((e=>{const t=e._id===(null==s?void 0:s._id);return u.jsx(k,{item:e,isSelectedPin:t,onPinClick:t?i:o,viewport:l},e._id)})),c=0===a.length,p=r,d=`${a.length} result${1==a.length?"":"s"} in view`;return u.jsxs(g,{"data-cy":`CardList-${l}`,sx:{flexDirection:"column",gap:2,padding:2},children:[!p&&u.jsx(O,{}),p&&u.jsxs(u.Fragment,{children:[u.jsxs(g,{sx:{justifyContent:"space-between",paddingX:2,paddingTop:2,fontSize:2},children:[u.jsx(j,{"data-cy":"list-results",children:d}),u.jsxs(g,{sx:{alignItems:"center",gap:1},children:[u.jsx(j,{children:" Most recently active"}),u.jsx(I,{glyph:"arrow-full-down"})]})]}),c&&b,!c&&u.jsx(M,{columnsCountBreakPoints:t||{600:1,1100:2,1600:3},children:u.jsx(_,{children:a})})]})]})};try{L.displayName="CardList",L.__docgenInfo={description:"",displayName:"CardList",props:{columnsCountBreakPoints:{defaultValue:null,description:"",name:"columnsCountBreakPoints",required:!1,type:{name:"{ [key: number]: number; }"}},filteredList:{defaultValue:null,description:"",name:"filteredList",required:!0,type:{name:"IMapPin[] | null"}},list:{defaultValue:null,description:"",name:"list",required:!0,type:{name:"IMapPin[]"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!0,type:{name:"() => void"}},onPinClick:{defaultValue:null,description:"",name:"onPinClick",required:!0,type:{name:"(arg: IMapPin) => void"}},selectedPin:{defaultValue:null,description:"",name:"selectedPin",required:!0,type:{name:"IMapPin | undefined"}},viewport:{defaultValue:null,description:"",name:"viewport",required:!0,type:{name:"string"}}}}}catch{}export{L as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardList.stories-B4FyprII.js b/storybook-static/assets/CardList.stories-Np8PMAt9.js similarity index 92% rename from storybook-static/assets/CardList.stories-B4FyprII.js rename to storybook-static/assets/CardList.stories-Np8PMAt9.js index 729e1fe6c0..0a2f270a0c 100644 --- a/storybook-static/assets/CardList.stories-B4FyprII.js +++ b/storybook-static/assets/CardList.stories-Np8PMAt9.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as o}from"./CardList-BNR1NNaa.js";import"./index-BP8_t0zE.js";import"./CardListItem-C2EHKomy.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-DYyeqKlo.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-BvLli4rf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./icon-arrow-down-CJeToCJe.js";import"./Loader-DVu-AWlv.js";const U={title:"Map/CardList",component:o},e=[{_deleted:!1,_id:"first-one",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0}},{_deleted:!1,_id:"second-one",type:"collection-point",moderation:"accepted",verified:!1,location:{lat:10,lng:-38}},{_deleted:!1,_id:"third",type:"member",moderation:"accepted",verified:!1,location:{lat:102,lng:30}},{_deleted:!1,_id:"4th",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:73}}],l=()=>{},n=()=>{},t=()=>s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:null,selectedPin:void 0,viewport:"stories"}),i=()=>{const i=[e[0],e[2]];return s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:i,selectedPin:void 0,viewport:"stories"})},r=()=>s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:[],selectedPin:void 0,viewport:"stories"});var a,d,p,m,c,u,f,v,C;t.parameters={...t.parameters,docs:{...null==(a=t.parameters)?void 0:a.docs,source:{originalSource:'() => {\n return ;\n}',...null==(p=null==(d=t.parameters)?void 0:d.docs)?void 0:p.source}}},i.parameters={...i.parameters,docs:{...null==(m=i.parameters)?void 0:m.docs,source:{originalSource:'() => {\n const filteredList = [allItems[0], allItems[2]];\n return ;\n}',...null==(u=null==(c=i.parameters)?void 0:c.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(f=r.parameters)?void 0:f.docs,source:{originalSource:'() => {\n return ;\n}',...null==(C=null==(v=r.parameters)?void 0:v.docs)?void 0:C.source}}};const V=["Default","FiltedDisplay","WhenFiltedDisplayIsZero"];export{t as Default,i as FiltedDisplay,r as WhenFiltedDisplayIsZero,V as __namedExportsOrder,U as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as o}from"./CardList-CbnpjzYc.js";import"./index-BP8_t0zE.js";import"./CardListItem-BGx1T-wd.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-CdLmtAl0.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-CEGEtBDf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./icon-arrow-down-CJeToCJe.js";import"./Loader-DVu-AWlv.js";const U={title:"Map/CardList",component:o},e=[{_deleted:!1,_id:"first-one",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0}},{_deleted:!1,_id:"second-one",type:"collection-point",moderation:"accepted",verified:!1,location:{lat:10,lng:-38}},{_deleted:!1,_id:"third",type:"member",moderation:"accepted",verified:!1,location:{lat:102,lng:30}},{_deleted:!1,_id:"4th",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:73}}],l=()=>{},n=()=>{},t=()=>s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:null,selectedPin:void 0,viewport:"stories"}),i=()=>{const i=[e[0],e[2]];return s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:i,selectedPin:void 0,viewport:"stories"})},r=()=>s.jsx(o,{list:e,onBlur:l,onPinClick:n,filteredList:[],selectedPin:void 0,viewport:"stories"});var a,d,p,m,c,u,f,v,C;t.parameters={...t.parameters,docs:{...null==(a=t.parameters)?void 0:a.docs,source:{originalSource:'() => {\n return ;\n}',...null==(p=null==(d=t.parameters)?void 0:d.docs)?void 0:p.source}}},i.parameters={...i.parameters,docs:{...null==(m=i.parameters)?void 0:m.docs,source:{originalSource:'() => {\n const filteredList = [allItems[0], allItems[2]];\n return ;\n}',...null==(u=null==(c=i.parameters)?void 0:c.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(f=r.parameters)?void 0:f.docs,source:{originalSource:'() => {\n return ;\n}',...null==(C=null==(v=r.parameters)?void 0:v.docs)?void 0:C.source}}};const V=["Default","FiltedDisplay","WhenFiltedDisplayIsZero"];export{t as Default,i as FiltedDisplay,r as WhenFiltedDisplayIsZero,V as __namedExportsOrder,U as default}; \ No newline at end of file diff --git a/storybook-static/assets/CardListItem-C2EHKomy.js b/storybook-static/assets/CardListItem-BGx1T-wd.js similarity index 72% rename from storybook-static/assets/CardListItem-C2EHKomy.js rename to storybook-static/assets/CardListItem-BGx1T-wd.js index b7bf6667b5..04a4c0cbab 100644 --- a/storybook-static/assets/CardListItem-C2EHKomy.js +++ b/storybook-static/assets/CardListItem-BGx1T-wd.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as p}from"./CardButton-N2uDQfPt.js";import{C as c}from"./CardProfile-DYyeqKlo.js";import{I as m}from"./InternalLink-Bo5i6YIm.js";import{a as u}from"./theme-ui-components.esm-BngKL4Rx.js";const d=e=>{const{item:i,onPinClick:a,isSelectedPin:n,viewport:d}=e,r="CardListItem"+(n?"-selected":""),s=t.jsx(p,{isSelected:n,children:t.jsx(c,{item:i})}),o={"data-cy":r,"data-testid":r,sx:{borderRadius:2,padding:2}};return"mobile"===d?t.jsx(m,{target:"_blank",to:`/u/${i._id}`,...o,children:s}):t.jsx(u,{"data-cy":r,"data-testid":r,onClick:()=>a(i),sx:{borderRadius:2,padding:2},children:s})};try{d.displayName="CardListItem",d.__docgenInfo={description:"",displayName:"CardListItem",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isSelectedPin:{defaultValue:null,description:"",name:"isSelectedPin",required:!0,type:{name:"boolean"}},onPinClick:{defaultValue:null,description:"",name:"onPinClick",required:!0,type:{name:"(arg: IMapPin) => void"}},viewport:{defaultValue:null,description:"",name:"viewport",required:!0,type:{name:"string"}}}}}catch{}export{d as C}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as p}from"./CardButton-N2uDQfPt.js";import{C as c}from"./CardProfile-CdLmtAl0.js";import{I as m}from"./InternalLink-Bo5i6YIm.js";import{a as u}from"./theme-ui-components.esm-BngKL4Rx.js";const d=e=>{const{item:i,onPinClick:a,isSelectedPin:d,viewport:n}=e,r="CardListItem"+(d?"-selected":""),s=t.jsx(p,{isSelected:d,children:t.jsx(c,{item:i})}),o={"data-cy":r,"data-testid":r,sx:{borderRadius:2,padding:2}};return"mobile"===n?t.jsx(m,{target:"_blank",to:`/u/${i._id}`,...o,children:s}):t.jsx(u,{"data-cy":r,"data-testid":r,onClick:()=>a(i),sx:{borderRadius:2,padding:2},children:s})};try{d.displayName="CardListItem",d.__docgenInfo={description:"",displayName:"CardListItem",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isSelectedPin:{defaultValue:null,description:"",name:"isSelectedPin",required:!0,type:{name:"boolean"}},onPinClick:{defaultValue:null,description:"",name:"onPinClick",required:!0,type:{name:"(arg: IMapPin) => void"}},viewport:{defaultValue:null,description:"",name:"viewport",required:!0,type:{name:"string"}}}}}catch{}export{d as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardListItem.stories-DsO2KU8L.js b/storybook-static/assets/CardListItem.stories-CSuNgrVu.js similarity index 96% rename from storybook-static/assets/CardListItem.stories-DsO2KU8L.js rename to storybook-static/assets/CardListItem.stories-CSuNgrVu.js index 5760b93f83..7ffa637b66 100644 --- a/storybook-static/assets/CardListItem.stories-DsO2KU8L.js +++ b/storybook-static/assets/CardListItem.stories-CSuNgrVu.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y as b}from"./index-D_kXk1yT.js";import{C as n}from"./CardListItem-C2EHKomy.js";import"./index-BP8_t0zE.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-DYyeqKlo.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-BvLli4rf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";const K={title:"Map/CardListItem",component:n},a=()=>{},s="desktop",i=()=>{const t={_deleted:!1,_id:"not-selected-onload",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0},creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:b.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:t,isSelectedPin:!1,onPinClick:a,viewport:s})})},r=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!1,profileType:"workspace",workspaceType:"Sheetpress"}},isSelectedPin:!1,onPinClick:a,viewport:s})}),o=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:{_deleted:!1,_id:"not-selected-onload",type:"member",location:{lat:0,lng:0},moderation:"accepted",verified:!1},isSelectedPin:!1,onPinClick:a,viewport:s})});var l,d,m,c,p,u,f,y,v;i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n moderation: 'accepted' as IModerationStatus,\n verified: false,\n location: {\n lat: 0,\n lng: 0\n },\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
    \n \n
    ;\n}",...null==(m=null==(d=i.parameters)?void 0:d.docs)?void 0:m.source}}},r.parameters={...r.parameters,docs:{...null==(c=r.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: false,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
    \n \n
    ;\n}",...null==(u=null==(p=r.parameters)?void 0:p.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(f=o.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n verified: false\n };\n return
    \n \n
    ;\n}",...null==(v=null==(y=o.parameters)?void 0:y.docs)?void 0:v.source}}};const Q=["DefaultMember","DefaultSpace","DefaultFallback"];export{o as DefaultFallback,i as DefaultMember,r as DefaultSpace,Q as __namedExportsOrder,K as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y as b}from"./index-D_kXk1yT.js";import{C as n}from"./CardListItem-BGx1T-wd.js";import"./index-BP8_t0zE.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-CdLmtAl0.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-CEGEtBDf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";const K={title:"Map/CardListItem",component:n},a=()=>{},s="desktop",i=()=>{const t={_deleted:!1,_id:"not-selected-onload",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0},creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:b.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:t,isSelectedPin:!1,onPinClick:a,viewport:s})})},r=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!1,profileType:"workspace",workspaceType:"Sheetpress"}},isSelectedPin:!1,onPinClick:a,viewport:s})}),o=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(n,{item:{_deleted:!1,_id:"not-selected-onload",type:"member",location:{lat:0,lng:0},moderation:"accepted",verified:!1},isSelectedPin:!1,onPinClick:a,viewport:s})});var l,d,m,c,p,u,f,y,v;i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n moderation: 'accepted' as IModerationStatus,\n verified: false,\n location: {\n lat: 0,\n lng: 0\n },\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
    \n \n
    ;\n}",...null==(m=null==(d=i.parameters)?void 0:d.docs)?void 0:m.source}}},r.parameters={...r.parameters,docs:{...null==(c=r.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: false,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
    \n \n
    ;\n}",...null==(u=null==(p=r.parameters)?void 0:p.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(f=o.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n verified: false\n };\n return
    \n \n
    ;\n}",...null==(v=null==(y=o.parameters)?void 0:y.docs)?void 0:v.source}}};const Q=["DefaultMember","DefaultSpace","DefaultFallback"];export{o as DefaultFallback,i as DefaultMember,r as DefaultSpace,Q as __namedExportsOrder,K as default}; \ No newline at end of file diff --git a/storybook-static/assets/CardProfile-DYyeqKlo.js b/storybook-static/assets/CardProfile-CdLmtAl0.js similarity index 96% rename from storybook-static/assets/CardProfile-DYyeqKlo.js rename to storybook-static/assets/CardProfile-CdLmtAl0.js index 838f9038a8..b61fb9056b 100644 --- a/storybook-static/assets/CardProfile-DYyeqKlo.js +++ b/storybook-static/assets/CardProfile-CdLmtAl0.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as g}from"./Category-CVnjFQdi.js";import{M as c}from"./MemberBadge-BvLli4rf.js";import{U as f}from"./Username-Cu73ouL4.js";import{F as i,a as _,g as C,I as b,T as I}from"./theme-ui-components.esm-BngKL4Rx.js";import{P as j}from"./ProfileTagsList-CnWLcFtJ.js";const p=({item:r,isLink:s})=>{const{_id:t,subType:a,type:n}=r;return e.jsxs(i,{sx:{padding:2,gap:2},children:[e.jsx(c,{profileType:n,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:2},children:[e.jsx(f,{user:{userName:t},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"}),a&&e.jsx(g,{category:{label:a},sx:{border:"1px solid #0087B6",backgroundColor:"#ECFAFF",color:"#0087B6"}}),"member"===n&&e.jsx(g,{category:{label:"Wants to get started"},sx:{border:"1px solid #A72E5A",backgroundColor:"#F7C7D9",color:"#A72E5A"}})]})]})};try{p.displayName="CardDetailsFallback",p.__docgenInfo={description:"",displayName:"CardDetailsFallback",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const x=({creator:r,isLink:s})=>{const{_id:t,badges:a,countryCode:n,profileType:o,tags:l,userImage:d}=r;return e.jsxs(i,{sx:{gap:2,justifyContent:"center",alignItems:"center",padding:2,alignContent:"stretch"},children:[d&&e.jsx(_,{sx:{aspectRatio:1,width:"60px",height:"60px"},children:e.jsxs(i,{sx:{alignContent:"flex-start",justifyContent:"flex-end",flexWrap:"wrap"},children:[e.jsx(C,{src:d,sx:{width:"60px",height:"60px",objectFit:"cover"},loading:"lazy"}),e.jsx(c,{profileType:o,size:22,sx:{transform:"translateY(-22px)"}})]})}),!d&&e.jsx(c,{profileType:o,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:1,flex:1},children:[e.jsx(f,{user:{userName:t,countryCode:n,isSupporter:(null==a?void 0:a.supporter)||!1,isVerified:(null==a?void 0:a.verified)||!1},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"}),l&&e.jsx(j,{tags:l})]})]})};try{x.displayName="CardDetailsMemberProfile",x.__docgenInfo={description:"",displayName:"CardDetailsMemberProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const u=({creator:r,isLink:s})=>{const{_id:t,about:a,badges:n,countryCode:o,coverImage:l,profileType:d,tags:p}=r,x=!!(a&&a.length>80)&&a.slice(0,78)+"...";return e.jsxs(i,{sx:{flexDirection:"column",width:"100%"},children:[l&&e.jsxs(e.Fragment,{children:[e.jsx(i,{sx:{aspectRatio:16/6,overflow:"hidden"},children:e.jsx(b,{src:l,sx:{aspectRatio:16/6,alignSelf:"stretch",objectFit:"cover"},loading:"lazy"})}),e.jsx(_,{sx:{position:"relative",height:0,top:"-20px",width:"100%"},children:e.jsx(c,{profileType:d,size:40,sx:{float:"right",marginX:2}})})]}),e.jsxs(i,{sx:{alignItems:"flex-start",flexDirection:"column",gap:1,padding:2},children:[e.jsxs(i,{sx:{gap:2},children:[!l&&e.jsx(c,{profileType:d,size:30}),e.jsx(f,{user:{userName:t,countryCode:o,isVerified:(null==n?void 0:n.verified)||!1,isSupporter:(null==n?void 0:n.supporter)||!1},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"})]}),p&&e.jsx(j,{tags:p}),a&&e.jsx(I,{variant:"quiet",sx:{fontSize:2},children:x||a})]})]})};try{u.displayName="CardDetailsSpaceProfile",u.__docgenInfo={description:"",displayName:"CardDetailsSpaceProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const y=({item:r,isLink:s=!1})=>{const{creator:t}=r,a="member"===(null==t?void 0:t.profileType);return e.jsxs(i,{sx:{alignItems:"stretch",alignContent:"stretch"},children:[a&&e.jsx(x,{creator:t,isLink:s}),!a&&t&&e.jsx(u,{creator:t,isLink:s}),!t&&e.jsx(p,{item:r,isLink:s})]})};try{y.displayName="CardProfile",y.__docgenInfo={description:"",displayName:"CardProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:{value:"false"},description:"",name:"isLink",required:!1,type:{name:"boolean"}}}}}catch{}export{y as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as g}from"./Category-CVnjFQdi.js";import{M as c}from"./MemberBadge-CEGEtBDf.js";import{U as f}from"./Username-Cu73ouL4.js";import{F as i,a as _,g as C,I as b,T as I}from"./theme-ui-components.esm-BngKL4Rx.js";import{P as j}from"./ProfileTagsList-CnWLcFtJ.js";const p=({item:r,isLink:s})=>{const{_id:t,subType:a,type:n}=r;return e.jsxs(i,{sx:{padding:2,gap:2},children:[e.jsx(c,{profileType:n,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:2},children:[e.jsx(f,{user:{userName:t},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"}),a&&e.jsx(g,{category:{label:a},sx:{border:"1px solid #0087B6",backgroundColor:"#ECFAFF",color:"#0087B6"}}),"member"===n&&e.jsx(g,{category:{label:"Wants to get started"},sx:{border:"1px solid #A72E5A",backgroundColor:"#F7C7D9",color:"#A72E5A"}})]})]})};try{p.displayName="CardDetailsFallback",p.__docgenInfo={description:"",displayName:"CardDetailsFallback",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const x=({creator:r,isLink:s})=>{const{_id:t,badges:a,countryCode:n,profileType:o,tags:l,userImage:d}=r;return e.jsxs(i,{sx:{gap:2,justifyContent:"center",alignItems:"center",padding:2,alignContent:"stretch"},children:[d&&e.jsx(_,{sx:{aspectRatio:1,width:"60px",height:"60px"},children:e.jsxs(i,{sx:{alignContent:"flex-start",justifyContent:"flex-end",flexWrap:"wrap"},children:[e.jsx(C,{src:d,sx:{width:"60px",height:"60px",objectFit:"cover"},loading:"lazy"}),e.jsx(c,{profileType:o,size:22,sx:{transform:"translateY(-22px)"}})]})}),!d&&e.jsx(c,{profileType:o,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:1,flex:1},children:[e.jsx(f,{user:{userName:t,countryCode:n,isSupporter:(null==a?void 0:a.supporter)||!1,isVerified:(null==a?void 0:a.verified)||!1},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"}),l&&e.jsx(j,{tags:l})]})]})};try{x.displayName="CardDetailsMemberProfile",x.__docgenInfo={description:"",displayName:"CardDetailsMemberProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const u=({creator:r,isLink:s})=>{const{_id:t,about:a,badges:n,countryCode:o,coverImage:l,profileType:d,tags:p}=r,x=!!(a&&a.length>80)&&a.slice(0,78)+"...";return e.jsxs(i,{sx:{flexDirection:"column",width:"100%"},children:[l&&e.jsxs(e.Fragment,{children:[e.jsx(i,{sx:{aspectRatio:16/6,overflow:"hidden"},children:e.jsx(b,{src:l,sx:{aspectRatio:16/6,alignSelf:"stretch",objectFit:"cover"},loading:"lazy"})}),e.jsx(_,{sx:{position:"relative",height:0,top:"-20px",width:"100%"},children:e.jsx(c,{profileType:d,size:40,sx:{float:"right",marginX:2}})})]}),e.jsxs(i,{sx:{alignItems:"flex-start",flexDirection:"column",gap:1,padding:2},children:[e.jsxs(i,{sx:{gap:2},children:[!l&&e.jsx(c,{profileType:d,size:30}),e.jsx(f,{user:{userName:t,countryCode:o,isVerified:(null==n?void 0:n.verified)||!1,isSupporter:(null==n?void 0:n.supporter)||!1},sx:{alignSelf:"flex-start"},isLink:s,target:"_blank"})]}),p&&e.jsx(j,{tags:p}),a&&e.jsx(I,{variant:"quiet",sx:{fontSize:2},children:x||a})]})]})};try{u.displayName="CardDetailsSpaceProfile",u.__docgenInfo={description:"",displayName:"CardDetailsSpaceProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const y=({item:r,isLink:s=!1})=>{const{creator:t}=r,a="member"===(null==t?void 0:t.profileType);return e.jsxs(i,{sx:{alignItems:"stretch",alignContent:"stretch"},children:[a&&e.jsx(x,{creator:t,isLink:s}),!a&&t&&e.jsx(u,{creator:t,isLink:s}),!t&&e.jsx(p,{item:r,isLink:s})]})};try{y.displayName="CardProfile",y.__docgenInfo={description:"",displayName:"CardProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:{value:"false"},description:"",name:"isLink",required:!1,type:{name:"boolean"}}}}}catch{}export{y as C}; \ No newline at end of file diff --git a/storybook-static/assets/Color-6VNJS4EI-BfquLmg4.js b/storybook-static/assets/Color-6VNJS4EI-CM_04bzp.js similarity index 99% rename from storybook-static/assets/Color-6VNJS4EI-BfquLmg4.js rename to storybook-static/assets/Color-6VNJS4EI-CM_04bzp.js index 8683c73569..0c3f70b095 100644 --- a/storybook-static/assets/Color-6VNJS4EI-BfquLmg4.js +++ b/storybook-static/assets/Color-6VNJS4EI-CM_04bzp.js @@ -1 +1 @@ -import{n as M,e as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-DcmRRetP.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function K(e){var t=b.useRef(e),r=b.useRef((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var S=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e0:e.buttons>0)&&a.current?o(ne(a.current,e,u.current)):r(!1)},t=function(){return r(!1)};function r(r){var n=i.current,o=V(a.current),l=r?o.addEventListener:o.removeEventListener;l(n?"touchmove":"mousemove",e),l(n?"touchend":"mouseup",t)}return[function(e){var t,n=e.nativeEvent,l=a.current;if(l&&(re(n),t=n,(!i.current||j(t))&&l)){if(j(n)){i.current=!0;var s=n.changedTouches||[];s.length&&(u.current=s[0].identifier)}l.focus(),o(ne(l,n,u.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},r]}),[l,o]),c=s[0],f=s[1],d=s[2];return b.useEffect((function(){return d}),[d]),h.createElement("div",$({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:a,onKeyDown:f,tabIndex:0,role:"slider"}))})),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,r=e.left,n=e.top,a=void 0===n?.5:n,o=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return void 0===t&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:y(e.h),s:y(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:y(a/2),a:y(n,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),l=n*(1-r),u=n*(1-(t-o)*r),i=n*(1-(1-t+o)*r),s=o%6;return{r:y(255*[n,u,l,l,i,n][s]),g:y(255*[i,n,n,u,l,l][s]),b:y(255*[l,l,i,n,n,u][s]),a:y(a,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?H(y(255*a)):"";return"#"+H(t)+H(r)+H(n)+o},ge=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),l=o-Math.min(t,r,n),u=l?o===t?(r-n)/l:o===r?2+(n-t)/l:4+(t-r)/l:0;return{h:y(60*(u<0?u+6:u)),s:y(o?l/o*100:0),v:y(o/255*100),a:a}},me=h.memo((function(e){var t=e.hue,r=e.onChange,n=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:n},h.createElement(Z,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:S(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))})),be=h.memo((function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:n},h.createElement(Z,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:S(t.s+100*e.left,0,100),v:S(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))})),ve=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,r){var n=K(r),a=b.useState((function(){return e.toHsva(t)})),o=a[0],l=a[1],u=b.useRef({color:t,hsva:o});b.useEffect((function(){if(!e.equal(t,u.current.color)){var r=e.toHsva(t);u.current={hsva:r,color:t},l(r)}}),[t,e]),b.useEffect((function(){var t;ve(o,u.current.hsva)||e.equal(t=e.fromHsva(o),u.current.color)||(u.current={hsva:o,color:t},n(t))}),[o,e,n]);var i=b.useCallback((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[o,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!oe.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',oe.set(t,r);var n=Be();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}}),[])},We=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},r,{a:0}))+", "+q(Object.assign({},r,{a:1}))+")"},o=z(["react-colorful__alpha",t]),l=y(100*r.a);return h.createElement("div",{className:o},h.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),h.createElement(Z,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:S(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:r.a,color:q(r)})))},we=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c}),h.createElement(Ke,{hsva:s,onChange:c,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a;let u,i;o===a?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(60*u,360),u<0&&(u+=360);const s=(a+o)/2;return i=o===a?0:s<=.5?l/(o+a):l/(2-o-a),[u,100*i,100*s]},u.rgb.hsv=function(e){let t,r,n,a,o;const l=e[0]/255,u=e[1]/255,i=e[2]/255,s=Math.max(l,u,i),c=s-Math.min(l,u,i),h=function(e){return(s-e)/6/c+.5};return 0===c?(a=0,o=0):(o=c/s,t=h(l),r=h(u),n=h(i),l===s?a=n-r:u===s?a=1/3+t-n:i===s&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*s]},u.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=u.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*o,100*n]},u.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let r,n=1/0;for(const a of Object.keys(F)){const t=Je(e,F[a]);t.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},u.rgb.lab=function(e){const t=u.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(r-n),200*(n-a)]},u.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,o,l;if(0===r)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;const u=2*n-a,i=[0,0,0];for(let s=0;s<3;s++)o=t+1/3*-(s-1),o<0&&o++,o>1&&o--,l=6*o<1?u+6*(a-u)*o:2*o<1?a:3*o<2?u+(a-u)*(2/3-o)*6:u,i[s]=255*l;return i},u.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;return[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},u.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),u=255*n*(1-r*o),i=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,i,l];case 1:return[u,n,l];case 2:return[l,n,i];case 3:return[l,u,n];case 4:return[i,l,n];case 5:return[n,l,u]}},u.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,l;l=(2-r)*n;const u=(2-r)*a;return o=r*a,o/=u<=1?u:2-u,o=o||0,l/=2,[t,100*o,100*l]},u.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let o;a>1&&(r/=a,n/=a);const l=Math.floor(6*t),u=1-n;o=6*t-l,1&l&&(o=1-o);const i=r+o*(u-r);let s,c,h;switch(l){default:case 6:case 0:s=u,c=i,h=r;break;case 1:s=i,c=u,h=r;break;case 2:s=r,c=u,h=i;break;case 3:s=r,c=i,h=u;break;case 4:s=i,c=r,h=u;break;case 5:s=u,c=r,h=i}return[255*s,255*c,255*h]},u.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},u.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},u.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},u.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},u.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360);return[t,Math.sqrt(r*r+n*n),a]},u.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},u.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let o=null===t?u.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(l+=60),l},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},u.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},u.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},u.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o;let u,i;return u=l<1?o/(1-l):0,i=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,i/=6,i%=1,[360*i,100*l,100*u]},u.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},u.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const a=[0,0,0],o=t%1*6,l=o%1,u=1-l;let i=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},u.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},u.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let r=t.length,n=0;n1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,a=0;a{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach((r=>{const n=t[r];O[e][r]=st(n),O[e][r].raw=at(n)}))}));var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if("number"==typeof e)return e;if(yt(e))return se;if(ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pt(e);var r=wt.test(e);return r||kt.test(e)?_t(e.slice(2),r?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,r){var n,a,o,l,u,i,s=0,c=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError($t);function d(t){var r=n,o=a;return n=a=void 0,s=t,l=e.apply(o,r)}function g(e){var r=e-i;return void 0===i||r>=t||r<0||h&&e-s>=o}function b(){var e=D();if(g(e))return v(e);u=setTimeout(b,function(e){var r=t-(e-i);return h?Ot(r,o-(e-s)):r}(e))}function v(e){return u=void 0,f&&n?d(e):(n=a=void 0,l)}function p(){var e=D(),r=g(e);if(n=arguments,a=this,i=e,r){if(void 0===u)return function(e){return s=e,u=setTimeout(b,t),c?d(e):l}(i);if(h)return clearTimeout(u),u=setTimeout(b,t),d(i)}return void 0===u&&(u=setTimeout(b,t)),l}return t=le(t)||0,Ct(r)&&(c=!!r.leading,o=(h="maxWait"in r)?Nt(le(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),p.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=i=a=u=void 0},p.flush=function(){return void 0===u?l:v(D())},p}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(jt);return Tt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Rt(e,t,{leading:n,maxWait:t,trailing:a})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)((({theme:e})=>({fontFamily:e.typography.fonts.base}))),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div((({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius}))),Dt='url(\'data:image/svg+xml;charset=utf-8,\')',ie=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},Kt=M(Ce.Input)((({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base}))),Vt=M($e)((({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color}))),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=null==e?void 0:e.match(At);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.rgb.hsl([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([r,n,a]),colorSpace:"rgb",rgb:e,hsl:`hsla(${l}, ${u}%, ${i}%, ${o})`,hex:`#${w.rgb.hex([r,n,a]).toLowerCase()}`}}if(Ut.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.hsl.rgb([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([r,n,a]),colorSpace:"hsl",rgb:`rgba(${l}, ${u}, ${i}, ${o})`,hsl:e,hex:`#${w.hsl.hex([r,n,a]).toLowerCase()}`}}let r=e.replace("#",""),n=w.keyword.rgb(r)||w.hex.rgb(r),a=w.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:Y.test(e)&&(o=`#${r}`),o.startsWith("#"))t=Y.test(o);else try{w.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:w.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},Qt=(e,t,r)=>{if(!e||null==t||!t.valid)return L[r];if("hex"!==r)return(null==t?void 0:t[r])||L[r];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let n=t.hex.match(Yt);if(!n)return Y.test(t.hex)?t.hex:L.hex;let[a,o,l]=n[1].split("");return`#${a}${a}${o}${o}${l}${l}`},Zt=(e,t)=>{let[r,n]=b.useState(e||""),[a,o]=b.useState((()=>I(r))),[l,u]=b.useState((null==a?void 0:a.colorSpace)||"hex");b.useEffect((()=>{let t=e||"",r=I(t);n(t),o(r),u((null==r?void 0:r.colorSpace)||"hex")}),[e]);let i=b.useMemo((()=>Qt(r,a,l).toLowerCase()),[r,a,l]),s=b.useCallback((e=>{let r=I(e),a=(null==r?void 0:r.value)||e||"";n(a),""===a&&(o(void 0),t(void 0)),r&&(o(r),u(r.colorSpace),t(r.value))}),[t]),c=b.useCallback((()=>{let e=P.indexOf(l)+1;e>=P.length&&(e=0),u(P[e]);let r=(null==a?void 0:a[P[e]])||"";n(r),t(r)}),[a,l,t]);return{value:r,realValue:i,updateValue:s,color:a,colorSpace:l,cycleColorSpace:c}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,r)=>{let[n,a]=b.useState(null!=t&&t.valid?[t]:[]);b.useEffect((()=>{void 0===t&&a([])}),[t]);let o=b.useMemo((()=>(e||[]).map((e=>"string"==typeof e?I(e):e.title?{...I(e.color),keyword:e.title}:I(e.color))).concat(n).filter(Boolean).slice(-27)),[e,n]),l=b.useCallback((e=>{null!=e&&e.valid&&(o.some((t=>W(t[r])===W(e[r])))||a((t=>t.concat(e))))}),[r,o]);return{presets:o,addPreset:l}},tn=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:l=!1})=>{let u=b.useCallback(Ht(r,200),[r]),{value:i,realValue:s,updateValue:c,color:f,colorSpace:d,cycleColorSpace:g}=Zt(t,u),{presets:v,addPreset:p}=en(o,f,d),m=Jt[d];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>p(f),tooltip:h.createElement(qt,null,h.createElement(m,{color:"transparent"===s?"#000000":s,onChange:c,onFocus:n,onBlur:a}),v.length>0&&h.createElement(Wt,null,v.map(((e,t)=>h.createElement(ue,{key:`${e.value}-${t}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:e.keyword||e.value})},h.createElement(ie,{value:e[d],active:f&&W(e[d])===W(f[d]),onClick:()=>c(e.value)}))))))},h.createElement(ie,{value:s,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:e=>c(e.target.value),onFocus:e=>e.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:g}):null)},bn=tn;export{tn as ColorControl,bn as default}; \ No newline at end of file +import{n as M,e as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-u2PVOEPH.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function K(e){var t=b.useRef(e),r=b.useRef((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var S=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e0:e.buttons>0)&&a.current?o(ne(a.current,e,u.current)):r(!1)},t=function(){return r(!1)};function r(r){var n=i.current,o=V(a.current),l=r?o.addEventListener:o.removeEventListener;l(n?"touchmove":"mousemove",e),l(n?"touchend":"mouseup",t)}return[function(e){var t,n=e.nativeEvent,l=a.current;if(l&&(re(n),t=n,(!i.current||j(t))&&l)){if(j(n)){i.current=!0;var s=n.changedTouches||[];s.length&&(u.current=s[0].identifier)}l.focus(),o(ne(l,n,u.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},r]}),[l,o]),c=s[0],f=s[1],d=s[2];return b.useEffect((function(){return d}),[d]),h.createElement("div",$({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:a,onKeyDown:f,tabIndex:0,role:"slider"}))})),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,r=e.left,n=e.top,a=void 0===n?.5:n,o=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return void 0===t&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:y(e.h),s:y(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:y(a/2),a:y(n,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),l=n*(1-r),u=n*(1-(t-o)*r),i=n*(1-(1-t+o)*r),s=o%6;return{r:y(255*[n,u,l,l,i,n][s]),g:y(255*[i,n,n,u,l,l][s]),b:y(255*[l,l,i,n,n,u][s]),a:y(a,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?H(y(255*a)):"";return"#"+H(t)+H(r)+H(n)+o},ge=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),l=o-Math.min(t,r,n),u=l?o===t?(r-n)/l:o===r?2+(n-t)/l:4+(t-r)/l:0;return{h:y(60*(u<0?u+6:u)),s:y(o?l/o*100:0),v:y(o/255*100),a:a}},me=h.memo((function(e){var t=e.hue,r=e.onChange,n=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:n},h.createElement(Z,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:S(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))})),be=h.memo((function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:n},h.createElement(Z,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:S(t.s+100*e.left,0,100),v:S(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))})),ve=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,r){var n=K(r),a=b.useState((function(){return e.toHsva(t)})),o=a[0],l=a[1],u=b.useRef({color:t,hsva:o});b.useEffect((function(){if(!e.equal(t,u.current.color)){var r=e.toHsva(t);u.current={hsva:r,color:t},l(r)}}),[t,e]),b.useEffect((function(){var t;ve(o,u.current.hsva)||e.equal(t=e.fromHsva(o),u.current.color)||(u.current={hsva:o,color:t},n(t))}),[o,e,n]);var i=b.useCallback((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[o,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!oe.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',oe.set(t,r);var n=Be();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}}),[])},We=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},r,{a:0}))+", "+q(Object.assign({},r,{a:1}))+")"},o=z(["react-colorful__alpha",t]),l=y(100*r.a);return h.createElement("div",{className:o},h.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),h.createElement(Z,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:S(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:r.a,color:q(r)})))},we=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c}),h.createElement(Ke,{hsva:s,onChange:c,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a;let u,i;o===a?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(60*u,360),u<0&&(u+=360);const s=(a+o)/2;return i=o===a?0:s<=.5?l/(o+a):l/(2-o-a),[u,100*i,100*s]},u.rgb.hsv=function(e){let t,r,n,a,o;const l=e[0]/255,u=e[1]/255,i=e[2]/255,s=Math.max(l,u,i),c=s-Math.min(l,u,i),h=function(e){return(s-e)/6/c+.5};return 0===c?(a=0,o=0):(o=c/s,t=h(l),r=h(u),n=h(i),l===s?a=n-r:u===s?a=1/3+t-n:i===s&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*s]},u.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=u.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*o,100*n]},u.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let r,n=1/0;for(const a of Object.keys(F)){const t=Je(e,F[a]);t.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},u.rgb.lab=function(e){const t=u.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(r-n),200*(n-a)]},u.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,o,l;if(0===r)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;const u=2*n-a,i=[0,0,0];for(let s=0;s<3;s++)o=t+1/3*-(s-1),o<0&&o++,o>1&&o--,l=6*o<1?u+6*(a-u)*o:2*o<1?a:3*o<2?u+(a-u)*(2/3-o)*6:u,i[s]=255*l;return i},u.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;return[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},u.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),u=255*n*(1-r*o),i=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,i,l];case 1:return[u,n,l];case 2:return[l,n,i];case 3:return[l,u,n];case 4:return[i,l,n];case 5:return[n,l,u]}},u.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,l;l=(2-r)*n;const u=(2-r)*a;return o=r*a,o/=u<=1?u:2-u,o=o||0,l/=2,[t,100*o,100*l]},u.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let o;a>1&&(r/=a,n/=a);const l=Math.floor(6*t),u=1-n;o=6*t-l,1&l&&(o=1-o);const i=r+o*(u-r);let s,c,h;switch(l){default:case 6:case 0:s=u,c=i,h=r;break;case 1:s=i,c=u,h=r;break;case 2:s=r,c=u,h=i;break;case 3:s=r,c=i,h=u;break;case 4:s=i,c=r,h=u;break;case 5:s=u,c=r,h=i}return[255*s,255*c,255*h]},u.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},u.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},u.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},u.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},u.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360);return[t,Math.sqrt(r*r+n*n),a]},u.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},u.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let o=null===t?u.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(l+=60),l},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},u.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},u.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},u.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o;let u,i;return u=l<1?o/(1-l):0,i=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,i/=6,i%=1,[360*i,100*l,100*u]},u.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},u.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const a=[0,0,0],o=t%1*6,l=o%1,u=1-l;let i=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},u.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},u.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let r=t.length,n=0;n1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,a=0;a{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach((r=>{const n=t[r];O[e][r]=st(n),O[e][r].raw=at(n)}))}));var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if("number"==typeof e)return e;if(yt(e))return se;if(ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pt(e);var r=wt.test(e);return r||kt.test(e)?_t(e.slice(2),r?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,r){var n,a,o,l,u,i,s=0,c=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError($t);function d(t){var r=n,o=a;return n=a=void 0,s=t,l=e.apply(o,r)}function g(e){var r=e-i;return void 0===i||r>=t||r<0||h&&e-s>=o}function b(){var e=D();if(g(e))return v(e);u=setTimeout(b,function(e){var r=t-(e-i);return h?Ot(r,o-(e-s)):r}(e))}function v(e){return u=void 0,f&&n?d(e):(n=a=void 0,l)}function p(){var e=D(),r=g(e);if(n=arguments,a=this,i=e,r){if(void 0===u)return function(e){return s=e,u=setTimeout(b,t),c?d(e):l}(i);if(h)return clearTimeout(u),u=setTimeout(b,t),d(i)}return void 0===u&&(u=setTimeout(b,t)),l}return t=le(t)||0,Ct(r)&&(c=!!r.leading,o=(h="maxWait"in r)?Nt(le(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),p.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=i=a=u=void 0},p.flush=function(){return void 0===u?l:v(D())},p}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(jt);return Tt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Rt(e,t,{leading:n,maxWait:t,trailing:a})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)((({theme:e})=>({fontFamily:e.typography.fonts.base}))),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div((({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius}))),Dt='url(\'data:image/svg+xml;charset=utf-8,\')',ie=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},Kt=M(Ce.Input)((({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base}))),Vt=M($e)((({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color}))),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=null==e?void 0:e.match(At);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.rgb.hsl([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([r,n,a]),colorSpace:"rgb",rgb:e,hsl:`hsla(${l}, ${u}%, ${i}%, ${o})`,hex:`#${w.rgb.hex([r,n,a]).toLowerCase()}`}}if(Ut.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.hsl.rgb([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([r,n,a]),colorSpace:"hsl",rgb:`rgba(${l}, ${u}, ${i}, ${o})`,hsl:e,hex:`#${w.hsl.hex([r,n,a]).toLowerCase()}`}}let r=e.replace("#",""),n=w.keyword.rgb(r)||w.hex.rgb(r),a=w.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:Y.test(e)&&(o=`#${r}`),o.startsWith("#"))t=Y.test(o);else try{w.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:w.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},Qt=(e,t,r)=>{if(!e||null==t||!t.valid)return L[r];if("hex"!==r)return(null==t?void 0:t[r])||L[r];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let n=t.hex.match(Yt);if(!n)return Y.test(t.hex)?t.hex:L.hex;let[a,o,l]=n[1].split("");return`#${a}${a}${o}${o}${l}${l}`},Zt=(e,t)=>{let[r,n]=b.useState(e||""),[a,o]=b.useState((()=>I(r))),[l,u]=b.useState((null==a?void 0:a.colorSpace)||"hex");b.useEffect((()=>{let t=e||"",r=I(t);n(t),o(r),u((null==r?void 0:r.colorSpace)||"hex")}),[e]);let i=b.useMemo((()=>Qt(r,a,l).toLowerCase()),[r,a,l]),s=b.useCallback((e=>{let r=I(e),a=(null==r?void 0:r.value)||e||"";n(a),""===a&&(o(void 0),t(void 0)),r&&(o(r),u(r.colorSpace),t(r.value))}),[t]),c=b.useCallback((()=>{let e=P.indexOf(l)+1;e>=P.length&&(e=0),u(P[e]);let r=(null==a?void 0:a[P[e]])||"";n(r),t(r)}),[a,l,t]);return{value:r,realValue:i,updateValue:s,color:a,colorSpace:l,cycleColorSpace:c}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,r)=>{let[n,a]=b.useState(null!=t&&t.valid?[t]:[]);b.useEffect((()=>{void 0===t&&a([])}),[t]);let o=b.useMemo((()=>(e||[]).map((e=>"string"==typeof e?I(e):e.title?{...I(e.color),keyword:e.title}:I(e.color))).concat(n).filter(Boolean).slice(-27)),[e,n]),l=b.useCallback((e=>{null!=e&&e.valid&&(o.some((t=>W(t[r])===W(e[r])))||a((t=>t.concat(e))))}),[r,o]);return{presets:o,addPreset:l}},tn=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:l=!1})=>{let u=b.useCallback(Ht(r,200),[r]),{value:i,realValue:s,updateValue:c,color:f,colorSpace:d,cycleColorSpace:g}=Zt(t,u),{presets:v,addPreset:p}=en(o,f,d),m=Jt[d];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>p(f),tooltip:h.createElement(qt,null,h.createElement(m,{color:"transparent"===s?"#000000":s,onChange:c,onFocus:n,onBlur:a}),v.length>0&&h.createElement(Wt,null,v.map(((e,t)=>h.createElement(ue,{key:`${e.value}-${t}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:e.keyword||e.value})},h.createElement(ie,{value:e[d],active:f&&W(e[d])===W(f[d]),onClick:()=>c(e.value)}))))))},h.createElement(ie,{value:s,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:e=>c(e.target.value),onFocus:e=>e.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:g}):null)},bn=tn;export{tn as ColorControl,bn as default}; \ No newline at end of file diff --git a/storybook-static/assets/CommentList-Bj5bfA7I.js b/storybook-static/assets/CommentList-BBX0RN0p.js similarity index 98% rename from storybook-static/assets/CommentList-Bj5bfA7I.js rename to storybook-static/assets/CommentList-BBX0RN0p.js index 285bbaca68..5e0a893437 100644 --- a/storybook-static/assets/CommentList-Bj5bfA7I.js +++ b/storybook-static/assets/CommentList-BBX0RN0p.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as q}from"./index-BP8_t0zE.js";import{B as E}from"./Button-CNNOBp5d.js";import{B as j}from"./ButtonShowReplies-DcHOTq7t.js";import{C as L}from"./CommentItem-Do_1XjZl.js";import{C as v}from"./CreateReply-CKFS6XGy.js";import{n as S}from"./DiscussionTitle-BShaVqYD.js";import{I as w}from"./Icon-Cocq8Wc0.js";import{F as R,a as _}from"./theme-ui-components.esm-BngKL4Rx.js";const V=10,I=n=>{const[t,i]=q.useState(!1),{comment:l,handleDelete:o,handleEditRequest:s,handleEdit:d,supportReplies:a,isLoggedIn:m,isReplies:r,maxLength:u,onSubmitReply:p}=n,{_id:c,_deleted:h,replies:g}=l,y=()=>e.jsx(j,{isShowReplies:t,replies:g||[],setIsShowReplies:()=>i(!t)});return!h||g&&0!==S(g)?e.jsxs(_,{sx:{backgroundColor:"white",borderRadius:1,padding:r?0:2},children:[e.jsx(L,{comment:l,handleEditRequest:s,handleDelete:o,handleEdit:d,isReply:!!r}),a&&!t&&y(),a&&t?e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"row"},children:[g&&e.jsx(_,{sx:{paddingTop:1,paddingRight:2},children:e.jsx(w,{glyph:"arrow-curved-bottom-right"})}),e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"column",flex:1},children:[e.jsx(b,{comments:g||[],handleDelete:o,handleEdit:d,handleEditRequest:s,isLoggedIn:m,isReplies:!0,maxLength:u,supportReplies:!1}),!h&&(()=>{if(p)return e.jsx(v,{commentId:c,isLoggedIn:m,maxLength:u,onSubmit:p})})(),y()]})]}):null]}):null},b=n=>{const{comments:t,handleDelete:i,handleEdit:l,handleEditRequest:o,highlightedCommentId:s,isLoggedIn:d,isReplies:a,maxLength:m,onMoreComments:r,onSubmitReply:u,supportReplies:p=!1}=n,[c,h]=q.useState(1),g=c*V;return q.useEffect((()=>{if(!s)return;const e=t.findIndex((e=>s.includes(e._id)));e>=0&&(h(Math.floor(e/V)+1),(e=>{setTimeout((()=>{var n;null==(n=document.getElementById(`comment:${e}`))||n.scrollIntoView({behavior:"smooth",block:"start"})}),0)})(s))}),[s,t]),e.jsxs(R,{sx:{gap:2,flexDirection:"column"},children:[t&&t.slice(0,g).map((n=>e.jsx(_,{"data-testid":"CommentList: item",sx:{border:""+(s===n._id?"2px dashed black":"none"),borderRadius:1},children:e.jsx(I,{comment:n,handleEditRequest:o,handleDelete:i,handleEdit:l,isLoggedIn:d,isReplies:a,maxLength:m,onSubmitReply:u,supportReplies:p})},n._id))),t&&t.length>g&&e.jsx(R,{children:e.jsx(E,{type:"button",sx:{margin:"0 auto"},variant:"outline","data-cy":"show-more-comments",onClick:()=>{r&&r(),h(c+1)},children:"show more comments"})})]})};try{I.displayName="CommentContainer",I.__docgenInfo={description:"",displayName:"CommentContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleCommentReply:{defaultValue:null,description:"",name:"handleCommentReply",required:!1,type:{name:"((commentId: string | null) => void)"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!0,type:{name:"boolean"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}try{b.displayName="CommentList",b.__docgenInfo={description:"",displayName:"CommentList",props:{supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!1,type:{name:"(() => void)"}},setCommentBeingRepliedTo:{defaultValue:null,description:"",name:"setCommentBeingRepliedTo",required:!1,type:{name:"((commentId: string | null) => void)"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}export{b as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as q}from"./index-BP8_t0zE.js";import{B as E}from"./Button-CNNOBp5d.js";import{B as j}from"./ButtonShowReplies-DcHOTq7t.js";import{C as L}from"./CommentItem-Do_1XjZl.js";import{C as v}from"./CreateReply-DUkENyaH.js";import{n as S}from"./DiscussionTitle-BShaVqYD.js";import{I as w}from"./Icon-Cocq8Wc0.js";import{F as R,a as _}from"./theme-ui-components.esm-BngKL4Rx.js";const V=10,I=n=>{const[t,i]=q.useState(!1),{comment:l,handleDelete:o,handleEditRequest:s,handleEdit:d,supportReplies:a,isLoggedIn:m,isReplies:r,maxLength:u,onSubmitReply:p}=n,{_id:c,_deleted:h,replies:g}=l,y=()=>e.jsx(j,{isShowReplies:t,replies:g||[],setIsShowReplies:()=>i(!t)});return!h||g&&0!==S(g)?e.jsxs(_,{sx:{backgroundColor:"white",borderRadius:1,padding:r?0:2},children:[e.jsx(L,{comment:l,handleEditRequest:s,handleDelete:o,handleEdit:d,isReply:!!r}),a&&!t&&y(),a&&t?e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"row"},children:[g&&e.jsx(_,{sx:{paddingTop:1,paddingRight:2},children:e.jsx(w,{glyph:"arrow-curved-bottom-right"})}),e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"column",flex:1},children:[e.jsx(b,{comments:g||[],handleDelete:o,handleEdit:d,handleEditRequest:s,isLoggedIn:m,isReplies:!0,maxLength:u,supportReplies:!1}),!h&&(()=>{if(p)return e.jsx(v,{commentId:c,isLoggedIn:m,maxLength:u,onSubmit:p})})(),y()]})]}):null]}):null},b=n=>{const{comments:t,handleDelete:i,handleEdit:l,handleEditRequest:o,highlightedCommentId:s,isLoggedIn:d,isReplies:a,maxLength:m,onMoreComments:r,onSubmitReply:u,supportReplies:p=!1}=n,[c,h]=q.useState(1),g=c*V;return q.useEffect((()=>{if(!s)return;const e=t.findIndex((e=>s.includes(e._id)));e>=0&&(h(Math.floor(e/V)+1),(e=>{setTimeout((()=>{var n;null==(n=document.getElementById(`comment:${e}`))||n.scrollIntoView({behavior:"smooth",block:"start"})}),0)})(s))}),[s,t]),e.jsxs(R,{sx:{gap:2,flexDirection:"column"},children:[t&&t.slice(0,g).map((n=>e.jsx(_,{"data-testid":"CommentList: item",sx:{border:""+(s===n._id?"2px dashed black":"none"),borderRadius:1},children:e.jsx(I,{comment:n,handleEditRequest:o,handleDelete:i,handleEdit:l,isLoggedIn:d,isReplies:a,maxLength:m,onSubmitReply:u,supportReplies:p})},n._id))),t&&t.length>g&&e.jsx(R,{children:e.jsx(E,{type:"button",sx:{margin:"0 auto"},variant:"outline","data-cy":"show-more-comments",onClick:()=>{r&&r(),h(c+1)},children:"show more comments"})})]})};try{I.displayName="CommentContainer",I.__docgenInfo={description:"",displayName:"CommentContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleCommentReply:{defaultValue:null,description:"",name:"handleCommentReply",required:!1,type:{name:"((commentId: string | null) => void)"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!0,type:{name:"boolean"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}try{b.displayName="CommentList",b.__docgenInfo={description:"",displayName:"CommentList",props:{supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!1,type:{name:"(() => void)"}},setCommentBeingRepliedTo:{defaultValue:null,description:"",name:"setCommentBeingRepliedTo",required:!1,type:{name:"((commentId: string | null) => void)"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}export{b as C}; \ No newline at end of file diff --git a/storybook-static/assets/CommentList.stories-BkMfDEi5.js b/storybook-static/assets/CommentList.stories-BISN_9SH.js similarity index 96% rename from storybook-static/assets/CommentList.stories-BkMfDEi5.js rename to storybook-static/assets/CommentList.stories-BISN_9SH.js index 52c4d189cd..7e459e467b 100644 --- a/storybook-static/assets/CommentList.stories-BkMfDEi5.js +++ b/storybook-static/assets/CommentList.stories-BISN_9SH.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{c as p,f as e}from"./utils-BRZF2j4e.js";import{C as o}from"./CommentList-Bj5bfA7I.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./DiscussionTitle-BShaVqYD.js";import"./CommentItem-Do_1XjZl.js";import"./ConfirmModal-nn9TD5JG.js";import"./Modal-DXxaFBTe.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-6lOgCKow.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DoS6A2RY.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-oZDGU0lI.js";import"./CharacterCount-CVY3hBeQ.js";import"./LinkifyText-DWykfnAH.js";import"./ExternalLink-DC09teyd.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-CQ-1if_X.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./UserBadge-XI2JdGOl.js";import"./CreateReply-CKFS6XGy.js";import"./CreateComment-CRTPmJDx.js";import"./MemberBadge-BvLli4rf.js";const Le={title:"Discussions/CommentList",component:o},m=()=>s.jsx(o,{comments:p(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),r=()=>s.jsx(o,{comments:p(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),i=()=>{const t=[e({replies:[e(),e()]}),e({creatorImage:"https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840",replies:[e({creatorImage:"https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4"})],_deleted:!0}),e({replies:[e()]}),e()];return s.jsx(o,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=()=>{const t=[e({replies:[e(),e()]}),e(),e()];return s.jsx(o,{supportReplies:!0,comments:t,isLoggedIn:!0,isReplies:!1,maxLength:800,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},a=()=>{const t=[e({replies:[e({replies:[e()]})]})];return s.jsx(o,{supportReplies:!0,isLoggedIn:!0,isReplies:!1,maxLength:800,comments:t,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},d=p(20,{isEditable:!1}),l=()=>s.jsx(o,{comments:d,highlightedCommentId:d[d.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null});var c,h,u,g,C,v,f,P,R,L,E,x,k,I,M,D,q,b;m.parameters={...m.parameters,docs:{...null==(c=m.parameters)?void 0:c.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(u=null==(h=m.parameters)?void 0:h.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(v=null==(C=r.parameters)?void 0:C.docs)?void 0:v.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment({\n creatorImage: 'https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840',\n replies: [fakeComment({\n creatorImage: 'https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4'\n })],\n _deleted: true\n }), fakeComment({\n replies: [fakeComment()]\n }), fakeComment()];\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => Promise.resolve()} onSubmitReply={() => Promise.resolve()} />;\n}",...null==(R=null==(P=i.parameters)?void 0:P.docs)?void 0:R.source}}},n.parameters={...n.parameters,docs:{...null==(L=n.parameters)?void 0:L.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment(), fakeComment()];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(x=null==(E=n.parameters)?void 0:E.docs)?void 0:x.source}}},a.parameters={...a.parameters,docs:{...null==(k=a.parameters)?void 0:k.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment({\n replies: [fakeComment()]\n })]\n })];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(M=null==(I=a.parameters)?void 0:I.docs)?void 0:M.source}}},l.parameters={...l.parameters,docs:{...null==(D=l.parameters)?void 0:D.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(b=null==(q=l.parameters)?void 0:q.docs)?void 0:b.source}}};const Ee=["Default","Expandable","WithNestedComments","WithNestedCommentsAndReplies","WithNestedCommentsAndRepliesMaxDepthTwo","Highlighted"];export{m as Default,r as Expandable,l as Highlighted,i as WithNestedComments,n as WithNestedCommentsAndReplies,a as WithNestedCommentsAndRepliesMaxDepthTwo,Ee as __namedExportsOrder,Le as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{c as p,f as e}from"./utils-BRZF2j4e.js";import{C as o}from"./CommentList-BBX0RN0p.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./DiscussionTitle-BShaVqYD.js";import"./CommentItem-Do_1XjZl.js";import"./ConfirmModal-nn9TD5JG.js";import"./Modal-DXxaFBTe.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-6lOgCKow.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DoS6A2RY.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-oZDGU0lI.js";import"./CharacterCount-CVY3hBeQ.js";import"./LinkifyText-DWykfnAH.js";import"./ExternalLink-DC09teyd.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-CQ-1if_X.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./UserBadge-XI2JdGOl.js";import"./CreateReply-DUkENyaH.js";import"./CreateComment-BaAFFVqP.js";import"./MemberBadge-CEGEtBDf.js";const Le={title:"Discussions/CommentList",component:o},m=()=>s.jsx(o,{comments:p(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),r=()=>s.jsx(o,{comments:p(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),i=()=>{const t=[e({replies:[e(),e()]}),e({creatorImage:"https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840",replies:[e({creatorImage:"https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4"})],_deleted:!0}),e({replies:[e()]}),e()];return s.jsx(o,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=()=>{const t=[e({replies:[e(),e()]}),e(),e()];return s.jsx(o,{supportReplies:!0,comments:t,isLoggedIn:!0,isReplies:!1,maxLength:800,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},a=()=>{const t=[e({replies:[e({replies:[e()]})]})];return s.jsx(o,{supportReplies:!0,isLoggedIn:!0,isReplies:!1,maxLength:800,comments:t,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},d=p(20,{isEditable:!1}),l=()=>s.jsx(o,{comments:d,highlightedCommentId:d[d.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null});var c,h,u,g,C,v,f,P,R,L,E,x,k,I,M,D,q,b;m.parameters={...m.parameters,docs:{...null==(c=m.parameters)?void 0:c.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(u=null==(h=m.parameters)?void 0:h.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(v=null==(C=r.parameters)?void 0:C.docs)?void 0:v.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment({\n creatorImage: 'https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840',\n replies: [fakeComment({\n creatorImage: 'https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4'\n })],\n _deleted: true\n }), fakeComment({\n replies: [fakeComment()]\n }), fakeComment()];\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => Promise.resolve()} onSubmitReply={() => Promise.resolve()} />;\n}",...null==(R=null==(P=i.parameters)?void 0:P.docs)?void 0:R.source}}},n.parameters={...n.parameters,docs:{...null==(L=n.parameters)?void 0:L.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment(), fakeComment()];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(x=null==(E=n.parameters)?void 0:E.docs)?void 0:x.source}}},a.parameters={...a.parameters,docs:{...null==(k=a.parameters)?void 0:k.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment({\n replies: [fakeComment()]\n })]\n })];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(M=null==(I=a.parameters)?void 0:I.docs)?void 0:M.source}}},l.parameters={...l.parameters,docs:{...null==(D=l.parameters)?void 0:D.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(b=null==(q=l.parameters)?void 0:q.docs)?void 0:b.source}}};const Ee=["Default","Expandable","WithNestedComments","WithNestedCommentsAndReplies","WithNestedCommentsAndRepliesMaxDepthTwo","Highlighted"];export{m as Default,r as Expandable,l as Highlighted,i as WithNestedComments,n as WithNestedCommentsAndReplies,a as WithNestedCommentsAndRepliesMaxDepthTwo,Ee as __namedExportsOrder,Le as default}; \ No newline at end of file diff --git a/storybook-static/assets/CreateComment-CRTPmJDx.js b/storybook-static/assets/CreateComment-BaAFFVqP.js similarity index 80% rename from storybook-static/assets/CreateComment-CRTPmJDx.js rename to storybook-static/assets/CreateComment-BaAFFVqP.js index 2ab27fa168..dc49454655 100644 --- a/storybook-static/assets/CreateComment-CRTPmJDx.js +++ b/storybook-static/assets/CreateComment-BaAFFVqP.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{s as C}from"./contact-DD4r1-LP.js";import{M as V}from"./MemberBadge-BvLli4rf.js";import{L as k}from"./components-CyP20DXM.js";import{F as r,a as i,b as q,T as s,B as w,I}from"./theme-ui-components.esm-BngKL4Rx.js";const g=n=>{const[a,t]=v.useState(!1),{comment:l,isLoggedIn:o,isReply:d,maxLength:m,onSubmit:u,isLoading:c}=n,p=n.userProfileType||"member",g=n.placeholder||"Leave your questions or feedback...",x=n.buttonLabel??"Leave a comment",h=({parentNode:e,value:a})=>{e.dataset.replicatedValue=a,null==n||n.onChange(a)},b=l.length>0||a;return e.jsx(r,{sx:{flexDirection:"column"},children:e.jsxs(r,{"data-target":"create-comment-container",sx:{gap:2},children:[e.jsx(i,{sx:{lineHeight:0,display:["none","block"],flexShrink:0},children:e.jsx(V,{profileType:p,useLowDetailVersion:!0})}),e.jsxs(i,{sx:{display:"block",background:"white",flex:1,marginLeft:[0,3],borderRadius:1,position:"relative",width:"min-content","&:before":{display:["none","block"],content:'""',position:"absolute",borderWidth:"1em 1em",borderStyle:"solid",borderColor:"transparent white transparent transparent",margin:".5em -2em"}},children:[!o&&e.jsx(S,{}),o&&e.jsxs(r,{sx:{flexDirection:"column"},children:[e.jsx(i,{className:"grow-wrap "+(b?"value-set":""),children:e.jsx(q,{value:l,maxLength:m,onChange:e=>{h&&h(e.target)},"aria-label":"Comment","data-cy":d?"reply-form":"comments-form",placeholder:g,rows:1,onFocus:()=>t(!0),onBlur:()=>t(!1)})}),e.jsxs(s,{sx:{fontSize:1,display:b?"flex":"none",alignSelf:"flex-end",padding:2},children:[l.length,"/",m]})]})]}),e.jsx(r,{sx:{alignSelf:"flex-end",height:["40px","52px"],width:["40px","auto"]},children:e.jsxs(w,{"data-cy":d?"reply-submit":"comment-submit","data-testid":"send-comment-button",disabled:!l.trim()||!o||c,variant:"primary",onClick:()=>{!c&&u(l)},sx:{height:["40px","100%"],width:["40px","auto"],padding:[0,1]},children:[c&&"Loading...",!c&&e.jsxs(e.Fragment,{children:[e.jsx(s,{sx:{display:["none","block"]},children:x}),e.jsx(I,{src:C,sx:{display:["block","none"],width:"22px",margin:"auto"}})]})]})})]})})},S=()=>e.jsx(i,{sx:{padding:[3,4]},children:e.jsx(s,{"data-cy":"comments-login-prompt",children:e.jsx(k,{to:"/sign-in",style:{textDecoration:"underline",color:"inherit"},children:"Hi there! Login to leave a comment"})})});try{g.displayName="CreateComment",g.__docgenInfo={description:"",displayName:"CreateComment",props:{maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!1,type:{name:"boolean"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(value: string) => void"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},userProfileType:{defaultValue:null,description:"",name:"userProfileType",required:!1,type:{name:"enum",value:[{value:'"space"'},{value:'"member"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},buttonLabel:{defaultValue:null,description:"",name:"buttonLabel",required:!1,type:{name:"string"}}}}}catch{}export{g as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{s as C}from"./contact-DD4r1-LP.js";import{M as V}from"./MemberBadge-CEGEtBDf.js";import{L as k}from"./components-CyP20DXM.js";import{F as r,a as i,b as q,T as s,B as w,I}from"./theme-ui-components.esm-BngKL4Rx.js";const g=n=>{const[a,t]=v.useState(!1),{comment:o,isLoggedIn:l,isReply:d,maxLength:m,onSubmit:u,isLoading:c}=n,p=n.userProfileType||"member",g=n.placeholder||"Leave your questions or feedback...",x=n.buttonLabel??"Leave a comment",h=({parentNode:e,value:a})=>{e.dataset.replicatedValue=a,null==n||n.onChange(a)},b=o.length>0||a;return e.jsx(r,{sx:{flexDirection:"column"},children:e.jsxs(r,{"data-target":"create-comment-container",sx:{gap:2},children:[e.jsx(i,{sx:{lineHeight:0,display:["none","block"],flexShrink:0},children:e.jsx(V,{profileType:p,useLowDetailVersion:!0})}),e.jsxs(i,{sx:{display:"block",background:"white",flex:1,marginLeft:[0,3],borderRadius:1,position:"relative",width:"min-content","&:before":{display:["none","block"],content:'""',position:"absolute",borderWidth:"1em 1em",borderStyle:"solid",borderColor:"transparent white transparent transparent",margin:".5em -2em"}},children:[!l&&e.jsx(S,{}),l&&e.jsxs(r,{sx:{flexDirection:"column"},children:[e.jsx(i,{className:"grow-wrap "+(b?"value-set":""),children:e.jsx(q,{value:o,maxLength:m,onChange:e=>{h&&h(e.target)},"aria-label":"Comment","data-cy":d?"reply-form":"comments-form",placeholder:g,rows:1,onFocus:()=>t(!0),onBlur:()=>t(!1)})}),e.jsxs(s,{sx:{fontSize:1,display:b?"flex":"none",alignSelf:"flex-end",padding:2},children:[o.length,"/",m]})]})]}),e.jsx(r,{sx:{alignSelf:"flex-end",height:["40px","52px"],width:["40px","auto"]},children:e.jsxs(w,{"data-cy":d?"reply-submit":"comment-submit","data-testid":"send-comment-button",disabled:!o.trim()||!l||c,variant:"primary",onClick:()=>{!c&&u(o)},sx:{height:["40px","100%"],width:["40px","auto"],padding:[0,1]},children:[c&&"Loading...",!c&&e.jsxs(e.Fragment,{children:[e.jsx(s,{sx:{display:["none","block"]},children:x}),e.jsx(I,{src:C,sx:{display:["block","none"],width:"22px",margin:"auto"}})]})]})})]})})},S=()=>e.jsx(i,{sx:{padding:[3,4]},children:e.jsx(s,{"data-cy":"comments-login-prompt",children:e.jsx(k,{to:"/sign-in",style:{textDecoration:"underline",color:"inherit"},children:"Hi there! Login to leave a comment"})})});try{g.displayName="CreateComment",g.__docgenInfo={description:"",displayName:"CreateComment",props:{maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!1,type:{name:"boolean"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(value: string) => void"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},userProfileType:{defaultValue:null,description:"",name:"userProfileType",required:!1,type:{name:"enum",value:[{value:'"member"'},{value:'"space"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},buttonLabel:{defaultValue:null,description:"",name:"buttonLabel",required:!1,type:{name:"string"}}}}}catch{}export{g as C}; \ No newline at end of file diff --git a/storybook-static/assets/CreateComment.stories-Vloy1ZbD.js b/storybook-static/assets/CreateComment.stories-qEM5jg6T.js similarity index 91% rename from storybook-static/assets/CreateComment.stories-Vloy1ZbD.js rename to storybook-static/assets/CreateComment.stories-qEM5jg6T.js index f796e99f9d..5cc182cbe2 100644 --- a/storybook-static/assets/CreateComment.stories-Vloy1ZbD.js +++ b/storybook-static/assets/CreateComment.stories-qEM5jg6T.js @@ -1 +1 @@ -import{j as u}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{C as s}from"./CreateComment-CRTPmJDx.js";import"./contact-DD4r1-LP.js";import"./MemberBadge-BvLli4rf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const A={title:"Discussions/CreateComment",component:s},i=()=>{const[e,i]=a.useState("");return u.jsx(s,{comment:e,onChange:i,onSubmit:()=>null,userProfileType:"member",maxLength:1e3,isLoggedIn:!0})},o=()=>{const[e,i]=a.useState("");return u.jsx(s,{comment:e,onChange:i,onSubmit:()=>null,userProfileType:"member",maxLength:123,isLoggedIn:!1})},n=()=>{const[e,i]=a.useState("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.");return u.jsx(s,{comment:e,onChange:i,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})},m=()=>{const[e,i]=a.useState("");return u.jsx(s,{comment:e,placeholder:"Custom placeholder",onChange:i,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})};var r,l,c,d,p,g,f,C,b,h,v,S;i.parameters={...i.parameters,docs:{...null==(r=i.parameters)?void 0:r.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={1000} isLoggedIn={true} />;\n}",...null==(c=null==(l=i.parameters)?void 0:l.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={123} isLoggedIn={false} />;\n}",...null==(g=null==(p=o.parameters)?void 0:p.docs)?void 0:g.source}}},n.parameters={...n.parameters,docs:{...null==(f=n.parameters)?void 0:f.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.`);\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(b=null==(C=n.parameters)?void 0:C.docs)?void 0:b.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(\'\');\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(S=null==(v=m.parameters)?void 0:v.docs)?void 0:S.source}}};const Q=["Default","LoggedOut","WithLongComment","WithCustomPlaceholder"];export{i as Default,o as LoggedOut,m as WithCustomPlaceholder,n as WithLongComment,Q as __namedExportsOrder,A as default}; \ No newline at end of file +import{j as u}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{C as s}from"./CreateComment-BaAFFVqP.js";import"./contact-DD4r1-LP.js";import"./MemberBadge-CEGEtBDf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const A={title:"Discussions/CreateComment",component:s},i=()=>{const[e,t]=a.useState("");return u.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:1e3,isLoggedIn:!0})},o=()=>{const[e,t]=a.useState("");return u.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:123,isLoggedIn:!1})},n=()=>{const[e,t]=a.useState("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.");return u.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})},m=()=>{const[e,t]=a.useState("");return u.jsx(s,{comment:e,placeholder:"Custom placeholder",onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})};var r,l,c,d,p,g,f,C,b,h,v,S;i.parameters={...i.parameters,docs:{...null==(r=i.parameters)?void 0:r.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={1000} isLoggedIn={true} />;\n}",...null==(c=null==(l=i.parameters)?void 0:l.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={123} isLoggedIn={false} />;\n}",...null==(g=null==(p=o.parameters)?void 0:p.docs)?void 0:g.source}}},n.parameters={...n.parameters,docs:{...null==(f=n.parameters)?void 0:f.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.`);\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(b=null==(C=n.parameters)?void 0:C.docs)?void 0:b.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(\'\');\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(S=null==(v=m.parameters)?void 0:v.docs)?void 0:S.source}}};const Q=["Default","LoggedOut","WithLongComment","WithCustomPlaceholder"];export{i as Default,o as LoggedOut,m as WithCustomPlaceholder,n as WithLongComment,Q as __namedExportsOrder,A as default}; \ No newline at end of file diff --git a/storybook-static/assets/CreateReply-CKFS6XGy.js b/storybook-static/assets/CreateReply-DUkENyaH.js similarity index 94% rename from storybook-static/assets/CreateReply-CKFS6XGy.js rename to storybook-static/assets/CreateReply-DUkENyaH.js index d2a24d1fc4..f3e9b12a13 100644 --- a/storybook-static/assets/CreateReply-CKFS6XGy.js +++ b/storybook-static/assets/CreateReply-DUkENyaH.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r}from"./index-BP8_t0zE.js";import{C as f}from"./CreateComment-CRTPmJDx.js";import{a as b,A as x}from"./theme-ui-components.esm-BngKL4Rx.js";const i=e=>{const[n,a]=r.useState(""),[i,m]=r.useState(!1),[o,s]=r.useState(!1),{commentId:l,isLoggedIn:d,maxLength:u,onSubmit:p}=e;return t.jsxs(b,{sx:{background:"softblue",borderRadius:2,marginBottom:3,padding:3},children:[t.jsx(f,{maxLength:u,comment:n,onChange:e=>a(e),onSubmit:async()=>{m(!0);try{await p(l,n),a(""),m(!1)}catch{m(!1),s(!0)}},isLoggedIn:d,isLoading:i,isReply:!0,buttonLabel:"Leave a reply"}),o?t.jsx(x,{variant:"failure",sx:{mt:3},children:"Unable to leave a comment at this time. Please try again later."}):null]})};try{i.displayName="CreateReply",i.__docgenInfo={description:"",displayName:"CreateReply",props:{commentId:{defaultValue:null,description:"",name:"commentId",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(_id: string, reply: string) => Promise"}}}}}catch{}export{i as C}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r}from"./index-BP8_t0zE.js";import{C as f}from"./CreateComment-BaAFFVqP.js";import{a as b,A as x}from"./theme-ui-components.esm-BngKL4Rx.js";const i=e=>{const[n,a]=r.useState(""),[i,m]=r.useState(!1),[o,s]=r.useState(!1),{commentId:l,isLoggedIn:d,maxLength:u,onSubmit:p}=e;return t.jsxs(b,{sx:{background:"softblue",borderRadius:2,marginBottom:3,padding:3},children:[t.jsx(f,{maxLength:u,comment:n,onChange:e=>a(e),onSubmit:async()=>{m(!0);try{await p(l,n),a(""),m(!1)}catch{m(!1),s(!0)}},isLoggedIn:d,isLoading:i,isReply:!0,buttonLabel:"Leave a reply"}),o?t.jsx(x,{variant:"failure",sx:{mt:3},children:"Unable to leave a comment at this time. Please try again later."}):null]})};try{i.displayName="CreateReply",i.__docgenInfo={description:"",displayName:"CreateReply",props:{commentId:{defaultValue:null,description:"",name:"commentId",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(_id: string, reply: string) => Promise"}}}}}catch{}export{i as C}; \ No newline at end of file diff --git a/storybook-static/assets/CreateReply.stories-C8zav62j.js b/storybook-static/assets/CreateReply.stories-Cx-BkQze.js similarity index 91% rename from storybook-static/assets/CreateReply.stories-C8zav62j.js rename to storybook-static/assets/CreateReply.stories-Cx-BkQze.js index 99fe386a42..5be3e6bd1a 100644 --- a/storybook-static/assets/CreateReply.stories-C8zav62j.js +++ b/storybook-static/assets/CreateReply.stories-Cx-BkQze.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as t}from"./CreateReply-CKFS6XGy.js";import"./index-BP8_t0zE.js";import"./CreateComment-CRTPmJDx.js";import"./contact-DD4r1-LP.js";import"./MemberBadge-BvLli4rf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const W={title:"Discussions/CreateReply",component:t},e=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),r=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()}),o=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:async()=>Promise.reject(new Error("Error!"))});var m,n,a,i,p,c,u,g,d;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(a=null==(n=e.parameters)?void 0:n.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(i=r.parameters)?void 0:i.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(c=null==(p=r.parameters)?void 0:p.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(u=o.parameters)?void 0:u.docs,source:{originalSource:"() => {\n return {\n return Promise.reject(new Error('Error!'));\n }} />;\n}",...null==(d=null==(g=o.parameters)?void 0:g.docs)?void 0:d.source}}};const O=["Default","LoggedIn","LoggedInWithError"];export{e as Default,r as LoggedIn,o as LoggedInWithError,O as __namedExportsOrder,W as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as t}from"./CreateReply-DUkENyaH.js";import"./index-BP8_t0zE.js";import"./CreateComment-BaAFFVqP.js";import"./contact-DD4r1-LP.js";import"./MemberBadge-CEGEtBDf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const W={title:"Discussions/CreateReply",component:t},e=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),r=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()}),o=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:async()=>Promise.reject(new Error("Error!"))});var m,n,a,i,p,c,u,g,d;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(a=null==(n=e.parameters)?void 0:n.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(i=r.parameters)?void 0:i.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(c=null==(p=r.parameters)?void 0:p.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(u=o.parameters)?void 0:u.docs,source:{originalSource:"() => {\n return {\n return Promise.reject(new Error('Error!'));\n }} />;\n}",...null==(d=null==(g=o.parameters)?void 0:g.docs)?void 0:d.source}}};const O=["Default","LoggedIn","LoggedInWithError"];export{e as Default,r as LoggedIn,o as LoggedInWithError,O as __namedExportsOrder,W as default}; \ No newline at end of file diff --git a/storybook-static/assets/DailyMotion-CGllVuHR.js b/storybook-static/assets/DailyMotion-Dz1bzeKy.js similarity index 97% rename from storybook-static/assets/DailyMotion-CGllVuHR.js rename to storybook-static/assets/DailyMotion-Dz1bzeKy.js index 20a057e736..271b728688 100644 --- a/storybook-static/assets/DailyMotion-CGllVuHR.js +++ b/storybook-static/assets/DailyMotion-Dz1bzeKy.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-BP8_t0zE.js";import{u as D,p as O}from"./VideoPlayer-C-s5d2fA.js";function b(e,t){for(var r=0;rn[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of S(t))!T.call(e,o)&&o!==r&&s(e,o,{get:()=>t[o],enumerable:!(n=w(t,o))||n.enumerable});return e},L=(e,t,r)=>(r=null!=e?M(j(e)):{},h(e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),C=e=>h(s({},"__esModule",{value:!0}),e),n=(e,t,r)=>(E(e,"symbol"!=typeof t?t+"":t,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const N="https://api.dmcdn.net/all.js",x="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),n(this,"unmute",(()=>{this.callPlayer("setMuted",!1)})),n(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:t,config:r,onError:n,playing:o}=this.props,[,a]=e.match(f.MATCH_URL_DAILYMOTION);this.player?this.player.load(a,{start:(0,l.parseStartTime)(e),autoplay:o}):(0,l.getSDK)(N,x,K,(e=>e.player)).then((o=>{if(!this.container)return;const s=o.player;this.player=new s(this.container,{width:"100%",height:"100%",video:a,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>n(e)}})}),n)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion"),n(p,"canPlay",f.canPlay.dailymotion),n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; \ No newline at end of file +import{g as P,r as v}from"./index-BP8_t0zE.js";import{u as D,p as O}from"./VideoPlayer-D9RcWkc3.js";function b(e,t){for(var r=0;rn[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of S(t))!T.call(e,o)&&o!==r&&s(e,o,{get:()=>t[o],enumerable:!(n=w(t,o))||n.enumerable});return e},L=(e,t,r)=>(r=null!=e?M(j(e)):{},h(e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),C=e=>h(s({},"__esModule",{value:!0}),e),n=(e,t,r)=>(E(e,"symbol"!=typeof t?t+"":t,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const N="https://api.dmcdn.net/all.js",x="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),n(this,"unmute",(()=>{this.callPlayer("setMuted",!1)})),n(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:t,config:r,onError:n,playing:o}=this.props,[,a]=e.match(f.MATCH_URL_DAILYMOTION);this.player?this.player.load(a,{start:(0,l.parseStartTime)(e),autoplay:o}):(0,l.getSDK)(N,x,K,(e=>e.player)).then((o=>{if(!this.container)return;const s=o.player;this.player=new s(this.container,{width:"100%",height:"100%",video:a,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>n(e)}})}),n)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion"),n(p,"canPlay",f.canPlay.dailymotion),n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; \ No newline at end of file diff --git a/storybook-static/assets/DiscussionContainer-CydYub2w.js b/storybook-static/assets/DiscussionContainer-BZ5clpEB.js similarity index 82% rename from storybook-static/assets/DiscussionContainer-CydYub2w.js rename to storybook-static/assets/DiscussionContainer-BZ5clpEB.js index 0727c25a80..71f00d4bdd 100644 --- a/storybook-static/assets/DiscussionContainer-CydYub2w.js +++ b/storybook-static/assets/DiscussionContainer-BZ5clpEB.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{C as I}from"./CommentList-Bj5bfA7I.js";import{C as _}from"./CreateComment-CRTPmJDx.js";import{D}from"./DiscussionTitle-BShaVqYD.js";import{F as d}from"./theme-ui-components.esm-BngKL4Rx.js";const S=e=>{const n=[],t={};for(const i of e)if(t[i._id]=i,i.parentCommentId){const e=t[i.parentCommentId];if(!e)continue;e.replies||(e.replies=[]),e.replies.push(i)}for(const i of e)i.parentCommentId||n.push(i);return n},p=e=>{const{comment:n,comments:t,handleDelete:i,handleEdit:m,handleEditRequest:s,onSubmitReply:l,highlightedCommentId:r,maxLength:a,onChange:p,onMoreComments:c,onSubmit:g,isLoggedIn:h,isSubmitting:f,supportReplies:C=!1}=e,[y,x]=u.useState(null),b=u.useMemo((()=>S(t)),[t]);return o.jsxs(d,{sx:{flexDirection:"column",gap:2},children:[o.jsx(D,{comments:t}),o.jsx(I,{supportReplies:C,comments:b,handleDelete:i,handleEdit:m,handleEditRequest:s,highlightedCommentId:r,isLoggedIn:h,isReplies:!1,maxLength:a,onMoreComments:c,onSubmitReply:l,setCommentBeingRepliedTo:e=>{x(e!==y?e:null)}}),o.jsx(d,{sx:{alignItems:"stretch",background:"softblue",borderRadius:2,flexDirection:"column",padding:3},children:o.jsx(_,{isLoading:f,maxLength:a,comment:n,onChange:p,onSubmit:g,isLoggedIn:h})})]})};try{p.displayName="DiscussionContainer",p.__docgenInfo={description:"",displayName:"DiscussionContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(comment: string) => void"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(comment: string) => void"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!0,type:{name:"(_id: string, reply: string) => Promise"}},isSubmitting:{defaultValue:null,description:"",name:"isSubmitting",required:!0,type:{name:"boolean"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}}}}}catch{}export{p as D}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{C as I}from"./CommentList-BBX0RN0p.js";import{C as _}from"./CreateComment-BaAFFVqP.js";import{D}from"./DiscussionTitle-BShaVqYD.js";import{F as d}from"./theme-ui-components.esm-BngKL4Rx.js";const S=e=>{const n=[],t={};for(const i of e)if(t[i._id]=i,i.parentCommentId){const e=t[i.parentCommentId];if(!e)continue;e.replies||(e.replies=[]),e.replies.push(i)}for(const i of e)i.parentCommentId||n.push(i);return n},p=e=>{const{comment:n,comments:t,handleDelete:i,handleEdit:m,handleEditRequest:s,onSubmitReply:l,highlightedCommentId:a,maxLength:r,onChange:p,onMoreComments:c,onSubmit:g,isLoggedIn:h,isSubmitting:f,supportReplies:C=!1}=e,[y,q]=u.useState(null),x=u.useMemo((()=>S(t)),[t]);return o.jsxs(d,{sx:{flexDirection:"column",gap:2},children:[o.jsx(D,{comments:t}),o.jsx(I,{supportReplies:C,comments:x,handleDelete:i,handleEdit:m,handleEditRequest:s,highlightedCommentId:a,isLoggedIn:h,isReplies:!1,maxLength:r,onMoreComments:c,onSubmitReply:l,setCommentBeingRepliedTo:e=>{q(e!==y?e:null)}}),o.jsx(d,{sx:{alignItems:"stretch",background:"softblue",borderRadius:2,flexDirection:"column",padding:3},children:o.jsx(_,{isLoading:f,maxLength:r,comment:n,onChange:p,onSubmit:g,isLoggedIn:h})})]})};try{p.displayName="DiscussionContainer",p.__docgenInfo={description:"",displayName:"DiscussionContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(comment: string) => void"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(comment: string) => void"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!0,type:{name:"(_id: string, reply: string) => Promise"}},isSubmitting:{defaultValue:null,description:"",name:"isSubmitting",required:!0,type:{name:"boolean"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}}}}}catch{}export{p as D}; \ No newline at end of file diff --git a/storybook-static/assets/DiscussionContainer.stories-CrnqlCNY.js b/storybook-static/assets/DiscussionContainer.stories-jH87TWN9.js similarity index 95% rename from storybook-static/assets/DiscussionContainer.stories-CrnqlCNY.js rename to storybook-static/assets/DiscussionContainer.stories-jH87TWN9.js index f36cd92a17..89c6583f9c 100644 --- a/storybook-static/assets/DiscussionContainer.stories-CrnqlCNY.js +++ b/storybook-static/assets/DiscussionContainer.stories-jH87TWN9.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{D as e}from"./DiscussionContainer-CydYub2w.js";import"./index-D_kXk1yT.js";import"./CommentList-Bj5bfA7I.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./DiscussionTitle-BShaVqYD.js";import"./CommentItem-Do_1XjZl.js";import"./ConfirmModal-nn9TD5JG.js";import"./Modal-DXxaFBTe.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-6lOgCKow.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DoS6A2RY.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-oZDGU0lI.js";import"./CharacterCount-CVY3hBeQ.js";import"./LinkifyText-DWykfnAH.js";import"./ExternalLink-DC09teyd.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-CQ-1if_X.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./UserBadge-XI2JdGOl.js";import"./CreateReply-CKFS6XGy.js";import"./CreateComment-CRTPmJDx.js";import"./MemberBadge-BvLli4rf.js";const Re={title:"Discussions/DiscussionContainer",component:e},I=a(3),q=a(15),s={render:()=>n.jsx(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},m={render:()=>n.jsx(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},r={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},i={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},l={render:()=>{const[o,s]=u.useState(""),t=a(3);return t[0].replies=a(2),n.jsx(e,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,isSubmitting:!1,onSubmitReply:async(e,o)=>alert(`reply to commentId: ${e} with comment: ${o}`)})}};var d,p,g,h,C,S,v,P,b,f,E,R,x,D,L;s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(g=null==(p=s.parameters)?void 0:p.docs)?void 0:g.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={''} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(S=null==(C=m.parameters)?void 0:C.docs)?void 0:S.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(b=null==(P=r.parameters)?void 0:P.docs)?void 0:b.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(R=null==(E=i.parameters)?void 0:E.docs)?void 0:R.source}}},l.parameters={...l.parameters,docs:{...null==(x=l.parameters)?void 0:x.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n const fakeComments = createFakeComments(3);\n fakeComments[0].replies = createFakeComments(2);\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} isLoggedIn={true} isSubmitting={false} onSubmitReply={async (commentId, comment) => alert(`reply to commentId: ${commentId} with comment: ${comment}`)} />;\n }\n}",...null==(L=null==(D=l.parameters)?void 0:D.docs)?void 0:L.source}}};const xe=["Default","NoComments","LoggedIn","Expandable","WithReplies"];export{s as Default,i as Expandable,r as LoggedIn,m as NoComments,l as WithReplies,xe as __namedExportsOrder,Re as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{D as e}from"./DiscussionContainer-BZ5clpEB.js";import"./index-D_kXk1yT.js";import"./CommentList-BBX0RN0p.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./DiscussionTitle-BShaVqYD.js";import"./CommentItem-Do_1XjZl.js";import"./ConfirmModal-nn9TD5JG.js";import"./Modal-DXxaFBTe.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-6lOgCKow.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DoS6A2RY.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-oZDGU0lI.js";import"./CharacterCount-CVY3hBeQ.js";import"./LinkifyText-DWykfnAH.js";import"./ExternalLink-DC09teyd.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-CQ-1if_X.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./UserBadge-XI2JdGOl.js";import"./CreateReply-DUkENyaH.js";import"./CreateComment-BaAFFVqP.js";import"./MemberBadge-CEGEtBDf.js";const Re={title:"Discussions/DiscussionContainer",component:e},I=a(3),q=a(15),s={render:()=>n.jsx(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},m={render:()=>n.jsx(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},r={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},i={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},l={render:()=>{const[o,s]=u.useState(""),t=a(3);return t[0].replies=a(2),n.jsx(e,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,isSubmitting:!1,onSubmitReply:async(e,o)=>alert(`reply to commentId: ${e} with comment: ${o}`)})}};var d,p,g,h,C,S,v,P,b,f,E,R,x,D,L;s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(g=null==(p=s.parameters)?void 0:p.docs)?void 0:g.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={''} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(S=null==(C=m.parameters)?void 0:C.docs)?void 0:S.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(b=null==(P=r.parameters)?void 0:P.docs)?void 0:b.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(R=null==(E=i.parameters)?void 0:E.docs)?void 0:R.source}}},l.parameters={...l.parameters,docs:{...null==(x=l.parameters)?void 0:x.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n const fakeComments = createFakeComments(3);\n fakeComments[0].replies = createFakeComments(2);\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} isLoggedIn={true} isSubmitting={false} onSubmitReply={async (commentId, comment) => alert(`reply to commentId: ${commentId} with comment: ${comment}`)} />;\n }\n}",...null==(L=null==(D=l.parameters)?void 0:D.docs)?void 0:L.source}}};const xe=["Default","NoComments","LoggedIn","Expandable","WithReplies"];export{s as Default,i as Expandable,r as LoggedIn,m as NoComments,l as WithReplies,xe as __namedExportsOrder,Re as default}; \ No newline at end of file diff --git a/storybook-static/assets/DocsRenderer-NNNQARDV-BeUXSf0N.js b/storybook-static/assets/DocsRenderer-NNNQARDV-B38O8R_S.js similarity index 91% rename from storybook-static/assets/DocsRenderer-NNNQARDV-BeUXSf0N.js rename to storybook-static/assets/DocsRenderer-NNNQARDV-B38O8R_S.js index 779800d665..ce4aa3c16f 100644 --- a/storybook-static/assets/DocsRenderer-NNNQARDV-BeUXSf0N.js +++ b/storybook-static/assets/DocsRenderer-NNNQARDV-B38O8R_S.js @@ -1 +1 @@ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./index-gbZvCw43.js","./index-BP8_t0zE.js"]))=>e.map((e=>r[e]));import{_ as p}from"./iframe-Cbd_NVaI.js";import{a as e,r as c}from"./index-BP8_t0zE.js";import{r as u,u as l}from"./react-18-Bze0iTLm.js";import{C as h,A as E,H as d,D as x}from"./index-DcmRRetP.js";import"../sb-preview/runtime.js";import"./index-BBRV8eG_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var D={code:h,a:E,...d},_=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},k=class{constructor(){this.render=async(t,r,s)=>{let o={...D,...null==r?void 0:r.components},n=x;return new Promise(((i,a)=>{p((async()=>{const{MDXProvider:e}=await import("./index-gbZvCw43.js");return{MDXProvider:e}}),__vite__mapDeps([0,1]),import.meta.url).then((({MDXProvider:i})=>u(e.createElement(_,{showException:a,key:Math.random()},e.createElement(i,{components:o},e.createElement(n,{context:t,docsParameter:r}))),s))).then((()=>i()))}))},this.unmount=e=>{l(e)}}};export{k as DocsRenderer,D as defaultComponents}; \ No newline at end of file +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./index-gbZvCw43.js","./index-BP8_t0zE.js"]))=>e.map((e=>r[e]));import{_ as p}from"./iframe-QafAnwiH.js";import{a as e,r as c}from"./index-BP8_t0zE.js";import{r as u,u as l}from"./react-18-Bze0iTLm.js";import{C as h,A as E,H as d,D as x}from"./index-u2PVOEPH.js";import"../sb-preview/runtime.js";import"./index-BBRV8eG_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var D={code:h,a:E,...d},_=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},k=class{constructor(){this.render=async(t,r,s)=>{let o={...D,...null==r?void 0:r.components},n=x;return new Promise(((i,a)=>{p((async()=>{const{MDXProvider:e}=await import("./index-gbZvCw43.js");return{MDXProvider:e}}),__vite__mapDeps([0,1]),import.meta.url).then((({MDXProvider:i})=>u(e.createElement(_,{showException:a,key:Math.random()},e.createElement(i,{components:o},e.createElement(n,{context:t,docsParameter:r}))),s))).then((()=>i()))}))},this.unmount=e=>{l(e)}}};export{k as DocsRenderer,D as defaultComponents}; \ No newline at end of file diff --git a/storybook-static/assets/ElWithBeforeIcon.stories-BhZgWN-A.js b/storybook-static/assets/ElWithBeforeIcon.stories-BhZgWN-A.js new file mode 100644 index 0000000000..4ce2877532 --- /dev/null +++ b/storybook-static/assets/ElWithBeforeIcon.stories-BhZgWN-A.js @@ -0,0 +1 @@ +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{E as t}from"./ElWithBeforeIcon-ziIMqlVV.js";import"./index-BP8_t0zE.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const d="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20library%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",x={title:"Components/ElWithBeforeIcon",component:t},e=()=>o.jsx(t,{icon:d,children:o.jsx("p",{children:"Element"})}),a={render:e=>o.jsx(t,{...e,icon:d,children:o.jsx("p",{children:"Element"})})};var c,l,r,s,n,i;e.parameters={...e.parameters,docs:{...null==(c=e.parameters)?void 0:c.docs,source:{originalSource:"() => \n

    Element

    \n
    ",...null==(r=null==(l=e.parameters)?void 0:l.docs)?void 0:r.source}}},a.parameters={...a.parameters,docs:{...null==(s=a.parameters)?void 0:s.docs,source:{originalSource:"{\n render: args => \n

    Element

    \n
    \n}",...null==(i=null==(n=a.parameters)?void 0:n.docs)?void 0:i.source}}};const I=["Default","Sizes"];export{e as Default,a as Sizes,I as __namedExportsOrder,x as default}; \ No newline at end of file diff --git a/storybook-static/assets/ElWithBeforeIcon.stories-DzpHbo6W.js b/storybook-static/assets/ElWithBeforeIcon.stories-DzpHbo6W.js deleted file mode 100644 index 986454d4bb..0000000000 --- a/storybook-static/assets/ElWithBeforeIcon.stories-DzpHbo6W.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{E as t}from"./ElWithBeforeIcon-ziIMqlVV.js";import"./index-BP8_t0zE.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const d="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20how-to%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",x={title:"Components/ElWithBeforeIcon",component:t},e=()=>a.jsx(t,{icon:d,children:a.jsx("p",{children:"Element"})}),o={render:e=>a.jsx(t,{...e,icon:d,children:a.jsx("p",{children:"Element"})})};var c,l,r,s,n,i;e.parameters={...e.parameters,docs:{...null==(c=e.parameters)?void 0:c.docs,source:{originalSource:"() => \n

    Element

    \n
    ",...null==(r=null==(l=e.parameters)?void 0:l.docs)?void 0:r.source}}},o.parameters={...o.parameters,docs:{...null==(s=o.parameters)?void 0:s.docs,source:{originalSource:"{\n render: args => \n

    Element

    \n
    \n}",...null==(i=null==(n=o.parameters)?void 0:n.docs)?void 0:i.source}}};const I=["Default","Sizes"];export{e as Default,o as Sizes,I as __namedExportsOrder,x as default}; \ No newline at end of file diff --git a/storybook-static/assets/ExternalLink.stories-XqFwNvr3.js b/storybook-static/assets/ExternalLink.stories-DCYr-c68.js similarity index 83% rename from storybook-static/assets/ExternalLink.stories-XqFwNvr3.js rename to storybook-static/assets/ExternalLink.stories-DCYr-c68.js index 7f8c0b865a..cbbf7c1070 100644 --- a/storybook-static/assets/ExternalLink.stories-XqFwNvr3.js +++ b/storybook-static/assets/ExternalLink.stories-DCYr-c68.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./ArticleCallToAction-B2lCRPAJ.js";import"./Banner-CahIkehL.js";import"./BlockedRoute-CysUGElB.js";import"./Breadcrumbs-BJzmQH02.js";import"./Button-CNNOBp5d.js";import"./ButtonIcon-DR6RqG6d.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./CardButton-N2uDQfPt.js";import"./CardList-BNR1NNaa.js";import"./CardListItem-C2EHKomy.js";import"./CardProfile-DYyeqKlo.js";import"./Category-CVnjFQdi.js";import"./CategoryVerticalList-hiYhorh7.js";import"./ContentStatistics-agsxPJSs.js";import"./CommentItem-Do_1XjZl.js";import"./CommentList-Bj5bfA7I.js";import"./CreateReply-CKFS6XGy.js";import"./ConfirmModal-nn9TD5JG.js";import"./CreateComment-CRTPmJDx.js";import"./DiscussionContainer-CydYub2w.js";import"./DiscussionTitle-BShaVqYD.js";import"./DisplayDate-6lOgCKow.js";import"./DonationRequest-Bkc-N1RW.js";import"./DonationRequestModal-BwZnqqeP.js";import"./DownloadButton-2EjRc70T.js";import"./DownloadCounter-BhwM3uCm.js";import"./DownloadWithDonationAsk-4rl9xrNJ.js";import"./DownloadStaticFile-BcrMB4t_.js";import"./EditComment-DoS6A2RY.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import{E as m}from"./ExternalLink-DC09teyd.js";import"./FieldInput-CGUt93Kw.js";import"./FieldTextarea-oZDGU0lI.js";import"./Guidelines-BB0ZBfiO.js";import"./Username-Cu73ouL4.js";import"./FollowButton-BbgwXvqp.js";import"./GlobalStyles-CFDLRO3m.js";import"./HeroBanner-DIi4EvbO.js";import{I as k}from"./Icon-Cocq8Wc0.js";import"./IconCountWithTooltip-oU9RkSxQ.js";import"./ImageCrop-BfM2WysM.js";import"./ImageGallery-aRBuWtbn.js";import"./InternalLink-Bo5i6YIm.js";import"./LinkifyText-DWykfnAH.js";import"./Loader-DVu-AWlv.js";import"./Map.client-DoF2bdmQ.js";import"./MapFilterList-B0r8SzBs.js";import"./MemberTypeVerticalList.client-DYj-OFXb.js";import"./MapMemberCard-_3cx7c2u.js";import"./MapWithPin.client-CTAHmLMz.js";import"./MemberBadge-BvLli4rf.js";import"./Modal-DXxaFBTe.js";import"./ModerationStatus-CWLvcR2F.js";import"./MoreContainer-BKCrSvUB.js";import"./NotificationItem-BRNYbh39.js";import"./NotificationList-C0JGl9gb.js";import"./OsmGeocoding-XzIsLfSg.js";import"./PinProfile-B5ULwHjj.js";import"./ProfileLink-DTf5e7AS.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./ResearchEditorOverview-C1KEow64.js";import"./SearchField-B-cckcor.js";import"./Select-Do5Sykw4.js";import"./SettingsFormWrapper-DHIvCV5u.js";import"./SiteFooter-CrkUb2Ow.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-BuO8hjpj.js";import"./TagList-azY_z3G0.js";import"./TextNotification-CHRBxPd1.js";import"./Tooltip-BFRbExEK.js";import"./UsefulStatsButton-CRR4DS4A.js";import"./CommentAvatar-CDFGogCN.js";import"./UserStatistics-B6AK-_5K.js";import"./VerticalList.client-Dbbaiymq.js";import"./VideoPlayer-C-s5d2fA.js";import{T as L}from"./theme-ui-components.esm-BngKL4Rx.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./contact-DD4r1-LP.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-CVY3hBeQ.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./UserBadge-XI2JdGOl.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-D73o39gD.js";import"./TabsList-DhTEw6FA.js";const Et={title:"Components/ExternalLink",component:m},t=()=>r.jsx(m,{href:"#",children:"Link Text"}),o=()=>r.jsx(m,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),i=()=>r.jsxs(m,{href:"#",children:[r.jsx(L,{children:"Link Text"}),r.jsx(k,{glyph:"external-link",ml:[1]})]});var p,e,n,s,a,c,l,x,d;t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:'() => Link Text',...null==(n=null==(e=t.parameters)?void 0:e.docs)?void 0:n.source}}},o.parameters={...o.parameters,docs:{...null==(s=o.parameters)?void 0:s.docs,source:{originalSource:'() => \n Link Text\n ',...null==(c=null==(a=o.parameters)?void 0:a.docs)?void 0:c.source}}},i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:'() => \n Link Text\n \n ',...null==(d=null==(x=i.parameters)?void 0:x.docs)?void 0:d.source}}};const ft=["Basic","Styled","WithIcon"];export{t as Basic,o as Styled,i as WithIcon,ft as __namedExportsOrder,Et as default}; \ No newline at end of file +import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./ArticleCallToAction-B2lCRPAJ.js";import"./Banner-CahIkehL.js";import"./BlockedRoute-CysUGElB.js";import"./Breadcrumbs-BJzmQH02.js";import"./Button-CNNOBp5d.js";import"./ButtonIcon-DR6RqG6d.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./CardButton-N2uDQfPt.js";import"./CardList-CbnpjzYc.js";import"./CardListItem-BGx1T-wd.js";import"./CardProfile-CdLmtAl0.js";import"./Category-CVnjFQdi.js";import"./CategoryVerticalList-hiYhorh7.js";import"./ContentStatistics-agsxPJSs.js";import"./CommentItem-Do_1XjZl.js";import"./CommentList-BBX0RN0p.js";import"./CreateReply-DUkENyaH.js";import"./ConfirmModal-nn9TD5JG.js";import"./CreateComment-BaAFFVqP.js";import"./DiscussionContainer-BZ5clpEB.js";import"./DiscussionTitle-BShaVqYD.js";import"./DisplayDate-6lOgCKow.js";import"./DonationRequest-Bkc-N1RW.js";import"./DonationRequestModal-BwZnqqeP.js";import"./DownloadButton-2EjRc70T.js";import"./DownloadCounter-BhwM3uCm.js";import"./DownloadWithDonationAsk-4rl9xrNJ.js";import"./DownloadStaticFile-BcrMB4t_.js";import"./EditComment-DoS6A2RY.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import{E as m}from"./ExternalLink-DC09teyd.js";import"./FieldInput-CGUt93Kw.js";import"./FieldTextarea-oZDGU0lI.js";import"./Guidelines-BB0ZBfiO.js";import"./Username-Cu73ouL4.js";import"./FollowButton-BbgwXvqp.js";import"./GlobalStyles-CFDLRO3m.js";import"./HeroBanner-DIi4EvbO.js";import{I as k}from"./Icon-Cocq8Wc0.js";import"./IconCountWithTooltip-oU9RkSxQ.js";import"./ImageCrop-BfM2WysM.js";import"./ImageGallery-DLsrCLCr.js";import"./InternalLink-Bo5i6YIm.js";import"./LinkifyText-DWykfnAH.js";import"./Loader-DVu-AWlv.js";import"./Map.client-DoF2bdmQ.js";import"./MapFilterList-budIcuAb.js";import"./MemberTypeVerticalList.client-B4M6P4G_.js";import"./MapMemberCard-_3cx7c2u.js";import"./MapWithPin.client-CTAHmLMz.js";import"./MemberBadge-CEGEtBDf.js";import"./Modal-DXxaFBTe.js";import"./ModerationStatus-CWLvcR2F.js";import"./MoreContainer-BKCrSvUB.js";import"./NotificationItem-BRNYbh39.js";import"./NotificationList-C0JGl9gb.js";import"./OsmGeocoding-XzIsLfSg.js";import"./PinProfile-Dr2LiPix.js";import"./ProfileLink-DTf5e7AS.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./ResearchEditorOverview-C1KEow64.js";import"./SearchField-B-cckcor.js";import"./Select-Do5Sykw4.js";import"./SettingsFormWrapper-DHIvCV5u.js";import"./SiteFooter-CrkUb2Ow.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-BuO8hjpj.js";import"./TagList-azY_z3G0.js";import"./TextNotification-CHRBxPd1.js";import"./Tooltip-BFRbExEK.js";import"./UsefulStatsButton-CRR4DS4A.js";import"./CommentAvatar-CDFGogCN.js";import"./UserStatistics-0Cgxzunj.js";import"./VerticalList.client-Dbbaiymq.js";import"./VideoPlayer-D9RcWkc3.js";import{T as L}from"./theme-ui-components.esm-BngKL4Rx.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./contact-DD4r1-LP.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-CVY3hBeQ.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./UserBadge-XI2JdGOl.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-D73o39gD.js";import"./TabsList-DhTEw6FA.js";const Et={title:"Components/ExternalLink",component:m},t=()=>r.jsx(m,{href:"#",children:"Link Text"}),o=()=>r.jsx(m,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),i=()=>r.jsxs(m,{href:"#",children:[r.jsx(L,{children:"Link Text"}),r.jsx(k,{glyph:"external-link",ml:[1]})]});var p,e,n,s,a,c,l,x,d;t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:'() => Link Text',...null==(n=null==(e=t.parameters)?void 0:e.docs)?void 0:n.source}}},o.parameters={...o.parameters,docs:{...null==(s=o.parameters)?void 0:s.docs,source:{originalSource:'() => \n Link Text\n ',...null==(c=null==(a=o.parameters)?void 0:a.docs)?void 0:c.source}}},i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:'() => \n Link Text\n \n ',...null==(d=null==(x=i.parameters)?void 0:x.docs)?void 0:d.source}}};const ft=["Basic","Styled","WithIcon"];export{t as Basic,o as Styled,i as WithIcon,ft as __namedExportsOrder,Et as default}; \ No newline at end of file diff --git a/storybook-static/assets/Facebook-B0YrtJSP.js b/storybook-static/assets/Facebook-qaORpa9_.js similarity index 98% rename from storybook-static/assets/Facebook-B0YrtJSP.js rename to storybook-static/assets/Facebook-qaORpa9_.js index 9eaf28a2d0..6de9bf749e 100644 --- a/storybook-static/assets/Facebook-B0YrtJSP.js +++ b/storybook-static/assets/Facebook-qaORpa9_.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-BP8_t0zE.js";import{u as P,p as m}from"./VideoPlayer-C-s5d2fA.js";function v(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of E(t))!j.call(e,o)&&o!==r&&i(e,o,{get:()=>t[o],enumerable:!(s=D(t,o))||s.enumerable});return e},w=(e,t,r)=>(r=null!=e?O(S(e)):{},h(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),F=e=>h(i({},"__esModule",{value:!0}),e),o=(e,t,r)=>(I(e,"symbol"!=typeof t?t+"":t,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){t?(0,n.getSDK)(c,f,y).then((e=>e.XFBML.parse())):(0,n.getSDK)(c,f,y).then((e=>{e.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),e.Event.subscribe("xfbml.render",(e=>{this.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(e=>{"video"===e.type&&e.id===this.playerID&&(this.player=e.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")}))}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config;return u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook"),o(l,"canPlay",x.canPlay.facebook),o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; \ No newline at end of file +import{g as _,r as g}from"./index-BP8_t0zE.js";import{u as P,p as m}from"./VideoPlayer-D9RcWkc3.js";function v(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of E(t))!j.call(e,o)&&o!==r&&i(e,o,{get:()=>t[o],enumerable:!(s=D(t,o))||s.enumerable});return e},w=(e,t,r)=>(r=null!=e?O(S(e)):{},h(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),F=e=>h(i({},"__esModule",{value:!0}),e),o=(e,t,r)=>(I(e,"symbol"!=typeof t?t+"":t,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){t?(0,n.getSDK)(c,f,y).then((e=>e.XFBML.parse())):(0,n.getSDK)(c,f,y).then((e=>{e.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),e.Event.subscribe("xfbml.render",(e=>{this.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(e=>{"video"===e.type&&e.id===this.playerID&&(this.player=e.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")}))}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config;return u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook"),o(l,"canPlay",x.canPlay.facebook),o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; \ No newline at end of file diff --git a/storybook-static/assets/FilePlayer-CkNfS4YT.js b/storybook-static/assets/FilePlayer-D6HBAgf5.js similarity index 99% rename from storybook-static/assets/FilePlayer-CkNfS4YT.js rename to storybook-static/assets/FilePlayer-D6HBAgf5.js index 2aaac1392a..e4414c024f 100644 --- a/storybook-static/assets/FilePlayer-CkNfS4YT.js +++ b/storybook-static/assets/FilePlayer-D6HBAgf5.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-BP8_t0zE.js";import{u as O,p as A}from"./VideoPlayer-C-s5d2fA.js";function R(e,t){for(var s=0;sr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,N=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},E=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of w(t))!k.call(e,i)&&i!==s&&u(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},j=(e,t,s)=>(s=null!=e?I(M(e)):{},E(e&&e.__esModule?s:u(s,"default",{value:e,enumerable:!0}),e)),H=e=>E(u({},"__esModule",{value:!0}),e),r=(e,t,s)=>(U(e,"symbol"!=typeof t?t+"":t,s),s),m={};N(m,{default:()=>P});var g=H(m),d=j(_),a=O,c=A;const y=typeof navigator<"u",F=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends d.Component{constructor(){super(...arguments),r(this,"onReady",((...e)=>this.props.onReady(...e))),r(this,"onPlay",((...e)=>this.props.onPlay(...e))),r(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),r(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),r(this,"onPause",((...e)=>this.props.onPause(...e))),r(this,"onEnded",((...e)=>this.props.onEnded(...e))),r(this,"onError",((...e)=>this.props.onError(...e))),r(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),r(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),r(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:s}=this.props;t(e),s&&this.play()})),r(this,"onPresentationModeChange",(e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),r(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),r(this,"mute",(()=>{this.player.muted=!0})),r(this,"unmute",(()=>{this.player.muted=!1})),r(this,"renderSourceElement",((e,t)=>"string"==typeof e?d.default.createElement("source",{key:t,src:e}):d.default.createElement("source",{key:t,...e}))),r(this,"renderTrack",((e,t)=>d.default.createElement("track",{key:t,...e}))),r(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(c.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!(V&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!v&&!this.props.config.forceDisableHls&&(c.HLS_EXTENSIONS.test(e)||f.test(e))}shouldUseDASH(e){return c.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return c.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:s,dashVersion:r,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then((t=>{if(this.hls=new t(s),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.hls,t)})),f.test(e)){const t=e.match(f)[1];this.hls.loadSource(W.replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",r),x).then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(r)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",i),G).then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),s=this.getDuration();return t>s?s:t}getSource(e){const t=this.shouldUseHLS(e),s=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||s||r))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:s,controls:r,muted:i,config:n,width:o,height:a}=this.props,h=this.shouldUseAudio(this.props)?"audio":"video",l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return d.default.createElement(h,{ref:this.ref,src:this.getSource(e),style:l,preload:"auto",autoPlay:t||void 0,controls:r,muted:i,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer"),r(P,"canPlay",c.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; \ No newline at end of file +import{g as b,r as _}from"./index-BP8_t0zE.js";import{u as O,p as A}from"./VideoPlayer-D9RcWkc3.js";function R(e,t){for(var s=0;sr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,N=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},E=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of w(t))!k.call(e,i)&&i!==s&&u(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},j=(e,t,s)=>(s=null!=e?I(M(e)):{},E(e&&e.__esModule?s:u(s,"default",{value:e,enumerable:!0}),e)),H=e=>E(u({},"__esModule",{value:!0}),e),r=(e,t,s)=>(U(e,"symbol"!=typeof t?t+"":t,s),s),m={};N(m,{default:()=>P});var g=H(m),d=j(_),a=O,c=A;const y=typeof navigator<"u",F=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends d.Component{constructor(){super(...arguments),r(this,"onReady",((...e)=>this.props.onReady(...e))),r(this,"onPlay",((...e)=>this.props.onPlay(...e))),r(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),r(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),r(this,"onPause",((...e)=>this.props.onPause(...e))),r(this,"onEnded",((...e)=>this.props.onEnded(...e))),r(this,"onError",((...e)=>this.props.onError(...e))),r(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),r(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),r(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:s}=this.props;t(e),s&&this.play()})),r(this,"onPresentationModeChange",(e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),r(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),r(this,"mute",(()=>{this.player.muted=!0})),r(this,"unmute",(()=>{this.player.muted=!1})),r(this,"renderSourceElement",((e,t)=>"string"==typeof e?d.default.createElement("source",{key:t,src:e}):d.default.createElement("source",{key:t,...e}))),r(this,"renderTrack",((e,t)=>d.default.createElement("track",{key:t,...e}))),r(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(c.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!(V&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!v&&!this.props.config.forceDisableHls&&(c.HLS_EXTENSIONS.test(e)||f.test(e))}shouldUseDASH(e){return c.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return c.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:s,dashVersion:r,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then((t=>{if(this.hls=new t(s),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.hls,t)})),f.test(e)){const t=e.match(f)[1];this.hls.loadSource(W.replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",r),x).then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(r)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",i),G).then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),s=this.getDuration();return t>s?s:t}getSource(e){const t=this.shouldUseHLS(e),s=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||s||r))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:s,controls:r,muted:i,config:n,width:o,height:a}=this.props,h=this.shouldUseAudio(this.props)?"audio":"video",l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return d.default.createElement(h,{ref:this.ref,src:this.getSource(e),style:l,preload:"auto",autoPlay:t||void 0,controls:r,muted:i,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer"),r(P,"canPlay",c.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; \ No newline at end of file diff --git a/storybook-static/assets/ImageGallery-aRBuWtbn.js b/storybook-static/assets/ImageGallery-DLsrCLCr.js similarity index 99% rename from storybook-static/assets/ImageGallery-aRBuWtbn.js rename to storybook-static/assets/ImageGallery-DLsrCLCr.js index 937f3f6478..6691717d1d 100644 --- a/storybook-static/assets/ImageGallery-aRBuWtbn.js +++ b/storybook-static/assets/ImageGallery-DLsrCLCr.js @@ -1,5 +1,5 @@ -/*! For license information please see ImageGallery-aRBuWtbn.js.LICENSE.txt */ -import{_ as N}from"./iframe-Cbd_NVaI.js";import{j as h}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{n as A}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as b}from"./Icon-Cocq8Wc0.js";import{a as T,F as w,I as C}from"./theme-ui-components.esm-BngKL4Rx.js";function u(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function k(t,e,i){let s=`translate3d(${t}px,0px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function _(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function $(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function m(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function j(t){return"function"==typeof t&&t.prototype&&t.prototype.goTo}function P(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class W{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class V{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,a;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort(((t,e)=>t.priority-e.priority)),null===(a=this.pswp)||void 0===a||a.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter((t=>t.fn!==e))),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return null===(i=this._filters[t])||void 0===i||i.forEach((t=>{e[0]=t.fn.apply(this,e)})),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((t=>e!==t))),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new W(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach((t=>{t.call(this,s)})),s}}class G{constructor(t,e){if(this.element=u("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(_(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=k(0,0,t/250)):_(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class U{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=d.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new G(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=u("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=u("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=d.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=d.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder())}onError(){this.state=d.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===d.LOADING,this)}isError(){return this.state===d.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(_(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==d.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=u("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=u("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===d.ERROR)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||P())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!P()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder()))}}function H(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function g(t,e,i,s,n){let a=0;if(e.paddingFn)a=e.paddingFn(i,s,n)[t];else if(e.padding)a=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(a=e[i])}return Number(a)||0}function Z(t,e,i,s){return{x:e.x-g("left",t,e,i,s)-g("right",t,e,i,s),y:e.y-g("top",t,e,i,s)-g("bottom",t,e,i,s)}}const D=4e3;class q{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,a=i.y/s.y;this.fit=Math.min(1,na?n:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>D&&(t=D/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function z(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:a}=e;if(a){let o;n=new q(a,t,-1),o=e.pswp?e.pswp.viewportSize:H(a,e);const l=Z(a,o,t,i);n.update(s.width,s.height,l)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function B(t,e){const i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return z(i,e,t)}class K extends V{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new U(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const a=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",a.itemData,t)}_getGalleryDOMElements(t){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?m(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return z(t,this,e)}}class X extends K{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(t){if($(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,i=m(this.options.children,this.options.childSelector,t.currentTarget).findIndex((t=>t===e||t.contains(e)));return-1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=m(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const s=[],n=typeof i.pswpModule;if(j(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");s.push(i.pswpModule())}"function"==typeof i.openPromise&&s.push(i.openPromise()),!1!==i.preloadFirstSlide&&t>=0&&(this._preloadedContent=B(t,this));const a=++this._uid;Promise.all(s).then((t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}}))}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach((t=>{var e;null===(e=this._listeners[t])||void 0===e||e.forEach((e=>{i.on(t,e)}))})),Object.keys(this._filters).forEach((t=>{var e;null===(e=this._filters[t])||void 0===e||e.forEach((e=>{i.addFilter(t,e.fn,e.priority)}))})),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),i.init()}destroy(){var t;null===(t=this.pswp)||void 0===t||t.destroy(),this.shouldOpen=!1,this._listeners={},m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)}))}}const Y=A(T)` +/*! For license information please see ImageGallery-DLsrCLCr.js.LICENSE.txt */ +import{_ as N}from"./iframe-QafAnwiH.js";import{j as h}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{n as A}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as b}from"./Icon-Cocq8Wc0.js";import{a as T,F as w,I as C}from"./theme-ui-components.esm-BngKL4Rx.js";function u(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function k(t,e,i){let s=`translate3d(${t}px,0px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function _(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function $(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function m(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function j(t){return"function"==typeof t&&t.prototype&&t.prototype.goTo}function P(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class W{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class V{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,a;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort(((t,e)=>t.priority-e.priority)),null===(a=this.pswp)||void 0===a||a.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter((t=>t.fn!==e))),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return null===(i=this._filters[t])||void 0===i||i.forEach((t=>{e[0]=t.fn.apply(this,e)})),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((t=>e!==t))),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new W(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach((t=>{t.call(this,s)})),s}}class G{constructor(t,e){if(this.element=u("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(_(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=k(0,0,t/250)):_(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class U{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=d.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new G(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=u("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=u("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=d.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=d.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder())}onError(){this.state=d.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===d.LOADING,this)}isError(){return this.state===d.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(_(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==d.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=u("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=u("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===d.ERROR)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||P())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!P()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder()))}}function H(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function g(t,e,i,s,n){let a=0;if(e.paddingFn)a=e.paddingFn(i,s,n)[t];else if(e.padding)a=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(a=e[i])}return Number(a)||0}function Z(t,e,i,s){return{x:e.x-g("left",t,e,i,s)-g("right",t,e,i,s),y:e.y-g("top",t,e,i,s)-g("bottom",t,e,i,s)}}const D=4e3;class q{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,a=i.y/s.y;this.fit=Math.min(1,na?n:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>D&&(t=D/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function z(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:a}=e;if(a){let o;n=new q(a,t,-1),o=e.pswp?e.pswp.viewportSize:H(a,e);const l=Z(a,o,t,i);n.update(s.width,s.height,l)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function B(t,e){const i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return z(i,e,t)}class K extends V{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new U(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const a=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",a.itemData,t)}_getGalleryDOMElements(t){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?m(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return z(t,this,e)}}class X extends K{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(t){if($(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,i=m(this.options.children,this.options.childSelector,t.currentTarget).findIndex((t=>t===e||t.contains(e)));return-1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=m(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const s=[],n=typeof i.pswpModule;if(j(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");s.push(i.pswpModule())}"function"==typeof i.openPromise&&s.push(i.openPromise()),!1!==i.preloadFirstSlide&&t>=0&&(this._preloadedContent=B(t,this));const a=++this._uid;Promise.all(s).then((t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}}))}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach((t=>{var e;null===(e=this._listeners[t])||void 0===e||e.forEach((e=>{i.on(t,e)}))})),Object.keys(this._filters).forEach((t=>{var e;null===(e=this._filters[t])||void 0===e||e.forEach((e=>{i.addFilter(t,e.fn,e.priority)}))})),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),i.init()}destroy(){var t;null===(t=this.pswp)||void 0===t||t.destroy(),this.shouldOpen=!1,this._listeners={},m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)}))}}const Y=A(T)` cursor: pointer; padding: 5px; overflow: hidden; diff --git a/storybook-static/assets/ImageGallery-aRBuWtbn.js.LICENSE.txt b/storybook-static/assets/ImageGallery-DLsrCLCr.js.LICENSE.txt similarity index 100% rename from storybook-static/assets/ImageGallery-aRBuWtbn.js.LICENSE.txt rename to storybook-static/assets/ImageGallery-DLsrCLCr.js.LICENSE.txt diff --git a/storybook-static/assets/ImageGallery.stories-CPNFXnTP.js b/storybook-static/assets/ImageGallery.stories-81PO1kqf.js similarity index 96% rename from storybook-static/assets/ImageGallery.stories-CPNFXnTP.js rename to storybook-static/assets/ImageGallery.stories-81PO1kqf.js index be70a0e512..c7aa359864 100644 --- a/storybook-static/assets/ImageGallery.stories-CPNFXnTP.js +++ b/storybook-static/assets/ImageGallery.stories-81PO1kqf.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./ImageGallery-aRBuWtbn.js";import"./index-BP8_t0zE.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";const O=[{full:"https://picsum.photos/id/29/1500/1000",thumb:"https://picsum.photos/id/29/150/150"},{full:"https://picsum.photos/id/50/4000/3000",thumb:"https://picsum.photos/id/50/150/150"},{full:"https://picsum.photos/id/110/800/1200",thumb:"https://picsum.photos/id/110/150/150"},{full:"https://picsum.photos/id/2/1500/1500",thumb:"https://picsum.photos/id/2/150/150"}],t=O.map(((e,s)=>({downloadUrl:e.full,contentType:"image/jpeg",fullPath:"cat.jpg",name:"cat"+s,type:"image/jpeg",size:115e3,thumbnailUrl:e.thumb,timeCreated:(new Date).toISOString(),updated:(new Date).toISOString()}))),M={title:"Layout/ImageGallery",component:r},a=e=>s.jsx(r,{images:t,...e}),o=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0}),m=e=>s.jsx(r,{images:[t[0]],...e}),p=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0,showNextPrevButton:!0}),i=e=>s.jsx(r,{images:[t[0]],...e,hideThumbnails:!0,showNextPrevButton:!0});var n,u,l,g,c,h,d,I,S,b,y,x,P,w,f,j,G,N;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"imageUrls.map((elt, i) => {\n return {\n downloadUrl: elt.full,\n contentType: 'image/jpeg',\n fullPath: 'cat.jpg',\n name: 'cat' + i,\n type: 'image/jpeg',\n size: 115000,\n thumbnailUrl: elt.thumb,\n timeCreated: new Date().toISOString(),\n updated: new Date().toISOString()\n };\n})",...null==(l=null==(u=t.parameters)?void 0:u.docs)?void 0:l.source}}},a.parameters={...a.parameters,docs:{...null==(g=a.parameters)?void 0:g.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(h=null==(c=a.parameters)?void 0:c.docs)?void 0:h.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(S=null==(I=o.parameters)?void 0:I.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(x=null==(y=m.parameters)?void 0:y.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(P=p.parameters)?void 0:P.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(f=null==(w=p.parameters)?void 0:w.docs)?void 0:f.source}}},i.parameters={...i.parameters,docs:{...null==(j=i.parameters)?void 0:j.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(N=null==(G=i.parameters)?void 0:G.docs)?void 0:N.source}}};const Q=["testImages","Default","NoThumbnails","HideThumbnailForSingleImage","ShowNextPrevButtons","DoNotShowNextPrevButtons"];export{a as Default,i as DoNotShowNextPrevButtons,m as HideThumbnailForSingleImage,o as NoThumbnails,p as ShowNextPrevButtons,Q as __namedExportsOrder,M as default,t as testImages}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./ImageGallery-DLsrCLCr.js";import"./index-BP8_t0zE.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";const O=[{full:"https://picsum.photos/id/29/1500/1000",thumb:"https://picsum.photos/id/29/150/150"},{full:"https://picsum.photos/id/50/4000/3000",thumb:"https://picsum.photos/id/50/150/150"},{full:"https://picsum.photos/id/110/800/1200",thumb:"https://picsum.photos/id/110/150/150"},{full:"https://picsum.photos/id/2/1500/1500",thumb:"https://picsum.photos/id/2/150/150"}],t=O.map(((e,s)=>({downloadUrl:e.full,contentType:"image/jpeg",fullPath:"cat.jpg",name:"cat"+s,type:"image/jpeg",size:115e3,thumbnailUrl:e.thumb,timeCreated:(new Date).toISOString(),updated:(new Date).toISOString()}))),M={title:"Layout/ImageGallery",component:r},a=e=>s.jsx(r,{images:t,...e}),o=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0}),m=e=>s.jsx(r,{images:[t[0]],...e}),p=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0,showNextPrevButton:!0}),i=e=>s.jsx(r,{images:[t[0]],...e,hideThumbnails:!0,showNextPrevButton:!0});var n,u,l,g,c,h,d,I,S,b,y,x,P,w,f,j,G,N;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"imageUrls.map((elt, i) => {\n return {\n downloadUrl: elt.full,\n contentType: 'image/jpeg',\n fullPath: 'cat.jpg',\n name: 'cat' + i,\n type: 'image/jpeg',\n size: 115000,\n thumbnailUrl: elt.thumb,\n timeCreated: new Date().toISOString(),\n updated: new Date().toISOString()\n };\n})",...null==(l=null==(u=t.parameters)?void 0:u.docs)?void 0:l.source}}},a.parameters={...a.parameters,docs:{...null==(g=a.parameters)?void 0:g.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(h=null==(c=a.parameters)?void 0:c.docs)?void 0:h.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(S=null==(I=o.parameters)?void 0:I.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(x=null==(y=m.parameters)?void 0:y.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(P=p.parameters)?void 0:P.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(f=null==(w=p.parameters)?void 0:w.docs)?void 0:f.source}}},i.parameters={...i.parameters,docs:{...null==(j=i.parameters)?void 0:j.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(N=null==(G=i.parameters)?void 0:G.docs)?void 0:N.source}}};const Q=["testImages","Default","NoThumbnails","HideThumbnailForSingleImage","ShowNextPrevButtons","DoNotShowNextPrevButtons"];export{a as Default,i as DoNotShowNextPrevButtons,m as HideThumbnailForSingleImage,o as NoThumbnails,p as ShowNextPrevButtons,Q as __namedExportsOrder,M as default,t as testImages}; \ No newline at end of file diff --git a/storybook-static/assets/Kaltura-9fdHjCvY.js b/storybook-static/assets/Kaltura-C_Jc3STB.js similarity index 97% rename from storybook-static/assets/Kaltura-9fdHjCvY.js rename to storybook-static/assets/Kaltura-C_Jc3STB.js index e06e08a0d9..3c7254a256 100644 --- a/storybook-static/assets/Kaltura-9fdHjCvY.js +++ b/storybook-static/assets/Kaltura-C_Jc3STB.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-BP8_t0zE.js";import{u as _,p as m}from"./VideoPlayer-C-s5d2fA.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!w.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},K=(e,t,r)=>(r=null!=e?g(O(e)):{},c(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(j(e,"symbol"!=typeof t?t+"":t,r),r),d={};L(d,{default:()=>i});var h=D(d),u=K(f),p=_,M=m;const S="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unmute")})),s(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(S,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.on("ready",(()=>{setTimeout((()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()}),500)})))}),this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura"),s(i,"canPlay",M.canPlay.kaltura);const E=y(h),C=P({__proto__:null,default:E},[h]);export{C as K}; \ No newline at end of file +import{g as y,r as f}from"./index-BP8_t0zE.js";import{u as _,p as m}from"./VideoPlayer-D9RcWkc3.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!w.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},K=(e,t,r)=>(r=null!=e?g(O(e)):{},c(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(j(e,"symbol"!=typeof t?t+"":t,r),r),d={};L(d,{default:()=>i});var h=D(d),u=K(f),p=_,M=m;const S="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unmute")})),s(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(S,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.on("ready",(()=>{setTimeout((()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()}),500)})))}),this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura"),s(i,"canPlay",M.canPlay.kaltura);const E=y(h),C=P({__proto__:null,default:E},[h]);export{C as K}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterList-B0r8SzBs.js b/storybook-static/assets/MapFilterList-budIcuAb.js similarity index 98% rename from storybook-static/assets/MapFilterList-B0r8SzBs.js rename to storybook-static/assets/MapFilterList-budIcuAb.js index 48f32c0cba..d7068a36fc 100644 --- a/storybook-static/assets/MapFilterList-B0r8SzBs.js +++ b/storybook-static/assets/MapFilterList-budIcuAb.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as j}from"./Button-CNNOBp5d.js";import{B as C}from"./ButtonIcon-DR6RqG6d.js";import{M as _}from"./MemberBadge-BvLli4rf.js";import{U as v}from"./UserBadge-XI2JdGOl.js";import{C as F}from"./CardButton-N2uDQfPt.js";import{F as r,H as M,T as s,h as L,i as k}from"./theme-ui-components.esm-BngKL4Rx.js";const x=i=>{const{active:t,onClick:l,children:r,filterType:a,sx:n}=i;return e.jsx(F,{"data-cy":`MapFilterListItem-${a}${t?"-active":""}`,onClick:l,extrastyles:{display:"flex",maxWidth:["100%","49%"],width:"500px",flexDirection:"row",backgroundColor:"offWhite",padding:1,alignItems:"center",gap:2,...t?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}},...n},children:r})};try{x.displayName="MapFilterListItem",x.__docgenInfo={description:"",displayName:"MapFilterListItem",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},filterType:{defaultValue:null,description:"",name:"filterType",required:!0,type:{name:"string"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}const d=({children:i})=>e.jsx(r,{as:"ul","data-cy":"MapFilterList",sx:{listStyle:"none",flexWrap:"wrap",gap:2,flexDirection:"row",padding:0},children:i});try{d.displayName="MapFilterListWrapper",d.__docgenInfo={description:"",displayName:"MapFilterListWrapper",props:{}}}catch{}const y=i=>{const{activeFilters:t,availableFilters:l,onClose:a,onFilterChange:n,pinCount:o}=i,p=l.filter((({filterType:e})=>"badge"===e)),c=l.filter((({filterType:e})=>"profileType"===e)),u=l.filter((({filterType:e})=>"profileTag"===e)),f=e=>!!t.find((i=>i.label===e)),m=`Show ${o} result${1===o?"":"s"}`;return e.jsxs(r,{"data-cy":"MapFilterList",sx:{flexDirection:"column",maxHeight:"100%",overflow:"auto",position:"relative"},children:[e.jsxs(r,{sx:{alignItems:"center",borderBottom:"1px solid",gap:2,justifyContent:"space-between",padding:2},children:[e.jsx(M,{as:"h3",variant:"small",children:"So what are you looking for?"}),e.jsx(C,{"data-cy":"MapFilterList-CloseButton",icon:"close",onClick:()=>a(),sx:{border:"none",paddingLeft:2,paddingRight:3}})]}),e.jsxs(r,{sx:{flexDirection:"column",flex:"auto",gap:2,overflow:"scroll",padding:2},children:[c.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Profiles"}),e.jsx(d,{children:c.map(((i,t)=>e.jsxs(x,{active:f(i.label),onClick:()=>n(i),filterType:"profile",children:[e.jsx(_,{size:30,profileType:i._id}),e.jsx(s,{variant:"quiet",sx:{fontSize:1},children:i.label})]},t)))})]}),u.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Activities"}),e.jsx(d,{children:u.map(((i,t)=>e.jsx(x,{active:f(i.label),onClick:()=>n(i),sx:{maxWidth:"auto",width:"auto"},filterType:"tag",children:e.jsx(s,{variant:"quiet",sx:{fontSize:1},children:i.label})},t)))})]}),p.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Badges"}),e.jsx(d,{children:p.map(((i,t)=>e.jsxs(L,{sx:{alignItems:"center",gap:0},children:[e.jsx(k,{onClick:()=>n(i),defaultChecked:f(i.label)}),i.label,e.jsx(v,{badgeName:i._id})]},t)))})]})]}),e.jsx(r,{sx:{borderTop:"1px solid",padding:2},children:e.jsx(j,{"data-cy":"MapFilterList-ShowResultsButton",icon:"sliders",onClick:()=>a(),sx:{alignSelf:"flex-start"},children:m})})]})};try{y.displayName="MapFilterList",y.__docgenInfo={description:"",displayName:"MapFilterList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}},pinCount:{defaultValue:null,description:"",name:"pinCount",required:!0,type:{name:"number"}}}}}catch{}export{y as M}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as j}from"./Button-CNNOBp5d.js";import{B as C}from"./ButtonIcon-DR6RqG6d.js";import{M as _}from"./MemberBadge-CEGEtBDf.js";import{U as v}from"./UserBadge-XI2JdGOl.js";import{C as F}from"./CardButton-N2uDQfPt.js";import{F as r,H as M,T as s,h as L,i as k}from"./theme-ui-components.esm-BngKL4Rx.js";const x=i=>{const{active:t,onClick:l,children:r,filterType:a,sx:n}=i;return e.jsx(F,{"data-cy":`MapFilterListItem-${a}${t?"-active":""}`,onClick:l,extrastyles:{display:"flex",maxWidth:["100%","49%"],width:"500px",flexDirection:"row",backgroundColor:"offWhite",padding:1,alignItems:"center",gap:2,...t?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}},...n},children:r})};try{x.displayName="MapFilterListItem",x.__docgenInfo={description:"",displayName:"MapFilterListItem",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},filterType:{defaultValue:null,description:"",name:"filterType",required:!0,type:{name:"string"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}const d=({children:i})=>e.jsx(r,{as:"ul","data-cy":"MapFilterList",sx:{listStyle:"none",flexWrap:"wrap",gap:2,flexDirection:"row",padding:0},children:i});try{d.displayName="MapFilterListWrapper",d.__docgenInfo={description:"",displayName:"MapFilterListWrapper",props:{}}}catch{}const y=i=>{const{activeFilters:t,availableFilters:l,onClose:a,onFilterChange:n,pinCount:o}=i,p=l.filter((({filterType:e})=>"badge"===e)),c=l.filter((({filterType:e})=>"profileType"===e)),u=l.filter((({filterType:e})=>"profileTag"===e)),f=e=>!!t.find((i=>i.label===e)),m=`Show ${o} result${1===o?"":"s"}`;return e.jsxs(r,{"data-cy":"MapFilterList",sx:{flexDirection:"column",maxHeight:"100%",overflow:"auto",position:"relative"},children:[e.jsxs(r,{sx:{alignItems:"center",borderBottom:"1px solid",gap:2,justifyContent:"space-between",padding:2},children:[e.jsx(M,{as:"h3",variant:"small",children:"So what are you looking for?"}),e.jsx(C,{"data-cy":"MapFilterList-CloseButton",icon:"close",onClick:()=>a(),sx:{border:"none",paddingLeft:2,paddingRight:3}})]}),e.jsxs(r,{sx:{flexDirection:"column",flex:"auto",gap:2,overflow:"scroll",padding:2},children:[c.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Profiles"}),e.jsx(d,{children:c.map(((i,t)=>e.jsxs(x,{active:f(i.label),onClick:()=>n(i),filterType:"profile",children:[e.jsx(_,{size:30,profileType:i._id}),e.jsx(s,{variant:"quiet",sx:{fontSize:1},children:i.label})]},t)))})]}),u.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Activities"}),e.jsx(d,{children:u.map(((i,t)=>e.jsx(x,{active:f(i.label),onClick:()=>n(i),sx:{maxWidth:"auto",width:"auto"},filterType:"tag",children:e.jsx(s,{variant:"quiet",sx:{fontSize:1},children:i.label})},t)))})]}),p.length>0&&e.jsxs(r,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(s,{children:"Badges"}),e.jsx(d,{children:p.map(((i,t)=>e.jsxs(L,{sx:{alignItems:"center",gap:0},children:[e.jsx(k,{onClick:()=>n(i),defaultChecked:f(i.label)}),i.label,e.jsx(v,{badgeName:i._id})]},t)))})]})]}),e.jsx(r,{sx:{borderTop:"1px solid",padding:2},children:e.jsx(j,{"data-cy":"MapFilterList-ShowResultsButton",icon:"sliders",onClick:()=>a(),sx:{alignSelf:"flex-start"},children:m})})]})};try{y.displayName="MapFilterList",y.__docgenInfo={description:"",displayName:"MapFilterList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}},pinCount:{defaultValue:null,description:"",name:"pinCount",required:!0,type:{name:"number"}}}}}catch{}export{y as M}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterList.stories-BzWKhRbv.js b/storybook-static/assets/MapFilterList.stories-DYa--iUu.js similarity index 94% rename from storybook-static/assets/MapFilterList.stories-BzWKhRbv.js rename to storybook-static/assets/MapFilterList.stories-DYa--iUu.js index bcecabda3d..c64a51bbee 100644 --- a/storybook-static/assets/MapFilterList.stories-BzWKhRbv.js +++ b/storybook-static/assets/MapFilterList.stories-DYa--iUu.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{M as l}from"./MapFilterList-B0r8SzBs.js";import"./index-BP8_t0zE.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonIcon-DR6RqG6d.js";import"./MemberBadge-BvLli4rf.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./UserBadge-XI2JdGOl.js";import"./CardButton-N2uDQfPt.js";const O={title:"Map/MapFilterList",component:l},n=[{_id:"workspace",filterType:"profileType",label:"Workspace"},{_id:"machine-builder",filterType:"profileType",label:"Machine Builder"},{_id:"community-builder",filterType:"profileType",label:"Community Point"},{_id:"collection-point",filterType:"profileType",label:"Collection Point"},{_id:"space",filterType:"profileType",label:"Space"},{_id:"member",filterType:"profileType",label:"Want to get started"},{_id:"shredder",filterType:"workspaceType",label:"Shredder"},{_id:"sheetpress",filterType:"workspaceType",label:"Sheetpress"},{_id:"extrusion",filterType:"workspaceType",label:"Extrusion"},{_id:"injection",filterType:"workspaceType",label:"Injection"},{_id:"mix",filterType:"workspaceType",label:"Mix"},{_id:"tag1",filterType:"profileTag",label:"Tag 1"},{_id:"tag2",filterType:"profileTag",label:"Tag 2"},{_id:"tag3",filterType:"profileTag",label:"Tag 3"}],e=()=>s.jsx(l,{activeFilters:[],availableFilters:n,onFilterChange:()=>{},onClose:()=>{},pinCount:7});var i,t,r;e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => {\n const activeFilters = [] as MapFilterOptionsList;\n const onClose = () => {\n null;\n };\n const onFilterChange = () => {\n null;\n };\n return ;\n}",...null==(r=null==(t=e.parameters)?void 0:t.docs)?void 0:r.source}}};const P=["Default"];export{e as Default,P as __namedExportsOrder,O as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{M as l}from"./MapFilterList-budIcuAb.js";import"./index-BP8_t0zE.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonIcon-DR6RqG6d.js";import"./MemberBadge-CEGEtBDf.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./UserBadge-XI2JdGOl.js";import"./CardButton-N2uDQfPt.js";const O={title:"Map/MapFilterList",component:l},n=[{_id:"workspace",filterType:"profileType",label:"Workspace"},{_id:"machine-builder",filterType:"profileType",label:"Machine Builder"},{_id:"community-builder",filterType:"profileType",label:"Community Point"},{_id:"collection-point",filterType:"profileType",label:"Collection Point"},{_id:"space",filterType:"profileType",label:"Space"},{_id:"member",filterType:"profileType",label:"Want to get started"},{_id:"shredder",filterType:"workspaceType",label:"Shredder"},{_id:"sheetpress",filterType:"workspaceType",label:"Sheetpress"},{_id:"extrusion",filterType:"workspaceType",label:"Extrusion"},{_id:"injection",filterType:"workspaceType",label:"Injection"},{_id:"mix",filterType:"workspaceType",label:"Mix"},{_id:"tag1",filterType:"profileTag",label:"Tag 1"},{_id:"tag2",filterType:"profileTag",label:"Tag 2"},{_id:"tag3",filterType:"profileTag",label:"Tag 3"}],e=()=>s.jsx(l,{activeFilters:[],availableFilters:n,onFilterChange:()=>{},onClose:()=>{},pinCount:7});var i,t,r;e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => {\n const activeFilters = [] as MapFilterOptionsList;\n const onClose = () => {\n null;\n };\n const onFilterChange = () => {\n null;\n };\n return ;\n}",...null==(r=null==(t=e.parameters)?void 0:t.docs)?void 0:r.source}}};const P=["Default"];export{e as Default,P as __namedExportsOrder,O as default}; \ No newline at end of file diff --git a/storybook-static/assets/MemberBadge-BvLli4rf.js b/storybook-static/assets/MemberBadge-CEGEtBDf.js similarity index 95% rename from storybook-static/assets/MemberBadge-BvLli4rf.js rename to storybook-static/assets/MemberBadge-CEGEtBDf.js index d788065d86..58602169fa 100644 --- a/storybook-static/assets/MemberBadge-BvLli4rf.js +++ b/storybook-static/assets/MemberBadge-CEGEtBDf.js @@ -1 +1 @@ -import{j as c}from"./jsx-runtime-CexXSJP5.js";import{s as p}from"./icon-star-active-ClN6U5FF.js";import{u as f}from"./theme-ui-core.browser.esm-CvTdiiil.js";import{I as y}from"./theme-ui-components.esm-BngKL4Rx.js";const n=40,o=e=>{var a,l;const{theme:i}=f(),{size:r,useLowDetailVersion:t,sx:o}=e,s=e.profileType||"member",m=r||n,u=s.charAt(0).toUpperCase()+s.slice(1).replace(/-/g," ");return c.jsx(y,{loading:"lazy",className:"avatar","data-cy":`MemberBadge-${s}`,sx:{width:m,borderRadius:"50%",...o},width:m,height:m,title:u,src:(m>n&&!t?null==(a=i.badges[s])?void 0:a.normal:null==(l=i.badges[s])?void 0:l.lowDetail)||p})};try{o.displayName="MemberBadge",o.__docgenInfo={description:"",displayName:"MemberBadge",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},profileType:{defaultValue:null,description:"",name:"profileType",required:!1,type:{name:"enum",value:[{value:'"space"'},{value:'"member"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},useLowDetailVersion:{defaultValue:null,description:"",name:"useLowDetailVersion",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}}}}}catch{}export{o as M}; \ No newline at end of file +import{j as c}from"./jsx-runtime-CexXSJP5.js";import{s as p}from"./icon-star-active-ClN6U5FF.js";import{u as f}from"./theme-ui-core.browser.esm-CvTdiiil.js";import{I as y}from"./theme-ui-components.esm-BngKL4Rx.js";const n=40,o=e=>{var a,l;const{theme:i}=f(),{size:r,useLowDetailVersion:t,sx:o}=e,s=e.profileType||"member",m=r||n,u=s.charAt(0).toUpperCase()+s.slice(1).replace(/-/g," ");return c.jsx(y,{loading:"lazy",className:"avatar","data-cy":`MemberBadge-${s}`,sx:{width:m,borderRadius:"50%",...o},width:m,height:m,title:u,src:(m>n&&!t?null==(a=i.badges[s])?void 0:a.normal:null==(l=i.badges[s])?void 0:l.lowDetail)||p})};try{o.displayName="MemberBadge",o.__docgenInfo={description:"",displayName:"MemberBadge",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},profileType:{defaultValue:null,description:"",name:"profileType",required:!1,type:{name:"enum",value:[{value:'"member"'},{value:'"space"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},useLowDetailVersion:{defaultValue:null,description:"",name:"useLowDetailVersion",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}}}}}catch{}export{o as M}; \ No newline at end of file diff --git a/storybook-static/assets/MemberBadge.stories-9JuuPGsA.js b/storybook-static/assets/MemberBadge.stories-C-CRxL0P.js similarity index 98% rename from storybook-static/assets/MemberBadge.stories-9JuuPGsA.js rename to storybook-static/assets/MemberBadge.stories-C-CRxL0P.js index 97121eadf0..26ae0d18b4 100644 --- a/storybook-static/assets/MemberBadge.stories-9JuuPGsA.js +++ b/storybook-static/assets/MemberBadge.stories-C-CRxL0P.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as r}from"./MemberBadge-BvLli4rf.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";const N={title:"Components/MemberBadge",component:r},s=()=>e.jsx(r,{}),o={render:s=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:s.size}),e.jsx(r,{size:2*(s.size||40)}),e.jsx(r,{size:3*(s.size||40)})]})},i=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"member"}),e.jsx(r,{size:100,profileType:"member",useLowDetailVersion:!0})]}),a=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"workspace"}),e.jsx(r,{size:100,profileType:"workspace",useLowDetailVersion:!0})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"community-builder"}),e.jsx(r,{size:100,profileType:"community-builder",useLowDetailVersion:!0})]}),t=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"collection-point"}),e.jsx(r,{size:100,profileType:"collection-point",useLowDetailVersion:!0})]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"machine-builder"}),e.jsx(r,{size:100,profileType:"machine-builder",useLowDetailVersion:!0})]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"space"}),e.jsx(r,{size:100,profileType:"space",useLowDetailVersion:!0})]});var l,d,u,y,z,g,T,b,f,x,j,B,M,w,h,D,L,S,V,F,k,C,_,E;s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"() => ",...null==(u=null==(d=s.parameters)?void 0:d.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(y=o.parameters)?void 0:y.docs,source:{originalSource:"{\n render: args => <>\n \n \n \n \n}",...null==(g=null==(z=o.parameters)?void 0:z.docs)?void 0:g.source}}},i.parameters={...i.parameters,docs:{...null==(T=i.parameters)?void 0:T.docs,source:{originalSource:"() => <>\n \n \n ",...null==(f=null==(b=i.parameters)?void 0:b.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(x=a.parameters)?void 0:x.docs,source:{originalSource:"() => <>\n \n \n ",...null==(B=null==(j=a.parameters)?void 0:j.docs)?void 0:B.source}}},p.parameters={...p.parameters,docs:{...null==(M=p.parameters)?void 0:M.docs,source:{originalSource:"() => <>\n \n \n ",...null==(h=null==(w=p.parameters)?void 0:w.docs)?void 0:h.source}}},t.parameters={...t.parameters,docs:{...null==(D=t.parameters)?void 0:D.docs,source:{originalSource:"() => <>\n \n \n ",...null==(S=null==(L=t.parameters)?void 0:L.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(V=m.parameters)?void 0:V.docs,source:{originalSource:"() => <>\n \n \n ",...null==(k=null==(F=m.parameters)?void 0:F.docs)?void 0:k.source}}},c.parameters={...c.parameters,docs:{...null==(C=c.parameters)?void 0:C.docs,source:{originalSource:"() => <>\n \n \n ",...null==(E=null==(_=c.parameters)?void 0:_.docs)?void 0:E.source}}};const Q=["Basic","Sizes","TypeMember","TypeWorkspace","TypeCommunityBuilder","TypeCollectionPoint","TypeMachineBuilder","TypeSpace"];export{s as Basic,o as Sizes,t as TypeCollectionPoint,p as TypeCommunityBuilder,m as TypeMachineBuilder,i as TypeMember,c as TypeSpace,a as TypeWorkspace,Q as __namedExportsOrder,N as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as r}from"./MemberBadge-CEGEtBDf.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";const N={title:"Components/MemberBadge",component:r},s=()=>e.jsx(r,{}),o={render:s=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:s.size}),e.jsx(r,{size:2*(s.size||40)}),e.jsx(r,{size:3*(s.size||40)})]})},i=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"member"}),e.jsx(r,{size:100,profileType:"member",useLowDetailVersion:!0})]}),a=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"workspace"}),e.jsx(r,{size:100,profileType:"workspace",useLowDetailVersion:!0})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"community-builder"}),e.jsx(r,{size:100,profileType:"community-builder",useLowDetailVersion:!0})]}),t=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"collection-point"}),e.jsx(r,{size:100,profileType:"collection-point",useLowDetailVersion:!0})]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"machine-builder"}),e.jsx(r,{size:100,profileType:"machine-builder",useLowDetailVersion:!0})]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"space"}),e.jsx(r,{size:100,profileType:"space",useLowDetailVersion:!0})]});var l,d,u,y,z,g,T,b,f,x,j,B,M,w,h,D,L,S,V,F,k,C,_,E;s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"() => ",...null==(u=null==(d=s.parameters)?void 0:d.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(y=o.parameters)?void 0:y.docs,source:{originalSource:"{\n render: args => <>\n \n \n \n \n}",...null==(g=null==(z=o.parameters)?void 0:z.docs)?void 0:g.source}}},i.parameters={...i.parameters,docs:{...null==(T=i.parameters)?void 0:T.docs,source:{originalSource:"() => <>\n \n \n ",...null==(f=null==(b=i.parameters)?void 0:b.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(x=a.parameters)?void 0:x.docs,source:{originalSource:"() => <>\n \n \n ",...null==(B=null==(j=a.parameters)?void 0:j.docs)?void 0:B.source}}},p.parameters={...p.parameters,docs:{...null==(M=p.parameters)?void 0:M.docs,source:{originalSource:"() => <>\n \n \n ",...null==(h=null==(w=p.parameters)?void 0:w.docs)?void 0:h.source}}},t.parameters={...t.parameters,docs:{...null==(D=t.parameters)?void 0:D.docs,source:{originalSource:"() => <>\n \n \n ",...null==(S=null==(L=t.parameters)?void 0:L.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(V=m.parameters)?void 0:V.docs,source:{originalSource:"() => <>\n \n \n ",...null==(k=null==(F=m.parameters)?void 0:F.docs)?void 0:k.source}}},c.parameters={...c.parameters,docs:{...null==(C=c.parameters)?void 0:C.docs,source:{originalSource:"() => <>\n \n \n ",...null==(E=null==(_=c.parameters)?void 0:_.docs)?void 0:E.source}}};const Q=["Basic","Sizes","TypeMember","TypeWorkspace","TypeCommunityBuilder","TypeCollectionPoint","TypeMachineBuilder","TypeSpace"];export{s as Basic,o as Sizes,t as TypeCollectionPoint,p as TypeCommunityBuilder,m as TypeMachineBuilder,i as TypeMember,c as TypeSpace,a as TypeWorkspace,Q as __namedExportsOrder,N as default}; \ No newline at end of file diff --git a/storybook-static/assets/MemberTypeVerticalList.client-DYj-OFXb.js b/storybook-static/assets/MemberTypeVerticalList.client-B4M6P4G_.js similarity index 91% rename from storybook-static/assets/MemberTypeVerticalList.client-DYj-OFXb.js rename to storybook-static/assets/MemberTypeVerticalList.client-B4M6P4G_.js index 341da6e85c..fa91acc36f 100644 --- a/storybook-static/assets/MemberTypeVerticalList.client-DYj-OFXb.js +++ b/storybook-static/assets/MemberTypeVerticalList.client-B4M6P4G_.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{C as d}from"./CardButton-N2uDQfPt.js";import{M as m}from"./MemberBadge-BvLli4rf.js";import{V as u}from"./VerticalList.client-Dbbaiymq.js";import{T as b}from"./theme-ui-components.esm-BngKL4Rx.js";const o=e=>{const{activeFilters:t,availableFilters:i,onFilterChange:l}=e,a=null==i?void 0:i.filter((({filterType:e})=>"profileType"===e));return!a||!a.length||a.length<2?null:r.jsx(u,{dataCy:"MemberTypeVerticalList",children:a.map(((e,i)=>{const a=t.find((r=>e.label===r.label));return r.jsxs(d,{"data-cy":"MemberTypeVerticalList-Item"+(a?"-active":""),"data-testid":"MemberTypeVerticalList-Item",title:e._id,onClick:()=>l(e),extrastyles:{background:"none",textAlign:"center",width:"130px",minWidth:"130px",marginX:1,height:"75px",flexDirection:"column",...a?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"background",":hover":{borderColor:"background"}}},children:[r.jsx(m,{size:40,profileType:e._id}),r.jsx("br",{}),r.jsx(b,{variant:"quiet",sx:{fontSize:1},children:e.label})]},i)}))})};try{o.displayName="MemberTypeVerticalList",o.__docgenInfo={description:"",displayName:"MemberTypeVerticalList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}}}}}catch{}export{o as M}; \ No newline at end of file +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{C as d}from"./CardButton-N2uDQfPt.js";import{M as m}from"./MemberBadge-CEGEtBDf.js";import{V as u}from"./VerticalList.client-Dbbaiymq.js";import{T as b}from"./theme-ui-components.esm-BngKL4Rx.js";const o=e=>{const{activeFilters:t,availableFilters:i,onFilterChange:l}=e,a=null==i?void 0:i.filter((({filterType:e})=>"profileType"===e));return!a||!a.length||a.length<2?null:r.jsx(u,{dataCy:"MemberTypeVerticalList",children:a.map(((e,i)=>{const a=t.find((r=>e.label===r.label));return r.jsxs(d,{"data-cy":"MemberTypeVerticalList-Item"+(a?"-active":""),"data-testid":"MemberTypeVerticalList-Item",title:e._id,onClick:()=>l(e),extrastyles:{background:"none",textAlign:"center",width:"130px",minWidth:"130px",marginX:1,height:"75px",flexDirection:"column",...a?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"background",":hover":{borderColor:"background"}}},children:[r.jsx(m,{size:40,profileType:e._id}),r.jsx("br",{}),r.jsx(b,{variant:"quiet",sx:{fontSize:1},children:e.label})]},i)}))})};try{o.displayName="MemberTypeVerticalList",o.__docgenInfo={description:"",displayName:"MemberTypeVerticalList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}}}}}catch{}export{o as M}; \ No newline at end of file diff --git a/storybook-static/assets/MemberTypeVerticalList.stories-DCM6CFDA.js b/storybook-static/assets/MemberTypeVerticalList.stories-B_1y335P.js similarity index 96% rename from storybook-static/assets/MemberTypeVerticalList.stories-DCM6CFDA.js rename to storybook-static/assets/MemberTypeVerticalList.stories-B_1y335P.js index 35ff8d8499..311e81413a 100644 --- a/storybook-static/assets/MemberTypeVerticalList.stories-DCM6CFDA.js +++ b/storybook-static/assets/MemberTypeVerticalList.stories-B_1y335P.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{r as y}from"./index-BP8_t0zE.js";import{M as c}from"./MemberTypeVerticalList.client-DYj-OFXb.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./MemberBadge-BvLli4rf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./VerticalList.client-Dbbaiymq.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";const R={title:"Map/MemberTypeVerticalList",component:c},l=[{label:"Workspace",_id:"workspace",filterType:"profileType"},{label:"Machine Builder",_id:"machine-builder",filterType:"profileType"},{label:"Community Builder",_id:"community-builder",filterType:"profileType"},{label:"Collection Point",_id:"collection-point",filterType:"profileType"},{label:"Want to get started",_id:"member",filterType:"profileType"},{label:"Generic Without Icon",_id:"none",filterType:"profileType"}],r=()=>{const[e,i]=y.useState([]);return s.jsx("div",{style:{maxWidth:"500px"},children:s.jsx(c,{activeFilters:e,availableFilters:l,onFilterChange:e=>l.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))})})},n=()=>{const[e,i]=y.useState([]);return s.jsxs("div",{style:{maxWidth:"500px"},children:[s.jsx(c,{activeFilters:e,availableFilters:[l[0]],onFilterChange:e=>l.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(Shouldn't see anything, only renders for two or more)"]})};var m,d,F,f,u,v;r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
    \n \n
    ;\n}",...null==(F=null==(d=r.parameters)?void 0:d.docs)?void 0:F.source}}},n.parameters={...n.parameters,docs:{...null==(f=n.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
    \n \n (Shouldn't see anything, only renders for two or more)\n
    ;\n}",...null==(v=null==(u=n.parameters)?void 0:u.docs)?void 0:v.source}}};const q=["Basic","OnlyOne"];export{r as Basic,n as OnlyOne,q as __namedExportsOrder,R as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{r as y}from"./index-BP8_t0zE.js";import{M as c}from"./MemberTypeVerticalList.client-B4M6P4G_.js";import"./CardButton-N2uDQfPt.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./MemberBadge-CEGEtBDf.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./VerticalList.client-Dbbaiymq.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./Icon-Cocq8Wc0.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";const R={title:"Map/MemberTypeVerticalList",component:c},l=[{label:"Workspace",_id:"workspace",filterType:"profileType"},{label:"Machine Builder",_id:"machine-builder",filterType:"profileType"},{label:"Community Builder",_id:"community-builder",filterType:"profileType"},{label:"Collection Point",_id:"collection-point",filterType:"profileType"},{label:"Want to get started",_id:"member",filterType:"profileType"},{label:"Generic Without Icon",_id:"none",filterType:"profileType"}],r=()=>{const[e,i]=y.useState([]);return s.jsx("div",{style:{maxWidth:"500px"},children:s.jsx(c,{activeFilters:e,availableFilters:l,onFilterChange:e=>l.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))})})},n=()=>{const[e,i]=y.useState([]);return s.jsxs("div",{style:{maxWidth:"500px"},children:[s.jsx(c,{activeFilters:e,availableFilters:[l[0]],onFilterChange:e=>l.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(Shouldn't see anything, only renders for two or more)"]})};var m,d,F,f,u,v;r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
    \n \n
    ;\n}",...null==(F=null==(d=r.parameters)?void 0:d.docs)?void 0:F.source}}},n.parameters={...n.parameters,docs:{...null==(f=n.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
    \n \n (Shouldn't see anything, only renders for two or more)\n
    ;\n}",...null==(v=null==(u=n.parameters)?void 0:u.docs)?void 0:v.source}}};const q=["Basic","OnlyOne"];export{r as Basic,n as OnlyOne,q as __namedExportsOrder,R as default}; \ No newline at end of file diff --git a/storybook-static/assets/Mixcloud-DuDvDOlm.js b/storybook-static/assets/Mixcloud-CKNvfe6I.js similarity index 97% rename from storybook-static/assets/Mixcloud-DuDvDOlm.js rename to storybook-static/assets/Mixcloud-CKNvfe6I.js index e9c86b081d..ebbede17d0 100644 --- a/storybook-static/assets/Mixcloud-DuDvDOlm.js +++ b/storybook-static/assets/Mixcloud-CKNvfe6I.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-BP8_t0zE.js";import{u as m,p as g}from"./VideoPlayer-C-s5d2fA.js";function v(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of b(t))!w.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(o=O(t,a))||o.enumerable});return e},D=(e,t,r)=>(r=null!=e?P(M(e)):{},c(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),S=e=>c(i({},"__esModule",{value:!0}),e),a=(e,t,r)=>(x(e,"symbol"!=typeof t?t+"":t,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",(()=>{})),a(this,"unmute",(()=>{})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then((e=>{this.player=e.PlayerWidget(this.iframe),this.player.ready.then((()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on(((e,t)=>{this.currentTime=e,this.duration=t})),this.props.onReady()}))}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:t}=this.props,r=e.match(y.MATCH_URL_MIXCLOUD)[1],o=(0,p.queryString)({...t.options,feed:`/${r}/`});return u.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud"),a(l,"canPlay",y.canPlay.mixcloud),a(l,"loopOnEnded",!0);const T=_(h),A=v({__proto__:null,default:T},[h]);export{A as M}; \ No newline at end of file +import{g as _,r as f}from"./index-BP8_t0zE.js";import{u as m,p as g}from"./VideoPlayer-D9RcWkc3.js";function v(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of b(t))!w.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(o=O(t,a))||o.enumerable});return e},D=(e,t,r)=>(r=null!=e?P(M(e)):{},c(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),S=e=>c(i({},"__esModule",{value:!0}),e),a=(e,t,r)=>(x(e,"symbol"!=typeof t?t+"":t,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",(()=>{})),a(this,"unmute",(()=>{})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then((e=>{this.player=e.PlayerWidget(this.iframe),this.player.ready.then((()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on(((e,t)=>{this.currentTime=e,this.duration=t})),this.props.onReady()}))}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:t}=this.props,r=e.match(y.MATCH_URL_MIXCLOUD)[1],o=(0,p.queryString)({...t.options,feed:`/${r}/`});return u.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud"),a(l,"canPlay",y.canPlay.mixcloud),a(l,"loopOnEnded",!0);const T=_(h),A=v({__proto__:null,default:T},[h]);export{A as M}; \ No newline at end of file diff --git a/storybook-static/assets/Mux-BjtZlgaw.js b/storybook-static/assets/Mux-DsgTHRou.js similarity index 88% rename from storybook-static/assets/Mux-BjtZlgaw.js rename to storybook-static/assets/Mux-DsgTHRou.js index 3003686eb2..6db0180f02 100644 --- a/storybook-static/assets/Mux-BjtZlgaw.js +++ b/storybook-static/assets/Mux-DsgTHRou.js @@ -1 +1 @@ -import{_ as P}from"./iframe-Cbd_NVaI.js";import{g as E,r as g}from"./index-BP8_t0zE.js";import{p as _}from"./VideoPlayer-C-s5d2fA.js";function b(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of k(t))!x.call(e,s)&&s!==n&&u(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?L(O(e)):{},v(e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)),D=e=>v(u({},"__esModule",{value:!0}),e),n=(e,t,n)=>(M(e,"symbol"!=typeof t?t+"":t,n),n),m={};R(m,{default:()=>l});var y=D(m),f=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends f.Component{constructor(){super(...arguments),n(this,"onReady",((...e)=>this.props.onReady(...e))),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),n(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onError",((...e)=>this.props.onError(...e))),n(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),n(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),n(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.player.muted=!0})),n(this,"unmute",(()=>{this.player.muted=!1})),n(this,"ref",(e=>{this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:n,config:r}=this.props;if(null==(t=globalThis.customElements)||!t.get("mux-player"))try{const e=j.replace("VERSION",r.version);await P((()=>import(`${e}`)),[],import.meta.url),this.props.onLoaded()}catch(i){n(i)}const[,s]=e.match(p.MATCH_URL_MUX);this.player.playbackId=s}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:n,controls:r,muted:s,config:i,width:a,height:o}=this.props,l={width:"auto"===a?a:"100%",height:"auto"===o?o:"100%"};return!1===r&&(l["--controls"]="none"),f.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:l,preload:"auto",autoPlay:t||void 0,muted:s?"":void 0,loop:n?"":void 0,...i.attributes})}}n(l,"displayName","Mux"),n(l,"canPlay",p.canPlay.mux);const C=E(y),N=b({__proto__:null,default:C},[y]);export{N as M}; \ No newline at end of file +import{_ as P}from"./iframe-QafAnwiH.js";import{g as E,r as g}from"./index-BP8_t0zE.js";import{p as _}from"./VideoPlayer-D9RcWkc3.js";function b(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of k(t))!x.call(e,i)&&i!==n&&u(e,i,{get:()=>t[i],enumerable:!(r=I(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?L(O(e)):{},v(e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)),D=e=>v(u({},"__esModule",{value:!0}),e),n=(e,t,n)=>(M(e,"symbol"!=typeof t?t+"":t,n),n),m={};R(m,{default:()=>l});var y=D(m),f=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends f.Component{constructor(){super(...arguments),n(this,"onReady",((...e)=>this.props.onReady(...e))),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),n(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onError",((...e)=>this.props.onError(...e))),n(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),n(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),n(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.player.muted=!0})),n(this,"unmute",(()=>{this.player.muted=!1})),n(this,"ref",(e=>{this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:n,config:r}=this.props;if(null==(t=globalThis.customElements)||!t.get("mux-player"))try{const e=j.replace("VERSION",r.version);await P((()=>import(`${e}`)),[],import.meta.url),this.props.onLoaded()}catch(s){n(s)}const[,i]=e.match(p.MATCH_URL_MUX);this.player.playbackId=i}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:n,controls:r,muted:i,config:s,width:a,height:o}=this.props,l={width:"auto"===a?a:"100%",height:"auto"===o?o:"100%"};return!1===r&&(l["--controls"]="none"),f.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:l,preload:"auto",autoPlay:t||void 0,muted:i?"":void 0,loop:n?"":void 0,...s.attributes})}}n(l,"displayName","Mux"),n(l,"canPlay",p.canPlay.mux);const C=E(y),N=b({__proto__:null,default:C},[y]);export{N as M}; \ No newline at end of file diff --git a/storybook-static/assets/PinProfile-B5ULwHjj.js b/storybook-static/assets/PinProfile-Dr2LiPix.js similarity index 95% rename from storybook-static/assets/PinProfile-B5ULwHjj.js rename to storybook-static/assets/PinProfile-Dr2LiPix.js index 33a0f0ff27..8e9ce4e631 100644 --- a/storybook-static/assets/PinProfile-B5ULwHjj.js +++ b/storybook-static/assets/PinProfile-Dr2LiPix.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Button-CNNOBp5d.js";import{B as d}from"./ButtonIcon-DR6RqG6d.js";import{C as m}from"./CardButton-N2uDQfPt.js";import{C as c}from"./CardProfile-DYyeqKlo.js";import{I as p}from"./InternalLink-Bo5i6YIm.js";import{a as o,F as x}from"./theme-ui-components.esm-BngKL4Rx.js";const s=e=>{const{item:s,onClose:n}=e,{creator:t}=s,r="member"===(null==t?void 0:t.profileType);return i.jsxs(m,{sx:{"&:hover":"none"},"data-cy":"PinProfile",children:[i.jsx(o,{sx:{position:"absolute",right:0},children:i.jsx(o,{sx:{float:"right",marginTop:1,marginRight:"8px"},children:i.jsx(d,{"data-cy":"PinProfileCloseButton",icon:"close",onClick:()=>n(),sx:{borderWidth:0,height:"auto"}})})}),i.jsxs(o,{sx:{width:"100%",height:"100%",zIndex:2},children:[i.jsx(c,{item:s,isLink:!0}),!r&&!1!==(null==t?void 0:t.isContactableByPublic)&&i.jsx(x,{sx:{justifyContent:"flex-end"},children:i.jsx(p,{to:`/u/${null==t?void 0:t._id}`,"data-cy":"PinProfileMessageLink",children:i.jsx(l,{icon:"contact",sx:{margin:1},small:!0,children:"Send Message"})})})]})]})};try{s.displayName="PinProfile",s.__docgenInfo={description:"",displayName:"PinProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}export{s as P}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Button-CNNOBp5d.js";import{B as d}from"./ButtonIcon-DR6RqG6d.js";import{C as m}from"./CardButton-N2uDQfPt.js";import{C as c}from"./CardProfile-CdLmtAl0.js";import{I as p}from"./InternalLink-Bo5i6YIm.js";import{a as o,F as x}from"./theme-ui-components.esm-BngKL4Rx.js";const s=e=>{const{item:s,onClose:n}=e,{creator:t}=s,r="member"===(null==t?void 0:t.profileType);return i.jsxs(m,{sx:{"&:hover":"none"},"data-cy":"PinProfile",children:[i.jsx(o,{sx:{position:"absolute",right:0},children:i.jsx(o,{sx:{float:"right",marginTop:1,marginRight:"8px"},children:i.jsx(d,{"data-cy":"PinProfileCloseButton",icon:"close",onClick:()=>n(),sx:{borderWidth:0,height:"auto"}})})}),i.jsxs(o,{sx:{width:"100%",height:"100%",zIndex:2},children:[i.jsx(c,{item:s,isLink:!0}),!r&&!1!==(null==t?void 0:t.isContactableByPublic)&&i.jsx(x,{sx:{justifyContent:"flex-end"},children:i.jsx(p,{to:`/u/${null==t?void 0:t._id}`,"data-cy":"PinProfileMessageLink",children:i.jsx(l,{icon:"contact",sx:{margin:1},small:!0,children:"Send Message"})})})]})]})};try{s.displayName="PinProfile",s.__docgenInfo={description:"",displayName:"PinProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}export{s as P}; \ No newline at end of file diff --git a/storybook-static/assets/PinProfile.stories-DObqSQRy.js b/storybook-static/assets/PinProfile.stories-A8QmIJyx.js similarity index 95% rename from storybook-static/assets/PinProfile.stories-DObqSQRy.js rename to storybook-static/assets/PinProfile.stories-A8QmIJyx.js index fd93820dfc..739810a86e 100644 --- a/storybook-static/assets/PinProfile.stories-DObqSQRy.js +++ b/storybook-static/assets/PinProfile.stories-A8QmIJyx.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as c}from"./index-D_kXk1yT.js";import{P as i}from"./PinProfile-B5ULwHjj.js";import"./index-BP8_t0zE.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonIcon-DR6RqG6d.js";import"./CardButton-N2uDQfPt.js";import"./CardProfile-DYyeqKlo.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-BvLli4rf.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";const J={title:"Map/PinProfile",component:i},e=()=>{const e={_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"member",verified:!1,creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:c.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:e,onClose:()=>console.log()})})},o=()=>t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!0,profileType:"workspace",workspaceType:"Sheetpress"}},onClose:()=>console.log()})});var n,a,s,p,m,l;e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'member' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
    \n console.log()} />\n
    ;\n}",...null==(s=null==(a=e.parameters)?void 0:a.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(p=o.parameters)?void 0:p.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: true,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
    \n console.log()} />\n
    ;\n}",...null==(l=null==(m=o.parameters)?void 0:m.docs)?void 0:l.source}}};const K=["DefaultMember","DefaultSpace"];export{e as DefaultMember,o as DefaultSpace,K as __namedExportsOrder,J as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as c}from"./index-D_kXk1yT.js";import{P as i}from"./PinProfile-Dr2LiPix.js";import"./index-BP8_t0zE.js";import"./Button-CNNOBp5d.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./ButtonIcon-DR6RqG6d.js";import"./CardButton-N2uDQfPt.js";import"./CardProfile-CdLmtAl0.js";import"./Category-CVnjFQdi.js";import"./MemberBadge-CEGEtBDf.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-Cu73ouL4.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./UserBadge-XI2JdGOl.js";import"./ProfileTagsList-CnWLcFtJ.js";const J={title:"Map/PinProfile",component:i},e=()=>{const e={_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"member",verified:!1,creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:c.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:e,onClose:()=>console.log()})})},o=()=>t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!0,profileType:"workspace",workspaceType:"Sheetpress"}},onClose:()=>console.log()})});var n,a,s,p,m,l;e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'member' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
    \n console.log()} />\n
    ;\n}",...null==(s=null==(a=e.parameters)?void 0:a.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(p=o.parameters)?void 0:p.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: true,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
    \n console.log()} />\n
    ;\n}",...null==(l=null==(m=o.parameters)?void 0:m.docs)?void 0:l.source}}};const K=["DefaultMember","DefaultSpace"];export{e as DefaultMember,o as DefaultSpace,K as __namedExportsOrder,J as default}; \ No newline at end of file diff --git a/storybook-static/assets/SoundCloud-BkzhzFMI.js b/storybook-static/assets/SoundCloud-jFxH-bjR.js similarity index 97% rename from storybook-static/assets/SoundCloud-BkzhzFMI.js rename to storybook-static/assets/SoundCloud-jFxH-bjR.js index ef96b8aafc..d707b820a3 100644 --- a/storybook-static/assets/SoundCloud-BkzhzFMI.js +++ b/storybook-static/assets/SoundCloud-jFxH-bjR.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-BP8_t0zE.js";import{u as b,p as v}from"./VideoPlayer-C-s5d2fA.js";function O(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},d=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!E.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=w(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?S(C(e)):{},d(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),R=e=>d(l({},"__esModule",{value:!0}),e),a=(e,t,r)=>(D(e,"symbol"!=typeof t?t+"":t,r),r),h={};L(h,{default:()=>u});var f=R(h),p=M(g),c=b,T=v;const N="https://w.soundcloud.com/player/api.js",x="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",(()=>{this.setVolume(0)})),a(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,c.getSDK)(N,x).then((r=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:s,PAUSE:a,FINISH:i,ERROR:l}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(a,(()=>{this.duration-this.currentTime<.05||this.props.onPause()})),this.player.bind(s,(e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress})),this.player.bind(i,(()=>this.props.onEnded())),this.player.bind(l,(e=>this.props.onError(e)))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration((e=>{this.duration=e/1e3,this.props.onReady()}))}})}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:t,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud"),a(u,"canPlay",T.canPlay.soundcloud),a(u,"loopOnEnded",!0);const A=P(f),I=O({__proto__:null,default:A},[f]);export{I as S}; \ No newline at end of file +import{g as P,r as g}from"./index-BP8_t0zE.js";import{u as b,p as v}from"./VideoPlayer-D9RcWkc3.js";function O(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},d=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!E.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=w(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?S(C(e)):{},d(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),R=e=>d(l({},"__esModule",{value:!0}),e),a=(e,t,r)=>(D(e,"symbol"!=typeof t?t+"":t,r),r),h={};L(h,{default:()=>u});var f=R(h),p=M(g),c=b,T=v;const N="https://w.soundcloud.com/player/api.js",x="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",(()=>{this.setVolume(0)})),a(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,c.getSDK)(N,x).then((r=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:s,PAUSE:a,FINISH:i,ERROR:l}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(a,(()=>{this.duration-this.currentTime<.05||this.props.onPause()})),this.player.bind(s,(e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress})),this.player.bind(i,(()=>this.props.onEnded())),this.player.bind(l,(e=>this.props.onError(e)))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration((e=>{this.duration=e/1e3,this.props.onReady()}))}})}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:t,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud"),a(u,"canPlay",T.canPlay.soundcloud),a(u,"loopOnEnded",!0);const A=P(f),I=O({__proto__:null,default:A},[f]);export{I as S}; \ No newline at end of file diff --git a/storybook-static/assets/Streamable-DtYizHzY.js b/storybook-static/assets/Streamable-xlsced_r.js similarity index 97% rename from storybook-static/assets/Streamable-DtYizHzY.js rename to storybook-static/assets/Streamable-xlsced_r.js index 14437d5874..d3dfed528c 100644 --- a/storybook-static/assets/Streamable-DtYizHzY.js +++ b/storybook-static/assets/Streamable-xlsced_r.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-BP8_t0zE.js";import{u as _,p as b}from"./VideoPlayer-C-s5d2fA.js";function P(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of O(t))!j.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=v(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?g(S(e)):{},c(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(L(e,"symbol"!=typeof t?t+"":t,r),r),h={};w(h,{default:()=>n});var y=D(h),p=M(f),u=_,d=b;const E="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class n extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")})),o(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(E,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t})),this.player.on("buffered",(({percent:e})=>{this.duration&&(this.secondsLoaded=this.duration*e)})),this.props.muted&&this.player.mute())}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1];return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}o(n,"displayName","Streamable"),o(n,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; \ No newline at end of file +import{g as m,r as f}from"./index-BP8_t0zE.js";import{u as _,p as b}from"./VideoPlayer-D9RcWkc3.js";function P(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of O(t))!j.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=v(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?g(S(e)):{},c(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(L(e,"symbol"!=typeof t?t+"":t,r),r),h={};w(h,{default:()=>n});var y=D(h),p=M(f),u=_,d=b;const E="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class n extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")})),o(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(E,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t})),this.player.on("buffered",(({percent:e})=>{this.duration&&(this.secondsLoaded=this.duration*e)})),this.props.muted&&this.player.mute())}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1];return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}o(n,"displayName","Streamable"),o(n,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; \ No newline at end of file diff --git a/storybook-static/assets/Twitch-B63wytAj.js b/storybook-static/assets/Twitch-CUj3TIV3.js similarity index 97% rename from storybook-static/assets/Twitch-B63wytAj.js rename to storybook-static/assets/Twitch-CUj3TIV3.js index 3ab20ef0bf..488024757c 100644 --- a/storybook-static/assets/Twitch-B63wytAj.js +++ b/storybook-static/assets/Twitch-CUj3TIV3.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-BP8_t0zE.js";import{u as C,p as N}from"./VideoPlayer-C-s5d2fA.js";function I(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,l=Object.defineProperty,S=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},_=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!H.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(a=S(t,s))||a.enumerable});return e},F=(e,t,r)=>(r=null!=e?M(A(e)):{},_(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),U=e=>_(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(R(e,"symbol"!=typeof t?t+"":t,r),r),P={};x(P,{default:()=>h});var f=U(P),y=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends y.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),o(this,"unmute",(()=>{this.callPlayer("setMuted",!1)}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:r,onError:a,config:s,controls:l}=this.props,o=u.MATCH_URL_TWITCH_CHANNEL.test(e),n=o?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(n):this.player.setVideo("v"+n):(0,c.getSDK)(K,V).then((t=>{this.player=new t.Player(this.playerID,{video:o?"":n,channel:o?n:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||l,time:(0,c.parseStartTime)(e),...s.options});const{READY:a,PLAYING:i,PAUSE:p,ENDED:h,ONLINE:y,OFFLINE:u,SEEK:d}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(i,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(d,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}o(h,"displayName","Twitch"),o(h,"canPlay",u.canPlay.twitch),o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; \ No newline at end of file +import{g as w,r as D}from"./index-BP8_t0zE.js";import{u as C,p as N}from"./VideoPlayer-D9RcWkc3.js";function I(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,l=Object.defineProperty,S=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},_=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!H.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(a=S(t,s))||a.enumerable});return e},F=(e,t,r)=>(r=null!=e?M(A(e)):{},_(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),U=e=>_(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(R(e,"symbol"!=typeof t?t+"":t,r),r),P={};x(P,{default:()=>h});var f=U(P),y=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends y.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),o(this,"unmute",(()=>{this.callPlayer("setMuted",!1)}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:r,onError:a,config:s,controls:l}=this.props,o=u.MATCH_URL_TWITCH_CHANNEL.test(e),n=o?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(n):this.player.setVideo("v"+n):(0,c.getSDK)(K,V).then((t=>{this.player=new t.Player(this.playerID,{video:o?"":n,channel:o?n:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||l,time:(0,c.parseStartTime)(e),...s.options});const{READY:a,PLAYING:i,PAUSE:p,ENDED:h,ONLINE:y,OFFLINE:u,SEEK:d}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(i,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(d,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}o(h,"displayName","Twitch"),o(h,"canPlay",u.canPlay.twitch),o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; \ No newline at end of file diff --git a/storybook-static/assets/UserEngagementWrapper.stories--dWaS9Ii.js b/storybook-static/assets/UserEngagementWrapper.stories-mfFm7s3I.js similarity index 84% rename from storybook-static/assets/UserEngagementWrapper.stories--dWaS9Ii.js rename to storybook-static/assets/UserEngagementWrapper.stories-mfFm7s3I.js index c6cce9dbcf..91b4d2864b 100644 --- a/storybook-static/assets/UserEngagementWrapper.stories--dWaS9Ii.js +++ b/storybook-static/assets/UserEngagementWrapper.stories-mfFm7s3I.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{A as n}from"./ArticleCallToAction-B2lCRPAJ.js";import"./Banner-CahIkehL.js";import"./BlockedRoute-CysUGElB.js";import"./Breadcrumbs-BJzmQH02.js";import"./Button-CNNOBp5d.js";import"./ButtonIcon-DR6RqG6d.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./CardButton-N2uDQfPt.js";import"./CardList-BNR1NNaa.js";import"./CardListItem-C2EHKomy.js";import"./CardProfile-DYyeqKlo.js";import"./Category-CVnjFQdi.js";import"./CategoryVerticalList-hiYhorh7.js";import"./ContentStatistics-agsxPJSs.js";import"./CommentItem-Do_1XjZl.js";import"./CommentList-Bj5bfA7I.js";import"./CreateReply-CKFS6XGy.js";import"./ConfirmModal-nn9TD5JG.js";import"./CreateComment-CRTPmJDx.js";import"./DiscussionContainer-CydYub2w.js";import"./DiscussionTitle-BShaVqYD.js";import"./DisplayDate-6lOgCKow.js";import"./DonationRequest-Bkc-N1RW.js";import"./DonationRequestModal-BwZnqqeP.js";import"./DownloadButton-2EjRc70T.js";import"./DownloadCounter-BhwM3uCm.js";import"./DownloadWithDonationAsk-4rl9xrNJ.js";import"./DownloadStaticFile-BcrMB4t_.js";import"./EditComment-DoS6A2RY.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import"./ExternalLink-DC09teyd.js";import"./FieldInput-CGUt93Kw.js";import"./FieldTextarea-oZDGU0lI.js";import"./Guidelines-BB0ZBfiO.js";import"./Username-Cu73ouL4.js";import"./FollowButton-BbgwXvqp.js";import"./GlobalStyles-CFDLRO3m.js";import"./HeroBanner-DIi4EvbO.js";import"./Icon-Cocq8Wc0.js";import"./IconCountWithTooltip-oU9RkSxQ.js";import"./ImageCrop-BfM2WysM.js";import"./ImageGallery-aRBuWtbn.js";import"./InternalLink-Bo5i6YIm.js";import"./LinkifyText-DWykfnAH.js";import"./Loader-DVu-AWlv.js";import"./Map.client-DoF2bdmQ.js";import"./MapFilterList-B0r8SzBs.js";import"./MemberTypeVerticalList.client-DYj-OFXb.js";import"./MapMemberCard-_3cx7c2u.js";import"./MapWithPin.client-CTAHmLMz.js";import"./MemberBadge-BvLli4rf.js";import"./Modal-DXxaFBTe.js";import"./ModerationStatus-CWLvcR2F.js";import"./MoreContainer-BKCrSvUB.js";import"./NotificationItem-BRNYbh39.js";import"./NotificationList-C0JGl9gb.js";import"./OsmGeocoding-XzIsLfSg.js";import"./PinProfile-B5ULwHjj.js";import"./ProfileLink-DTf5e7AS.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./ResearchEditorOverview-C1KEow64.js";import"./SearchField-B-cckcor.js";import"./Select-Do5Sykw4.js";import"./SettingsFormWrapper-DHIvCV5u.js";import"./SiteFooter-CrkUb2Ow.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-BuO8hjpj.js";import"./TagList-azY_z3G0.js";import"./TextNotification-CHRBxPd1.js";import"./Tooltip-BFRbExEK.js";import{U as s}from"./UsefulStatsButton-CRR4DS4A.js";import{U as e}from"./CommentAvatar-CDFGogCN.js";import"./UserStatistics-B6AK-_5K.js";import"./VerticalList.client-Dbbaiymq.js";import"./VideoPlayer-C-s5d2fA.js";import{a as r,B as a}from"./theme-ui-components.esm-BngKL4Rx.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./contact-DD4r1-LP.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-CVY3hBeQ.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./UserBadge-XI2JdGOl.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-D73o39gD.js";import"./TabsList-DhTEw6FA.js";const dt={title:"Layout/UserEngagementWrapper",component:e},t=()=>o.jsx(r,{sx:{maxWidth:"1000px",margin:"0 auto"},children:o.jsx(e,{children:o.jsx(r,{sx:{margin:3},children:o.jsxs(n,{author:{userName:"howto._createdBy",countryCode:"howto.creatorCountry",isVerified:!0},children:[o.jsx(a,{sx:{fontSize:2},onClick:()=>null,children:"Leave a comment"}),o.jsx(s,{votedUsefulCount:28,hasUserVotedUseful:!1,isLoggedIn:!1,onUsefulClick:()=>new Promise((()=>{}))})]})})})});var i,m,p;t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => \n \n \n \n \n new Promise(() => {})} />\n \n \n \n ",...null==(p=null==(m=t.parameters)?void 0:m.docs)?void 0:p.source}}};const xt=["Default"];export{t as Default,xt as __namedExportsOrder,dt as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{A as n}from"./ArticleCallToAction-B2lCRPAJ.js";import"./Banner-CahIkehL.js";import"./BlockedRoute-CysUGElB.js";import"./Breadcrumbs-BJzmQH02.js";import"./Button-CNNOBp5d.js";import"./ButtonIcon-DR6RqG6d.js";import"./ButtonShowReplies-DcHOTq7t.js";import"./CardButton-N2uDQfPt.js";import"./CardList-CbnpjzYc.js";import"./CardListItem-BGx1T-wd.js";import"./CardProfile-CdLmtAl0.js";import"./Category-CVnjFQdi.js";import"./CategoryVerticalList-hiYhorh7.js";import"./ContentStatistics-agsxPJSs.js";import"./CommentItem-Do_1XjZl.js";import"./CommentList-BBX0RN0p.js";import"./CreateReply-DUkENyaH.js";import"./ConfirmModal-nn9TD5JG.js";import"./CreateComment-BaAFFVqP.js";import"./DiscussionContainer-BZ5clpEB.js";import"./DiscussionTitle-BShaVqYD.js";import"./DisplayDate-6lOgCKow.js";import"./DonationRequest-Bkc-N1RW.js";import"./DonationRequestModal-BwZnqqeP.js";import"./DownloadButton-2EjRc70T.js";import"./DownloadCounter-BhwM3uCm.js";import"./DownloadWithDonationAsk-4rl9xrNJ.js";import"./DownloadStaticFile-BcrMB4t_.js";import"./EditComment-DoS6A2RY.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import"./ExternalLink-DC09teyd.js";import"./FieldInput-CGUt93Kw.js";import"./FieldTextarea-oZDGU0lI.js";import"./Guidelines-BB0ZBfiO.js";import"./Username-Cu73ouL4.js";import"./FollowButton-BbgwXvqp.js";import"./GlobalStyles-CFDLRO3m.js";import"./HeroBanner-DIi4EvbO.js";import"./Icon-Cocq8Wc0.js";import"./IconCountWithTooltip-oU9RkSxQ.js";import"./ImageCrop-BfM2WysM.js";import"./ImageGallery-DLsrCLCr.js";import"./InternalLink-Bo5i6YIm.js";import"./LinkifyText-DWykfnAH.js";import"./Loader-DVu-AWlv.js";import"./Map.client-DoF2bdmQ.js";import"./MapFilterList-budIcuAb.js";import"./MemberTypeVerticalList.client-B4M6P4G_.js";import"./MapMemberCard-_3cx7c2u.js";import"./MapWithPin.client-CTAHmLMz.js";import"./MemberBadge-CEGEtBDf.js";import"./Modal-DXxaFBTe.js";import"./ModerationStatus-CWLvcR2F.js";import"./MoreContainer-BKCrSvUB.js";import"./NotificationItem-BRNYbh39.js";import"./NotificationList-C0JGl9gb.js";import"./OsmGeocoding-XzIsLfSg.js";import"./PinProfile-Dr2LiPix.js";import"./ProfileLink-DTf5e7AS.js";import"./ProfileTagsList-CnWLcFtJ.js";import"./ResearchEditorOverview-C1KEow64.js";import"./SearchField-B-cckcor.js";import"./Select-Do5Sykw4.js";import"./SettingsFormWrapper-DHIvCV5u.js";import"./SiteFooter-CrkUb2Ow.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-BuO8hjpj.js";import"./TagList-azY_z3G0.js";import"./TextNotification-CHRBxPd1.js";import"./Tooltip-BFRbExEK.js";import{U as s}from"./UsefulStatsButton-CRR4DS4A.js";import{U as e}from"./CommentAvatar-CDFGogCN.js";import"./UserStatistics-0Cgxzunj.js";import"./VerticalList.client-Dbbaiymq.js";import"./VideoPlayer-D9RcWkc3.js";import{a as r,B as a}from"./theme-ui-components.esm-BngKL4Rx.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CvTdiiil.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";import"./contact-DD4r1-LP.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-CVY3hBeQ.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./UserBadge-XI2JdGOl.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-D73o39gD.js";import"./TabsList-DhTEw6FA.js";const dt={title:"Layout/UserEngagementWrapper",component:e},t=()=>o.jsx(r,{sx:{maxWidth:"1000px",margin:"0 auto"},children:o.jsx(e,{children:o.jsx(r,{sx:{margin:3},children:o.jsxs(n,{author:{userName:"howto._createdBy",countryCode:"howto.creatorCountry",isVerified:!0},children:[o.jsx(a,{sx:{fontSize:2},onClick:()=>null,children:"Leave a comment"}),o.jsx(s,{votedUsefulCount:28,hasUserVotedUseful:!1,isLoggedIn:!1,onUsefulClick:()=>new Promise((()=>{}))})]})})})});var i,m,p;t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => \n \n \n \n \n new Promise(() => {})} />\n \n \n \n ",...null==(p=null==(m=t.parameters)?void 0:m.docs)?void 0:p.source}}};const xt=["Default"];export{t as Default,xt as __namedExportsOrder,dt as default}; \ No newline at end of file diff --git a/storybook-static/assets/UserStatistics-0Cgxzunj.js b/storybook-static/assets/UserStatistics-0Cgxzunj.js new file mode 100644 index 0000000000..9ca1548da0 --- /dev/null +++ b/storybook-static/assets/UserStatistics-0Cgxzunj.js @@ -0,0 +1 @@ +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{s as c}from"./icon-star-active-ClN6U5FF.js";import{E as s}from"./ElWithBeforeIcon-ziIMqlVV.js";import{E as d}from"./ExternalLink-DC09teyd.js";import{I as l}from"./Icon-Cocq8Wc0.js";import{I as r}from"./InternalLink-Bo5i6YIm.js";import{C as u,F as a,a as i}from"./theme-ui-components.esm-BngKL4Rx.js";const m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20project%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20id='Layer_1'%20x='0'%20y='0'%20style='enable-background:new%200%200%2044%2037.3'%20version='1.1'%20viewBox='0%200%2044%2037.3'%3e%3cstyle%3e.st3{fill:none;stroke:%23000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}%3c/style%3e%3cpath%20d='M9.4%2031h23.3v4.7H9.4z'%20style='fill:%23878787'/%3e%3cpath%20d='M7.5%202.4c-.4%200-2.3%200-2.7.2-.4.1-.7.5-.9.8-1.1%201.8-1.2%204-1.2%206.1-.2%205.7-.3%2011.4-.5%2017-.1%201.9-.2%203.8.5%205.5.3.8.8%201.6%201.5%202.1%201%20.7%202.2.9%203.4%201.1%203.1.4%206.2.6%209.4.5%201.5%200%202.9-.1%204.4-.1%205.5-.2%2011.1-.4%2016.6-1%20.9-.1%201.9-.2%202.6-.8.5-.5.8-1.2%201-1.9%201.2-4%201.1-8.2.7-12.3s-.3-8.3-.4-12.4c0-1.4-.4-3.3-1.4-4.2-.9-.8-3.6-.8-4.8-.9-2.7-.1-4.8.2-7.5%200-2.5-.1-4.2.2-7.7.2-2.1%200-5.4.2-7.5.2-2.8-.1-2.7-.1-5.5-.1z'%20style='fill:none;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M11%207.2c-.7%200-1.4.1-1.8.5-.2.3-.2.7-.2%201v6.6c0%20.4%200%20.9.2%201.3.6%201.1%202.3%201.3%203.6%201.3h11c1.9%200%203.8%200%205.7-.2%201.7-.2%203.4-.6%204.4-1.8.7-.9.7-2%20.8-3%20.1-1.4.1-2.8.2-4.1%200-.6%200-1.2-.4-1.7s-1.1-.6-1.7-.7c-3.9-.6-7.9.2-11.7.7-3.6.5-6.7.1-10.1.1z'%20style='fill:%23878787;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M9.6%2021.8c7.4.6%2014.8.5%2022.2-.1M9.4%2026.4c7.5%200%2015%20.1%2022.6.1M9.5%2035.1c0-1.1%200-2.2.1-3.3%207.6-.6%2015.3-.9%2022.9-.9.2%201.6.2%202.2.1%203.7'%20class='st3'/%3e%3c/svg%3e",o=e=>{const o=void 0!==e.country&&void 0!==e.userName;return f(e)&&!o?null:t.jsx(u,{sx:{p:2,backgroundColor:"background",...e.sx},children:t.jsxs(a,{sx:{gap:2,flexDirection:"column"},children:[e.isVerified&&t.jsxs(a,{"data-testid":"verified-stat",children:[t.jsx(l,{glyph:"verified",size:22}),t.jsx(i,{ml:1,children:"Verified"})]}),(null==e?void 0:e.isSupporter)&&t.jsxs(a,{"data-testid":"supporter-stat",children:[t.jsx(l,{glyph:"supporter",size:22}),t.jsx(i,{ml:1,children:t.jsx(d,{href:"https://www.patreon.com/one_army",target:"_blank",sx:{color:"black"},children:"Supporter"})})]}),o&&t.jsx(r,{to:"/map/#"+e.userName,sx:{color:"black"},"data-testid":"location-link",children:t.jsxs(a,{children:[t.jsx(l,{glyph:"location-on",size:22}),t.jsx(i,{ml:1,children:e.country||"View on Map"})]})}),e.usefulCount>0&&t.jsxs(a,{"data-testid":"useful-stat",children:[t.jsx(s,{icon:c}),`Useful: ${e.usefulCount}`]}),e.howtoCount>0&&t.jsx(r,{to:"/library?q="+e.userName,sx:{color:"black"},"data-testid":"howto-link",children:t.jsxs(a,{"data-testid":"howto-stat",children:[t.jsx(s,{icon:m}),`Library: ${e.howtoCount}`]})}),e.researchCount>0&&t.jsx(r,{to:"/research?q="+e.userName,sx:{color:"black"},"data-testid":"research-link",children:t.jsxs(a,{"data-testid":"research-stat",children:[t.jsx(s,{icon:h}),`Research: ${e.researchCount}`]})}),e.totalViews>0&&t.jsxs(a,{"data-testid":"profile-views-stat",children:[t.jsx(l,{glyph:"view",size:22}),t.jsx(i,{ml:1,children:`Views: ${e.totalViews}`})]})]})})},f=e=>!(e.isVerified||e.isSupporter||e.usefulCount||e.howtoCount||e.totalViews);try{o.displayName="UserStatistics",o.__docgenInfo={description:"",displayName:"UserStatistics",props:{userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}},country:{defaultValue:null,description:"",name:"country",required:!1,type:{name:"string"}},isVerified:{defaultValue:null,description:"",name:"isVerified",required:!0,type:{name:"boolean"}},isSupporter:{defaultValue:null,description:"",name:"isSupporter",required:!1,type:{name:"boolean"}},howtoCount:{defaultValue:null,description:"",name:"howtoCount",required:!0,type:{name:"number"}},usefulCount:{defaultValue:null,description:"",name:"usefulCount",required:!0,type:{name:"number"}},researchCount:{defaultValue:null,description:"",name:"researchCount",required:!0,type:{name:"number"}},totalViews:{defaultValue:null,description:"",name:"totalViews",required:!0,type:{name:"number"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{o as U}; \ No newline at end of file diff --git a/storybook-static/assets/UserStatistics-B6AK-_5K.js b/storybook-static/assets/UserStatistics-B6AK-_5K.js deleted file mode 100644 index b86e718f0c..0000000000 --- a/storybook-static/assets/UserStatistics-B6AK-_5K.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{s as c}from"./icon-star-active-ClN6U5FF.js";import{E as s}from"./ElWithBeforeIcon-ziIMqlVV.js";import{E as d}from"./ExternalLink-DC09teyd.js";import{I as l}from"./Icon-Cocq8Wc0.js";import{I as r}from"./InternalLink-Bo5i6YIm.js";import{C as u,F as a,a as i}from"./theme-ui-components.esm-BngKL4Rx.js";const m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20how-to%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20id='Layer_1'%20x='0'%20y='0'%20style='enable-background:new%200%200%2044%2037.3'%20version='1.1'%20viewBox='0%200%2044%2037.3'%3e%3cstyle%3e.st3{fill:none;stroke:%23000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}%3c/style%3e%3cpath%20d='M9.4%2031h23.3v4.7H9.4z'%20style='fill:%23878787'/%3e%3cpath%20d='M7.5%202.4c-.4%200-2.3%200-2.7.2-.4.1-.7.5-.9.8-1.1%201.8-1.2%204-1.2%206.1-.2%205.7-.3%2011.4-.5%2017-.1%201.9-.2%203.8.5%205.5.3.8.8%201.6%201.5%202.1%201%20.7%202.2.9%203.4%201.1%203.1.4%206.2.6%209.4.5%201.5%200%202.9-.1%204.4-.1%205.5-.2%2011.1-.4%2016.6-1%20.9-.1%201.9-.2%202.6-.8.5-.5.8-1.2%201-1.9%201.2-4%201.1-8.2.7-12.3s-.3-8.3-.4-12.4c0-1.4-.4-3.3-1.4-4.2-.9-.8-3.6-.8-4.8-.9-2.7-.1-4.8.2-7.5%200-2.5-.1-4.2.2-7.7.2-2.1%200-5.4.2-7.5.2-2.8-.1-2.7-.1-5.5-.1z'%20style='fill:none;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M11%207.2c-.7%200-1.4.1-1.8.5-.2.3-.2.7-.2%201v6.6c0%20.4%200%20.9.2%201.3.6%201.1%202.3%201.3%203.6%201.3h11c1.9%200%203.8%200%205.7-.2%201.7-.2%203.4-.6%204.4-1.8.7-.9.7-2%20.8-3%20.1-1.4.1-2.8.2-4.1%200-.6%200-1.2-.4-1.7s-1.1-.6-1.7-.7c-3.9-.6-7.9.2-11.7.7-3.6.5-6.7.1-10.1.1z'%20style='fill:%23878787;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M9.6%2021.8c7.4.6%2014.8.5%2022.2-.1M9.4%2026.4c7.5%200%2015%20.1%2022.6.1M9.5%2035.1c0-1.1%200-2.2.1-3.3%207.6-.6%2015.3-.9%2022.9-.9.2%201.6.2%202.2.1%203.7'%20class='st3'/%3e%3c/svg%3e",o=e=>{const o=void 0!==e.country&&void 0!==e.userName;return f(e)&&!o?null:t.jsx(u,{sx:{p:2,backgroundColor:"background",...e.sx},children:t.jsxs(a,{sx:{gap:2,flexDirection:"column"},children:[e.isVerified&&t.jsxs(a,{"data-testid":"verified-stat",children:[t.jsx(l,{glyph:"verified",size:22}),t.jsx(i,{ml:1,children:"Verified"})]}),(null==e?void 0:e.isSupporter)&&t.jsxs(a,{"data-testid":"supporter-stat",children:[t.jsx(l,{glyph:"supporter",size:22}),t.jsx(i,{ml:1,children:t.jsx(d,{href:"https://www.patreon.com/one_army",target:"_blank",sx:{color:"black"},children:"Supporter"})})]}),o&&t.jsx(r,{to:"/map/#"+e.userName,sx:{color:"black"},"data-testid":"location-link",children:t.jsxs(a,{children:[t.jsx(l,{glyph:"location-on",size:22}),t.jsx(i,{ml:1,children:e.country||"View on Map"})]})}),e.usefulCount>0&&t.jsxs(a,{"data-testid":"useful-stat",children:[t.jsx(s,{icon:c}),`Useful: ${e.usefulCount}`]}),e.howtoCount>0&&t.jsx(r,{to:"/how-to?q="+e.userName,sx:{color:"black"},"data-testid":"howto-link",children:t.jsxs(a,{"data-testid":"howto-stat",children:[t.jsx(s,{icon:m}),`How-to: ${e.howtoCount}`]})}),e.researchCount>0&&t.jsx(r,{to:"/research?q="+e.userName,sx:{color:"black"},"data-testid":"research-link",children:t.jsxs(a,{"data-testid":"research-stat",children:[t.jsx(s,{icon:h}),`Research: ${e.researchCount}`]})}),e.totalViews>0&&t.jsxs(a,{"data-testid":"profile-views-stat",children:[t.jsx(l,{glyph:"view",size:22}),t.jsx(i,{ml:1,children:`Views: ${e.totalViews}`})]})]})})},f=e=>!(e.isVerified||e.isSupporter||e.usefulCount||e.howtoCount||e.totalViews);try{o.displayName="UserStatistics",o.__docgenInfo={description:"",displayName:"UserStatistics",props:{userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}},country:{defaultValue:null,description:"",name:"country",required:!1,type:{name:"string"}},isVerified:{defaultValue:null,description:"",name:"isVerified",required:!0,type:{name:"boolean"}},isSupporter:{defaultValue:null,description:"",name:"isSupporter",required:!1,type:{name:"boolean"}},howtoCount:{defaultValue:null,description:"",name:"howtoCount",required:!0,type:{name:"number"}},usefulCount:{defaultValue:null,description:"",name:"usefulCount",required:!0,type:{name:"number"}},researchCount:{defaultValue:null,description:"",name:"researchCount",required:!0,type:{name:"number"}},totalViews:{defaultValue:null,description:"",name:"totalViews",required:!0,type:{name:"number"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{o as U}; \ No newline at end of file diff --git a/storybook-static/assets/UserStatistics.stories-DVrQI4M0.js b/storybook-static/assets/UserStatistics.stories-_QY_W2NI.js similarity index 95% rename from storybook-static/assets/UserStatistics.stories-DVrQI4M0.js rename to storybook-static/assets/UserStatistics.stories-_QY_W2NI.js index a9beea0e5d..06ebaaa38f 100644 --- a/storybook-static/assets/UserStatistics.stories-DVrQI4M0.js +++ b/storybook-static/assets/UserStatistics.stories-_QY_W2NI.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-CexXSJP5.js";import{U as e}from"./UserStatistics-B6AK-_5K.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./ExternalLink-DC09teyd.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const G={title:"Layout/UserStatistics",component:e},p=s=>m.jsx(e,{...s}),t=p.bind({});var r,o,s;t.args={userName:"Test User",country:"Greenland",isVerified:!0,isSupporter:!0,howtoCount:10,usefulCount:20,researchCount:2},t.parameters={...t.parameters,docs:{...null==(r=t.parameters)?void 0:r.docs,source:{originalSource:"args => ",...null==(s=null==(o=t.parameters)?void 0:o.docs)?void 0:s.source}}};const L=["Default"];export{t as Default,L as __namedExportsOrder,G as default}; \ No newline at end of file +import{j as m}from"./jsx-runtime-CexXSJP5.js";import{U as e}from"./UserStatistics-0Cgxzunj.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./ElWithBeforeIcon-ziIMqlVV.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./ExternalLink-DC09teyd.js";import"./Icon-Cocq8Wc0.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./contact-DD4r1-LP.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./InternalLink-Bo5i6YIm.js";import"./components-CyP20DXM.js";import"./index-BBRV8eG_.js";import"./index-CQ-1if_X.js";const G={title:"Layout/UserStatistics",component:e},p=s=>m.jsx(e,{...s}),t=p.bind({});var r,o,s;t.args={userName:"Test User",country:"Greenland",isVerified:!0,isSupporter:!0,howtoCount:10,usefulCount:20,researchCount:2},t.parameters={...t.parameters,docs:{...null==(r=t.parameters)?void 0:r.docs,source:{originalSource:"args => ",...null==(s=null==(o=t.parameters)?void 0:o.docs)?void 0:s.source}}};const L=["Default"];export{t as Default,L as __namedExportsOrder,G as default}; \ No newline at end of file diff --git a/storybook-static/assets/VideoPlayer-C-s5d2fA.js b/storybook-static/assets/VideoPlayer-D9RcWkc3.js similarity index 94% rename from storybook-static/assets/VideoPlayer-C-s5d2fA.js rename to storybook-static/assets/VideoPlayer-D9RcWkc3.js index 785375e666..8d74b6cee2 100644 --- a/storybook-static/assets/VideoPlayer-C-s5d2fA.js +++ b/storybook-static/assets/VideoPlayer-D9RcWkc3.js @@ -1 +1 @@ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./YouTube-DTxXCrai.js","./index-BP8_t0zE.js","./SoundCloud-BkzhzFMI.js","./Vimeo-Bgro7i2R.js","./Mux-BjtZlgaw.js","./iframe-Cbd_NVaI.js","./Facebook-B0YrtJSP.js","./Streamable-DtYizHzY.js","./Wistia-DVfh-jZm.js","./Twitch-B63wytAj.js","./DailyMotion-CGllVuHR.js","./Mixcloud-DuDvDOlm.js","./Vidyard-C6n0kCq_.js","./Kaltura-9fdHjCvY.js","./FilePlayer-CkNfS4YT.js","./Preview-DMnd0tgi.js"]))=>e.map((e=>r[e]));import{j as G}from"./jsx-runtime-CexXSJP5.js";import{r as W,b as He,c as x,g as ze}from"./index-BP8_t0zE.js";import{_ as P}from"./iframe-Cbd_NVaI.js";import{c as se}from"./cjs-Clfm10Kj.js";import{p as Be}from"./index-Snk9MO9S.js";import{a as Fe}from"./theme-ui-components.esm-BngKL4Rx.js";var Ke=function(e,t,r){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async=!("async"in t)||!!t.async,o.src=e,t.attrs&&We(o,t.attrs),t.text&&(o.text=""+t.text),("onload"in o?ee:Xe)(o,r),o.onload||ee(o,r),a.appendChild(o)};function We(e,t){for(var r in t)e.setAttribute(r,t[r])}function ee(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Xe(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}var Ye=Object.create,$=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty,Ge=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Je(t))!Qe.call(e,o)&&o!==r&&$(e,o,{get:()=>t[o],enumerable:!(a=qe(t,o))||a.enumerable});return e},X=(e,t,r)=>(r=null!=e?Ye(Ze(e)):{},le(e&&e.__esModule?r:$(r,"default",{value:e,enumerable:!0}),e)),et=e=>le($({},"__esModule",{value:!0}),e),ue={};Ge(ue,{callPlayer:()=>ht,getConfig:()=>yt,getSDK:()=>dt,isBlobUrl:()=>Pt,isMediaStream:()=>mt,lazy:()=>ot,omit:()=>_t,parseEndTime:()=>pt,parseStartTime:()=>ut,queryString:()=>ft,randomString:()=>ct,supportsWebKitPresentationMode:()=>vt});var D=et(ue),tt=X(W),rt=X(Ke),at=X(se);const ot=e=>tt.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),nt=/[?&#](?:start|t)=([0-9hms]+)/,it=/[?&#]end=([0-9hms]+)/,z=/(\d+)(h|m|s)/g,st=/^\d+$/;function pe(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(z))return lt(e);if(st.test(e))return parseInt(e)}}function lt(e){let t=0,r=z.exec(e);for(;null!==r;){const[,a,o]=r;"h"===o&&(t+=60*parseInt(a,10)*60),"m"===o&&(t+=60*parseInt(a,10)),"s"===o&&(t+=parseInt(a,10)),r=z.exec(e)}return t}function ut(e){return pe(e,nt)}function pt(e){return pe(e,it)}function ct(){return Math.random().toString(36).substr(2,5)}function ft(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function j(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const w={},dt=function(e,t,r=null,a=()=>!0,o=rt.default){const n=j(t);return n&&a(n)?Promise.resolve(n):new Promise(((a,n)=>{if(w[e])return void w[e].push({resolve:a,reject:n});w[e]=[{resolve:a,reject:n}];const i=t=>{w[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),i(j(t))}}o(e,(a=>{a?(w[e].forEach((e=>e.reject(a))),w[e]=null):r||i(j(t))}))}))};function yt(e,t){return(0,at.default)(t.config,e.config)}function _t(e,...t){const r=[].concat(...t),a={},o=Object.keys(e);for(const n of o)-1===r.indexOf(n)&&(a[n]=e[n]);return a}function ht(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function mt(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Pt(e){return/^blob:/.test(e)}function vt(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}var Y=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyNames,wt=Object.prototype.hasOwnProperty,bt=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ot(t))!wt.call(e,o)&&o!==r&&Y(e,o,{get:()=>t[o],enumerable:!(a=gt(t,o))||a.enumerable});return e},Et=e=>Tt(Y({},"__esModule",{value:!0}),e),ce={};bt(ce,{AUDIO_EXTENSIONS:()=>q,DASH_EXTENSIONS:()=>Ee,FLV_EXTENSIONS:()=>Se,HLS_EXTENSIONS:()=>Z,MATCH_URL_DAILYMOTION:()=>Oe,MATCH_URL_FACEBOOK:()=>_e,MATCH_URL_FACEBOOK_WATCH:()=>he,MATCH_URL_KALTURA:()=>Te,MATCH_URL_MIXCLOUD:()=>we,MATCH_URL_MUX:()=>ye,MATCH_URL_SOUNDCLOUD:()=>fe,MATCH_URL_STREAMABLE:()=>me,MATCH_URL_TWITCH_CHANNEL:()=>ge,MATCH_URL_TWITCH_VIDEO:()=>ve,MATCH_URL_VIDYARD:()=>be,MATCH_URL_VIMEO:()=>de,MATCH_URL_WISTIA:()=>Pe,MATCH_URL_YOUTUBE:()=>B,VIDEO_EXTENSIONS:()=>J,canPlay:()=>At});var St=Et(ce),te=D;const B=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,fe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,de=/vimeo\.com\/(?!progressive_redirect).+/,ye=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,_e=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,he=/^https?:\/\/fb\.watch\/.+$/,me=/streamable\.com\/([a-z0-9]+)$/,Pe=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ve=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,ge=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Oe=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,we=/mixcloud\.com\/([^/]+\/[^/]+)/,be=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Te=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,q=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,J=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Z=/\.(m3u8)($|\?)/i,Ee=/\.(mpd)($|\?)/i,Se=/\.(flv)($|\?)/i,F=e=>{if(e instanceof Array){for(const t of e)if("string"==typeof t&&F(t)||F(t.src))return!0;return!1}return!(!(0,te.isMediaStream)(e)&&!(0,te.isBlobUrl)(e))||(q.test(e)||J.test(e)||Z.test(e)||Ee.test(e)||Se.test(e))},At={youtube:e=>e instanceof Array?e.every((e=>B.test(e))):B.test(e),soundcloud:e=>fe.test(e)&&!q.test(e),vimeo:e=>de.test(e)&&!J.test(e)&&!Z.test(e),mux:e=>ye.test(e),facebook:e=>_e.test(e)||he.test(e),streamable:e=>me.test(e),wistia:e=>Pe.test(e),twitch:e=>ve.test(e)||ge.test(e),dailymotion:e=>Oe.test(e),mixcloud:e=>we.test(e),vidyard:e=>be.test(e),kaltura:e=>Te.test(e),file:F};var Q=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyNames,It=Object.prototype.hasOwnProperty,Mt=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ct(t))!It.call(e,o)&&o!==r&&Q(e,o,{get:()=>t[o],enumerable:!(a=Rt(t,o))||a.enumerable});return e},$t=e=>Lt(Q({},"__esModule",{value:!0}),e),Ae={};Mt(Ae,{default:()=>kt});var Dt=$t(Ae),m=D,d=St,kt=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./YouTube-DTxXCrai.js").then((e=>e.Y))),__vite__mapDeps([0,1]),import.meta.url)))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./SoundCloud-BkzhzFMI.js").then((e=>e.S))),__vite__mapDeps([2,1]),import.meta.url)))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vimeo-Bgro7i2R.js").then((e=>e.V))),__vite__mapDeps([3,1]),import.meta.url)))},{key:"mux",name:"Mux",canPlay:d.canPlay.mux,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mux-BjtZlgaw.js").then((e=>e.M))),__vite__mapDeps([4,5,1]),import.meta.url)))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Facebook-B0YrtJSP.js").then((e=>e.F))),__vite__mapDeps([6,1]),import.meta.url)))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Streamable-DtYizHzY.js").then((e=>e.S))),__vite__mapDeps([7,1]),import.meta.url)))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Wistia-DVfh-jZm.js").then((e=>e.W))),__vite__mapDeps([8,1]),import.meta.url)))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Twitch-B63wytAj.js").then((e=>e.T))),__vite__mapDeps([9,1]),import.meta.url)))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./DailyMotion-CGllVuHR.js").then((e=>e.D))),__vite__mapDeps([10,1]),import.meta.url)))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mixcloud-DuDvDOlm.js").then((e=>e.M))),__vite__mapDeps([11,1]),import.meta.url)))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vidyard-C6n0kCq_.js").then((e=>e.V))),__vite__mapDeps([12,1]),import.meta.url)))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Kaltura-9fdHjCvY.js").then((e=>e.K))),__vite__mapDeps([13,1]),import.meta.url)))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,m.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,m.lazy)((()=>P((()=>import("./FilePlayer-CkNfS4YT.js").then((e=>e.F))),__vite__mapDeps([14,1]),import.meta.url)))}],re=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ut(e,t){return!!(e===t||re(e)&&re(t))}function Nt(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},Ce=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Xt(t))!qt.call(e,o)&&o!==r&&k(e,o,{get:()=>t[o],enumerable:!(a=Wt(t,o))||a.enumerable});return e},Zt=(e,t,r)=>(r=null!=e?Kt(Yt(e)):{},Ce(e&&e.__esModule?r:k(r,"default",{value:e,enumerable:!0}),e)),Qt=e=>Ce(k({},"__esModule",{value:!0}),e),Ie={};Jt(Ie,{defaultProps:()=>tr,propTypes:()=>er});var Me=Qt(Ie),Gt=Zt(Be);const{string:u,bool:y,number:b,array:V,oneOfType:S,shape:v,object:c,func:l,node:ae}=Gt.default,er={url:S([u,V,c]),playing:y,loop:y,controls:y,volume:b,muted:y,playbackRate:b,width:S([u,b]),height:S([u,b]),style:c,progressInterval:b,playsinline:y,pip:y,stopOnUnmount:y,light:S([y,u,c]),playIcon:ae,previewTabIndex:b,previewAriaLabel:u,fallback:ae,oEmbedUrl:u,wrapper:S([u,l,v({render:l.isRequired})]),config:v({soundcloud:v({options:c}),youtube:v({playerVars:c,embedOptions:c,onUnstarted:l}),facebook:v({appId:u,version:u,playerId:u,attributes:c}),dailymotion:v({params:c}),vimeo:v({playerOptions:c,title:u}),mux:v({attributes:c,version:u}),file:v({attributes:c,tracks:V,forceVideo:y,forceAudio:y,forceHLS:y,forceSafariHLS:y,forceDisableHls:y,forceDASH:y,forceFLV:y,hlsOptions:c,hlsVersion:u,dashVersion:u,flvVersion:u}),wistia:v({options:c,playerId:u,customControls:V}),mixcloud:v({options:c}),twitch:v({options:c,playerId:u}),vidyard:v({options:c})}),onReady:l,onStart:l,onPlay:l,onPause:l,onBuffer:l,onBufferEnd:l,onEnded:l,onError:l,onDuration:l,onSeek:l,onPlaybackRateChange:l,onPlaybackQualityChange:l,onProgress:l,onClickPreview:l,onEnablePIP:l,onDisablePIP:l},p=()=>{},tr={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:p},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onPlaybackQualityChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};var rr=Object.create,C=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty,sr=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t)C(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of or(t))!ir.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(a=ar(t,o))||a.enumerable});return e},$e=(e,t,r)=>(r=null!=e?rr(nr(e)):{},Le(e&&e.__esModule?r:C(r,"default",{value:e,enumerable:!0}),e)),ur=e=>Le(C({},"__esModule",{value:!0}),e),s=(e,t,r)=>(sr(e,"symbol"!=typeof t?t+"":t,r),r),De={};lr(De,{default:()=>U});var pr=ur(De),oe=$e(W),cr=$e(Re),ke=Me,fr=D;const dr=5e3;class U extends oe.Component{constructor(){super(...arguments),s(this,"mounted",!1),s(this,"isReady",!1),s(this,"isPlaying",!1),s(this,"isLoading",!0),s(this,"loadOnReady",null),s(this,"startOnPlay",!0),s(this,"seekOnPlay",null),s(this,"onDurationCalled",!1),s(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),s(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),s(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:e,played:e/r};null!==t&&(a.loadedSeconds=t,a.loaded=t/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),s(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:a}=this.props;e(),!a&&null!==r&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),s(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),s(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),s(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),s(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),s(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),s(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:a,muted:o,playbackRate:n,pip:i,loop:s,activePlayer:l,disableDeferredLoading:u}=this.props;if(!(0,cr.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!u&&!(0,fr.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}!e.playing&&r&&!this.isPlaying&&this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((()=>this.player.setVolume(a))))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(this.isReady){if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}else 0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),dr))}render(){const e=this.props.activePlayer;return e?oe.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}s(U,"displayName","Player"),s(U,"propTypes",ke.propTypes),s(U,"defaultProps",ke.defaultProps);var yr=Object.create,I=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,hr=Object.getOwnPropertyNames,mr=Object.getPrototypeOf,Pr=Object.prototype.hasOwnProperty,vr=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of hr(t))!Pr.call(e,o)&&o!==r&&I(e,o,{get:()=>t[o],enumerable:!(a=_r(t,o))||a.enumerable});return e},M=(e,t,r)=>(r=null!=e?yr(mr(e)):{},Ue(e&&e.__esModule?r:I(r,"default",{value:e,enumerable:!0}),e)),Or=e=>Ue(I({},"__esModule",{value:!0}),e),i=(e,t,r)=>(vr(e,"symbol"!=typeof t?t+"":t,r),r),Ne={};gr(Ne,{createReactPlayer:()=>Ir});var wr=Or(Ne),T=M(W),br=M(se),H=M(Vt),ne=M(Re),R=Me,xe=D,Tr=M(pr);const Er=(0,xe.lazy)((()=>P((()=>import("./Preview-DMnd0tgi.js").then((e=>e.P))),__vite__mapDeps([15,1]),import.meta.url))),Sr=typeof window<"u"&&window.document&&typeof document<"u",Ar=typeof x<"u"&&x.window&&x.window.document,Rr=Object.keys(R.propTypes),Cr=Sr||Ar?T.Suspense:()=>null,A=[],Ir=(e,t)=>{var r;return r=class extends T.Component{constructor(){super(...arguments),i(this,"state",{showPreview:!!this.props.light}),i(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),i(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),i(this,"showPreview",(()=>{this.setState({showPreview:!0})})),i(this,"getDuration",(()=>this.player?this.player.getDuration():null)),i(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),i(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),i(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),i(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),i(this,"handleReady",(()=>{this.props.onReady(this)})),i(this,"getActivePlayer",(0,H.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),i(this,"getConfig",(0,H.default)(((e,t)=>{const{config:r}=this.props;return br.default.all([R.defaultProps.config,R.defaultProps.config[t]||{},r,r[t]||{}])}))),i(this,"getAttributes",(0,H.default)((e=>(0,xe.omit)(this.props,Rr)))),i(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return T.default.createElement(Tr.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,ne.default)(this.props,e)||!(0,ne.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:a,oEmbedUrl:o,previewAriaLabel:n}=this.props;return T.default.createElement(Er,{url:e,light:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:a,fallback:o,wrapper:n}=this.props,{showPreview:i}=this.state,s=this.getAttributes(e),l="string"==typeof n?this.references.wrapper:void 0;return T.default.createElement(n,{ref:l,style:{...t,width:r,height:a},...s},T.default.createElement(Cr,{fallback:o},i?this.renderPreview(e):this.renderActivePlayer(e)))}},i(r,"displayName","ReactPlayer"),i(r,"propTypes",R.propTypes),i(r,"defaultProps",R.defaultProps),i(r,"addCustomPlayer",(e=>{A.push(e)})),i(r,"removeCustomPlayers",(()=>{A.length=0})),i(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),i(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r};var Mr=Object.create,N=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyNames,Dr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty,Ur=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},je=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $r(t))!kr.call(e,o)&&o!==r&&N(e,o,{get:()=>t[o],enumerable:!(a=Lr(t,o))||a.enumerable});return e},Nr=(e,t,r)=>(r=null!=e?Mr(Dr(e)):{},je(e&&e.__esModule?r:N(r,"default",{value:e,enumerable:!0}),e)),xr=e=>je(N({},"__esModule",{value:!0}),e),Ve={};Ur(Ve,{default:()=>zr});var jr=xr(Ve),K=Nr(Dt),Vr=wr;const Hr=K.default[K.default.length-1];var zr=(0,Vr.createReactPlayer)(K.default,Hr);const Br=ze(jr),ie=({videoUrl:e})=>G.jsx(Fe,{"data-testid":"VideoPlayer",children:G.jsx(Br,{width:"auto",controls:!0,url:e})});try{ie.displayName="VideoPlayer",ie.__docgenInfo={description:"",displayName:"VideoPlayer",props:{videoUrl:{defaultValue:null,description:"",name:"videoUrl",required:!0,type:{name:"string"}}}}}catch{}export{ie as V,St as p,D as u}; \ No newline at end of file +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./YouTube-CVBc-gT_.js","./index-BP8_t0zE.js","./SoundCloud-jFxH-bjR.js","./Vimeo-BWTYihlr.js","./Mux-DsgTHRou.js","./iframe-QafAnwiH.js","./Facebook-qaORpa9_.js","./Streamable-xlsced_r.js","./Wistia-BttYmsnc.js","./Twitch-CUj3TIV3.js","./DailyMotion-Dz1bzeKy.js","./Mixcloud-CKNvfe6I.js","./Vidyard-BKwodvb5.js","./Kaltura-C_Jc3STB.js","./FilePlayer-D6HBAgf5.js","./Preview-DMnd0tgi.js"]))=>e.map((e=>r[e]));import{j as G}from"./jsx-runtime-CexXSJP5.js";import{r as W,b as He,c as x,g as ze}from"./index-BP8_t0zE.js";import{_ as P}from"./iframe-QafAnwiH.js";import{c as se}from"./cjs-Clfm10Kj.js";import{p as Be}from"./index-Snk9MO9S.js";import{a as Fe}from"./theme-ui-components.esm-BngKL4Rx.js";var Ke=function(e,t,r){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async=!("async"in t)||!!t.async,o.src=e,t.attrs&&We(o,t.attrs),t.text&&(o.text=""+t.text),("onload"in o?ee:Xe)(o,r),o.onload||ee(o,r),a.appendChild(o)};function We(e,t){for(var r in t)e.setAttribute(r,t[r])}function ee(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Xe(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}var Ye=Object.create,$=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty,Ge=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Je(t))!Qe.call(e,o)&&o!==r&&$(e,o,{get:()=>t[o],enumerable:!(a=qe(t,o))||a.enumerable});return e},X=(e,t,r)=>(r=null!=e?Ye(Ze(e)):{},le(e&&e.__esModule?r:$(r,"default",{value:e,enumerable:!0}),e)),et=e=>le($({},"__esModule",{value:!0}),e),ue={};Ge(ue,{callPlayer:()=>ht,getConfig:()=>yt,getSDK:()=>dt,isBlobUrl:()=>Pt,isMediaStream:()=>mt,lazy:()=>ot,omit:()=>_t,parseEndTime:()=>pt,parseStartTime:()=>ut,queryString:()=>ft,randomString:()=>ct,supportsWebKitPresentationMode:()=>vt});var D=et(ue),tt=X(W),rt=X(Ke),at=X(se);const ot=e=>tt.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),nt=/[?&#](?:start|t)=([0-9hms]+)/,it=/[?&#]end=([0-9hms]+)/,z=/(\d+)(h|m|s)/g,st=/^\d+$/;function pe(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(z))return lt(e);if(st.test(e))return parseInt(e)}}function lt(e){let t=0,r=z.exec(e);for(;null!==r;){const[,a,o]=r;"h"===o&&(t+=60*parseInt(a,10)*60),"m"===o&&(t+=60*parseInt(a,10)),"s"===o&&(t+=parseInt(a,10)),r=z.exec(e)}return t}function ut(e){return pe(e,nt)}function pt(e){return pe(e,it)}function ct(){return Math.random().toString(36).substr(2,5)}function ft(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function j(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const w={},dt=function(e,t,r=null,a=()=>!0,o=rt.default){const n=j(t);return n&&a(n)?Promise.resolve(n):new Promise(((a,n)=>{if(w[e])return void w[e].push({resolve:a,reject:n});w[e]=[{resolve:a,reject:n}];const i=t=>{w[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),i(j(t))}}o(e,(a=>{a?(w[e].forEach((e=>e.reject(a))),w[e]=null):r||i(j(t))}))}))};function yt(e,t){return(0,at.default)(t.config,e.config)}function _t(e,...t){const r=[].concat(...t),a={},o=Object.keys(e);for(const n of o)-1===r.indexOf(n)&&(a[n]=e[n]);return a}function ht(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function mt(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Pt(e){return/^blob:/.test(e)}function vt(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}var Y=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyNames,wt=Object.prototype.hasOwnProperty,bt=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ot(t))!wt.call(e,o)&&o!==r&&Y(e,o,{get:()=>t[o],enumerable:!(a=gt(t,o))||a.enumerable});return e},Et=e=>Tt(Y({},"__esModule",{value:!0}),e),ce={};bt(ce,{AUDIO_EXTENSIONS:()=>q,DASH_EXTENSIONS:()=>Ee,FLV_EXTENSIONS:()=>Se,HLS_EXTENSIONS:()=>Z,MATCH_URL_DAILYMOTION:()=>Oe,MATCH_URL_FACEBOOK:()=>_e,MATCH_URL_FACEBOOK_WATCH:()=>he,MATCH_URL_KALTURA:()=>Te,MATCH_URL_MIXCLOUD:()=>we,MATCH_URL_MUX:()=>ye,MATCH_URL_SOUNDCLOUD:()=>fe,MATCH_URL_STREAMABLE:()=>me,MATCH_URL_TWITCH_CHANNEL:()=>ge,MATCH_URL_TWITCH_VIDEO:()=>ve,MATCH_URL_VIDYARD:()=>be,MATCH_URL_VIMEO:()=>de,MATCH_URL_WISTIA:()=>Pe,MATCH_URL_YOUTUBE:()=>B,VIDEO_EXTENSIONS:()=>J,canPlay:()=>At});var St=Et(ce),te=D;const B=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,fe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,de=/vimeo\.com\/(?!progressive_redirect).+/,ye=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,_e=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,he=/^https?:\/\/fb\.watch\/.+$/,me=/streamable\.com\/([a-z0-9]+)$/,Pe=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ve=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,ge=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Oe=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,we=/mixcloud\.com\/([^/]+\/[^/]+)/,be=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Te=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,q=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,J=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Z=/\.(m3u8)($|\?)/i,Ee=/\.(mpd)($|\?)/i,Se=/\.(flv)($|\?)/i,F=e=>{if(e instanceof Array){for(const t of e)if("string"==typeof t&&F(t)||F(t.src))return!0;return!1}return!(!(0,te.isMediaStream)(e)&&!(0,te.isBlobUrl)(e))||(q.test(e)||J.test(e)||Z.test(e)||Ee.test(e)||Se.test(e))},At={youtube:e=>e instanceof Array?e.every((e=>B.test(e))):B.test(e),soundcloud:e=>fe.test(e)&&!q.test(e),vimeo:e=>de.test(e)&&!J.test(e)&&!Z.test(e),mux:e=>ye.test(e),facebook:e=>_e.test(e)||he.test(e),streamable:e=>me.test(e),wistia:e=>Pe.test(e),twitch:e=>ve.test(e)||ge.test(e),dailymotion:e=>Oe.test(e),mixcloud:e=>we.test(e),vidyard:e=>be.test(e),kaltura:e=>Te.test(e),file:F};var Q=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyNames,It=Object.prototype.hasOwnProperty,Mt=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ct(t))!It.call(e,o)&&o!==r&&Q(e,o,{get:()=>t[o],enumerable:!(a=Rt(t,o))||a.enumerable});return e},$t=e=>Lt(Q({},"__esModule",{value:!0}),e),Ae={};Mt(Ae,{default:()=>kt});var Dt=$t(Ae),m=D,d=St,kt=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./YouTube-CVBc-gT_.js").then((e=>e.Y))),__vite__mapDeps([0,1]),import.meta.url)))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./SoundCloud-jFxH-bjR.js").then((e=>e.S))),__vite__mapDeps([2,1]),import.meta.url)))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vimeo-BWTYihlr.js").then((e=>e.V))),__vite__mapDeps([3,1]),import.meta.url)))},{key:"mux",name:"Mux",canPlay:d.canPlay.mux,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mux-DsgTHRou.js").then((e=>e.M))),__vite__mapDeps([4,5,1]),import.meta.url)))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Facebook-qaORpa9_.js").then((e=>e.F))),__vite__mapDeps([6,1]),import.meta.url)))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Streamable-xlsced_r.js").then((e=>e.S))),__vite__mapDeps([7,1]),import.meta.url)))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Wistia-BttYmsnc.js").then((e=>e.W))),__vite__mapDeps([8,1]),import.meta.url)))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Twitch-CUj3TIV3.js").then((e=>e.T))),__vite__mapDeps([9,1]),import.meta.url)))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./DailyMotion-Dz1bzeKy.js").then((e=>e.D))),__vite__mapDeps([10,1]),import.meta.url)))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mixcloud-CKNvfe6I.js").then((e=>e.M))),__vite__mapDeps([11,1]),import.meta.url)))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vidyard-BKwodvb5.js").then((e=>e.V))),__vite__mapDeps([12,1]),import.meta.url)))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Kaltura-C_Jc3STB.js").then((e=>e.K))),__vite__mapDeps([13,1]),import.meta.url)))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,m.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,m.lazy)((()=>P((()=>import("./FilePlayer-D6HBAgf5.js").then((e=>e.F))),__vite__mapDeps([14,1]),import.meta.url)))}],re=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ut(e,t){return!!(e===t||re(e)&&re(t))}function Nt(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},Ce=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Xt(t))!qt.call(e,o)&&o!==r&&k(e,o,{get:()=>t[o],enumerable:!(a=Wt(t,o))||a.enumerable});return e},Zt=(e,t,r)=>(r=null!=e?Kt(Yt(e)):{},Ce(e&&e.__esModule?r:k(r,"default",{value:e,enumerable:!0}),e)),Qt=e=>Ce(k({},"__esModule",{value:!0}),e),Ie={};Jt(Ie,{defaultProps:()=>tr,propTypes:()=>er});var Me=Qt(Ie),Gt=Zt(Be);const{string:u,bool:y,number:b,array:V,oneOfType:S,shape:v,object:c,func:l,node:ae}=Gt.default,er={url:S([u,V,c]),playing:y,loop:y,controls:y,volume:b,muted:y,playbackRate:b,width:S([u,b]),height:S([u,b]),style:c,progressInterval:b,playsinline:y,pip:y,stopOnUnmount:y,light:S([y,u,c]),playIcon:ae,previewTabIndex:b,previewAriaLabel:u,fallback:ae,oEmbedUrl:u,wrapper:S([u,l,v({render:l.isRequired})]),config:v({soundcloud:v({options:c}),youtube:v({playerVars:c,embedOptions:c,onUnstarted:l}),facebook:v({appId:u,version:u,playerId:u,attributes:c}),dailymotion:v({params:c}),vimeo:v({playerOptions:c,title:u}),mux:v({attributes:c,version:u}),file:v({attributes:c,tracks:V,forceVideo:y,forceAudio:y,forceHLS:y,forceSafariHLS:y,forceDisableHls:y,forceDASH:y,forceFLV:y,hlsOptions:c,hlsVersion:u,dashVersion:u,flvVersion:u}),wistia:v({options:c,playerId:u,customControls:V}),mixcloud:v({options:c}),twitch:v({options:c,playerId:u}),vidyard:v({options:c})}),onReady:l,onStart:l,onPlay:l,onPause:l,onBuffer:l,onBufferEnd:l,onEnded:l,onError:l,onDuration:l,onSeek:l,onPlaybackRateChange:l,onPlaybackQualityChange:l,onProgress:l,onClickPreview:l,onEnablePIP:l,onDisablePIP:l},p=()=>{},tr={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:p},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onPlaybackQualityChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};var rr=Object.create,C=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty,sr=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t)C(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of or(t))!ir.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(a=ar(t,o))||a.enumerable});return e},$e=(e,t,r)=>(r=null!=e?rr(nr(e)):{},Le(e&&e.__esModule?r:C(r,"default",{value:e,enumerable:!0}),e)),ur=e=>Le(C({},"__esModule",{value:!0}),e),s=(e,t,r)=>(sr(e,"symbol"!=typeof t?t+"":t,r),r),De={};lr(De,{default:()=>U});var pr=ur(De),oe=$e(W),cr=$e(Re),ke=Me,fr=D;const dr=5e3;class U extends oe.Component{constructor(){super(...arguments),s(this,"mounted",!1),s(this,"isReady",!1),s(this,"isPlaying",!1),s(this,"isLoading",!0),s(this,"loadOnReady",null),s(this,"startOnPlay",!0),s(this,"seekOnPlay",null),s(this,"onDurationCalled",!1),s(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),s(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),s(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:e,played:e/r};null!==t&&(a.loadedSeconds=t,a.loaded=t/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),s(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:a}=this.props;e(),!a&&null!==r&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),s(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),s(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),s(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),s(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),s(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),s(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:a,muted:o,playbackRate:n,pip:i,loop:s,activePlayer:l,disableDeferredLoading:u}=this.props;if(!(0,cr.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!u&&!(0,fr.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}!e.playing&&r&&!this.isPlaying&&this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((()=>this.player.setVolume(a))))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(this.isReady){if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}else 0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),dr))}render(){const e=this.props.activePlayer;return e?oe.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}s(U,"displayName","Player"),s(U,"propTypes",ke.propTypes),s(U,"defaultProps",ke.defaultProps);var yr=Object.create,I=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,hr=Object.getOwnPropertyNames,mr=Object.getPrototypeOf,Pr=Object.prototype.hasOwnProperty,vr=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of hr(t))!Pr.call(e,o)&&o!==r&&I(e,o,{get:()=>t[o],enumerable:!(a=_r(t,o))||a.enumerable});return e},M=(e,t,r)=>(r=null!=e?yr(mr(e)):{},Ue(e&&e.__esModule?r:I(r,"default",{value:e,enumerable:!0}),e)),Or=e=>Ue(I({},"__esModule",{value:!0}),e),i=(e,t,r)=>(vr(e,"symbol"!=typeof t?t+"":t,r),r),Ne={};gr(Ne,{createReactPlayer:()=>Ir});var wr=Or(Ne),T=M(W),br=M(se),H=M(Vt),ne=M(Re),R=Me,xe=D,Tr=M(pr);const Er=(0,xe.lazy)((()=>P((()=>import("./Preview-DMnd0tgi.js").then((e=>e.P))),__vite__mapDeps([15,1]),import.meta.url))),Sr=typeof window<"u"&&window.document&&typeof document<"u",Ar=typeof x<"u"&&x.window&&x.window.document,Rr=Object.keys(R.propTypes),Cr=Sr||Ar?T.Suspense:()=>null,A=[],Ir=(e,t)=>{var r;return r=class extends T.Component{constructor(){super(...arguments),i(this,"state",{showPreview:!!this.props.light}),i(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),i(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),i(this,"showPreview",(()=>{this.setState({showPreview:!0})})),i(this,"getDuration",(()=>this.player?this.player.getDuration():null)),i(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),i(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),i(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),i(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),i(this,"handleReady",(()=>{this.props.onReady(this)})),i(this,"getActivePlayer",(0,H.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),i(this,"getConfig",(0,H.default)(((e,t)=>{const{config:r}=this.props;return br.default.all([R.defaultProps.config,R.defaultProps.config[t]||{},r,r[t]||{}])}))),i(this,"getAttributes",(0,H.default)((e=>(0,xe.omit)(this.props,Rr)))),i(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return T.default.createElement(Tr.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,ne.default)(this.props,e)||!(0,ne.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:a,oEmbedUrl:o,previewAriaLabel:n}=this.props;return T.default.createElement(Er,{url:e,light:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:a,fallback:o,wrapper:n}=this.props,{showPreview:i}=this.state,s=this.getAttributes(e),l="string"==typeof n?this.references.wrapper:void 0;return T.default.createElement(n,{ref:l,style:{...t,width:r,height:a},...s},T.default.createElement(Cr,{fallback:o},i?this.renderPreview(e):this.renderActivePlayer(e)))}},i(r,"displayName","ReactPlayer"),i(r,"propTypes",R.propTypes),i(r,"defaultProps",R.defaultProps),i(r,"addCustomPlayer",(e=>{A.push(e)})),i(r,"removeCustomPlayers",(()=>{A.length=0})),i(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),i(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r};var Mr=Object.create,N=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyNames,Dr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty,Ur=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},je=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $r(t))!kr.call(e,o)&&o!==r&&N(e,o,{get:()=>t[o],enumerable:!(a=Lr(t,o))||a.enumerable});return e},Nr=(e,t,r)=>(r=null!=e?Mr(Dr(e)):{},je(e&&e.__esModule?r:N(r,"default",{value:e,enumerable:!0}),e)),xr=e=>je(N({},"__esModule",{value:!0}),e),Ve={};Ur(Ve,{default:()=>zr});var jr=xr(Ve),K=Nr(Dt),Vr=wr;const Hr=K.default[K.default.length-1];var zr=(0,Vr.createReactPlayer)(K.default,Hr);const Br=ze(jr),ie=({videoUrl:e})=>G.jsx(Fe,{"data-testid":"VideoPlayer",children:G.jsx(Br,{width:"auto",controls:!0,url:e})});try{ie.displayName="VideoPlayer",ie.__docgenInfo={description:"",displayName:"VideoPlayer",props:{videoUrl:{defaultValue:null,description:"",name:"videoUrl",required:!0,type:{name:"string"}}}}}catch{}export{ie as V,St as p,D as u}; \ No newline at end of file diff --git a/storybook-static/assets/VideoPlayer.stories-CPX8mhqo.js b/storybook-static/assets/VideoPlayer.stories-JJOtj8hI.js similarity index 89% rename from storybook-static/assets/VideoPlayer.stories-CPX8mhqo.js rename to storybook-static/assets/VideoPlayer.stories-JJOtj8hI.js index 73b0192072..1298db75a4 100644 --- a/storybook-static/assets/VideoPlayer.stories-CPX8mhqo.js +++ b/storybook-static/assets/VideoPlayer.stories-JJOtj8hI.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{V as p}from"./VideoPlayer-C-s5d2fA.js";import"./index-BP8_t0zE.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./cjs-Clfm10Kj.js";import"./index-Snk9MO9S.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const j={title:"Components/VideoPlayer",component:p},c=r=>n.jsx(p,{...r}),r=c.bind({});r.args={videoUrl:"https://www.youtube.com/watch?v=anqfVCLRQHE"};const o=c.bind({});var e,t,s,a,m,i;o.args={videoUrl:"https://vimeo.com/492811707"},r.parameters={...r.parameters,docs:{...null==(e=r.parameters)?void 0:e.docs,source:{originalSource:"args => ",...null==(s=null==(t=r.parameters)?void 0:t.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(a=o.parameters)?void 0:a.docs,source:{originalSource:"args => ",...null==(i=null==(m=o.parameters)?void 0:m.docs)?void 0:i.source}}};const E=["Youtube","Vimeo"];export{o as Vimeo,r as Youtube,E as __namedExportsOrder,j as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{V as p}from"./VideoPlayer-D9RcWkc3.js";import"./index-BP8_t0zE.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./cjs-Clfm10Kj.js";import"./index-Snk9MO9S.js";import"./theme-ui-components.esm-BngKL4Rx.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const j={title:"Components/VideoPlayer",component:p},c=r=>n.jsx(p,{...r}),r=c.bind({});r.args={videoUrl:"https://www.youtube.com/watch?v=anqfVCLRQHE"};const o=c.bind({});var e,t,s,a,m,i;o.args={videoUrl:"https://vimeo.com/492811707"},r.parameters={...r.parameters,docs:{...null==(e=r.parameters)?void 0:e.docs,source:{originalSource:"args => ",...null==(s=null==(t=r.parameters)?void 0:t.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(a=o.parameters)?void 0:a.docs,source:{originalSource:"args => ",...null==(i=null==(m=o.parameters)?void 0:m.docs)?void 0:i.source}}};const E=["Youtube","Vimeo"];export{o as Vimeo,r as Youtube,E as __namedExportsOrder,j as default}; \ No newline at end of file diff --git a/storybook-static/assets/Vidyard-C6n0kCq_.js b/storybook-static/assets/Vidyard-BKwodvb5.js similarity index 97% rename from storybook-static/assets/Vidyard-C6n0kCq_.js rename to storybook-static/assets/Vidyard-BKwodvb5.js index 6799eb4df0..de090176af 100644 --- a/storybook-static/assets/Vidyard-C6n0kCq_.js +++ b/storybook-static/assets/Vidyard-BKwodvb5.js @@ -1 +1 @@ -import{g,r as v}from"./index-BP8_t0zE.js";import{u as b,p as O}from"./VideoPlayer-C-s5d2fA.js";function V(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,n=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of w(t))!M.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=j(t,s))||a.enumerable});return e},L=(e,t,r)=>(r=null!=e?D(S(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),R=e=>h(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(A(e,"symbol"!=typeof t?t+"":t,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",(()=>{this.setVolume(0)})),s(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,config:r,onError:a,onDuration:s}=this.props,o=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then((e=>{this.container&&(e.api.addReadyListener(((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))}),o),e.api.renderPlayer({uuid:o,container:this.container,autoplay:t?1:0,...r.options}),e.api.getPlayerMetadata(o).then((e=>{this.duration=e.length_in_seconds,s(e.length_in_seconds)})))}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard"),s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; \ No newline at end of file +import{g,r as v}from"./index-BP8_t0zE.js";import{u as b,p as O}from"./VideoPlayer-D9RcWkc3.js";function V(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,n=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of w(t))!M.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=j(t,s))||a.enumerable});return e},L=(e,t,r)=>(r=null!=e?D(S(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),R=e=>h(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(A(e,"symbol"!=typeof t?t+"":t,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",(()=>{this.setVolume(0)})),s(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,config:r,onError:a,onDuration:s}=this.props,o=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then((e=>{this.container&&(e.api.addReadyListener(((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))}),o),e.api.renderPlayer({uuid:o,container:this.container,autoplay:t?1:0,...r.options}),e.api.getPlayerMetadata(o).then((e=>{this.duration=e.length_in_seconds,s(e.length_in_seconds)})))}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard"),s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; \ No newline at end of file diff --git a/storybook-static/assets/Vimeo-Bgro7i2R.js b/storybook-static/assets/Vimeo-BWTYihlr.js similarity index 98% rename from storybook-static/assets/Vimeo-Bgro7i2R.js rename to storybook-static/assets/Vimeo-BWTYihlr.js index 41bf40fe21..ac87aa3351 100644 --- a/storybook-static/assets/Vimeo-Bgro7i2R.js +++ b/storybook-static/assets/Vimeo-BWTYihlr.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-BP8_t0zE.js";import{u as m,p as _}from"./VideoPlayer-C-s5d2fA.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!D.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},j=(e,t,r)=>(r=null!=e?g(O(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),E=e=>h(n({},"__esModule",{value:!0}),e),i=(e,t,r)=>(w(e,"symbol"!=typeof t?t+"":t,r),r),c={};M(c,{default:()=>l});var y=E(c),p=j(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=e=>e.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",(()=>{this.setMuted(!0)})),i(this,"unmute",(()=>{this.setMuted(!1)})),i(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then((t=>{if(!this.container)return;const{playerOptions:r,title:s}=this.props.config;this.player=new t.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...r}),this.player.ready().then((()=>{const e=this.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",s&&(e.title=s)})).catch(this.props.onError),this.player.on("loaded",(()=>{this.props.onReady(),this.refreshDuration()})),this.player.on("play",(()=>{this.props.onPlay(),this.refreshDuration()})),this.player.on("pause",this.props.onPause),this.player.on("seeked",(e=>this.props.onSeek(e.seconds))),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({seconds:e})=>{this.currentTime=e})),this.player.on("progress",(({seconds:e})=>{this.secondsLoaded=e})),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",(e=>this.props.onPlaybackRateChange(e.playbackRate)))}),this.props.onError)}refreshDuration(){this.player.getDuration().then((e=>{this.duration=e}))}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,t={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}i(l,"displayName","Vimeo"),i(l,"canPlay",L.canPlay.vimeo),i(l,"forceLoad",!0);const T=d(y),N=P({__proto__:null,default:T},[y]);export{N as V}; \ No newline at end of file +import{g as d,r as f}from"./index-BP8_t0zE.js";import{u as m,p as _}from"./VideoPlayer-D9RcWkc3.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!D.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},j=(e,t,r)=>(r=null!=e?g(O(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),E=e=>h(n({},"__esModule",{value:!0}),e),i=(e,t,r)=>(w(e,"symbol"!=typeof t?t+"":t,r),r),c={};M(c,{default:()=>l});var y=E(c),p=j(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=e=>e.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",(()=>{this.setMuted(!0)})),i(this,"unmute",(()=>{this.setMuted(!1)})),i(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then((t=>{if(!this.container)return;const{playerOptions:r,title:s}=this.props.config;this.player=new t.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...r}),this.player.ready().then((()=>{const e=this.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",s&&(e.title=s)})).catch(this.props.onError),this.player.on("loaded",(()=>{this.props.onReady(),this.refreshDuration()})),this.player.on("play",(()=>{this.props.onPlay(),this.refreshDuration()})),this.player.on("pause",this.props.onPause),this.player.on("seeked",(e=>this.props.onSeek(e.seconds))),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({seconds:e})=>{this.currentTime=e})),this.player.on("progress",(({seconds:e})=>{this.secondsLoaded=e})),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",(e=>this.props.onPlaybackRateChange(e.playbackRate)))}),this.props.onError)}refreshDuration(){this.player.getDuration().then((e=>{this.duration=e}))}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,t={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}i(l,"displayName","Vimeo"),i(l,"canPlay",L.canPlay.vimeo),i(l,"forceLoad",!0);const T=d(y),N=P({__proto__:null,default:T},[y]);export{N as V}; \ No newline at end of file diff --git a/storybook-static/assets/Wistia-DVfh-jZm.js b/storybook-static/assets/Wistia-BttYmsnc.js similarity index 91% rename from storybook-static/assets/Wistia-DVfh-jZm.js rename to storybook-static/assets/Wistia-BttYmsnc.js index d1b60dab23..46c2eb3418 100644 --- a/storybook-static/assets/Wistia-DVfh-jZm.js +++ b/storybook-static/assets/Wistia-BttYmsnc.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-BP8_t0zE.js";import{u as v,p as w}from"./VideoPlayer-C-s5d2fA.js";function O(e,t){for(var a=0;an[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(e,t,a)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,j=(e,t)=>{for(var a in t)i(e,a,{get:t[a],enumerable:!0})},h=(e,t,a,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of D(t))!S.call(e,l)&&l!==a&&i(e,l,{get:()=>t[l],enumerable:!(n=k(t,l))||n.enumerable});return e},I=(e,t,a)=>(a=null!=e?C(E(e)):{},h(e&&e.__esModule?a:i(a,"default",{value:e,enumerable:!0}),e)),M=e=>h(i({},"__esModule",{value:!0}),e),n=(e,t,a)=>(R(e,"symbol"!=typeof t?t+"":t,a),a),d={};j(d,{default:()=>l});var _=M(d),y=I(g),c=v,P=w;const W="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onSeek",((...e)=>this.props.onSeek(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onPlaybackRateChange",((...e)=>this.props.onPlaybackRateChange(...e))),n(this,"mute",(()=>{this.callPlayer("mute")})),n(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,muted:a,controls:n,onReady:l,config:s,onError:o}=this.props;(0,c.getSDK)(W,x).then((e=>{s.customControls&&s.customControls.forEach((t=>e.defineControl(t))),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:t,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:n,fullscreenButton:n,playbar:n,playbackRateControl:n,qualityControl:n,volumeControl:n,settingsControl:n,smallPlayButton:n,...s.options},onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),l()}})}),o)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,t=!0){this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,t=e&&e.match(P.MATCH_URL_WISTIA)[1],a=`wistia_embed wistia_async_${t}`;return y.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}n(l,"displayName","Wistia"),n(l,"canPlay",P.canPlay.wistia),n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; \ No newline at end of file +import{g as m,r as g}from"./index-BP8_t0zE.js";import{u as v,p as w}from"./VideoPlayer-D9RcWkc3.js";function O(e,t){for(var a=0;an[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(e,t,a)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,j=(e,t)=>{for(var a in t)i(e,a,{get:t[a],enumerable:!0})},h=(e,t,a,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of D(t))!S.call(e,l)&&l!==a&&i(e,l,{get:()=>t[l],enumerable:!(n=k(t,l))||n.enumerable});return e},I=(e,t,a)=>(a=null!=e?C(E(e)):{},h(e&&e.__esModule?a:i(a,"default",{value:e,enumerable:!0}),e)),M=e=>h(i({},"__esModule",{value:!0}),e),n=(e,t,a)=>(R(e,"symbol"!=typeof t?t+"":t,a),a),d={};j(d,{default:()=>l});var _=M(d),y=I(g),c=v,P=w;const W="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onSeek",((...e)=>this.props.onSeek(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onPlaybackRateChange",((...e)=>this.props.onPlaybackRateChange(...e))),n(this,"mute",(()=>{this.callPlayer("mute")})),n(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,muted:a,controls:n,onReady:l,config:o,onError:s}=this.props;(0,c.getSDK)(W,x).then((e=>{o.customControls&&o.customControls.forEach((t=>e.defineControl(t))),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:t,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:n,fullscreenButton:n,playbar:n,playbackRateControl:n,qualityControl:n,volumeControl:n,settingsControl:n,smallPlayButton:n,...o.options},onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),l()}})}),s)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,t=!0){this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,t=e&&e.match(P.MATCH_URL_WISTIA)[1],a=`wistia_embed wistia_async_${t}`;return y.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}n(l,"displayName","Wistia"),n(l,"canPlay",P.canPlay.wistia),n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; \ No newline at end of file diff --git a/storybook-static/assets/WithTooltip-V3YHNWJZ-DxLX0qq7.js b/storybook-static/assets/WithTooltip-V3YHNWJZ-Bzm03E-l.js similarity index 76% rename from storybook-static/assets/WithTooltip-V3YHNWJZ-DxLX0qq7.js rename to storybook-static/assets/WithTooltip-V3YHNWJZ-Bzm03E-l.js index 842cea0851..310e220d32 100644 --- a/storybook-static/assets/WithTooltip-V3YHNWJZ-DxLX0qq7.js +++ b/storybook-static/assets/WithTooltip-V3YHNWJZ-Bzm03E-l.js @@ -1 +1 @@ -import{W as u,W as x,a as P}from"./index-DcmRRetP.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{u as WithToolTipState,x as WithTooltip,P as WithTooltipPure}; \ No newline at end of file +import{W as u,W as x,a as P}from"./index-u2PVOEPH.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{u as WithToolTipState,x as WithTooltip,P as WithTooltipPure}; \ No newline at end of file diff --git a/storybook-static/assets/YouTube-DTxXCrai.js b/storybook-static/assets/YouTube-CVBc-gT_.js similarity index 98% rename from storybook-static/assets/YouTube-DTxXCrai.js rename to storybook-static/assets/YouTube-CVBc-gT_.js index 1519aea670..fcf6c52670 100644 --- a/storybook-static/assets/YouTube-DTxXCrai.js +++ b/storybook-static/assets/YouTube-CVBc-gT_.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-BP8_t0zE.js";import{u as L,p as M}from"./VideoPlayer-C-s5d2fA.js";function Y(e,t){for(var a=0;as[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var k=Object.create,u=Object.defineProperty,N=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(e,t,a)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t)u(e,a,{get:t[a],enumerable:!0})},v=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of j(t))!B.call(e,o)&&o!==a&&u(e,o,{get:()=>t[o],enumerable:!(s=N(t,o))||s.enumerable});return e},F=(e,t,a)=>(a=null!=e?k(V(e)):{},v(e&&e.__esModule?a:u(a,"default",{value:e,enumerable:!0}),e)),H=e=>v(u({},"__esModule",{value:!0}),e),s=(e,t,a)=>(x(e,"symbol"!=typeof t?t+"":t,a),a),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=M;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),s(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:s,onBuffer:o,onBufferEnd:r,onEnded:l,onReady:n,loop:i,config:{playerVars:p,onUnstarted:y}}=this.props,{UNSTARTED:c,PLAYING:u,PAUSED:d,BUFFERING:h,ENDED:f,CUED:P}=window[T].PlayerState;if(t===c&&y(),t===u&&(a(),r()),t===d&&s(),t===h&&o(),t===f){const e=!!this.callPlayer("getPlaylist");i&&!e&&(p.start?this.seekTo(p.start):this.play()),l()}t===P&&n()})),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unMute")})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:s,playsinline:o,controls:r,loop:l,config:n,onError:i}=this.props,{playerVars:y,embedOptions:c}=n,u=this.getID(e);if(t)return f.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:u,startSeconds:(0,p.parseStartTime)(e)||y.start,endSeconds:(0,p.parseEndTime)(e)||y.end});(0,p.getSDK)(G,T,z,(e=>e.loaded)).then((t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:s?1:0,controls:r?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...y},events:{onReady:()=>{l&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:Q.test(e)?Z:void 0,...c}))}),i),c.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube"),s(O,"canPlay",D.canPlay.youtube);const $=U(S),W=Y({__proto__:null,default:$},[S]);export{W as Y}; \ No newline at end of file +import{g as U,r as I}from"./index-BP8_t0zE.js";import{u as L,p as M}from"./VideoPlayer-D9RcWkc3.js";function Y(e,t){for(var a=0;as[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var k=Object.create,u=Object.defineProperty,N=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(e,t,a)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t)u(e,a,{get:t[a],enumerable:!0})},v=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of j(t))!B.call(e,o)&&o!==a&&u(e,o,{get:()=>t[o],enumerable:!(s=N(t,o))||s.enumerable});return e},F=(e,t,a)=>(a=null!=e?k(V(e)):{},v(e&&e.__esModule?a:u(a,"default",{value:e,enumerable:!0}),e)),H=e=>v(u({},"__esModule",{value:!0}),e),s=(e,t,a)=>(x(e,"symbol"!=typeof t?t+"":t,a),a),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=M;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),s(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:s,onBuffer:o,onBufferEnd:r,onEnded:l,onReady:n,loop:i,config:{playerVars:p,onUnstarted:y}}=this.props,{UNSTARTED:c,PLAYING:u,PAUSED:d,BUFFERING:h,ENDED:f,CUED:P}=window[T].PlayerState;if(t===c&&y(),t===u&&(a(),r()),t===d&&s(),t===h&&o(),t===f){const e=!!this.callPlayer("getPlaylist");i&&!e&&(p.start?this.seekTo(p.start):this.play()),l()}t===P&&n()})),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unMute")})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:s,playsinline:o,controls:r,loop:l,config:n,onError:i}=this.props,{playerVars:y,embedOptions:c}=n,u=this.getID(e);if(t)return f.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:u,startSeconds:(0,p.parseStartTime)(e)||y.start,endSeconds:(0,p.parseEndTime)(e)||y.end});(0,p.getSDK)(G,T,z,(e=>e.loaded)).then((t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:s?1:0,controls:r?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...y},events:{onReady:()=>{l&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:Q.test(e)?Z:void 0,...c}))}),i),c.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube"),s(O,"canPlay",D.canPlay.youtube);const $=U(S),W=Y({__proto__:null,default:$},[S]);export{W as Y}; \ No newline at end of file diff --git a/storybook-static/assets/formatter-SWP5E3XI-BJc8U_Su.js b/storybook-static/assets/formatter-SWP5E3XI-CI3Tyzsb.js similarity index 99% rename from storybook-static/assets/formatter-SWP5E3XI-BJc8U_Su.js rename to storybook-static/assets/formatter-SWP5E3XI-CI3Tyzsb.js index e1187f3bdd..44b623491e 100644 --- a/storybook-static/assets/formatter-SWP5E3XI-BJc8U_Su.js +++ b/storybook-static/assets/formatter-SWP5E3XI-CI3Tyzsb.js @@ -1,4 +1,4 @@ -import{_ as ea,m as pl,b as ta}from"./index-DcmRRetP.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var cl=ta({"node_modules/prettier/parser-html.js"(e,t){!function(r){if("object"==typeof e&&"object"==typeof t)t.exports=r();else if("function"==typeof define&&define.amd)define(r);else{var n=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};n.prettierPlugins=n.prettierPlugins||{},n.prettierPlugins.html=r()}}((function(){var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),u=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),i=e(((e,t)=>{var r=u(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),s=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),a=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),o=e(((e,t)=>{var r=u(),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);t.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}})),l=e(((e,t)=>{var r=o(),n=r({}.toString),u=r("".slice);t.exports=function(e){return u(n(e),8,-1)}})),p=e(((e,t)=>{var n=o(),u=r(),i=l(),s=Object,a=n("".split);t.exports=u((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s})),c=e(((e,t)=>{t.exports=function(e){return null==e}})),D=e(((e,t)=>{var r=c(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),d=e(((e,t)=>{var r=p(),n=D();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),h=e(((e,t)=>{var r=m(),n=f(),u=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===u}:function(e){return"object"==typeof e?null!==e:r(e)}})),g=e(((e,r)=>{var n=t(),u=m();r.exports=function(e,t){return arguments.length<2?function(e){return u(e)?e:void 0}(n[e]):n[e]&&n[e][t]}})),y=e(((e,t)=>{var r=o();t.exports=r({}.isPrototypeOf)})),E=e(((e,t)=>{var r=g();t.exports=r("navigator","userAgent")||""})),C=e(((e,r)=>{var n,u,i=t(),s=E(),a=i.process,o=i.Deno,l=a&&a.versions||o&&o.version,p=l&&l.v8;p&&(u=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!u&&s&&((!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&((n=s.match(/Chrome\/(\d+)/))&&(u=+n[1]))),r.exports=u})),F=e(((e,t)=>{var n=C(),u=r();t.exports=!!Object.getOwnPropertySymbols&&!u((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),A=e(((e,t)=>{var r=F();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),v=e(((e,t)=>{var r=g(),n=m(),u=y(),i=A(),s=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&u(t.prototype,s(e))}})),b=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),S=e(((e,t)=>{var r=m(),n=b(),u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not a function")}})),x=e(((e,t)=>{var r=S(),n=c();t.exports=function(e,t){var u=e[t];return n(u)?void 0:r(u)}})),T=e(((e,t)=>{var r=i(),n=m(),u=h(),s=TypeError;t.exports=function(e,t){var i,a;if("string"===t&&n(i=e.toString)&&!u(a=r(i,e))||n(i=e.valueOf)&&!u(a=r(i,e))||"string"!==t&&n(i=e.toString)&&!u(a=r(i,e)))return a;throw s("Can't convert object to primitive value")}})),B=e(((e,t)=>{t.exports=!1})),w=e(((e,r)=>{var n=t(),u=Object.defineProperty;r.exports=function(e,t){try{u(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),N=e(((e,r)=>{var n=t(),u=w(),i="__core-js_shared__",s=n[i]||u(i,{});r.exports=s})),_=e(((e,t)=>{var r=B(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),k=e(((e,t)=>{var r=D(),n=Object;t.exports=function(e){return n(r(e))}})),P=e(((e,t)=>{var r=o(),n=k(),u=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return u(n(e),t)}})),O=e(((e,t)=>{var r=o(),n=0,u=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+u,36)}})),I=e(((e,r)=>{var n=t(),u=_(),i=P(),s=O(),a=F(),o=A(),l=u("wks"),p=n.Symbol,c=p&&p.for,D=o?p:p&&p.withoutSetter||s;r.exports=function(e){if(!i(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&i(p,e)?l[e]=p[e]:l[e]=o&&c?c(t):D(t)}return l[e]}})),j=e(((e,t)=>{var r=i(),n=h(),u=v(),s=x(),a=T(),o=I(),l=TypeError,p=o("toPrimitive");t.exports=function(e,t){if(!n(e)||u(e))return e;var i,o=s(e,p);if(o){if(void 0===t&&(t="default"),i=r(o,e,t),!n(i)||u(i))return i;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}})),L=e(((e,t)=>{var r=j(),n=v();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),$=e(((e,r)=>{var n=t(),u=h(),i=n.document,s=u(i)&&u(i.createElement);r.exports=function(e){return s?i.createElement(e):{}}})),R=e(((e,t)=>{var u=n(),i=r(),s=$();t.exports=!u&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))})),M=e((e=>{var t=n(),r=i(),u=s(),o=a(),l=d(),p=L(),c=P(),D=R(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=p(t),D)try{return f(e,t)}catch{}if(c(e,t))return o(!r(u.f,e,t),e[t])}})),q=e(((e,t)=>{var u=n(),i=r();t.exports=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),V=e(((e,t)=>{var r=h(),n=String,u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not an object")}})),U=e((e=>{var t=n(),r=R(),u=q(),i=V(),s=L(),a=TypeError,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",D="writable";e.f=t?u?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&D in r&&!r[D]){var n=l(e,t);n&&n[D]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return o(e,t,r)}:o:function(e,t,n){if(i(e),t=s(t),i(n),r)try{return o(e,t,n)}catch{}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),W=e(((e,t)=>{var r=n(),u=U(),i=a();t.exports=r?function(e,t,r){return u.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}})),G=e(((e,t)=>{var r=n(),u=P(),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=u(i,"name"),o=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:o,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=o(),n=m(),u=N(),i=r(Function.toString);n(u.inspectSource)||(u.inspectSource=function(e){return i(e)}),t.exports=u.inspectSource})),X=e(((e,r)=>{var n=t(),u=m(),i=n.WeakMap;r.exports=u(i)&&/native code/.test(String(i))})),J=e(((e,t)=>{var r=_(),n=O(),u=r("keys");t.exports=function(e){return u[e]||(u[e]=n(e))}})),z=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,u,i,s,a,o=X(),l=t(),p=h(),c=W(),D=P(),d=N(),f=J(),m=z(),g="Object already initialized",y=l.TypeError,E=l.WeakMap;o||d.state?((s=d.state||(d.state=new E)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw y(g);return t.facade=e,s.set(e,t),t},u=function(e){return s.get(e)||{}},i=function(e){return s.has(e)}):(m[a=f("state")]=!0,n=function(e,t){if(D(e,a))throw y(g);return t.facade=e,c(e,a,t),t},u=function(e){return D(e,a)?e[a]:{}},i=function(e){return D(e,a)}),r.exports={set:n,get:u,has:i,enforce:function(e){return i(e)?u(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=u(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}})),Q=e(((e,t)=>{var u=r(),i=m(),s=P(),a=n(),o=G().CONFIGURABLE,l=H(),p=Y(),c=p.enforce,D=p.get,d=Object.defineProperty,f=a&&!u((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||o&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return s(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&D(this).source||l(this)}),"toString")})),K=e(((e,t)=>{var r=m(),n=U(),u=Q(),i=w();t.exports=function(e,t,s,a){a||(a={});var o=a.enumerable,l=void 0!==a.name?a.name:t;if(r(s)&&u(s,l,a),a.global)o?e[t]=s:i(t,s);else{try{a.unsafe?e[t]&&(o=!0):delete e[t]}catch{}o?e[t]=s:n.f(e,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}})),Z=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),ee=e(((e,t)=>{var r=Z();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),te=e(((e,t)=>{var r=ee(),n=Math.max,u=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):u(i,t)}})),re=e(((e,t)=>{var r=ee(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ne=e(((e,t)=>{var r=re();t.exports=function(e){return r(e.length)}})),ue=e(((e,t)=>{var r=d(),n=te(),u=ne(),i=function(e){return function(t,i,s){var a,o=r(t),l=u(o),p=n(s,l);if(e&&i!=i){for(;l>p;)if((a=o[p++])!=a)return!0}else for(;l>p;p++)if((e||p in o)&&o[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ie=e(((e,t)=>{var r=o(),n=P(),u=d(),i=ue().indexOf,s=z(),a=r([].push);t.exports=function(e,t){var r,o=u(e),l=0,p=[];for(r in o)!n(s,r)&&n(o,r)&&a(p,r);for(;t.length>l;)n(o,r=t[l++])&&(~i(p,r)||a(p,r));return p}})),se=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ae=e((e=>{var t=ie(),r=se().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),oe=e((e=>{e.f=Object.getOwnPropertySymbols})),le=e(((e,t)=>{var r=g(),n=o(),u=ae(),i=oe(),s=V(),a=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=u.f(s(e)),r=i.f;return r?a(t,r(e)):t}})),pe=e(((e,t)=>{var r=P(),n=le(),u=M(),i=U();t.exports=function(e,t,s){for(var a=n(t),o=i.f,l=u.f,p=0;p{var n=r(),u=m(),i=/#|\.prototype\./,s=function(e,t){var r=o[a(e)];return r==p||r!=l&&(u(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=s.data={},l=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s})),De=e(((e,r)=>{var n=t(),u=M().f,i=W(),s=K(),a=w(),o=pe(),l=ce();r.exports=function(e,t){var r,p,c,D,d,f=e.target,m=e.global,h=e.stat;if(r=m?n:h?n[f]||a(f,{}):(n[f]||{}).prototype)for(p in t){if(D=t[p],e.dontCallGetSet?c=(d=u(r,p))&&d.value:c=r[p],!l(m?p:f+(h?".":"#")+p,e.forced)&&void 0!==c){if(typeof D==typeof c)continue;o(D,c)}(e.sham||c&&c.sham)&&i(D,"sham",!0),s(r,p,D,e)}}})),de=e((()=>{var e=De(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),fe=e((()=>{de()})),me=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),he=e(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),ge=e(((e,t)=>{var r=l(),n=o();t.exports=function(e){if("Function"===r(e))return n(e)}})),ye=e(((e,t)=>{var r=ge(),n=S(),i=u(),s=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}})),Ee=e(((e,t)=>{var r=me(),n=ne(),u=he(),i=ye(),s=function(e,t,a,o,l,p,c,D){for(var d,f,m=l,h=0,g=!!c&&i(c,D);h0&&r(d)?(f=n(d),m=s(e,t,d,f,m,p-1)-1):(u(m+1),e[m]=d),m++),h++;return m};t.exports=s})),Ce=e(((e,t)=>{var r={};r[I()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Fe=e(((e,t)=>{var r=Ce(),n=m(),u=l(),i=I()("toStringTag"),s=Object,a="Arguments"==u(function(){return arguments}());t.exports=r?u:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=s(e),i))?r:a?u(t):"Object"==(o=u(t))&&n(t.callee)?"Arguments":o}})),Ae=e(((e,t)=>{var n=o(),u=r(),i=m(),s=Fe(),a=g(),l=H(),p=function(){},c=[],D=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.exec(p),y=function(e){if(!i(e))return!1;try{return D(p,c,e),!0}catch{return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch{return!0}};E.sham=!0,t.exports=!D||u((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y})),ve=e(((e,t)=>{var r=me(),n=Ae(),u=h(),i=I()("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,n(t)&&(t===s||r(t.prototype))?t=void 0:u(t)&&(null===(t=t[i])&&(t=void 0))),void 0===t?s:t}})),be=e(((e,t)=>{var r=ve();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Se=e((()=>{var e=De(),t=Ee(),r=S(),n=k(),u=ne(),i=be();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=n(this),o=u(a);return r(e),(s=i(a,0)).length=t(s,a,a,o,0,1,e,arguments.length>1?arguments[1]:void 0),s}})})),xe=e(((e,t)=>{t.exports={}})),Te=e(((e,t)=>{var r=I(),n=xe(),u=r("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[u]===e)}})),Be=e(((e,t)=>{var r=Fe(),n=x(),u=c(),i=xe(),s=I()("iterator");t.exports=function(e){if(!u(e))return n(e,s)||n(e,"@@iterator")||i[r(e)]}})),we=e(((e,t)=>{var r=i(),n=S(),u=V(),s=b(),a=Be(),o=TypeError;t.exports=function(e,t){var i=arguments.length<2?a(e):t;if(n(i))return u(r(i,e));throw o(s(e)+" is not iterable")}})),Ne=e(((e,t)=>{var r=i(),n=V(),u=x();t.exports=function(e,t,i){var s,a;n(e);try{if(!(s=u(e,"return"))){if("throw"===t)throw i;return i}s=r(s,e)}catch(o){a=!0,s=o}if("throw"===t)throw i;if(a)throw s;return n(s),i}})),_e=e(((e,t)=>{var r=ye(),n=i(),u=V(),s=b(),a=Te(),o=ne(),l=y(),p=we(),c=Be(),D=Ne(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,i){var h,g,y,E,C,F,A,v=i&&i.that,b=!(!i||!i.AS_ENTRIES),S=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),B=r(t,v),w=function(e){return h&&D(h,"normal",e),new f(!0,e)},N=function(e){return b?(u(e),T?B(e[0],e[1],w):B(e[0],e[1])):T?B(e,w):B(e)};if(S)h=e.iterator;else if(x)h=e;else{if(!(g=c(e)))throw d(s(e)+" is not iterable");if(a(g)){for(y=0,E=o(e);E>y;y++)if((C=N(e[y]))&&l(m,C))return C;return new f(!1)}h=p(e,g)}for(F=S?e.next:h.next;!(A=n(F,h)).done;){try{C=N(A.value)}catch(_){D(h,"throw",_)}if("object"==typeof C&&C&&l(m,C))return C}return new f(!1)}})),ke=e(((e,t)=>{var r=L(),n=U(),u=a();t.exports=function(e,t,i){var s=r(t);s in e?n.f(e,s,u(0,i)):e[s]=i}})),Pe=e((()=>{var e=De(),t=_e(),r=ke();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,(function(e,t){r(n,e,t)}),{AS_ENTRIES:!0}),n}})})),Oe=e(((e,t)=>{var r=["cliName","cliCategory","cliDescription"];function n(e,t){if(null==e)return{};var r,n,u=function(e,t){if(null==e)return{};var r,n,u={},i=Object.keys(e);for(n=0;n=0)&&(u[r]=e[r]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}fe(),Se(),Pe();var u,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},D=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))!p.call(e,u)&&u!==r&&s(e,u,{get:()=>t[u],enumerable:!(n=a(t,u))||n.enumerable});return e},m=e=>f(s({},"__esModule",{value:!0}),e),h=c({""(){u={env:{},argv:[]}}}),g=D({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return e.$0<=t&&t<=e.$9}h(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),y=D({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;e.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,r,n){let u=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,i=this.cache.get(u);return i||(i=new t(e,r,n),this.cache.set(u,i)),i}}}}),E=D({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===s}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.dashCaseToCamelCase=function(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;rn(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((u=>{r[u]=n(e[u],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},e.SyncAsync={assertSync:e=>{if(a(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>a(e)?e.then(t):t(e),all:e=>e.some(a)?Promise.all(e):e},e.error=function(e){throw new Error(`Internal Error: ${e}`)},e.syntaxError=function(e,t){let r=Error(e);return r[u]=!0,t&&(r[i]=t),r};var u="ngSyntaxError",i="ngParseErrors";e.isSyntaxError=function(e){return e[u]},e.getParseErrors=function(e){return e[i]||[]},e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var s=Object.getPrototypeOf({});function a(e){return!!e&&"function"==typeof e.then}e.utf8Encode=function(e){let t="";for(let r=0;r=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=a;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var o=typeof window<"u"&&window,l=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,p=typeof globalThis<"u"&&globalThis||o||l;e.global=p}}),C=D({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=y(),r=E(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function u(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=u;var i,s,a=0;function o(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let i=r.stringify(n);return i.indexOf("(")>=0?(i="anonymous_"+a++,n.__anonymousType=i):i=u(i),i}e.identifierName=o,e.identifierModuleUrl=function(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`},e.viewClassName=function(e,t){return`View_${o({reference:e})}_${t}`},e.rendererTypeName=function(e){return`RenderType_${o({reference:e})}`},e.hostViewClassName=function(e){return`HostView_${o({reference:e})}`},e.componentFactoryName=function(e){return`${o({reference:e})}NgFactory`},(s=i=e.CompileSummaryKind||(e.CompileSummaryKind={}))[s.Pipe=0]="Pipe",s[s.Directive=1]="Directive",s[s.NgModule=2]="NgModule",s[s.Injectable=3]="Injectable",e.tokenName=function(e){return null!=e.value?u(e.value):o(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=p(t),this.styleUrls=p(r)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:u,styles:i,styleUrls:s,externalStylesheets:a,animations:o,ngContentSelectors:l,interpolation:D,isInline:d,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=u,this.styles=p(i),this.styleUrls=p(s),this.externalStylesheets=p(a),this.animations=o?c(o):[],this.ngContentSelectors=l||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=d,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var l=class{static create(e){let{isHost:t,type:u,isComponent:i,selector:s,exportAs:a,changeDetection:o,inputs:p,outputs:c,host:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e,v={},b={},S={};null!=D&&Object.keys(D).forEach((e=>{let t=D[e],r=e.match(n);null===r?S[e]=t:null!=r[1]?b[r[1]]=t:null!=r[2]&&(v[r[2]]=t)}));let x={};null==p||p.forEach((e=>{let t=r.splitAtColon(e,[e,e]);x[t[0]]=t[1]}));let T={};return null==c||c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);T[t[0]]=t[1]})),new l({isHost:t,type:u,isComponent:!!i,selector:s,exportAs:a,changeDetection:o,inputs:x,outputs:T,hostListeners:v,hostProperties:b,hostAttributes:S,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,hostListeners:l,hostProperties:c,hostAttributes:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=u,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=o,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=D,this.providers=p(d),this.viewProviders=p(f),this.queries=p(m),this.guards=h,this.viewQueries=p(g),this.entryComponents=p(y),this.template=E,this.componentViewType=C,this.rendererType=F,this.componentFactory=A}toSummary(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=l;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:u,declaredPipes:i,exportedPipes:s,entryComponents:a,bootstrapComponents:o,importedModules:l,exportedModules:c,schemas:D,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=p(n),this.exportedDirectives=p(u),this.declaredPipes=p(i),this.exportedPipes=p(s),this.providers=p(r),this.entryComponents=p(a),this.bootstrapComponents=p(o),this.importedModules=p(l),this.exportedModules=p(c),this.schemas=p(D),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};function p(e){return e||[]}e.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function c(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?c(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:u,useFactory:i,deps:s,multi:a}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=u,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}},e.flatten=c,e.templateSourceUrl=function(e,r,n){let u;return u=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${o(e)}/${o(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?u:D(u)},e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g);return D(`css/${t}${r[r.length-1]}.ngstyle.js`)},e.ngModuleJitUrl=function(e){return D(`${o(e.type)}/module.ngfactory.js`)},e.templateJitUrl=function(e,t){return D(`${o(e)}/${o(t.type)}.ngfactory.js`)}}}),F=D({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=g(),r=C(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,u=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==t.$LF){s--;let e=r.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));a=e>0?i-e:i}else a--;for(;i0;){let n=r.charCodeAt(i);i++,e--,n==t.$LF?(s++,a=0):a++}return new n(this.file,i,s,a)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let u=n,i=0,s=0;for(;i0&&(n--,i++,"\n"!=r[n]||++s!=t););for(i=0,s=0;i2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new n(new u("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(s=i=e.ParseErrorLevel||(e.ParseErrorLevel={}))[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR";e.ParseError=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${i[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},e.typeSourceSpan=function(e,t){let i=r.identifierModuleUrl(t),s=null!=i?`in ${e} ${r.identifierName(t)} in ${i}`:`in ${e} ${r.identifierName(t)}`,o=new u("",s);return new a(new n(o,-1,-1,-1),new n(o,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,r){let i=new u("",`in ${e} ${t} in ${r}`);return new a(new n(i,-1,-1,-1),new n(i,-1,-1,-1))}}}),A=D({"src/utils/front-matter/parse.js"(e,t){h();var r=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:u,value:i="",endDelimiter:s}=t.groups,a=u.trim()||"yaml";if("+++"===n&&(a="toml"),"yaml"!==a&&n!==s)return{content:e};let[o]=t;return{frontMatter:{type:"front-matter",lang:a,value:i,startDelimiter:n,endDelimiter:s,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+e.slice(o.length)}}}}),v=D({"src/utils/get-last.js"(e,t){h();t.exports=e=>e[e.length-1]}}),b=D({"src/common/parser-create-error.js"(e,t){h(),t.exports=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),S={};function x(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}d(S,{default:()=>x});var T=c({"node_modules/escape-string-regexp/index.js"(){h()}}),B=D({"node_modules/semver/internal/debug.js"(e,t){h();var r="object"==typeof u&&u.env&&u.env.NODE_DEBUG&&/\bsemver\b/i.test(u.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};t.exports=r}}),w=D({"node_modules/semver/internal/constants.js"(e,t){h();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),N=D({"node_modules/semver/internal/re.js"(e,t){h();var{MAX_SAFE_COMPONENT_LENGTH:r}=w(),n=B(),u=(e=t.exports={}).re=[],i=e.src=[],s=e.t={},a=0,o=(e,t,r)=>{let o=a++;n(e,o,t),s[e]=o,i[o]=t,u[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),o("FULL",`^${i[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),o("LOOSE",`^${i[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),o("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",o("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",o("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),_=D({"node_modules/semver/internal/parse-options.js"(e,t){h();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}}}),k=D({"node_modules/semver/internal/identifiers.js"(e,t){h();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),u=r.test(t);return n&&u&&(e=+e,t=+t),e===t?0:n&&!u?-1:u&&!n?1:en(t,e)}}}),P=D({"node_modules/semver/classes/semver.js"(e,t){h();var r=B(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:u}=w(),{re:i,t:s}=N(),a=_(),{compareIdentifiers:o}=k(),l=class{constructor(e,t){if(t=a(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===o(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};t.exports=l}}),O=D({"node_modules/semver/functions/compare.js"(e,t){h();var r=P();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),I=D({"node_modules/semver/functions/lt.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)<0}}),j=D({"node_modules/semver/functions/gte.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)>=0}}),L=D({"src/utils/arrayify.js"(e,t){h(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)}))}}),$=D({"package.json"(e,t){t.exports={version:"2.8.8"}}}),R=D({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;t()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),u=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),i=e(((e,t)=>{var r=u(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),s=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),a=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),o=e(((e,t)=>{var r=u(),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);t.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}})),l=e(((e,t)=>{var r=o(),n=r({}.toString),u=r("".slice);t.exports=function(e){return u(n(e),8,-1)}})),p=e(((e,t)=>{var n=o(),u=r(),i=l(),s=Object,a=n("".split);t.exports=u((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s})),c=e(((e,t)=>{t.exports=function(e){return null==e}})),D=e(((e,t)=>{var r=c(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),d=e(((e,t)=>{var r=p(),n=D();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),h=e(((e,t)=>{var r=m(),n=f(),u=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===u}:function(e){return"object"==typeof e?null!==e:r(e)}})),g=e(((e,r)=>{var n=t(),u=m();r.exports=function(e,t){return arguments.length<2?function(e){return u(e)?e:void 0}(n[e]):n[e]&&n[e][t]}})),y=e(((e,t)=>{var r=o();t.exports=r({}.isPrototypeOf)})),E=e(((e,t)=>{var r=g();t.exports=r("navigator","userAgent")||""})),C=e(((e,r)=>{var n,u,i=t(),s=E(),a=i.process,o=i.Deno,l=a&&a.versions||o&&o.version,p=l&&l.v8;p&&(u=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!u&&s&&((!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&((n=s.match(/Chrome\/(\d+)/))&&(u=+n[1]))),r.exports=u})),F=e(((e,t)=>{var n=C(),u=r();t.exports=!!Object.getOwnPropertySymbols&&!u((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),A=e(((e,t)=>{var r=F();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),v=e(((e,t)=>{var r=g(),n=m(),u=y(),i=A(),s=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&u(t.prototype,s(e))}})),b=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),S=e(((e,t)=>{var r=m(),n=b(),u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not a function")}})),x=e(((e,t)=>{var r=S(),n=c();t.exports=function(e,t){var u=e[t];return n(u)?void 0:r(u)}})),T=e(((e,t)=>{var r=i(),n=m(),u=h(),s=TypeError;t.exports=function(e,t){var i,a;if("string"===t&&n(i=e.toString)&&!u(a=r(i,e))||n(i=e.valueOf)&&!u(a=r(i,e))||"string"!==t&&n(i=e.toString)&&!u(a=r(i,e)))return a;throw s("Can't convert object to primitive value")}})),B=e(((e,t)=>{t.exports=!1})),w=e(((e,r)=>{var n=t(),u=Object.defineProperty;r.exports=function(e,t){try{u(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),N=e(((e,r)=>{var n=t(),u=w(),i="__core-js_shared__",s=n[i]||u(i,{});r.exports=s})),_=e(((e,t)=>{var r=B(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),k=e(((e,t)=>{var r=D(),n=Object;t.exports=function(e){return n(r(e))}})),P=e(((e,t)=>{var r=o(),n=k(),u=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return u(n(e),t)}})),O=e(((e,t)=>{var r=o(),n=0,u=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+u,36)}})),I=e(((e,r)=>{var n=t(),u=_(),i=P(),s=O(),a=F(),o=A(),l=u("wks"),p=n.Symbol,c=p&&p.for,D=o?p:p&&p.withoutSetter||s;r.exports=function(e){if(!i(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&i(p,e)?l[e]=p[e]:l[e]=o&&c?c(t):D(t)}return l[e]}})),j=e(((e,t)=>{var r=i(),n=h(),u=v(),s=x(),a=T(),o=I(),l=TypeError,p=o("toPrimitive");t.exports=function(e,t){if(!n(e)||u(e))return e;var i,o=s(e,p);if(o){if(void 0===t&&(t="default"),i=r(o,e,t),!n(i)||u(i))return i;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}})),L=e(((e,t)=>{var r=j(),n=v();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),$=e(((e,r)=>{var n=t(),u=h(),i=n.document,s=u(i)&&u(i.createElement);r.exports=function(e){return s?i.createElement(e):{}}})),R=e(((e,t)=>{var u=n(),i=r(),s=$();t.exports=!u&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))})),M=e((e=>{var t=n(),r=i(),u=s(),o=a(),l=d(),p=L(),c=P(),D=R(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=p(t),D)try{return f(e,t)}catch{}if(c(e,t))return o(!r(u.f,e,t),e[t])}})),q=e(((e,t)=>{var u=n(),i=r();t.exports=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),V=e(((e,t)=>{var r=h(),n=String,u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not an object")}})),U=e((e=>{var t=n(),r=R(),u=q(),i=V(),s=L(),a=TypeError,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",D="writable";e.f=t?u?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&D in r&&!r[D]){var n=l(e,t);n&&n[D]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return o(e,t,r)}:o:function(e,t,n){if(i(e),t=s(t),i(n),r)try{return o(e,t,n)}catch{}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),W=e(((e,t)=>{var r=n(),u=U(),i=a();t.exports=r?function(e,t,r){return u.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}})),G=e(((e,t)=>{var r=n(),u=P(),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=u(i,"name"),o=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:o,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=o(),n=m(),u=N(),i=r(Function.toString);n(u.inspectSource)||(u.inspectSource=function(e){return i(e)}),t.exports=u.inspectSource})),X=e(((e,r)=>{var n=t(),u=m(),i=n.WeakMap;r.exports=u(i)&&/native code/.test(String(i))})),J=e(((e,t)=>{var r=_(),n=O(),u=r("keys");t.exports=function(e){return u[e]||(u[e]=n(e))}})),z=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,u,i,s,a,o=X(),l=t(),p=h(),c=W(),D=P(),d=N(),f=J(),m=z(),g="Object already initialized",y=l.TypeError,E=l.WeakMap;o||d.state?((s=d.state||(d.state=new E)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw y(g);return t.facade=e,s.set(e,t),t},u=function(e){return s.get(e)||{}},i=function(e){return s.has(e)}):(m[a=f("state")]=!0,n=function(e,t){if(D(e,a))throw y(g);return t.facade=e,c(e,a,t),t},u=function(e){return D(e,a)?e[a]:{}},i=function(e){return D(e,a)}),r.exports={set:n,get:u,has:i,enforce:function(e){return i(e)?u(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=u(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}})),Q=e(((e,t)=>{var u=r(),i=m(),s=P(),a=n(),o=G().CONFIGURABLE,l=H(),p=Y(),c=p.enforce,D=p.get,d=Object.defineProperty,f=a&&!u((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||o&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return s(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&D(this).source||l(this)}),"toString")})),K=e(((e,t)=>{var r=m(),n=U(),u=Q(),i=w();t.exports=function(e,t,s,a){a||(a={});var o=a.enumerable,l=void 0!==a.name?a.name:t;if(r(s)&&u(s,l,a),a.global)o?e[t]=s:i(t,s);else{try{a.unsafe?e[t]&&(o=!0):delete e[t]}catch{}o?e[t]=s:n.f(e,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}})),Z=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),ee=e(((e,t)=>{var r=Z();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),te=e(((e,t)=>{var r=ee(),n=Math.max,u=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):u(i,t)}})),re=e(((e,t)=>{var r=ee(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ne=e(((e,t)=>{var r=re();t.exports=function(e){return r(e.length)}})),ue=e(((e,t)=>{var r=d(),n=te(),u=ne(),i=function(e){return function(t,i,s){var a,o=r(t),l=u(o),p=n(s,l);if(e&&i!=i){for(;l>p;)if((a=o[p++])!=a)return!0}else for(;l>p;p++)if((e||p in o)&&o[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ie=e(((e,t)=>{var r=o(),n=P(),u=d(),i=ue().indexOf,s=z(),a=r([].push);t.exports=function(e,t){var r,o=u(e),l=0,p=[];for(r in o)!n(s,r)&&n(o,r)&&a(p,r);for(;t.length>l;)n(o,r=t[l++])&&(~i(p,r)||a(p,r));return p}})),se=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ae=e((e=>{var t=ie(),r=se().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),oe=e((e=>{e.f=Object.getOwnPropertySymbols})),le=e(((e,t)=>{var r=g(),n=o(),u=ae(),i=oe(),s=V(),a=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=u.f(s(e)),r=i.f;return r?a(t,r(e)):t}})),pe=e(((e,t)=>{var r=P(),n=le(),u=M(),i=U();t.exports=function(e,t,s){for(var a=n(t),o=i.f,l=u.f,p=0;p{var n=r(),u=m(),i=/#|\.prototype\./,s=function(e,t){var r=o[a(e)];return r==p||r!=l&&(u(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=s.data={},l=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s})),De=e(((e,r)=>{var n=t(),u=M().f,i=W(),s=K(),a=w(),o=pe(),l=ce();r.exports=function(e,t){var r,p,c,D,d,f=e.target,m=e.global,h=e.stat;if(r=m?n:h?n[f]||a(f,{}):(n[f]||{}).prototype)for(p in t){if(D=t[p],e.dontCallGetSet?c=(d=u(r,p))&&d.value:c=r[p],!l(m?p:f+(h?".":"#")+p,e.forced)&&void 0!==c){if(typeof D==typeof c)continue;o(D,c)}(e.sham||c&&c.sham)&&i(D,"sham",!0),s(r,p,D,e)}}})),de=e((()=>{var e=De(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),fe=e((()=>{de()})),me=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),he=e(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),ge=e(((e,t)=>{var r=l(),n=o();t.exports=function(e){if("Function"===r(e))return n(e)}})),ye=e(((e,t)=>{var r=ge(),n=S(),i=u(),s=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}})),Ee=e(((e,t)=>{var r=me(),n=ne(),u=he(),i=ye(),s=function(e,t,a,o,l,p,c,D){for(var d,f,m=l,h=0,g=!!c&&i(c,D);h0&&r(d)?(f=n(d),m=s(e,t,d,f,m,p-1)-1):(u(m+1),e[m]=d),m++),h++;return m};t.exports=s})),Ce=e(((e,t)=>{var r={};r[I()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Fe=e(((e,t)=>{var r=Ce(),n=m(),u=l(),i=I()("toStringTag"),s=Object,a="Arguments"==u(function(){return arguments}());t.exports=r?u:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=s(e),i))?r:a?u(t):"Object"==(o=u(t))&&n(t.callee)?"Arguments":o}})),Ae=e(((e,t)=>{var n=o(),u=r(),i=m(),s=Fe(),a=g(),l=H(),p=function(){},c=[],D=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.exec(p),y=function(e){if(!i(e))return!1;try{return D(p,c,e),!0}catch{return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch{return!0}};E.sham=!0,t.exports=!D||u((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y})),ve=e(((e,t)=>{var r=me(),n=Ae(),u=h(),i=I()("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,n(t)&&(t===s||r(t.prototype))?t=void 0:u(t)&&(null===(t=t[i])&&(t=void 0))),void 0===t?s:t}})),be=e(((e,t)=>{var r=ve();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Se=e((()=>{var e=De(),t=Ee(),r=S(),n=k(),u=ne(),i=be();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=n(this),o=u(a);return r(e),(s=i(a,0)).length=t(s,a,a,o,0,1,e,arguments.length>1?arguments[1]:void 0),s}})})),xe=e(((e,t)=>{t.exports={}})),Te=e(((e,t)=>{var r=I(),n=xe(),u=r("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[u]===e)}})),Be=e(((e,t)=>{var r=Fe(),n=x(),u=c(),i=xe(),s=I()("iterator");t.exports=function(e){if(!u(e))return n(e,s)||n(e,"@@iterator")||i[r(e)]}})),we=e(((e,t)=>{var r=i(),n=S(),u=V(),s=b(),a=Be(),o=TypeError;t.exports=function(e,t){var i=arguments.length<2?a(e):t;if(n(i))return u(r(i,e));throw o(s(e)+" is not iterable")}})),Ne=e(((e,t)=>{var r=i(),n=V(),u=x();t.exports=function(e,t,i){var s,a;n(e);try{if(!(s=u(e,"return"))){if("throw"===t)throw i;return i}s=r(s,e)}catch(o){a=!0,s=o}if("throw"===t)throw i;if(a)throw s;return n(s),i}})),_e=e(((e,t)=>{var r=ye(),n=i(),u=V(),s=b(),a=Te(),o=ne(),l=y(),p=we(),c=Be(),D=Ne(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,i){var h,g,y,E,C,F,A,v=i&&i.that,b=!(!i||!i.AS_ENTRIES),S=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),B=r(t,v),w=function(e){return h&&D(h,"normal",e),new f(!0,e)},N=function(e){return b?(u(e),T?B(e[0],e[1],w):B(e[0],e[1])):T?B(e,w):B(e)};if(S)h=e.iterator;else if(x)h=e;else{if(!(g=c(e)))throw d(s(e)+" is not iterable");if(a(g)){for(y=0,E=o(e);E>y;y++)if((C=N(e[y]))&&l(m,C))return C;return new f(!1)}h=p(e,g)}for(F=S?e.next:h.next;!(A=n(F,h)).done;){try{C=N(A.value)}catch(_){D(h,"throw",_)}if("object"==typeof C&&C&&l(m,C))return C}return new f(!1)}})),ke=e(((e,t)=>{var r=L(),n=U(),u=a();t.exports=function(e,t,i){var s=r(t);s in e?n.f(e,s,u(0,i)):e[s]=i}})),Pe=e((()=>{var e=De(),t=_e(),r=ke();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,(function(e,t){r(n,e,t)}),{AS_ENTRIES:!0}),n}})})),Oe=e(((e,t)=>{var r=["cliName","cliCategory","cliDescription"];function n(e,t){if(null==e)return{};var r,n,u=function(e,t){if(null==e)return{};var r,n,u={},i=Object.keys(e);for(n=0;n=0)&&(u[r]=e[r]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}fe(),Se(),Pe();var u,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},D=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))!p.call(e,u)&&u!==r&&s(e,u,{get:()=>t[u],enumerable:!(n=a(t,u))||n.enumerable});return e},m=e=>f(s({},"__esModule",{value:!0}),e),h=c({""(){u={env:{},argv:[]}}}),g=D({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return e.$0<=t&&t<=e.$9}h(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),y=D({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;e.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,r,n){let u=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,i=this.cache.get(u);return i||(i=new t(e,r,n),this.cache.set(u,i)),i}}}}),E=D({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===s}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.dashCaseToCamelCase=function(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;rn(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((u=>{r[u]=n(e[u],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},e.SyncAsync={assertSync:e=>{if(a(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>a(e)?e.then(t):t(e),all:e=>e.some(a)?Promise.all(e):e},e.error=function(e){throw new Error(`Internal Error: ${e}`)},e.syntaxError=function(e,t){let r=Error(e);return r[u]=!0,t&&(r[i]=t),r};var u="ngSyntaxError",i="ngParseErrors";e.isSyntaxError=function(e){return e[u]},e.getParseErrors=function(e){return e[i]||[]},e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var s=Object.getPrototypeOf({});function a(e){return!!e&&"function"==typeof e.then}e.utf8Encode=function(e){let t="";for(let r=0;r=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=a;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var o=typeof window<"u"&&window,l=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,p=typeof globalThis<"u"&&globalThis||o||l;e.global=p}}),C=D({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=y(),r=E(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function u(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=u;var i,s,a=0;function o(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let i=r.stringify(n);return i.indexOf("(")>=0?(i="anonymous_"+a++,n.__anonymousType=i):i=u(i),i}e.identifierName=o,e.identifierModuleUrl=function(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`},e.viewClassName=function(e,t){return`View_${o({reference:e})}_${t}`},e.rendererTypeName=function(e){return`RenderType_${o({reference:e})}`},e.hostViewClassName=function(e){return`HostView_${o({reference:e})}`},e.componentFactoryName=function(e){return`${o({reference:e})}NgFactory`},(s=i=e.CompileSummaryKind||(e.CompileSummaryKind={}))[s.Pipe=0]="Pipe",s[s.Directive=1]="Directive",s[s.NgModule=2]="NgModule",s[s.Injectable=3]="Injectable",e.tokenName=function(e){return null!=e.value?u(e.value):o(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=p(t),this.styleUrls=p(r)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:u,styles:i,styleUrls:s,externalStylesheets:a,animations:o,ngContentSelectors:l,interpolation:D,isInline:d,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=u,this.styles=p(i),this.styleUrls=p(s),this.externalStylesheets=p(a),this.animations=o?c(o):[],this.ngContentSelectors=l||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=d,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var l=class{static create(e){let{isHost:t,type:u,isComponent:i,selector:s,exportAs:a,changeDetection:o,inputs:p,outputs:c,host:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e,v={},b={},S={};null!=D&&Object.keys(D).forEach((e=>{let t=D[e],r=e.match(n);null===r?S[e]=t:null!=r[1]?b[r[1]]=t:null!=r[2]&&(v[r[2]]=t)}));let x={};null==p||p.forEach((e=>{let t=r.splitAtColon(e,[e,e]);x[t[0]]=t[1]}));let T={};return null==c||c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);T[t[0]]=t[1]})),new l({isHost:t,type:u,isComponent:!!i,selector:s,exportAs:a,changeDetection:o,inputs:x,outputs:T,hostListeners:v,hostProperties:b,hostAttributes:S,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,hostListeners:l,hostProperties:c,hostAttributes:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=u,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=o,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=D,this.providers=p(d),this.viewProviders=p(f),this.queries=p(m),this.guards=h,this.viewQueries=p(g),this.entryComponents=p(y),this.template=E,this.componentViewType=C,this.rendererType=F,this.componentFactory=A}toSummary(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=l;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:u,declaredPipes:i,exportedPipes:s,entryComponents:a,bootstrapComponents:o,importedModules:l,exportedModules:c,schemas:D,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=p(n),this.exportedDirectives=p(u),this.declaredPipes=p(i),this.exportedPipes=p(s),this.providers=p(r),this.entryComponents=p(a),this.bootstrapComponents=p(o),this.importedModules=p(l),this.exportedModules=p(c),this.schemas=p(D),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};function p(e){return e||[]}e.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function c(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?c(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:u,useFactory:i,deps:s,multi:a}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=u,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}},e.flatten=c,e.templateSourceUrl=function(e,r,n){let u;return u=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${o(e)}/${o(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?u:D(u)},e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g);return D(`css/${t}${r[r.length-1]}.ngstyle.js`)},e.ngModuleJitUrl=function(e){return D(`${o(e.type)}/module.ngfactory.js`)},e.templateJitUrl=function(e,t){return D(`${o(e)}/${o(t.type)}.ngfactory.js`)}}}),F=D({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=g(),r=C(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,u=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==t.$LF){s--;let e=r.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));a=e>0?i-e:i}else a--;for(;i0;){let n=r.charCodeAt(i);i++,e--,n==t.$LF?(s++,a=0):a++}return new n(this.file,i,s,a)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let u=n,i=0,s=0;for(;i0&&(n--,i++,"\n"!=r[n]||++s!=t););for(i=0,s=0;i2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new n(new u("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(s=i=e.ParseErrorLevel||(e.ParseErrorLevel={}))[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR";e.ParseError=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${i[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},e.typeSourceSpan=function(e,t){let i=r.identifierModuleUrl(t),s=null!=i?`in ${e} ${r.identifierName(t)} in ${i}`:`in ${e} ${r.identifierName(t)}`,o=new u("",s);return new a(new n(o,-1,-1,-1),new n(o,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,r){let i=new u("",`in ${e} ${t} in ${r}`);return new a(new n(i,-1,-1,-1),new n(i,-1,-1,-1))}}}),A=D({"src/utils/front-matter/parse.js"(e,t){h();var r=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:u,value:i="",endDelimiter:s}=t.groups,a=u.trim()||"yaml";if("+++"===n&&(a="toml"),"yaml"!==a&&n!==s)return{content:e};let[o]=t;return{frontMatter:{type:"front-matter",lang:a,value:i,startDelimiter:n,endDelimiter:s,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+e.slice(o.length)}}}}),v=D({"src/utils/get-last.js"(e,t){h();t.exports=e=>e[e.length-1]}}),b=D({"src/common/parser-create-error.js"(e,t){h(),t.exports=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),S={};function x(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}d(S,{default:()=>x});var T=c({"node_modules/escape-string-regexp/index.js"(){h()}}),B=D({"node_modules/semver/internal/debug.js"(e,t){h();var r="object"==typeof u&&u.env&&u.env.NODE_DEBUG&&/\bsemver\b/i.test(u.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};t.exports=r}}),w=D({"node_modules/semver/internal/constants.js"(e,t){h();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),N=D({"node_modules/semver/internal/re.js"(e,t){h();var{MAX_SAFE_COMPONENT_LENGTH:r}=w(),n=B(),u=(e=t.exports={}).re=[],i=e.src=[],s=e.t={},a=0,o=(e,t,r)=>{let o=a++;n(e,o,t),s[e]=o,i[o]=t,u[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),o("FULL",`^${i[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),o("LOOSE",`^${i[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),o("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",o("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",o("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),_=D({"node_modules/semver/internal/parse-options.js"(e,t){h();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}}}),k=D({"node_modules/semver/internal/identifiers.js"(e,t){h();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),u=r.test(t);return n&&u&&(e=+e,t=+t),e===t?0:n&&!u?-1:u&&!n?1:en(t,e)}}}),P=D({"node_modules/semver/classes/semver.js"(e,t){h();var r=B(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:u}=w(),{re:i,t:s}=N(),a=_(),{compareIdentifiers:o}=k(),l=class{constructor(e,t){if(t=a(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===o(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};t.exports=l}}),O=D({"node_modules/semver/functions/compare.js"(e,t){h();var r=P();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),I=D({"node_modules/semver/functions/lt.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)<0}}),j=D({"node_modules/semver/functions/gte.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)>=0}}),L=D({"src/utils/arrayify.js"(e,t){h(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)}))}}),$=D({"package.json"(e,t){t.exports={version:"2.8.8"}}}),R=D({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;tt.map((t=>e[t]));import"../sb-preview/runtime.js";!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))s(t);new MutationObserver((t=>{for(const e of t)if("childList"===e.type)for(const t of e.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&s(t)})).observe(document,{childList:!0,subtree:!0})}function s(t){if(t.ep)return;t.ep=!0;const s=function(t){const s={};return t.integrity&&(s.integrity=t.integrity),t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?s.credentials="include":"anonymous"===t.crossOrigin?s.credentials="omit":s.credentials="same-origin",s}(t);fetch(t.href,s)}}();const L="modulepreload",R=function(t,s){return new URL(t,s).href},O={},t=function(t,s,e){let r=Promise.resolve();if(s&&s.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),o=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.allSettled(s.map((s=>{if((s=R(s,e))in O)return;O[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(e)for(let e=t.length-1;e>=0;e--){const i=t[e];if(i.href===s&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":L,r||(a.as="script"),a.crossOrigin="",a.href=s,o&&a.setAttribute("nonce",o),document.head.appendChild(a),r?new Promise(((t,e)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>e(new Error(`Unable to preload CSS for ${s}`))))})):void 0})))}function i(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return r.then((s=>{for(const t of s||[])"rejected"===t.status&&i(t.reason);return t().catch(i)}))},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,E=P({page:"preview"});I.setChannel(E),window.__STORYBOOK_ADDONS_CHANNEL__=E,"DEVELOPMENT"===window.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const y={"./src/Alert/Alert.stories.tsx":async()=>t((()=>import("./Alert.stories-CEbHkU-R.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./src/ArticleCallToAction/ArticleCallToAction.stories.tsx":async()=>t((()=>import("./ArticleCallToAction.stories-DAghSm69.js")),__vite__mapDeps([8,1,2,9,10,11,12,13,4,5,14,15,16,17,6,7,3,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),"./src/Banner/Banner.stories.tsx":async()=>t((()=>import("./Banner.stories-B2SQTCzy.js")),__vite__mapDeps([32,1,2,33,3,4,5,6,7]),import.meta.url),"./src/BlockedRoute/BlockedRoute.stories.tsx":async()=>t((()=>import("./BlockedRoute.stories-B5o4mYQ6.js")),__vite__mapDeps([34,1,2,9,35,10,11,12,13,4,5,14,15,16,17,6,7,3,28,29,30,25]),import.meta.url),"./src/Breadcrumbs/Breadcrumbs.stories.tsx":async()=>t((()=>import("./Breadcrumbs.stories-C-vL7XMC.js")),__vite__mapDeps([36,1,2,37,11,12,13,4,5,14,15,16,17,6,7,10,3,29,30,25]),import.meta.url),"./src/Button/Button.stories.tsx":async()=>t((()=>import("./Button.stories-DDhO0oWT.js")),__vite__mapDeps([38,1,2,11,12,13,4,5,14,15,16,17,6,7,10,3]),import.meta.url),"./src/ButtonIcon/ButtonIcon.stories.tsx":async()=>t((()=>import("./ButtonIcon.stories-Cgfp8Lbp.js")),__vite__mapDeps([39,1,2,40,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/ButtonShowReplies/ButtonShowReplies.stories.tsx":async()=>t((()=>import("./ButtonShowReplies.stories-C4Ot__Dl.js")),__vite__mapDeps([41,1,2,42,9,43,10,11,12,13,4,5,14,15,16,17,6,7,3,44]),import.meta.url),"./src/CardButton/CardButton.stories.tsx":async()=>t((()=>import("./CardButton.stories-DNGV_rbd.js")),__vite__mapDeps([45,1,2,46,3,4,5,6,7]),import.meta.url),"./src/CardList/CardList.stories.tsx":async()=>t((()=>import("./CardList.stories-B4FyprII.js")),__vite__mapDeps([47,1,2,48,49,46,3,4,5,6,7,50,51,52,17,22,23,24,27,15,12,13,28,29,30,25,31,53,11,14,16,54]),import.meta.url),"./src/CardListItem/CardListItem.stories.tsx":async()=>t((()=>import("./CardListItem.stories-DsO2KU8L.js")),__vite__mapDeps([55,1,2,9,49,46,3,4,5,6,7,50,51,52,17,22,23,24,27,15,12,13,28,29,30,25,31,53]),import.meta.url),"./src/Category/Category.stories.tsx":async()=>t((()=>import("./Category.stories-BPS-kAao.js")),__vite__mapDeps([56,1,2,51,3,4,5,6,7]),import.meta.url),"./src/CategoryVerticalList/CategoryVerticalList.stories.tsx":async()=>t((()=>import("./CategoryVerticalList.stories-UxJvlB00.js")),__vite__mapDeps([57,1,2,58,46,3,4,5,6,7,11,12,13,14,15,16,17,59,60]),import.meta.url),"./src/CharacterCount/CharacterCount.stories.tsx":async()=>t((()=>import("./CharacterCount.stories-BZQQ3LcE.js")),__vite__mapDeps([61,1,2,62,3,4,5,6,7]),import.meta.url),"./src/CommentItem/CommentItem.stories.tsx":async()=>t((()=>import("./CommentItem.stories-n8Xuu8ZN.js")),__vite__mapDeps([63,1,2,42,9,64,10,11,12,13,4,5,14,15,16,17,6,7,3,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31]),import.meta.url),"./src/CommentList/CommentList.stories.tsx":async()=>t((()=>import("./CommentList.stories-BkMfDEi5.js")),__vite__mapDeps([76,1,2,42,9,77,10,11,12,13,4,5,14,15,16,17,6,7,3,43,44,64,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31,78,79,52,80]),import.meta.url),"./src/ConfirmModal/ConfirmModal.stories.tsx":async()=>t((()=>import("./ConfirmModal.stories-D3pinZeD.js")),__vite__mapDeps([81,1,2,65,10,11,12,13,4,5,14,15,16,17,6,7,3,66,30,67]),import.meta.url),"./src/ContentStatistics/ContentStatistics.stories.tsx":async()=>t((()=>import("./ContentStatistics.stories-BCZFgyvF.js")),__vite__mapDeps([82,1,2,9,83,10,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/CreateComment/CreateComment.stories.tsx":async()=>t((()=>import("./CreateComment.stories-Vloy1ZbD.js")),__vite__mapDeps([84,1,2,79,14,52,17,22,23,4,5,7,24,3,6,29,30,25,80]),import.meta.url),"./src/CreateReply/CreateReply.stories.tsx":async()=>t((()=>import("./CreateReply.stories-C8zav62j.js")),__vite__mapDeps([85,1,2,78,79,14,52,17,22,23,4,5,7,24,3,6,29,30,25,80]),import.meta.url),"./src/DiscussionContainer/DiscussionContainer.stories.tsx":async()=>t((()=>import("./DiscussionContainer.stories-CrnqlCNY.js")),__vite__mapDeps([86,1,2,42,9,87,77,10,11,12,13,4,5,14,15,16,17,6,7,3,43,44,64,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31,78,79,52,80]),import.meta.url),"./src/DiscussionTitle/DiscussionTitle.stories.tsx":async()=>t((()=>import("./DiscussionTitle.stories-D81KiUdE.js")),__vite__mapDeps([88,1,2,44,3,4,5,6,7]),import.meta.url),"./src/DisplayDate/DisplayDate.stories.tsx":async()=>t((()=>import("./DisplayDate.stories-JqUDoEET.js")),__vite__mapDeps([89,1,2,68,69,3,4,5,6,7]),import.meta.url),"./src/DonationRequest/DonationRequest.stories.tsx":async()=>t((()=>import("./DonationRequest.stories-C6X3aBgr.js")),__vite__mapDeps([90,1,2,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75]),import.meta.url),"./src/DonationRequestModal/DonationRequestModal.stories.tsx":async()=>t((()=>import("./DonationRequestModal.stories-Yroyjeeb.js")),__vite__mapDeps([92,1,2,93,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75,66,30,67]),import.meta.url),"./src/DownloadButton/DownloadButton.stories.tsx":async()=>t((()=>import("./DownloadButton.stories-CsCgh97S.js")),__vite__mapDeps([94,1,2,95,11,12,13,4,5,14,15,16,17,6,7,20,21,3]),import.meta.url),"./src/DownloadCounter/DownloadCounter.stories.tsx":async()=>t((()=>import("./DownloadCounter.stories-D-TQpB8D.js")),__vite__mapDeps([96,1,2,97,3,4,5,6,7]),import.meta.url),"./src/DownloadStaticFile/DownloadStaticFile.stories.tsx":async()=>t((()=>import("./DownloadStaticFile.stories-Dt8RxA5i.js")),__vite__mapDeps([98,1,2,99,95,11,12,13,4,5,14,15,16,17,6,7,20,21,3,75]),import.meta.url),"./src/DownloadWithDonationAsk/DownloadWithDonationAsk.stories.tsx":async()=>t((()=>import("./DownloadWithDonationAsk.stories-BDelRUAy.js")),__vite__mapDeps([100,1,2,101,93,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75,66,30,67,95,20,21,97,99,25]),import.meta.url),"./src/EditComment/EditComment.stories.tsx":async()=>t((()=>import("./EditComment.stories-B5jkKn1z.js")),__vite__mapDeps([102,1,2,70,13,71,72,10,11,12,4,5,14,15,16,17,6,7,3,73,62]),import.meta.url),"./src/ElWithBeforeIcon/ElWithBeforeIcon.stories.tsx":async()=>t((()=>import("./ElWithBeforeIcon.stories-DzpHbo6W.js")),__vite__mapDeps([103,1,2,104,3,4,5,6,7]),import.meta.url),"./src/ExternalLink/ExternalLink.stories.tsx":async()=>t((()=>import("./ExternalLink.stories-XqFwNvr3.js")),__vite__mapDeps([105,1,2,26,27,15,12,13,4,5,3,6,7,28,29,30,25,31,22,23,24,33,35,10,11,14,16,17,37,40,43,44,46,48,49,50,51,52,53,54,58,59,60,83,64,65,66,67,68,69,70,71,72,73,62,74,75,77,78,79,80,87,91,93,95,20,21,97,101,99,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,19,145,146,147]),import.meta.url),"./src/FieldInput/FieldInput.stories.tsx":async()=>t((()=>import("./FieldInput.stories-Dgzcgtdg.js")),__vite__mapDeps([148,1,2,106,62,3,4,5,6,7]),import.meta.url),"./src/FieldTextarea/FieldTextarea.stories.tsx":async()=>t((()=>import("./FieldTextarea.stories-Bv4569fp.js")),__vite__mapDeps([149,1,2,73,62,3,4,5,6,7]),import.meta.url),"./src/FollowButton/FollowButton.stories.tsx":async()=>t((()=>import("./FollowButton.stories-kHjN-oni.js")),__vite__mapDeps([150,1,2,108,10,11,12,13,4,5,14,15,16,17,6,7,3,20,21,25]),import.meta.url),"./src/Guidelines/Guidelines.stories.tsx":async()=>t((()=>import("./Guidelines.stories-CKmkQ2AV.js")),__vite__mapDeps([151,1,2,75,3,4,5,6,7,107]),import.meta.url),"./src/Heading/Heading.stories.tsx":async()=>t((()=>import("./Heading.stories-DWn9Npoj.js")),__vite__mapDeps([152,1,2,3,4,5,6,7]),import.meta.url),"./src/HeroBanner/HeroBanner.stories.tsx":async()=>t((()=>import("./HeroBanner.stories-6-8fiYta.js")),__vite__mapDeps([153,1,2,110,3,4,5,6,7]),import.meta.url),"./src/Icon/Icon.stories.tsx":async()=>t((()=>import("./Icon.stories-F3RazOdb.js")),__vite__mapDeps([154,1,2,11,12,13,4,5,14,15,16,17,6,7]),import.meta.url),"./src/IconCountWithTooltip/IconCountWithTooltip.stories.tsx":async()=>t((()=>import("./IconCountWithTooltip.stories-Ci98emn7.js")),__vite__mapDeps([155,1,2,111,11,12,13,4,5,14,15,16,17,6,7,20,21,3]),import.meta.url),"./src/ImageCrop/ImageCrop.stories.tsx":async()=>t((()=>import("./ImageCrop.stories-ConoyDJf.js")),__vite__mapDeps([156,1,2,112,10,11,12,13,4,5,14,15,16,17,6,7,3,54,23,22,24,113]),import.meta.url),"./src/ImageGallery/ImageGallery.stories.tsx":async()=>t((()=>import("./ImageGallery.stories-CPNFXnTP.js")),__vite__mapDeps([157,1,2,114,12,13,4,5,11,14,15,16,17,6,7,3,115]),import.meta.url),"./src/Input/Input.stories.tsx":async()=>t((()=>import("./Input.stories-BBSxBs5P.js")),__vite__mapDeps([158,1,2,3,4,5,6,7]),import.meta.url),"./src/InternalLink/InternalLink.stories.tsx":async()=>t((()=>import("./InternalLink.stories-CO5LLP_j.js")),__vite__mapDeps([159,1,2,28,3,4,5,6,7,29,30,25]),import.meta.url),"./src/LinkifyText/LinkifyText.stories.tsx":async()=>t((()=>import("./LinkifyText.stories-BzNh4pI0.js")),__vite__mapDeps([160,1,2,74,12,13,4,5,75,3,6,7,28,29,30,25,22,23,24]),import.meta.url),"./src/Loader/Loader.stories.tsx":async()=>t((()=>import("./Loader.stories-B0z1PY-V.js")),__vite__mapDeps([161,1,2,54,23,4,5,7,12,13,22,24,3,6]),import.meta.url),"./src/Map/Map.stories.tsx":async()=>t((()=>import("./Map.stories-C35vnhRl.js")),__vite__mapDeps([162,1,2,116,13,71,117,118,119,69,120,7,121]),import.meta.url),"./src/MapFilterList/MapFilterList.stories.tsx":async()=>t((()=>import("./MapFilterList.stories-BzWKhRbv.js")),__vite__mapDeps([163,1,2,122,10,11,12,13,4,5,14,15,16,17,6,7,3,40,52,22,23,24,31,46]),import.meta.url),"./src/MapMemberCard/MapMemberCard.stories.tsx":async()=>t((()=>import("./MapMemberCard.stories-fWseqN6P.js")),__vite__mapDeps([164,9,124,1,2,23,4,5,7,27,15,12,13,3,6,28,29,30,25,31]),import.meta.url),"./src/MapWithPin/MapPin.stories.tsx":async()=>t((()=>import("./MapPin.stories-D-hiWMw_.js")),__vite__mapDeps([165,1,2,128,120,119,69,117,118,13,7]),import.meta.url),"./src/MapWithPin/MapWithPin.stories.tsx":async()=>t((()=>import("./MapWithPin.stories-BTeVYoQm.js")),__vite__mapDeps([166,1,2,125,10,11,12,13,4,5,14,15,16,17,6,7,3,116,71,117,118,119,69,120,121,126,127,128]),import.meta.url),"./src/MemberBadge/MemberBadge.stories.tsx":async()=>t((()=>import("./MemberBadge.stories-9JuuPGsA.js")),__vite__mapDeps([167,1,2,52,17,22,23,4,5,7,24,3,6]),import.meta.url),"./src/MemberTypeVerticalList/MemberTypeVerticalList.stories.tsx":async()=>t((()=>import("./MemberTypeVerticalList.stories-DCM6CFDA.js")),__vite__mapDeps([168,1,2,123,46,3,4,5,6,7,52,17,22,23,24,59,12,13,11,14,15,16,60]),import.meta.url),"./src/Modal/Modal.stories.tsx":async()=>t((()=>import("./Modal.stories-B-r6DmaS.js")),__vite__mapDeps([169,1,2,66,30,67,12,13,4,5,3,6,7]),import.meta.url),"./src/ModerationStatus/ModerationStatus.stories.tsx":async()=>t((()=>import("./ModerationStatus.stories-Cq_9dB1K.js")),__vite__mapDeps([170,1,2,129,3,4,5,6,7]),import.meta.url),"./src/MoreContainer/MoreContainer.stories.tsx":async()=>t((()=>import("./MoreContainer.stories-D8fGHZpx.js")),__vite__mapDeps([171,1,2,130,12,13,4,5,22,23,7,24,3,6]),import.meta.url),"./src/NotificationItem/NotificationItem.stories.tsx":async()=>t((()=>import("./NotificationItem.stories-DGU9iCx3.js")),__vite__mapDeps([172,1,2,9,131,22,23,4,5,7,24,11,12,13,14,15,16,17,6,3]),import.meta.url),"./src/NotificationList/NotificationList.stories.tsx":async()=>t((()=>import("./NotificationList.stories-CcPUtz4j.js")),__vite__mapDeps([173,1,2,9,28,3,4,5,6,7,29,30,25,132,12,13,10,11,14,15,16,17,131,22,23,24]),import.meta.url),"./src/OsmGeocoding/OsmGeocoding.stories.tsx":async()=>t((()=>import("./OsmGeocoding.stories-BZTTGKOM.js")),__vite__mapDeps([174,1,2,126,127,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/PinProfile/PinProfile.stories.tsx":async()=>t((()=>import("./PinProfile.stories-DObqSQRy.js")),__vite__mapDeps([175,1,2,9,133,10,11,12,13,4,5,14,15,16,17,6,7,3,40,46,50,51,52,22,23,24,27,28,29,30,25,31,53]),import.meta.url),"./src/ProfileLink/ProfileLink.stories.tsx":async()=>t((()=>import("./ProfileLink.stories-DE8tM-1Y.js")),__vite__mapDeps([176,1,2,134,75,3,4,5,6,7,11,12,13,14,15,16,17]),import.meta.url),"./src/ProfileTagsList/ProfileTagsList.stories.tsx":async()=>t((()=>import("./ProfileTagsList.stories-B5RDTpZr.js")),__vite__mapDeps([177,1,2,53,51,3,4,5,6,7]),import.meta.url),"./src/ResearchEditorOverview/ResearchEditorOverview.stories.tsx":async()=>t((()=>import("./ResearchEditorOverview.stories-wTNuo5e7.js")),__vite__mapDeps([178,1,2,135,72,10,11,12,13,4,5,14,15,16,17,6,7,3,28,29,30,25]),import.meta.url),"./src/SearchField/SearchField.stories.tsx":async()=>t((()=>import("./SearchField.stories-CHoQUmvH.js")),__vite__mapDeps([179,1,2,127,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/Select/Select.stories.tsx":async()=>t((()=>import("./Select.stories-C5WKuu9k.js")),__vite__mapDeps([180,1,2,136,119,69,71,13,117,137,23,4,5,7,30,21,16,3,6,22,24]),import.meta.url),"./src/SettingsFormWrapper/SettingsFormWrapper.stories.tsx":async()=>t((()=>import("./SettingsFormWrapper.stories-CNxOWbVL.js")),__vite__mapDeps([181,1,2,138,3,4,5,6,7,139,12,13,11,14,15,16,17,28,29,30,25,136,119,69,71,117,137,23,21,22,24]),import.meta.url),"./src/SiteFooter/SiteFooter.stories.tsx":async()=>t((()=>import("./SiteFooter.stories-Qub1crzS.js")),__vite__mapDeps([182,1,2,140,12,13,4,5,75,3,6,7,11,14,15,16,17]),import.meta.url),"./src/TabbedContent/TabbedContent.stories.tsx":async()=>t((()=>import("./TabbedContent.stories-DAjm-iwT.js")),__vite__mapDeps([183,1,2,9,141,12,13,4,5,139,3,6,7]),import.meta.url),"./src/Tag/Tag.stories.tsx":async()=>t((()=>import("./Tag.stories-Dud28Iz9.js")),__vite__mapDeps([184,1,2,142,3,4,5,6,7]),import.meta.url),"./src/TagList/TagList.stories.tsx":async()=>t((()=>import("./TagList.stories-PSzJp3qC.js")),__vite__mapDeps([185,1,2,143,142,3,4,5,6,7]),import.meta.url),"./src/Text/Text.stories.tsx":async()=>t((()=>import("./Text.stories-CV98I21z.js")),__vite__mapDeps([186,1,2,9,3,4,5,6,7]),import.meta.url),"./src/TextNotification/TextNotification.stories.tsx":async()=>t((()=>import("./TextNotification.stories-Dk3q_AuJ.js")),__vite__mapDeps([187,1,2,144,23,4,5,7,3,6]),import.meta.url),"./src/Textarea/Textarea.stories.tsx":async()=>t((()=>import("./Textarea.stories-DjC1cr2u.js")),__vite__mapDeps([188,1,2,3,4,5,6,7]),import.meta.url),"./src/Tooltip/Tooltip.stories.tsx":async()=>t((()=>import("./Tooltip.stories-DVAx_Iyz.js")),__vite__mapDeps([189,1,2,20,21,12,13,4,5,3,6,7]),import.meta.url),"./src/UsefulStatsButton/UsefulStatsButton.stories.tsx":async()=>t((()=>import("./UsefulStatsButton.stories-BQGYN2RA.js")),__vite__mapDeps([18,1,2,19,10,11,12,13,4,5,14,15,16,17,6,7,3,20,21,22,23,24,25]),import.meta.url),"./src/UserEngagementWrapper/UserEngagementWrapper.stories.tsx":async()=>t((()=>import("./UserEngagementWrapper.stories--dWaS9Ii.js")),__vite__mapDeps([190,1,2,26,27,15,12,13,4,5,3,6,7,28,29,30,25,31,22,23,24,33,35,10,11,14,16,17,37,40,43,44,46,48,49,50,51,52,53,54,58,59,60,83,64,65,66,67,68,69,70,71,72,73,62,74,75,77,78,79,80,87,91,93,95,20,21,97,101,99,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,19,145,146,147]),import.meta.url),"./src/UserStatistics/UserStatistics.stories.tsx":async()=>t((()=>import("./UserStatistics.stories-DVrQI4M0.js")),__vite__mapDeps([191,1,2,146,17,104,3,4,5,6,7,75,11,12,13,14,15,16,28,29,30,25]),import.meta.url),"./src/Username/Username.stories.tsx":async()=>t((()=>import("./Username.stories-takJr8Sz.js")),__vite__mapDeps([192,27,1,2,15,12,13,4,5,3,6,7,28,29,30,25,31]),import.meta.url),"./src/VerticalList/VerticalList.stories.tsx":async()=>t((()=>import("./VerticalList.stories-CuBGFry3.js")),__vite__mapDeps([193,1,2,59,12,13,4,5,11,14,15,16,17,6,7,3,60]),import.meta.url),"./src/VideoPlayer/VideoPlayer.stories.tsx":async()=>t((()=>import("./VideoPlayer.stories-CPX8mhqo.js")),__vite__mapDeps([194,1,2,147,24,67,3,4,5,6,7]),import.meta.url),"./src/welcome.mdx":async()=>t((()=>import("./welcome-C8BCaCw_.js")),__vite__mapDeps([195,1,2,196,5,30,197,13,117,118,137,198,199,200]),import.meta.url)};async function D(t){return y[t]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,x=async()=>{const s=await Promise.all([t((()=>import("./entry-preview-9LBAkts4.js")),__vite__mapDeps([201,2,202,30]),import.meta.url),t((()=>import("./entry-preview-docs-zO113c-Z.js")),__vite__mapDeps([203,198,2,67,199]),import.meta.url),t((()=>import("./preview-BJPLiuSt.js")),__vite__mapDeps([204,197]),import.meta.url),t((()=>import("./preview-CaQ1ymDy.js")),[],import.meta.url),t((()=>import("./preview-BEBQg86I.js")),__vite__mapDeps([205,199]),import.meta.url),t((()=>import("./preview-BcxrGG1y.js")),__vite__mapDeps([206,199]),import.meta.url),t((()=>import("./preview-Db4Idchh.js")),[],import.meta.url),t((()=>import("./preview-BAz7FMXc.js")),__vite__mapDeps([207,199]),import.meta.url),t((()=>import("./preview-Cv3rAi2i.js")),[],import.meta.url),t((()=>import("./preview-B4l0stmi.js")),__vite__mapDeps([208,1,2,22,23,4,5,7,24,109,25,29,30]),import.meta.url)]);return A(s)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v,window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore,window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new V({storyStore:window.__STORYBOOK_PREVIEW__.storyStore}),window.__STORYBOOK_PREVIEW__.initialize({importFn:D,getProjectAnnotations:x});export{t as _}; \ No newline at end of file +const __vite__mapDeps=(t,s=__vite__mapDeps,e=s.f||(s.f=["./Alert.stories-CEbHkU-R.js","./jsx-runtime-CexXSJP5.js","./index-BP8_t0zE.js","./theme-ui-components.esm-BngKL4Rx.js","./parseProps-780b287c.browser.esm-DiCerVr_.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js","./hoist-non-react-statics.cjs-CQI8syxn.js","./ArticleCallToAction.stories-DAghSm69.js","./index-D_kXk1yT.js","./Button-CNNOBp5d.js","./Icon-Cocq8Wc0.js","./emotion-styled.browser.esm-Dz2BNYeh.js","./extends-CF3RwP-h.js","./contact-DD4r1-LP.js","./supporter-D7hp958O.js","./icon-arrow-down-CJeToCJe.js","./icon-star-active-ClN6U5FF.js","./UsefulStatsButton.stories-BQGYN2RA.js","./UsefulStatsButton-CRR4DS4A.js","./Tooltip-BFRbExEK.js","./floating-ui.dom-D73o39gD.js","./theme-ui-core.browser.esm-CvTdiiil.js","./emotion-react.browser.esm-BYoRxRk_.js","./cjs-Clfm10Kj.js","./index-CQ-1if_X.js","./ArticleCallToAction-B2lCRPAJ.js","./Username-Cu73ouL4.js","./InternalLink-Bo5i6YIm.js","./components-CyP20DXM.js","./index-BBRV8eG_.js","./UserBadge-XI2JdGOl.js","./Banner.stories-B2SQTCzy.js","./Banner-CahIkehL.js","./BlockedRoute.stories-B5o4mYQ6.js","./BlockedRoute-CysUGElB.js","./Breadcrumbs.stories-C-vL7XMC.js","./Breadcrumbs-BJzmQH02.js","./Button.stories-DDhO0oWT.js","./ButtonIcon.stories-Cgfp8Lbp.js","./ButtonIcon-DR6RqG6d.js","./ButtonShowReplies.stories-C4Ot__Dl.js","./utils-BRZF2j4e.js","./ButtonShowReplies-DcHOTq7t.js","./DiscussionTitle-BShaVqYD.js","./CardButton.stories-DNGV_rbd.js","./CardButton-N2uDQfPt.js","./CardList.stories-Np8PMAt9.js","./CardList-CbnpjzYc.js","./CardListItem-BGx1T-wd.js","./CardProfile-CdLmtAl0.js","./Category-CVnjFQdi.js","./MemberBadge-CEGEtBDf.js","./ProfileTagsList-CnWLcFtJ.js","./Loader-DVu-AWlv.js","./CardListItem.stories-CSuNgrVu.js","./Category.stories-BPS-kAao.js","./CategoryVerticalList.stories-UxJvlB00.js","./CategoryVerticalList-hiYhorh7.js","./VerticalList.client-Dbbaiymq.js","./VerticalList-BgtuxQWF.css","./CharacterCount.stories-BZQQ3LcE.js","./CharacterCount-CVY3hBeQ.js","./CommentItem.stories-n8Xuu8ZN.js","./CommentItem-Do_1XjZl.js","./ConfirmModal-nn9TD5JG.js","./Modal-DXxaFBTe.js","./index-Snk9MO9S.js","./DisplayDate-6lOgCKow.js","./typeof-QjJsDpFa.js","./EditComment-DoS6A2RY.js","./objectWithoutPropertiesLoose-CAYKN5F1.js","./index.esm-D0u3ndg0.js","./FieldTextarea-oZDGU0lI.js","./LinkifyText-DWykfnAH.js","./ExternalLink-DC09teyd.js","./CommentList.stories-BISN_9SH.js","./CommentList-BBX0RN0p.js","./CreateReply-DUkENyaH.js","./CreateComment-BaAFFVqP.js","./CreateComment-Dpf97rSU.css","./ConfirmModal.stories-D3pinZeD.js","./ContentStatistics.stories-BCZFgyvF.js","./ContentStatistics-agsxPJSs.js","./CreateComment.stories-qEM5jg6T.js","./CreateReply.stories-Cx-BkQze.js","./DiscussionContainer.stories-jH87TWN9.js","./DiscussionContainer-BZ5clpEB.js","./DiscussionTitle.stories-D81KiUdE.js","./DisplayDate.stories-JqUDoEET.js","./DonationRequest.stories-C6X3aBgr.js","./DonationRequest-Bkc-N1RW.js","./DonationRequestModal.stories-Yroyjeeb.js","./DonationRequestModal-BwZnqqeP.js","./DownloadButton.stories-CsCgh97S.js","./DownloadButton-2EjRc70T.js","./DownloadCounter.stories-D-TQpB8D.js","./DownloadCounter-BhwM3uCm.js","./DownloadStaticFile.stories-Dt8RxA5i.js","./DownloadStaticFile-BcrMB4t_.js","./DownloadWithDonationAsk.stories-BDelRUAy.js","./DownloadWithDonationAsk-4rl9xrNJ.js","./EditComment.stories-B5jkKn1z.js","./ElWithBeforeIcon.stories-BhZgWN-A.js","./ElWithBeforeIcon-ziIMqlVV.js","./ExternalLink.stories-DCYr-c68.js","./FieldInput-CGUt93Kw.js","./Guidelines-BB0ZBfiO.js","./FollowButton-BbgwXvqp.js","./GlobalStyles-CFDLRO3m.js","./HeroBanner-DIi4EvbO.js","./IconCountWithTooltip-oU9RkSxQ.js","./ImageCrop-BfM2WysM.js","./ImageCrop-DIqHosyi.css","./ImageGallery-DLsrCLCr.js","./ImageGallery-cPPnkASS.css","./Map.client-DoF2bdmQ.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./defineProperty-Dr9G4DxF.js","./MapLayer-CeGLoV_-.js","./Map-CGPl1WVw.css","./MapFilterList-budIcuAb.js","./MemberTypeVerticalList.client-B4M6P4G_.js","./MapMemberCard-_3cx7c2u.js","./MapWithPin.client-CTAHmLMz.js","./OsmGeocoding-XzIsLfSg.js","./SearchField-B-cckcor.js","./MapPin.client-Ln2WLe_W.js","./ModerationStatus-CWLvcR2F.js","./MoreContainer-BKCrSvUB.js","./NotificationItem-BRNYbh39.js","./NotificationList-C0JGl9gb.js","./PinProfile-Dr2LiPix.js","./ProfileLink-DTf5e7AS.js","./ResearchEditorOverview-C1KEow64.js","./Select-Do5Sykw4.js","./isNativeReflectConstruct-gwnEYaHE.js","./SettingsFormWrapper-DHIvCV5u.js","./TabsList-DhTEw6FA.js","./SiteFooter-CrkUb2Ow.js","./TabbedContent-CQ_-r_zn.js","./Tag-BuO8hjpj.js","./TagList-azY_z3G0.js","./TextNotification-CHRBxPd1.js","./CommentAvatar-CDFGogCN.js","./UserStatistics-0Cgxzunj.js","./VideoPlayer-D9RcWkc3.js","./FieldInput.stories-Dgzcgtdg.js","./FieldTextarea.stories-Bv4569fp.js","./FollowButton.stories-kHjN-oni.js","./Guidelines.stories-CKmkQ2AV.js","./Heading.stories-DWn9Npoj.js","./HeroBanner.stories-6-8fiYta.js","./Icon.stories-F3RazOdb.js","./IconCountWithTooltip.stories-Ci98emn7.js","./ImageCrop.stories-ConoyDJf.js","./ImageGallery.stories-81PO1kqf.js","./Input.stories-BBSxBs5P.js","./InternalLink.stories-CO5LLP_j.js","./LinkifyText.stories-BzNh4pI0.js","./Loader.stories-B0z1PY-V.js","./Map.stories-C35vnhRl.js","./MapFilterList.stories-DYa--iUu.js","./MapMemberCard.stories-fWseqN6P.js","./MapPin.stories-D-hiWMw_.js","./MapWithPin.stories-BTeVYoQm.js","./MemberBadge.stories-C-CRxL0P.js","./MemberTypeVerticalList.stories-B_1y335P.js","./Modal.stories-B-r6DmaS.js","./ModerationStatus.stories-Cq_9dB1K.js","./MoreContainer.stories-D8fGHZpx.js","./NotificationItem.stories-DGU9iCx3.js","./NotificationList.stories-CcPUtz4j.js","./OsmGeocoding.stories-BZTTGKOM.js","./PinProfile.stories-A8QmIJyx.js","./ProfileLink.stories-DE8tM-1Y.js","./ProfileTagsList.stories-B5RDTpZr.js","./ResearchEditorOverview.stories-wTNuo5e7.js","./SearchField.stories-CHoQUmvH.js","./Select.stories-C5WKuu9k.js","./SettingsFormWrapper.stories-CNxOWbVL.js","./SiteFooter.stories-Qub1crzS.js","./TabbedContent.stories-DAjm-iwT.js","./Tag.stories-Dud28Iz9.js","./TagList.stories-PSzJp3qC.js","./Text.stories-CV98I21z.js","./TextNotification.stories-Dk3q_AuJ.js","./Textarea.stories-DjC1cr2u.js","./Tooltip.stories-DVAx_Iyz.js","./UserEngagementWrapper.stories-mfFm7s3I.js","./UserStatistics.stories-_QY_W2NI.js","./Username.stories-takJr8Sz.js","./VerticalList.stories-CuBGFry3.js","./VideoPlayer.stories-JJOtj8hI.js","./welcome-CcTTxTtu.js","./index-u2PVOEPH.js","./index-D-8MO0q_.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./index-gbZvCw43.js","./entry-preview-9LBAkts4.js","./react-18-Bze0iTLm.js","./entry-preview-docs-zO113c-Z.js","./preview-BJPLiuSt.js","./preview-BEBQg86I.js","./preview-BcxrGG1y.js","./preview-BAz7FMXc.js","./preview-B4l0stmi.js"]))=>t.map((t=>e[t]));import"../sb-preview/runtime.js";!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))s(t);new MutationObserver((t=>{for(const e of t)if("childList"===e.type)for(const t of e.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&s(t)})).observe(document,{childList:!0,subtree:!0})}function s(t){if(t.ep)return;t.ep=!0;const s=function(t){const s={};return t.integrity&&(s.integrity=t.integrity),t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?s.credentials="include":"anonymous"===t.crossOrigin?s.credentials="omit":s.credentials="same-origin",s}(t);fetch(t.href,s)}}();const L="modulepreload",R=function(t,s){return new URL(t,s).href},O={},t=function(t,s,e){let r=Promise.resolve();if(s&&s.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),o=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.allSettled(s.map((s=>{if((s=R(s,e))in O)return;O[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(e)for(let e=t.length-1;e>=0;e--){const i=t[e];if(i.href===s&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":L,r||(a.as="script"),a.crossOrigin="",a.href=s,o&&a.setAttribute("nonce",o),document.head.appendChild(a),r?new Promise(((t,e)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>e(new Error(`Unable to preload CSS for ${s}`))))})):void 0})))}function i(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return r.then((s=>{for(const t of s||[])"rejected"===t.status&&i(t.reason);return t().catch(i)}))},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,E=P({page:"preview"});I.setChannel(E),window.__STORYBOOK_ADDONS_CHANNEL__=E,"DEVELOPMENT"===window.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const y={"./src/Alert/Alert.stories.tsx":async()=>t((()=>import("./Alert.stories-CEbHkU-R.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./src/ArticleCallToAction/ArticleCallToAction.stories.tsx":async()=>t((()=>import("./ArticleCallToAction.stories-DAghSm69.js")),__vite__mapDeps([8,1,2,9,10,11,12,13,4,5,14,15,16,17,6,7,3,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),"./src/Banner/Banner.stories.tsx":async()=>t((()=>import("./Banner.stories-B2SQTCzy.js")),__vite__mapDeps([32,1,2,33,3,4,5,6,7]),import.meta.url),"./src/BlockedRoute/BlockedRoute.stories.tsx":async()=>t((()=>import("./BlockedRoute.stories-B5o4mYQ6.js")),__vite__mapDeps([34,1,2,9,35,10,11,12,13,4,5,14,15,16,17,6,7,3,28,29,30,25]),import.meta.url),"./src/Breadcrumbs/Breadcrumbs.stories.tsx":async()=>t((()=>import("./Breadcrumbs.stories-C-vL7XMC.js")),__vite__mapDeps([36,1,2,37,11,12,13,4,5,14,15,16,17,6,7,10,3,29,30,25]),import.meta.url),"./src/Button/Button.stories.tsx":async()=>t((()=>import("./Button.stories-DDhO0oWT.js")),__vite__mapDeps([38,1,2,11,12,13,4,5,14,15,16,17,6,7,10,3]),import.meta.url),"./src/ButtonIcon/ButtonIcon.stories.tsx":async()=>t((()=>import("./ButtonIcon.stories-Cgfp8Lbp.js")),__vite__mapDeps([39,1,2,40,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/ButtonShowReplies/ButtonShowReplies.stories.tsx":async()=>t((()=>import("./ButtonShowReplies.stories-C4Ot__Dl.js")),__vite__mapDeps([41,1,2,42,9,43,10,11,12,13,4,5,14,15,16,17,6,7,3,44]),import.meta.url),"./src/CardButton/CardButton.stories.tsx":async()=>t((()=>import("./CardButton.stories-DNGV_rbd.js")),__vite__mapDeps([45,1,2,46,3,4,5,6,7]),import.meta.url),"./src/CardList/CardList.stories.tsx":async()=>t((()=>import("./CardList.stories-Np8PMAt9.js")),__vite__mapDeps([47,1,2,48,49,46,3,4,5,6,7,50,51,52,17,22,23,24,27,15,12,13,28,29,30,25,31,53,11,14,16,54]),import.meta.url),"./src/CardListItem/CardListItem.stories.tsx":async()=>t((()=>import("./CardListItem.stories-CSuNgrVu.js")),__vite__mapDeps([55,1,2,9,49,46,3,4,5,6,7,50,51,52,17,22,23,24,27,15,12,13,28,29,30,25,31,53]),import.meta.url),"./src/Category/Category.stories.tsx":async()=>t((()=>import("./Category.stories-BPS-kAao.js")),__vite__mapDeps([56,1,2,51,3,4,5,6,7]),import.meta.url),"./src/CategoryVerticalList/CategoryVerticalList.stories.tsx":async()=>t((()=>import("./CategoryVerticalList.stories-UxJvlB00.js")),__vite__mapDeps([57,1,2,58,46,3,4,5,6,7,11,12,13,14,15,16,17,59,60]),import.meta.url),"./src/CharacterCount/CharacterCount.stories.tsx":async()=>t((()=>import("./CharacterCount.stories-BZQQ3LcE.js")),__vite__mapDeps([61,1,2,62,3,4,5,6,7]),import.meta.url),"./src/CommentItem/CommentItem.stories.tsx":async()=>t((()=>import("./CommentItem.stories-n8Xuu8ZN.js")),__vite__mapDeps([63,1,2,42,9,64,10,11,12,13,4,5,14,15,16,17,6,7,3,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31]),import.meta.url),"./src/CommentList/CommentList.stories.tsx":async()=>t((()=>import("./CommentList.stories-BISN_9SH.js")),__vite__mapDeps([76,1,2,42,9,77,10,11,12,13,4,5,14,15,16,17,6,7,3,43,44,64,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31,78,79,52,80]),import.meta.url),"./src/ConfirmModal/ConfirmModal.stories.tsx":async()=>t((()=>import("./ConfirmModal.stories-D3pinZeD.js")),__vite__mapDeps([81,1,2,65,10,11,12,13,4,5,14,15,16,17,6,7,3,66,30,67]),import.meta.url),"./src/ContentStatistics/ContentStatistics.stories.tsx":async()=>t((()=>import("./ContentStatistics.stories-BCZFgyvF.js")),__vite__mapDeps([82,1,2,9,83,10,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/CreateComment/CreateComment.stories.tsx":async()=>t((()=>import("./CreateComment.stories-qEM5jg6T.js")),__vite__mapDeps([84,1,2,79,14,52,17,22,23,4,5,7,24,3,6,29,30,25,80]),import.meta.url),"./src/CreateReply/CreateReply.stories.tsx":async()=>t((()=>import("./CreateReply.stories-Cx-BkQze.js")),__vite__mapDeps([85,1,2,78,79,14,52,17,22,23,4,5,7,24,3,6,29,30,25,80]),import.meta.url),"./src/DiscussionContainer/DiscussionContainer.stories.tsx":async()=>t((()=>import("./DiscussionContainer.stories-jH87TWN9.js")),__vite__mapDeps([86,1,2,42,9,87,77,10,11,12,13,4,5,14,15,16,17,6,7,3,43,44,64,65,66,30,67,68,69,70,71,72,73,62,74,75,28,29,25,22,23,24,27,31,78,79,52,80]),import.meta.url),"./src/DiscussionTitle/DiscussionTitle.stories.tsx":async()=>t((()=>import("./DiscussionTitle.stories-D81KiUdE.js")),__vite__mapDeps([88,1,2,44,3,4,5,6,7]),import.meta.url),"./src/DisplayDate/DisplayDate.stories.tsx":async()=>t((()=>import("./DisplayDate.stories-JqUDoEET.js")),__vite__mapDeps([89,1,2,68,69,3,4,5,6,7]),import.meta.url),"./src/DonationRequest/DonationRequest.stories.tsx":async()=>t((()=>import("./DonationRequest.stories-C6X3aBgr.js")),__vite__mapDeps([90,1,2,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75]),import.meta.url),"./src/DonationRequestModal/DonationRequestModal.stories.tsx":async()=>t((()=>import("./DonationRequestModal.stories-Yroyjeeb.js")),__vite__mapDeps([92,1,2,93,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75,66,30,67]),import.meta.url),"./src/DownloadButton/DownloadButton.stories.tsx":async()=>t((()=>import("./DownloadButton.stories-CsCgh97S.js")),__vite__mapDeps([94,1,2,95,11,12,13,4,5,14,15,16,17,6,7,20,21,3]),import.meta.url),"./src/DownloadCounter/DownloadCounter.stories.tsx":async()=>t((()=>import("./DownloadCounter.stories-D-TQpB8D.js")),__vite__mapDeps([96,1,2,97,3,4,5,6,7]),import.meta.url),"./src/DownloadStaticFile/DownloadStaticFile.stories.tsx":async()=>t((()=>import("./DownloadStaticFile.stories-Dt8RxA5i.js")),__vite__mapDeps([98,1,2,99,95,11,12,13,4,5,14,15,16,17,6,7,20,21,3,75]),import.meta.url),"./src/DownloadWithDonationAsk/DownloadWithDonationAsk.stories.tsx":async()=>t((()=>import("./DownloadWithDonationAsk.stories-BDelRUAy.js")),__vite__mapDeps([100,1,2,101,93,91,10,11,12,13,4,5,14,15,16,17,6,7,3,75,66,30,67,95,20,21,97,99,25]),import.meta.url),"./src/EditComment/EditComment.stories.tsx":async()=>t((()=>import("./EditComment.stories-B5jkKn1z.js")),__vite__mapDeps([102,1,2,70,13,71,72,10,11,12,4,5,14,15,16,17,6,7,3,73,62]),import.meta.url),"./src/ElWithBeforeIcon/ElWithBeforeIcon.stories.tsx":async()=>t((()=>import("./ElWithBeforeIcon.stories-BhZgWN-A.js")),__vite__mapDeps([103,1,2,104,3,4,5,6,7]),import.meta.url),"./src/ExternalLink/ExternalLink.stories.tsx":async()=>t((()=>import("./ExternalLink.stories-DCYr-c68.js")),__vite__mapDeps([105,1,2,26,27,15,12,13,4,5,3,6,7,28,29,30,25,31,22,23,24,33,35,10,11,14,16,17,37,40,43,44,46,48,49,50,51,52,53,54,58,59,60,83,64,65,66,67,68,69,70,71,72,73,62,74,75,77,78,79,80,87,91,93,95,20,21,97,101,99,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,19,145,146,147]),import.meta.url),"./src/FieldInput/FieldInput.stories.tsx":async()=>t((()=>import("./FieldInput.stories-Dgzcgtdg.js")),__vite__mapDeps([148,1,2,106,62,3,4,5,6,7]),import.meta.url),"./src/FieldTextarea/FieldTextarea.stories.tsx":async()=>t((()=>import("./FieldTextarea.stories-Bv4569fp.js")),__vite__mapDeps([149,1,2,73,62,3,4,5,6,7]),import.meta.url),"./src/FollowButton/FollowButton.stories.tsx":async()=>t((()=>import("./FollowButton.stories-kHjN-oni.js")),__vite__mapDeps([150,1,2,108,10,11,12,13,4,5,14,15,16,17,6,7,3,20,21,25]),import.meta.url),"./src/Guidelines/Guidelines.stories.tsx":async()=>t((()=>import("./Guidelines.stories-CKmkQ2AV.js")),__vite__mapDeps([151,1,2,75,3,4,5,6,7,107]),import.meta.url),"./src/Heading/Heading.stories.tsx":async()=>t((()=>import("./Heading.stories-DWn9Npoj.js")),__vite__mapDeps([152,1,2,3,4,5,6,7]),import.meta.url),"./src/HeroBanner/HeroBanner.stories.tsx":async()=>t((()=>import("./HeroBanner.stories-6-8fiYta.js")),__vite__mapDeps([153,1,2,110,3,4,5,6,7]),import.meta.url),"./src/Icon/Icon.stories.tsx":async()=>t((()=>import("./Icon.stories-F3RazOdb.js")),__vite__mapDeps([154,1,2,11,12,13,4,5,14,15,16,17,6,7]),import.meta.url),"./src/IconCountWithTooltip/IconCountWithTooltip.stories.tsx":async()=>t((()=>import("./IconCountWithTooltip.stories-Ci98emn7.js")),__vite__mapDeps([155,1,2,111,11,12,13,4,5,14,15,16,17,6,7,20,21,3]),import.meta.url),"./src/ImageCrop/ImageCrop.stories.tsx":async()=>t((()=>import("./ImageCrop.stories-ConoyDJf.js")),__vite__mapDeps([156,1,2,112,10,11,12,13,4,5,14,15,16,17,6,7,3,54,23,22,24,113]),import.meta.url),"./src/ImageGallery/ImageGallery.stories.tsx":async()=>t((()=>import("./ImageGallery.stories-81PO1kqf.js")),__vite__mapDeps([157,1,2,114,12,13,4,5,11,14,15,16,17,6,7,3,115]),import.meta.url),"./src/Input/Input.stories.tsx":async()=>t((()=>import("./Input.stories-BBSxBs5P.js")),__vite__mapDeps([158,1,2,3,4,5,6,7]),import.meta.url),"./src/InternalLink/InternalLink.stories.tsx":async()=>t((()=>import("./InternalLink.stories-CO5LLP_j.js")),__vite__mapDeps([159,1,2,28,3,4,5,6,7,29,30,25]),import.meta.url),"./src/LinkifyText/LinkifyText.stories.tsx":async()=>t((()=>import("./LinkifyText.stories-BzNh4pI0.js")),__vite__mapDeps([160,1,2,74,12,13,4,5,75,3,6,7,28,29,30,25,22,23,24]),import.meta.url),"./src/Loader/Loader.stories.tsx":async()=>t((()=>import("./Loader.stories-B0z1PY-V.js")),__vite__mapDeps([161,1,2,54,23,4,5,7,12,13,22,24,3,6]),import.meta.url),"./src/Map/Map.stories.tsx":async()=>t((()=>import("./Map.stories-C35vnhRl.js")),__vite__mapDeps([162,1,2,116,13,71,117,118,119,69,120,7,121]),import.meta.url),"./src/MapFilterList/MapFilterList.stories.tsx":async()=>t((()=>import("./MapFilterList.stories-DYa--iUu.js")),__vite__mapDeps([163,1,2,122,10,11,12,13,4,5,14,15,16,17,6,7,3,40,52,22,23,24,31,46]),import.meta.url),"./src/MapMemberCard/MapMemberCard.stories.tsx":async()=>t((()=>import("./MapMemberCard.stories-fWseqN6P.js")),__vite__mapDeps([164,9,124,1,2,23,4,5,7,27,15,12,13,3,6,28,29,30,25,31]),import.meta.url),"./src/MapWithPin/MapPin.stories.tsx":async()=>t((()=>import("./MapPin.stories-D-hiWMw_.js")),__vite__mapDeps([165,1,2,128,120,119,69,117,118,13,7]),import.meta.url),"./src/MapWithPin/MapWithPin.stories.tsx":async()=>t((()=>import("./MapWithPin.stories-BTeVYoQm.js")),__vite__mapDeps([166,1,2,125,10,11,12,13,4,5,14,15,16,17,6,7,3,116,71,117,118,119,69,120,121,126,127,128]),import.meta.url),"./src/MemberBadge/MemberBadge.stories.tsx":async()=>t((()=>import("./MemberBadge.stories-C-CRxL0P.js")),__vite__mapDeps([167,1,2,52,17,22,23,4,5,7,24,3,6]),import.meta.url),"./src/MemberTypeVerticalList/MemberTypeVerticalList.stories.tsx":async()=>t((()=>import("./MemberTypeVerticalList.stories-B_1y335P.js")),__vite__mapDeps([168,1,2,123,46,3,4,5,6,7,52,17,22,23,24,59,12,13,11,14,15,16,60]),import.meta.url),"./src/Modal/Modal.stories.tsx":async()=>t((()=>import("./Modal.stories-B-r6DmaS.js")),__vite__mapDeps([169,1,2,66,30,67,12,13,4,5,3,6,7]),import.meta.url),"./src/ModerationStatus/ModerationStatus.stories.tsx":async()=>t((()=>import("./ModerationStatus.stories-Cq_9dB1K.js")),__vite__mapDeps([170,1,2,129,3,4,5,6,7]),import.meta.url),"./src/MoreContainer/MoreContainer.stories.tsx":async()=>t((()=>import("./MoreContainer.stories-D8fGHZpx.js")),__vite__mapDeps([171,1,2,130,12,13,4,5,22,23,7,24,3,6]),import.meta.url),"./src/NotificationItem/NotificationItem.stories.tsx":async()=>t((()=>import("./NotificationItem.stories-DGU9iCx3.js")),__vite__mapDeps([172,1,2,9,131,22,23,4,5,7,24,11,12,13,14,15,16,17,6,3]),import.meta.url),"./src/NotificationList/NotificationList.stories.tsx":async()=>t((()=>import("./NotificationList.stories-CcPUtz4j.js")),__vite__mapDeps([173,1,2,9,28,3,4,5,6,7,29,30,25,132,12,13,10,11,14,15,16,17,131,22,23,24]),import.meta.url),"./src/OsmGeocoding/OsmGeocoding.stories.tsx":async()=>t((()=>import("./OsmGeocoding.stories-BZTTGKOM.js")),__vite__mapDeps([174,1,2,126,127,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/PinProfile/PinProfile.stories.tsx":async()=>t((()=>import("./PinProfile.stories-A8QmIJyx.js")),__vite__mapDeps([175,1,2,9,133,10,11,12,13,4,5,14,15,16,17,6,7,3,40,46,50,51,52,22,23,24,27,28,29,30,25,31,53]),import.meta.url),"./src/ProfileLink/ProfileLink.stories.tsx":async()=>t((()=>import("./ProfileLink.stories-DE8tM-1Y.js")),__vite__mapDeps([176,1,2,134,75,3,4,5,6,7,11,12,13,14,15,16,17]),import.meta.url),"./src/ProfileTagsList/ProfileTagsList.stories.tsx":async()=>t((()=>import("./ProfileTagsList.stories-B5RDTpZr.js")),__vite__mapDeps([177,1,2,53,51,3,4,5,6,7]),import.meta.url),"./src/ResearchEditorOverview/ResearchEditorOverview.stories.tsx":async()=>t((()=>import("./ResearchEditorOverview.stories-wTNuo5e7.js")),__vite__mapDeps([178,1,2,135,72,10,11,12,13,4,5,14,15,16,17,6,7,3,28,29,30,25]),import.meta.url),"./src/SearchField/SearchField.stories.tsx":async()=>t((()=>import("./SearchField.stories-CHoQUmvH.js")),__vite__mapDeps([179,1,2,127,11,12,13,4,5,14,15,16,17,6,7,3]),import.meta.url),"./src/Select/Select.stories.tsx":async()=>t((()=>import("./Select.stories-C5WKuu9k.js")),__vite__mapDeps([180,1,2,136,119,69,71,13,117,137,23,4,5,7,30,21,16,3,6,22,24]),import.meta.url),"./src/SettingsFormWrapper/SettingsFormWrapper.stories.tsx":async()=>t((()=>import("./SettingsFormWrapper.stories-CNxOWbVL.js")),__vite__mapDeps([181,1,2,138,3,4,5,6,7,139,12,13,11,14,15,16,17,28,29,30,25,136,119,69,71,117,137,23,21,22,24]),import.meta.url),"./src/SiteFooter/SiteFooter.stories.tsx":async()=>t((()=>import("./SiteFooter.stories-Qub1crzS.js")),__vite__mapDeps([182,1,2,140,12,13,4,5,75,3,6,7,11,14,15,16,17]),import.meta.url),"./src/TabbedContent/TabbedContent.stories.tsx":async()=>t((()=>import("./TabbedContent.stories-DAjm-iwT.js")),__vite__mapDeps([183,1,2,9,141,12,13,4,5,139,3,6,7]),import.meta.url),"./src/Tag/Tag.stories.tsx":async()=>t((()=>import("./Tag.stories-Dud28Iz9.js")),__vite__mapDeps([184,1,2,142,3,4,5,6,7]),import.meta.url),"./src/TagList/TagList.stories.tsx":async()=>t((()=>import("./TagList.stories-PSzJp3qC.js")),__vite__mapDeps([185,1,2,143,142,3,4,5,6,7]),import.meta.url),"./src/Text/Text.stories.tsx":async()=>t((()=>import("./Text.stories-CV98I21z.js")),__vite__mapDeps([186,1,2,9,3,4,5,6,7]),import.meta.url),"./src/TextNotification/TextNotification.stories.tsx":async()=>t((()=>import("./TextNotification.stories-Dk3q_AuJ.js")),__vite__mapDeps([187,1,2,144,23,4,5,7,3,6]),import.meta.url),"./src/Textarea/Textarea.stories.tsx":async()=>t((()=>import("./Textarea.stories-DjC1cr2u.js")),__vite__mapDeps([188,1,2,3,4,5,6,7]),import.meta.url),"./src/Tooltip/Tooltip.stories.tsx":async()=>t((()=>import("./Tooltip.stories-DVAx_Iyz.js")),__vite__mapDeps([189,1,2,20,21,12,13,4,5,3,6,7]),import.meta.url),"./src/UsefulStatsButton/UsefulStatsButton.stories.tsx":async()=>t((()=>import("./UsefulStatsButton.stories-BQGYN2RA.js")),__vite__mapDeps([18,1,2,19,10,11,12,13,4,5,14,15,16,17,6,7,3,20,21,22,23,24,25]),import.meta.url),"./src/UserEngagementWrapper/UserEngagementWrapper.stories.tsx":async()=>t((()=>import("./UserEngagementWrapper.stories-mfFm7s3I.js")),__vite__mapDeps([190,1,2,26,27,15,12,13,4,5,3,6,7,28,29,30,25,31,22,23,24,33,35,10,11,14,16,17,37,40,43,44,46,48,49,50,51,52,53,54,58,59,60,83,64,65,66,67,68,69,70,71,72,73,62,74,75,77,78,79,80,87,91,93,95,20,21,97,101,99,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,19,145,146,147]),import.meta.url),"./src/UserStatistics/UserStatistics.stories.tsx":async()=>t((()=>import("./UserStatistics.stories-_QY_W2NI.js")),__vite__mapDeps([191,1,2,146,17,104,3,4,5,6,7,75,11,12,13,14,15,16,28,29,30,25]),import.meta.url),"./src/Username/Username.stories.tsx":async()=>t((()=>import("./Username.stories-takJr8Sz.js")),__vite__mapDeps([192,27,1,2,15,12,13,4,5,3,6,7,28,29,30,25,31]),import.meta.url),"./src/VerticalList/VerticalList.stories.tsx":async()=>t((()=>import("./VerticalList.stories-CuBGFry3.js")),__vite__mapDeps([193,1,2,59,12,13,4,5,11,14,15,16,17,6,7,3,60]),import.meta.url),"./src/VideoPlayer/VideoPlayer.stories.tsx":async()=>t((()=>import("./VideoPlayer.stories-JJOtj8hI.js")),__vite__mapDeps([194,1,2,147,24,67,3,4,5,6,7]),import.meta.url),"./src/welcome.mdx":async()=>t((()=>import("./welcome-CcTTxTtu.js")),__vite__mapDeps([195,1,2,196,5,30,197,13,117,118,137,198,199,200]),import.meta.url)};async function D(t){return y[t]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,x=async()=>{const s=await Promise.all([t((()=>import("./entry-preview-9LBAkts4.js")),__vite__mapDeps([201,2,202,30]),import.meta.url),t((()=>import("./entry-preview-docs-zO113c-Z.js")),__vite__mapDeps([203,198,2,67,199]),import.meta.url),t((()=>import("./preview-BJPLiuSt.js")),__vite__mapDeps([204,197]),import.meta.url),t((()=>import("./preview-BlWnjhM1.js")),[],import.meta.url),t((()=>import("./preview-BEBQg86I.js")),__vite__mapDeps([205,199]),import.meta.url),t((()=>import("./preview-BcxrGG1y.js")),__vite__mapDeps([206,199]),import.meta.url),t((()=>import("./preview-Db4Idchh.js")),[],import.meta.url),t((()=>import("./preview-BAz7FMXc.js")),__vite__mapDeps([207,199]),import.meta.url),t((()=>import("./preview-Cv3rAi2i.js")),[],import.meta.url),t((()=>import("./preview-B4l0stmi.js")),__vite__mapDeps([208,1,2,22,23,4,5,7,24,109,25,29,30]),import.meta.url)]);return A(s)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v,window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore,window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new V({storyStore:window.__STORYBOOK_PREVIEW__.storyStore}),window.__STORYBOOK_PREVIEW__.initialize({importFn:D,getProjectAnnotations:x});export{t as _}; \ No newline at end of file diff --git a/storybook-static/assets/index-DcmRRetP.js b/storybook-static/assets/index-u2PVOEPH.js similarity index 99% rename from storybook-static/assets/index-DcmRRetP.js rename to storybook-static/assets/index-u2PVOEPH.js index 8213ab2807..d7771cdee3 100644 --- a/storybook-static/assets/index-DcmRRetP.js +++ b/storybook-static/assets/index-u2PVOEPH.js @@ -1,5 +1,5 @@ -/*! For license information please see index-DcmRRetP.js.LICENSE.txt */ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJWPISIS-D6eTHbYz.js","./iframe-Cbd_NVaI.js","./index-BP8_t0zE.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-BBRV8eG_.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./formatter-SWP5E3XI-BJc8U_Su.js","./WithTooltip-V3YHNWJZ-DxLX0qq7.js","./Color-6VNJS4EI-BfquLmg4.js"]))=>e.map((e=>r[e]));import{_ as Wt}from"./iframe-Cbd_NVaI.js";import{g as In,r as h,a}from"./index-BP8_t0zE.js";import{u as Ml,a as Co}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import{r as hs,R as j0}from"./index-BBRV8eG_.js";import{O as bs,P as N0}from"./index-D-8MO0q_.js";import{_ as Be}from"./extends-CF3RwP-h.js";import{_ as ys,a as H0}from"./setPrototypeOf-NYsvoNVB.js";import{_ as Z0}from"./inheritsLoose-CdQPfY07.js";import{_ as V0,a as z0}from"./isNativeReflectConstruct-gwnEYaHE.js";import{q as vs,r as q0,s as Es,t as U0,i as Pn,v as W0,w as G0,x as Y0,c as xs,y as ws,z as K0,A as As,B as X0,C as J0,D as Q0,E as e1,F as t1,G as r1,H as Ss,I as n1,J as a1,K as Cs,_ as o1,L as l1,M as i1,N as ko,d as ks,O as _s,P as Os,Q as s1,R as c1,U as u1,e as d1,S as Bl,V as Na,k as pa}from"./index-EEBIeVPD.js";import{d as we}from"./index-DrFu-skq.js";var qe=e=>`control-${e.replace(/\s+/g,"-")}`,jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:p1}=__STORYBOOK_MODULE_GLOBAL__,{logger:f1}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var m1=Object.create,Ts=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,Rs=Object.getOwnPropertyNames,h1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,_o=(e,t)=>function(){return t||(0,e[Rs(e)[0]])((t={exports:{}}).exports,t),t.exports},y1=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Rs(t))!b1.call(e,n)&&n!==r&&Ts(e,n,{get:()=>t[n],enumerable:!(a=g1(t,n))||a.enumerable});return e},Fs=(e,t,r)=>(r=null!=e?m1(h1(e)):{},y1(e&&e.__esModule?r:Ts(r,"default",{value:e,enumerable:!0}),e));function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?r-1:0),n=1;n=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var Il={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function k1(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Il[t]?"#"+Il[t]:e}var _1=/^#[a-fA-F0-9]{6}$/,O1=/^#[a-fA-F0-9]{8}$/,T1=/^#[a-fA-F0-9]{3}$/,R1=/^#[a-fA-F0-9]{4}$/,ma=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,F1=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,$1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,D1=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Nn(e){if("string"!=typeof e)throw new lt(3);var t=k1(e);if(t.match(_1))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(O1)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(T1))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(R1)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=ma.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=F1.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=$1.exec(t);if(l){var i="rgb("+Ir(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=ma.exec(i);if(!s)throw new lt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=D1.exec(t.substring(0,50));if(c){var u="rgb("+Ir(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=ma.exec(u);if(!d)throw new lt(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new lt(5)}function L1(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?_n(e,t,r):"rgba("+Ir(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+Ir(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new lt(2)}function za(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return Va("#"+It(e)+It(t)+It(r));if("object"==typeof e&&void 0===t&&void 0===r)return Va("#"+It(e.red)+It(e.green)+It(e.blue));throw new lt(6)}function Pr(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=Nn(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?za(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?za(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new lt(7)}var j1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},N1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},H1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},Z1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ls(e){if("object"!=typeof e)throw new lt(8);if(N1(e))return Pr(e);if(j1(e))return za(e);if(Z1(e))return P1(e);if(H1(e))return I1(e);throw new lt(8)}function Ms(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ms(e,t,a)}}function Hn(e){return Ms(e,e.length,[])}function Zn(e,t,r){return Math.max(e,Math.min(t,r))}function V1(e,t){if("transparent"===t)return t;var r=Ds(t);return Ls(or({},r,{lightness:Zn(0,1,r.lightness-parseFloat(e))}))}var z1=Hn(V1),q1=z1;function U1(e,t){if("transparent"===t)return t;var r=Ds(t);return Ls(or({},r,{lightness:Zn(0,1,r.lightness+parseFloat(e))}))}var W1=Hn(U1),G1=W1;function Y1(e,t){if("transparent"===t)return t;var r=Nn(t);return Pr(or({},r,{alpha:Zn(0,1,(100*("number"==typeof r.alpha?r.alpha:1)+100*parseFloat(e))/100)}))}var K1=Hn(Y1),X1=K1;function J1(e,t){if("transparent"===t)return t;var r=Nn(t);return Pr(or({},r,{alpha:Zn(0,1,+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var Q1=Hn(J1),ed=Q1,N={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ct={app:"#F6F9FC",bar:N.lightest,content:N.lightest,preview:N.lightest,gridCellSize:10,hoverable:ed(.9,N.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},it={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},td={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ct.app,appContentBg:N.lightest,appPreviewBg:N.lightest,appBorderColor:N.border,appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:N.darkest,textInverseColor:N.lightest,textMutedColor:N.dark,barTextColor:N.mediumdark,barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:N.lightest,buttonBg:Ct.app,buttonBorder:N.medium,booleanBg:N.mediumlight,booleanSelectedBg:N.lightest,inputBg:N.lightest,inputBorder:N.border,inputTextColor:N.darkest,inputBorderRadius:4},On=td,rd={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:N.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:N.lightest,inputBorderRadius:4},nd=rd,{window:ha}=p1,ad=e=>({color:e}),od=e=>"string"==typeof e||(f1.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1),ld=e=>!/(gradient|var|calc)/.test(e),id=(e,t)=>"darken"===e?Pr(`${q1(1,t)}`,.95):"lighten"===e?Pr(`${G1(1,t)}`,.95):t,sd=e=>t=>{if(!od(t)||!ld(t))return t;try{return id(e,t)}catch{return t}},$r=sd("lighten"),Bs=()=>ha&&ha.matchMedia&&ha.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",qa={light:On,dark:nd,normal:On};function cn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Bs();var Is={exports:{}};Is.exports=function e(t,r,a){function n(l,i){if(!r[l]){if(!t[l]){var s="function"==typeof cn&&cn;if(!i&&s)return s(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[l]={exports:{}};t[l][0].call(u.exports,(function(e){return n(t[l][1][e]||e)}),u,u.exports,e,t,r,a)}return r[l].exports}for(var o="function"==typeof cn&&cn,l=0;l=0?(this.lastItem=this.list[t],this.list[t].val):void 0},a.prototype.set=function(e,t){var r;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(r=this.indexOf(e))>=0?(this.lastItem=this.list[r],this.list[r].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this)},a.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),(t=this.indexOf(e))>=0)return this.size--,this.list.splice(t,1)[0]},a.prototype.has=function(e){var t;return!(!this.lastItem||!this.isEqual(this.lastItem.key,e))||(t=this.indexOf(e))>=0&&(this.lastItem=this.list[t],!0)},a.prototype.forEach=function(e,t){var r;for(r=0;r=0&&(!(t=(n=e[r]).cacheItem.get(n.arg))||!t.size);r--)n.cacheItem.delete(n.arg)}function l(e,t){return e===t||e!=e&&t!=t}t.exports=function(e){var t=new a(!1),r=[];return function(l){var i=function(){var s,c,u,d=t,p=arguments.length-1,m=Array(p+1),h=!0;if((i.numArgs||0===i.numArgs)&&i.numArgs!==p+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(u=0;u0&&(m[p]={cacheItem:d,arg:arguments[p]},h?n(r,m):r.push(m),r.length>e&&o(r.shift())),i.wasMemoized=h,i.numArgs=p+1,c};return i.limit=e,i.wasMemoized=!1,i.cache=t,i.lru=r,i}}},{"map-or-similar":1}]},{},[3])(3);var cd=Is.exports;const Yt=In(cd),{logger:ud}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var dd=_o({"../../node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var m=e.type;switch(m){case c:case u:case n:case l:case o:case p:return m;default:var g=m&&m.$$typeof;switch(g){case s:case d:case f:case h:case i:return g;default:return t}}case a:return t}}}var x=c,w=u,k=s,S=i,C=r,A=d,_=n,O=f,R=h,M=a,T=l,L=o,j=p,F=!1;function N(e){return E(e)===u}e.AsyncMode=x,e.ConcurrentMode=w,e.ContextConsumer=k,e.ContextProvider=S,e.Element=C,e.ForwardRef=A,e.Fragment=_,e.Lazy=O,e.Memo=R,e.Portal=M,e.Profiler=T,e.StrictMode=L,e.Suspense=j,e.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||E(e)===c},e.isConcurrentMode=N,e.isContextConsumer=function(e){return E(e)===s},e.isContextProvider=function(e){return E(e)===i},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return E(e)===d},e.isFragment=function(e){return E(e)===n},e.isLazy=function(e){return E(e)===f},e.isMemo=function(e){return E(e)===h},e.isPortal=function(e){return E(e)===a},e.isProfiler=function(e){return E(e)===l},e.isStrictMode=function(e){return E(e)===o},e.isSuspense=function(e){return E(e)===p},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===l||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},e.typeOf=E}()}}),pd=_o({"../../node_modules/react-is/index.js"(e,t){t.exports=dd()}}),Ps=_o({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=pd(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,a)}var l=c(r);u&&(l=l.concat(u(r)));for(var h=i(t),f=i(r),g=0;g0?pe(hr,--Ce):0,lr--,10===oe&&(lr=1,zn--),oe}function _e(){return oe=Ce2||Nr(oe)>3?"":" "}function Od(e,t){for(;--t&&_e()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Xr(e,yn()+(t<6&&32==ut()&&32==_e()))}function Ga(e){for(;_e();)switch(oe){case e:return Ce;case 34:case 39:34!==e&&39!==e&&Ga(oe);break;case 40:41===e&&Ga(e);break;case 92:_e()}return Ce}function Td(e,t){for(;_e()&&e+oe!==57&&(e+oe!==84||47!==ut()););return"/*"+Xr(t,Ce-1)+"*"+Vn(47===e?e:_e())}function Rd(e){for(;!Nr(ut());)_e();return Xr(e,Ce)}function Fd(e){return Vs(En("",null,null,null,[""],e=Zs(e),0,[0],e))}function En(e,t,r,a,n,o,l,i,s){for(var c=0,u=0,d=l,p=0,m=0,h=0,f=1,g=1,b=1,y=0,v="",E=n,x=o,w=a,k=v;g;)switch(h=y,y=_e()){case 40:if(108!=h&&58==pe(k,d-1)){-1!=Wa(k+=Y(vn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=vn(y);break;case 9:case 10:case 13:case 32:k+=_d(h);break;case 92:k+=Od(yn()-1,7);continue;case 47:switch(ut()){case 42:case 47:un($d(Td(_e(),yn()),t,r),s);break;default:k+="/"}break;case 123*f:i[c++]=tt(k)*b;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(k=Y(k,/\f/g,"")),m>0&&tt(k)-d&&un(m>32?jl(k+";",a,r,d-1):jl(Y(k," ","")+";",a,r,d-2),s);break;case 59:k+=";";default:if(un(w=Pl(k,t,r,c,u,n,i,v,E=[],x=[],d),o),123===y)if(0===u)En(k,t,w,w,E,o,d,i,x);else switch(99===p&&110===pe(k,3)?100:p){case 100:case 108:case 109:case 115:En(e,w,w,a&&un(Pl(e,w,w,0,0,n,i,v,n,E=[],d),x),n,x,d,i,a?E:x);break;default:En(k,w,w,w,[""],x,0,i,x)}}c=u=m=0,f=b=1,v=k="",d=l;break;case 58:d=1+tt(k),m=h;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==kd())continue;switch(k+=Vn(y),y*f){case 38:b=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(tt(k)-1)*b,b=1;break;case 64:45===ut()&&(k+=vn(_e())),p=ut(),u=d=tt(v=k+=Rd(yn())),y++;break;case 45:45===h&&2==tt(k)&&(f=0)}}return o}function Pl(e,t,r,a,n,o,l,i,s,c,u){for(var d=n-1,p=0===n?o:[""],m=$o(p),h=0,f=0,g=0;h0?p[b]+" "+y:Y(y,/&\f/g,p[b])))&&(s[g++]=v);return qn(e,t,r,0===n?Ro:i,s,c,u)}function $d(e,t,r){return qn(e,t,r,To,Vn(Cd()),jr(e,2,-2),0)}function jl(e,t,r,a){return qn(e,t,r,Fo,jr(e,0,a),jr(e,a+1,-1),a)}function ar(e,t){for(var r="",a=$o(e),n=0;n-1},Zd=function(e){return function(t,r,a){if("rule"===t.type&&!e.compat){var n=t.value.match(/(:first|:nth|:nth-last)-child/g);if(n){for(var o=!!t.parent?t.parent.children:a,l=o.length-1;l>=0;l--){var i=o[l];if(i.line=0;r--)if(!zs(t[r]))return!0;return!1},Zl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},zd=function(e,t,r){zs(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zl(e)):Vd(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zl(e)))};function qs(e,t){switch(wd(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Tn+e+be+e+e;case 6828:case 4268:return G+e+be+e+e;case 6165:return G+e+be+"flex-"+e+e;case 5187:return G+e+Y(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+be+"flex-$1$2")+e;case 5443:return G+e+be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return G+e+be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+be+Y(e,"shrink","negative")+e;case 5292:return G+e+be+Y(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Y(e,"-grow","")+G+e+be+Y(e,"grow","positive")+e;case 4554:return G+Y(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(pe(e,t+1)){case 109:if(45!==pe(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Tn+(108==pe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wa(e,"stretch")?qs(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pe(e,t+1))break;case 6444:switch(pe(e,tt(e)-3-(~Wa(e,"!important")&&10))){case 107:return Y(e,":",":"+G)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===pe(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+be+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+be+e+e}return e}var qd=function(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=qs(e.value,e.length);break;case js:return ar([kr(e,{value:Y(e.value,"@","@"+G)})],a);case Ro:if(e.length)return Sd(e.props,(function(t){switch(Ad(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([kr(e,{props:[Y(t,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return ar([kr(e,{props:[Y(t,/:(plac\w+)/,":"+G+"input-$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,":"+Tn+"$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,be+"input-$1")]})],a)}return""}))}},Ud=[qd],Wd=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||Ud;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var n,o={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++a,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Xd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Jd=/[A-Z]|^ms/g,Us=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lo=function(e){return 45===e.charCodeAt(1)},zl=function(e){return null!=e&&"boolean"!=typeof e},ba=Oo((function(e){return Lo(e)?e:e.replace(Jd,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Us,(function(e,t,r){return rt={name:t,styles:r,next:rt},t}))}return 1===Kd[e]||Lo(e)||"number"!=typeof t||0===t?t:t+"px"};ql=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ul=["normal","none","initial","inherit","unset"],Wl=Rn,Gl=/^-ms-/,Yl=/-(.)/g,ya={},Rn=function(e,t){if("content"===e&&("string"!=typeof t||-1===Ul.indexOf(t)&&!ql.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Wl(e,t);return""!==r&&!Lo(e)&&-1!==e.indexOf("-")&&void 0===ya[e]&&(ya[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Gl,"ms-").replace(Yl,(function(e,t){return t.toUpperCase()}))+"?")),r};var ql,Ul,Wl,Gl,Yl,ya,Ws="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Hr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Ws);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return rt={name:r.name,styles:r.styles,next:rt},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;var n=r.styles+";";return void 0!==r.map&&(n+=r.map),n}return Qd(e,t,r);case"function":if(void 0!==e){var o=rt,l=r(e);return rt=o,Hr(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var i=[],s=r.replace(Us,(function(e,t,r){var a="animation"+i.length;return i.push("const "+a+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+a+"}"}));i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}if(null==t)return r;var c=t[r];return void 0!==c?c:r}function Qd(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n ({})}!");return r}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Ya({},e,t)},np=Nl((function(e){return Nl((function(t){return rp(e,t)}))})),Ys=function(e){var t=h.useContext(Ot);return e.theme!==t&&(t=np(t)(e.theme)),h.createElement(Ot.Provider,{value:t},e.children)},Xl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jl="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ap=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},op=Gn((function(e,t,r){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var n=e[Xl],o=[a],l="";"string"==typeof e.className?l=Do(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var i=ir(o,void 0,h.useContext(Ot));if(-1===i.name.indexOf("-")){var s=e[Jl];s&&(i=ir([i,"label:"+s+";"]))}l+=t.key+"-"+i.name;var c={};for(var u in e)ep.call(e,u)&&"css"!==u&&u!==Xl&&u!==Jl&&(c[u]=e[u]);return c.ref=r,c.className=l,h.createElement(h.Fragment,null,h.createElement(ap,{cache:t,serialized:i,isStringTag:"string"==typeof n}),h.createElement(n,c))}));op.displayName="EmotionCssPropInternal",Fs(Ps());var lp={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Ql=!1,ip=Gn((function(e,t){!Ql&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ql=!0);var r=e.styles,a=ir([r],void 0,h.useContext(Ot)),n=h.useRef();return Ml((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,l=document.querySelector('style[data-emotion="'+e+" "+a.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==l&&(o=!0,l.setAttribute("data-emotion",e),r.hydrate([l])),n.current=[r,o],function(){r.flush()}}),[t]),Ml((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==a.next&&Wn(t,a.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",a,r,!1)}}),[t,a.name]),null}));function Bo(){for(var e=arguments.length,t=new Array(e),r=0;r component."),l="",o)o[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=o}l&&(n&&(n+=" "),n+=l)}}return n};function cp(e,t,r){var a=[],n=Do(e,a,r);return a.length<2?r:n+t(a)}var up=function(e){var t=e.cache,r=e.serializedArr;return Co((function(){for(var e=0;e96?pp:fp},ri=function(e,t,r){var a;if(t){var n=t.shouldForwardProp;a=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof a&&r&&(a=e.__emotion_forwardProp),a},ni="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",mp=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},gp=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var a,n,o=t.__emotion_real===t,l=o&&t.__emotion_base||t;void 0!==r&&(a=r.label,n=r.target);var i=ri(t,r,o),s=i||ti(l),c=!s("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&d.push("label:"+a+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{void 0===u[0][0]&&console.error(ni),d.push(u[0][0]);for(var p=u.length,m=1;m({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})));Yt(1)((({color:e,background:t,typography:r})=>{let a=yp({typography:r});return{...a,body:{...a.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...a.hr,borderTop:`1px solid ${e.border}`}}}));var vp={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},Ep=br` +/*! For license information please see index-u2PVOEPH.js.LICENSE.txt */ +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJWPISIS-CxDMJmvs.js","./iframe-QafAnwiH.js","./index-BP8_t0zE.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-BBRV8eG_.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./formatter-SWP5E3XI-CI3Tyzsb.js","./WithTooltip-V3YHNWJZ-Bzm03E-l.js","./Color-6VNJS4EI-CM_04bzp.js"]))=>e.map((e=>r[e]));import{_ as Wt}from"./iframe-QafAnwiH.js";import{g as In,r as h,a}from"./index-BP8_t0zE.js";import{u as Ml,a as Co}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import{r as hs,R as j0}from"./index-BBRV8eG_.js";import{O as bs,P as N0}from"./index-D-8MO0q_.js";import{_ as Be}from"./extends-CF3RwP-h.js";import{_ as ys,a as H0}from"./setPrototypeOf-NYsvoNVB.js";import{_ as Z0}from"./inheritsLoose-CdQPfY07.js";import{_ as V0,a as z0}from"./isNativeReflectConstruct-gwnEYaHE.js";import{q as vs,r as q0,s as Es,t as U0,i as Pn,v as W0,w as G0,x as Y0,c as xs,y as ws,z as K0,A as As,B as X0,C as J0,D as Q0,E as e1,F as t1,G as r1,H as Ss,I as n1,J as a1,K as Cs,_ as o1,L as l1,M as i1,N as ko,d as ks,O as _s,P as Os,Q as s1,R as c1,U as u1,e as d1,S as Bl,V as Na,k as pa}from"./index-EEBIeVPD.js";import{d as we}from"./index-DrFu-skq.js";var qe=e=>`control-${e.replace(/\s+/g,"-")}`,jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:p1}=__STORYBOOK_MODULE_GLOBAL__,{logger:f1}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var m1=Object.create,Ts=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,Rs=Object.getOwnPropertyNames,h1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,_o=(e,t)=>function(){return t||(0,e[Rs(e)[0]])((t={exports:{}}).exports,t),t.exports},y1=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Rs(t))!b1.call(e,n)&&n!==r&&Ts(e,n,{get:()=>t[n],enumerable:!(a=g1(t,n))||a.enumerable});return e},Fs=(e,t,r)=>(r=null!=e?m1(h1(e)):{},y1(e&&e.__esModule?r:Ts(r,"default",{value:e,enumerable:!0}),e));function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?r-1:0),n=1;n=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var Il={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function k1(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Il[t]?"#"+Il[t]:e}var _1=/^#[a-fA-F0-9]{6}$/,O1=/^#[a-fA-F0-9]{8}$/,T1=/^#[a-fA-F0-9]{3}$/,R1=/^#[a-fA-F0-9]{4}$/,ma=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,F1=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,$1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,D1=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Nn(e){if("string"!=typeof e)throw new lt(3);var t=k1(e);if(t.match(_1))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(O1)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(T1))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(R1)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=ma.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=F1.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=$1.exec(t);if(l){var i="rgb("+Ir(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=ma.exec(i);if(!s)throw new lt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=D1.exec(t.substring(0,50));if(c){var u="rgb("+Ir(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=ma.exec(u);if(!d)throw new lt(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new lt(5)}function L1(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?_n(e,t,r):"rgba("+Ir(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+Ir(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new lt(2)}function za(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return Va("#"+It(e)+It(t)+It(r));if("object"==typeof e&&void 0===t&&void 0===r)return Va("#"+It(e.red)+It(e.green)+It(e.blue));throw new lt(6)}function Pr(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=Nn(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?za(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?za(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new lt(7)}var j1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},N1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},H1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},Z1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ls(e){if("object"!=typeof e)throw new lt(8);if(N1(e))return Pr(e);if(j1(e))return za(e);if(Z1(e))return P1(e);if(H1(e))return I1(e);throw new lt(8)}function Ms(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ms(e,t,a)}}function Hn(e){return Ms(e,e.length,[])}function Zn(e,t,r){return Math.max(e,Math.min(t,r))}function V1(e,t){if("transparent"===t)return t;var r=Ds(t);return Ls(or({},r,{lightness:Zn(0,1,r.lightness-parseFloat(e))}))}var z1=Hn(V1),q1=z1;function U1(e,t){if("transparent"===t)return t;var r=Ds(t);return Ls(or({},r,{lightness:Zn(0,1,r.lightness+parseFloat(e))}))}var W1=Hn(U1),G1=W1;function Y1(e,t){if("transparent"===t)return t;var r=Nn(t);return Pr(or({},r,{alpha:Zn(0,1,(100*("number"==typeof r.alpha?r.alpha:1)+100*parseFloat(e))/100)}))}var K1=Hn(Y1),X1=K1;function J1(e,t){if("transparent"===t)return t;var r=Nn(t);return Pr(or({},r,{alpha:Zn(0,1,+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var Q1=Hn(J1),ed=Q1,N={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ct={app:"#F6F9FC",bar:N.lightest,content:N.lightest,preview:N.lightest,gridCellSize:10,hoverable:ed(.9,N.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},it={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},td={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ct.app,appContentBg:N.lightest,appPreviewBg:N.lightest,appBorderColor:N.border,appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:N.darkest,textInverseColor:N.lightest,textMutedColor:N.dark,barTextColor:N.mediumdark,barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:N.lightest,buttonBg:Ct.app,buttonBorder:N.medium,booleanBg:N.mediumlight,booleanSelectedBg:N.lightest,inputBg:N.lightest,inputBorder:N.border,inputTextColor:N.darkest,inputBorderRadius:4},On=td,rd={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:N.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:N.lightest,inputBorderRadius:4},nd=rd,{window:ha}=p1,ad=e=>({color:e}),od=e=>"string"==typeof e||(f1.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1),ld=e=>!/(gradient|var|calc)/.test(e),id=(e,t)=>"darken"===e?Pr(`${q1(1,t)}`,.95):"lighten"===e?Pr(`${G1(1,t)}`,.95):t,sd=e=>t=>{if(!od(t)||!ld(t))return t;try{return id(e,t)}catch{return t}},$r=sd("lighten"),Bs=()=>ha&&ha.matchMedia&&ha.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",qa={light:On,dark:nd,normal:On};function cn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Bs();var Is={exports:{}};Is.exports=function e(t,r,a){function n(l,i){if(!r[l]){if(!t[l]){var s="function"==typeof cn&&cn;if(!i&&s)return s(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[l]={exports:{}};t[l][0].call(u.exports,(function(e){return n(t[l][1][e]||e)}),u,u.exports,e,t,r,a)}return r[l].exports}for(var o="function"==typeof cn&&cn,l=0;l=0?(this.lastItem=this.list[t],this.list[t].val):void 0},a.prototype.set=function(e,t){var r;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(r=this.indexOf(e))>=0?(this.lastItem=this.list[r],this.list[r].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this)},a.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),(t=this.indexOf(e))>=0)return this.size--,this.list.splice(t,1)[0]},a.prototype.has=function(e){var t;return!(!this.lastItem||!this.isEqual(this.lastItem.key,e))||(t=this.indexOf(e))>=0&&(this.lastItem=this.list[t],!0)},a.prototype.forEach=function(e,t){var r;for(r=0;r=0&&(!(t=(n=e[r]).cacheItem.get(n.arg))||!t.size);r--)n.cacheItem.delete(n.arg)}function l(e,t){return e===t||e!=e&&t!=t}t.exports=function(e){var t=new a(!1),r=[];return function(l){var i=function(){var s,c,u,d=t,p=arguments.length-1,m=Array(p+1),h=!0;if((i.numArgs||0===i.numArgs)&&i.numArgs!==p+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(u=0;u0&&(m[p]={cacheItem:d,arg:arguments[p]},h?n(r,m):r.push(m),r.length>e&&o(r.shift())),i.wasMemoized=h,i.numArgs=p+1,c};return i.limit=e,i.wasMemoized=!1,i.cache=t,i.lru=r,i}}},{"map-or-similar":1}]},{},[3])(3);var cd=Is.exports;const Yt=In(cd),{logger:ud}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var dd=_o({"../../node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var m=e.type;switch(m){case c:case u:case n:case l:case o:case p:return m;default:var g=m&&m.$$typeof;switch(g){case s:case d:case f:case h:case i:return g;default:return t}}case a:return t}}}var x=c,w=u,k=s,S=i,C=r,A=d,_=n,O=f,R=h,M=a,T=l,L=o,j=p,F=!1;function N(e){return E(e)===u}e.AsyncMode=x,e.ConcurrentMode=w,e.ContextConsumer=k,e.ContextProvider=S,e.Element=C,e.ForwardRef=A,e.Fragment=_,e.Lazy=O,e.Memo=R,e.Portal=M,e.Profiler=T,e.StrictMode=L,e.Suspense=j,e.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||E(e)===c},e.isConcurrentMode=N,e.isContextConsumer=function(e){return E(e)===s},e.isContextProvider=function(e){return E(e)===i},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return E(e)===d},e.isFragment=function(e){return E(e)===n},e.isLazy=function(e){return E(e)===f},e.isMemo=function(e){return E(e)===h},e.isPortal=function(e){return E(e)===a},e.isProfiler=function(e){return E(e)===l},e.isStrictMode=function(e){return E(e)===o},e.isSuspense=function(e){return E(e)===p},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===l||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},e.typeOf=E}()}}),pd=_o({"../../node_modules/react-is/index.js"(e,t){t.exports=dd()}}),Ps=_o({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=pd(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,a)}var l=c(r);u&&(l=l.concat(u(r)));for(var h=i(t),f=i(r),g=0;g0?pe(hr,--Ce):0,lr--,10===oe&&(lr=1,zn--),oe}function _e(){return oe=Ce2||Nr(oe)>3?"":" "}function Od(e,t){for(;--t&&_e()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Xr(e,yn()+(t<6&&32==ut()&&32==_e()))}function Ga(e){for(;_e();)switch(oe){case e:return Ce;case 34:case 39:34!==e&&39!==e&&Ga(oe);break;case 40:41===e&&Ga(e);break;case 92:_e()}return Ce}function Td(e,t){for(;_e()&&e+oe!==57&&(e+oe!==84||47!==ut()););return"/*"+Xr(t,Ce-1)+"*"+Vn(47===e?e:_e())}function Rd(e){for(;!Nr(ut());)_e();return Xr(e,Ce)}function Fd(e){return Vs(En("",null,null,null,[""],e=Zs(e),0,[0],e))}function En(e,t,r,a,n,o,l,i,s){for(var c=0,u=0,d=l,p=0,m=0,h=0,f=1,g=1,b=1,y=0,v="",E=n,x=o,w=a,k=v;g;)switch(h=y,y=_e()){case 40:if(108!=h&&58==pe(k,d-1)){-1!=Wa(k+=Y(vn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=vn(y);break;case 9:case 10:case 13:case 32:k+=_d(h);break;case 92:k+=Od(yn()-1,7);continue;case 47:switch(ut()){case 42:case 47:un($d(Td(_e(),yn()),t,r),s);break;default:k+="/"}break;case 123*f:i[c++]=tt(k)*b;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(k=Y(k,/\f/g,"")),m>0&&tt(k)-d&&un(m>32?jl(k+";",a,r,d-1):jl(Y(k," ","")+";",a,r,d-2),s);break;case 59:k+=";";default:if(un(w=Pl(k,t,r,c,u,n,i,v,E=[],x=[],d),o),123===y)if(0===u)En(k,t,w,w,E,o,d,i,x);else switch(99===p&&110===pe(k,3)?100:p){case 100:case 108:case 109:case 115:En(e,w,w,a&&un(Pl(e,w,w,0,0,n,i,v,n,E=[],d),x),n,x,d,i,a?E:x);break;default:En(k,w,w,w,[""],x,0,i,x)}}c=u=m=0,f=b=1,v=k="",d=l;break;case 58:d=1+tt(k),m=h;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==kd())continue;switch(k+=Vn(y),y*f){case 38:b=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(tt(k)-1)*b,b=1;break;case 64:45===ut()&&(k+=vn(_e())),p=ut(),u=d=tt(v=k+=Rd(yn())),y++;break;case 45:45===h&&2==tt(k)&&(f=0)}}return o}function Pl(e,t,r,a,n,o,l,i,s,c,u){for(var d=n-1,p=0===n?o:[""],m=$o(p),h=0,f=0,g=0;h0?p[b]+" "+y:Y(y,/&\f/g,p[b])))&&(s[g++]=v);return qn(e,t,r,0===n?Ro:i,s,c,u)}function $d(e,t,r){return qn(e,t,r,To,Vn(Cd()),jr(e,2,-2),0)}function jl(e,t,r,a){return qn(e,t,r,Fo,jr(e,0,a),jr(e,a+1,-1),a)}function ar(e,t){for(var r="",a=$o(e),n=0;n-1},Zd=function(e){return function(t,r,a){if("rule"===t.type&&!e.compat){var n=t.value.match(/(:first|:nth|:nth-last)-child/g);if(n){for(var o=!!t.parent?t.parent.children:a,l=o.length-1;l>=0;l--){var i=o[l];if(i.line=0;r--)if(!zs(t[r]))return!0;return!1},Zl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},zd=function(e,t,r){zs(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zl(e)):Vd(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zl(e)))};function qs(e,t){switch(wd(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Tn+e+be+e+e;case 6828:case 4268:return G+e+be+e+e;case 6165:return G+e+be+"flex-"+e+e;case 5187:return G+e+Y(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+be+"flex-$1$2")+e;case 5443:return G+e+be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return G+e+be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+be+Y(e,"shrink","negative")+e;case 5292:return G+e+be+Y(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Y(e,"-grow","")+G+e+be+Y(e,"grow","positive")+e;case 4554:return G+Y(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(pe(e,t+1)){case 109:if(45!==pe(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Tn+(108==pe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wa(e,"stretch")?qs(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pe(e,t+1))break;case 6444:switch(pe(e,tt(e)-3-(~Wa(e,"!important")&&10))){case 107:return Y(e,":",":"+G)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===pe(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+be+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+be+e+e}return e}var qd=function(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=qs(e.value,e.length);break;case js:return ar([kr(e,{value:Y(e.value,"@","@"+G)})],a);case Ro:if(e.length)return Sd(e.props,(function(t){switch(Ad(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([kr(e,{props:[Y(t,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return ar([kr(e,{props:[Y(t,/:(plac\w+)/,":"+G+"input-$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,":"+Tn+"$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,be+"input-$1")]})],a)}return""}))}},Ud=[qd],Wd=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||Ud;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var n,o={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++a,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Xd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Jd=/[A-Z]|^ms/g,Us=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lo=function(e){return 45===e.charCodeAt(1)},zl=function(e){return null!=e&&"boolean"!=typeof e},ba=Oo((function(e){return Lo(e)?e:e.replace(Jd,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Us,(function(e,t,r){return rt={name:t,styles:r,next:rt},t}))}return 1===Kd[e]||Lo(e)||"number"!=typeof t||0===t?t:t+"px"};ql=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ul=["normal","none","initial","inherit","unset"],Wl=Rn,Gl=/^-ms-/,Yl=/-(.)/g,ya={},Rn=function(e,t){if("content"===e&&("string"!=typeof t||-1===Ul.indexOf(t)&&!ql.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Wl(e,t);return""!==r&&!Lo(e)&&-1!==e.indexOf("-")&&void 0===ya[e]&&(ya[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Gl,"ms-").replace(Yl,(function(e,t){return t.toUpperCase()}))+"?")),r};var ql,Ul,Wl,Gl,Yl,ya,Ws="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Hr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Ws);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return rt={name:r.name,styles:r.styles,next:rt},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;var n=r.styles+";";return void 0!==r.map&&(n+=r.map),n}return Qd(e,t,r);case"function":if(void 0!==e){var o=rt,l=r(e);return rt=o,Hr(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var i=[],s=r.replace(Us,(function(e,t,r){var a="animation"+i.length;return i.push("const "+a+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+a+"}"}));i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}if(null==t)return r;var c=t[r];return void 0!==c?c:r}function Qd(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n ({})}!");return r}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Ya({},e,t)},np=Nl((function(e){return Nl((function(t){return rp(e,t)}))})),Ys=function(e){var t=h.useContext(Ot);return e.theme!==t&&(t=np(t)(e.theme)),h.createElement(Ot.Provider,{value:t},e.children)},Xl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jl="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ap=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},op=Gn((function(e,t,r){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var n=e[Xl],o=[a],l="";"string"==typeof e.className?l=Do(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var i=ir(o,void 0,h.useContext(Ot));if(-1===i.name.indexOf("-")){var s=e[Jl];s&&(i=ir([i,"label:"+s+";"]))}l+=t.key+"-"+i.name;var c={};for(var u in e)ep.call(e,u)&&"css"!==u&&u!==Xl&&u!==Jl&&(c[u]=e[u]);return c.ref=r,c.className=l,h.createElement(h.Fragment,null,h.createElement(ap,{cache:t,serialized:i,isStringTag:"string"==typeof n}),h.createElement(n,c))}));op.displayName="EmotionCssPropInternal",Fs(Ps());var lp={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Ql=!1,ip=Gn((function(e,t){!Ql&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ql=!0);var r=e.styles,a=ir([r],void 0,h.useContext(Ot)),n=h.useRef();return Ml((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,l=document.querySelector('style[data-emotion="'+e+" "+a.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==l&&(o=!0,l.setAttribute("data-emotion",e),r.hydrate([l])),n.current=[r,o],function(){r.flush()}}),[t]),Ml((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==a.next&&Wn(t,a.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",a,r,!1)}}),[t,a.name]),null}));function Bo(){for(var e=arguments.length,t=new Array(e),r=0;r component."),l="",o)o[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=o}l&&(n&&(n+=" "),n+=l)}}return n};function cp(e,t,r){var a=[],n=Do(e,a,r);return a.length<2?r:n+t(a)}var up=function(e){var t=e.cache,r=e.serializedArr;return Co((function(){for(var e=0;e96?pp:fp},ri=function(e,t,r){var a;if(t){var n=t.shouldForwardProp;a=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof a&&r&&(a=e.__emotion_forwardProp),a},ni="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",mp=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},gp=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var a,n,o=t.__emotion_real===t,l=o&&t.__emotion_base||t;void 0!==r&&(a=r.label,n=r.target);var i=ri(t,r,o),s=i||ti(l),c=!s("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&d.push("label:"+a+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{void 0===u[0][0]&&console.error(ni),d.push(u[0][0]);for(var p=u.length,m=1;m({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})));Yt(1)((({color:e,background:t,typography:r})=>{let a=yp({typography:r});return{...a,body:{...a.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...a.hr,borderTop:`1px solid ${e.border}`}}}));var vp={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},Ep=br` from { transform: rotate(0deg); } @@ -37,7 +37,7 @@ const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJW Your theme is missing properties, you should update your theme! theme-data missing: - `,t),Ka(e)},Xa="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",jp=Object.create,Qs=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,ec=Object.getOwnPropertyNames,Hp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty,V=(e,t)=>function(){return t||(0,e[ec(e)[0]])((t={exports:{}}).exports,t),t.exports},Vp=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ec(t))!Zp.call(e,n)&&n!==r&&Qs(e,n,{get:()=>t[n],enumerable:!(a=Np(t,n))||a.enumerable});return e},Te=(e,t,r)=>(r=null!=e?jp(Hp(e)):{},Vp(e&&e.__esModule?r:Qs(r,"default",{value:e,enumerable:!0}),e)),zp=V({"../../node_modules/refractor/lang/markdown.js"(e,t){function r(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,n=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+n+o+"(?:"+n+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+n+o+")(?:"+n+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+n+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+n+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(r){t!==r&&(e.languages.markdown[t].inside.content.inside[r]=e.languages.markdown[r])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var r=0,a=t.length;r",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}t.exports=r,r.displayName="markdown",r.aliases=["md"]}}),qp=V({"../../node_modules/refractor/lang/yaml.js"(e,t){function r(e){!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",n=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return"(?:"+n+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}t.exports=r,r.displayName="yaml",r.aliases=["yml"]}}),tc=V({"../../node_modules/refractor/lang/typescript.js"(e,t){function r(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}t.exports=r,r.displayName="typescript",r.aliases=["ts"]}}),rc=V({"../../node_modules/refractor/lang/jsx.js"(e,t){function r(e){!function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,n=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return r})).replace(//g,(function(){return a})).replace(//g,(function(){return n})),RegExp(e,t)}n=o(n).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""},i=function(t){for(var r=[],a=0;a0&&r[r.length-1].tagName===l(n.content[0].content[1])&&r.pop():"/>"===n.content[n.content.length-1].content||r.push({tagName:l(n.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===n.type&&"{"===n.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===n.type&&"}"===n.content?r[r.length-1].openedBraces--:o=!0),(o||"string"==typeof n)&&r.length>0&&0===r[r.length-1].openedBraces){var s=l(n);a0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(s=l(t[a-1])+s,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",s,null,s)}n.content&&"string"!=typeof n.content&&i(n.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(e)}t.exports=r,r.displayName="jsx",r.aliases=[]}}),Up=V({"../../node_modules/refractor/lang/tsx.js"(e,t){var r=rc(),a=tc();function n(e){e.register(r),e.register(a),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var r=e.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}t.exports=n,n.displayName="tsx",n.aliases=[]}}),Wp=V({"../../node_modules/refractor/lang/clike.js"(e,t){function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="clike",r.aliases=[]}}),Gp=V({"../../node_modules/refractor/lang/javascript.js"(e,t){function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}t.exports=r,r.displayName="javascript",r.aliases=["js"]}}),nc=V({"../../node_modules/refractor/lang/css.js"(e,t){function r(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(e)}t.exports=r,r.displayName="css",r.aliases=[]}}),ac=V({"../../node_modules/refractor/lang/markup.js"(e,t){function r(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:a}};n["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:n},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"]}}),Yp=V({"../../node_modules/xtend/immutable.js"(e,t){t.exports=function(){for(var e={},t=0;t4&&d.slice(0,4)===o&&l.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,u);return o+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return i.test(t)?e:(t=t.replace(s,c),"-"!==t.charAt(0)&&(t="-"+t),o+t)}(t),m=a),new m(p,t))};var l=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function u(e){return e.charAt(1).toUpperCase()}}}),o2=V({"../../node_modules/hast-util-parse-selector/index.js"(e,t){t.exports=function(e,t){for(var a,n,o,l=e||"",i=t||"div",s={},c=0;c",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}}}),p2=V({"../../node_modules/character-reference-invalid/index.json"(e,t){t.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}}}),cc=V({"../../node_modules/is-decimal/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}}}),f2=V({"../../node_modules/is-hexadecimal/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}}}),m2=V({"../../node_modules/is-alphabetical/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}}}),g2=V({"../../node_modules/is-alphanumerical/index.js"(e,t){var r=m2(),a=cc();t.exports=function(e){return r(e)||a(e)}}}),h2=V({"../../node_modules/parse-entities/node_modules/character-entities/index.json"(e,t){t.exports={AEli:"\xc6",AElig:"\xc6",AM:"&",AMP:"&",Aacut:"\xc1",Aacute:"\xc1",Abreve:"\u0102",Acir:"\xc2",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrav:"\xc0",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Arin:"\xc5",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atild:"\xc3",Atilde:"\xc3",Aum:"\xc4",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COP:"\xa9",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedi:"\xc7",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ET:"\xd0",ETH:"\xd0",Eacut:"\xc9",Eacute:"\xc9",Ecaron:"\u011a",Ecir:"\xca",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrav:"\xc8",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Eum:"\xcb",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xcd",Iacute:"\xcd",Icir:"\xce",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xcc",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xcf",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntild:"\xd1",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacut:"\xd3",Oacute:"\xd3",Ocir:"\xd4",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograv:"\xd2",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslas:"\xd8",Oslash:"\xd8",Otild:"\xd5",Otilde:"\xd5",Otimes:"\u2a37",Oum:"\xd6",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUO:'"',QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",RE:"\xae",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THOR:"\xde",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacut:"\xda",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucir:"\xdb",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrav:"\xd9",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uum:"\xdc",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacut:"\xdd",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacut:"\xe1",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acir:"\xe2",acirc:"\xe2",acut:"\xb4",acute:"\xb4",acy:"\u0430",aeli:"\xe6",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrav:"\xe0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",am:"&",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",arin:"\xe5",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atild:"\xe3",atilde:"\xe3",aum:"\xe4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvba:"\xa6",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedi:"\xe7",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedi:"\xb8",cedil:"\xb8",cemptyv:"\u29b2",cen:"\xa2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",cop:"\xa9",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curre:"\xa4",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",de:"\xb0",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divid:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacut:"\xe9",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\xea",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrav:"\xe8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",et:"\xf0",eth:"\xf0",eum:"\xeb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac1:"\xbc",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac3:"\xbe",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",g:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xed",iacute:"\xed",ic:"\u2063",icir:"\xee",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexc:"\xa1",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrav:"\xec",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iques:"\xbf",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xef",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laqu:"\xab",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",mac:"\xaf",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micr:"\xb5",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middo:"\xb7",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbs:"\xa0",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",no:"\xac",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntild:"\xf1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacut:"\xf3",oacute:"\xf3",oast:"\u229b",ocir:"\xf4",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograv:"\xf2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\xba",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslas:"\xf8",oslash:"\xf8",osol:"\u2298",otild:"\xf5",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",oum:"\xf6",ouml:"\xf6",ovbar:"\u233d",par:"\xb6",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusm:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",poun:"\xa3",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quo:'"',quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raqu:"\xbb",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",re:"\xae",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xa7",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xad",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szli:"\xdf",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thor:"\xfe",thorn:"\xfe",tilde:"\u02dc",time:"\xd7",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacut:"\xfa",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucir:"\xfb",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrav:"\xf9",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",um:"\xa8",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uum:"\xfc",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacut:"\xfd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",ye:"\xa5",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yum:"\xff",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}}}),b2=V({"../../node_modules/parse-entities/decode-entity.js"(e,t){var r=h2();t.exports=function(e){return!!a.call(r,e)&&r[e]};var a={}.hasOwnProperty}}),y2=V({"../../node_modules/parse-entities/index.js"(e,t){var r=d2(),a=p2(),n=cc(),o=f2(),l=g2(),i=b2();t.exports=function(e,t){var n,o,E={};for(o in t||(t={}),d)n=t[o],E[o]=n??d[o];return(E.position.indent||E.position.start)&&(E.indent=E.position.indent||[],E.position=E.position.start),function(e,t){var n,o,d,E,x,w,k,S,C,A,_,O,R,M,T,L,j,F,N,P=t.additional,Z=t.nonTerminated,I=t.text,V=t.reference,H=t.warning,B=t.textContext,D=t.referenceContext,$=t.warningContext,z=t.position,q=t.indent||[],U=e.length,G=0,W=-1,Y=z.column||1,K=z.line||1,X="",J=[];for("string"==typeof P&&(P=P.charCodeAt(0)),L=Q(),S=H?ee:u,G--,U++;++G65535&&(A+=c((w-=65536)>>>10|55296),w=56320|1023&w),w=A+c(w))):M!==p&&S(4,F)),w?(te(),L=Q(),G=N-1,Y+=N-R+1,J.push(w),(j=Q()).offset++,V&&V.call(D,w,{start:L,end:j},e.slice(R-1,N)),L=j):(E=e.slice(R-1,N),X+=E,Y+=E.length,G=N-1)}else 10===x&&(K++,W++,Y=0),x==x?(X+=c(x),Y++):te();return J.join("");function Q(){return{line:K,column:Y,offset:G+(z.offset||0)}}function ee(e,t){var r=Q();r.column+=t,r.offset+=t,H.call($,b[e],r,e)}function te(){X&&(J.push(X),I&&I.call(B,X,{start:L,end:Q()}),X="")}}(e,E)};var s={}.hasOwnProperty,c=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",m="hexadecimal",h="decimal",f={};f[m]=16,f[h]=10;var g={};g[p]=l,g[h]=n,g[m]=o;var b={};function y(e){return e>=55296&&e<=57343||e>1114111}function v(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}b[1]="Named character references must be terminated by a semicolon",b[2]="Numeric character references must be terminated by a semicolon",b[3]="Named character references cannot be empty",b[4]="Numeric character references cannot be empty",b[5]="Named character references must be known",b[6]="Numeric character references cannot be disallowed",b[7]="Numeric character references cannot be outside the permissible Unicode range"}}),v2=V({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,t){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,a={},n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var r in t)if(t[r].src==e)return t[r]}return null}},isActive:function(e,t,r){for(var a="no-"+t;e;){var n=e.classList;if(n.contains(t))return!0;if(n.contains(a))return!1;e=e.parentElement}return!!r}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var a in t)r[a]=t[a];return r},insertBefore:function(e,t,r,a){var o=(a=a||n.languages)[e],l={};for(var i in o)if(o.hasOwnProperty(i)){if(i==t)for(var s in r)r.hasOwnProperty(s)&&(l[s]=r[s]);r.hasOwnProperty(i)||(l[i]=o[i])}var c=a[e];return a[e]=l,n.languages.DFS(n.languages,(function(t,r){r===c&&t!=e&&(this[t]=l)})),l},DFS:function e(t,r,a,o){o=o||{};var l=n.util.objId;for(var i in t)if(t.hasOwnProperty(i)){r.call(t,i,t[i],a||i);var s=t[i],c=n.util.type(s);"Object"!==c||o[l(s)]?"Array"===c&&!o[l(s)]&&(o[l(s)]=!0,e(s,r,i,o)):(o[l(s)]=!0,e(s,r,null,o))}}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var a={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),n.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)n.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,r,a){var o=n.util.getLanguage(t),l=n.languages[o];n.util.setLanguage(t,o);var i=t.parentElement;i&&"pre"===i.nodeName.toLowerCase()&&n.util.setLanguage(i,o);var s={element:t,language:o,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,n.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n.hooks.run("after-highlight",s),n.hooks.run("complete",s),a&&a.call(s.element)}if(n.hooks.run("before-sanity-check",s),(i=s.element.parentElement)&&"pre"===i.nodeName.toLowerCase()&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","0"),!s.code)return n.hooks.run("complete",s),void(a&&a.call(s.element));if(n.hooks.run("before-highlight",s),s.grammar)if(r&&e.Worker){var u=new Worker(n.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(n.highlight(s.code,s.grammar,s.language));else c(n.util.encode(s.code))},highlight:function(e,t,r){var a={code:e,grammar:t,language:r};if(n.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=n.tokenize(a.code,a.grammar),n.hooks.run("after-tokenize",a),o.stringify(n.util.encode(a.tokens),a.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var a in r)t[a]=r[a];delete t.rest}var n=new s;return c(n,n.head,e),i(e,n,t,n.head,0),function(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}(n)},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var a,o=0;a=r[o++];)a(t)}},Token:o};function o(e,t,r,a){this.type=e,this.content=t,this.alias=r,this.length=0|(a||"").length}function l(e,t,r,a){e.lastIndex=t;var n=e.exec(r);if(n&&a&&n[1]){var o=n[1].length;n.index+=o,n[0]=n[0].slice(o)}return n}function i(e,t,r,a,s,d){for(var p in r)if(r.hasOwnProperty(p)&&r[p]){var m=r[p];m=Array.isArray(m)?m:[m];for(var h=0;h=d.reach);k+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof o)){var C,A=1;if(y){if(!(C=l(x,k,e,b))||C.index>=e.length)break;var _=C.index,O=C.index+C[0].length,R=k;for(R+=w.value.length;_>=R;)R+=(w=w.next).value.length;if(k=R-=w.value.length,w.value instanceof o)continue;for(var M=w;M!==t.tail&&(Rd.reach&&(d.reach=F);var N=w.prev;if(L&&(N=c(t,N,L),k+=L.length),u(t,N,A),w=c(t,N,new o(p,g?n.tokenize(T,g):T,v,T)),j&&c(t,w,j),A>1){var P={cause:p+","+h,reach:F};i(e,t,r,w.prev,k,P),d&&P.reach>d.reach&&(d.reach=P.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var a=t.next,n={value:r,prev:t,next:a};return t.next=n,a.prev=n,e.length++,n}function u(e,t,r){for(var a=t.next,n=0;n"+o.content+""},!e.document)return e.addEventListener&&(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),a=r.language,o=r.code,l=r.immediateClose;e.postMessage(n.highlight(o,n.languages[a],a)),l&&e.close()}),!1)),n;var d=n.util.currentScript();function p(){n.manual||n.highlightAll()}if(d&&(n.filename=d.src,d.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var m=document.readyState;"loading"===m||"interactive"===m&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return n}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof t<"u"&&t.exports&&(t.exports=r),typeof global<"u"&&(global.Prism=r)}}),E2=V({"../../node_modules/refractor/core.js"(e,t){var r,a,n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},o=(a=(r="Prism"in n)?n.Prism:void 0,function(){r?n.Prism=a:delete n.Prism,r=void 0,a=void 0});n.Prism={manual:!0,disableWorkerMessageHandler:!0};var l=u2(),i=y2(),s=v2(),c=ac(),u=nc(),d=Wp(),p=Gp();o();var m={}.hasOwnProperty;function h(){}h.prototype=s;var f=new h;function g(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===f.languages[e.displayName]&&e(f)}t.exports=f,f.highlight=function(e,t){var r,a=s.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===f.util.type(t))r=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!m.call(f.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");r=f.languages[t]}return a.call(this,e,r,t)},f.register=g,f.alias=function(e,t){var r,a,n,o,l=f.languages,i=e;for(r in t&&((i={})[e]=t),i)for(a=i[r],n=(a="string"==typeof a?[a]:a).length,o=-1;++o>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var n=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,l=0;l/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],a=0;a0)){var i=p(/^\{$/,/^\}$/);if(-1===i)continue;for(var s=r;s=0&&m(c,"variable-input")}}}}function u(e){return t[r+e]}function d(e,t){t=t||0;for(var r=0;r=0)&&(n[r]=e[r]);return n}function K2(e,t){if(null==e)return{};var r,a,n=Y2(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}var Aa={};function o5(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return Aa[t]||(Aa[t]=a5(e)),Aa[t]}function l5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return o5(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return rr(rr({},e),r[t])}),t)}function oi(e){return e.join(" ")}function i5(e,t){var r=0;return function(a){return r+=1,a.map((function(a,n){return jo({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(n)})}))}}function jo(e){var t=e.node,r=e.stylesheet,n=e.style,o=void 0===n?{}:n,l=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if("text"===c)return d;if(u){var p,m=i5(r,l);if(l){var h=Object.keys(r).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),f=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&f.concat(s.className.filter((function(e){return!h.includes(e)})));p=rr(rr({},s),{},{className:oi(g)||void 0,style:l5(s.className,Object.assign({},s.style,o),r)})}else p=rr(rr({},s),{},{className:oi(s.className)});var b=m(t.children);return a.createElement(u,Qa({key:i},p),b)}}var s5=function(e,t){return-1!==e.listLanguages().indexOf(t)},c5=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function nt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,t){return xn({children:e,lineNumber:t,lineNumberStyle:i,largestLineNumber:l,showInlineLineNumbers:n,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:s})}(e,o,c):function(e,t){if(a&&t&&n){var r=pc(i,t,l);e.unshift(dc(t,r))}return e}(e,o)}for(var f=function(){var e=u[m],t=e.children[0].value;if(d5(t)){var r=t.split("\n");r.forEach((function(t,n){var l=a&&d.length+o,i={type:"text",value:"".concat(t,"\n")};if(0===n){var s=h(u.slice(p+1,m).concat(xn({children:[i],className:e.properties.className})),l);d.push(s)}else if(n===r.length-1){var c=u[m+1]&&u[m+1].children&&u[m+1].children[0],f={type:"text",value:"".concat(t)};if(c){var g=xn({children:[f],className:e.properties.className});u.splice(m+1,0,g)}else{var b=h([f],l,e.properties.className);d.push(b)}}else{var y=h([i],l,e.properties.className);d.push(y)}})),p=m}m++};m({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1}))),gc=_.button((({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}})),(({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}));gc.displayName="ActionButton";var Zo=({actionItems:e,...t})=>a.createElement(v5,{...t},e.map((({title:e,className:t,onClick:r,disabled:n},o)=>a.createElement(gc,{key:o,className:t,onClick:r,disabled:n},e))));function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach((e=>E5(e,t)))}function Kt(...e){return h.useCallback(hc(...e),e)}var bc=h.forwardRef(((e,t)=>{let{children:r,...a}=e,n=h.Children.toArray(r),o=n.find(w5);if(o){let e=o.props.children,r=n.map((t=>t===o?h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null:t));return h.createElement(to,Fn({},a,{ref:t}),h.isValidElement(e)?h.cloneElement(e,void 0,r):null)}return h.createElement(to,Fn({},a,{ref:t}),r)}));bc.displayName="Slot";var to=h.forwardRef(((e,t)=>{let{children:r,...a}=e;return h.isValidElement(r)?h.cloneElement(r,{...A5(a,r.props),ref:t?hc(t,r.ref):r.ref}):h.Children.count(r)>1?h.Children.only(null):null}));to.displayName="SlotClone";var x5=({children:e})=>h.createElement(h.Fragment,null,e);function w5(e){return h.isValidElement(e)&&e.type===x5}function A5(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...e)=>{o(...e),n(...e)}:n&&(r[a]=n):"style"===a?r[a]={...n,...o}:"className"===a&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}var S5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qr=S5.reduce(((e,t)=>{let r=h.forwardRef(((e,r)=>{let{asChild:a,...n}=e,o=a?bc:t;return h.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),h.createElement(o,eo({},n,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),ro=null!=globalThis&&globalThis.document?h.useLayoutEffect:()=>{};function C5(e,t){return h.useReducer(((e,r)=>t[e][r]??e),e)}var en=e=>{let{present:t,children:r}=e,a=k5(t),n="function"==typeof r?r({present:a.isPresent}):h.Children.only(r),o=Kt(a.ref,n.ref);return"function"==typeof r||a.isPresent?h.cloneElement(n,{ref:o}):null};function k5(e){let[t,r]=h.useState(),a=h.useRef({}),n=h.useRef(e),o=h.useRef("none"),l=e?"mounted":"unmounted",[i,s]=C5(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect((()=>{let e=dn(a.current);o.current="mounted"===i?e:"none"}),[i]),ro((()=>{let t=a.current,r=n.current;if(r!==e){let a=o.current,l=dn(t);e?s("MOUNT"):"none"===l||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(r&&a!==l?"ANIMATION_OUT":"UNMOUNT"),n.current=e}}),[e,s]),ro((()=>{if(t){let e=e=>{let r=dn(a.current).includes(e.animationName);e.target===t&&r&&hs.flushSync((()=>s("ANIMATION_END")))},r=e=>{e.target===t&&(o.current=dn(a.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:h.useCallback((e=>{e&&(a.current=getComputedStyle(e)),r(e)}),[])}}function dn(e){return(null==e?void 0:e.animationName)||"none"}function _5(e,t=[]){let r=[];let a=()=>{let t=r.map((e=>h.createContext(e)));return function(r){let a=(null==r?void 0:r[e])||t;return h.useMemo((()=>({[`__scope${e}`]:{...r,[e]:a}})),[r,a])}};return a.scopeName=e,[function(t,a){let n=h.createContext(a),o=r.length;function l(t){let{scope:r,children:a,...l}=t,i=(null==r?void 0:r[e][o])||n,s=h.useMemo((()=>l),Object.values(l));return h.createElement(i.Provider,{value:s},a)}return r=[...r,a],l.displayName=t+"Provider",[l,function(r,l){let i=(null==l?void 0:l[e][o])||n,s=h.useContext(i);if(s)return s;if(void 0!==a)return a;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},O5(a,...t)]}function O5(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){let a=r.reduce(((t,{useScope:r,scopeName:a})=>({...t,...r(e)[`__scope${a}`]})),{});return h.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function Ht(e){let t=h.useRef(e);return h.useEffect((()=>{t.current=e})),h.useMemo((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}en.displayName="Presence";var T5=h.createContext(void 0);function R5(e){let t=h.useContext(T5);return e||t||"ltr"}function F5(e,[t,r]){return Math.min(r,Math.max(t,e))}function Vt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(null==e||e(a),!1===r||!a.defaultPrevented)return null==t?void 0:t(a)}}function $5(e,t){return h.useReducer(((e,r)=>t[e][r]??e),e)}var yc="ScrollArea",[vc,tA]=_5(yc),[D5,je]=vc(yc),L5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:o=600,...l}=e,[i,s]=h.useState(null),[c,u]=h.useState(null),[d,p]=h.useState(null),[m,f]=h.useState(null),[g,b]=h.useState(null),[y,v]=h.useState(0),[E,x]=h.useState(0),[w,k]=h.useState(!1),[S,C]=h.useState(!1),A=Kt(t,(e=>s(e))),_=R5(n);return h.createElement(D5,{scope:r,type:a,dir:_,scrollHideDelay:o,scrollArea:i,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:x},h.createElement(Qr.div,le({dir:_},l,{ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})))})),M5="ScrollAreaViewport",B5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,children:a,...n}=e,o=je(M5,r),l=Kt(t,h.useRef(null),o.onViewportChange);return h.createElement(h.Fragment,null,h.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),h.createElement(Qr.div,le({"data-radix-scroll-area-viewport":""},n,{ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),h.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},a)))})),vt="ScrollAreaScrollbar",I5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:l}=n,i="horizontal"===e.orientation;return h.useEffect((()=>(i?o(!0):l(!0),()=>{i?o(!1):l(!1)})),[i,o,l]),"hover"===n.type?h.createElement(P5,le({},a,{ref:t,forceMount:r})):"scroll"===n.type?h.createElement(j5,le({},a,{ref:t,forceMount:r})):"auto"===n.type?h.createElement(Ec,le({},a,{ref:t,forceMount:r})):"always"===n.type?h.createElement(Vo,le({},a,{ref:t})):null})),P5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),[o,l]=h.useState(!1);return h.useEffect((()=>{let e=n.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},a=()=>{t=window.setTimeout((()=>l(!1)),n.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",a),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",a)}}}),[n.scrollArea,n.scrollHideDelay]),h.createElement(en,{present:r||o},h.createElement(Ec,le({"data-state":o?"visible":"hidden"},a,{ref:t})))})),j5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),o="horizontal"===e.orientation,l=Kn((()=>s("SCROLL_END")),100),[i,s]=$5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect((()=>{if("idle"===i){let e=window.setTimeout((()=>s("HIDE")),n.scrollHideDelay);return()=>window.clearTimeout(e)}}),[i,n.scrollHideDelay,s]),h.useEffect((()=>{let e=n.viewport,t=o?"scrollLeft":"scrollTop";if(e){let r=e[t],a=()=>{let a=e[t];r!==a&&(s("SCROLL"),l()),r=a};return e.addEventListener("scroll",a),()=>e.removeEventListener("scroll",a)}}),[n.viewport,o,s,l]),h.createElement(en,{present:r||"hidden"!==i},h.createElement(Vo,le({"data-state":"hidden"===i?"hidden":"visible"},a,{ref:t,onPointerEnter:Vt(e.onPointerEnter,(()=>s("POINTER_ENTER"))),onPointerLeave:Vt(e.onPointerLeave,(()=>s("POINTER_LEAVE")))})))})),Ec=h.forwardRef(((e,t)=>{let r=je(vt,e.__scopeScrollArea),{forceMount:a,...n}=e,[o,l]=h.useState(!1),i="horizontal"===e.orientation,s=Kn((()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...a}=e,n=je(vt,e.__scopeScrollArea),o=h.useRef(null),l=h.useRef(0),[i,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Sc(i.viewport,i.content),u={...a,sizes:i,onSizesChange:s,hasThumb:c>0&&c<1,onThumbChange:e=>o.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function d(e,t){return W5(e,l.current,i,t)}return"horizontal"===r?h.createElement(N5,le({},u,{ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let e=ii(n.viewport.scrollLeft,i,n.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{n.viewport&&(n.viewport.scrollLeft=e)},onDragScroll:e=>{n.viewport&&(n.viewport.scrollLeft=d(e,n.dir))}})):"vertical"===r?h.createElement(H5,le({},u,{ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let e=ii(n.viewport.scrollTop,i);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{n.viewport&&(n.viewport.scrollTop=e)},onDragScroll:e=>{n.viewport&&(n.viewport.scrollTop=d(e))}})):null})),N5=h.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=je(vt,e.__scopeScrollArea),[l,i]=h.useState(),s=h.useRef(null),c=Kt(t,s,o.onScrollbarXChange);return h.useEffect((()=>{s.current&&i(getComputedStyle(s.current))}),[s]),h.createElement(wc,le({"data-orientation":"horizontal"},n,{ref:c,sizes:r,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Yn(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){let a=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(a),kc(a,r)&&t.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:$n(l.paddingLeft),paddingEnd:$n(l.paddingRight)}})}}))})),H5=h.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=je(vt,e.__scopeScrollArea),[l,i]=h.useState(),s=h.useRef(null),c=Kt(t,s,o.onScrollbarYChange);return h.useEffect((()=>{s.current&&i(getComputedStyle(s.current))}),[s]),h.createElement(wc,le({"data-orientation":"vertical"},n,{ref:c,sizes:r,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Yn(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){let a=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(a),kc(a,r)&&t.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:$n(l.paddingTop),paddingEnd:$n(l.paddingBottom)}})}}))})),[Z5,xc]=vc(vt),wc=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:o,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,m=je(vt,r),[f,g]=h.useState(null),b=Kt(t,(e=>g(e))),y=h.useRef(null),v=h.useRef(""),E=m.viewport,x=a.content-a.viewport,w=Ht(u),k=Ht(s),S=Kn(d,10);function C(e){if(y.current){let t=e.clientX-y.current.left,r=e.clientY-y.current.top;c({x:t,y:r})}}return h.useEffect((()=>{let e=e=>{let t=e.target;null!=f&&f.contains(t)&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[E,f,x,w]),h.useEffect(k,[a,k]),sr(f,S),sr(m.content,S),h.createElement(Z5,{scope:r,scrollbar:f,hasThumb:n,onThumbChange:Ht(o),onThumbPointerUp:Ht(l),onThumbPositionChange:k,onThumbPointerDown:Ht(i)},h.createElement(Qr.div,le({},p,{ref:b,style:{position:"absolute",...p.style},onPointerDown:Vt(e.onPointerDown,(e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),C(e))})),onPointerMove:Vt(e.onPointerMove,C),onPointerUp:Vt(e.onPointerUp,(e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,m.viewport&&(m.viewport.style.scrollBehavior=""),y.current=null}))})))})),no="ScrollAreaThumb",V5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=xc(no,e.__scopeScrollArea);return h.createElement(en,{present:r||n.hasThumb},h.createElement(z5,le({ref:t},a)))})),z5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,style:a,...n}=e,o=je(no,r),l=xc(no,r),{onThumbPositionChange:i}=l,s=Kt(t,(e=>l.onThumbChange(e))),c=h.useRef(),u=Kn((()=>{c.current&&(c.current(),c.current=void 0)}),100);return h.useEffect((()=>{let e=o.viewport;if(e){let t=()=>{if(u(),!c.current){let t=G5(e,i);c.current=t,i()}};return i(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,i]),h.createElement(Qr.div,le({"data-state":l.hasThumb?"visible":"hidden"},n,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:Vt(e.onPointerDownCapture,(e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,a=e.clientY-t.top;l.onThumbPointerDown({x:r,y:a})})),onPointerUp:Vt(e.onPointerUp,l.onThumbPointerUp)}))})),Ac="ScrollAreaCorner",q5=h.forwardRef(((e,t)=>{let r=je(Ac,e.__scopeScrollArea),a=!(!r.scrollbarX||!r.scrollbarY);return"scroll"!==r.type&&a?h.createElement(U5,le({},e,{ref:t})):null})),U5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,...a}=e,n=je(Ac,r),[o,l]=h.useState(0),[i,s]=h.useState(0),c=!(!o||!i);return sr(n.scrollbarX,(()=>{var e;let t=(null===(e=n.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;n.onCornerHeightChange(t),s(t)})),sr(n.scrollbarY,(()=>{var e;let t=(null===(e=n.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;n.onCornerWidthChange(t),l(t)})),c?h.createElement(Qr.div,le({},a,{ref:t,style:{width:o,height:i,position:"absolute",right:"ltr"===n.dir?0:void 0,left:"rtl"===n.dir?0:void 0,bottom:0,...e.style}})):null}));function $n(e){return e?parseInt(e,10):0}function Sc(e,t){let r=e/t;return isNaN(r)?0:r}function Yn(e){let t=Sc(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function W5(e,t,r,a="ltr"){let n=Yn(r),o=t||n/2,l=n-o,i=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport;return Cc([i,s],"ltr"===a?[0,c]:[-1*c,0])(e)}function ii(e,t,r="ltr"){let a=Yn(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-n,l=t.content-t.viewport,i=o-a,s=F5(e,"ltr"===r?[0,l]:[-1*l,0]);return Cc([0,l],[0,i])(s)}function Cc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function kc(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return function n(){let o={left:e.scrollLeft,top:e.scrollTop},l=r.left!==o.left,i=r.top!==o.top;(l||i)&&t(),r=o,a=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(a)};function Kn(e,t){let r=Ht(e),a=h.useRef(0);return h.useEffect((()=>()=>window.clearTimeout(a.current)),[]),h.useCallback((()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)}),[r,t])}function sr(e,t){let r=Ht(t);ro((()=>{let t=0;if(e){let a=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)}));return a.observe(e),()=>{window.cancelAnimationFrame(t),a.unobserve(e)}}}),[e,r])}var Y5=L5,K5=B5,X5=I5,J5=V5,Q5=q5,ef=_(Y5)((({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`}))),tf=_(K5)({width:"100%",height:"100%"}),si=_(X5)((({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:"true"===t&&"true"===r?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:"true"===t&&"true"===r?0:e}}))),ci=_(J5)((({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}}))),zo=({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:l})=>a.createElement(ef,{scrollbarsize:o,offset:n,className:l},a.createElement(tf,null,e),t&&a.createElement(si,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},a.createElement(ci,null)),r&&a.createElement(si,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},a.createElement(ci,null)),t&&r&&a.createElement(Q5,null)),{navigator:pn,document:_r,window:rf}=k2;Re.registerLanguage("jsextra",L2),Re.registerLanguage("jsx",O2),Re.registerLanguage("json",B2),Re.registerLanguage("yml",z2),Re.registerLanguage("md",Z2),Re.registerLanguage("bash",R2),Re.registerLanguage("css",$2),Re.registerLanguage("html",N2),Re.registerLanguage("tsx",U2),Re.registerLanguage("typescript",G2),Re.registerLanguage("graphql",P2);var nf=Yt(2)((e=>Object.entries(e.code||{}).reduce(((e,[t,r])=>({...e,[`* .${t}`]:r})),{}))),af=_c();function _c(){return null!=pn&&pn.clipboard?e=>pn.clipboard.writeText(e):async e=>{let t=_r.createElement("TEXTAREA"),r=_r.activeElement;t.value=e,_r.body.appendChild(t),t.select(),_r.execCommand("copy"),_r.body.removeChild(t),r.focus()}}var of=_.div((({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText})),(({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{}),(({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),lf=({children:e,className:t})=>a.createElement(zo,{horizontal:!0,vertical:!0,className:t},e),sf=_(lf)({position:"relative"},(({theme:e})=>nf(e))),cf=_.pre((({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0}))),uf=_.div((({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1}))),Oc=e=>{let t=[...e.children],r=t[0],a=r.children[0].value,n={...r,children:[],properties:{...r.properties,"data-line-number":a,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=n,{...e,children:t}},df=({rows:e,stylesheet:t,useInlineStyles:r})=>e.map(((e,a)=>jo({node:Oc(e),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`}))),pf=(e,t)=>t?e?({rows:t,...r})=>e({rows:t.map((e=>Oc(e))),...r}):df:e,qo=({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:l=!0,formatter:i=null,className:s=null,showLineNumbers:c=!1,...u})=>{if("string"!=typeof e||!e.trim())return null;let d=i?i(l,e):e.trim(),[p,m]=h.useState(!1),f=h.useCallback((e=>{e.preventDefault(),af(d).then((()=>{m(!0),rf.setTimeout((()=>m(!1)),1500)})).catch(C2.error)}),[d]),g=pf(u.renderer,c);return a.createElement(of,{bordered:n,padded:o,showLineNumbers:c,className:s},a.createElement(sf,null,a.createElement(Re,{padded:o||n,language:t,showLineNumbers:c,showInlineLineNumbers:c,useInlineStyles:!1,PreTag:cf,CodeTag:uf,lineNumberContainerStyle:{},...u,renderer:g},d)),r?a.createElement(Zo,{actionItems:[{title:p?"Copied":"Copy",onClick:f}]}):null)};qo.registerLanguage=(...e)=>Re.registerLanguage(...e);var rA=qo;const{global:ff}=__STORYBOOK_MODULE_GLOBAL__;var mf=V({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",a="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function l(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var i,s,c,u;if(Array.isArray(e)){if((i=e.length)!=t.length)return!1;for(s=i;0!=s--;)if(!l(e[s],t[s]))return!1;return!0}if(a&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!t.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!l(s.value[1],t.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!t.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((i=e.length)!=t.length)return!1;for(s=i;0!=s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(t,c[s]))return!1;if(r&&e instanceof Element)return!1;for(s=i;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!l(e[c[s]],t[c[s]]))return!1;return!0}return e!=e&&t!=t}t.exports=function(e,t){try{return l(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}}});function gf(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0)&&(n[r]=e[r]);return n}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")&&(e instanceof Oe(e).ShadowRoot||e instanceof ShadowRoot)}function Of(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},a=t.attributes[e]||{},n=t.elements[e];!Me(n)||!pt(n)||(Object.assign(n.style,r),Object.keys(a).forEach((function(e){var t=a[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))}function Tf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});!Me(a)||!pt(a)||(Object.assign(a.style,o),Object.keys(n).forEach((function(e){a.removeAttribute(e)})))}))}}var Rf={name:"applyStyles",enabled:!0,phase:"write",fn:Of,effect:Tf,requires:["computeStyles"]};function dt(e){return e.split("-")[0]}var zt=Math.max,Dn=Math.min,ur=Math.round;function ao(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Fc(){return!/^((?!chrome|android).)*safari/i.test(ao())}function dr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var a=e.getBoundingClientRect(),n=1,o=1;t&&Me(e)&&(n=e.offsetWidth>0&&ur(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ur(a.height)/e.offsetHeight||1);var l=(Gt(e)?Oe(e):window).visualViewport,i=!Fc()&&r,s=(a.left+(i&&l?l.offsetLeft:0))/n,c=(a.top+(i&&l?l.offsetTop:0))/o,u=a.width/n,d=a.height/o;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Wo(e){var t=dr(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function $c(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Uo(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function yt(e){return Oe(e).getComputedStyle(e)}function Ff(e){return["table","td","th"].indexOf(pt(e))>=0}function Tt(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jn(e){return"html"===pt(e)?e:e.assignedSlot||e.parentNode||(Uo(e)?e.host:null)||Tt(e)}function fi(e){return Me(e)&&"fixed"!==yt(e).position?e.offsetParent:null}function $f(e){var t=/firefox/i.test(ao());if(/Trident/i.test(ao())&&Me(e)&&"fixed"===yt(e).position)return null;var r=Jn(e);for(Uo(r)&&(r=r.host);Me(r)&&["html","body"].indexOf(pt(r))<0;){var a=yt(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}function rn(e){for(var t=Oe(e),r=fi(e);r&&Ff(r)&&"static"===yt(r).position;)r=fi(r);return r&&("html"===pt(r)||"body"===pt(r)&&"static"===yt(r).position)?t:r||$f(e)||t}function Go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,r){return zt(e,Dn(t,r))}function Df(e,t,r){var a=Dr(e,t,r);return a>r?r:a}function Dc(){return{top:0,right:0,bottom:0,left:0}}function Lc(e){return Object.assign({},Dc(),e)}function Mc(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var Lf=function(e,t){return Lc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mc(e,tn))};function Mf(e){var t,r=e.state,a=e.name,n=e.options,o=r.elements.arrow,l=r.modifiersData.popperOffsets,i=dt(r.placement),s=Go(i),c=[Se,Pe].indexOf(i)>=0?"height":"width";if(o&&l){var u=Lf(n.padding,r),d=Wo(o),p="y"===s?Ae:Se,m="y"===s?Ie:Pe,h=r.rects.reference[c]+r.rects.reference[s]-l[s]-r.rects.popper[c],f=l[s]-r.rects.reference[s],g=rn(o),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-f/2,v=u[p],E=b-d[c]-u[m],x=b/2-d[c]/2+y,w=Dr(v,x,E),k=s;r.modifiersData[a]=((t={})[k]=w,t.centerOffset=w-x,t)}}function Bf(e){var t=e.state,r=e.options.element,a=void 0===r?"[data-popper-arrow]":r;null!=a&&("string"==typeof a&&!(a=t.elements.popper.querySelector(a))||$c(t.elements.popper,a)&&(t.elements.arrow=a))}var If={name:"arrow",enabled:!0,phase:"main",fn:Mf,effect:Bf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pr(e){return e.split("-")[1]}var Pf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jf(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:ur(r*n)/n||0,y:ur(a*n)/n||0}}function mi(e){var t,r=e.popper,a=e.popperRect,n=e.placement,o=e.variation,l=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=l.x,m=void 0===p?0:p,h=l.y,f=void 0===h?0:h,g="function"==typeof u?u({x:m,y:f}):{x:m,y:f};m=g.x,f=g.y;var b=l.hasOwnProperty("x"),y=l.hasOwnProperty("y"),v=Se,E=Ae,x=window;if(c){var w=rn(r),k="clientHeight",S="clientWidth";if(w===Oe(r)&&("static"!==yt(w=Tt(r)).position&&"absolute"===i&&(k="scrollHeight",S="scrollWidth")),n===Ae||(n===Se||n===Pe)&&o===Vr)E=Ie,f-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-a.height,f*=s?1:-1;if(n===Se||(n===Ae||n===Ie)&&o===Vr)v=Pe,m-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-a.width,m*=s?1:-1}var C,A=Object.assign({position:i},c&&Pf),_=!0===u?jf({x:m,y:f},Oe(r)):{x:m,y:f};return m=_.x,f=_.y,s?Object.assign({},A,((C={})[E]=y?"0":"",C[v]=b?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+f+"px)":"translate3d("+m+"px, "+f+"px, 0)",C)):Object.assign({},A,((t={})[E]=y?f+"px":"",t[v]=b?m+"px":"",t.transform="",t))}function Nf(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=void 0===a||a,o=r.adaptive,l=void 0===o||o,i=r.roundOffsets,s=void 0===i||i,c={placement:dt(t.placement),variation:pr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Hf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nf,data:{}},fn={passive:!0};function Zf(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,o=void 0===n||n,l=a.resize,i=void 0===l||l,s=Oe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,fn)})),i&&s.addEventListener("resize",r.update,fn),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,fn)})),i&&s.removeEventListener("resize",r.update,fn)}}var Vf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zf,data:{}},zf={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,(function(e){return zf[e]}))}var qf={start:"end",end:"start"};function gi(e){return e.replace(/start|end/g,(function(e){return qf[e]}))}function Yo(e){var t=Oe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ko(e){return dr(Tt(e)).left+Yo(e).scrollLeft}function Uf(e,t){var r=Oe(e),a=Tt(e),n=r.visualViewport,o=a.clientWidth,l=a.clientHeight,i=0,s=0;if(n){o=n.width,l=n.height;var c=Fc();(c||!c&&"fixed"===t)&&(i=n.offsetLeft,s=n.offsetTop)}return{width:o,height:l,x:i+Ko(e),y:s}}function Wf(e){var t,r=Tt(e),a=Yo(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=zt(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=zt(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-a.scrollLeft+Ko(e),s=-a.scrollTop;return"rtl"===yt(n||r).direction&&(i+=zt(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:l,x:i,y:s}}function Xo(e){var t=yt(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function Bc(e){return["html","body","#document"].indexOf(pt(e))>=0?e.ownerDocument.body:Me(e)&&Xo(e)?e:Bc(Jn(e))}function Lr(e,t){var r;void 0===t&&(t=[]);var a=Bc(e),n=a===(null==(r=e.ownerDocument)?void 0:r.body),o=Oe(a),l=n?[o].concat(o.visualViewport||[],Xo(a)?a:[]):a,i=t.concat(l);return n?i:i.concat(Lr(Jn(l)))}function oo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gf(e,t){var r=dr(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function hi(e,t,r){return t===Tc?oo(Uf(e,r)):Gt(t)?Gf(t,r):oo(Wf(Tt(e)))}function Yf(e){var t=Lr(Jn(e)),r=["absolute","fixed"].indexOf(yt(e).position)>=0&&Me(e)?rn(e):e;return Gt(r)?t.filter((function(e){return Gt(e)&&$c(e,r)&&"body"!==pt(e)})):[]}function Kf(e,t,r,a){var n="clippingParents"===t?Yf(e):[].concat(t),o=[].concat(n,[r]),l=o[0],i=o.reduce((function(t,r){var n=hi(e,r,a);return t.top=zt(n.top,t.top),t.right=Dn(n.right,t.right),t.bottom=Dn(n.bottom,t.bottom),t.left=zt(n.left,t.left),t}),hi(e,l,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Ic(e){var t,r=e.reference,a=e.element,n=e.placement,o=n?dt(n):null,l=n?pr(n):null,i=r.x+r.width/2-a.width/2,s=r.y+r.height/2-a.height/2;switch(o){case Ae:t={x:i,y:r.y-a.height};break;case Ie:t={x:i,y:r.y+r.height};break;case Pe:t={x:r.x+r.width,y:s};break;case Se:t={x:r.x-a.width,y:s};break;default:t={x:r.x,y:r.y}}var c=o?Go(o):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case cr:t[c]=t[c]-(r[u]/2-a[u]/2);break;case Vr:t[c]=t[c]+(r[u]/2-a[u]/2)}}return t}function zr(e,t){void 0===t&&(t={});var r=t,a=r.placement,n=void 0===a?e.placement:a,o=r.strategy,l=void 0===o?e.strategy:o,i=r.boundary,s=void 0===i?hf:i,c=r.rootBoundary,u=void 0===c?Tc:c,d=r.elementContext,p=void 0===d?Or:d,m=r.altBoundary,h=void 0!==m&&m,f=r.padding,g=void 0===f?0:f,b=Lc("number"!=typeof g?g:Mc(g,tn)),y=p===Or?bf:Or,v=e.rects.popper,E=e.elements[h?y:p],x=Kf(Gt(E)?E:E.contextElement||Tt(e.elements.popper),s,u,l),w=dr(e.elements.reference),k=Ic({reference:w,element:v,strategy:"absolute",placement:n}),S=oo(Object.assign({},v,k)),C=p===Or?S:w,A={top:x.top-C.top+b.top,bottom:C.bottom-x.bottom+b.bottom,left:x.left-C.left+b.left,right:C.right-x.right+b.right},_=e.modifiersData.offset;if(p===Or&&_){var O=_[n];Object.keys(A).forEach((function(e){var t=[Pe,Ie].indexOf(e)>=0?1:-1,r=[Ae,Ie].indexOf(e)>=0?"y":"x";A[e]+=O[r]*t}))}return A}function Xf(e,t){void 0===t&&(t={});var r=t,a=r.placement,n=r.boundary,o=r.rootBoundary,l=r.padding,i=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Rc:s,u=pr(a),d=u?i?pi:pi.filter((function(e){return pr(e)===u})):tn,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var m=p.reduce((function(t,r){return t[r]=zr(e,{placement:r,boundary:n,rootBoundary:o,padding:l})[dt(r)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}function Jf(e){if(dt(e)===Xn)return[];var t=wn(e);return[gi(e),t,gi(t)]}function Qf(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,o=void 0===n||n,l=r.altAxis,i=void 0===l||l,s=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,h=void 0===m||m,f=r.allowedAutoPlacements,g=t.options.placement,b=dt(g),y=s||(b===g||!h?[wn(g)]:Jf(g)),v=[g].concat(y).reduce((function(e,r){return e.concat(dt(r)===Xn?Xf(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:f}):r)}),[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=v[0],C=0;C=0,M=R?"width":"height",T=zr(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=R?O?Pe:Se:O?Ie:Ae;E[M]>x[M]&&(L=wn(L));var j=wn(L),F=[];if(o&&F.push(T[_]<=0),i&&F.push(T[L]<=0,T[j]<=0),F.every((function(e){return e}))){S=A,k=!1;break}w.set(A,F)}if(k)for(var N=function(e){var t=v.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},P=h?3:1;P>0;P--){if("break"===N(P))break}t.placement!==S&&(t.modifiersData[a]._skip=!0,t.placement=S,t.reset=!0)}}var em={name:"flip",enabled:!0,phase:"main",fn:Qf,requiresIfExists:["offset"],data:{_skip:!1}};function bi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function yi(e){return[Ae,Pe,Ie,Se].some((function(t){return e[t]>=0}))}function tm(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,l=zr(t,{elementContext:"reference"}),i=zr(t,{altBoundary:!0}),s=bi(l,a),c=bi(i,n,o),u=yi(s),d=yi(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var rm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tm};function nm(e,t,r){var a=dt(e),n=[Se,Ae].indexOf(a)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=o[0],i=o[1];return l=l||0,i=(i||0)*n,[Se,Pe].indexOf(a)>=0?{x:i,y:l}:{x:l,y:i}}function am(e){var t=e.state,r=e.options,a=e.name,n=r.offset,o=void 0===n?[0,0]:n,l=Rc.reduce((function(e,r){return e[r]=nm(r,t.rects,o),e}),{}),i=l[t.placement],s=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=l}var om={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:am};function lm(e){var t=e.state,r=e.name;t.modifiersData[r]=Ic({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var im={name:"popperOffsets",enabled:!0,phase:"read",fn:lm,data:{}};function sm(e){return"x"===e?"y":"x"}function cm(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,o=void 0===n||n,l=r.altAxis,i=void 0!==l&&l,s=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,m=void 0===p||p,h=r.tetherOffset,f=void 0===h?0:h,g=zr(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=dt(t.placement),y=pr(t.placement),v=!y,E=Go(b),x=sm(E),w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var R,M="y"===E?Ae:Se,T="y"===E?Ie:Pe,L="y"===E?"height":"width",j=w[E],F=j+g[M],N=j-g[T],P=m?-S[L]/2:0,Z=y===cr?k[L]:S[L],I=y===cr?-S[L]:-k[L],V=t.elements.arrow,H=m&&V?Wo(V):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dc(),D=B[M],$=B[T],z=Dr(0,k[L],H[L]),q=v?k[L]/2-P-z-D-A.mainAxis:Z-z-D-A.mainAxis,U=v?-k[L]/2+P+z+$+A.mainAxis:I+z+$+A.mainAxis,G=t.elements.arrow&&rn(t.elements.arrow),W=G?"y"===E?G.clientTop||0:G.clientLeft||0:0,Y=null!=(R=null==_?void 0:_[E])?R:0,K=j+U-Y,X=Dr(m?Dn(F,j+q-Y-W):F,j,m?zt(N,K):N);w[E]=X,O[E]=X-j}if(i){var J,Q="x"===E?Ae:Se,ee="x"===E?Ie:Pe,te=w[x],re="y"===x?"height":"width",ae=te+g[Q],ne=te-g[ee],oe=-1!==[Ae,Se].indexOf(b),le=null!=(J=null==_?void 0:_[x])?J:0,ie=oe?ae:te-k[re]-S[re]-le+A.altAxis,se=oe?te+k[re]+S[re]-le-A.altAxis:ne,ce=m&&oe?Df(ie,te,se):Dr(m?ie:ae,te,m?se:ne);w[x]=ce,O[x]=ce-te}t.modifiersData[a]=O}}var um={name:"preventOverflow",enabled:!0,phase:"main",fn:cm,requiresIfExists:["offset"]};function dm(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pm(e){return e!==Oe(e)&&Me(e)?dm(e):Yo(e)}function fm(e){var t=e.getBoundingClientRect(),r=ur(t.width)/e.offsetWidth||1,a=ur(t.height)/e.offsetHeight||1;return 1!==r||1!==a}function mm(e,t,r){void 0===r&&(r=!1);var a=Me(t),n=Me(t)&&fm(t),o=Tt(t),l=dr(e,n,r),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!r)&&(("body"!==pt(t)||Xo(o))&&(i=pm(t)),Me(t)?((s=dr(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Ko(o))),{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}function gm(e){var t=new Map,r=new Set,a=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var a=t.get(e);a&&n(a)}})),a.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),a}function hm(e){var t=gm(e);return _f.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function bm(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}function ym(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var Ei={placement:"bottom",modifiers:[],strategy:"absolute"};function xi(){for(var e=arguments.length,t=new Array(e),r=0;rt.split("-")[0]===e?r:a)),xt=8,Tm=_.div({position:"absolute",borderStyle:"solid"},(({placement:e})=>{let t=0,r=0;switch(!0){case e.startsWith("left")||e.startsWith("right"):r=8;break;case e.startsWith("top")||e.startsWith("bottom"):t=8}return{transform:`translate3d(${t}px, ${r}px, 0px)`}}),(({theme:e,color:t,placement:r})=>({bottom:`${De("top",r,-1*xt+"px","auto")}`,top:`${De("bottom",r,-1*xt+"px","auto")}`,right:`${De("left",r,-1*xt+"px","auto")}`,left:`${De("right",r,-1*xt+"px","auto")}`,borderBottomWidth:`${De("top",r,"0",xt)}px`,borderTopWidth:`${De("bottom",r,"0",xt)}px`,borderRightWidth:`${De("left",r,"0",xt)}px`,borderLeftWidth:`${De("right",r,"0",xt)}px`,borderTopColor:De("top",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderBottomColor:De("bottom",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderLeftColor:De("left",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderRightColor:De("right",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent")}))),Rm=_.div((({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647})),(({theme:e,color:t,hasChrome:r})=>r?{background:e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{})),Jo=a.forwardRef((({placement:e,hasChrome:t,children:r,arrowProps:n,tooltipRef:o,color:l,withArrows:i,...s},c)=>a.createElement(Rm,{"data-testid":"tooltip",hasChrome:t,ref:c,...s,color:l},t&&i&&a.createElement(Tm,{placement:e,...n,color:l}),r)));Jo.displayName="Tooltip",Jo.defaultProps={color:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var{document:An}=ff,Fm=_.div` + `,t),Ka(e)},Xa="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",jp=Object.create,Qs=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,ec=Object.getOwnPropertyNames,Hp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty,V=(e,t)=>function(){return t||(0,e[ec(e)[0]])((t={exports:{}}).exports,t),t.exports},Vp=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ec(t))!Zp.call(e,n)&&n!==r&&Qs(e,n,{get:()=>t[n],enumerable:!(a=Np(t,n))||a.enumerable});return e},Te=(e,t,r)=>(r=null!=e?jp(Hp(e)):{},Vp(e&&e.__esModule?r:Qs(r,"default",{value:e,enumerable:!0}),e)),zp=V({"../../node_modules/refractor/lang/markdown.js"(e,t){function r(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,n=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+n+o+"(?:"+n+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+n+o+")(?:"+n+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+n+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+n+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(r){t!==r&&(e.languages.markdown[t].inside.content.inside[r]=e.languages.markdown[r])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var r=0,a=t.length;r",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}t.exports=r,r.displayName="markdown",r.aliases=["md"]}}),qp=V({"../../node_modules/refractor/lang/yaml.js"(e,t){function r(e){!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",n=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return"(?:"+n+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}t.exports=r,r.displayName="yaml",r.aliases=["yml"]}}),tc=V({"../../node_modules/refractor/lang/typescript.js"(e,t){function r(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}t.exports=r,r.displayName="typescript",r.aliases=["ts"]}}),rc=V({"../../node_modules/refractor/lang/jsx.js"(e,t){function r(e){!function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,n=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return r})).replace(//g,(function(){return a})).replace(//g,(function(){return n})),RegExp(e,t)}n=o(n).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""},i=function(t){for(var r=[],a=0;a0&&r[r.length-1].tagName===l(n.content[0].content[1])&&r.pop():"/>"===n.content[n.content.length-1].content||r.push({tagName:l(n.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===n.type&&"{"===n.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===n.type&&"}"===n.content?r[r.length-1].openedBraces--:o=!0),(o||"string"==typeof n)&&r.length>0&&0===r[r.length-1].openedBraces){var s=l(n);a0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(s=l(t[a-1])+s,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",s,null,s)}n.content&&"string"!=typeof n.content&&i(n.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(e)}t.exports=r,r.displayName="jsx",r.aliases=[]}}),Up=V({"../../node_modules/refractor/lang/tsx.js"(e,t){var r=rc(),a=tc();function n(e){e.register(r),e.register(a),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var r=e.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}t.exports=n,n.displayName="tsx",n.aliases=[]}}),Wp=V({"../../node_modules/refractor/lang/clike.js"(e,t){function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="clike",r.aliases=[]}}),Gp=V({"../../node_modules/refractor/lang/javascript.js"(e,t){function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}t.exports=r,r.displayName="javascript",r.aliases=["js"]}}),nc=V({"../../node_modules/refractor/lang/css.js"(e,t){function r(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(e)}t.exports=r,r.displayName="css",r.aliases=[]}}),ac=V({"../../node_modules/refractor/lang/markup.js"(e,t){function r(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:a}};n["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:n},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"]}}),Yp=V({"../../node_modules/xtend/immutable.js"(e,t){t.exports=function(){for(var e={},t=0;t4&&d.slice(0,4)===o&&l.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,u);return o+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return i.test(t)?e:(t=t.replace(s,c),"-"!==t.charAt(0)&&(t="-"+t),o+t)}(t),m=a),new m(p,t))};var l=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function u(e){return e.charAt(1).toUpperCase()}}}),o2=V({"../../node_modules/hast-util-parse-selector/index.js"(e,t){t.exports=function(e,t){for(var a,n,o,l=e||"",i=t||"div",s={},c=0;c",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}}}),p2=V({"../../node_modules/character-reference-invalid/index.json"(e,t){t.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}}}),cc=V({"../../node_modules/is-decimal/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}}}),f2=V({"../../node_modules/is-hexadecimal/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}}}),m2=V({"../../node_modules/is-alphabetical/index.js"(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}}}),g2=V({"../../node_modules/is-alphanumerical/index.js"(e,t){var r=m2(),a=cc();t.exports=function(e){return r(e)||a(e)}}}),h2=V({"../../node_modules/parse-entities/node_modules/character-entities/index.json"(e,t){t.exports={AEli:"\xc6",AElig:"\xc6",AM:"&",AMP:"&",Aacut:"\xc1",Aacute:"\xc1",Abreve:"\u0102",Acir:"\xc2",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrav:"\xc0",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Arin:"\xc5",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atild:"\xc3",Atilde:"\xc3",Aum:"\xc4",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COP:"\xa9",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedi:"\xc7",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ET:"\xd0",ETH:"\xd0",Eacut:"\xc9",Eacute:"\xc9",Ecaron:"\u011a",Ecir:"\xca",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrav:"\xc8",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Eum:"\xcb",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xcd",Iacute:"\xcd",Icir:"\xce",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xcc",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xcf",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntild:"\xd1",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacut:"\xd3",Oacute:"\xd3",Ocir:"\xd4",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograv:"\xd2",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslas:"\xd8",Oslash:"\xd8",Otild:"\xd5",Otilde:"\xd5",Otimes:"\u2a37",Oum:"\xd6",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUO:'"',QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",RE:"\xae",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THOR:"\xde",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacut:"\xda",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucir:"\xdb",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrav:"\xd9",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uum:"\xdc",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacut:"\xdd",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacut:"\xe1",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acir:"\xe2",acirc:"\xe2",acut:"\xb4",acute:"\xb4",acy:"\u0430",aeli:"\xe6",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrav:"\xe0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",am:"&",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",arin:"\xe5",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atild:"\xe3",atilde:"\xe3",aum:"\xe4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvba:"\xa6",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedi:"\xe7",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedi:"\xb8",cedil:"\xb8",cemptyv:"\u29b2",cen:"\xa2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",cop:"\xa9",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curre:"\xa4",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",de:"\xb0",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divid:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacut:"\xe9",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\xea",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrav:"\xe8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",et:"\xf0",eth:"\xf0",eum:"\xeb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac1:"\xbc",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac3:"\xbe",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",g:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xed",iacute:"\xed",ic:"\u2063",icir:"\xee",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexc:"\xa1",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrav:"\xec",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iques:"\xbf",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xef",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laqu:"\xab",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",mac:"\xaf",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micr:"\xb5",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middo:"\xb7",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbs:"\xa0",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",no:"\xac",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntild:"\xf1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacut:"\xf3",oacute:"\xf3",oast:"\u229b",ocir:"\xf4",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograv:"\xf2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\xba",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslas:"\xf8",oslash:"\xf8",osol:"\u2298",otild:"\xf5",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",oum:"\xf6",ouml:"\xf6",ovbar:"\u233d",par:"\xb6",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusm:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",poun:"\xa3",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quo:'"',quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raqu:"\xbb",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",re:"\xae",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xa7",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xad",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szli:"\xdf",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thor:"\xfe",thorn:"\xfe",tilde:"\u02dc",time:"\xd7",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacut:"\xfa",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucir:"\xfb",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrav:"\xf9",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",um:"\xa8",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uum:"\xfc",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacut:"\xfd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",ye:"\xa5",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yum:"\xff",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}}}),b2=V({"../../node_modules/parse-entities/decode-entity.js"(e,t){var r=h2();t.exports=function(e){return!!a.call(r,e)&&r[e]};var a={}.hasOwnProperty}}),y2=V({"../../node_modules/parse-entities/index.js"(e,t){var r=d2(),a=p2(),n=cc(),o=f2(),l=g2(),i=b2();t.exports=function(e,t){var n,o,E={};for(o in t||(t={}),d)n=t[o],E[o]=n??d[o];return(E.position.indent||E.position.start)&&(E.indent=E.position.indent||[],E.position=E.position.start),function(e,t){var n,o,d,E,x,w,k,S,C,A,_,O,R,M,T,L,j,F,N,P=t.additional,Z=t.nonTerminated,I=t.text,V=t.reference,H=t.warning,B=t.textContext,D=t.referenceContext,$=t.warningContext,z=t.position,U=t.indent||[],q=e.length,G=0,W=-1,Y=z.column||1,K=z.line||1,X="",J=[];for("string"==typeof P&&(P=P.charCodeAt(0)),L=Q(),S=H?ee:u,G--,q++;++G65535&&(A+=c((w-=65536)>>>10|55296),w=56320|1023&w),w=A+c(w))):M!==p&&S(4,F)),w?(te(),L=Q(),G=N-1,Y+=N-R+1,J.push(w),(j=Q()).offset++,V&&V.call(D,w,{start:L,end:j},e.slice(R-1,N)),L=j):(E=e.slice(R-1,N),X+=E,Y+=E.length,G=N-1)}else 10===x&&(K++,W++,Y=0),x==x?(X+=c(x),Y++):te();return J.join("");function Q(){return{line:K,column:Y,offset:G+(z.offset||0)}}function ee(e,t){var r=Q();r.column+=t,r.offset+=t,H.call($,b[e],r,e)}function te(){X&&(J.push(X),I&&I.call(B,X,{start:L,end:Q()}),X="")}}(e,E)};var s={}.hasOwnProperty,c=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",m="hexadecimal",h="decimal",f={};f[m]=16,f[h]=10;var g={};g[p]=l,g[h]=n,g[m]=o;var b={};function y(e){return e>=55296&&e<=57343||e>1114111}function v(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}b[1]="Named character references must be terminated by a semicolon",b[2]="Numeric character references must be terminated by a semicolon",b[3]="Named character references cannot be empty",b[4]="Numeric character references cannot be empty",b[5]="Named character references must be known",b[6]="Numeric character references cannot be disallowed",b[7]="Numeric character references cannot be outside the permissible Unicode range"}}),v2=V({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,t){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,a={},n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var r in t)if(t[r].src==e)return t[r]}return null}},isActive:function(e,t,r){for(var a="no-"+t;e;){var n=e.classList;if(n.contains(t))return!0;if(n.contains(a))return!1;e=e.parentElement}return!!r}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var a in t)r[a]=t[a];return r},insertBefore:function(e,t,r,a){var o=(a=a||n.languages)[e],l={};for(var i in o)if(o.hasOwnProperty(i)){if(i==t)for(var s in r)r.hasOwnProperty(s)&&(l[s]=r[s]);r.hasOwnProperty(i)||(l[i]=o[i])}var c=a[e];return a[e]=l,n.languages.DFS(n.languages,(function(t,r){r===c&&t!=e&&(this[t]=l)})),l},DFS:function e(t,r,a,o){o=o||{};var l=n.util.objId;for(var i in t)if(t.hasOwnProperty(i)){r.call(t,i,t[i],a||i);var s=t[i],c=n.util.type(s);"Object"!==c||o[l(s)]?"Array"===c&&!o[l(s)]&&(o[l(s)]=!0,e(s,r,i,o)):(o[l(s)]=!0,e(s,r,null,o))}}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var a={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),n.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)n.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,r,a){var o=n.util.getLanguage(t),l=n.languages[o];n.util.setLanguage(t,o);var i=t.parentElement;i&&"pre"===i.nodeName.toLowerCase()&&n.util.setLanguage(i,o);var s={element:t,language:o,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,n.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n.hooks.run("after-highlight",s),n.hooks.run("complete",s),a&&a.call(s.element)}if(n.hooks.run("before-sanity-check",s),(i=s.element.parentElement)&&"pre"===i.nodeName.toLowerCase()&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","0"),!s.code)return n.hooks.run("complete",s),void(a&&a.call(s.element));if(n.hooks.run("before-highlight",s),s.grammar)if(r&&e.Worker){var u=new Worker(n.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(n.highlight(s.code,s.grammar,s.language));else c(n.util.encode(s.code))},highlight:function(e,t,r){var a={code:e,grammar:t,language:r};if(n.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=n.tokenize(a.code,a.grammar),n.hooks.run("after-tokenize",a),o.stringify(n.util.encode(a.tokens),a.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var a in r)t[a]=r[a];delete t.rest}var n=new s;return c(n,n.head,e),i(e,n,t,n.head,0),function(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}(n)},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var a,o=0;a=r[o++];)a(t)}},Token:o};function o(e,t,r,a){this.type=e,this.content=t,this.alias=r,this.length=0|(a||"").length}function l(e,t,r,a){e.lastIndex=t;var n=e.exec(r);if(n&&a&&n[1]){var o=n[1].length;n.index+=o,n[0]=n[0].slice(o)}return n}function i(e,t,r,a,s,d){for(var p in r)if(r.hasOwnProperty(p)&&r[p]){var m=r[p];m=Array.isArray(m)?m:[m];for(var h=0;h=d.reach);k+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof o)){var C,A=1;if(y){if(!(C=l(x,k,e,b))||C.index>=e.length)break;var _=C.index,O=C.index+C[0].length,R=k;for(R+=w.value.length;_>=R;)R+=(w=w.next).value.length;if(k=R-=w.value.length,w.value instanceof o)continue;for(var M=w;M!==t.tail&&(Rd.reach&&(d.reach=F);var N=w.prev;if(L&&(N=c(t,N,L),k+=L.length),u(t,N,A),w=c(t,N,new o(p,g?n.tokenize(T,g):T,v,T)),j&&c(t,w,j),A>1){var P={cause:p+","+h,reach:F};i(e,t,r,w.prev,k,P),d&&P.reach>d.reach&&(d.reach=P.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var a=t.next,n={value:r,prev:t,next:a};return t.next=n,a.prev=n,e.length++,n}function u(e,t,r){for(var a=t.next,n=0;n"+o.content+""},!e.document)return e.addEventListener&&(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),a=r.language,o=r.code,l=r.immediateClose;e.postMessage(n.highlight(o,n.languages[a],a)),l&&e.close()}),!1)),n;var d=n.util.currentScript();function p(){n.manual||n.highlightAll()}if(d&&(n.filename=d.src,d.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var m=document.readyState;"loading"===m||"interactive"===m&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return n}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof t<"u"&&t.exports&&(t.exports=r),typeof global<"u"&&(global.Prism=r)}}),E2=V({"../../node_modules/refractor/core.js"(e,t){var r,a,n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},o=(a=(r="Prism"in n)?n.Prism:void 0,function(){r?n.Prism=a:delete n.Prism,r=void 0,a=void 0});n.Prism={manual:!0,disableWorkerMessageHandler:!0};var l=u2(),i=y2(),s=v2(),c=ac(),u=nc(),d=Wp(),p=Gp();o();var m={}.hasOwnProperty;function h(){}h.prototype=s;var f=new h;function g(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===f.languages[e.displayName]&&e(f)}t.exports=f,f.highlight=function(e,t){var r,a=s.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===f.util.type(t))r=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!m.call(f.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");r=f.languages[t]}return a.call(this,e,r,t)},f.register=g,f.alias=function(e,t){var r,a,n,o,l=f.languages,i=e;for(r in t&&((i={})[e]=t),i)for(a=i[r],n=(a="string"==typeof a?[a]:a).length,o=-1;++o>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var n=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,l=0;l/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],a=0;a0)){var i=p(/^\{$/,/^\}$/);if(-1===i)continue;for(var s=r;s=0&&m(c,"variable-input")}}}}function u(e){return t[r+e]}function d(e,t){t=t||0;for(var r=0;r=0)&&(n[r]=e[r]);return n}function K2(e,t){if(null==e)return{};var r,a,n=Y2(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}var Aa={};function o5(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return Aa[t]||(Aa[t]=a5(e)),Aa[t]}function l5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return o5(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return rr(rr({},e),r[t])}),t)}function oi(e){return e.join(" ")}function i5(e,t){var r=0;return function(a){return r+=1,a.map((function(a,n){return jo({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(n)})}))}}function jo(e){var t=e.node,r=e.stylesheet,n=e.style,o=void 0===n?{}:n,l=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if("text"===c)return d;if(u){var p,m=i5(r,l);if(l){var h=Object.keys(r).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),f=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&f.concat(s.className.filter((function(e){return!h.includes(e)})));p=rr(rr({},s),{},{className:oi(g)||void 0,style:l5(s.className,Object.assign({},s.style,o),r)})}else p=rr(rr({},s),{},{className:oi(s.className)});var b=m(t.children);return a.createElement(u,Qa({key:i},p),b)}}var s5=function(e,t){return-1!==e.listLanguages().indexOf(t)},c5=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function nt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,t){return xn({children:e,lineNumber:t,lineNumberStyle:i,largestLineNumber:l,showInlineLineNumbers:n,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:s})}(e,o,c):function(e,t){if(a&&t&&n){var r=pc(i,t,l);e.unshift(dc(t,r))}return e}(e,o)}for(var f=function(){var e=u[m],t=e.children[0].value;if(d5(t)){var r=t.split("\n");r.forEach((function(t,n){var l=a&&d.length+o,i={type:"text",value:"".concat(t,"\n")};if(0===n){var s=h(u.slice(p+1,m).concat(xn({children:[i],className:e.properties.className})),l);d.push(s)}else if(n===r.length-1){var c=u[m+1]&&u[m+1].children&&u[m+1].children[0],f={type:"text",value:"".concat(t)};if(c){var g=xn({children:[f],className:e.properties.className});u.splice(m+1,0,g)}else{var b=h([f],l,e.properties.className);d.push(b)}}else{var y=h([i],l,e.properties.className);d.push(y)}})),p=m}m++};m({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1}))),gc=_.button((({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}})),(({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}));gc.displayName="ActionButton";var Zo=({actionItems:e,...t})=>a.createElement(v5,{...t},e.map((({title:e,className:t,onClick:r,disabled:n},o)=>a.createElement(gc,{key:o,className:t,onClick:r,disabled:n},e))));function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach((e=>E5(e,t)))}function Kt(...e){return h.useCallback(hc(...e),e)}var bc=h.forwardRef(((e,t)=>{let{children:r,...a}=e,n=h.Children.toArray(r),o=n.find(w5);if(o){let e=o.props.children,r=n.map((t=>t===o?h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null:t));return h.createElement(to,Fn({},a,{ref:t}),h.isValidElement(e)?h.cloneElement(e,void 0,r):null)}return h.createElement(to,Fn({},a,{ref:t}),r)}));bc.displayName="Slot";var to=h.forwardRef(((e,t)=>{let{children:r,...a}=e;return h.isValidElement(r)?h.cloneElement(r,{...A5(a,r.props),ref:t?hc(t,r.ref):r.ref}):h.Children.count(r)>1?h.Children.only(null):null}));to.displayName="SlotClone";var x5=({children:e})=>h.createElement(h.Fragment,null,e);function w5(e){return h.isValidElement(e)&&e.type===x5}function A5(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...e)=>{o(...e),n(...e)}:n&&(r[a]=n):"style"===a?r[a]={...n,...o}:"className"===a&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}var S5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qr=S5.reduce(((e,t)=>{let r=h.forwardRef(((e,r)=>{let{asChild:a,...n}=e,o=a?bc:t;return h.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),h.createElement(o,eo({},n,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),ro=null!=globalThis&&globalThis.document?h.useLayoutEffect:()=>{};function C5(e,t){return h.useReducer(((e,r)=>t[e][r]??e),e)}var en=e=>{let{present:t,children:r}=e,a=k5(t),n="function"==typeof r?r({present:a.isPresent}):h.Children.only(r),o=Kt(a.ref,n.ref);return"function"==typeof r||a.isPresent?h.cloneElement(n,{ref:o}):null};function k5(e){let[t,r]=h.useState(),a=h.useRef({}),n=h.useRef(e),o=h.useRef("none"),l=e?"mounted":"unmounted",[i,s]=C5(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect((()=>{let e=dn(a.current);o.current="mounted"===i?e:"none"}),[i]),ro((()=>{let t=a.current,r=n.current;if(r!==e){let a=o.current,l=dn(t);e?s("MOUNT"):"none"===l||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(r&&a!==l?"ANIMATION_OUT":"UNMOUNT"),n.current=e}}),[e,s]),ro((()=>{if(t){let e=e=>{let r=dn(a.current).includes(e.animationName);e.target===t&&r&&hs.flushSync((()=>s("ANIMATION_END")))},r=e=>{e.target===t&&(o.current=dn(a.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:h.useCallback((e=>{e&&(a.current=getComputedStyle(e)),r(e)}),[])}}function dn(e){return(null==e?void 0:e.animationName)||"none"}function _5(e,t=[]){let r=[];let a=()=>{let t=r.map((e=>h.createContext(e)));return function(r){let a=(null==r?void 0:r[e])||t;return h.useMemo((()=>({[`__scope${e}`]:{...r,[e]:a}})),[r,a])}};return a.scopeName=e,[function(t,a){let n=h.createContext(a),o=r.length;function l(t){let{scope:r,children:a,...l}=t,i=(null==r?void 0:r[e][o])||n,s=h.useMemo((()=>l),Object.values(l));return h.createElement(i.Provider,{value:s},a)}return r=[...r,a],l.displayName=t+"Provider",[l,function(r,l){let i=(null==l?void 0:l[e][o])||n,s=h.useContext(i);if(s)return s;if(void 0!==a)return a;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},O5(a,...t)]}function O5(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){let a=r.reduce(((t,{useScope:r,scopeName:a})=>({...t,...r(e)[`__scope${a}`]})),{});return h.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function Ht(e){let t=h.useRef(e);return h.useEffect((()=>{t.current=e})),h.useMemo((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}en.displayName="Presence";var T5=h.createContext(void 0);function R5(e){let t=h.useContext(T5);return e||t||"ltr"}function F5(e,[t,r]){return Math.min(r,Math.max(t,e))}function Vt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(null==e||e(a),!1===r||!a.defaultPrevented)return null==t?void 0:t(a)}}function $5(e,t){return h.useReducer(((e,r)=>t[e][r]??e),e)}var yc="ScrollArea",[vc,tA]=_5(yc),[D5,je]=vc(yc),L5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:o=600,...l}=e,[i,s]=h.useState(null),[c,u]=h.useState(null),[d,p]=h.useState(null),[m,f]=h.useState(null),[g,b]=h.useState(null),[y,v]=h.useState(0),[E,x]=h.useState(0),[w,k]=h.useState(!1),[S,C]=h.useState(!1),A=Kt(t,(e=>s(e))),_=R5(n);return h.createElement(D5,{scope:r,type:a,dir:_,scrollHideDelay:o,scrollArea:i,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:x},h.createElement(Qr.div,le({dir:_},l,{ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})))})),M5="ScrollAreaViewport",B5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,children:a,...n}=e,o=je(M5,r),l=Kt(t,h.useRef(null),o.onViewportChange);return h.createElement(h.Fragment,null,h.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),h.createElement(Qr.div,le({"data-radix-scroll-area-viewport":""},n,{ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),h.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},a)))})),vt="ScrollAreaScrollbar",I5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:l}=n,i="horizontal"===e.orientation;return h.useEffect((()=>(i?o(!0):l(!0),()=>{i?o(!1):l(!1)})),[i,o,l]),"hover"===n.type?h.createElement(P5,le({},a,{ref:t,forceMount:r})):"scroll"===n.type?h.createElement(j5,le({},a,{ref:t,forceMount:r})):"auto"===n.type?h.createElement(Ec,le({},a,{ref:t,forceMount:r})):"always"===n.type?h.createElement(Vo,le({},a,{ref:t})):null})),P5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),[o,l]=h.useState(!1);return h.useEffect((()=>{let e=n.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},a=()=>{t=window.setTimeout((()=>l(!1)),n.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",a),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",a)}}}),[n.scrollArea,n.scrollHideDelay]),h.createElement(en,{present:r||o},h.createElement(Ec,le({"data-state":o?"visible":"hidden"},a,{ref:t})))})),j5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=je(vt,e.__scopeScrollArea),o="horizontal"===e.orientation,l=Kn((()=>s("SCROLL_END")),100),[i,s]=$5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect((()=>{if("idle"===i){let e=window.setTimeout((()=>s("HIDE")),n.scrollHideDelay);return()=>window.clearTimeout(e)}}),[i,n.scrollHideDelay,s]),h.useEffect((()=>{let e=n.viewport,t=o?"scrollLeft":"scrollTop";if(e){let r=e[t],a=()=>{let a=e[t];r!==a&&(s("SCROLL"),l()),r=a};return e.addEventListener("scroll",a),()=>e.removeEventListener("scroll",a)}}),[n.viewport,o,s,l]),h.createElement(en,{present:r||"hidden"!==i},h.createElement(Vo,le({"data-state":"hidden"===i?"hidden":"visible"},a,{ref:t,onPointerEnter:Vt(e.onPointerEnter,(()=>s("POINTER_ENTER"))),onPointerLeave:Vt(e.onPointerLeave,(()=>s("POINTER_LEAVE")))})))})),Ec=h.forwardRef(((e,t)=>{let r=je(vt,e.__scopeScrollArea),{forceMount:a,...n}=e,[o,l]=h.useState(!1),i="horizontal"===e.orientation,s=Kn((()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...a}=e,n=je(vt,e.__scopeScrollArea),o=h.useRef(null),l=h.useRef(0),[i,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Sc(i.viewport,i.content),u={...a,sizes:i,onSizesChange:s,hasThumb:c>0&&c<1,onThumbChange:e=>o.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function d(e,t){return W5(e,l.current,i,t)}return"horizontal"===r?h.createElement(N5,le({},u,{ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let e=ii(n.viewport.scrollLeft,i,n.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{n.viewport&&(n.viewport.scrollLeft=e)},onDragScroll:e=>{n.viewport&&(n.viewport.scrollLeft=d(e,n.dir))}})):"vertical"===r?h.createElement(H5,le({},u,{ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let e=ii(n.viewport.scrollTop,i);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{n.viewport&&(n.viewport.scrollTop=e)},onDragScroll:e=>{n.viewport&&(n.viewport.scrollTop=d(e))}})):null})),N5=h.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=je(vt,e.__scopeScrollArea),[l,i]=h.useState(),s=h.useRef(null),c=Kt(t,s,o.onScrollbarXChange);return h.useEffect((()=>{s.current&&i(getComputedStyle(s.current))}),[s]),h.createElement(wc,le({"data-orientation":"horizontal"},n,{ref:c,sizes:r,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Yn(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){let a=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(a),kc(a,r)&&t.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:$n(l.paddingLeft),paddingEnd:$n(l.paddingRight)}})}}))})),H5=h.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=je(vt,e.__scopeScrollArea),[l,i]=h.useState(),s=h.useRef(null),c=Kt(t,s,o.onScrollbarYChange);return h.useEffect((()=>{s.current&&i(getComputedStyle(s.current))}),[s]),h.createElement(wc,le({"data-orientation":"vertical"},n,{ref:c,sizes:r,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Yn(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){let a=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(a),kc(a,r)&&t.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:$n(l.paddingTop),paddingEnd:$n(l.paddingBottom)}})}}))})),[Z5,xc]=vc(vt),wc=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:o,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,m=je(vt,r),[f,g]=h.useState(null),b=Kt(t,(e=>g(e))),y=h.useRef(null),v=h.useRef(""),E=m.viewport,x=a.content-a.viewport,w=Ht(u),k=Ht(s),S=Kn(d,10);function C(e){if(y.current){let t=e.clientX-y.current.left,r=e.clientY-y.current.top;c({x:t,y:r})}}return h.useEffect((()=>{let e=e=>{let t=e.target;null!=f&&f.contains(t)&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[E,f,x,w]),h.useEffect(k,[a,k]),sr(f,S),sr(m.content,S),h.createElement(Z5,{scope:r,scrollbar:f,hasThumb:n,onThumbChange:Ht(o),onThumbPointerUp:Ht(l),onThumbPositionChange:k,onThumbPointerDown:Ht(i)},h.createElement(Qr.div,le({},p,{ref:b,style:{position:"absolute",...p.style},onPointerDown:Vt(e.onPointerDown,(e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),C(e))})),onPointerMove:Vt(e.onPointerMove,C),onPointerUp:Vt(e.onPointerUp,(e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,m.viewport&&(m.viewport.style.scrollBehavior=""),y.current=null}))})))})),no="ScrollAreaThumb",V5=h.forwardRef(((e,t)=>{let{forceMount:r,...a}=e,n=xc(no,e.__scopeScrollArea);return h.createElement(en,{present:r||n.hasThumb},h.createElement(z5,le({ref:t},a)))})),z5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,style:a,...n}=e,o=je(no,r),l=xc(no,r),{onThumbPositionChange:i}=l,s=Kt(t,(e=>l.onThumbChange(e))),c=h.useRef(),u=Kn((()=>{c.current&&(c.current(),c.current=void 0)}),100);return h.useEffect((()=>{let e=o.viewport;if(e){let t=()=>{if(u(),!c.current){let t=G5(e,i);c.current=t,i()}};return i(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,i]),h.createElement(Qr.div,le({"data-state":l.hasThumb?"visible":"hidden"},n,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:Vt(e.onPointerDownCapture,(e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,a=e.clientY-t.top;l.onThumbPointerDown({x:r,y:a})})),onPointerUp:Vt(e.onPointerUp,l.onThumbPointerUp)}))})),Ac="ScrollAreaCorner",q5=h.forwardRef(((e,t)=>{let r=je(Ac,e.__scopeScrollArea),a=!(!r.scrollbarX||!r.scrollbarY);return"scroll"!==r.type&&a?h.createElement(U5,le({},e,{ref:t})):null})),U5=h.forwardRef(((e,t)=>{let{__scopeScrollArea:r,...a}=e,n=je(Ac,r),[o,l]=h.useState(0),[i,s]=h.useState(0),c=!(!o||!i);return sr(n.scrollbarX,(()=>{var e;let t=(null===(e=n.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;n.onCornerHeightChange(t),s(t)})),sr(n.scrollbarY,(()=>{var e;let t=(null===(e=n.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;n.onCornerWidthChange(t),l(t)})),c?h.createElement(Qr.div,le({},a,{ref:t,style:{width:o,height:i,position:"absolute",right:"ltr"===n.dir?0:void 0,left:"rtl"===n.dir?0:void 0,bottom:0,...e.style}})):null}));function $n(e){return e?parseInt(e,10):0}function Sc(e,t){let r=e/t;return isNaN(r)?0:r}function Yn(e){let t=Sc(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function W5(e,t,r,a="ltr"){let n=Yn(r),o=t||n/2,l=n-o,i=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport;return Cc([i,s],"ltr"===a?[0,c]:[-1*c,0])(e)}function ii(e,t,r="ltr"){let a=Yn(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-n,l=t.content-t.viewport,i=o-a,s=F5(e,"ltr"===r?[0,l]:[-1*l,0]);return Cc([0,l],[0,i])(s)}function Cc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function kc(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return function n(){let o={left:e.scrollLeft,top:e.scrollTop},l=r.left!==o.left,i=r.top!==o.top;(l||i)&&t(),r=o,a=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(a)};function Kn(e,t){let r=Ht(e),a=h.useRef(0);return h.useEffect((()=>()=>window.clearTimeout(a.current)),[]),h.useCallback((()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)}),[r,t])}function sr(e,t){let r=Ht(t);ro((()=>{let t=0;if(e){let a=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)}));return a.observe(e),()=>{window.cancelAnimationFrame(t),a.unobserve(e)}}}),[e,r])}var Y5=L5,K5=B5,X5=I5,J5=V5,Q5=q5,ef=_(Y5)((({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`}))),tf=_(K5)({width:"100%",height:"100%"}),si=_(X5)((({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:"true"===t&&"true"===r?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:"true"===t&&"true"===r?0:e}}))),ci=_(J5)((({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}}))),zo=({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:l})=>a.createElement(ef,{scrollbarsize:o,offset:n,className:l},a.createElement(tf,null,e),t&&a.createElement(si,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},a.createElement(ci,null)),r&&a.createElement(si,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},a.createElement(ci,null)),t&&r&&a.createElement(Q5,null)),{navigator:pn,document:_r,window:rf}=k2;Re.registerLanguage("jsextra",L2),Re.registerLanguage("jsx",O2),Re.registerLanguage("json",B2),Re.registerLanguage("yml",z2),Re.registerLanguage("md",Z2),Re.registerLanguage("bash",R2),Re.registerLanguage("css",$2),Re.registerLanguage("html",N2),Re.registerLanguage("tsx",U2),Re.registerLanguage("typescript",G2),Re.registerLanguage("graphql",P2);var nf=Yt(2)((e=>Object.entries(e.code||{}).reduce(((e,[t,r])=>({...e,[`* .${t}`]:r})),{}))),af=_c();function _c(){return null!=pn&&pn.clipboard?e=>pn.clipboard.writeText(e):async e=>{let t=_r.createElement("TEXTAREA"),r=_r.activeElement;t.value=e,_r.body.appendChild(t),t.select(),_r.execCommand("copy"),_r.body.removeChild(t),r.focus()}}var of=_.div((({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText})),(({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{}),(({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),lf=({children:e,className:t})=>a.createElement(zo,{horizontal:!0,vertical:!0,className:t},e),sf=_(lf)({position:"relative"},(({theme:e})=>nf(e))),cf=_.pre((({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0}))),uf=_.div((({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1}))),Oc=e=>{let t=[...e.children],r=t[0],a=r.children[0].value,n={...r,children:[],properties:{...r.properties,"data-line-number":a,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=n,{...e,children:t}},df=({rows:e,stylesheet:t,useInlineStyles:r})=>e.map(((e,a)=>jo({node:Oc(e),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`}))),pf=(e,t)=>t?e?({rows:t,...r})=>e({rows:t.map((e=>Oc(e))),...r}):df:e,qo=({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:l=!0,formatter:i=null,className:s=null,showLineNumbers:c=!1,...u})=>{if("string"!=typeof e||!e.trim())return null;let d=i?i(l,e):e.trim(),[p,m]=h.useState(!1),f=h.useCallback((e=>{e.preventDefault(),af(d).then((()=>{m(!0),rf.setTimeout((()=>m(!1)),1500)})).catch(C2.error)}),[d]),g=pf(u.renderer,c);return a.createElement(of,{bordered:n,padded:o,showLineNumbers:c,className:s},a.createElement(sf,null,a.createElement(Re,{padded:o||n,language:t,showLineNumbers:c,showInlineLineNumbers:c,useInlineStyles:!1,PreTag:cf,CodeTag:uf,lineNumberContainerStyle:{},...u,renderer:g},d)),r?a.createElement(Zo,{actionItems:[{title:p?"Copied":"Copy",onClick:f}]}):null)};qo.registerLanguage=(...e)=>Re.registerLanguage(...e);var rA=qo;const{global:ff}=__STORYBOOK_MODULE_GLOBAL__;var mf=V({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",a="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function l(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var i,s,c,u;if(Array.isArray(e)){if((i=e.length)!=t.length)return!1;for(s=i;0!=s--;)if(!l(e[s],t[s]))return!1;return!0}if(a&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!t.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!l(s.value[1],t.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!t.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((i=e.length)!=t.length)return!1;for(s=i;0!=s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(t,c[s]))return!1;if(r&&e instanceof Element)return!1;for(s=i;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!l(e[c[s]],t[c[s]]))return!1;return!0}return e!=e&&t!=t}t.exports=function(e,t){try{return l(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}}});function gf(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0)&&(n[r]=e[r]);return n}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")&&(e instanceof Oe(e).ShadowRoot||e instanceof ShadowRoot)}function Of(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},a=t.attributes[e]||{},n=t.elements[e];!Me(n)||!pt(n)||(Object.assign(n.style,r),Object.keys(a).forEach((function(e){var t=a[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))}function Tf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});!Me(a)||!pt(a)||(Object.assign(a.style,o),Object.keys(n).forEach((function(e){a.removeAttribute(e)})))}))}}var Rf={name:"applyStyles",enabled:!0,phase:"write",fn:Of,effect:Tf,requires:["computeStyles"]};function dt(e){return e.split("-")[0]}var zt=Math.max,Dn=Math.min,ur=Math.round;function ao(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Fc(){return!/^((?!chrome|android).)*safari/i.test(ao())}function dr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var a=e.getBoundingClientRect(),n=1,o=1;t&&Me(e)&&(n=e.offsetWidth>0&&ur(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ur(a.height)/e.offsetHeight||1);var l=(Gt(e)?Oe(e):window).visualViewport,i=!Fc()&&r,s=(a.left+(i&&l?l.offsetLeft:0))/n,c=(a.top+(i&&l?l.offsetTop:0))/o,u=a.width/n,d=a.height/o;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Wo(e){var t=dr(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function $c(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Uo(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function yt(e){return Oe(e).getComputedStyle(e)}function Ff(e){return["table","td","th"].indexOf(pt(e))>=0}function Tt(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jn(e){return"html"===pt(e)?e:e.assignedSlot||e.parentNode||(Uo(e)?e.host:null)||Tt(e)}function fi(e){return Me(e)&&"fixed"!==yt(e).position?e.offsetParent:null}function $f(e){var t=/firefox/i.test(ao());if(/Trident/i.test(ao())&&Me(e)&&"fixed"===yt(e).position)return null;var r=Jn(e);for(Uo(r)&&(r=r.host);Me(r)&&["html","body"].indexOf(pt(r))<0;){var a=yt(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}function rn(e){for(var t=Oe(e),r=fi(e);r&&Ff(r)&&"static"===yt(r).position;)r=fi(r);return r&&("html"===pt(r)||"body"===pt(r)&&"static"===yt(r).position)?t:r||$f(e)||t}function Go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,r){return zt(e,Dn(t,r))}function Df(e,t,r){var a=Dr(e,t,r);return a>r?r:a}function Dc(){return{top:0,right:0,bottom:0,left:0}}function Lc(e){return Object.assign({},Dc(),e)}function Mc(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var Lf=function(e,t){return Lc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mc(e,tn))};function Mf(e){var t,r=e.state,a=e.name,n=e.options,o=r.elements.arrow,l=r.modifiersData.popperOffsets,i=dt(r.placement),s=Go(i),c=[Se,Pe].indexOf(i)>=0?"height":"width";if(o&&l){var u=Lf(n.padding,r),d=Wo(o),p="y"===s?Ae:Se,m="y"===s?Ie:Pe,h=r.rects.reference[c]+r.rects.reference[s]-l[s]-r.rects.popper[c],f=l[s]-r.rects.reference[s],g=rn(o),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-f/2,v=u[p],E=b-d[c]-u[m],x=b/2-d[c]/2+y,w=Dr(v,x,E),k=s;r.modifiersData[a]=((t={})[k]=w,t.centerOffset=w-x,t)}}function Bf(e){var t=e.state,r=e.options.element,a=void 0===r?"[data-popper-arrow]":r;null!=a&&("string"==typeof a&&!(a=t.elements.popper.querySelector(a))||$c(t.elements.popper,a)&&(t.elements.arrow=a))}var If={name:"arrow",enabled:!0,phase:"main",fn:Mf,effect:Bf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pr(e){return e.split("-")[1]}var Pf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jf(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:ur(r*n)/n||0,y:ur(a*n)/n||0}}function mi(e){var t,r=e.popper,a=e.popperRect,n=e.placement,o=e.variation,l=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=l.x,m=void 0===p?0:p,h=l.y,f=void 0===h?0:h,g="function"==typeof u?u({x:m,y:f}):{x:m,y:f};m=g.x,f=g.y;var b=l.hasOwnProperty("x"),y=l.hasOwnProperty("y"),v=Se,E=Ae,x=window;if(c){var w=rn(r),k="clientHeight",S="clientWidth";if(w===Oe(r)&&("static"!==yt(w=Tt(r)).position&&"absolute"===i&&(k="scrollHeight",S="scrollWidth")),n===Ae||(n===Se||n===Pe)&&o===Vr)E=Ie,f-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-a.height,f*=s?1:-1;if(n===Se||(n===Ae||n===Ie)&&o===Vr)v=Pe,m-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-a.width,m*=s?1:-1}var C,A=Object.assign({position:i},c&&Pf),_=!0===u?jf({x:m,y:f},Oe(r)):{x:m,y:f};return m=_.x,f=_.y,s?Object.assign({},A,((C={})[E]=y?"0":"",C[v]=b?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+f+"px)":"translate3d("+m+"px, "+f+"px, 0)",C)):Object.assign({},A,((t={})[E]=y?f+"px":"",t[v]=b?m+"px":"",t.transform="",t))}function Nf(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=void 0===a||a,o=r.adaptive,l=void 0===o||o,i=r.roundOffsets,s=void 0===i||i,c={placement:dt(t.placement),variation:pr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Hf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nf,data:{}},fn={passive:!0};function Zf(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,o=void 0===n||n,l=a.resize,i=void 0===l||l,s=Oe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,fn)})),i&&s.addEventListener("resize",r.update,fn),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,fn)})),i&&s.removeEventListener("resize",r.update,fn)}}var Vf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zf,data:{}},zf={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,(function(e){return zf[e]}))}var qf={start:"end",end:"start"};function gi(e){return e.replace(/start|end/g,(function(e){return qf[e]}))}function Yo(e){var t=Oe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ko(e){return dr(Tt(e)).left+Yo(e).scrollLeft}function Uf(e,t){var r=Oe(e),a=Tt(e),n=r.visualViewport,o=a.clientWidth,l=a.clientHeight,i=0,s=0;if(n){o=n.width,l=n.height;var c=Fc();(c||!c&&"fixed"===t)&&(i=n.offsetLeft,s=n.offsetTop)}return{width:o,height:l,x:i+Ko(e),y:s}}function Wf(e){var t,r=Tt(e),a=Yo(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=zt(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=zt(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-a.scrollLeft+Ko(e),s=-a.scrollTop;return"rtl"===yt(n||r).direction&&(i+=zt(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:l,x:i,y:s}}function Xo(e){var t=yt(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function Bc(e){return["html","body","#document"].indexOf(pt(e))>=0?e.ownerDocument.body:Me(e)&&Xo(e)?e:Bc(Jn(e))}function Lr(e,t){var r;void 0===t&&(t=[]);var a=Bc(e),n=a===(null==(r=e.ownerDocument)?void 0:r.body),o=Oe(a),l=n?[o].concat(o.visualViewport||[],Xo(a)?a:[]):a,i=t.concat(l);return n?i:i.concat(Lr(Jn(l)))}function oo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gf(e,t){var r=dr(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function hi(e,t,r){return t===Tc?oo(Uf(e,r)):Gt(t)?Gf(t,r):oo(Wf(Tt(e)))}function Yf(e){var t=Lr(Jn(e)),r=["absolute","fixed"].indexOf(yt(e).position)>=0&&Me(e)?rn(e):e;return Gt(r)?t.filter((function(e){return Gt(e)&&$c(e,r)&&"body"!==pt(e)})):[]}function Kf(e,t,r,a){var n="clippingParents"===t?Yf(e):[].concat(t),o=[].concat(n,[r]),l=o[0],i=o.reduce((function(t,r){var n=hi(e,r,a);return t.top=zt(n.top,t.top),t.right=Dn(n.right,t.right),t.bottom=Dn(n.bottom,t.bottom),t.left=zt(n.left,t.left),t}),hi(e,l,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Ic(e){var t,r=e.reference,a=e.element,n=e.placement,o=n?dt(n):null,l=n?pr(n):null,i=r.x+r.width/2-a.width/2,s=r.y+r.height/2-a.height/2;switch(o){case Ae:t={x:i,y:r.y-a.height};break;case Ie:t={x:i,y:r.y+r.height};break;case Pe:t={x:r.x+r.width,y:s};break;case Se:t={x:r.x-a.width,y:s};break;default:t={x:r.x,y:r.y}}var c=o?Go(o):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case cr:t[c]=t[c]-(r[u]/2-a[u]/2);break;case Vr:t[c]=t[c]+(r[u]/2-a[u]/2)}}return t}function zr(e,t){void 0===t&&(t={});var r=t,a=r.placement,n=void 0===a?e.placement:a,o=r.strategy,l=void 0===o?e.strategy:o,i=r.boundary,s=void 0===i?hf:i,c=r.rootBoundary,u=void 0===c?Tc:c,d=r.elementContext,p=void 0===d?Or:d,m=r.altBoundary,h=void 0!==m&&m,f=r.padding,g=void 0===f?0:f,b=Lc("number"!=typeof g?g:Mc(g,tn)),y=p===Or?bf:Or,v=e.rects.popper,E=e.elements[h?y:p],x=Kf(Gt(E)?E:E.contextElement||Tt(e.elements.popper),s,u,l),w=dr(e.elements.reference),k=Ic({reference:w,element:v,strategy:"absolute",placement:n}),S=oo(Object.assign({},v,k)),C=p===Or?S:w,A={top:x.top-C.top+b.top,bottom:C.bottom-x.bottom+b.bottom,left:x.left-C.left+b.left,right:C.right-x.right+b.right},_=e.modifiersData.offset;if(p===Or&&_){var O=_[n];Object.keys(A).forEach((function(e){var t=[Pe,Ie].indexOf(e)>=0?1:-1,r=[Ae,Ie].indexOf(e)>=0?"y":"x";A[e]+=O[r]*t}))}return A}function Xf(e,t){void 0===t&&(t={});var r=t,a=r.placement,n=r.boundary,o=r.rootBoundary,l=r.padding,i=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Rc:s,u=pr(a),d=u?i?pi:pi.filter((function(e){return pr(e)===u})):tn,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var m=p.reduce((function(t,r){return t[r]=zr(e,{placement:r,boundary:n,rootBoundary:o,padding:l})[dt(r)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}function Jf(e){if(dt(e)===Xn)return[];var t=wn(e);return[gi(e),t,gi(t)]}function Qf(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,o=void 0===n||n,l=r.altAxis,i=void 0===l||l,s=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,h=void 0===m||m,f=r.allowedAutoPlacements,g=t.options.placement,b=dt(g),y=s||(b===g||!h?[wn(g)]:Jf(g)),v=[g].concat(y).reduce((function(e,r){return e.concat(dt(r)===Xn?Xf(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:f}):r)}),[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=v[0],C=0;C=0,M=R?"width":"height",T=zr(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=R?O?Pe:Se:O?Ie:Ae;E[M]>x[M]&&(L=wn(L));var j=wn(L),F=[];if(o&&F.push(T[_]<=0),i&&F.push(T[L]<=0,T[j]<=0),F.every((function(e){return e}))){S=A,k=!1;break}w.set(A,F)}if(k)for(var N=function(e){var t=v.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},P=h?3:1;P>0;P--){if("break"===N(P))break}t.placement!==S&&(t.modifiersData[a]._skip=!0,t.placement=S,t.reset=!0)}}var em={name:"flip",enabled:!0,phase:"main",fn:Qf,requiresIfExists:["offset"],data:{_skip:!1}};function bi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function yi(e){return[Ae,Pe,Ie,Se].some((function(t){return e[t]>=0}))}function tm(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,l=zr(t,{elementContext:"reference"}),i=zr(t,{altBoundary:!0}),s=bi(l,a),c=bi(i,n,o),u=yi(s),d=yi(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var rm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tm};function nm(e,t,r){var a=dt(e),n=[Se,Ae].indexOf(a)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=o[0],i=o[1];return l=l||0,i=(i||0)*n,[Se,Pe].indexOf(a)>=0?{x:i,y:l}:{x:l,y:i}}function am(e){var t=e.state,r=e.options,a=e.name,n=r.offset,o=void 0===n?[0,0]:n,l=Rc.reduce((function(e,r){return e[r]=nm(r,t.rects,o),e}),{}),i=l[t.placement],s=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=l}var om={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:am};function lm(e){var t=e.state,r=e.name;t.modifiersData[r]=Ic({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var im={name:"popperOffsets",enabled:!0,phase:"read",fn:lm,data:{}};function sm(e){return"x"===e?"y":"x"}function cm(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,o=void 0===n||n,l=r.altAxis,i=void 0!==l&&l,s=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,m=void 0===p||p,h=r.tetherOffset,f=void 0===h?0:h,g=zr(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=dt(t.placement),y=pr(t.placement),v=!y,E=Go(b),x=sm(E),w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var R,M="y"===E?Ae:Se,T="y"===E?Ie:Pe,L="y"===E?"height":"width",j=w[E],F=j+g[M],N=j-g[T],P=m?-S[L]/2:0,Z=y===cr?k[L]:S[L],I=y===cr?-S[L]:-k[L],V=t.elements.arrow,H=m&&V?Wo(V):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dc(),D=B[M],$=B[T],z=Dr(0,k[L],H[L]),U=v?k[L]/2-P-z-D-A.mainAxis:Z-z-D-A.mainAxis,q=v?-k[L]/2+P+z+$+A.mainAxis:I+z+$+A.mainAxis,G=t.elements.arrow&&rn(t.elements.arrow),W=G?"y"===E?G.clientTop||0:G.clientLeft||0:0,Y=null!=(R=null==_?void 0:_[E])?R:0,K=j+q-Y,X=Dr(m?Dn(F,j+U-Y-W):F,j,m?zt(N,K):N);w[E]=X,O[E]=X-j}if(i){var J,Q="x"===E?Ae:Se,ee="x"===E?Ie:Pe,te=w[x],re="y"===x?"height":"width",ae=te+g[Q],ne=te-g[ee],oe=-1!==[Ae,Se].indexOf(b),le=null!=(J=null==_?void 0:_[x])?J:0,ie=oe?ae:te-k[re]-S[re]-le+A.altAxis,se=oe?te+k[re]+S[re]-le-A.altAxis:ne,ce=m&&oe?Df(ie,te,se):Dr(m?ie:ae,te,m?se:ne);w[x]=ce,O[x]=ce-te}t.modifiersData[a]=O}}var um={name:"preventOverflow",enabled:!0,phase:"main",fn:cm,requiresIfExists:["offset"]};function dm(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pm(e){return e!==Oe(e)&&Me(e)?dm(e):Yo(e)}function fm(e){var t=e.getBoundingClientRect(),r=ur(t.width)/e.offsetWidth||1,a=ur(t.height)/e.offsetHeight||1;return 1!==r||1!==a}function mm(e,t,r){void 0===r&&(r=!1);var a=Me(t),n=Me(t)&&fm(t),o=Tt(t),l=dr(e,n,r),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!r)&&(("body"!==pt(t)||Xo(o))&&(i=pm(t)),Me(t)?((s=dr(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Ko(o))),{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}function gm(e){var t=new Map,r=new Set,a=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var a=t.get(e);a&&n(a)}})),a.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),a}function hm(e){var t=gm(e);return _f.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function bm(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}function ym(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var Ei={placement:"bottom",modifiers:[],strategy:"absolute"};function xi(){for(var e=arguments.length,t=new Array(e),r=0;rt.split("-")[0]===e?r:a)),xt=8,Tm=_.div({position:"absolute",borderStyle:"solid"},(({placement:e})=>{let t=0,r=0;switch(!0){case e.startsWith("left")||e.startsWith("right"):r=8;break;case e.startsWith("top")||e.startsWith("bottom"):t=8}return{transform:`translate3d(${t}px, ${r}px, 0px)`}}),(({theme:e,color:t,placement:r})=>({bottom:`${De("top",r,-1*xt+"px","auto")}`,top:`${De("bottom",r,-1*xt+"px","auto")}`,right:`${De("left",r,-1*xt+"px","auto")}`,left:`${De("right",r,-1*xt+"px","auto")}`,borderBottomWidth:`${De("top",r,"0",xt)}px`,borderTopWidth:`${De("bottom",r,"0",xt)}px`,borderRightWidth:`${De("left",r,"0",xt)}px`,borderLeftWidth:`${De("right",r,"0",xt)}px`,borderTopColor:De("top",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderBottomColor:De("bottom",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderLeftColor:De("left",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent"),borderRightColor:De("right",r,e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,"transparent")}))),Rm=_.div((({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647})),(({theme:e,color:t,hasChrome:r})=>r?{background:e.color[t]||t||"light"===e.base?$r(e.background.app):e.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{})),Jo=a.forwardRef((({placement:e,hasChrome:t,children:r,arrowProps:n,tooltipRef:o,color:l,withArrows:i,...s},c)=>a.createElement(Rm,{"data-testid":"tooltip",hasChrome:t,ref:c,...s,color:l},t&&i&&a.createElement(Tm,{placement:e,...n,color:l}),r)));Jo.displayName="Tooltip",Jo.defaultProps={color:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var{document:An}=ff,Fm=_.div` display: inline-block; cursor: ${e=>"hover"===e.trigger||e.trigger.includes("hover")?"default":"pointer"}; `,$m=_.g` @@ -51,7 +51,7 @@ const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJW path { fill: currentColor; } -`,Ee=({icon:e,useSymbol:t,...r})=>a.createElement(du,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Gr[e]),Eg=h.memo((function({icons:e=Object.keys(Gr)}){return a.createElement(du,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map((e=>a.createElement("symbol",{id:`icon--${e}`,key:e},Gr[e]))))})),xg=0,wg=e=>!(e.button!==xg||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey),Ag=(e,t)=>{wg(e)&&(e.preventDefault(),t(e))},Sg=_.span((({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}),(({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{})),Cg=_.a((({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:nr(.07,e.color.secondary),"svg path:not([fill])":{fill:nr(.07,e.color.secondary)}},"&:active":{color:nr(.1,e.color.secondary),"svg path:not([fill])":{fill:nr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}})),(({theme:e,secondary:t,tertiary:r})=>{let a;return t&&(a=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(a=[e.color.dark,e.color.darkest,e.textMutedColor]),a?{color:a[0],"svg path:not([fill])":{fill:a[0]},"&:hover":{color:a[1],"svg path:not([fill])":{fill:a[1]}},"&:active":{color:a[2],"svg path:not([fill])":{fill:a[2]}}}:{}}),(({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}),(({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{}),(({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{})),_t=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(Cg,{...i,onClick:r&&e?e=>Ag(e,r):r,className:l},a.createElement(Sg,{withArrow:n,containsIcon:o},t,n&&a.createElement(Ee,{icon:"arrowright"})));_t.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var kg=_.div((({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:"dark"===e.base&&e.color.darkest}}))),qt=[],fr=null,_g=h.lazy((async()=>{let{SyntaxHighlighter:e}=await Wt((async()=>{const{SyntaxHighlighter:e}=await import("./syntaxhighlighter-MJWPISIS-D6eTHbYz.js");return{SyntaxHighlighter:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:t=>a.createElement(e,{...t})}})),Og=h.lazy((async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Wt((()=>import("./syntaxhighlighter-MJWPISIS-D6eTHbYz.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),Wt((()=>import("./formatter-SWP5E3XI-BJc8U_Su.js")),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:r=>a.createElement(e,{...r,formatter:t})}})),Qn=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},!1!==e.format?a.createElement(Og,{...e}):a.createElement(_g,{...e}));Qn.registerLanguage=(...e)=>{null===fr?qt.push(e):fr.registerLanguage(...e)};var Tg=e=>"number"==typeof e?e:Number(e),Rg=_.div((({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Xa}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Xa}`]:{marginTop:0}}),(({theme:e,outer:t,col:r,row:a})=>{switch(!0){case!(!t||!r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!(!t||!a):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}})),Fg=({col:e,row:t,outer:r,children:n,...o})=>{let l=Tg("number"!=typeof r&&r?e||t:r);return a.createElement(Rg,{col:e,row:t,outer:l,...o},n)},$g=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),Dg=_.div(),Lg=_.div((({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}))),pu=({children:e,...t})=>{let[r,n]=h.Children.toArray(e);return a.createElement(Lg,{...t},a.createElement($g,null,r),n&&a.createElement(Dg,null,n))},Mg=_.div((({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`})));function Bg({scale:e,children:t}){let r=h.useRef(null),[n,o]=h.useState(0),l=h.useCallback((({height:t})=>{t&&o(t/e)}),[e]);return h.useEffect((()=>{r.current&&o(r.current.getBoundingClientRect().height)}),[e]),Hc({ref:r,onResize:l}),a.createElement(Mg,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Ig=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},fu={Element:Bg,IFrame:Ig},{document:Pg}=Mm,jg=_.strong((({theme:e})=>({color:e.color.orange}))),Ng=_.strong((({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}))),ki=_.em((({theme:e})=>({color:e.textMutedColor}))),Hg=/(Error): (.*)\n/,Zg=/at (?:(.*) )?\(?(.+)\)?/,Vg=/([^@]+)?(?:\/<)?@(.+)?/,zg=/([^@]+)?@(.+)?/,mu=({error:e})=>{if(!e)return a.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}\n\n${t}`);let r=t.match(Hg);if(!r)return a.createElement(h.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map((e=>{let t=e.match(Zg)||e.match(Vg)||e.match(zg);return t?{name:(t[1]||"").replace("/<",""),location:t[2].replace(Pg.location.origin,"")}:null})).filter(Boolean);return a.createElement(h.Fragment,null,a.createElement("span",null,n),": ",a.createElement(jg,null,o),a.createElement("br",null),i.map(((e,t)=>e.name?a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(Ng,null,e.name)," (",a.createElement(ki,null,e.location),")",a.createElement("br",null)):a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(ki,null,e.location),a.createElement("br",null)))))},gu=_.button((({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}})),(({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}),(({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{}),(({theme:e,primary:t,secondary:r,gray:a})=>{let n;return a?n=e.color.mediumlight:r?n=e.color.secondary:t&&(n=e.color.primary),n?{background:n,color:a?e.color.darkest:e.color.lightest,"&:hover":{background:nr(.05,n)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${bt(n,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${bt(n,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,tertiary:t,inForm:r,small:a})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&a?{padding:"10px 16px"}:{},"&:hover":{background:"light"===e.base?nr(.02,e.button.background):sg(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${bt(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{}),(({theme:e,outline:t})=>t?{boxShadow:`${xe(.8,e.color.defaultText)} 0 0 0 1px inset`,color:xe(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 2px inset`,color:xe(0,e.color.defaultText)}}:{}),(({theme:e,outline:t,primary:r})=>{let a=e.color.primary;return t&&r?{boxShadow:`${a} 0 0 0 1px inset`,color:a,"svg path:not([fill])":{fill:a},"&:hover":{boxShadow:`${a} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:a,boxShadow:`${a} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,outline:t,primary:r,secondary:a})=>{let n;return a?n=e.color.secondary:r&&(n=e.color.primary),t&&n?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.2)} 0 8px 18px 0px`}}:{}})),qg=gu.withComponent("a"),hu=Object.assign(h.forwardRef((function({isLink:e,children:t,...r},n){return e?a.createElement(qg,{...r,ref:n},t):a.createElement(gu,{...r,ref:n},t)})),{defaultProps:{isLink:!1}}),Ug=_.label((({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}))),Wg=_.span((({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}))),bu=({label:e,children:t,...r})=>a.createElement(Ug,{...r},e?a.createElement(Wg,null,a.createElement("span",null,e)):null,t);function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}bu.defaultProps={label:void 0};var _i=function(e,t){"function"!=typeof e?e.current=t:e(t)},Yg=function(e,t){var r=h.useRef();return h.useCallback((function(a){e.current=a,r.current&&_i(r.current,null),r.current=t,t&&_i(t,a)}),[t])},Kg=Yg,Xg=function(){},Jg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Qg=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,a=void 0===r?Xg:r;e.onHeightChange;var n=Gg(e,Jg);n.value;var o=h.useRef(null),l=Kg(o,t);return h.useRef(0),h.useRef(),h.createElement("textarea",uo({},n,{onChange:a,ref:l}))},eh=h.forwardRef(Qg),th={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ll=({theme:e})=>({...th,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),ea=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},yu=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},ta=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}},rh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})})))(ll,ea,yu,ta,{minHeight:32}),{displayName:"Input"}),nh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})})))(ll,ea,ta,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),ah=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(eh,{...n,ref:o})})))(ll,ea,yu,ta,(({height:e=400})=>({overflow:"visible",maxHeight:e}))),{displayName:"Textarea"}),oh=_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(hu,{...n,ref:o})})))(ea,ta,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),lh=Object.assign(h.forwardRef((function(e,t){return a.createElement(oh,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})})),{displayName:"Button"}),ze=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:bu,Input:rh,Select:nh,Textarea:ah,Button:lh}),ih=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DxLX0qq7.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltip}))))),sh=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(ih,{...e})),ch=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DxLX0qq7.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltipPure}))))),vu=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(ch,{...e})),uh=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),dh=_.span(),ph=_.div((({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}))),fh=_.div((({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}))),mh=_.div({padding:15,width:280,boxSizing:"border-box"}),Eu=({title:e,desc:t,links:r})=>a.createElement(mh,null,a.createElement(fh,null,e&&a.createElement(uh,null,e),t&&a.createElement(dh,null,t)),r&&a.createElement(ph,null,r.map((({title:e,...t})=>a.createElement(_t,{...t,key:e},e)))));Eu.defaultProps={title:null,desc:null,links:null};var gh=_.div((({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===e.base?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6}))),hh=({note:e,...t})=>a.createElement(gh,{...t},e),bh=_((({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n})))((({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular})),(({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{}),(({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{}),(({disabled:e,theme:t})=>e?{color:xe(.7,t.color.defaultText)}:{})),yh=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),vh=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},(({isIndented:e})=>e?{marginLeft:24}:{})),Eh=_.span((({theme:e})=>({fontSize:"11px",lineHeight:"14px"})),(({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{})),Oi=_.span((({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{}),(()=>({display:"flex",maxWidth:14}))),xh=_.a((({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}})),(({disabled:e})=>e?{cursor:"not-allowed"}:{})),wh=Yt(100)(((e,t,r)=>{let a={};return e&&Object.assign(a,{onClick:e}),t&&Object.assign(a,{href:t}),r&&t&&Object.assign(a,{to:t,as:r}),a})),xu=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:c,href:u,onClick:d,LinkWrapper:p,...m})=>{let h=wh(d,u,p),f={active:i,disabled:s},g="string"==typeof l&&Gr[l];return a.createElement(xh,{...f,...m,...h},l?a.createElement(Oi,{...f},g?a.createElement(Ee,{icon:l}):l):t&&a.createElement(Oi,{...f},t),r||n?a.createElement(vh,{isIndented:!t&&!l&&c},r&&a.createElement(bh,{...f,loading:e},r),n&&a.createElement(Eh,{...f},n)):null,o&&a.createElement(yh,{...f},o))};xu.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var il=xu,Ah=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:496},(({theme:e})=>({borderRadius:e.appBorderRadius}))),Sh=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:c}=l,u=h.useCallback((e=>{r(e,l)}),[r]),d=!!r;return a.createElement(il,{title:i,active:c,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:u}:{}})},sl=({links:e,LinkWrapper:t})=>{let r=e.some((e=>e.left||e.icon));return a.createElement(Ah,null,e.map((({isGatsby:e,...n})=>a.createElement(Sh,{key:n.id,LinkWrapper:e?t:null,isIndented:r,...n}))))};sl.defaultProps={LinkWrapper:il.defaultProps.LinkWrapper};var cl=a.forwardRef((({children:e,...t},r)=>null!=t.href?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e)));cl.displayName="ButtonOrLink";var nn=_(cl,{shouldForwardProp:Ks})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}})),(({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"}));nn.displayName="TabButton";var Ut=_(cl,{shouldForwardProp:Ks})((()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}})),(({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{}),(({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:xe(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Xn},"&:focus:not(:focus-visible)":{outline:"none"}}));Ut.displayName="IconButton";var Ch=_.div((({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`}))),kh=_.div((()=>({marginTop:6,padding:7,height:28}))),wu=()=>a.createElement(kh,null,a.createElement(Ch,null)),po=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},(({scrollable:e})=>e?{flexShrink:0}:{}),(({left:e})=>e?{"& > *":{marginLeft:4}}:{}),(({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{}));po.displayName="Side";var _h=({children:e,className:t,scrollable:r})=>r?a.createElement(zo,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),ul=_(_h)((({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"})),(({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{}));ul.displayName="Bar";var Oh=_.div((({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""}))),ra=({children:e,backgroundColor:t,...r})=>{let[n,o]=h.Children.toArray(e);return a.createElement(ul,{...r},a.createElement(Oh,{bgColor:t},a.createElement(po,{scrollable:r.scrollable,left:!0},n),o?a.createElement(po,{right:!0},o):null))};ra.displayName="FlexBar";var Au=_.div((({active:e})=>e?{display:"block"}:{display:"none"})),Ti=e=>h.Children.toArray(e).map((({props:{title:e,id:t,color:r,children:n}})=>{let o=Array.isArray(n)?n[0]:n;return{title:e,id:t,...r?{color:r}:{},render:"function"==typeof o?o:({active:e})=>a.createElement(Au,{active:e,role:"tabpanel"},o)}})),Th=_.span((({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"}))),Rh=_(nn)((({active:e,theme:t,preActive:r})=>`\n color: ${r||e?t.color.secondary:t.color.mediumdark};\n &:hover {\n color: ${t.color.secondary};\n .addon-collapsible-icon {\n color: ${t.color.secondary};\n }\n }\n `));function Fh(e){let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=Hc({ref:t}),[l,i]=h.useState(e),[s,c]=h.useState([]),u=h.useRef(e),d=h.useCallback((({menuName:e,actions:t})=>{let o=s.some((({active:e})=>e)),[l,i]=h.useState(!1);return a.createElement(a.Fragment,null,a.createElement(Dm,{interactive:!0,visible:l,onVisibleChange:i,placement:"bottom",delayHide:100,tooltip:a.createElement(sl,{links:s.map((({title:e,id:r,color:a,active:n})=>({id:r,title:e,color:a,active:n,onClick:e=>{e.preventDefault(),t.onSelect(r)}})))})},a.createElement(Rh,{ref:r,active:o,preActive:l,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},e,a.createElement(Th,{className:"addon-collapsible-icon",isActive:o||l}))),s.map((({title:e,id:t,color:r},o)=>{let l=`index-${o}`;return a.createElement(nn,{id:`tabbutton-${bs(t)??l}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:e=>{n.current.set(t,e)},className:"tabbutton",type:"button",key:t,textColor:r,role:"tab"},e)})))}),[s]),p=h.useCallback((()=>{if(!t.current||!r.current)return;let{x:a,width:o}=t.current.getBoundingClientRect(),{width:d}=r.current.getBoundingClientRect(),p=s.length?a+o-d:a+o,m=[],h=0,f=e.filter((e=>{let{id:t}=e,r=n.current.get(t),{width:o=0}=(null==r?void 0:r.getBoundingClientRect())||{},l=a+h+o>p;return(!l||!r)&&m.push(e),h+=o,l}));(m.length!==l.length||u.current!==e)&&(i(m),c(f),u.current=e)}),[s.length,e,l]);return h.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:s,AddonTab:d}}var $h="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Dh=_.div((({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}),(({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"})),dl=_.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});dl.displayName="TabBar";var Lh=_.div({display:"block",position:"relative"},(({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content})),(({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{}),(({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${$h}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{})),Mh=({active:e,render:t,children:r})=>a.createElement(Au,{active:e},t?t():r),na=h.memo((({children:e,selected:t,actions:r,absolute:n,bordered:o,tools:l,backgroundColor:i,id:s,menuName:c})=>{let u=Ti(e).map((e=>e.id)),d=h.useMemo((()=>Ti(e).map(((e,r)=>({...e,active:t?e.id===t:0===r})))),[t,...u]),{visibleList:p,tabBarRef:m,tabRefs:f,AddonTab:g}=Fh(d);return d.length?a.createElement(Dh,{absolute:n,bordered:o,id:s},a.createElement(ra,{scrollable:!1,border:!0,backgroundColor:i},a.createElement(dl,{style:{whiteSpace:"normal"},ref:m,role:"tablist"},p.map((({title:e,id:t,active:n,color:o},l)=>{let i=`index-${l}`;return a.createElement(nn,{id:`tabbutton-${bs(t)??i}`,ref:e=>{f.current.set(t,e)},className:"tabbutton "+(n?"tabbutton-active":""),type:"button",key:t,active:n,textColor:o,onClick:e=>{e.preventDefault(),r.onSelect(t)},role:"tab"},"function"==typeof e?a.createElement("title",null):e)})),a.createElement(g,{menuName:c,actions:r})),l),a.createElement(Lh,{id:"panel-tab-content",bordered:o,absolute:n},d.map((({id:e,active:t,render:r})=>a.createElement(r,{key:e,active:t},null))))):a.createElement(pu,null,a.createElement(h.Fragment,{key:"title"},"Nothing found"))}));na.displayName="Tabs",na.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var Su=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:e=>this.setState({selected:e})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:l}=this.state;return a.createElement(na,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Su.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var pl=_.span((({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginTop:10,marginLeft:6,marginRight:2})),(({force:e})=>e?{}:{"& + &":{display:"none"}}));pl.displayName="Separator";var Bh=e=>e.reduce(((e,t,r)=>t?a.createElement(h.Fragment,{key:t.id||t.key||`f-${r}`},e,r>0?a.createElement(pl,{key:`s-${r}`}):null,t.render()||t):e),null),Ih=e=>{let t=h.useRef();return h.useEffect((()=>{t.current=e}),[e]),t.current},Ph=(e,t)=>{let r=Ih(t);return e?t:r},jh=({active:e,children:t})=>a.createElement("div",{hidden:!e},Ph(e,t)),Nh=({alt:e,...t})=>a.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?a.createElement("title",null,e):null,a.createElement("defs",null,a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),a.createElement("mask",{id:"b",fill:"#fff"},a.createElement("use",{xlinkHref:"#a"})),a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),Hh=({...e})=>a.createElement("svg",{viewBox:"0 0 64 64",...e},a.createElement("title",null,"Storybook icon"),a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Zh=br` +`,Ee=({icon:e,useSymbol:t,...r})=>a.createElement(du,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Gr[e]),Eg=h.memo((function({icons:e=Object.keys(Gr)}){return a.createElement(du,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map((e=>a.createElement("symbol",{id:`icon--${e}`,key:e},Gr[e]))))})),xg=0,wg=e=>!(e.button!==xg||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey),Ag=(e,t)=>{wg(e)&&(e.preventDefault(),t(e))},Sg=_.span((({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}),(({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{})),Cg=_.a((({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:nr(.07,e.color.secondary),"svg path:not([fill])":{fill:nr(.07,e.color.secondary)}},"&:active":{color:nr(.1,e.color.secondary),"svg path:not([fill])":{fill:nr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}})),(({theme:e,secondary:t,tertiary:r})=>{let a;return t&&(a=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(a=[e.color.dark,e.color.darkest,e.textMutedColor]),a?{color:a[0],"svg path:not([fill])":{fill:a[0]},"&:hover":{color:a[1],"svg path:not([fill])":{fill:a[1]}},"&:active":{color:a[2],"svg path:not([fill])":{fill:a[2]}}}:{}}),(({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}),(({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{}),(({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{})),_t=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(Cg,{...i,onClick:r&&e?e=>Ag(e,r):r,className:l},a.createElement(Sg,{withArrow:n,containsIcon:o},t,n&&a.createElement(Ee,{icon:"arrowright"})));_t.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var kg=_.div((({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:"dark"===e.base&&e.color.darkest}}))),qt=[],fr=null,_g=h.lazy((async()=>{let{SyntaxHighlighter:e}=await Wt((async()=>{const{SyntaxHighlighter:e}=await import("./syntaxhighlighter-MJWPISIS-CxDMJmvs.js");return{SyntaxHighlighter:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:t=>a.createElement(e,{...t})}})),Og=h.lazy((async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Wt((()=>import("./syntaxhighlighter-MJWPISIS-CxDMJmvs.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),Wt((()=>import("./formatter-SWP5E3XI-CI3Tyzsb.js")),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:r=>a.createElement(e,{...r,formatter:t})}})),Qn=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},!1!==e.format?a.createElement(Og,{...e}):a.createElement(_g,{...e}));Qn.registerLanguage=(...e)=>{null===fr?qt.push(e):fr.registerLanguage(...e)};var Tg=e=>"number"==typeof e?e:Number(e),Rg=_.div((({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Xa}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Xa}`]:{marginTop:0}}),(({theme:e,outer:t,col:r,row:a})=>{switch(!0){case!(!t||!r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!(!t||!a):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}})),Fg=({col:e,row:t,outer:r,children:n,...o})=>{let l=Tg("number"!=typeof r&&r?e||t:r);return a.createElement(Rg,{col:e,row:t,outer:l,...o},n)},$g=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),Dg=_.div(),Lg=_.div((({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}))),pu=({children:e,...t})=>{let[r,n]=h.Children.toArray(e);return a.createElement(Lg,{...t},a.createElement($g,null,r),n&&a.createElement(Dg,null,n))},Mg=_.div((({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`})));function Bg({scale:e,children:t}){let r=h.useRef(null),[n,o]=h.useState(0),l=h.useCallback((({height:t})=>{t&&o(t/e)}),[e]);return h.useEffect((()=>{r.current&&o(r.current.getBoundingClientRect().height)}),[e]),Hc({ref:r,onResize:l}),a.createElement(Mg,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Ig=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},fu={Element:Bg,IFrame:Ig},{document:Pg}=Mm,jg=_.strong((({theme:e})=>({color:e.color.orange}))),Ng=_.strong((({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}))),ki=_.em((({theme:e})=>({color:e.textMutedColor}))),Hg=/(Error): (.*)\n/,Zg=/at (?:(.*) )?\(?(.+)\)?/,Vg=/([^@]+)?(?:\/<)?@(.+)?/,zg=/([^@]+)?@(.+)?/,mu=({error:e})=>{if(!e)return a.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}\n\n${t}`);let r=t.match(Hg);if(!r)return a.createElement(h.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map((e=>{let t=e.match(Zg)||e.match(Vg)||e.match(zg);return t?{name:(t[1]||"").replace("/<",""),location:t[2].replace(Pg.location.origin,"")}:null})).filter(Boolean);return a.createElement(h.Fragment,null,a.createElement("span",null,n),": ",a.createElement(jg,null,o),a.createElement("br",null),i.map(((e,t)=>e.name?a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(Ng,null,e.name)," (",a.createElement(ki,null,e.location),")",a.createElement("br",null)):a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(ki,null,e.location),a.createElement("br",null)))))},gu=_.button((({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}})),(({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}),(({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{}),(({theme:e,primary:t,secondary:r,gray:a})=>{let n;return a?n=e.color.mediumlight:r?n=e.color.secondary:t&&(n=e.color.primary),n?{background:n,color:a?e.color.darkest:e.color.lightest,"&:hover":{background:nr(.05,n)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${bt(n,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${bt(n,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,tertiary:t,inForm:r,small:a})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&a?{padding:"10px 16px"}:{},"&:hover":{background:"light"===e.base?nr(.02,e.button.background):sg(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${bt(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{}),(({theme:e,outline:t})=>t?{boxShadow:`${xe(.8,e.color.defaultText)} 0 0 0 1px inset`,color:xe(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 2px inset`,color:xe(0,e.color.defaultText)}}:{}),(({theme:e,outline:t,primary:r})=>{let a=e.color.primary;return t&&r?{boxShadow:`${a} 0 0 0 1px inset`,color:a,"svg path:not([fill])":{fill:a},"&:hover":{boxShadow:`${a} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:a,boxShadow:`${a} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,outline:t,primary:r,secondary:a})=>{let n;return a?n=e.color.secondary:r&&(n=e.color.primary),t&&n?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.2)} 0 8px 18px 0px`}}:{}})),qg=gu.withComponent("a"),hu=Object.assign(h.forwardRef((function({isLink:e,children:t,...r},n){return e?a.createElement(qg,{...r,ref:n},t):a.createElement(gu,{...r,ref:n},t)})),{defaultProps:{isLink:!1}}),Ug=_.label((({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}))),Wg=_.span((({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}))),bu=({label:e,children:t,...r})=>a.createElement(Ug,{...r},e?a.createElement(Wg,null,a.createElement("span",null,e)):null,t);function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}bu.defaultProps={label:void 0};var _i=function(e,t){"function"!=typeof e?e.current=t:e(t)},Yg=function(e,t){var r=h.useRef();return h.useCallback((function(a){e.current=a,r.current&&_i(r.current,null),r.current=t,t&&_i(t,a)}),[t])},Kg=Yg,Xg=function(){},Jg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Qg=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,a=void 0===r?Xg:r;e.onHeightChange;var n=Gg(e,Jg);n.value;var o=h.useRef(null),l=Kg(o,t);return h.useRef(0),h.useRef(),h.createElement("textarea",uo({},n,{onChange:a,ref:l}))},eh=h.forwardRef(Qg),th={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ll=({theme:e})=>({...th,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),ea=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},yu=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},ta=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}},rh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})})))(ll,ea,yu,ta,{minHeight:32}),{displayName:"Input"}),nh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})})))(ll,ea,ta,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),ah=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(eh,{...n,ref:o})})))(ll,ea,yu,ta,(({height:e=400})=>({overflow:"visible",maxHeight:e}))),{displayName:"Textarea"}),oh=_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(hu,{...n,ref:o})})))(ea,ta,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),lh=Object.assign(h.forwardRef((function(e,t){return a.createElement(oh,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})})),{displayName:"Button"}),ze=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:bu,Input:rh,Select:nh,Textarea:ah,Button:lh}),ih=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-Bzm03E-l.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltip}))))),sh=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(ih,{...e})),ch=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-Bzm03E-l.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltipPure}))))),vu=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(ch,{...e})),uh=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),dh=_.span(),ph=_.div((({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}))),fh=_.div((({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}))),mh=_.div({padding:15,width:280,boxSizing:"border-box"}),Eu=({title:e,desc:t,links:r})=>a.createElement(mh,null,a.createElement(fh,null,e&&a.createElement(uh,null,e),t&&a.createElement(dh,null,t)),r&&a.createElement(ph,null,r.map((({title:e,...t})=>a.createElement(_t,{...t,key:e},e)))));Eu.defaultProps={title:null,desc:null,links:null};var gh=_.div((({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===e.base?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6}))),hh=({note:e,...t})=>a.createElement(gh,{...t},e),bh=_((({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n})))((({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular})),(({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{}),(({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{}),(({disabled:e,theme:t})=>e?{color:xe(.7,t.color.defaultText)}:{})),yh=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),vh=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},(({isIndented:e})=>e?{marginLeft:24}:{})),Eh=_.span((({theme:e})=>({fontSize:"11px",lineHeight:"14px"})),(({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{})),Oi=_.span((({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{}),(()=>({display:"flex",maxWidth:14}))),xh=_.a((({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}})),(({disabled:e})=>e?{cursor:"not-allowed"}:{})),wh=Yt(100)(((e,t,r)=>{let a={};return e&&Object.assign(a,{onClick:e}),t&&Object.assign(a,{href:t}),r&&t&&Object.assign(a,{to:t,as:r}),a})),xu=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:c,href:u,onClick:d,LinkWrapper:p,...m})=>{let h=wh(d,u,p),f={active:i,disabled:s},g="string"==typeof l&&Gr[l];return a.createElement(xh,{...f,...m,...h},l?a.createElement(Oi,{...f},g?a.createElement(Ee,{icon:l}):l):t&&a.createElement(Oi,{...f},t),r||n?a.createElement(vh,{isIndented:!t&&!l&&c},r&&a.createElement(bh,{...f,loading:e},r),n&&a.createElement(Eh,{...f},n)):null,o&&a.createElement(yh,{...f},o))};xu.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var il=xu,Ah=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:496},(({theme:e})=>({borderRadius:e.appBorderRadius}))),Sh=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:c}=l,u=h.useCallback((e=>{r(e,l)}),[r]),d=!!r;return a.createElement(il,{title:i,active:c,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:u}:{}})},sl=({links:e,LinkWrapper:t})=>{let r=e.some((e=>e.left||e.icon));return a.createElement(Ah,null,e.map((({isGatsby:e,...n})=>a.createElement(Sh,{key:n.id,LinkWrapper:e?t:null,isIndented:r,...n}))))};sl.defaultProps={LinkWrapper:il.defaultProps.LinkWrapper};var cl=a.forwardRef((({children:e,...t},r)=>null!=t.href?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e)));cl.displayName="ButtonOrLink";var nn=_(cl,{shouldForwardProp:Ks})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}})),(({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"}));nn.displayName="TabButton";var Ut=_(cl,{shouldForwardProp:Ks})((()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}})),(({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{}),(({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:xe(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Xn},"&:focus:not(:focus-visible)":{outline:"none"}}));Ut.displayName="IconButton";var Ch=_.div((({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`}))),kh=_.div((()=>({marginTop:6,padding:7,height:28}))),wu=()=>a.createElement(kh,null,a.createElement(Ch,null)),po=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},(({scrollable:e})=>e?{flexShrink:0}:{}),(({left:e})=>e?{"& > *":{marginLeft:4}}:{}),(({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{}));po.displayName="Side";var _h=({children:e,className:t,scrollable:r})=>r?a.createElement(zo,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),ul=_(_h)((({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"})),(({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{}));ul.displayName="Bar";var Oh=_.div((({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""}))),ra=({children:e,backgroundColor:t,...r})=>{let[n,o]=h.Children.toArray(e);return a.createElement(ul,{...r},a.createElement(Oh,{bgColor:t},a.createElement(po,{scrollable:r.scrollable,left:!0},n),o?a.createElement(po,{right:!0},o):null))};ra.displayName="FlexBar";var Au=_.div((({active:e})=>e?{display:"block"}:{display:"none"})),Ti=e=>h.Children.toArray(e).map((({props:{title:e,id:t,color:r,children:n}})=>{let o=Array.isArray(n)?n[0]:n;return{title:e,id:t,...r?{color:r}:{},render:"function"==typeof o?o:({active:e})=>a.createElement(Au,{active:e,role:"tabpanel"},o)}})),Th=_.span((({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"}))),Rh=_(nn)((({active:e,theme:t,preActive:r})=>`\n color: ${r||e?t.color.secondary:t.color.mediumdark};\n &:hover {\n color: ${t.color.secondary};\n .addon-collapsible-icon {\n color: ${t.color.secondary};\n }\n }\n `));function Fh(e){let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=Hc({ref:t}),[l,i]=h.useState(e),[s,c]=h.useState([]),u=h.useRef(e),d=h.useCallback((({menuName:e,actions:t})=>{let o=s.some((({active:e})=>e)),[l,i]=h.useState(!1);return a.createElement(a.Fragment,null,a.createElement(Dm,{interactive:!0,visible:l,onVisibleChange:i,placement:"bottom",delayHide:100,tooltip:a.createElement(sl,{links:s.map((({title:e,id:r,color:a,active:n})=>({id:r,title:e,color:a,active:n,onClick:e=>{e.preventDefault(),t.onSelect(r)}})))})},a.createElement(Rh,{ref:r,active:o,preActive:l,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},e,a.createElement(Th,{className:"addon-collapsible-icon",isActive:o||l}))),s.map((({title:e,id:t,color:r},o)=>{let l=`index-${o}`;return a.createElement(nn,{id:`tabbutton-${bs(t)??l}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:e=>{n.current.set(t,e)},className:"tabbutton",type:"button",key:t,textColor:r,role:"tab"},e)})))}),[s]),p=h.useCallback((()=>{if(!t.current||!r.current)return;let{x:a,width:o}=t.current.getBoundingClientRect(),{width:d}=r.current.getBoundingClientRect(),p=s.length?a+o-d:a+o,m=[],h=0,f=e.filter((e=>{let{id:t}=e,r=n.current.get(t),{width:o=0}=(null==r?void 0:r.getBoundingClientRect())||{},l=a+h+o>p;return(!l||!r)&&m.push(e),h+=o,l}));(m.length!==l.length||u.current!==e)&&(i(m),c(f),u.current=e)}),[s.length,e,l]);return h.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:s,AddonTab:d}}var $h="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Dh=_.div((({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}),(({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"})),dl=_.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});dl.displayName="TabBar";var Lh=_.div({display:"block",position:"relative"},(({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content})),(({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{}),(({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${$h}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{})),Mh=({active:e,render:t,children:r})=>a.createElement(Au,{active:e},t?t():r),na=h.memo((({children:e,selected:t,actions:r,absolute:n,bordered:o,tools:l,backgroundColor:i,id:s,menuName:c})=>{let u=Ti(e).map((e=>e.id)),d=h.useMemo((()=>Ti(e).map(((e,r)=>({...e,active:t?e.id===t:0===r})))),[t,...u]),{visibleList:p,tabBarRef:m,tabRefs:f,AddonTab:g}=Fh(d);return d.length?a.createElement(Dh,{absolute:n,bordered:o,id:s},a.createElement(ra,{scrollable:!1,border:!0,backgroundColor:i},a.createElement(dl,{style:{whiteSpace:"normal"},ref:m,role:"tablist"},p.map((({title:e,id:t,active:n,color:o},l)=>{let i=`index-${l}`;return a.createElement(nn,{id:`tabbutton-${bs(t)??i}`,ref:e=>{f.current.set(t,e)},className:"tabbutton "+(n?"tabbutton-active":""),type:"button",key:t,active:n,textColor:o,onClick:e=>{e.preventDefault(),r.onSelect(t)},role:"tab"},"function"==typeof e?a.createElement("title",null):e)})),a.createElement(g,{menuName:c,actions:r})),l),a.createElement(Lh,{id:"panel-tab-content",bordered:o,absolute:n},d.map((({id:e,active:t,render:r})=>a.createElement(r,{key:e,active:t},null))))):a.createElement(pu,null,a.createElement(h.Fragment,{key:"title"},"Nothing found"))}));na.displayName="Tabs",na.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var Su=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:e=>this.setState({selected:e})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:l}=this.state;return a.createElement(na,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Su.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var pl=_.span((({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginTop:10,marginLeft:6,marginRight:2})),(({force:e})=>e?{}:{"& + &":{display:"none"}}));pl.displayName="Separator";var Bh=e=>e.reduce(((e,t,r)=>t?a.createElement(h.Fragment,{key:t.id||t.key||`f-${r}`},e,r>0?a.createElement(pl,{key:`s-${r}`}):null,t.render()||t):e),null),Ih=e=>{let t=h.useRef();return h.useEffect((()=>{t.current=e}),[e]),t.current},Ph=(e,t)=>{let r=Ih(t);return e?t:r},jh=({active:e,children:t})=>a.createElement("div",{hidden:!e},Ph(e,t)),Nh=({alt:e,...t})=>a.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?a.createElement("title",null,e):null,a.createElement("defs",null,a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),a.createElement("mask",{id:"b",fill:"#fff"},a.createElement("use",{xlinkHref:"#a"})),a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),Hh=({...e})=>a.createElement("svg",{viewBox:"0 0 64 64",...e},a.createElement("title",null,"Storybook icon"),a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Zh=br` from { transform: rotate(0deg); } @@ -76,7 +76,7 @@ const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJW overflow: hidden; font-family: ${it.fonts.mono}; font-size: ${it.size.s2-1}px; -`,Xh=({code:e,...t})=>a.createElement(Kh,{id:"clipboard-code",...t},e),_u=uu,Ou={};Object.keys(uu).forEach((e=>{Ou[e]=h.forwardRef(((t,r)=>h.createElement(e,{...t,ref:r})))}));const Jh=Object.freeze(Object.defineProperty({__proto__:null,A:Uc,ActionBar:Zo,AddonPanel:jh,Badge:vg,Bar:ul,Blockquote:Wc,Button:hu,ClipboardCode:Xh,Code:rl,DL:Yc,Div:Gc,DocumentWrapper:kg,ErrorFormatter:mu,FlexBar:ra,Form:ze,H1:Kc,H2:nl,H3:al,H4:Xc,H5:Jc,H6:Qc,HR:eu,IconButton:Ut,IconButtonSkeleton:wu,Icons:Ee,Img:tu,LI:ru,Link:_t,ListItem:il,Loader:Cu,OL:nu,P:au,Placeholder:pu,Pre:ou,ResetWrapper:ol,ScrollArea:zo,Separator:pl,Spaced:Fg,Span:lu,StorybookIcon:Hh,StorybookLogo:Nh,Symbols:Eg,SyntaxHighlighter:Qn,TT:su,TabBar:dl,TabButton:nn,TabWrapper:Mh,Table:iu,Tabs:na,TabsState:Su,TooltipLinkList:sl,TooltipMessage:Eu,TooltipNote:hh,UL:cu,WithTooltip:sh,WithTooltipPure:vu,Zoom:fu,codeCommon:Et,components:_u,createCopyToClipboardFunction:_c,getStoryHref:ku,icons:Gr,interleaveSeparators:Bh,nameSpaceClassNames:ee,resetComponents:Ou,withReset:re},Symbol.toStringTag,{value:"Module"}));function Qh(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function eb(e,t,r){if(V0())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var n=new(e.bind.apply(e,a));return r&&ys(n,r.prototype),n}function fo(e){var t="function"==typeof Map?new Map:void 0;return fo=function(e){if(null===e||!Qh(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return eb(e,arguments,z0(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ys(r,e)},fo(e)}var ct=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,H0(r)}return Z0(t,e),t}(fo(Error));function _a(e){return Math.round(255*e)}function tb(e,t,r){return _a(e)+","+_a(t)+","+_a(r)}function Yr(e,t,r,a){if(void 0===a&&(a=tb),0===t)return a(r,r,r);var n=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,l=o*(1-Math.abs(n%2-1)),i=0,s=0,c=0;n>=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var $i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function rb(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return $i[t]?"#"+$i[t]:e}var nb=/^#[a-fA-F0-9]{6}$/,ab=/^#[a-fA-F0-9]{8}$/,ob=/^#[a-fA-F0-9]{3}$/,lb=/^#[a-fA-F0-9]{4}$/,Oa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ib=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,sb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,cb=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function mr(e){if("string"!=typeof e)throw new ct(3);var t=rb(e);if(t.match(nb))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ab)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ob))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(lb)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=Oa.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=ib.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=sb.exec(t);if(l){var i="rgb("+Yr(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=Oa.exec(i);if(!s)throw new ct(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=cb.exec(t.substring(0,50));if(c){var u="rgb("+Yr(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Oa.exec(u);if(!d)throw new ct(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ct(5)}function ub(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?Mn(e,t,r):"rgba("+Yr(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?Mn(e.hue,e.saturation,e.lightness):"rgba("+Yr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ct(2)}function go(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return mo("#"+jt(e)+jt(t)+jt(r));if("object"==typeof e&&void 0===t&&void 0===r)return mo("#"+jt(e.red)+jt(e.green)+jt(e.blue));throw new ct(6)}function at(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=mr(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?go(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?go(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ct(7)}var gb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},hb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},bb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},yb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ft(e){if("object"!=typeof e)throw new ct(8);if(hb(e))return at(e);if(gb(e))return go(e);if(yb(e))return mb(e);if(bb(e))return fb(e);throw new ct(8)}function Tu(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Tu(e,t,a)}}function Fe(e){return Tu(e,e.length,[])}function vb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{hue:r.hue+parseFloat(e)}))}function vr(e,t,r){return Math.max(e,Math.min(t,r))}function Eb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness-parseFloat(e))}))}Fe(vb);var xb=Fe(Eb),et=xb;function wb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation-parseFloat(e))}))}function Ab(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness+parseFloat(e))}))}Fe(wb);var Sb=Fe(Ab),Nt=Sb;function Cb(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var a=mr(t),n=Be({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),o=mr(r),l=Be({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=n.alpha-l.alpha,s=2*parseFloat(e)-1,c=((s*i==-1?s:s+i)/(1+s*i)+1)/2,u=1-c;return at({red:Math.floor(n.red*c+l.red*u),green:Math.floor(n.green*c+l.green*u),blue:Math.floor(n.blue*c+l.blue*u),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var kb=Fe(Cb),Ru=kb;function _b(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,(100*a+100*parseFloat(e))/100)}))}var Ob=Fe(_b),mn=Ob;function Tb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation+parseFloat(e))}))}function Rb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{hue:parseFloat(e)}))}function Fb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{lightness:parseFloat(e)}))}function $b(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{saturation:parseFloat(e)}))}function Db(e,t){return"transparent"===t?t:Ru(parseFloat(e),"rgb(0, 0, 0)",t)}function Lb(e,t){return"transparent"===t?t:Ru(parseFloat(e),"rgb(255, 255, 255)",t)}function Mb(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,+(100*a-100*parseFloat(e)).toFixed(2)/100)}))}Fe(Tb),Fe(Rb),Fe(Fb),Fe($b),Fe(Db),Fe(Lb);var Bb=Fe(Mb),te=Bb,Ib=vs,Pb=q0,jb=Object.prototype,Nb=jb.hasOwnProperty;function Hb(e,t,r){var a=e[t];(!Nb.call(e,t)||!Pb(a,r)||void 0===r&&!(t in e))&&Ib(e,t,r)}var fl=Hb,Zb=fl,Vb=Es,zb=U0,Di=Pn,qb=W0;function Ub(e,t,r,a){if(!Di(e))return e;for(var n=-1,o=(t=Vb(t,e)).length,l=o-1,i=e;null!=i&&++n(e[t.toLowerCase()]=t,e)),{class:"className",for:"htmlFor"}),Bi={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Ry=["style","script"],Fy=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,$y=/mailto:/i,Dy=/\n{2,}$/,Du=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ly=/^ *> ?/gm,My=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,By=/^ {2,}\n/,Iy=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Lu=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Mu=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Py=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jy=/^(?:\n *)*\n/,Ny=/\r\n?/g,Hy=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Zy=/^\[\^([^\]]+)]/,Vy=/\f/g,zy=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,qy=/^\s*?\[(x|\s)\]/,Bu=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Iu=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Pu=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ho=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Uy=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ju=/^)/,Wy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Gy=/^\{.*\}$/,Yy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ky=/^<([^ >]+@[^ >]+)>/,Xy=/^<([^ >]+:\/[^ >]+)>/,Jy=/-([a-z])?/gi,Nu=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Qy=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,e3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,t3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,r3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,n3=/\t/g,a3=/(^ *\||\| *$)/g,o3=/^ *:-+: *$/,l3=/^ *:-+ *$/,i3=/^ *-+: *$/,aa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",s3=new RegExp(`^([*_])\\1${aa}\\1\\1(?!\\1)`),c3=new RegExp(`^([*_])${aa}\\1(?!\\1|\\w)`),u3=new RegExp(`^==${aa}==`),d3=new RegExp(`^~~${aa}~~`),p3=/^\\([^0-9A-Za-z\s])/,f3=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,m3=/^\n+/,g3=/^([ \t]*)/,h3=/\\([^\\])/g,Ii=/ *\n+$/,b3=/(?:^|\n)( *)$/,gl="(?:\\d+\\.)",hl="(?:[*+-])";function Hu(e){return"( *)("+(1===e?gl:hl)+") +"}const Zu=Hu(1),Vu=Hu(2);function zu(e){return new RegExp("^"+(1===e?Zu:Vu))}const y3=zu(1),v3=zu(2);function qu(e){return new RegExp("^"+(1===e?Zu:Vu)+"[^\\n]*(?:\\n(?!\\1"+(1===e?gl:hl)+" )[^\\n]*)*(\\n|$)","gm")}const Uu=qu(1),Wu=qu(2);function Gu(e){const t=1===e?gl:hl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Yu=Gu(1),Ku=Gu(2);function Pi(e,t){const r=1===t,a=r?Yu:Ku,n=r?Uu:Wu,o=r?y3:v3;return{match(e,t){const r=b3.exec(t.prevCapture);return r&&(t.list||!t.inline&&!t.simple)?a.exec(e=r[1]+e):null},order:1,parse(e,t,a){const l=r?+e[2]:void 0,i=e[0].replace(Dy,"\n").match(n);let s=!1;return{items:i.map((function(e,r){const n=o.exec(e)[0].length,l=new RegExp("^ {1,"+n+"}","gm"),c=e.replace(l,"").replace(o,""),u=r===i.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const p=a.inline,m=a.list;let h;a.list=!0,d?(a.inline=!1,h=c.replace(Ii,"\n\n")):(a.inline=!0,h=c.replace(Ii,""));const f=t(h,a);return a.inline=p,a.list=m,f})),ordered:r,start:l}},render:(t,r,a)=>e(t.ordered?"ol":"ul",{key:a.key,start:t.type===j.orderedList?t.start:void 0},t.items.map((function(t,n){return e("li",{key:n},r(t,a))})))}}const E3=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),x3=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Xu=[Du,Lu,Mu,Bu,Pu,Iu,ju,Nu,Uu,Yu,Wu,Ku],w3=[...Xu,/^[^\n]+(?: \n|\n{2,})/,ho,bo];function Tr(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function A3(e){return i3.test(e)?"right":o3.test(e)?"center":l3.test(e)?"left":null}function ji(e,t,r,a){const n=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(((e,n)=>("|"===n.trim()?e.push(a?{type:j.tableSeparator}:{type:j.text,text:n}):""!==n&&e.push.apply(e,t(n,r)),e)),[]);r.inTable=n;let l=[[]];return o.forEach((function(e,t){e.type===j.tableSeparator?0!==t&&t!==o.length-1&&l.push([]):(e.type!==j.text||null!=o[t+1]&&o[t+1].type!==j.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))})),l}function S3(e,t,r){r.inline=!0;const a=e[2]?e[2].replace(a3,"").split("|").map(A3):[],n=e[3]?(l=e[3],i=t,s=r,l.trim().split("\n").map((function(e){return ji(e,i,s,!0)}))):[],o=ji(e[1],t,r,!!n.length);var l,i,s;return r.inline=!1,n.length?{align:a,cells:n,header:o,type:j.table}:{children:o,type:j.paragraph}}function Ni(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function wt(e){return function(t,r){return r.inline?e.exec(t):null}}function At(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Rr(e){return function(t){return e.exec(t)}}function C3(e,t){if(t.inline||t.simple)return null;let r="";e.split("\n").every((e=>!Xu.some((t=>t.test(e)))&&(r+=e+"\n",e.trim())));const a=r.trimEnd();return""==a?null:[r,a]}function k3(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Hi(e){return e.replace(h3,"$1")}function Sn(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!0,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function _3(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!1,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function O3(e,t,r){const a=r.inline||!1;r.inline=!1;const n=e(t,r);return r.inline=a,n}const Ra=(e,t,r)=>({children:Sn(t,e[1],r)});function Fa(){return{}}function $a(){return null}function T3(...e){return e.filter(Boolean).join(" ")}function Da(e,t,r){let a=e;const n=t.split(".");for(;n.length&&(a=a[n[0]],void 0!==a);)n.shift();return a||r}function R3(e="",t={}){function r(e,r,...a){const n=Da(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const r=Da(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Da(t,`${e}.component`,e):e}(e,t.overrides),Zt({},r,n,{className:T3(null==r?void 0:r.className,n.className)||void 0}),...a)}function a(e){e=e.replace(zy,"");let a=!1;t.forceInline?a=!0:t.forceBlock||(a=!1===r3.test(e));const n=c(s(a?e:`${e.trimEnd().replace(m3,"")}\n\n`,{inline:a}));for(;"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;const o=t.wrapper||(a?"span":"div");let l;if(n.length>1||t.forceWrapper)l=n;else{if(1===n.length)return l=n[0],"string"==typeof l?r("span",{key:"outer"},l):l;l=null}return h.createElement(o,{key:"outer"},l)}function n(e,r){const n=r.match(Fy);return n?n.reduce((function(r,n,o){const l=n.indexOf("=");if(-1!==l){const s=(i=n.slice(0,l),-1!==i.indexOf("-")&&null===i.match(Wy)&&(i=i.replace(Jy,(function(e,t){return t.toUpperCase()}))),i).trim(),c=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(n.slice(l+1).trim()),u=Mi[s]||s;if("ref"===u)return r;const d=r[u]=function(e,t,r,a){return"style"===t?r.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===t||"src"===t?a(r,e,t):(r.match(Gy)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(e,s,c,t.sanitizer);"string"==typeof d&&(ho.test(d)||bo.test(d))&&(r[u]=h.cloneElement(a(d.trim()),{key:o}))}else"style"!==n&&(r[Mi[n]||n]=!0);var i;return r}),{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||k3,t.slugify=t.slugify||Tr,t.namedCodesToUnicode=t.namedCodesToUnicode?Zt({},Bi,t.namedCodesToUnicode):Bi,t.createElement=t.createElement||h.createElement;const o=[],l={},i={[j.blockQuote]:{match:gt(Du),order:1,parse(e,t,r){const[,a,n]=e[0].replace(Ly,"").match(My);return{alert:a,children:t(n,r)}},render(e,a,n){const o={key:n.key};return e.alert&&(o.className="markdown-alert-"+t.slugify(e.alert.toLowerCase(),Tr),e.children.unshift({attrs:{},children:[{type:j.text,text:e.alert}],noInnerParse:!0,type:j.htmlBlock,tag:"header"})),r("blockquote",o,a(e.children,n))}},[j.breakLine]:{match:Rr(By),order:1,parse:Fa,render:(e,t,a)=>r("br",{key:a.key})},[j.breakThematic]:{match:gt(Iy),order:1,parse:Fa,render:(e,t,a)=>r("hr",{key:a.key})},[j.codeBlock]:{match:gt(Mu),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,a)=>r("pre",{key:a.key},r("code",Zt({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[j.codeFenced]:{match:gt(Lu),order:0,parse:e=>({attrs:n("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:j.codeBlock})},[j.codeInline]:{match:At(Py),order:3,parse:e=>({text:e[2]}),render:(e,t,a)=>r("code",{key:a.key},e.text)},[j.footnote]:{match:gt(Hy),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:$a},[j.footnoteReference]:{match:wt(Zy),order:1,parse:e=>({target:`#${t.slugify(e[1],Tr)}`,text:e[1]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},r("sup",{key:n.key},e.text))},[j.gfmTask]:{match:wt(qy),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,a)=>r("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"})},[j.heading]:{match:gt(t.enforceAtxHeadings?Iu:Bu),order:1,parse:(e,r,a)=>({children:Sn(r,e[2],a),id:t.slugify(e[2],Tr),level:e[1].length}),render:(e,t,a)=>r(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a))},[j.headingSetext]:{match:gt(Pu),order:0,parse:(e,t,r)=>({children:Sn(t,e[1],r),level:"="===e[2]?1:2,type:j.heading})},[j.htmlBlock]:{match:Rr(ho),order:1,parse(e,t,r){const[,a]=e[3].match(g3),o=new RegExp(`^${a}`,"gm"),l=e[3].replace(o,""),i=(s=l,w3.some((e=>e.test(s)))?O3:Sn);var s;const c=e[1].toLowerCase(),u=-1!==Ry.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:n(d,e[2]),noInnerParse:u,tag:d};return r.inAnchor=r.inAnchor||"a"===c,u?p.text=e[3]:p.children=i(t,l,r),r.inAnchor=!1,p},render:(e,t,a)=>r(e.tag,Zt({key:a.key},e.attrs),e.text||(e.children?t(e.children,a):""))},[j.htmlSelfClosing]:{match:Rr(bo),order:1,parse(e){const t=e[1].trim();return{attrs:n(t,e[2]||""),tag:t}},render:(e,t,a)=>r(e.tag,Zt({},e.attrs,{key:a.key}))},[j.htmlComment]:{match:Rr(ju),order:1,parse:()=>({}),render:$a},[j.image]:{match:At(x3),order:1,parse:e=>({alt:e[1],target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[j.link]:{match:wt(E3),order:3,parse:(e,t,r)=>({children:_3(t,e[1],r),target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},a(e.children,n))},[j.linkAngleBraceStyleDetector]:{match:wt(Xy),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],type:j.link})},[j.linkBareUrlDetector]:{match:(e,r)=>r.inAnchor||t.disableAutoLink?null:wt(Yy)(e,r),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],title:void 0,type:j.link})},[j.linkMailtoDetector]:{match:wt(Ky),order:0,parse(e){let t=e[1],r=e[1];return $y.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:j.text}],target:r,type:j.link}}},[j.orderedList]:Pi(r,1),[j.unorderedList]:Pi(r,2),[j.newlineCoalescer]:{match:gt(jy),order:3,parse:Fa,render:()=>"\n"},[j.paragraph]:{match:C3,order:3,parse:Ra,render:(e,t,a)=>r("p",{key:a.key},t(e.children,a))},[j.ref]:{match:wt(Qy),order:0,parse:e=>(l[e[1]]={target:e[2],title:e[4]},{}),render:$a},[j.refImage]:{match:At(e3),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("img",{key:n.key,alt:e.alt,src:t.sanitizer(l[e.ref].target,"img","src"),title:l[e.ref].title}):null},[j.refLink]:{match:wt(t3),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:e[0],ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("a",{key:n.key,href:t.sanitizer(l[e.ref].target,"a","href"),title:l[e.ref].title},a(e.children,n)):r("span",{key:n.key},e.fallbackChildren)},[j.table]:{match:gt(Nu),order:1,parse:S3,render(e,t,a){const n=e;return r("table",{key:a.key},r("thead",null,r("tr",null,n.header.map((function(e,o){return r("th",{key:o,style:Ni(n,o)},t(e,a))})))),r("tbody",null,n.cells.map((function(e,o){return r("tr",{key:o},e.map((function(e,o){return r("td",{key:o,style:Ni(n,o)},t(e,a))})))}))))}},[j.text]:{match:Rr(f3),order:4,parse:e=>({text:e[0].replace(Uy,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},[j.textBolded]:{match:At(s3),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("strong",{key:a.key},t(e.children,a))},[j.textEmphasized]:{match:At(c3),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("em",{key:a.key},t(e.children,a))},[j.textEscaped]:{match:At(p3),order:1,parse:e=>({text:e[1],type:j.text})},[j.textMarked]:{match:At(u3),order:3,parse:Ra,render:(e,t,a)=>r("mark",{key:a.key},t(e.children,a))},[j.textStrikethroughed]:{match:At(d3),order:3,parse:Ra,render:(e,t,a)=>r("del",{key:a.key},t(e.children,a))}};!0===t.disableParsingRawHTML&&(delete i[j.htmlBlock],delete i[j.htmlSelfClosing]);const s=function(e){let t=Object.keys(e);function r(a,n){let o=[];for(n.prevCapture=n.prevCapture||"";a;){let l=0;for(;la(e,t,r)),e,t,r):a(e,t,r)},function e(t,r={}){if(Array.isArray(t)){const a=r.key,n=[];let o=!1;for(let l=0;l{let{children:t="",options:r}=e,a=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,Ty);return h.cloneElement(R3(t,r),a)};function F3(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o-1}var z3=V3;function q3(e,t,r){for(var a=-1,n=null==e?0:e.length;++a=lv){var c=t?null:av(e);if(c)return ov(c);l=!1,n=nv,s=new ev}else s=t?[]:i;e:for(;++afunction(){return t||(0,e[n0(e)[0]])((t={exports:{}}).exports,t),t.exports},r6=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of n0(t))!t6.call(e,n)&&n!==r&&r0(e,n,{get:()=>t[n],enumerable:!(a=Q7(t,n))||a.enumerable});return e},yl=(e,t,r)=>(r=null!=e?J7(e6(e)):{},r6(e&&e.__esModule?r:r0(r,"default",{value:e,enumerable:!0}),e)),n6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],a6=["detail"];function o6(e){const t=n6.filter((t=>void 0!==e[t])).reduce(((t,r)=>({...t,[r]:e[r]})),{});return e instanceof CustomEvent&&a6.filter((t=>void 0!==e[t])).forEach((r=>{t[r]=e[r]})),t}var a0=Ne({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}}),o0=Ne({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=a0();t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}}}),l6=Ne({"node_modules/function-bind/implementation.js"(e,t){var r=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),l=Math.max(0,t.length-o.length),i=[],s=0;s"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},f=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=d(n.prototype))}return h[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=vl(),y=i6(),v=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(e,t){var r,n=e;if(y(g,n)&&(n="%"+(r=g[n])[0]+"%"),y(h,n)){var l=h[n];if(l===p&&(l=f(n)),typeof l>"u"&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:l}}throw new a("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,S,(function(e,t,r,a){n[n.length]=r?x(a,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",l=A("%"+n+"%",t),s=l.name,c=l.value,u=!1,d=l.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var p=1,m=!0;p=r.length){var _=i(c,f);c=(m=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[f]}else m=y(c,f),c=c[f];m&&!u&&(h[s]=c)}}return c}}}),s6=Ne({"node_modules/call-bind/index.js"(e,t){var r=vl(),a=l0(),n=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||r.call(o,n),i=a("%Object.getOwnPropertyDescriptor%",!0),s=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(e){var t=l(r,o,arguments);i&&s&&(i(t,"length").configurable&&s(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var u=function(){return l(r,n,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),c6=Ne({"node_modules/call-bind/callBound.js"(e,t){var r=l0(),a=s6(),n=a(r("String.prototype.indexOf"));t.exports=function(e,t){var o=r(e,!!t);return"function"==typeof o&&n(e,".prototype.")>-1?a(o):o}}}),u6=Ne({"node_modules/has-tostringtag/shams.js"(e,t){var r=a0();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),d6=Ne({"node_modules/is-regex/index.js"(e,t){var r,a,n,o,l=c6(),i=u6()();i&&(r=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),n={},o={toString:s=function(){throw n},valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=s));var s,c=l("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;t.exports=i?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,o)}catch(l){return l===n}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}}}),p6=Ne({"node_modules/is-function/index.js"(e,t){t.exports=function(e){if(!e)return!1;var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString}}),f6=Ne({"node_modules/is-symbol/index.js"(e,t){var r,a,n,o=Object.prototype.toString;o0()()?(r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,n=function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))},t.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return n(e)}catch{return!1}}):t.exports=function(e){return!1}}}),m6=yl(d6()),g6=yl(p6()),h6=yl(f6());function b6(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}var y6="object"==typeof global&&global&&global.Object===Object&&global,v6=y6,E6="object"==typeof self&&self&&self.Object===Object&&self,x6=v6||E6||Function("return this")(),El=x6,w6=El.Symbol,gr=w6,i0=Object.prototype,A6=i0.hasOwnProperty,S6=i0.toString,Fr=gr?gr.toStringTag:void 0;function C6(e){var t=A6.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var a=!0}catch{}var n=S6.call(e);return a&&(t?e[Fr]=r:delete e[Fr]),n}var k6=C6,_6=Object.prototype,O6=_6.toString;function T6(e){return O6.call(e)}var R6=T6,F6="[object Null]",$6="[object Undefined]",Xi=gr?gr.toStringTag:void 0;function D6(e){return null==e?void 0===e?$6:F6:Xi&&Xi in Object(e)?k6(e):R6(e)}var L6=D6,Ji=gr?gr.prototype:void 0;function M6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ji&&Ji.toString;var s0=M6,B6="[object AsyncFunction]",I6="[object Function]",P6="[object GeneratorFunction]",j6="[object Proxy]";function N6(e){if(!s0(e))return!1;var t=L6(e);return t==I6||t==P6||t==B6||t==j6}var H6=N6,Z6=El["__core-js_shared__"],Ma=Z6,Qi=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function V6(e){return!!Qi&&Qi in e}var z6=V6,q6=Function.prototype,U6=q6.toString;function W6(e){if(null!=e){try{return U6.call(e)}catch{}try{return e+""}catch{}}return""}var G6=W6,Y6=/[\\^$.*+?()[\]{}|]/g,K6=/^\[object .+?Constructor\]$/,X6=Function.prototype,J6=Object.prototype,Q6=X6.toString,eE=J6.hasOwnProperty,tE=RegExp("^"+Q6.call(eE).replace(Y6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rE(e){return!(!s0(e)||z6(e))&&(H6(e)?tE:K6).test(G6(e))}var nE=rE;function aE(e,t){return null==e?void 0:e[t]}var oE=aE;function lE(e,t){var r=oE(e,t);return nE(r)?r:void 0}var c0=lE;function iE(e,t){return e===t||e!=e&&t!=t}var sE=iE,cE=c0(Object,"create"),Kr=cE;function uE(){this.__data__=Kr?Kr(null):{},this.size=0}var dE=uE;function pE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fE=pE,mE="__lodash_hash_undefined__",gE=Object.prototype,hE=gE.hasOwnProperty;function bE(e){var t=this.__data__;if(Kr){var r=t[e];return r===mE?void 0:r}return hE.call(t,e)?t[e]:void 0}var yE=bE,vE=Object.prototype,EE=vE.hasOwnProperty;function xE(e){var t=this.__data__;return Kr?void 0!==t[e]:EE.call(t,e)}var wE=xE,AE="__lodash_hash_undefined__";function SE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Kr&&void 0===t?AE:t,this}var CE=SE;function Er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}var BE=ME;function IE(e,t){var r=this.__data__,a=la(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var PE=IE;function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,n=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;lc8(e).replace(/\n\s*/g,"").trim())),d8=function(e,t){const r=t.slice(0,t.indexOf("{")),a=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let n=r;return n=n.replace(e,"function"),n+a},p8=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function d0(e){if(!s8(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=o6(t),r=!0),t=Object.keys(t).reduce(((e,a)=>{try{t[a]&&t[a].toJSON,e[a]=t[a]}catch{r=!0}return e}),{}),r?t:e}var f8=function(e){let t,r,a,n;return function(o,l){try{if(""===o)return n=[],t=new Map([[l,"[]"]]),r=new Map,a=[],l;const i=r.get(this)||this;for(;a.length&&i!==a[0];)a.shift(),n.pop();if("boolean"==typeof l)return l;if(void 0===l)return e.allowUndefined?"_undefined_":void 0;if(null===l)return null;if("number"==typeof l)return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if("bigint"==typeof l)return`_bigint_${l.toString()}`;if("string"==typeof l)return p8.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,m6.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,g6.default)(l)){if(!e.allowFunction)return;const{name:t}=l,r=l.toString();return r.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${t}|${(()=>{}).toString()}`:`_function_${t}|${u8(d8(o,r))}`}if((0,h6.default)(l)){if(!e.allowSymbol)return;const t=Symbol.keyFor(l);return void 0!==t?`_gsymbol_${t}`:`_symbol_${l.toString().slice(7,-1)}`}if(a.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&!e.allowClass)return;const s=t.get(l);if(!s){const i=Array.isArray(l)?l:d0(l);if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&e.allowClass)try{Object.assign(i,{"_constructor-name_":l.constructor.name})}catch{}return n.push(o),a.unshift(i),t.set(l,JSON.stringify(n)),l!==i&&r.set(l,i),i}return`_duplicate_${s}`}catch{return}}},m8={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},g8=(e,t={})=>{const r={...m8,...t};return JSON.stringify(d0(e),f8(r),t.space)};function h8(e){const t=[].forEach,r=[].some,a=typeof window<"u"&&document.body,n=" ";let o,l=!0;function i(r,a){const o=a.appendChild(function(r){const a=document.createElement("li"),o=document.createElement("a");return e.listItemClass&&a.setAttribute("class",e.listItemClass),e.onClick&&(o.onclick=e.onClick),e.includeTitleTags&&o.setAttribute("title",r.textContent),e.includeHtml&&r.childNodes.length?t.call(r.childNodes,(e=>{o.appendChild(e.cloneNode(!0))})):o.textContent=r.textContent,o.setAttribute("href",`${e.basePath}#${r.id}`),o.setAttribute("class",`${e.linkClass+n}node-name--${r.nodeName}${n}${e.extraLinkClasses}`),a.appendChild(o),a}(r));if(r.children.length){const e=s(r.isCollapsed);r.children.forEach((t=>{i(t,e)})),o.appendChild(e)}}function s(t){const r=e.orderedList?"ol":"ul",a=document.createElement(r);let o=e.listClass+n+e.extraListClasses;return t&&(o=o+n+e.collapsibleClass,o=o+n+e.isCollapsedClass),a.setAttribute("class",o),a}function c(t){let r=0;return null!==t&&(r=t.offsetTop,e.hasInnerContainers&&(r+=c(t.offsetParent))),r}function u(e,t){return e&&e.className!==t&&(e.className=t),e}function d(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(u(t,t.className.replace(n+e.isCollapsedClass,"")),d(t.parentNode.parentNode)):t}function p(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||a.scrollTop,t}function m(t,a=p()){let n;return r.call(t,((r,o)=>{if(c(r)>a+e.headingsOffset+10){return n=t[0===o?o:o-1],!0}if(o===t.length-1)return n=t[t.length-1],!0})),n}return{enableTocAnimation:function(){l=!0},disableTocAnimation:function(t){const r=t.target||t.srcElement;"string"!=typeof r.className||-1===r.className.indexOf(e.linkClass)||(l=!1)},render:function(e,t){const r=s(!1);if(t.forEach((e=>{i(e,r)})),o=e||o,null!==o)return o.firstChild&&o.removeChild(o.firstChild),0===t.length?o:o.appendChild(r)},updateToc:function(r){e.positionFixedSelector&&function(){const t=p(),r=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=o.offsetTop),t>e.fixedSidebarOffset?-1===r.className.indexOf(e.positionFixedClass)&&(r.className+=n+e.positionFixedClass):r.className=r.className.replace(n+e.positionFixedClass,"")}();const a=r;if(l&&o&&a.length>0){const r=m(a),l=o.querySelector(`.${e.activeLinkClass}`),i=o.querySelector(`.${e.linkClass}.node-name--${r.nodeName}[href="${e.basePath}#${r.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")}"]`);if(l===i)return;const s=o.querySelectorAll(`.${e.linkClass}`);t.call(s,(t=>{u(t,t.className.replace(n+e.activeLinkClass,""))}));const c=o.querySelectorAll(`.${e.listItemClass}`);t.call(c,(t=>{u(t,t.className.replace(n+e.activeListItemClass,""))})),i&&-1===i.className.indexOf(e.activeLinkClass)&&(i.className+=n+e.activeLinkClass);const p=null==i?void 0:i.parentNode;p&&-1===p.className.indexOf(e.activeListItemClass)&&(p.className+=n+e.activeListItemClass);const h=o.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(h,(t=>{-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=n+e.isCollapsedClass)})),null!=i&&i.nextSibling&&-1!==i.nextSibling.className.indexOf(e.isCollapsedClass)&&u(i.nextSibling,i.nextSibling.className.replace(n+e.isCollapsedClass,"")),d(null==i?void 0:i.parentNode.parentNode)}},getCurrentlyHighlighting:function(){return l},getTopHeader:m,getScrollTop:p,updateUrlHashForHeader:function(e){const t=p(),r=m(e,t);if(!r||t<5)"#"===window.location.hash||""===window.location.hash||window.history.pushState(null,null,"#");else if(r){const e=`#${r.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}}}const b8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,enableUrlHashUpdateOnScroll:!1};function y8(e){const t=[].reduce;function r(e){return e[e.length-1]}function a(e){return+e.nodeName.toUpperCase().replace("H","")}function n(t){if(!function(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const r=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),n={id:t.id,children:[],nodeName:t.nodeName,headingLevel:a(t),textContent:r};return e.includeHtml&&(n.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(n,t):n}return{nestHeadingsArray:function(a){return t.call(a,(function(t,a){const o=n(a);return o&&function(t,a){const o=n(t),l=o.headingLevel;let i=a,s=r(i),c=l-(s?s.headingLevel:0);for(;c>0&&(s=r(i),!s||l!==s.headingLevel);)s&&void 0!==s.children&&(i=s.children),c--;l>=e.collapseDepth&&(o.isCollapsed=!0),i.push(o)}(o,t.nest),t}),{nest:[]})},selectHeadings:function(t,r){let a=r;e.ignoreSelector&&(a=r.split(",").map((function(t){return`${t.trim()}:not(${e.ignoreSelector})`})));try{return t.querySelectorAll(a)}catch{return console.warn(`Headers not found with selector: ${a}`),null}}}}function v8(e){var t=e.duration,r=e.offset;if(!(typeof window>"u"||typeof location>"u")){var a=location.hash?n(location.href):location.href;document.body.addEventListener("click",(function(o){!function(e){return"a"===e.tagName.toLowerCase()&&(e.hash.length>0||"#"===e.href.charAt(e.href.length-1))&&(n(e.href)===a||n(e.href)+"#"===a)}(o.target)||o.target.className.indexOf("no-smooth-scroll")>-1||"#"===o.target.href.charAt(o.target.href.length-2)&&"!"===o.target.href.charAt(o.target.href.length-1)||-1===o.target.className.indexOf(e.linkClass)||E8(o.target.hash,{duration:t,offset:r,callback:function(){!function(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}(o.target.hash)}})}),!1)}function n(e){return e.slice(0,e.lastIndexOf("#"))}}function E8(e,t){var r,a,n=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,r,a){return(e/=a/2)<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i="string"==typeof e?o.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,s="function"==typeof o.duration?o.duration(i):o.duration;function c(e){a=e-r,window.scrollTo(0,o.easing(a,n,i,s)),at.clientHeight){const r=t.querySelector(`.${e.activeListItemClass}`);if(r){const a=r.offsetTop-e.tocScrollOffset;t.scrollTop=a>0?a:0}}}let Ve,Ba,Bt,ot,Mr,z={};function w8(e){z=S8(b8,e||{}),z.scrollSmooth&&(z.duration=z.scrollSmoothDuration,z.offset=z.scrollSmoothOffset,v8(z)),Ve=h8(z),Ba=y8(z),p0();const t=C8(z);if(null===t)return;const r=f0(z);if(null===r||(Bt=Ba.selectHeadings(t,z.headingSelector),null===Bt))return;const a=Ba.nestHeadingsArray(Bt).nest;if(z.skipRendering)return this;Ve.render(r,a);let n=!1;ot=ts((e=>{var t;Ve.updateToc(Bt),!z.disableTocScrollSync&&!n&&x8(z),z.enableUrlHashUpdateOnScroll&&Ve.getCurrentlyHighlighting()&&Ve.updateUrlHashForHeader(Bt);const r=(null==(t=null==e?void 0:e.target)?void 0:t.scrollingElement)&&0===e.target.scrollingElement.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||r)&&(Ve.updateToc(Bt),z.scrollEndCallback&&z.scrollEndCallback(e))}),z.throttleTimeout),ot(),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).addEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).addEventListener("resize",ot,!1)):(document.addEventListener("scroll",ot,!1),document.addEventListener("resize",ot,!1));let o=null;Mr=ts((e=>{n=!0,z.scrollSmooth&&Ve.disableTocAnimation(e),Ve.updateToc(Bt),o&&clearTimeout(o),o=setTimeout((()=>{Ve.enableTocAnimation()}),z.scrollSmoothDuration),setTimeout((()=>{n=!1}),z.scrollSmoothDuration+100)}),z.throttleTimeout),z.scrollContainer&&document.querySelector(z.scrollContainer)?document.querySelector(z.scrollContainer).addEventListener("click",Mr,!1):document.addEventListener("click",Mr,!1)}function p0(){const e=f0(z);null!==e&&(z.skipRendering||e&&(e.innerHTML=""),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).removeEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).removeEventListener("resize",ot,!1),Ve&&document.querySelector(z.scrollContainer).removeEventListener("click",Mr,!1)):(document.removeEventListener("scroll",ot,!1),document.removeEventListener("resize",ot,!1),Ve&&document.removeEventListener("click",Mr,!1)))}const A8=Object.prototype.hasOwnProperty;function S8(...e){const t={};for(let r=0;r{a=l,e.apply(o,r)}),t)):(a=l,e.apply(o,r))}}function C8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function f0(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}const{global:Le}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:fe,once:k8,logger:wl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:_8,composeConfigs:nA,Preview:aA,DocsContext:oA}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:rs,UPDATE_STORY_ARGS:O8,RESET_STORY_ARGS:T8,GLOBALS_UPDATED:ns,NAVIGATE_URL:R8}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var F8=_.div(re,(({theme:e})=>({backgroundColor:"light"===e.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:te(.3,e.color.defaultText),fontSize:e.typography.size.s2}))),m0=e=>a.createElement(F8,{...e,className:"docblock-emptyblock sb-unstyled"}),$8=_(Qn)((({theme:e})=>({fontSize:e.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),D8=_.div((({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),gn=_.div((({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Xa}`]:{margin:0}}))),L8=()=>a.createElement(D8,null,a.createElement(gn,null),a.createElement(gn,{style:{width:"80%"}}),a.createElement(gn,{style:{width:"30%"}}),a.createElement(gn,{style:{width:"80%"}})),Al=({isLoading:e,error:t,language:r,code:n,dark:o,format:l,...i})=>{if(e)return a.createElement(L8,null);if(t)return a.createElement(m0,null,t);let s=a.createElement($8,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?qa.dark:qa.light;return a.createElement(Ys,{theme:Ka(c)},s)};Al.defaultProps={format:!1};var ie=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sl=600,M8=_.h1(re,(({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),B8=_.h2(re,(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:te(.25,e.color.defaultText)}))),I8=_.div((({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},a={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:"light"===e.base?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:"light"===e.base?te(.1,e.color.defaultText):te(.3,e.color.defaultText),backgroundColor:"light"===e.base?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ie("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ie("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ie("div")]:t,[ie("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ie("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ie("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ie("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ie("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ie("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ie("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ie("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ie("img")]:{maxWidth:"100%"},[ie("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":a},[ie("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ie("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":a},[ie("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ie("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ie("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===e.base?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ie("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),P8=_.div((({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sl}px)`]:{}}))),j8=({children:e,toc:t})=>a.createElement(P8,{className:"sbdocs sbdocs-wrapper"},a.createElement(I8,{className:"sbdocs sbdocs-content"},e),t),sa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),N8=({zoom:e,resetZoom:t})=>a.createElement(a.Fragment,null,a.createElement(Ut,{key:"zoomin",onClick:t=>{t.preventDefault(),e(.8)},title:"Zoom in"},a.createElement(Ee,{icon:"zoom"})),a.createElement(Ut,{key:"zoomout",onClick:t=>{t.preventDefault(),e(1.25)},title:"Zoom out"},a.createElement(Ee,{icon:"zoomout"})),a.createElement(Ut,{key:"zoomreset",onClick:e=>{e.preventDefault(),t()},title:"Reset zoom"},a.createElement(Ee,{icon:"zoomreset"}))),H8=_(ra)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Z8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...l})=>a.createElement(H8,{...l},a.createElement(h.Fragment,{key:"left"},e?[1,2,3].map((e=>a.createElement(wu,{key:e}))):a.createElement(N8,{zoom:n,resetZoom:o}))),g0=h.createContext({scale:1}),{window:V8}=Le,z8=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=V8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:100*t+"%",height:100*t+"%",transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...l}=this.props;return a.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:q8}=Le,U8=q8||"iframe.html",yo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,W8=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,l]=h.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:u,renderStoryToElement:d}=e;return h.useEffect((()=>{if(!i||!t.current)return()=>{};let e=t.current,r=d(i,e,{showMain:()=>{},showError:({title:e,description:t})=>l(new Error(`${e} - ${t}`)),showException:e=>l(e)},{autoplay:c,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then((()=>r()))}}),[c,d,i]),o?a.createElement("pre",null,a.createElement(mu,{error:o})):a.createElement(a.Fragment,null,s?a.createElement("style",null,`#${yo(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&a.createElement(Cl,null),a.createElement("div",{ref:t,id:`${yo(e)}-inner`,"data-name":i.name}))},G8=({story:e,height:t="500px"})=>a.createElement("div",{style:{width:"100%",height:t}},a.createElement(g0.Consumer,null,(({scale:t})=>a.createElement(z8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:ku(U8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:t,style:{width:"100%",height:"100%",border:"0 none"}})))),Y8=e=>{let{inline:t}=e;return a.createElement("div",{id:yo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?a.createElement(W8,{...e}):a.createElement(G8,{...e}))},Cl=()=>a.createElement(Cu,null),K8=_.div((({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout:e="padded"})=>"centered"===e||"padded"===e?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout:e="padded"})=>"centered"===e?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{})),as=_(Al)((({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content),color:e.color.lightest,button:{background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content)}}))),X8=_.div((({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...sa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar:e})=>e&&{paddingTop:40})),J8=(e,t,r)=>{switch(!0){case!(!e||!e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:a.createElement(as,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:a.createElement(as,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Q8(e){if(1===h.Children.count(e)){let t=e;if(t.props)return t.props.id}return null}var ex=_(Z8)({position:"absolute",top:0,left:0,right:0,height:40}),tx=_.div({overflow:"hidden",position:"relative"}),vo=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:l=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:u="padded",...d})=>{let[p,m]=h.useState(i),{source:f,actionItem:g}=J8(o,p,m),[b,y]=h.useState(1),v=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[g]:[],[x,w]=h.useState(s?[...s]:[]),k=[...E,...x],{window:S}=Le,C=h.useCallback((async e=>{let{createCopyToClipboardFunction:t}=await Wt((()=>Promise.resolve().then((()=>Jh))),void 0,import.meta.url);t()}),[]);return a.createElement(X8,{withSource:o,withToolbar:l,...d,className:v.join(" ")},l&&a.createElement(ex,{isLoading:e,border:!0,zoom:e=>y(b*e),resetZoom:()=>y(1),storyId:Q8(n),baseUrl:"./iframe.html"}),a.createElement(g0.Provider,{value:{scale:b}},a.createElement(tx,{className:"docs-story",onCopyCapture:o&&(e=>{let t=S.getSelection();t&&"Range"===t.type||(e.preventDefault(),0===x.filter((e=>"Copied"===e.title)).length&&C(f.props.code).then((()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout((()=>w(x.filter((e=>"Copied"!==e.title)))),1500)})))})},a.createElement(K8,{isColumn:t||!Array.isArray(n),columns:r,layout:u},a.createElement(fu.Element,{scale:b},Array.isArray(n)?n.map(((e,t)=>a.createElement("div",{key:t},e))):a.createElement("div",null,n))),a.createElement(Zo,{actionItems:k}))),o&&p&&f)},rx=_(vo)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}}))),nx=()=>a.createElement(rx,{isLoading:!0,withToolbar:!0},a.createElement(Cl,null)),ax=_.table((({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Et({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}}))),ox=({tags:e})=>{let t=(e.params||[]).filter((e=>e.description)),r=0!==t.length,n=null!=e.deprecated,o=null!=e.returns&&null!=e.returns.description;return r||o||n?a.createElement(a.Fragment,null,a.createElement(ax,null,a.createElement("tbody",null,n&&a.createElement("tr",{key:"deprecated"},a.createElement("td",{colSpan:2},a.createElement("strong",null,"Deprecated"),": ",e.deprecated)),r&&t.map((e=>a.createElement("tr",{key:e.name},a.createElement("td",null,a.createElement("code",null,e.name)),a.createElement("td",null,e.description)))),o&&a.createElement("tr",{key:"returns"},a.createElement("td",null,a.createElement("code",null,"Returns")),a.createElement("td",null,e.returns.description))))):null},Eo=8,os=_.div((({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),lx=_.span(Et,(({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ix=_.button((({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),sx=_.div(Et,(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),cx=_.div((({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ux=_(Ee)({height:10,width:10,minWidth:10,marginLeft:4}),dx=()=>a.createElement("span",null,"-"),h0=({text:e,simple:t})=>a.createElement(lx,{simple:t},e),px=Yt(1e3)((e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map((e=>e.length)))}ch`})),fx=e=>{if(!e)return[e];let t=e.split("|").map((e=>e.trim()));return pv(t)},ls=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Eo)),r.map((e=>a.createElement(h0,{key:e,text:""===e?'""':e})))},mx=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,l]=h.useState(!1),[i,s]=h.useState(t||!1);if(null==r)return null;let c="function"==typeof r.toString?r.toString():r;if(null==n){if(/[(){}[\]<>]/.test(c))return a.createElement(h0,{text:c});let e=fx(c),t=e.length;return t>Eo?a.createElement(os,{isExpanded:i},ls(e,i),a.createElement(ix,{onClick:()=>s(!i)},i?"Show less...":`Show ${t-Eo} more...`)):a.createElement(os,null,ls(e))}return a.createElement(vu,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:e=>{l(e)},tooltip:a.createElement(cx,{width:px(n)},a.createElement(Qn,{language:"jsx",format:!1},n))},a.createElement(sx,{className:"sbdocs-expandable"},a.createElement("span",null,c),a.createElement(ux,{icon:o?"arrowup":"arrowdown"})))},Ia=({value:e,initialExpandedArgs:t})=>null==e?a.createElement(dx,null):a.createElement(mx,{value:e,initialExpandedArgs:t}),gx=_.label((({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:te(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${mn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${mn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:mn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:"light"===e.base?`${mn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}}))),hx=e=>"true"===e,bx=({name:e,value:t,onChange:r,onBlur:n,onFocus:o})=>{let l=h.useCallback((()=>r(!1)),[r]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:l},"Set boolean");let i=qe(e),s="string"==typeof t?hx(t):t;return a.createElement(gx,{htmlFor:i,"aria-label":e},a.createElement("input",{id:i,type:"checkbox",onChange:e=>r(e.target.checked),checked:s,role:"switch",name:e,onBlur:n,onFocus:o}),a.createElement("span",{"aria-hidden":"true"},"False"),a.createElement("span",{"aria-hidden":"true"},"True"))},yx=e=>{let[t,r,a]=e.split("-"),n=new Date;return n.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(a,10)),n},vx=e=>{let[t,r]=e.split(":"),a=new Date;return a.setHours(parseInt(t,10)),a.setMinutes(parseInt(r,10)),a},Ex=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},xx=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},wx=_.div((({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===e.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Ax=({name:e,value:t,onChange:r,onFocus:n,onBlur:o})=>{let[l,i]=h.useState(!0),s=h.useRef(),c=h.useRef();h.useEffect((()=>{!1!==l&&(s&&s.current&&(s.current.value=Ex(t)),c&&c.current&&(c.current.value=xx(t)))}),[t]);let u=qe(e);return a.createElement(wx,null,a.createElement(ze.Input,{type:"date",max:"9999-12-31",ref:s,id:`${u}-date`,name:`${u}-date`,onChange:e=>{let a=yx(e.target.value),n=new Date(t);n.setFullYear(a.getFullYear(),a.getMonth(),a.getDate());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),a.createElement(ze.Input,{type:"time",id:`${u}-time`,name:`${u}-time`,ref:c,onChange:e=>{let a=vx(e.target.value),n=new Date(t);n.setHours(a.getHours()),n.setMinutes(a.getMinutes());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),l?null:a.createElement("div",null,"invalid"))},Sx=_.label({display:"flex"}),Cx=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},kx=({name:e,value:t,onChange:r,min:n,max:o,step:l,onBlur:i,onFocus:s})=>{let[c,u]=h.useState("number"==typeof t?t:""),[d,p]=h.useState(!1),[m,f]=h.useState(null),g=h.useCallback((e=>{u(e.target.value);let t=parseFloat(e.target.value);Number.isNaN(t)?f(new Error(`'${e.target.value}' is not a number`)):(r(t),f(null))}),[r,f]),b=h.useCallback((()=>{u("0"),r(0),p(!0)}),[p]),y=h.useRef(null);return h.useEffect((()=>{d&&y.current&&y.current.select()}),[d]),h.useEffect((()=>{c!==("number"==typeof t?t:"")&&u(t)}),[t]),d||void 0!==t?a.createElement(Sx,null,a.createElement(ze.Input,{ref:y,id:qe(e),type:"number",onChange:g,size:"flex",placeholder:"Edit number...",value:c,valid:m?"error":null,autoFocus:d,name:e,min:n,max:o,step:l,onFocus:s,onBlur:i})):a.createElement(ze.Button,{id:jn(e),onClick:b},"Set number")},b0=(e,t)=>{let r=t&&Object.entries(t).find((([t,r])=>r===e));return r?r[0]:void 0},xo=(e,t)=>e&&t?Object.entries(t).filter((t=>e.includes(t[1]))).map((e=>e[0])):[],y0=(e,t)=>e&&t&&e.map((e=>t[e])),_x=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Ox=_.span({}),Tx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),is=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Checkbox with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=xo(r,t),[i,s]=h.useState(l),c=e=>{let r=e.target.value,a=[...i];a.includes(r)?a.splice(a.indexOf(r),1):a.push(r),n(y0(a,t)),s(a)};h.useEffect((()=>{s(xo(r,t))}),[r]);let u=qe(e);return a.createElement(_x,{isInline:o},Object.keys(t).map(((e,t)=>{let r=`${u}-${t}`;return a.createElement(Tx,{key:r,htmlFor:r},a.createElement("input",{type:"checkbox",id:r,name:r,value:e,onChange:c,checked:null==i?void 0:i.includes(e)}),a.createElement(Ox,null,e))})))},Rx=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Fx=_.span({}),$x=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),ss=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Radio with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=b0(r,t),i=qe(e);return a.createElement(Rx,{isInline:o},Object.keys(t).map(((e,r)=>{let o=`${i}-${r}`;return a.createElement($x,{key:o,htmlFor:o},a.createElement("input",{type:"radio",id:o,name:o,value:e,onChange:e=>n(t[e.currentTarget.value]),checked:e===l}),a.createElement(Fx,null,e))})))},Dx={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},v0=_.select(Dx,(({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),E0=_.span((({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}}))),cs="Choose option...",Lx=({name:e,value:t,options:r,onChange:n})=>{let o=b0(t,r)||cs,l=qe(e);return a.createElement(E0,null,a.createElement(Ee,{icon:"arrowdown"}),a.createElement(v0,{id:l,value:o,onChange:e=>{n(r[e.currentTarget.value])}},a.createElement("option",{key:"no-selection",disabled:!0},cs),Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},Mx=({name:e,value:t,options:r,onChange:n})=>{let o=xo(t,r),l=qe(e);return a.createElement(E0,null,a.createElement(v0,{id:l,multiple:!0,value:o,onChange:e=>{let t=Array.from(e.currentTarget.options).filter((e=>e.selected)).map((e=>e.value));n(y0(t,r))}},Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},us=e=>{let{name:t,options:r}=e;return r?e.isMulti?a.createElement(Mx,{...e}):a.createElement(Lx,{...e}):(wl.warn(`Select with no options: ${t}`),a.createElement(a.Fragment,null,"-"))},Bx=(e,t)=>Array.isArray(e)?e.reduce(((e,r)=>(e[(null==t?void 0:t[r])||String(r)]=r,e)),{}):e,Ix={check:is,"inline-check":is,radio:ss,"inline-radio":ss,select:us,"multi-select":us},tr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,options:n?Bx(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=Ix[t];if(l)return a.createElement(l,{...o});throw new Error(`Unknown options type: ${t}`)},kl="value",Px="key",jx="Error",Nx="Object",Hx="Array",Zx="String",Vx="Number",zx="Boolean",qx="Date",Ux="Null",Wx="Undefined",Gx="Function",Yx="Symbol",x0="ADD_DELTA_TYPE",w0="REMOVE_DELTA_TYPE",A0="UPDATE_DELTA_TYPE";function kt(e){return null===e||"object"!=typeof e||Array.isArray(e)||"function"!=typeof e[Symbol.iterator]?Object.prototype.toString.call(e).slice(8,-1):"Iterable"}function S0(e,t){let r=kt(e),a=kt(t);return("Function"===r||"Function"===a)&&a!==r}var _l=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&"function"==typeof e.focus&&e.focus(),r&&t&&"function"==typeof t.focus&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.onSubmit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:a,deep:n}=this.props,{inputRefKey:o,inputRefValue:l}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,a,n,i.key,l.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:l,deep:i}=this.props,s=h.cloneElement(r,{onClick:this.onSubmit}),c=h.cloneElement(n,{onClick:e}),u=o(kl,l,i),d=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let e=o(Px,l,i);p=h.cloneElement(e,{placeholder:"Key",ref:this.refInputKey})}return a.createElement("span",{className:"rejt-add-value-node"},p,d,c,s)}};_l.defaultProps={onlyValue:!1,addButtonElement:a.createElement("button",null,"+"),cancelButtonElement:a.createElement("button",null,"c")};var C0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:w0};a.splice(e,1),this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:a}=this.state,{beforeAddAction:n,logger:o}=this.props;n(t.length,r,a,e).then((()=>{let n=[...t,e];this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(r[r.length-1],n),l({type:x0,keyPath:r,deep:a,key:n.length-1,newValue:e})})).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:A0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)})).catch(a)}))}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:l,getStyle:i,dataType:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,s),p=l(e,t,r,n,s),m=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",1===t.length?"item":"items"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,delimiter:O,ul:R,addForm:M}=d(e,t,r,n,p),T=u(e,t,r,n,p),L=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),j=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A});return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&L,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map(((e,t)=>a.createElement(ca,{key:t,name:t.toString(),data:e,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})))),!T&&o&&a.createElement("div",{className:"rejt-add-form",style:M},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!T&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:l,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=i(e,r,n,o,l);return a.createElement("div",{className:"rejt-array-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};C0.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var k0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{S0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=null,v=null,E=s(e,i,n,o,c);if(r&&!E){let t=m(kl,g,o,e,i,c),r=h.cloneElement(d,{onClick:this.handleEdit}),n=h.cloneElement(p,{onClick:this.handleCancelEdit}),l=h.cloneElement(t,{ref:this.refInput,defaultValue:i});y=a.createElement("span",{className:"rejt-edit-form",style:b.editForm},l," ",n,r),v=null}else{y=a.createElement("span",{className:"rejt-value",style:b.value,onClick:E?null:this.handleEditMode},t);let e=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});v=E?null:e}return a.createElement("li",{className:"rejt-function-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),y,v)}};k0.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var ca=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:l,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k}=this.props,S=()=>!0,C=kt(e);switch(C){case jx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:S,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Nx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Hx:return a.createElement(C0,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Zx:return a.createElement(St,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Vx:return a.createElement(St,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case zx:return a.createElement(St,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case qx:return a.createElement(St,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Ux:return a.createElement(St,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Wx:return a.createElement(St,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Gx:return a.createElement(k0,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,textareaElementGenerator:g,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Yx:return a.createElement(St,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});default:return null}}};ca.defaultProps={keyPath:[],deep:0};var wo=class extends h.Component{constructor(e){super(e);let t=-1===e.deep?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:a,nextDeep:n}=this.state,{beforeAddAction:o,logger:l}=this.props;o(e,a,n,t).then((()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(a[a.length-1],r),l({type:x0,keyPath:a,deep:n,key:e,newValue:t})})).catch(l.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:w0};delete a[e],this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:A0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r()})).catch(a)}))}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:l,dataType:i,getStyle:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=s(e,n,t,r,i),p=Object.getOwnPropertyNames(n),m=l(e,n,t,r,i),f=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",1===p.length?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,addForm:O,ul:R,delimiter:M}=d(e,t,r,n,p),T=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),F=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A}),N=T.map((e=>a.createElement(ca,{key:e,name:e,data:t[e],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})));return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"{"),!L&&j,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},N),!L&&l&&a.createElement("div",{className:"rejt-add-form",style:O},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"}"),!L&&F)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:l,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=l(e,r,n,o,i);return a.createElement("div",{className:"rejt-object-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};wo.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var St=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{S0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=s(e,i,n,o,c),v=r&&!y,E=m(kl,g,o,e,i,c),x=h.cloneElement(d,{onClick:this.handleEdit}),w=h.cloneElement(p,{onClick:this.handleCancelEdit}),k=h.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});return a.createElement("li",{className:"rejt-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," : "),v?a.createElement("span",{className:"rejt-edit-form",style:b.editForm},k," ",w,x):a.createElement("span",{className:"rejt-value",style:b.value,onClick:y?null:this.handleEditMode},String(t)),!y&&!v&&S)}};St.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var Kx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Xx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Jx={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function Qx(e){let t=e;if(0===t.indexOf("function"))return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var _0=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElement:u,textareaElement:d,minusMenuElement:p,plusMenuElement:m,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y,fallback:v=null}=this.props,E=kt(e),x=o;"Boolean"===kt(o)&&(x=()=>o);let w=u;u&&"Function"!==kt(u)&&(w=()=>u);let k=d;return d&&"Function"!==kt(d)&&(k=()=>d),"Object"===E||"Array"===E?a.createElement("div",{className:"rejt-tree"},a.createElement(ca,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElementGenerator:w,textareaElementGenerator:k,minusMenuElement:p,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y})):v}};_0.defaultProps={rootName:"root",isCollapsed:(e,t)=>-1!==t,getStyle:(e,t,r,a,n)=>{switch(n){case"Object":case"Error":return Kx;case"Array":return Xx;default:return Jx}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,a,n)=>Qx(n),inputElement:()=>a.createElement("input",null),textareaElement:()=>a.createElement("textarea",null),fallback:null};var{window:e9}=Le,t9=_.div((({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}}))),Pa=_.button((({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}))),ds=_(Ee)((({theme:e,icon:t,disabled:r})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:r?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":r?{}:{color:"subtract"===t?e.color.negative:e.color.ancillary},"svg + &":{marginLeft:0}}))),ps=_.input((({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===t?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}}))),r9=_(Ut)((({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),n9=_(ze.Textarea)((({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),a9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},o9=e=>{e.currentTarget.dispatchEvent(new e9.KeyboardEvent("keydown",a9))},l9=e=>{e.currentTarget.select()},i9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),fs=({name:e,value:t,onChange:r})=>{let n=tp(),o=h.useMemo((()=>t&&X7(t)),[t]),l=null!=o,[i,s]=h.useState(!l),[c,u]=h.useState(null),d=h.useCallback((e=>{try{e&&r(JSON.parse(e)),u(void 0)}catch(t){u(t)}}),[r]),[p,m]=h.useState(!1),f=h.useCallback((()=>{r({}),m(!0)}),[m]),g=h.useRef(null);if(h.useEffect((()=>{p&&g.current&&g.current.select()}),[p]),!l)return a.createElement(ze.Button,{id:jn(e),onClick:f},"Set object");let b=a.createElement(n9,{ref:g,id:qe(e),name:e,defaultValue:null===t?"":JSON.stringify(t,null,2),onBlur:e=>d(e.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:c?"error":null});return a.createElement(t9,null,["Object","Array"].includes(kt(o))&&a.createElement(r9,{href:"#",onClick:e=>{e.preventDefault(),s((e=>!e))}},a.createElement(Ee,{icon:i?"eyeclose":"eye"}),a.createElement("span",null,"RAW")),i?b:a.createElement(_0,{data:o,rootName:e,onFullyUpdate:r,getStyle:i9(n),cancelButtonElement:a.createElement(Pa,{type:"button"},"Cancel"),editButtonElement:a.createElement(Pa,{type:"submit"},"Save"),addButtonElement:a.createElement(Pa,{type:"submit",primary:!0},"Save"),plusMenuElement:a.createElement(ds,{icon:"add"}),minusMenuElement:a.createElement(ds,{icon:"subtract"}),inputElement:(e,t,r,n)=>n?a.createElement(ps,{onFocus:l9,onBlur:o9}):a.createElement(ps,null),fallback:b}))},s9=_.input((({theme:e,min:t,max:r,value:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:at(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),O0=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),c9=_(O0)((({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+2*t.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),u9=_.div({display:"flex",alignItems:"center",width:"100%"});function d9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var p9=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let c=void 0!==t,u=h.useMemo((()=>d9(l)),[l]);return a.createElement(u9,null,a.createElement(O0,null,n),a.createElement(s9,{id:qe(e),type:"range",onChange:e=>{r(Cx(e.target.value))},name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(c9,{numberOFDecimalsPlaces:u,max:o},c?t.toFixed(u):"--"," / ",o))},f9=_.label({display:"flex"}),m9=_.div((({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0}))),g9=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let[i,s]=h.useState(!1),c=h.useCallback((()=>{r(""),s(!0)}),[s]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:c},"Set string");let u="string"==typeof t;return a.createElement(f9,null,a.createElement(ze.Textarea,{id:qe(e),maxLength:l,onChange:e=>{r(e.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:i,valid:u?null:"error",name:e,value:u?t:"",onFocus:n,onBlur:o}),l&&a.createElement(m9,{isMaxed:(null==t?void 0:t.length)===l},(null==t?void 0:t.length)??0," / ",l))},h9=_(ze.Input)({padding:10});function b9(e){e.forEach((e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}))}var y9=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=h.useRef(null);return h.useEffect((()=>{null==n&&o.current&&(o.current.value=null)}),[n,t]),a.createElement(h9,{ref:o,id:qe(t),type:"file",name:t,multiple:!0,onChange:function(t){if(!t.target.files)return;let r=Array.from(t.target.files).map((e=>URL.createObjectURL(e)));e(r),b9(n)},accept:r,size:"flex"})},v9=h.lazy((()=>Wt((()=>import("./Color-6VNJS4EI-BfquLmg4.js")),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url))),E9=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(v9,{...e})),x9={array:fs,object:fs,boolean:bx,color:E9,date:Ax,number:kx,check:tr,"inline-check":tr,radio:tr,"inline-radio":tr,select:tr,"multi-select":tr,range:p9,text:g9,file:y9},ms=()=>a.createElement(a.Fragment,null,"-"),w9=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=h.useState(!1),[c,u]=h.useState({value:t});h.useEffect((()=>{i||u({value:t})}),[i,t]);let d=h.useCallback((e=>(u({value:e}),r({[o]:e}),e)),[r,o]),p=h.useCallback((()=>s(!1)),[]),m=h.useCallback((()=>s(!0)),[]);if(!l||l.disable)return n?a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(ms,null);let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},g=x9[l.type]||ms;return a.createElement(g,{...f,...l,controlType:l.type})},A9=_.span({fontWeight:"bold"}),S9=_.span((({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"}))),C9=_.div((({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Et({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),k9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0}))),_9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12}))),O9=_.td((({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"}))),hn=e=>{var t;let[r,n]=h.useState(!1),{row:o,updateArgs:l,compact:i,expandable:s,initialExpandedArgs:c}=e,{name:u,description:d}=o,p=o.table||{},m=p.type||o.type,f=p.defaultValue||o.defaultValue,g=null==(t=o.type)?void 0:t.required,b=null!=d&&""!==d;return a.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},a.createElement(O9,{expandable:s},a.createElement(A9,null,u),g?a.createElement(S9,{title:"Required"},"*"):null),i?null:a.createElement("td",null,b&&a.createElement(C9,null,a.createElement(Ju,null,d)),null!=p.jsDocTags?a.createElement(a.Fragment,null,a.createElement(_9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c})),a.createElement(ox,{tags:p.jsDocTags})):a.createElement(k9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c}))),i?null:a.createElement("td",null,a.createElement(Ia,{value:f,initialExpandedArgs:c})),l?a.createElement("td",null,a.createElement(w9,{...e,isHovered:r})):null)},T9=_(Ee)((({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===e.base?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"}))),R9=_.span((({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),F9=_.td((({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}}))),$9=_.td((({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app}))),D9=_.td((()=>({position:"relative"}))),L9=_.tr((({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),gs=_.button((()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}))),ja=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=h.useState(n),s="subsection"===e?$9:F9,c=(null==r?void 0:r.length)||0,u="subsection"===e?`${c} item${1!==c?"s":""}`:"",d=l?"arrowdown":"arrowright",p=`${l?"Hide":"Show"} ${"subsection"===e?c:t} item${1!==c?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(L9,{title:p},a.createElement(s,{colSpan:1},a.createElement(gs,{onClick:e=>i(!l),tabIndex:0},p),a.createElement(R9,null,a.createElement(T9,{icon:d}),t)),a.createElement(D9,{colSpan:o-1},a.createElement(gs,{onClick:e=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:u)),l?r:null)},bn=_.div((({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}}))),ge=_.div((({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"}))),se=_.div((({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3}))),he=[2,4,2,2],M9=()=>a.createElement(a.Fragment,null,a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"})))),B9=_.div((({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),I9=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),P9=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor}))),j9=_.div((({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor}))),N9=_.div((({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25}))),H9=_.div((({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor}))),Z9=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect((()=>{let e=setTimeout((()=>{r(!1)}),100);return()=>clearTimeout(e)}),[]),t?null:a.createElement(B9,{inAddonPanel:e},a.createElement(I9,null,a.createElement(P9,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(j9,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(N9,null,e&&a.createElement(a.Fragment,null,a.createElement(_t,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(Ee,{icon:"video"})," Watch 5m video"),a.createElement(H9,null),a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},V9=_.table((({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:"light"===e.base?te(.25,e.color.defaultText):te(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:"light"===e.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}}))),z9=_(Ut)((({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"}))),q9=_.span({display:"flex",justifyContent:"space-between"}),U9={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,a;return+!(null==(r=t.type)||!r.required)-+!(null==(a=e.type)||!a.required)||e.name.localeCompare(t.name)},none:void 0},W9=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach((([e,t])=>{let{category:a,subcategory:n}=(null==t?void 0:t.table)||{};if(a){let o=r.sections[a]||{ungrouped:[],subsections:{}};if(n){let r=o.subsections[n]||[];r.push({key:e,...t}),o.subsections[n]=r}else o.ungrouped.push({key:e,...t});r.sections[a]=o}else if(n){let a=r.ungroupedSubsections[n]||[];a.push({key:e,...t}),r.ungroupedSubsections[n]=a}else r.ungrouped.push({key:e,...t})}));let a=U9[t],n=e=>a?Object.keys(e).reduce(((t,r)=>({...t,[r]:e[r].sort(a)})),{}):e;return{ungrouped:r.ungrouped.sort(a),ungroupedSubsections:n(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce(((e,t)=>({...e,[t]:{ungrouped:r.sections[t].ungrouped.sort(a),subsections:n(r.sections[t].subsections)}})),{})}},G9=(e,t,r)=>{try{return N0(e,t,r)}catch(a){return k8.warn(a.message),!1}},Y9=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:t}=e;return a.createElement(m0,null,t,"\xa0",a.createElement(_t,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(M9,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=W9(Oy(c,(e=>{var t;return!(null!=(t=null==e?void 0:e.table)&&t.disable)&&G9(e,u||{},d||{})})),i),m=0===p.ungrouped.length,h=0===Object.entries(p.sections).length,f=0===Object.entries(p.ungroupedSubsections).length;if(m&&h&&f)return a.createElement(Z9,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(p.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(ol,null,a.createElement(V9,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(q9,null,"Control"," ",!s&&r&&a.createElement(z9,{onClick:()=>r(),title:"Reset controls"},a.createElement(Ee,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(p.ungroupedSubsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y})))))),Object.entries(p.sections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"section",colSpan:g},t.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(t.subsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y}))))))))))))};_.div((({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),_.div(re,(({theme:e})=>({...sa(e),margin:"25px 0 40px",padding:"30px 20px"}))),_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}))),_.div((({theme:e})=>({color:"light"===e.base?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),_.div((({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),_.div({display:"flex",flexDirection:"row"}),_.div((({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}))),_.div((({theme:e})=>({...sa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),_.div({flex:1,display:"flex",flexDirection:"row"}),_.div({display:"flex",alignItems:"flex-start"}),_.div({flex:"0 0 30%"}),_.div({flex:1}),_.div((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div((({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}))),_.div((({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}))),_.div((({theme:e})=>({...sa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),_.div({display:"flex",flexFlow:"row wrap"});var K9=e=>`anchor--${e}`,T0=({storyId:e,children:t})=>a.createElement("div",{id:K9(e),className:"sb-anchor"},t);Le&&void 0===Le.__DOCS_CONTEXT__&&(Le.__DOCS_CONTEXT__=h.createContext(null),Le.__DOCS_CONTEXT__.displayName="DocsContext");var ke=Le?Le.__DOCS_CONTEXT__:h.createContext(null),an=(e,t)=>h.useContext(ke).resolveOf(e,t);function X9(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function J9(e,t){let r=Ol([e],t);return r&&r[0]}function Ol(e,t){let[r,a]=h.useState({});return h.useEffect((()=>{Promise.all(e.map((async e=>{let r=await t.loadStory(e);a((t=>t[e]===r?t:{...t,[e]:r}))})))})),e.map((e=>{if(r[e])return r[e];try{return t.storyById(e)}catch{return null}}))}function R0(e){return g8(e)}var F0=h.createContext({sources:{}}),$0="--unknown--",Q9=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect((()=>{let e=(e,t=null,r=!1)=>{let{id:a,args:o,source:l,format:i}="string"==typeof e?{id:e,source:t,format:r}:e,s=o?R0(o):$0;n((e=>({...e,[a]:{...e[a],[s]:{code:l,format:i}}})))};return t.on(Bl,e),()=>t.off(Bl,e)}),[]),a.createElement(F0.Provider,{value:{sources:r}},e)},ew=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(ew||{}),tw=e=>{let t=e.map((e=>{var t,r;return null==(r=null==(t=e.parameters.docs)?void 0:t.source)?void 0:r.state})).filter(Boolean);return 0===t.length?"closed":t[0]},rw=(e,t,r)=>{let{sources:a}=r,n=null==a?void 0:a[e];return(null==n?void 0:n[R0(t)])||(null==n?void 0:n[$0])||{code:""}},nw=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:a})=>{var n,o,l,i,s,c;let{__isArgsStory:u}=t.parameters,d=(null==(n=t.parameters.docs)?void 0:n.source)||{},p=r||d.type||pa.AUTO;if(void 0!==d.code)return d.code;let m=p===pa.DYNAMIC||p===pa.AUTO&&e&&u?e:d.originalSource||"";return d.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. +`,Xh=({code:e,...t})=>a.createElement(Kh,{id:"clipboard-code",...t},e),_u=uu,Ou={};Object.keys(uu).forEach((e=>{Ou[e]=h.forwardRef(((t,r)=>h.createElement(e,{...t,ref:r})))}));const Jh=Object.freeze(Object.defineProperty({__proto__:null,A:Uc,ActionBar:Zo,AddonPanel:jh,Badge:vg,Bar:ul,Blockquote:Wc,Button:hu,ClipboardCode:Xh,Code:rl,DL:Yc,Div:Gc,DocumentWrapper:kg,ErrorFormatter:mu,FlexBar:ra,Form:ze,H1:Kc,H2:nl,H3:al,H4:Xc,H5:Jc,H6:Qc,HR:eu,IconButton:Ut,IconButtonSkeleton:wu,Icons:Ee,Img:tu,LI:ru,Link:_t,ListItem:il,Loader:Cu,OL:nu,P:au,Placeholder:pu,Pre:ou,ResetWrapper:ol,ScrollArea:zo,Separator:pl,Spaced:Fg,Span:lu,StorybookIcon:Hh,StorybookLogo:Nh,Symbols:Eg,SyntaxHighlighter:Qn,TT:su,TabBar:dl,TabButton:nn,TabWrapper:Mh,Table:iu,Tabs:na,TabsState:Su,TooltipLinkList:sl,TooltipMessage:Eu,TooltipNote:hh,UL:cu,WithTooltip:sh,WithTooltipPure:vu,Zoom:fu,codeCommon:Et,components:_u,createCopyToClipboardFunction:_c,getStoryHref:ku,icons:Gr,interleaveSeparators:Bh,nameSpaceClassNames:ee,resetComponents:Ou,withReset:re},Symbol.toStringTag,{value:"Module"}));function Qh(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function eb(e,t,r){if(V0())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var n=new(e.bind.apply(e,a));return r&&ys(n,r.prototype),n}function fo(e){var t="function"==typeof Map?new Map:void 0;return fo=function(e){if(null===e||!Qh(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return eb(e,arguments,z0(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ys(r,e)},fo(e)}var ct=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,H0(r)}return Z0(t,e),t}(fo(Error));function _a(e){return Math.round(255*e)}function tb(e,t,r){return _a(e)+","+_a(t)+","+_a(r)}function Yr(e,t,r,a){if(void 0===a&&(a=tb),0===t)return a(r,r,r);var n=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,l=o*(1-Math.abs(n%2-1)),i=0,s=0,c=0;n>=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var $i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function rb(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return $i[t]?"#"+$i[t]:e}var nb=/^#[a-fA-F0-9]{6}$/,ab=/^#[a-fA-F0-9]{8}$/,ob=/^#[a-fA-F0-9]{3}$/,lb=/^#[a-fA-F0-9]{4}$/,Oa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ib=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,sb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,cb=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function mr(e){if("string"!=typeof e)throw new ct(3);var t=rb(e);if(t.match(nb))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ab)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ob))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(lb)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=Oa.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=ib.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=sb.exec(t);if(l){var i="rgb("+Yr(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=Oa.exec(i);if(!s)throw new ct(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=cb.exec(t.substring(0,50));if(c){var u="rgb("+Yr(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Oa.exec(u);if(!d)throw new ct(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ct(5)}function ub(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?Mn(e,t,r):"rgba("+Yr(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?Mn(e.hue,e.saturation,e.lightness):"rgba("+Yr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ct(2)}function go(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return mo("#"+jt(e)+jt(t)+jt(r));if("object"==typeof e&&void 0===t&&void 0===r)return mo("#"+jt(e.red)+jt(e.green)+jt(e.blue));throw new ct(6)}function at(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=mr(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?go(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?go(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ct(7)}var gb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},hb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},bb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},yb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ft(e){if("object"!=typeof e)throw new ct(8);if(hb(e))return at(e);if(gb(e))return go(e);if(yb(e))return mb(e);if(bb(e))return fb(e);throw new ct(8)}function Tu(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Tu(e,t,a)}}function Fe(e){return Tu(e,e.length,[])}function vb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{hue:r.hue+parseFloat(e)}))}function vr(e,t,r){return Math.max(e,Math.min(t,r))}function Eb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness-parseFloat(e))}))}Fe(vb);var xb=Fe(Eb),et=xb;function wb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation-parseFloat(e))}))}function Ab(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness+parseFloat(e))}))}Fe(wb);var Sb=Fe(Ab),Nt=Sb;function Cb(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var a=mr(t),n=Be({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),o=mr(r),l=Be({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=n.alpha-l.alpha,s=2*parseFloat(e)-1,c=((s*i==-1?s:s+i)/(1+s*i)+1)/2,u=1-c;return at({red:Math.floor(n.red*c+l.red*u),green:Math.floor(n.green*c+l.green*u),blue:Math.floor(n.blue*c+l.blue*u),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var kb=Fe(Cb),Ru=kb;function _b(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,(100*a+100*parseFloat(e))/100)}))}var Ob=Fe(_b),mn=Ob;function Tb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation+parseFloat(e))}))}function Rb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{hue:parseFloat(e)}))}function Fb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{lightness:parseFloat(e)}))}function $b(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{saturation:parseFloat(e)}))}function Db(e,t){return"transparent"===t?t:Ru(parseFloat(e),"rgb(0, 0, 0)",t)}function Lb(e,t){return"transparent"===t?t:Ru(parseFloat(e),"rgb(255, 255, 255)",t)}function Mb(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,+(100*a-100*parseFloat(e)).toFixed(2)/100)}))}Fe(Tb),Fe(Rb),Fe(Fb),Fe($b),Fe(Db),Fe(Lb);var Bb=Fe(Mb),te=Bb,Ib=vs,Pb=q0,jb=Object.prototype,Nb=jb.hasOwnProperty;function Hb(e,t,r){var a=e[t];(!Nb.call(e,t)||!Pb(a,r)||void 0===r&&!(t in e))&&Ib(e,t,r)}var fl=Hb,Zb=fl,Vb=Es,zb=U0,Di=Pn,qb=W0;function Ub(e,t,r,a){if(!Di(e))return e;for(var n=-1,o=(t=Vb(t,e)).length,l=o-1,i=e;null!=i&&++n(e[t.toLowerCase()]=t,e)),{class:"className",for:"htmlFor"}),Bi={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Ry=["style","script"],Fy=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,$y=/mailto:/i,Dy=/\n{2,}$/,Du=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ly=/^ *> ?/gm,My=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,By=/^ {2,}\n/,Iy=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Lu=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Mu=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Py=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jy=/^(?:\n *)*\n/,Ny=/\r\n?/g,Hy=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Zy=/^\[\^([^\]]+)]/,Vy=/\f/g,zy=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,qy=/^\s*?\[(x|\s)\]/,Bu=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Iu=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Pu=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ho=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Uy=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ju=/^)/,Wy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Gy=/^\{.*\}$/,Yy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ky=/^<([^ >]+@[^ >]+)>/,Xy=/^<([^ >]+:\/[^ >]+)>/,Jy=/-([a-z])?/gi,Nu=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Qy=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,e3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,t3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,r3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,n3=/\t/g,a3=/(^ *\||\| *$)/g,o3=/^ *:-+: *$/,l3=/^ *:-+ *$/,i3=/^ *-+: *$/,aa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",s3=new RegExp(`^([*_])\\1${aa}\\1\\1(?!\\1)`),c3=new RegExp(`^([*_])${aa}\\1(?!\\1|\\w)`),u3=new RegExp(`^==${aa}==`),d3=new RegExp(`^~~${aa}~~`),p3=/^\\([^0-9A-Za-z\s])/,f3=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,m3=/^\n+/,g3=/^([ \t]*)/,h3=/\\([^\\])/g,Ii=/ *\n+$/,b3=/(?:^|\n)( *)$/,gl="(?:\\d+\\.)",hl="(?:[*+-])";function Hu(e){return"( *)("+(1===e?gl:hl)+") +"}const Zu=Hu(1),Vu=Hu(2);function zu(e){return new RegExp("^"+(1===e?Zu:Vu))}const y3=zu(1),v3=zu(2);function qu(e){return new RegExp("^"+(1===e?Zu:Vu)+"[^\\n]*(?:\\n(?!\\1"+(1===e?gl:hl)+" )[^\\n]*)*(\\n|$)","gm")}const Uu=qu(1),Wu=qu(2);function Gu(e){const t=1===e?gl:hl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Yu=Gu(1),Ku=Gu(2);function Pi(e,t){const r=1===t,a=r?Yu:Ku,n=r?Uu:Wu,o=r?y3:v3;return{match(e,t){const r=b3.exec(t.prevCapture);return r&&(t.list||!t.inline&&!t.simple)?a.exec(e=r[1]+e):null},order:1,parse(e,t,a){const l=r?+e[2]:void 0,i=e[0].replace(Dy,"\n").match(n);let s=!1;return{items:i.map((function(e,r){const n=o.exec(e)[0].length,l=new RegExp("^ {1,"+n+"}","gm"),c=e.replace(l,"").replace(o,""),u=r===i.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const p=a.inline,m=a.list;let h;a.list=!0,d?(a.inline=!1,h=c.replace(Ii,"\n\n")):(a.inline=!0,h=c.replace(Ii,""));const f=t(h,a);return a.inline=p,a.list=m,f})),ordered:r,start:l}},render:(t,r,a)=>e(t.ordered?"ol":"ul",{key:a.key,start:t.type===j.orderedList?t.start:void 0},t.items.map((function(t,n){return e("li",{key:n},r(t,a))})))}}const E3=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),x3=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Xu=[Du,Lu,Mu,Bu,Pu,Iu,ju,Nu,Uu,Yu,Wu,Ku],w3=[...Xu,/^[^\n]+(?: \n|\n{2,})/,ho,bo];function Tr(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function A3(e){return i3.test(e)?"right":o3.test(e)?"center":l3.test(e)?"left":null}function ji(e,t,r,a){const n=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(((e,n)=>("|"===n.trim()?e.push(a?{type:j.tableSeparator}:{type:j.text,text:n}):""!==n&&e.push.apply(e,t(n,r)),e)),[]);r.inTable=n;let l=[[]];return o.forEach((function(e,t){e.type===j.tableSeparator?0!==t&&t!==o.length-1&&l.push([]):(e.type!==j.text||null!=o[t+1]&&o[t+1].type!==j.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))})),l}function S3(e,t,r){r.inline=!0;const a=e[2]?e[2].replace(a3,"").split("|").map(A3):[],n=e[3]?(l=e[3],i=t,s=r,l.trim().split("\n").map((function(e){return ji(e,i,s,!0)}))):[],o=ji(e[1],t,r,!!n.length);var l,i,s;return r.inline=!1,n.length?{align:a,cells:n,header:o,type:j.table}:{children:o,type:j.paragraph}}function Ni(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function wt(e){return function(t,r){return r.inline?e.exec(t):null}}function At(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Rr(e){return function(t){return e.exec(t)}}function C3(e,t){if(t.inline||t.simple)return null;let r="";e.split("\n").every((e=>!Xu.some((t=>t.test(e)))&&(r+=e+"\n",e.trim())));const a=r.trimEnd();return""==a?null:[r,a]}function k3(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Hi(e){return e.replace(h3,"$1")}function Sn(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!0,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function _3(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!1,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function O3(e,t,r){const a=r.inline||!1;r.inline=!1;const n=e(t,r);return r.inline=a,n}const Ra=(e,t,r)=>({children:Sn(t,e[1],r)});function Fa(){return{}}function $a(){return null}function T3(...e){return e.filter(Boolean).join(" ")}function Da(e,t,r){let a=e;const n=t.split(".");for(;n.length&&(a=a[n[0]],void 0!==a);)n.shift();return a||r}function R3(e="",t={}){function r(e,r,...a){const n=Da(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const r=Da(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Da(t,`${e}.component`,e):e}(e,t.overrides),Zt({},r,n,{className:T3(null==r?void 0:r.className,n.className)||void 0}),...a)}function a(e){e=e.replace(zy,"");let a=!1;t.forceInline?a=!0:t.forceBlock||(a=!1===r3.test(e));const n=c(s(a?e:`${e.trimEnd().replace(m3,"")}\n\n`,{inline:a}));for(;"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;const o=t.wrapper||(a?"span":"div");let l;if(n.length>1||t.forceWrapper)l=n;else{if(1===n.length)return l=n[0],"string"==typeof l?r("span",{key:"outer"},l):l;l=null}return h.createElement(o,{key:"outer"},l)}function n(e,r){const n=r.match(Fy);return n?n.reduce((function(r,n,o){const l=n.indexOf("=");if(-1!==l){const s=(i=n.slice(0,l),-1!==i.indexOf("-")&&null===i.match(Wy)&&(i=i.replace(Jy,(function(e,t){return t.toUpperCase()}))),i).trim(),c=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(n.slice(l+1).trim()),u=Mi[s]||s;if("ref"===u)return r;const d=r[u]=function(e,t,r,a){return"style"===t?r.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===t||"src"===t?a(r,e,t):(r.match(Gy)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(e,s,c,t.sanitizer);"string"==typeof d&&(ho.test(d)||bo.test(d))&&(r[u]=h.cloneElement(a(d.trim()),{key:o}))}else"style"!==n&&(r[Mi[n]||n]=!0);var i;return r}),{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||k3,t.slugify=t.slugify||Tr,t.namedCodesToUnicode=t.namedCodesToUnicode?Zt({},Bi,t.namedCodesToUnicode):Bi,t.createElement=t.createElement||h.createElement;const o=[],l={},i={[j.blockQuote]:{match:gt(Du),order:1,parse(e,t,r){const[,a,n]=e[0].replace(Ly,"").match(My);return{alert:a,children:t(n,r)}},render(e,a,n){const o={key:n.key};return e.alert&&(o.className="markdown-alert-"+t.slugify(e.alert.toLowerCase(),Tr),e.children.unshift({attrs:{},children:[{type:j.text,text:e.alert}],noInnerParse:!0,type:j.htmlBlock,tag:"header"})),r("blockquote",o,a(e.children,n))}},[j.breakLine]:{match:Rr(By),order:1,parse:Fa,render:(e,t,a)=>r("br",{key:a.key})},[j.breakThematic]:{match:gt(Iy),order:1,parse:Fa,render:(e,t,a)=>r("hr",{key:a.key})},[j.codeBlock]:{match:gt(Mu),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,a)=>r("pre",{key:a.key},r("code",Zt({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[j.codeFenced]:{match:gt(Lu),order:0,parse:e=>({attrs:n("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:j.codeBlock})},[j.codeInline]:{match:At(Py),order:3,parse:e=>({text:e[2]}),render:(e,t,a)=>r("code",{key:a.key},e.text)},[j.footnote]:{match:gt(Hy),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:$a},[j.footnoteReference]:{match:wt(Zy),order:1,parse:e=>({target:`#${t.slugify(e[1],Tr)}`,text:e[1]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},r("sup",{key:n.key},e.text))},[j.gfmTask]:{match:wt(qy),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,a)=>r("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"})},[j.heading]:{match:gt(t.enforceAtxHeadings?Iu:Bu),order:1,parse:(e,r,a)=>({children:Sn(r,e[2],a),id:t.slugify(e[2],Tr),level:e[1].length}),render:(e,t,a)=>r(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a))},[j.headingSetext]:{match:gt(Pu),order:0,parse:(e,t,r)=>({children:Sn(t,e[1],r),level:"="===e[2]?1:2,type:j.heading})},[j.htmlBlock]:{match:Rr(ho),order:1,parse(e,t,r){const[,a]=e[3].match(g3),o=new RegExp(`^${a}`,"gm"),l=e[3].replace(o,""),i=(s=l,w3.some((e=>e.test(s)))?O3:Sn);var s;const c=e[1].toLowerCase(),u=-1!==Ry.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:n(d,e[2]),noInnerParse:u,tag:d};return r.inAnchor=r.inAnchor||"a"===c,u?p.text=e[3]:p.children=i(t,l,r),r.inAnchor=!1,p},render:(e,t,a)=>r(e.tag,Zt({key:a.key},e.attrs),e.text||(e.children?t(e.children,a):""))},[j.htmlSelfClosing]:{match:Rr(bo),order:1,parse(e){const t=e[1].trim();return{attrs:n(t,e[2]||""),tag:t}},render:(e,t,a)=>r(e.tag,Zt({},e.attrs,{key:a.key}))},[j.htmlComment]:{match:Rr(ju),order:1,parse:()=>({}),render:$a},[j.image]:{match:At(x3),order:1,parse:e=>({alt:e[1],target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[j.link]:{match:wt(E3),order:3,parse:(e,t,r)=>({children:_3(t,e[1],r),target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},a(e.children,n))},[j.linkAngleBraceStyleDetector]:{match:wt(Xy),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],type:j.link})},[j.linkBareUrlDetector]:{match:(e,r)=>r.inAnchor||t.disableAutoLink?null:wt(Yy)(e,r),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],title:void 0,type:j.link})},[j.linkMailtoDetector]:{match:wt(Ky),order:0,parse(e){let t=e[1],r=e[1];return $y.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:j.text}],target:r,type:j.link}}},[j.orderedList]:Pi(r,1),[j.unorderedList]:Pi(r,2),[j.newlineCoalescer]:{match:gt(jy),order:3,parse:Fa,render:()=>"\n"},[j.paragraph]:{match:C3,order:3,parse:Ra,render:(e,t,a)=>r("p",{key:a.key},t(e.children,a))},[j.ref]:{match:wt(Qy),order:0,parse:e=>(l[e[1]]={target:e[2],title:e[4]},{}),render:$a},[j.refImage]:{match:At(e3),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("img",{key:n.key,alt:e.alt,src:t.sanitizer(l[e.ref].target,"img","src"),title:l[e.ref].title}):null},[j.refLink]:{match:wt(t3),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:e[0],ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("a",{key:n.key,href:t.sanitizer(l[e.ref].target,"a","href"),title:l[e.ref].title},a(e.children,n)):r("span",{key:n.key},e.fallbackChildren)},[j.table]:{match:gt(Nu),order:1,parse:S3,render(e,t,a){const n=e;return r("table",{key:a.key},r("thead",null,r("tr",null,n.header.map((function(e,o){return r("th",{key:o,style:Ni(n,o)},t(e,a))})))),r("tbody",null,n.cells.map((function(e,o){return r("tr",{key:o},e.map((function(e,o){return r("td",{key:o,style:Ni(n,o)},t(e,a))})))}))))}},[j.text]:{match:Rr(f3),order:4,parse:e=>({text:e[0].replace(Uy,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},[j.textBolded]:{match:At(s3),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("strong",{key:a.key},t(e.children,a))},[j.textEmphasized]:{match:At(c3),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("em",{key:a.key},t(e.children,a))},[j.textEscaped]:{match:At(p3),order:1,parse:e=>({text:e[1],type:j.text})},[j.textMarked]:{match:At(u3),order:3,parse:Ra,render:(e,t,a)=>r("mark",{key:a.key},t(e.children,a))},[j.textStrikethroughed]:{match:At(d3),order:3,parse:Ra,render:(e,t,a)=>r("del",{key:a.key},t(e.children,a))}};!0===t.disableParsingRawHTML&&(delete i[j.htmlBlock],delete i[j.htmlSelfClosing]);const s=function(e){let t=Object.keys(e);function r(a,n){let o=[];for(n.prevCapture=n.prevCapture||"";a;){let l=0;for(;la(e,t,r)),e,t,r):a(e,t,r)},function e(t,r={}){if(Array.isArray(t)){const a=r.key,n=[];let o=!1;for(let l=0;l{let{children:t="",options:r}=e,a=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,Ty);return h.cloneElement(R3(t,r),a)};function F3(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o-1}var z3=V3;function q3(e,t,r){for(var a=-1,n=null==e?0:e.length;++a=lv){var c=t?null:av(e);if(c)return ov(c);l=!1,n=nv,s=new ev}else s=t?[]:i;e:for(;++afunction(){return t||(0,e[n0(e)[0]])((t={exports:{}}).exports,t),t.exports},r6=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of n0(t))!t6.call(e,n)&&n!==r&&r0(e,n,{get:()=>t[n],enumerable:!(a=Q7(t,n))||a.enumerable});return e},yl=(e,t,r)=>(r=null!=e?J7(e6(e)):{},r6(e&&e.__esModule?r:r0(r,"default",{value:e,enumerable:!0}),e)),n6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],a6=["detail"];function o6(e){const t=n6.filter((t=>void 0!==e[t])).reduce(((t,r)=>({...t,[r]:e[r]})),{});return e instanceof CustomEvent&&a6.filter((t=>void 0!==e[t])).forEach((r=>{t[r]=e[r]})),t}var a0=Ne({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}}),o0=Ne({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=a0();t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}}}),l6=Ne({"node_modules/function-bind/implementation.js"(e,t){var r=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),l=Math.max(0,t.length-o.length),i=[],s=0;s"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},f=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=d(n.prototype))}return h[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=vl(),y=i6(),v=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(e,t){var r,n=e;if(y(g,n)&&(n="%"+(r=g[n])[0]+"%"),y(h,n)){var l=h[n];if(l===p&&(l=f(n)),typeof l>"u"&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:l}}throw new a("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,S,(function(e,t,r,a){n[n.length]=r?x(a,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",l=A("%"+n+"%",t),s=l.name,c=l.value,u=!1,d=l.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var p=1,m=!0;p=r.length){var _=i(c,f);c=(m=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[f]}else m=y(c,f),c=c[f];m&&!u&&(h[s]=c)}}return c}}}),s6=Ne({"node_modules/call-bind/index.js"(e,t){var r=vl(),a=l0(),n=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||r.call(o,n),i=a("%Object.getOwnPropertyDescriptor%",!0),s=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(e){var t=l(r,o,arguments);i&&s&&(i(t,"length").configurable&&s(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var u=function(){return l(r,n,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),c6=Ne({"node_modules/call-bind/callBound.js"(e,t){var r=l0(),a=s6(),n=a(r("String.prototype.indexOf"));t.exports=function(e,t){var o=r(e,!!t);return"function"==typeof o&&n(e,".prototype.")>-1?a(o):o}}}),u6=Ne({"node_modules/has-tostringtag/shams.js"(e,t){var r=a0();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),d6=Ne({"node_modules/is-regex/index.js"(e,t){var r,a,n,o,l=c6(),i=u6()();i&&(r=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),n={},o={toString:s=function(){throw n},valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=s));var s,c=l("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;t.exports=i?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,o)}catch(l){return l===n}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}}}),p6=Ne({"node_modules/is-function/index.js"(e,t){t.exports=function(e){if(!e)return!1;var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString}}),f6=Ne({"node_modules/is-symbol/index.js"(e,t){var r,a,n,o=Object.prototype.toString;o0()()?(r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,n=function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))},t.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return n(e)}catch{return!1}}):t.exports=function(e){return!1}}}),m6=yl(d6()),g6=yl(p6()),h6=yl(f6());function b6(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}var y6="object"==typeof global&&global&&global.Object===Object&&global,v6=y6,E6="object"==typeof self&&self&&self.Object===Object&&self,x6=v6||E6||Function("return this")(),El=x6,w6=El.Symbol,gr=w6,i0=Object.prototype,A6=i0.hasOwnProperty,S6=i0.toString,Fr=gr?gr.toStringTag:void 0;function C6(e){var t=A6.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var a=!0}catch{}var n=S6.call(e);return a&&(t?e[Fr]=r:delete e[Fr]),n}var k6=C6,_6=Object.prototype,O6=_6.toString;function T6(e){return O6.call(e)}var R6=T6,F6="[object Null]",$6="[object Undefined]",Xi=gr?gr.toStringTag:void 0;function D6(e){return null==e?void 0===e?$6:F6:Xi&&Xi in Object(e)?k6(e):R6(e)}var L6=D6,Ji=gr?gr.prototype:void 0;function M6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ji&&Ji.toString;var s0=M6,B6="[object AsyncFunction]",I6="[object Function]",P6="[object GeneratorFunction]",j6="[object Proxy]";function N6(e){if(!s0(e))return!1;var t=L6(e);return t==I6||t==P6||t==B6||t==j6}var H6=N6,Z6=El["__core-js_shared__"],Ma=Z6,Qi=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function V6(e){return!!Qi&&Qi in e}var z6=V6,q6=Function.prototype,U6=q6.toString;function W6(e){if(null!=e){try{return U6.call(e)}catch{}try{return e+""}catch{}}return""}var G6=W6,Y6=/[\\^$.*+?()[\]{}|]/g,K6=/^\[object .+?Constructor\]$/,X6=Function.prototype,J6=Object.prototype,Q6=X6.toString,eE=J6.hasOwnProperty,tE=RegExp("^"+Q6.call(eE).replace(Y6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rE(e){return!(!s0(e)||z6(e))&&(H6(e)?tE:K6).test(G6(e))}var nE=rE;function aE(e,t){return null==e?void 0:e[t]}var oE=aE;function lE(e,t){var r=oE(e,t);return nE(r)?r:void 0}var c0=lE;function iE(e,t){return e===t||e!=e&&t!=t}var sE=iE,cE=c0(Object,"create"),Kr=cE;function uE(){this.__data__=Kr?Kr(null):{},this.size=0}var dE=uE;function pE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fE=pE,mE="__lodash_hash_undefined__",gE=Object.prototype,hE=gE.hasOwnProperty;function bE(e){var t=this.__data__;if(Kr){var r=t[e];return r===mE?void 0:r}return hE.call(t,e)?t[e]:void 0}var yE=bE,vE=Object.prototype,EE=vE.hasOwnProperty;function xE(e){var t=this.__data__;return Kr?void 0!==t[e]:EE.call(t,e)}var wE=xE,AE="__lodash_hash_undefined__";function SE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Kr&&void 0===t?AE:t,this}var CE=SE;function Er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}var BE=ME;function IE(e,t){var r=this.__data__,a=la(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var PE=IE;function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,n=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;lc8(e).replace(/\n\s*/g,"").trim())),d8=function(e,t){const r=t.slice(0,t.indexOf("{")),a=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let n=r;return n=n.replace(e,"function"),n+a},p8=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function d0(e){if(!s8(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=o6(t),r=!0),t=Object.keys(t).reduce(((e,a)=>{try{t[a]&&t[a].toJSON,e[a]=t[a]}catch{r=!0}return e}),{}),r?t:e}var f8=function(e){let t,r,a,n;return function(o,l){try{if(""===o)return n=[],t=new Map([[l,"[]"]]),r=new Map,a=[],l;const i=r.get(this)||this;for(;a.length&&i!==a[0];)a.shift(),n.pop();if("boolean"==typeof l)return l;if(void 0===l)return e.allowUndefined?"_undefined_":void 0;if(null===l)return null;if("number"==typeof l)return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if("bigint"==typeof l)return`_bigint_${l.toString()}`;if("string"==typeof l)return p8.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,m6.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,g6.default)(l)){if(!e.allowFunction)return;const{name:t}=l,r=l.toString();return r.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${t}|${(()=>{}).toString()}`:`_function_${t}|${u8(d8(o,r))}`}if((0,h6.default)(l)){if(!e.allowSymbol)return;const t=Symbol.keyFor(l);return void 0!==t?`_gsymbol_${t}`:`_symbol_${l.toString().slice(7,-1)}`}if(a.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&!e.allowClass)return;const s=t.get(l);if(!s){const i=Array.isArray(l)?l:d0(l);if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&e.allowClass)try{Object.assign(i,{"_constructor-name_":l.constructor.name})}catch{}return n.push(o),a.unshift(i),t.set(l,JSON.stringify(n)),l!==i&&r.set(l,i),i}return`_duplicate_${s}`}catch{return}}},m8={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},g8=(e,t={})=>{const r={...m8,...t};return JSON.stringify(d0(e),f8(r),t.space)};function h8(e){const t=[].forEach,r=[].some,a=typeof window<"u"&&document.body,n=" ";let o,l=!0;function i(r,a){const o=a.appendChild(function(r){const a=document.createElement("li"),o=document.createElement("a");return e.listItemClass&&a.setAttribute("class",e.listItemClass),e.onClick&&(o.onclick=e.onClick),e.includeTitleTags&&o.setAttribute("title",r.textContent),e.includeHtml&&r.childNodes.length?t.call(r.childNodes,(e=>{o.appendChild(e.cloneNode(!0))})):o.textContent=r.textContent,o.setAttribute("href",`${e.basePath}#${r.id}`),o.setAttribute("class",`${e.linkClass+n}node-name--${r.nodeName}${n}${e.extraLinkClasses}`),a.appendChild(o),a}(r));if(r.children.length){const e=s(r.isCollapsed);r.children.forEach((t=>{i(t,e)})),o.appendChild(e)}}function s(t){const r=e.orderedList?"ol":"ul",a=document.createElement(r);let o=e.listClass+n+e.extraListClasses;return t&&(o=o+n+e.collapsibleClass,o=o+n+e.isCollapsedClass),a.setAttribute("class",o),a}function c(t){let r=0;return null!==t&&(r=t.offsetTop,e.hasInnerContainers&&(r+=c(t.offsetParent))),r}function u(e,t){return e&&e.className!==t&&(e.className=t),e}function d(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(u(t,t.className.replace(n+e.isCollapsedClass,"")),d(t.parentNode.parentNode)):t}function p(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||a.scrollTop,t}function m(t,a=p()){let n;return r.call(t,((r,o)=>{if(c(r)>a+e.headingsOffset+10){return n=t[0===o?o:o-1],!0}if(o===t.length-1)return n=t[t.length-1],!0})),n}return{enableTocAnimation:function(){l=!0},disableTocAnimation:function(t){const r=t.target||t.srcElement;"string"!=typeof r.className||-1===r.className.indexOf(e.linkClass)||(l=!1)},render:function(e,t){const r=s(!1);if(t.forEach((e=>{i(e,r)})),o=e||o,null!==o)return o.firstChild&&o.removeChild(o.firstChild),0===t.length?o:o.appendChild(r)},updateToc:function(r){e.positionFixedSelector&&function(){const t=p(),r=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=o.offsetTop),t>e.fixedSidebarOffset?-1===r.className.indexOf(e.positionFixedClass)&&(r.className+=n+e.positionFixedClass):r.className=r.className.replace(n+e.positionFixedClass,"")}();const a=r;if(l&&o&&a.length>0){const r=m(a),l=o.querySelector(`.${e.activeLinkClass}`),i=o.querySelector(`.${e.linkClass}.node-name--${r.nodeName}[href="${e.basePath}#${r.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")}"]`);if(l===i)return;const s=o.querySelectorAll(`.${e.linkClass}`);t.call(s,(t=>{u(t,t.className.replace(n+e.activeLinkClass,""))}));const c=o.querySelectorAll(`.${e.listItemClass}`);t.call(c,(t=>{u(t,t.className.replace(n+e.activeListItemClass,""))})),i&&-1===i.className.indexOf(e.activeLinkClass)&&(i.className+=n+e.activeLinkClass);const p=null==i?void 0:i.parentNode;p&&-1===p.className.indexOf(e.activeListItemClass)&&(p.className+=n+e.activeListItemClass);const h=o.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(h,(t=>{-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=n+e.isCollapsedClass)})),null!=i&&i.nextSibling&&-1!==i.nextSibling.className.indexOf(e.isCollapsedClass)&&u(i.nextSibling,i.nextSibling.className.replace(n+e.isCollapsedClass,"")),d(null==i?void 0:i.parentNode.parentNode)}},getCurrentlyHighlighting:function(){return l},getTopHeader:m,getScrollTop:p,updateUrlHashForHeader:function(e){const t=p(),r=m(e,t);if(!r||t<5)"#"===window.location.hash||""===window.location.hash||window.history.pushState(null,null,"#");else if(r){const e=`#${r.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}}}const b8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,enableUrlHashUpdateOnScroll:!1};function y8(e){const t=[].reduce;function r(e){return e[e.length-1]}function a(e){return+e.nodeName.toUpperCase().replace("H","")}function n(t){if(!function(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const r=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),n={id:t.id,children:[],nodeName:t.nodeName,headingLevel:a(t),textContent:r};return e.includeHtml&&(n.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(n,t):n}return{nestHeadingsArray:function(a){return t.call(a,(function(t,a){const o=n(a);return o&&function(t,a){const o=n(t),l=o.headingLevel;let i=a,s=r(i),c=l-(s?s.headingLevel:0);for(;c>0&&(s=r(i),!s||l!==s.headingLevel);)s&&void 0!==s.children&&(i=s.children),c--;l>=e.collapseDepth&&(o.isCollapsed=!0),i.push(o)}(o,t.nest),t}),{nest:[]})},selectHeadings:function(t,r){let a=r;e.ignoreSelector&&(a=r.split(",").map((function(t){return`${t.trim()}:not(${e.ignoreSelector})`})));try{return t.querySelectorAll(a)}catch{return console.warn(`Headers not found with selector: ${a}`),null}}}}function v8(e){var t=e.duration,r=e.offset;if(!(typeof window>"u"||typeof location>"u")){var a=location.hash?n(location.href):location.href;document.body.addEventListener("click",(function(o){!function(e){return"a"===e.tagName.toLowerCase()&&(e.hash.length>0||"#"===e.href.charAt(e.href.length-1))&&(n(e.href)===a||n(e.href)+"#"===a)}(o.target)||o.target.className.indexOf("no-smooth-scroll")>-1||"#"===o.target.href.charAt(o.target.href.length-2)&&"!"===o.target.href.charAt(o.target.href.length-1)||-1===o.target.className.indexOf(e.linkClass)||E8(o.target.hash,{duration:t,offset:r,callback:function(){!function(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}(o.target.hash)}})}),!1)}function n(e){return e.slice(0,e.lastIndexOf("#"))}}function E8(e,t){var r,a,n=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,r,a){return(e/=a/2)<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i="string"==typeof e?o.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,s="function"==typeof o.duration?o.duration(i):o.duration;function c(e){a=e-r,window.scrollTo(0,o.easing(a,n,i,s)),at.clientHeight){const r=t.querySelector(`.${e.activeListItemClass}`);if(r){const a=r.offsetTop-e.tocScrollOffset;t.scrollTop=a>0?a:0}}}let Ve,Ba,Bt,ot,Mr,z={};function w8(e){z=S8(b8,e||{}),z.scrollSmooth&&(z.duration=z.scrollSmoothDuration,z.offset=z.scrollSmoothOffset,v8(z)),Ve=h8(z),Ba=y8(z),p0();const t=C8(z);if(null===t)return;const r=f0(z);if(null===r||(Bt=Ba.selectHeadings(t,z.headingSelector),null===Bt))return;const a=Ba.nestHeadingsArray(Bt).nest;if(z.skipRendering)return this;Ve.render(r,a);let n=!1;ot=ts((e=>{var t;Ve.updateToc(Bt),!z.disableTocScrollSync&&!n&&x8(z),z.enableUrlHashUpdateOnScroll&&Ve.getCurrentlyHighlighting()&&Ve.updateUrlHashForHeader(Bt);const r=(null==(t=null==e?void 0:e.target)?void 0:t.scrollingElement)&&0===e.target.scrollingElement.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||r)&&(Ve.updateToc(Bt),z.scrollEndCallback&&z.scrollEndCallback(e))}),z.throttleTimeout),ot(),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).addEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).addEventListener("resize",ot,!1)):(document.addEventListener("scroll",ot,!1),document.addEventListener("resize",ot,!1));let o=null;Mr=ts((e=>{n=!0,z.scrollSmooth&&Ve.disableTocAnimation(e),Ve.updateToc(Bt),o&&clearTimeout(o),o=setTimeout((()=>{Ve.enableTocAnimation()}),z.scrollSmoothDuration),setTimeout((()=>{n=!1}),z.scrollSmoothDuration+100)}),z.throttleTimeout),z.scrollContainer&&document.querySelector(z.scrollContainer)?document.querySelector(z.scrollContainer).addEventListener("click",Mr,!1):document.addEventListener("click",Mr,!1)}function p0(){const e=f0(z);null!==e&&(z.skipRendering||e&&(e.innerHTML=""),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).removeEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).removeEventListener("resize",ot,!1),Ve&&document.querySelector(z.scrollContainer).removeEventListener("click",Mr,!1)):(document.removeEventListener("scroll",ot,!1),document.removeEventListener("resize",ot,!1),Ve&&document.removeEventListener("click",Mr,!1)))}const A8=Object.prototype.hasOwnProperty;function S8(...e){const t={};for(let r=0;r{a=l,e.apply(o,r)}),t)):(a=l,e.apply(o,r))}}function C8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function f0(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}const{global:Le}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:fe,once:k8,logger:wl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:_8,composeConfigs:nA,Preview:aA,DocsContext:oA}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:rs,UPDATE_STORY_ARGS:O8,RESET_STORY_ARGS:T8,GLOBALS_UPDATED:ns,NAVIGATE_URL:R8}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var F8=_.div(re,(({theme:e})=>({backgroundColor:"light"===e.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:te(.3,e.color.defaultText),fontSize:e.typography.size.s2}))),m0=e=>a.createElement(F8,{...e,className:"docblock-emptyblock sb-unstyled"}),$8=_(Qn)((({theme:e})=>({fontSize:e.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),D8=_.div((({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),gn=_.div((({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Xa}`]:{margin:0}}))),L8=()=>a.createElement(D8,null,a.createElement(gn,null),a.createElement(gn,{style:{width:"80%"}}),a.createElement(gn,{style:{width:"30%"}}),a.createElement(gn,{style:{width:"80%"}})),Al=({isLoading:e,error:t,language:r,code:n,dark:o,format:l,...i})=>{if(e)return a.createElement(L8,null);if(t)return a.createElement(m0,null,t);let s=a.createElement($8,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?qa.dark:qa.light;return a.createElement(Ys,{theme:Ka(c)},s)};Al.defaultProps={format:!1};var ie=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sl=600,M8=_.h1(re,(({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),B8=_.h2(re,(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:te(.25,e.color.defaultText)}))),I8=_.div((({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},a={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:"light"===e.base?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:"light"===e.base?te(.1,e.color.defaultText):te(.3,e.color.defaultText),backgroundColor:"light"===e.base?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ie("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ie("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ie("div")]:t,[ie("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ie("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ie("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ie("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ie("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ie("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ie("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ie("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ie("img")]:{maxWidth:"100%"},[ie("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":a},[ie("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ie("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":a},[ie("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ie("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ie("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===e.base?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ie("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),P8=_.div((({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sl}px)`]:{}}))),j8=({children:e,toc:t})=>a.createElement(P8,{className:"sbdocs sbdocs-wrapper"},a.createElement(I8,{className:"sbdocs sbdocs-content"},e),t),sa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),N8=({zoom:e,resetZoom:t})=>a.createElement(a.Fragment,null,a.createElement(Ut,{key:"zoomin",onClick:t=>{t.preventDefault(),e(.8)},title:"Zoom in"},a.createElement(Ee,{icon:"zoom"})),a.createElement(Ut,{key:"zoomout",onClick:t=>{t.preventDefault(),e(1.25)},title:"Zoom out"},a.createElement(Ee,{icon:"zoomout"})),a.createElement(Ut,{key:"zoomreset",onClick:e=>{e.preventDefault(),t()},title:"Reset zoom"},a.createElement(Ee,{icon:"zoomreset"}))),H8=_(ra)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Z8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...l})=>a.createElement(H8,{...l},a.createElement(h.Fragment,{key:"left"},e?[1,2,3].map((e=>a.createElement(wu,{key:e}))):a.createElement(N8,{zoom:n,resetZoom:o}))),g0=h.createContext({scale:1}),{window:V8}=Le,z8=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=V8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:100*t+"%",height:100*t+"%",transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...l}=this.props;return a.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:q8}=Le,U8=q8||"iframe.html",yo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,W8=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,l]=h.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:u,renderStoryToElement:d}=e;return h.useEffect((()=>{if(!i||!t.current)return()=>{};let e=t.current,r=d(i,e,{showMain:()=>{},showError:({title:e,description:t})=>l(new Error(`${e} - ${t}`)),showException:e=>l(e)},{autoplay:c,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then((()=>r()))}}),[c,d,i]),o?a.createElement("pre",null,a.createElement(mu,{error:o})):a.createElement(a.Fragment,null,s?a.createElement("style",null,`#${yo(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&a.createElement(Cl,null),a.createElement("div",{ref:t,id:`${yo(e)}-inner`,"data-name":i.name}))},G8=({story:e,height:t="500px"})=>a.createElement("div",{style:{width:"100%",height:t}},a.createElement(g0.Consumer,null,(({scale:t})=>a.createElement(z8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:ku(U8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:t,style:{width:"100%",height:"100%",border:"0 none"}})))),Y8=e=>{let{inline:t}=e;return a.createElement("div",{id:yo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?a.createElement(W8,{...e}):a.createElement(G8,{...e}))},Cl=()=>a.createElement(Cu,null),K8=_.div((({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout:e="padded"})=>"centered"===e||"padded"===e?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout:e="padded"})=>"centered"===e?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{})),as=_(Al)((({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content),color:e.color.lightest,button:{background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content)}}))),X8=_.div((({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...sa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar:e})=>e&&{paddingTop:40})),J8=(e,t,r)=>{switch(!0){case!(!e||!e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:a.createElement(as,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:a.createElement(as,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Q8(e){if(1===h.Children.count(e)){let t=e;if(t.props)return t.props.id}return null}var ex=_(Z8)({position:"absolute",top:0,left:0,right:0,height:40}),tx=_.div({overflow:"hidden",position:"relative"}),vo=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:l=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:u="padded",...d})=>{let[p,m]=h.useState(i),{source:f,actionItem:g}=J8(o,p,m),[b,y]=h.useState(1),v=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[g]:[],[x,w]=h.useState(s?[...s]:[]),k=[...E,...x],{window:S}=Le,C=h.useCallback((async e=>{let{createCopyToClipboardFunction:t}=await Wt((()=>Promise.resolve().then((()=>Jh))),void 0,import.meta.url);t()}),[]);return a.createElement(X8,{withSource:o,withToolbar:l,...d,className:v.join(" ")},l&&a.createElement(ex,{isLoading:e,border:!0,zoom:e=>y(b*e),resetZoom:()=>y(1),storyId:Q8(n),baseUrl:"./iframe.html"}),a.createElement(g0.Provider,{value:{scale:b}},a.createElement(tx,{className:"docs-story",onCopyCapture:o&&(e=>{let t=S.getSelection();t&&"Range"===t.type||(e.preventDefault(),0===x.filter((e=>"Copied"===e.title)).length&&C(f.props.code).then((()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout((()=>w(x.filter((e=>"Copied"!==e.title)))),1500)})))})},a.createElement(K8,{isColumn:t||!Array.isArray(n),columns:r,layout:u},a.createElement(fu.Element,{scale:b},Array.isArray(n)?n.map(((e,t)=>a.createElement("div",{key:t},e))):a.createElement("div",null,n))),a.createElement(Zo,{actionItems:k}))),o&&p&&f)},rx=_(vo)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}}))),nx=()=>a.createElement(rx,{isLoading:!0,withToolbar:!0},a.createElement(Cl,null)),ax=_.table((({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Et({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}}))),ox=({tags:e})=>{let t=(e.params||[]).filter((e=>e.description)),r=0!==t.length,n=null!=e.deprecated,o=null!=e.returns&&null!=e.returns.description;return r||o||n?a.createElement(a.Fragment,null,a.createElement(ax,null,a.createElement("tbody",null,n&&a.createElement("tr",{key:"deprecated"},a.createElement("td",{colSpan:2},a.createElement("strong",null,"Deprecated"),": ",e.deprecated)),r&&t.map((e=>a.createElement("tr",{key:e.name},a.createElement("td",null,a.createElement("code",null,e.name)),a.createElement("td",null,e.description)))),o&&a.createElement("tr",{key:"returns"},a.createElement("td",null,a.createElement("code",null,"Returns")),a.createElement("td",null,e.returns.description))))):null},Eo=8,os=_.div((({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),lx=_.span(Et,(({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ix=_.button((({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),sx=_.div(Et,(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),cx=_.div((({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ux=_(Ee)({height:10,width:10,minWidth:10,marginLeft:4}),dx=()=>a.createElement("span",null,"-"),h0=({text:e,simple:t})=>a.createElement(lx,{simple:t},e),px=Yt(1e3)((e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map((e=>e.length)))}ch`})),fx=e=>{if(!e)return[e];let t=e.split("|").map((e=>e.trim()));return pv(t)},ls=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Eo)),r.map((e=>a.createElement(h0,{key:e,text:""===e?'""':e})))},mx=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,l]=h.useState(!1),[i,s]=h.useState(t||!1);if(null==r)return null;let c="function"==typeof r.toString?r.toString():r;if(null==n){if(/[(){}[\]<>]/.test(c))return a.createElement(h0,{text:c});let e=fx(c),t=e.length;return t>Eo?a.createElement(os,{isExpanded:i},ls(e,i),a.createElement(ix,{onClick:()=>s(!i)},i?"Show less...":`Show ${t-Eo} more...`)):a.createElement(os,null,ls(e))}return a.createElement(vu,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:e=>{l(e)},tooltip:a.createElement(cx,{width:px(n)},a.createElement(Qn,{language:"jsx",format:!1},n))},a.createElement(sx,{className:"sbdocs-expandable"},a.createElement("span",null,c),a.createElement(ux,{icon:o?"arrowup":"arrowdown"})))},Ia=({value:e,initialExpandedArgs:t})=>null==e?a.createElement(dx,null):a.createElement(mx,{value:e,initialExpandedArgs:t}),gx=_.label((({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:te(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${mn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${mn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:mn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:"light"===e.base?`${mn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}}))),hx=e=>"true"===e,bx=({name:e,value:t,onChange:r,onBlur:n,onFocus:o})=>{let l=h.useCallback((()=>r(!1)),[r]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:l},"Set boolean");let i=qe(e),s="string"==typeof t?hx(t):t;return a.createElement(gx,{htmlFor:i,"aria-label":e},a.createElement("input",{id:i,type:"checkbox",onChange:e=>r(e.target.checked),checked:s,role:"switch",name:e,onBlur:n,onFocus:o}),a.createElement("span",{"aria-hidden":"true"},"False"),a.createElement("span",{"aria-hidden":"true"},"True"))},yx=e=>{let[t,r,a]=e.split("-"),n=new Date;return n.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(a,10)),n},vx=e=>{let[t,r]=e.split(":"),a=new Date;return a.setHours(parseInt(t,10)),a.setMinutes(parseInt(r,10)),a},Ex=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},xx=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},wx=_.div((({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===e.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Ax=({name:e,value:t,onChange:r,onFocus:n,onBlur:o})=>{let[l,i]=h.useState(!0),s=h.useRef(),c=h.useRef();h.useEffect((()=>{!1!==l&&(s&&s.current&&(s.current.value=Ex(t)),c&&c.current&&(c.current.value=xx(t)))}),[t]);let u=qe(e);return a.createElement(wx,null,a.createElement(ze.Input,{type:"date",max:"9999-12-31",ref:s,id:`${u}-date`,name:`${u}-date`,onChange:e=>{let a=yx(e.target.value),n=new Date(t);n.setFullYear(a.getFullYear(),a.getMonth(),a.getDate());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),a.createElement(ze.Input,{type:"time",id:`${u}-time`,name:`${u}-time`,ref:c,onChange:e=>{let a=vx(e.target.value),n=new Date(t);n.setHours(a.getHours()),n.setMinutes(a.getMinutes());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),l?null:a.createElement("div",null,"invalid"))},Sx=_.label({display:"flex"}),Cx=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},kx=({name:e,value:t,onChange:r,min:n,max:o,step:l,onBlur:i,onFocus:s})=>{let[c,u]=h.useState("number"==typeof t?t:""),[d,p]=h.useState(!1),[m,f]=h.useState(null),g=h.useCallback((e=>{u(e.target.value);let t=parseFloat(e.target.value);Number.isNaN(t)?f(new Error(`'${e.target.value}' is not a number`)):(r(t),f(null))}),[r,f]),b=h.useCallback((()=>{u("0"),r(0),p(!0)}),[p]),y=h.useRef(null);return h.useEffect((()=>{d&&y.current&&y.current.select()}),[d]),h.useEffect((()=>{c!==("number"==typeof t?t:"")&&u(t)}),[t]),d||void 0!==t?a.createElement(Sx,null,a.createElement(ze.Input,{ref:y,id:qe(e),type:"number",onChange:g,size:"flex",placeholder:"Edit number...",value:c,valid:m?"error":null,autoFocus:d,name:e,min:n,max:o,step:l,onFocus:s,onBlur:i})):a.createElement(ze.Button,{id:jn(e),onClick:b},"Set number")},b0=(e,t)=>{let r=t&&Object.entries(t).find((([t,r])=>r===e));return r?r[0]:void 0},xo=(e,t)=>e&&t?Object.entries(t).filter((t=>e.includes(t[1]))).map((e=>e[0])):[],y0=(e,t)=>e&&t&&e.map((e=>t[e])),_x=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Ox=_.span({}),Tx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),is=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Checkbox with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=xo(r,t),[i,s]=h.useState(l),c=e=>{let r=e.target.value,a=[...i];a.includes(r)?a.splice(a.indexOf(r),1):a.push(r),n(y0(a,t)),s(a)};h.useEffect((()=>{s(xo(r,t))}),[r]);let u=qe(e);return a.createElement(_x,{isInline:o},Object.keys(t).map(((e,t)=>{let r=`${u}-${t}`;return a.createElement(Tx,{key:r,htmlFor:r},a.createElement("input",{type:"checkbox",id:r,name:r,value:e,onChange:c,checked:null==i?void 0:i.includes(e)}),a.createElement(Ox,null,e))})))},Rx=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Fx=_.span({}),$x=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),ss=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Radio with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=b0(r,t),i=qe(e);return a.createElement(Rx,{isInline:o},Object.keys(t).map(((e,r)=>{let o=`${i}-${r}`;return a.createElement($x,{key:o,htmlFor:o},a.createElement("input",{type:"radio",id:o,name:o,value:e,onChange:e=>n(t[e.currentTarget.value]),checked:e===l}),a.createElement(Fx,null,e))})))},Dx={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},v0=_.select(Dx,(({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),E0=_.span((({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}}))),cs="Choose option...",Lx=({name:e,value:t,options:r,onChange:n})=>{let o=b0(t,r)||cs,l=qe(e);return a.createElement(E0,null,a.createElement(Ee,{icon:"arrowdown"}),a.createElement(v0,{id:l,value:o,onChange:e=>{n(r[e.currentTarget.value])}},a.createElement("option",{key:"no-selection",disabled:!0},cs),Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},Mx=({name:e,value:t,options:r,onChange:n})=>{let o=xo(t,r),l=qe(e);return a.createElement(E0,null,a.createElement(v0,{id:l,multiple:!0,value:o,onChange:e=>{let t=Array.from(e.currentTarget.options).filter((e=>e.selected)).map((e=>e.value));n(y0(t,r))}},Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},us=e=>{let{name:t,options:r}=e;return r?e.isMulti?a.createElement(Mx,{...e}):a.createElement(Lx,{...e}):(wl.warn(`Select with no options: ${t}`),a.createElement(a.Fragment,null,"-"))},Bx=(e,t)=>Array.isArray(e)?e.reduce(((e,r)=>(e[(null==t?void 0:t[r])||String(r)]=r,e)),{}):e,Ix={check:is,"inline-check":is,radio:ss,"inline-radio":ss,select:us,"multi-select":us},tr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,options:n?Bx(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=Ix[t];if(l)return a.createElement(l,{...o});throw new Error(`Unknown options type: ${t}`)},kl="value",Px="key",jx="Error",Nx="Object",Hx="Array",Zx="String",Vx="Number",zx="Boolean",qx="Date",Ux="Null",Wx="Undefined",Gx="Function",Yx="Symbol",x0="ADD_DELTA_TYPE",w0="REMOVE_DELTA_TYPE",A0="UPDATE_DELTA_TYPE";function kt(e){return null===e||"object"!=typeof e||Array.isArray(e)||"function"!=typeof e[Symbol.iterator]?Object.prototype.toString.call(e).slice(8,-1):"Iterable"}function S0(e,t){let r=kt(e),a=kt(t);return("Function"===r||"Function"===a)&&a!==r}var _l=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&"function"==typeof e.focus&&e.focus(),r&&t&&"function"==typeof t.focus&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.onSubmit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:a,deep:n}=this.props,{inputRefKey:o,inputRefValue:l}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,a,n,i.key,l.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:l,deep:i}=this.props,s=h.cloneElement(r,{onClick:this.onSubmit}),c=h.cloneElement(n,{onClick:e}),u=o(kl,l,i),d=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let e=o(Px,l,i);p=h.cloneElement(e,{placeholder:"Key",ref:this.refInputKey})}return a.createElement("span",{className:"rejt-add-value-node"},p,d,c,s)}};_l.defaultProps={onlyValue:!1,addButtonElement:a.createElement("button",null,"+"),cancelButtonElement:a.createElement("button",null,"c")};var C0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:w0};a.splice(e,1),this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:a}=this.state,{beforeAddAction:n,logger:o}=this.props;n(t.length,r,a,e).then((()=>{let n=[...t,e];this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(r[r.length-1],n),l({type:x0,keyPath:r,deep:a,key:n.length-1,newValue:e})})).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:A0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)})).catch(a)}))}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:l,getStyle:i,dataType:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,s),p=l(e,t,r,n,s),m=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",1===t.length?"item":"items"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,delimiter:O,ul:R,addForm:M}=d(e,t,r,n,p),T=u(e,t,r,n,p),L=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),j=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A});return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&L,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map(((e,t)=>a.createElement(ca,{key:t,name:t.toString(),data:e,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})))),!T&&o&&a.createElement("div",{className:"rejt-add-form",style:M},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!T&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:l,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=i(e,r,n,o,l);return a.createElement("div",{className:"rejt-array-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};C0.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var k0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{S0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=null,v=null,E=s(e,i,n,o,c);if(r&&!E){let t=m(kl,g,o,e,i,c),r=h.cloneElement(d,{onClick:this.handleEdit}),n=h.cloneElement(p,{onClick:this.handleCancelEdit}),l=h.cloneElement(t,{ref:this.refInput,defaultValue:i});y=a.createElement("span",{className:"rejt-edit-form",style:b.editForm},l," ",n,r),v=null}else{y=a.createElement("span",{className:"rejt-value",style:b.value,onClick:E?null:this.handleEditMode},t);let e=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});v=E?null:e}return a.createElement("li",{className:"rejt-function-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),y,v)}};k0.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var ca=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:l,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k}=this.props,S=()=>!0,C=kt(e);switch(C){case jx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:S,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Nx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Hx:return a.createElement(C0,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Zx:return a.createElement(St,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Vx:return a.createElement(St,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case zx:return a.createElement(St,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case qx:return a.createElement(St,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Ux:return a.createElement(St,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Wx:return a.createElement(St,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Gx:return a.createElement(k0,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,textareaElementGenerator:g,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Yx:return a.createElement(St,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});default:return null}}};ca.defaultProps={keyPath:[],deep:0};var wo=class extends h.Component{constructor(e){super(e);let t=-1===e.deep?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:a,nextDeep:n}=this.state,{beforeAddAction:o,logger:l}=this.props;o(e,a,n,t).then((()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(a[a.length-1],r),l({type:x0,keyPath:a,deep:n,key:e,newValue:t})})).catch(l.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:w0};delete a[e],this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:A0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r()})).catch(a)}))}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:l,dataType:i,getStyle:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=s(e,n,t,r,i),p=Object.getOwnPropertyNames(n),m=l(e,n,t,r,i),f=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",1===p.length?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,addForm:O,ul:R,delimiter:M}=d(e,t,r,n,p),T=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),F=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A}),N=T.map((e=>a.createElement(ca,{key:e,name:e,data:t[e],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})));return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"{"),!L&&j,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},N),!L&&l&&a.createElement("div",{className:"rejt-add-form",style:O},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"}"),!L&&F)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:l,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=l(e,r,n,o,i);return a.createElement("div",{className:"rejt-object-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};wo.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var St=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{S0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=s(e,i,n,o,c),v=r&&!y,E=m(kl,g,o,e,i,c),x=h.cloneElement(d,{onClick:this.handleEdit}),w=h.cloneElement(p,{onClick:this.handleCancelEdit}),k=h.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});return a.createElement("li",{className:"rejt-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," : "),v?a.createElement("span",{className:"rejt-edit-form",style:b.editForm},k," ",w,x):a.createElement("span",{className:"rejt-value",style:b.value,onClick:y?null:this.handleEditMode},String(t)),!y&&!v&&S)}};St.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var Kx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Xx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Jx={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function Qx(e){let t=e;if(0===t.indexOf("function"))return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var _0=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElement:u,textareaElement:d,minusMenuElement:p,plusMenuElement:m,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y,fallback:v=null}=this.props,E=kt(e),x=o;"Boolean"===kt(o)&&(x=()=>o);let w=u;u&&"Function"!==kt(u)&&(w=()=>u);let k=d;return d&&"Function"!==kt(d)&&(k=()=>d),"Object"===E||"Array"===E?a.createElement("div",{className:"rejt-tree"},a.createElement(ca,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElementGenerator:w,textareaElementGenerator:k,minusMenuElement:p,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y})):v}};_0.defaultProps={rootName:"root",isCollapsed:(e,t)=>-1!==t,getStyle:(e,t,r,a,n)=>{switch(n){case"Object":case"Error":return Kx;case"Array":return Xx;default:return Jx}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,a,n)=>Qx(n),inputElement:()=>a.createElement("input",null),textareaElement:()=>a.createElement("textarea",null),fallback:null};var{window:e9}=Le,t9=_.div((({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}}))),Pa=_.button((({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}))),ds=_(Ee)((({theme:e,icon:t,disabled:r})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:r?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":r?{}:{color:"subtract"===t?e.color.negative:e.color.ancillary},"svg + &":{marginLeft:0}}))),ps=_.input((({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===t?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}}))),r9=_(Ut)((({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),n9=_(ze.Textarea)((({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),a9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},o9=e=>{e.currentTarget.dispatchEvent(new e9.KeyboardEvent("keydown",a9))},l9=e=>{e.currentTarget.select()},i9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),fs=({name:e,value:t,onChange:r})=>{let n=tp(),o=h.useMemo((()=>t&&X7(t)),[t]),l=null!=o,[i,s]=h.useState(!l),[c,u]=h.useState(null),d=h.useCallback((e=>{try{e&&r(JSON.parse(e)),u(void 0)}catch(t){u(t)}}),[r]),[p,m]=h.useState(!1),f=h.useCallback((()=>{r({}),m(!0)}),[m]),g=h.useRef(null);if(h.useEffect((()=>{p&&g.current&&g.current.select()}),[p]),!l)return a.createElement(ze.Button,{id:jn(e),onClick:f},"Set object");let b=a.createElement(n9,{ref:g,id:qe(e),name:e,defaultValue:null===t?"":JSON.stringify(t,null,2),onBlur:e=>d(e.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:c?"error":null});return a.createElement(t9,null,["Object","Array"].includes(kt(o))&&a.createElement(r9,{href:"#",onClick:e=>{e.preventDefault(),s((e=>!e))}},a.createElement(Ee,{icon:i?"eyeclose":"eye"}),a.createElement("span",null,"RAW")),i?b:a.createElement(_0,{data:o,rootName:e,onFullyUpdate:r,getStyle:i9(n),cancelButtonElement:a.createElement(Pa,{type:"button"},"Cancel"),editButtonElement:a.createElement(Pa,{type:"submit"},"Save"),addButtonElement:a.createElement(Pa,{type:"submit",primary:!0},"Save"),plusMenuElement:a.createElement(ds,{icon:"add"}),minusMenuElement:a.createElement(ds,{icon:"subtract"}),inputElement:(e,t,r,n)=>n?a.createElement(ps,{onFocus:l9,onBlur:o9}):a.createElement(ps,null),fallback:b}))},s9=_.input((({theme:e,min:t,max:r,value:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:at(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),O0=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),c9=_(O0)((({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+2*t.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),u9=_.div({display:"flex",alignItems:"center",width:"100%"});function d9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var p9=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let c=void 0!==t,u=h.useMemo((()=>d9(l)),[l]);return a.createElement(u9,null,a.createElement(O0,null,n),a.createElement(s9,{id:qe(e),type:"range",onChange:e=>{r(Cx(e.target.value))},name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(c9,{numberOFDecimalsPlaces:u,max:o},c?t.toFixed(u):"--"," / ",o))},f9=_.label({display:"flex"}),m9=_.div((({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0}))),g9=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let[i,s]=h.useState(!1),c=h.useCallback((()=>{r(""),s(!0)}),[s]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:c},"Set string");let u="string"==typeof t;return a.createElement(f9,null,a.createElement(ze.Textarea,{id:qe(e),maxLength:l,onChange:e=>{r(e.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:i,valid:u?null:"error",name:e,value:u?t:"",onFocus:n,onBlur:o}),l&&a.createElement(m9,{isMaxed:(null==t?void 0:t.length)===l},(null==t?void 0:t.length)??0," / ",l))},h9=_(ze.Input)({padding:10});function b9(e){e.forEach((e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}))}var y9=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=h.useRef(null);return h.useEffect((()=>{null==n&&o.current&&(o.current.value=null)}),[n,t]),a.createElement(h9,{ref:o,id:qe(t),type:"file",name:t,multiple:!0,onChange:function(t){if(!t.target.files)return;let r=Array.from(t.target.files).map((e=>URL.createObjectURL(e)));e(r),b9(n)},accept:r,size:"flex"})},v9=h.lazy((()=>Wt((()=>import("./Color-6VNJS4EI-CM_04bzp.js")),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url))),E9=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(v9,{...e})),x9={array:fs,object:fs,boolean:bx,color:E9,date:Ax,number:kx,check:tr,"inline-check":tr,radio:tr,"inline-radio":tr,select:tr,"multi-select":tr,range:p9,text:g9,file:y9},ms=()=>a.createElement(a.Fragment,null,"-"),w9=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=h.useState(!1),[c,u]=h.useState({value:t});h.useEffect((()=>{i||u({value:t})}),[i,t]);let d=h.useCallback((e=>(u({value:e}),r({[o]:e}),e)),[r,o]),p=h.useCallback((()=>s(!1)),[]),m=h.useCallback((()=>s(!0)),[]);if(!l||l.disable)return n?a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(ms,null);let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},g=x9[l.type]||ms;return a.createElement(g,{...f,...l,controlType:l.type})},A9=_.span({fontWeight:"bold"}),S9=_.span((({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"}))),C9=_.div((({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Et({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),k9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0}))),_9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12}))),O9=_.td((({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"}))),hn=e=>{var t;let[r,n]=h.useState(!1),{row:o,updateArgs:l,compact:i,expandable:s,initialExpandedArgs:c}=e,{name:u,description:d}=o,p=o.table||{},m=p.type||o.type,f=p.defaultValue||o.defaultValue,g=null==(t=o.type)?void 0:t.required,b=null!=d&&""!==d;return a.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},a.createElement(O9,{expandable:s},a.createElement(A9,null,u),g?a.createElement(S9,{title:"Required"},"*"):null),i?null:a.createElement("td",null,b&&a.createElement(C9,null,a.createElement(Ju,null,d)),null!=p.jsDocTags?a.createElement(a.Fragment,null,a.createElement(_9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c})),a.createElement(ox,{tags:p.jsDocTags})):a.createElement(k9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c}))),i?null:a.createElement("td",null,a.createElement(Ia,{value:f,initialExpandedArgs:c})),l?a.createElement("td",null,a.createElement(w9,{...e,isHovered:r})):null)},T9=_(Ee)((({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===e.base?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"}))),R9=_.span((({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),F9=_.td((({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}}))),$9=_.td((({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app}))),D9=_.td((()=>({position:"relative"}))),L9=_.tr((({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),gs=_.button((()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}))),ja=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=h.useState(n),s="subsection"===e?$9:F9,c=(null==r?void 0:r.length)||0,u="subsection"===e?`${c} item${1!==c?"s":""}`:"",d=l?"arrowdown":"arrowright",p=`${l?"Hide":"Show"} ${"subsection"===e?c:t} item${1!==c?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(L9,{title:p},a.createElement(s,{colSpan:1},a.createElement(gs,{onClick:e=>i(!l),tabIndex:0},p),a.createElement(R9,null,a.createElement(T9,{icon:d}),t)),a.createElement(D9,{colSpan:o-1},a.createElement(gs,{onClick:e=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:u)),l?r:null)},bn=_.div((({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}}))),ge=_.div((({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"}))),se=_.div((({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3}))),he=[2,4,2,2],M9=()=>a.createElement(a.Fragment,null,a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"})))),B9=_.div((({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),I9=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),P9=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor}))),j9=_.div((({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor}))),N9=_.div((({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25}))),H9=_.div((({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor}))),Z9=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect((()=>{let e=setTimeout((()=>{r(!1)}),100);return()=>clearTimeout(e)}),[]),t?null:a.createElement(B9,{inAddonPanel:e},a.createElement(I9,null,a.createElement(P9,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(j9,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(N9,null,e&&a.createElement(a.Fragment,null,a.createElement(_t,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(Ee,{icon:"video"})," Watch 5m video"),a.createElement(H9,null),a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},V9=_.table((({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:"light"===e.base?te(.25,e.color.defaultText):te(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:"light"===e.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}}))),z9=_(Ut)((({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"}))),q9=_.span({display:"flex",justifyContent:"space-between"}),U9={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,a;return+!(null==(r=t.type)||!r.required)-+!(null==(a=e.type)||!a.required)||e.name.localeCompare(t.name)},none:void 0},W9=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach((([e,t])=>{let{category:a,subcategory:n}=(null==t?void 0:t.table)||{};if(a){let o=r.sections[a]||{ungrouped:[],subsections:{}};if(n){let r=o.subsections[n]||[];r.push({key:e,...t}),o.subsections[n]=r}else o.ungrouped.push({key:e,...t});r.sections[a]=o}else if(n){let a=r.ungroupedSubsections[n]||[];a.push({key:e,...t}),r.ungroupedSubsections[n]=a}else r.ungrouped.push({key:e,...t})}));let a=U9[t],n=e=>a?Object.keys(e).reduce(((t,r)=>({...t,[r]:e[r].sort(a)})),{}):e;return{ungrouped:r.ungrouped.sort(a),ungroupedSubsections:n(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce(((e,t)=>({...e,[t]:{ungrouped:r.sections[t].ungrouped.sort(a),subsections:n(r.sections[t].subsections)}})),{})}},G9=(e,t,r)=>{try{return N0(e,t,r)}catch(a){return k8.warn(a.message),!1}},Y9=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:t}=e;return a.createElement(m0,null,t,"\xa0",a.createElement(_t,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(M9,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=W9(Oy(c,(e=>{var t;return!(null!=(t=null==e?void 0:e.table)&&t.disable)&&G9(e,u||{},d||{})})),i),m=0===p.ungrouped.length,h=0===Object.entries(p.sections).length,f=0===Object.entries(p.ungroupedSubsections).length;if(m&&h&&f)return a.createElement(Z9,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(p.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(ol,null,a.createElement(V9,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(q9,null,"Control"," ",!s&&r&&a.createElement(z9,{onClick:()=>r(),title:"Reset controls"},a.createElement(Ee,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(p.ungroupedSubsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y})))))),Object.entries(p.sections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"section",colSpan:g},t.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(t.subsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y}))))))))))))};_.div((({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),_.div(re,(({theme:e})=>({...sa(e),margin:"25px 0 40px",padding:"30px 20px"}))),_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}))),_.div((({theme:e})=>({color:"light"===e.base?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),_.div((({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),_.div({display:"flex",flexDirection:"row"}),_.div((({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}))),_.div((({theme:e})=>({...sa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),_.div({flex:1,display:"flex",flexDirection:"row"}),_.div({display:"flex",alignItems:"flex-start"}),_.div({flex:"0 0 30%"}),_.div({flex:1}),_.div((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div((({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}))),_.div((({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}))),_.div((({theme:e})=>({...sa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),_.div({display:"flex",flexFlow:"row wrap"});var K9=e=>`anchor--${e}`,T0=({storyId:e,children:t})=>a.createElement("div",{id:K9(e),className:"sb-anchor"},t);Le&&void 0===Le.__DOCS_CONTEXT__&&(Le.__DOCS_CONTEXT__=h.createContext(null),Le.__DOCS_CONTEXT__.displayName="DocsContext");var ke=Le?Le.__DOCS_CONTEXT__:h.createContext(null),an=(e,t)=>h.useContext(ke).resolveOf(e,t);function X9(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function J9(e,t){let r=Ol([e],t);return r&&r[0]}function Ol(e,t){let[r,a]=h.useState({});return h.useEffect((()=>{Promise.all(e.map((async e=>{let r=await t.loadStory(e);a((t=>t[e]===r?t:{...t,[e]:r}))})))})),e.map((e=>{if(r[e])return r[e];try{return t.storyById(e)}catch{return null}}))}function R0(e){return g8(e)}var F0=h.createContext({sources:{}}),$0="--unknown--",Q9=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect((()=>{let e=(e,t=null,r=!1)=>{let{id:a,args:o,source:l,format:i}="string"==typeof e?{id:e,source:t,format:r}:e,s=o?R0(o):$0;n((e=>({...e,[a]:{...e[a],[s]:{code:l,format:i}}})))};return t.on(Bl,e),()=>t.off(Bl,e)}),[]),a.createElement(F0.Provider,{value:{sources:r}},e)},ew=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(ew||{}),tw=e=>{let t=e.map((e=>{var t,r;return null==(r=null==(t=e.parameters.docs)?void 0:t.source)?void 0:r.state})).filter(Boolean);return 0===t.length?"closed":t[0]},rw=(e,t,r)=>{let{sources:a}=r,n=null==a?void 0:a[e];return(null==n?void 0:n[R0(t)])||(null==n?void 0:n[$0])||{code:""}},nw=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:a})=>{var n,o,l,i,s,c;let{__isArgsStory:u}=t.parameters,d=(null==(n=t.parameters.docs)?void 0:n.source)||{},p=r||d.type||pa.AUTO;if(void 0!==d.code)return d.code;let m=p===pa.DYNAMIC||p===pa.AUTO&&e&&u?e:d.originalSource||"";return d.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block `),null!=(o=t.parameters.docs)&&o.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. diff --git a/storybook-static/assets/index-DcmRRetP.js.LICENSE.txt b/storybook-static/assets/index-u2PVOEPH.js.LICENSE.txt similarity index 100% rename from storybook-static/assets/index-DcmRRetP.js.LICENSE.txt rename to storybook-static/assets/index-u2PVOEPH.js.LICENSE.txt diff --git a/storybook-static/assets/preview-CaQ1ymDy.js b/storybook-static/assets/preview-BlWnjhM1.js similarity index 67% rename from storybook-static/assets/preview-CaQ1ymDy.js rename to storybook-static/assets/preview-BlWnjhM1.js index 90558cb634..d07d4e518b 100644 --- a/storybook-static/assets/preview-CaQ1ymDy.js +++ b/storybook-static/assets/preview-BlWnjhM1.js @@ -1 +1 @@ -const __vite__mapDeps=(e,s=__vite__mapDeps,r=s.f||(s.f=["./DocsRenderer-NNNQARDV-BeUXSf0N.js","./iframe-Cbd_NVaI.js","./index-BP8_t0zE.js","./react-18-Bze0iTLm.js","./index-BBRV8eG_.js","./index-DcmRRetP.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js"]))=>e.map((e=>r[e]));import{_ as e}from"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:s}=await e((()=>import("./DocsRenderer-NNNQARDV-BeUXSf0N.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return new s}}};export{a as parameters}; \ No newline at end of file +const __vite__mapDeps=(e,s=__vite__mapDeps,r=s.f||(s.f=["./DocsRenderer-NNNQARDV-B38O8R_S.js","./iframe-QafAnwiH.js","./index-BP8_t0zE.js","./react-18-Bze0iTLm.js","./index-BBRV8eG_.js","./index-u2PVOEPH.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js"]))=>e.map((e=>r[e]));import{_ as e}from"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:s}=await e((()=>import("./DocsRenderer-NNNQARDV-B38O8R_S.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return new s}}};export{a as parameters}; \ No newline at end of file diff --git a/storybook-static/assets/syntaxhighlighter-MJWPISIS-D6eTHbYz.js b/storybook-static/assets/syntaxhighlighter-MJWPISIS-CxDMJmvs.js similarity index 77% rename from storybook-static/assets/syntaxhighlighter-MJWPISIS-D6eTHbYz.js rename to storybook-static/assets/syntaxhighlighter-MJWPISIS-CxDMJmvs.js index 37eb2bc458..47a12ed9fd 100644 --- a/storybook-static/assets/syntaxhighlighter-MJWPISIS-D6eTHbYz.js +++ b/storybook-static/assets/syntaxhighlighter-MJWPISIS-CxDMJmvs.js @@ -1 +1 @@ -import{S as g,c as h,s as u}from"./index-DcmRRetP.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,h as createCopyToClipboardFunction,u as default}; \ No newline at end of file +import{S as g,c as h,s as u}from"./index-u2PVOEPH.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,h as createCopyToClipboardFunction,u as default}; \ No newline at end of file diff --git a/storybook-static/assets/welcome-C8BCaCw_.js b/storybook-static/assets/welcome-CcTTxTtu.js similarity index 95% rename from storybook-static/assets/welcome-C8BCaCw_.js rename to storybook-static/assets/welcome-CcTTxTtu.js index 3815793e9a..c9acb7aa1c 100644 --- a/storybook-static/assets/welcome-C8BCaCw_.js +++ b/storybook-static/assets/welcome-CcTTxTtu.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{M as a,d as r}from"./index-DcmRRetP.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./index-BP8_t0zE.js";import"./iframe-Cbd_NVaI.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";const i="# Platform Components\n\nA collection of react components for reuse across the platform. Built with [Theme UI](https://theme-ui.com/) for styling.\n\nThese components are stored within the [Community Platform monorepo](https://github.com/ONEARMY/community-platform) and configured as a standalone package using [Yarn workspaces](https://yarnpkg.com/features/workspaces/). \nThe aim of packaging these components separately is to:\n\n1. Encourage separation between presentation layer and business logic\n2. Reduce the overhead for contributors looking to work **only** on the component layer without needing to spin up the entire application locally.\n\nWe are using [Storybook](https://storybook.js.org/) to provide a browser accessible interface for our components.\n\n> Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.\n\n(Optional) For anyone unfamiliar with Storybook looking to better understand the tool, we recommend reading their guide on [What's a Story](https://storybook.js.org/docs/react/get-started/whats-a-story).\n\n## Getting started\n\nAfter [cloning the repo](https://github.com/ONEARMY/community-platform), you can start the Storybook instance, which will make the application available in your browser at [http://localhost:6006](http://localhost:6006/).\n\n```\ncd ./packages/components\nyarn install\nyarn start\n```\n\n## Creating a new Component\n\nYou can quickly create a new component using the command `yarn new-component MyNewComponentName`, which\nwill generate the following items:\n\n```\nsrc/\n MyNewComponentName/\n MyNewComponentName.tsx # Component\n MyNewComponentName.test.tsx # Storybook documentation\n MyNewComponentName.stories.tsx # Storybook documentation\n```\n";function e(t){return o.jsxs(o.Fragment,{children:[o.jsx(a,{title:"Welcome"}),"\n",o.jsx(r,{children:i})]})}function C(t={}){const{wrapper:n}=Object.assign({},s(),t.components);return n?o.jsx(n,Object.assign({},t,{children:o.jsx(e,t)})):e()}export{C as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{M as a,d as r}from"./index-u2PVOEPH.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./index-BP8_t0zE.js";import"./iframe-QafAnwiH.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";const i="# Platform Components\n\nA collection of react components for reuse across the platform. Built with [Theme UI](https://theme-ui.com/) for styling.\n\nThese components are stored within the [Community Platform monorepo](https://github.com/ONEARMY/community-platform) and configured as a standalone package using [Yarn workspaces](https://yarnpkg.com/features/workspaces/). \nThe aim of packaging these components separately is to:\n\n1. Encourage separation between presentation layer and business logic\n2. Reduce the overhead for contributors looking to work **only** on the component layer without needing to spin up the entire application locally.\n\nWe are using [Storybook](https://storybook.js.org/) to provide a browser accessible interface for our components.\n\n> Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.\n\n(Optional) For anyone unfamiliar with Storybook looking to better understand the tool, we recommend reading their guide on [What's a Story](https://storybook.js.org/docs/react/get-started/whats-a-story).\n\n## Getting started\n\nAfter [cloning the repo](https://github.com/ONEARMY/community-platform), you can start the Storybook instance, which will make the application available in your browser at [http://localhost:6006](http://localhost:6006/).\n\n```\ncd ./packages/components\nyarn install\nyarn start\n```\n\n## Creating a new Component\n\nYou can quickly create a new component using the command `yarn new-component MyNewComponentName`, which\nwill generate the following items:\n\n```\nsrc/\n MyNewComponentName/\n MyNewComponentName.tsx # Component\n MyNewComponentName.test.tsx # Storybook documentation\n MyNewComponentName.stories.tsx # Storybook documentation\n```\n";function e(t){return o.jsxs(o.Fragment,{children:[o.jsx(a,{title:"Welcome"}),"\n",o.jsx(r,{children:i})]})}function C(t={}){const{wrapper:n}=Object.assign({},s(),t.components);return n?o.jsx(n,Object.assign({},t,{children:o.jsx(e,t)})):e()}export{C as default}; \ No newline at end of file diff --git a/storybook-static/iframe.html b/storybook-static/iframe.html index e6b5db49e6..4e42dad367 100644 --- a/storybook-static/iframe.html +++ b/storybook-static/iframe.html @@ -359,7 +359,7 @@ } - + diff --git a/storybook-static/project.json b/storybook-static/project.json index 6e412af958..45762ba314 100644 --- a/storybook-static/project.json +++ b/storybook-static/project.json @@ -1 +1 @@ -{"generatedAt":1734507755487,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"4.5.1"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.20","storybookVersionSpecifier":"^7.4.1","language":"typescript","storybookPackages":{"storybook":{"version":"7.6.20"},"@storybook/addon-actions":{"version":"7.6.20"},"@storybook/addon-essentials":{"version":"7.6.20"},"@storybook/addon-links":{"version":"7.6.20"},"@storybook/addon-mdx-gfm":{"version":"7.6.20"},"@storybook/addons":{"version":"7.6.20"},"@storybook/react":{"version":"7.6.20"},"@storybook/react-vite":{"version":"7.6.20"},"@storybook/theming":{"version":"7.6.20"},"eslint-plugin-storybook":{"version":"0.6.15"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null},"chromatic":{"version":"11.18.1","versionSpecifier":"^11.4.0"}}} +{"generatedAt":1734517582135,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"4.5.1"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.20","storybookVersionSpecifier":"^7.4.1","language":"typescript","storybookPackages":{"storybook":{"version":"7.6.20"},"@storybook/addon-actions":{"version":"7.6.20"},"@storybook/addon-essentials":{"version":"7.6.20"},"@storybook/addon-links":{"version":"7.6.20"},"@storybook/addon-mdx-gfm":{"version":"7.6.20"},"@storybook/addons":{"version":"7.6.20"},"@storybook/react":{"version":"7.6.20"},"@storybook/react-vite":{"version":"7.6.20"},"@storybook/theming":{"version":"7.6.20"},"eslint-plugin-storybook":{"version":"0.6.15"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null},"chromatic":{"version":"11.18.1","versionSpecifier":"^11.4.0"}}}