@epic-web/workshop-app 5.28.0 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/_-DTLUa7j2.js +2 -0
- package/build/client/assets/_-DTLUa7j2.js.map +1 -0
- package/build/client/assets/{_basePickBy-lB0X5x6U.js → _basePickBy-Bkju64MX.js} +2 -2
- package/build/client/assets/{_basePickBy-lB0X5x6U.js.map → _basePickBy-Bkju64MX.js.map} +1 -1
- package/build/client/assets/{_baseUniq-BOjGYEEK.js → _baseUniq-Cp1g4BpN.js} +2 -2
- package/build/client/assets/{_baseUniq-BOjGYEEK.js.map → _baseUniq-Cp1g4BpN.js.map} +1 -1
- package/build/client/assets/_exerciseNumber-Co7M7Ztw.js +2 -0
- package/build/client/assets/_exerciseNumber-Co7M7Ztw.js.map +1 -0
- package/build/client/assets/_exerciseNumber_._stepNumber-Don1A9mU.js +2 -0
- package/build/client/assets/_exerciseNumber_._stepNumber-Don1A9mU.js.map +1 -0
- package/build/client/assets/_exerciseNumber_.finished-BqsavTTe.js +2 -0
- package/build/client/assets/_exerciseNumber_.finished-BqsavTTe.js.map +1 -0
- package/build/client/assets/_layout-BFto7KzZ.js +2 -0
- package/build/client/assets/_layout-BFto7KzZ.js.map +1 -0
- package/build/client/assets/_layout-BvOre76Q.js +2 -0
- package/build/client/assets/_layout-BvOre76Q.js.map +1 -0
- package/build/client/assets/_layout-CSP6lWdg.js +2 -0
- package/build/client/assets/_layout-CSP6lWdg.js.map +1 -0
- package/build/client/assets/_layout-DDOZBbUH.js +6 -0
- package/build/client/assets/_layout-DDOZBbUH.js.map +1 -0
- package/build/client/assets/accordion-BNzI0wOK.js +2 -0
- package/build/client/assets/{accordion-CpiLc1m2.js.map → accordion-BNzI0wOK.js.map} +1 -1
- package/build/client/assets/account-2uOW4wHE.js +2 -0
- package/build/client/assets/account-2uOW4wHE.js.map +1 -0
- package/build/client/assets/app-DfAmumll.js +2 -0
- package/build/client/assets/app-DfAmumll.js.map +1 -0
- package/build/client/assets/{arc-DmQZ2TPB.js → arc-BgUWL_JM.js} +2 -2
- package/build/client/assets/{arc-DmQZ2TPB.js.map → arc-BgUWL_JM.js.map} +1 -1
- package/build/client/assets/architectureDiagram-IEHRJDOE-VEDL5YJR.js +37 -0
- package/build/client/assets/{architectureDiagram-IEHRJDOE-BqPvrjLh.js.map → architectureDiagram-IEHRJDOE-VEDL5YJR.js.map} +1 -1
- package/build/client/assets/{blockDiagram-JOT3LUYC-D8OFd78i.js → blockDiagram-JOT3LUYC-CJojWhFE.js} +3 -3
- package/build/client/assets/{blockDiagram-JOT3LUYC-D8OFd78i.js.map → blockDiagram-JOT3LUYC-CJojWhFE.js.map} +1 -1
- package/build/client/assets/button-DRpue1NG.js +2 -0
- package/build/client/assets/button-DRpue1NG.js.map +1 -0
- package/build/client/assets/{c4Diagram-VJAJSXHY-DjROjsr_.js → c4Diagram-VJAJSXHY-CDiBL4DZ.js} +3 -3
- package/build/client/assets/{c4Diagram-VJAJSXHY-DjROjsr_.js.map → c4Diagram-VJAJSXHY-CDiBL4DZ.js.map} +1 -1
- package/build/client/assets/channel-CAodiiwJ.js +2 -0
- package/build/client/assets/{channel-DnqeaSfB.js.map → channel-CAodiiwJ.js.map} +1 -1
- package/build/client/assets/{chunk-4BMEZGHF-CNL-bCj2.js → chunk-4BMEZGHF-Dn8dm6h4.js} +2 -2
- package/build/client/assets/{chunk-4BMEZGHF-CNL-bCj2.js.map → chunk-4BMEZGHF-Dn8dm6h4.js.map} +1 -1
- package/build/client/assets/{chunk-A2AXSNBT-PeSyIKDm.js → chunk-A2AXSNBT-4MnudWit.js} +2 -2
- package/build/client/assets/{chunk-A2AXSNBT-PeSyIKDm.js.map → chunk-A2AXSNBT-4MnudWit.js.map} +1 -1
- package/build/client/assets/{chunk-AEK57VVT-B1JqGB_s.js → chunk-AEK57VVT-CqDnkZ4u.js} +2 -2
- package/build/client/assets/{chunk-AEK57VVT-B1JqGB_s.js.map → chunk-AEK57VVT-CqDnkZ4u.js.map} +1 -1
- package/build/client/assets/{chunk-D6G4REZN-C1e0nCkL.js → chunk-D6G4REZN-Brt3as5d.js} +2 -2
- package/build/client/assets/{chunk-D6G4REZN-C1e0nCkL.js.map → chunk-D6G4REZN-Brt3as5d.js.map} +1 -1
- package/build/client/assets/chunk-QMGIS6GS-CTjj1G71.js +44 -0
- package/build/client/assets/chunk-QMGIS6GS-CTjj1G71.js.map +1 -0
- package/build/client/assets/{chunk-RZ5BOZE2-D5pIwNeA.js → chunk-RZ5BOZE2-DRDeFo9p.js} +2 -2
- package/build/client/assets/{chunk-RZ5BOZE2-D5pIwNeA.js.map → chunk-RZ5BOZE2-DRDeFo9p.js.map} +1 -1
- package/build/client/assets/{chunk-XZIHB7SX-FbrNggxP.js → chunk-XZIHB7SX-jEJwVQJf.js} +2 -2
- package/build/client/assets/{chunk-XZIHB7SX-FbrNggxP.js.map → chunk-XZIHB7SX-jEJwVQJf.js.map} +1 -1
- package/build/client/assets/classDiagram-GIVACNV2-H_7kh---.js +2 -0
- package/build/client/assets/{classDiagram-GIVACNV2-cXWx-aYi.js.map → classDiagram-GIVACNV2-H_7kh---.js.map} +1 -1
- package/build/client/assets/classDiagram-v2-COTLJTTW-H_7kh---.js +2 -0
- package/build/client/assets/{classDiagram-v2-COTLJTTW-cXWx-aYi.js.map → classDiagram-v2-COTLJTTW-H_7kh---.js.map} +1 -1
- package/build/client/assets/clone-DRQ0Dnbp.js +2 -0
- package/build/client/assets/{clone-Bj8ANPCv.js.map → clone-DRQ0Dnbp.js.map} +1 -1
- package/build/client/assets/dagre-OKDRZEBW-BPnUPPO5.js +5 -0
- package/build/client/assets/{dagre-OKDRZEBW-DT9ZQRxf.js.map → dagre-OKDRZEBW-BPnUPPO5.js.map} +1 -1
- package/build/client/assets/diagram-SSKATNLV-Bh_ZXdjr.js +44 -0
- package/build/client/assets/{diagram-SSKATNLV-CcKCni9R.js.map → diagram-SSKATNLV-Bh_ZXdjr.js.map} +1 -1
- package/build/client/assets/diagram-VNBRO52H-D5zqYvJa.js +25 -0
- package/build/client/assets/{diagram-VNBRO52H-DWoRAiqO.js.map → diagram-VNBRO52H-D5zqYvJa.js.map} +1 -1
- package/build/client/assets/diff-CQ7A0nZj.js +2 -0
- package/build/client/assets/diff-CQ7A0nZj.js.map +1 -0
- package/build/client/assets/{diff-D5_VwPLF.js → diff-CtGU9cxI.js} +2 -2
- package/build/client/assets/diff-CtGU9cxI.js.map +1 -0
- package/build/client/assets/discord-91JJKnJ5.js +2 -0
- package/build/client/assets/discord-91JJKnJ5.js.map +1 -0
- package/build/client/assets/discord-D4appJa-.js +2 -0
- package/build/client/assets/discord-D4appJa-.js.map +1 -0
- package/build/client/assets/entry.client-uKxtCCau.js +35 -0
- package/build/client/assets/entry.client-uKxtCCau.js.map +1 -0
- package/build/client/assets/{epic-video-CmlkW6Rw.js → epic-video-D_3otytp.js} +3 -3
- package/build/client/assets/{epic-video-CmlkW6Rw.js.map → epic-video-D_3otytp.js.map} +1 -1
- package/build/client/assets/{erDiagram-Q7BY3M3F-DXkEmvKk.js → erDiagram-Q7BY3M3F-BxueSNDf.js} +3 -3
- package/build/client/assets/{erDiagram-Q7BY3M3F-DXkEmvKk.js.map → erDiagram-Q7BY3M3F-BxueSNDf.js.map} +1 -1
- package/build/client/assets/error-boundary-BLyHIxcu.js +2 -0
- package/build/client/assets/error-boundary-BLyHIxcu.js.map +1 -0
- package/build/client/assets/finished-BiOz59BB.js +2 -0
- package/build/client/assets/finished-BiOz59BB.js.map +1 -0
- package/build/client/assets/{flowDiagram-4HSFHLVR-DCodZaNW.js → flowDiagram-4HSFHLVR-CfL3E-FD.js} +3 -3
- package/build/client/assets/{flowDiagram-4HSFHLVR-DCodZaNW.js.map → flowDiagram-4HSFHLVR-CfL3E-FD.js.map} +1 -1
- package/build/client/assets/ganttDiagram-APWFNJXF-DxEqrjXE.js +258 -0
- package/build/client/assets/{ganttDiagram-APWFNJXF-TfB6wYvN.js.map → ganttDiagram-APWFNJXF-DxEqrjXE.js.map} +1 -1
- package/build/client/assets/gitGraphDiagram-7IBYFJ6S-csni0XOM.js +66 -0
- package/build/client/assets/{gitGraphDiagram-7IBYFJ6S-D2NQnQv2.js.map → gitGraphDiagram-7IBYFJ6S-csni0XOM.js.map} +1 -1
- package/build/client/assets/{graph-eJUngNSH.js → graph-DiSezMy_.js} +2 -2
- package/build/client/assets/{graph-eJUngNSH.js.map → graph-DiSezMy_.js.map} +1 -1
- package/build/client/assets/index-AKpqKc27.js +2 -0
- package/build/client/assets/index-AKpqKc27.js.map +1 -0
- package/build/client/assets/index-BGtlU-cD.js +2 -0
- package/build/client/assets/index-BGtlU-cD.js.map +1 -0
- package/build/client/assets/index-BP1ceC2h.js +10 -0
- package/build/client/assets/index-BP1ceC2h.js.map +1 -0
- package/build/client/assets/index-BSJLLJJ3.js +2 -0
- package/build/client/assets/index-BSJLLJJ3.js.map +1 -0
- package/build/client/assets/index-C0Fh_zu0.js +36 -0
- package/build/client/assets/{index-DLC5u33j.js.map → index-C0Fh_zu0.js.map} +1 -1
- package/build/client/assets/index-Co8qgD4k.js +2 -0
- package/build/client/assets/{index-BmMpCvYx.js.map → index-Co8qgD4k.js.map} +1 -1
- package/build/client/assets/index-D0dQzJhy.js +2 -0
- package/build/client/assets/index-D0dQzJhy.js.map +1 -0
- package/build/client/assets/index-DJsDENYs.js +42 -0
- package/build/client/assets/{index-Do-KWT0a.js.map → index-DJsDENYs.js.map} +1 -1
- package/build/client/assets/index-DWV7tDz3.js +3 -0
- package/build/client/assets/{index-DvQyydjU.js.map → index-DWV7tDz3.js.map} +1 -1
- package/build/client/assets/infoDiagram-PH2N3AL5-Dr2v4fFk.js +3 -0
- package/build/client/assets/{infoDiagram-PH2N3AL5-D-nEozcT.js.map → infoDiagram-PH2N3AL5-Dr2v4fFk.js.map} +1 -1
- package/build/client/assets/{journeyDiagram-U35MCT3I-Dc8g8jIX.js → journeyDiagram-U35MCT3I-iX4x5HVK.js} +3 -3
- package/build/client/assets/{journeyDiagram-U35MCT3I-Dc8g8jIX.js.map → journeyDiagram-U35MCT3I-iX4x5HVK.js.map} +1 -1
- package/build/client/assets/jsx-runtime-BjG_zV1W.js +10 -0
- package/build/client/assets/jsx-runtime-BjG_zV1W.js.map +1 -0
- package/build/client/assets/{kanban-definition-NDS4AKOZ-BwwcaZU2.js → kanban-definition-NDS4AKOZ-BwP5uDj3.js} +3 -3
- package/build/client/assets/{kanban-definition-NDS4AKOZ-BwwcaZU2.js.map → kanban-definition-NDS4AKOZ-BwP5uDj3.js.map} +1 -1
- package/build/client/assets/l-CVlzRdDg.js +2 -0
- package/build/client/assets/l-CVlzRdDg.js.map +1 -0
- package/build/client/assets/{layout-BAeq0-Is.js → layout-X8Y3Cf_B.js} +2 -2
- package/build/client/assets/{layout-BAeq0-Is.js.map → layout-X8Y3Cf_B.js.map} +1 -1
- package/build/client/assets/{linear-LWRPSVMz.js → linear-1DrdUlCY.js} +2 -2
- package/build/client/assets/{linear-LWRPSVMz.js.map → linear-1DrdUlCY.js.map} +1 -1
- package/build/client/assets/loading-CXEQXwx8.js +2 -0
- package/build/client/assets/{loading-b1FV2pQh.js.map → loading-CXEQXwx8.js.map} +1 -1
- package/build/client/assets/login-CaIyI5Cd.js +2 -0
- package/build/client/assets/login-CaIyI5Cd.js.map +1 -0
- package/build/client/assets/manifest-953eedfa.js +1 -0
- package/build/client/assets/mdx-DD5XL3ew.js +3 -0
- package/build/client/assets/mdx-DD5XL3ew.js.map +1 -0
- package/build/client/assets/{mermaid.core-q9C-HfFu.js → mermaid.core-D4QVSd3D.js} +5 -5
- package/build/client/assets/{mermaid.core-q9C-HfFu.js.map → mermaid.core-D4QVSd3D.js.map} +1 -1
- package/build/client/assets/mindmap-definition-ALO5MXBD-tl5KlWaB.js +96 -0
- package/build/client/assets/{mindmap-definition-ALO5MXBD-BhzLy0Zl.js.map → mindmap-definition-ALO5MXBD-tl5KlWaB.js.map} +1 -1
- package/build/client/assets/misc-yfWFSwMN.js +2 -0
- package/build/client/assets/{misc-2sBiisF5.js.map → misc-yfWFSwMN.js.map} +1 -1
- package/build/client/assets/nav-chevrons-CokHxUSB.js +2 -0
- package/build/client/assets/nav-chevrons-CokHxUSB.js.map +1 -0
- package/build/client/assets/onboarding-DyrGJaVn.js +2 -0
- package/build/client/assets/onboarding-DyrGJaVn.js.map +1 -0
- package/build/client/assets/online-CFV79-RX.js +2 -0
- package/build/client/assets/{online-DZKJk3C2.js.map → online-CFV79-RX.js.map} +1 -1
- package/build/client/assets/pe-C53l4u-6.js +2 -0
- package/build/client/assets/{pe-BShc2dvc.js.map → pe-C53l4u-6.js.map} +1 -1
- package/build/client/assets/pieDiagram-IB7DONF6-y5DqPNpS.js +31 -0
- package/build/client/assets/{pieDiagram-IB7DONF6-CaTGj8RH.js.map → pieDiagram-IB7DONF6-y5DqPNpS.js.map} +1 -1
- package/build/client/assets/preferences-C2zlOkAS.js +2 -0
- package/build/client/assets/preferences-C2zlOkAS.js.map +1 -0
- package/build/client/assets/{presence-C9bUSihT.js → presence-BoFXYAd7.js} +3 -3
- package/build/client/assets/{presence-C9bUSihT.js.map → presence-BoFXYAd7.js.map} +1 -1
- package/build/client/assets/preview-CE_VqYU4.js +2 -0
- package/build/client/assets/preview-CE_VqYU4.js.map +1 -0
- package/build/client/assets/product-TKJyOyif.js +2 -0
- package/build/client/assets/{product-DJOWNuL-.js.map → product-TKJyOyif.js.map} +1 -1
- package/build/client/assets/progress-CtGAFS2P.js +2 -0
- package/build/client/assets/{progress-BJ4ADF-s.js.map → progress-CtGAFS2P.js.map} +1 -1
- package/build/client/assets/progress-bar-DTYORRrG.js +2 -0
- package/build/client/assets/progress-bar-DTYORRrG.js.map +1 -0
- package/build/client/assets/{quadrantDiagram-7GDLP6J5-B4Od6z6p.js → quadrantDiagram-7GDLP6J5-ymq7Ot51.js} +3 -3
- package/build/client/assets/{quadrantDiagram-7GDLP6J5-B4Od6z6p.js.map → quadrantDiagram-7GDLP6J5-ymq7Ot51.js.map} +1 -1
- package/build/client/assets/{radar-MK3ICKWK-CENXhI0E.js → radar-MK3ICKWK-B8xuvUo7.js} +2 -2
- package/build/client/assets/{radar-MK3ICKWK-CENXhI0E.js.map → radar-MK3ICKWK-B8xuvUo7.js.map} +1 -1
- package/build/client/assets/{requirementDiagram-KVF5MWMF-_w0WuUxy.js → requirementDiagram-KVF5MWMF-B4D4Pi12.js} +3 -3
- package/build/client/assets/{requirementDiagram-KVF5MWMF-_w0WuUxy.js.map → requirementDiagram-KVF5MWMF-B4D4Pi12.js.map} +1 -1
- package/build/client/assets/revalidation-ws-89FLt73b.js +2 -0
- package/build/client/assets/revalidation-ws-89FLt73b.js.map +1 -0
- package/build/client/assets/root-Dd9--OJ3.js +2 -0
- package/build/client/assets/root-Dd9--OJ3.js.map +1 -0
- package/build/client/assets/sankeyDiagram-QLVOVGJD-BAY-vMZj.js +11 -0
- package/build/client/assets/{sankeyDiagram-QLVOVGJD-Bt8556P1.js.map → sankeyDiagram-QLVOVGJD-BAY-vMZj.js.map} +1 -1
- package/build/client/assets/{sequenceDiagram-X6HHIX6F-y2-oW3Ob.js → sequenceDiagram-X6HHIX6F-CDjFTgBk.js} +3 -3
- package/build/client/assets/{sequenceDiagram-X6HHIX6F-y2-oW3Ob.js.map → sequenceDiagram-X6HHIX6F-CDjFTgBk.js.map} +1 -1
- package/build/client/assets/set-playground-DtZ5ki7i.js +2 -0
- package/build/client/assets/set-playground-DtZ5ki7i.js.map +1 -0
- package/build/client/assets/stateDiagram-DGXRK772-DFekjeUZ.js +2 -0
- package/build/client/assets/{stateDiagram-DGXRK772-B3BuD15b.js.map → stateDiagram-DGXRK772-DFekjeUZ.js.map} +1 -1
- package/build/client/assets/stateDiagram-v2-YXO3MK2T-CSkUdkOW.js +2 -0
- package/build/client/assets/{stateDiagram-v2-YXO3MK2T-BzFxWpqR.js.map → stateDiagram-v2-YXO3MK2T-CSkUdkOW.js.map} +1 -1
- package/build/client/assets/support-drzs9wuf.js +2 -0
- package/build/client/assets/support-drzs9wuf.js.map +1 -0
- package/build/client/assets/test-psaYrMGK.js +2 -0
- package/build/client/assets/test-psaYrMGK.js.map +1 -0
- package/build/client/assets/{tests-B1ak2CDI.js → tests-7juFXgcY.js} +3 -3
- package/build/client/assets/tests-7juFXgcY.js.map +1 -0
- package/build/client/assets/{timeline-definition-BDJGKUSR-DUa2yfAV.js → timeline-definition-BDJGKUSR-1WjIsnZH.js} +3 -3
- package/build/client/assets/{timeline-definition-BDJGKUSR-DUa2yfAV.js.map → timeline-definition-BDJGKUSR-1WjIsnZH.js.map} +1 -1
- package/build/client/assets/tooltip-C6xKzWST.js +2 -0
- package/build/client/assets/{tooltip-Bzd6O8vq.js.map → tooltip-C6xKzWST.js.map} +1 -1
- package/build/client/assets/use-event-source-B411g-uF.js +2 -0
- package/build/client/assets/{use-event-source-Dar8h_B8.js.map → use-event-source-B411g-uF.js.map} +1 -1
- package/build/client/assets/user-Dmcddqge.js +2 -0
- package/build/client/assets/user-Dmcddqge.js.map +1 -0
- package/build/client/assets/version-BAECczgY.js +2 -0
- package/build/client/assets/version-BAECczgY.js.map +1 -0
- package/build/client/assets/workshop-config-gFAnGhSV.js +2 -0
- package/build/client/assets/workshop-config-gFAnGhSV.js.map +1 -0
- package/build/client/assets/{xychartDiagram-VJFVF3MP-JztjcODi.js → xychartDiagram-VJFVF3MP-Cp8GqXc6.js} +3 -3
- package/build/client/assets/{xychartDiagram-VJFVF3MP-JztjcODi.js.map → xychartDiagram-VJFVF3MP-Cp8GqXc6.js.map} +1 -1
- package/build/server/index.js +4439 -4072
- package/build/server/index.js.map +1 -1
- package/dist/server/index.js +2 -2
- package/package.json +13 -13
- package/build/client/assets/_-BaHOmd8F.js +0 -2
- package/build/client/assets/_-BaHOmd8F.js.map +0 -1
- package/build/client/assets/_exerciseNumber-Dqi7TgL9.js +0 -2
- package/build/client/assets/_exerciseNumber-Dqi7TgL9.js.map +0 -1
- package/build/client/assets/_exerciseNumber_._stepNumber-DoOFEk-P.js +0 -2
- package/build/client/assets/_exerciseNumber_._stepNumber-DoOFEk-P.js.map +0 -1
- package/build/client/assets/_exerciseNumber_.finished-C5m6M0gM.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-C5m6M0gM.js.map +0 -1
- package/build/client/assets/_layout-B_BIIcpM.js +0 -2
- package/build/client/assets/_layout-B_BIIcpM.js.map +0 -1
- package/build/client/assets/_layout-B_NrRv0S.js +0 -6
- package/build/client/assets/_layout-B_NrRv0S.js.map +0 -1
- package/build/client/assets/_layout-D7_F6t3x.js +0 -2
- package/build/client/assets/_layout-D7_F6t3x.js.map +0 -1
- package/build/client/assets/_layout-QRe2q83m.js +0 -2
- package/build/client/assets/_layout-QRe2q83m.js.map +0 -1
- package/build/client/assets/accordion-CpiLc1m2.js +0 -2
- package/build/client/assets/account-CbFDiVNd.js +0 -2
- package/build/client/assets/account-CbFDiVNd.js.map +0 -1
- package/build/client/assets/app-BYSDu0vh.js +0 -2
- package/build/client/assets/app-BYSDu0vh.js.map +0 -1
- package/build/client/assets/architectureDiagram-IEHRJDOE-BqPvrjLh.js +0 -37
- package/build/client/assets/button-Dt4EcDfR.js +0 -2
- package/build/client/assets/button-Dt4EcDfR.js.map +0 -1
- package/build/client/assets/channel-DnqeaSfB.js +0 -2
- package/build/client/assets/classDiagram-GIVACNV2-cXWx-aYi.js +0 -2
- package/build/client/assets/classDiagram-v2-COTLJTTW-cXWx-aYi.js +0 -2
- package/build/client/assets/clone-Bj8ANPCv.js +0 -2
- package/build/client/assets/components-5arJTWsS.js +0 -158
- package/build/client/assets/components-5arJTWsS.js.map +0 -1
- package/build/client/assets/dagre-OKDRZEBW-DT9ZQRxf.js +0 -5
- package/build/client/assets/diagram-SSKATNLV-CcKCni9R.js +0 -44
- package/build/client/assets/diagram-VNBRO52H-DWoRAiqO.js +0 -25
- package/build/client/assets/diff-BKR4usVv.js +0 -2
- package/build/client/assets/diff-BKR4usVv.js.map +0 -1
- package/build/client/assets/diff-D5_VwPLF.js.map +0 -1
- package/build/client/assets/discord-BU7RzE6-.js +0 -2
- package/build/client/assets/discord-BU7RzE6-.js.map +0 -1
- package/build/client/assets/discord-ut4t-aMQ.js +0 -2
- package/build/client/assets/discord-ut4t-aMQ.js.map +0 -1
- package/build/client/assets/entry.client-BLUlgPHE.js +0 -44
- package/build/client/assets/entry.client-BLUlgPHE.js.map +0 -1
- package/build/client/assets/error-boundary-B07cWiEy.js +0 -2
- package/build/client/assets/error-boundary-B07cWiEy.js.map +0 -1
- package/build/client/assets/finished-MrsevkkK.js +0 -2
- package/build/client/assets/finished-MrsevkkK.js.map +0 -1
- package/build/client/assets/ganttDiagram-APWFNJXF-TfB6wYvN.js +0 -258
- package/build/client/assets/gitGraphDiagram-7IBYFJ6S-D2NQnQv2.js +0 -66
- package/build/client/assets/index-9euhNa27.js +0 -2
- package/build/client/assets/index-9euhNa27.js.map +0 -1
- package/build/client/assets/index-B8yUFowV.js +0 -2
- package/build/client/assets/index-B8yUFowV.js.map +0 -1
- package/build/client/assets/index-BmMpCvYx.js +0 -2
- package/build/client/assets/index-DLC5u33j.js +0 -36
- package/build/client/assets/index-DPHVg8Eh.js +0 -2
- package/build/client/assets/index-DPHVg8Eh.js.map +0 -1
- package/build/client/assets/index-Do-KWT0a.js +0 -42
- package/build/client/assets/index-Dsusf_Av.js +0 -38
- package/build/client/assets/index-Dsusf_Av.js.map +0 -1
- package/build/client/assets/index-DvQyydjU.js +0 -3
- package/build/client/assets/index-Fw2eA3AF.js +0 -2
- package/build/client/assets/index-Fw2eA3AF.js.map +0 -1
- package/build/client/assets/infoDiagram-PH2N3AL5-D-nEozcT.js +0 -3
- package/build/client/assets/l-ChG-6rmU.js +0 -2
- package/build/client/assets/l-ChG-6rmU.js.map +0 -1
- package/build/client/assets/loading-b1FV2pQh.js +0 -2
- package/build/client/assets/login-Ci7cdiuj.js +0 -2
- package/build/client/assets/login-Ci7cdiuj.js.map +0 -1
- package/build/client/assets/manifest-f9e2a790.js +0 -1
- package/build/client/assets/mdx-C7imFHZE.js +0 -3
- package/build/client/assets/mdx-C7imFHZE.js.map +0 -1
- package/build/client/assets/mindmap-definition-ALO5MXBD-BhzLy0Zl.js +0 -96
- package/build/client/assets/misc-2sBiisF5.js +0 -2
- package/build/client/assets/nav-chevrons-CV-dpXNR.js +0 -2
- package/build/client/assets/nav-chevrons-CV-dpXNR.js.map +0 -1
- package/build/client/assets/onboarding-c9ZuxLsm.js +0 -2
- package/build/client/assets/onboarding-c9ZuxLsm.js.map +0 -1
- package/build/client/assets/online-DZKJk3C2.js +0 -2
- package/build/client/assets/pe-BShc2dvc.js +0 -2
- package/build/client/assets/pieDiagram-IB7DONF6-CaTGj8RH.js +0 -31
- package/build/client/assets/preferences-BkWQyRCq.js +0 -2
- package/build/client/assets/preferences-BkWQyRCq.js.map +0 -1
- package/build/client/assets/preview-CqZGJtsE.js +0 -2
- package/build/client/assets/preview-CqZGJtsE.js.map +0 -1
- package/build/client/assets/product-DJOWNuL-.js +0 -2
- package/build/client/assets/progress-BJ4ADF-s.js +0 -2
- package/build/client/assets/progress-bar-DgnkQxQw.js +0 -2
- package/build/client/assets/progress-bar-DgnkQxQw.js.map +0 -1
- package/build/client/assets/revalidation-ws-B0skixgr.js +0 -2
- package/build/client/assets/revalidation-ws-B0skixgr.js.map +0 -1
- package/build/client/assets/root-C_WG23OF.js +0 -11
- package/build/client/assets/root-C_WG23OF.js.map +0 -1
- package/build/client/assets/sankeyDiagram-QLVOVGJD-Bt8556P1.js +0 -11
- package/build/client/assets/set-playground-DW2Ys-rV.js +0 -2
- package/build/client/assets/set-playground-DW2Ys-rV.js.map +0 -1
- package/build/client/assets/stateDiagram-DGXRK772-B3BuD15b.js +0 -2
- package/build/client/assets/stateDiagram-v2-YXO3MK2T-BzFxWpqR.js +0 -2
- package/build/client/assets/support-Bg0iSyle.js +0 -2
- package/build/client/assets/support-Bg0iSyle.js.map +0 -1
- package/build/client/assets/test-DdUNKtkF.js +0 -2
- package/build/client/assets/test-DdUNKtkF.js.map +0 -1
- package/build/client/assets/tests-B1ak2CDI.js.map +0 -1
- package/build/client/assets/tooltip-Bzd6O8vq.js +0 -2
- package/build/client/assets/use-event-source-Dar8h_B8.js +0 -2
- package/build/client/assets/user-DNSnhqGn.js +0 -2
- package/build/client/assets/user-DNSnhqGn.js.map +0 -1
- package/build/client/assets/version-DriSvNMy.js +0 -2
- package/build/client/assets/version-DriSvNMy.js.map +0 -1
- package/build/client/assets/workshop-config-DchzGYJM.js +0 -2
- package/build/client/assets/workshop-config-DchzGYJM.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as Ma,r as Et,j as H}from"./index-Dsusf_Av.js";import{o as Gb,s as Kb,n as Wb,u as f0}from"./index-DLC5u33j.js";import{j as Vb,I as m0,a as Yb}from"./misc-2sBiisF5.js";import{a as qb,b as jb,A as zb,L as io}from"./components-5arJTWsS.js";import{u as Xb}from"./online-DZKJk3C2.js";import{L as Fh}from"./loading-b1FV2pQh.js";import{c as Qb}from"./user-DNSnhqGn.js";import{u as Zb}from"./workshop-config-DchzGYJM.js";var Jb=Object.create,p0=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,tT=Object.getOwnPropertyNames,iT=Object.getPrototypeOf,rT=Object.prototype.hasOwnProperty,g0=function(i,e){return function(){return i&&(e=i(i=0)),e}},It=function(i,e){return function(){return e||i((e={exports:{}}).exports,e),e.exports}},sT=function(i,e,t,r){if(e&&typeof e=="object"||typeof e=="function")for(var s=tT(e),n=0,a=s.length,o;n<a;n++)o=s[n],!rT.call(i,o)&&o!==t&&p0(i,o,{get:(function(l){return e[l]}).bind(null,o),enumerable:!(r=eT(e,o))||r.enumerable});return i},Nt=function(i,e,t){return t=i!=null?Jb(iT(i)):{},sT(!i||!i.__esModule?p0(t,"default",{value:i,enumerable:!0}):t,i)},ni=It(function(i,e){var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t={},e.exports=t});function bs(i,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](i):bs(i,e)}var Ts=g0(function(){Ts()});function v0(i){"@swc/helpers - typeof";return i&&typeof Symbol<"u"&&i.constructor===Symbol?"symbol":typeof i}var E0=g0(function(){}),y0=It(function(i,e){var t=Array.prototype.slice;e.exports=r;function r(s,n){for(("length"in s)||(s=[s]),s=t.call(s);s.length;){var a=s.shift(),o=n(a);if(o)return o;a.childNodes&&a.childNodes.length&&(s=t.call(a.childNodes).concat(s))}}}),nT=It(function(i,e){Ts(),e.exports=t;function t(r,s){if(!bs(this,t))return new t(r,s);this.data=r,this.nodeValue=r,this.length=r.length,this.ownerDocument=s||null}t.prototype.nodeType=8,t.prototype.nodeName="#comment",t.prototype.toString=function(){return"[object Comment]"}}),aT=It(function(i,e){Ts(),e.exports=t;function t(r,s){if(!bs(this,t))return new t(r);this.data=r||"",this.length=this.data.length,this.ownerDocument=s||null}t.prototype.type="DOMTextNode",t.prototype.nodeType=3,t.prototype.nodeName="#text",t.prototype.toString=function(){return this.data},t.prototype.replaceData=function(r,s,n){var a=this.data,o=a.substring(0,r),l=a.substring(r+s,a.length);this.data=o+n+l,this.length=this.data.length}}),b0=It(function(i,e){e.exports=t;function t(r){var s=this,n=r.type;r.target||(r.target=s),s.listeners||(s.listeners={});var a=s.listeners[n];if(a)return a.forEach(function(o){r.currentTarget=s,typeof o=="function"?o(r):o.handleEvent(r)});s.parentNode&&s.parentNode.dispatchEvent(r)}}),T0=It(function(i,e){e.exports=t;function t(r,s){var n=this;n.listeners||(n.listeners={}),n.listeners[r]||(n.listeners[r]=[]),n.listeners[r].indexOf(s)===-1&&n.listeners[r].push(s)}}),_0=It(function(i,e){e.exports=t;function t(r,s){var n=this;if(n.listeners&&n.listeners[r]){var a=n.listeners[r],o=a.indexOf(s);o!==-1&&a.splice(o,1)}}}),oT=It(function(i,e){E0(),e.exports=r;var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function r(h){switch(h.nodeType){case 3:return u(h.data);case 8:return"<!--"+h.data+"-->";default:return s(h)}}function s(h){var f=[],m=h.tagName;return h.namespaceURI==="http://www.w3.org/1999/xhtml"&&(m=m.toLowerCase()),f.push("<"+m+d(h)+o(h)),t.indexOf(m)>-1?f.push(" />"):(f.push(">"),h.childNodes.length?f.push.apply(f,h.childNodes.map(r)):h.textContent||h.innerText?f.push(u(h.textContent||h.innerText)):h.innerHTML&&f.push(h.innerHTML),f.push("</"+m+">")),f.join("")}function n(h,f){var m=v0(h[f]);return f==="style"&&Object.keys(h.style).length>0?!0:h.hasOwnProperty(f)&&(m==="string"||m==="boolean"||m==="number")&&f!=="nodeName"&&f!=="className"&&f!=="tagName"&&f!=="textContent"&&f!=="innerText"&&f!=="namespaceURI"&&f!=="innerHTML"}function a(h){if(typeof h=="string")return h;var f="";return Object.keys(h).forEach(function(m){var p=h[m];m=m.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}),f+=m+":"+p+";"}),f}function o(h){var f=h.dataset,m=[];for(var p in f)m.push({name:"data-"+p,value:f[p]});return m.length?l(m):""}function l(h){var f=[];return h.forEach(function(m){var p=m.name,g=m.value;p==="style"&&(g=a(g)),f.push(p+'="'+c(g)+'"')}),f.length?" "+f.join(" "):""}function d(h){var f=[];for(var m in h)n(h,m)&&f.push({name:m,value:h[m]});for(var p in h._attributes)for(var g in h._attributes[p]){var v=h._attributes[p][g],b=(v.prefix?v.prefix+":":"")+g;f.push({name:b,value:v.value})}return h.className&&f.push({name:"class",value:h.className}),f.length?l(f):""}function u(h){var f="";return typeof h=="string"?f=h:h&&(f=h.toString()),f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(h){return u(h).replace(/"/g,""")}}),A0=It(function(i,e){Ts();var t=y0(),r=b0(),s=T0(),n=_0(),a=oT(),o="http://www.w3.org/1999/xhtml";e.exports=l;function l(d,u,c){if(!bs(this,l))return new l(d);var h=c===void 0?o:c||null;this.tagName=h===o?String(d).toUpperCase():d,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=u||null,this.namespaceURI=h,this._attributes={},this.tagName==="INPUT"&&(this.type="text")}l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(d){return d.parentNode&&d.parentNode.removeChild(d),this.childNodes.push(d),d.parentNode=this,d},l.prototype.replaceChild=function(d,u){d.parentNode&&d.parentNode.removeChild(d);var c=this.childNodes.indexOf(u);return u.parentNode=null,this.childNodes[c]=d,d.parentNode=this,u},l.prototype.removeChild=function(d){var u=this.childNodes.indexOf(d);return this.childNodes.splice(u,1),d.parentNode=null,d},l.prototype.insertBefore=function(d,u){d.parentNode&&d.parentNode.removeChild(d);var c=u==null?-1:this.childNodes.indexOf(u);return c>-1?this.childNodes.splice(c,0,d):this.childNodes.push(d),d.parentNode=this,d},l.prototype.setAttributeNS=function(d,u,c){var h=null,f=u,m=u.indexOf(":");if(m>-1&&(h=u.substr(0,m),f=u.substr(m+1)),this.tagName==="INPUT"&&u==="type")this.type=c;else{var p=this._attributes[d]||(this._attributes[d]={});p[f]={value:c,prefix:h}}},l.prototype.getAttributeNS=function(d,u){var c=this._attributes[d],h=c&&c[u]&&c[u].value;return this.tagName==="INPUT"&&u==="type"?this.type:typeof h!="string"?null:h},l.prototype.removeAttributeNS=function(d,u){var c=this._attributes[d];c&&delete c[u]},l.prototype.hasAttributeNS=function(d,u){var c=this._attributes[d];return!!c&&u in c},l.prototype.setAttribute=function(d,u){return this.setAttributeNS(null,d,u)},l.prototype.getAttribute=function(d){return this.getAttributeNS(null,d)},l.prototype.removeAttribute=function(d){return this.removeAttributeNS(null,d)},l.prototype.hasAttribute=function(d){return this.hasAttributeNS(null,d)},l.prototype.removeEventListener=n,l.prototype.addEventListener=s,l.prototype.dispatchEvent=r,l.prototype.focus=function(){},l.prototype.toString=function(){return a(this)},l.prototype.getElementsByClassName=function(d){var u=d.split(" "),c=[];return t(this,function(h){if(h.nodeType===1){var f=h.className||"",m=f.split(" ");u.every(function(p){return m.indexOf(p)!==-1})&&c.push(h)}}),c},l.prototype.getElementsByTagName=function(d){d=d.toLowerCase();var u=[];return t(this.childNodes,function(c){c.nodeType===1&&(d==="*"||c.tagName.toLowerCase()===d)&&u.push(c)}),u},l.prototype.contains=function(d){return t(this,function(u){return d===u})||!1}}),lT=It(function(i,e){Ts();var t=A0();e.exports=r;function r(s){if(!bs(this,r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=s||null}r.prototype.type="DocumentFragment",r.prototype.nodeType=11,r.prototype.nodeName="#document-fragment",r.prototype.appendChild=t.prototype.appendChild,r.prototype.replaceChild=t.prototype.replaceChild,r.prototype.removeChild=t.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(s){return String(s)}).join("")}}),dT=It(function(i,e){e.exports=t;function t(r){}t.prototype.initEvent=function(r,s,n){this.type=r,this.bubbles=s,this.cancelable=n},t.prototype.preventDefault=function(){}}),uT=It(function(i,e){Ts();var t=y0(),r=nT(),s=aT(),n=A0(),a=lT(),o=dT(),l=b0(),d=T0(),u=_0();e.exports=c;function c(){if(!bs(this,c))return new c;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var h=c.prototype;h.createTextNode=function(f){return new s(f,this)},h.createElementNS=function(f,m){var p=f===null?null:String(f);return new n(m,this,p)},h.createElement=function(f){return new n(f,this)},h.createDocumentFragment=function(){return new a(this)},h.createEvent=function(f){return new o(f)},h.createComment=function(f){return new r(f,this)},h.getElementById=function(f){f=String(f);var m=t(this.childNodes,function(p){if(String(p.id)===f)return p});return m||null},h.getElementsByClassName=n.prototype.getElementsByClassName,h.getElementsByTagName=n.prototype.getElementsByTagName,h.contains=n.prototype.contains,h.removeEventListener=u,h.addEventListener=d,h.dispatchEvent=l}),cT=It(function(i,e){var t=uT();e.exports=new t}),S0=It(function(i,e){var t=typeof global<"u"?global:typeof window<"u"?window:{},r=cT(),s;typeof document<"u"?s=document:(s=t["__GLOBAL_DOCUMENT_CACHE@4"],s||(s=t["__GLOBAL_DOCUMENT_CACHE@4"]=r)),e.exports=s});function hT(i){if(Array.isArray(i))return i}function fT(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r=[],s=!0,n=!1,a,o;try{for(t=t.call(i);!(s=(a=t.next()).done)&&(r.push(a.value),!(e&&r.length===e));s=!0);}catch(l){n=!0,o=l}finally{try{!s&&t.return!=null&&t.return()}finally{if(n)throw o}}return r}}function mT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{j as H}from"./jsx-runtime-BjG_zV1W.js";import{R as Ma,r as Et,d as Gb,g as Kb,A as Wb,L as io}from"./chunk-QMGIS6GS-CTjj1G71.js";import{o as Vb,s as Yb,n as qb,u as f0}from"./index-C0Fh_zu0.js";import{j as jb,I as m0,a as zb}from"./misc-yfWFSwMN.js";import{u as Xb}from"./online-CFV79-RX.js";import{L as Fh}from"./loading-CXEQXwx8.js";import{c as Qb}from"./user-Dmcddqge.js";import{u as Zb}from"./workshop-config-gFAnGhSV.js";var Jb=Object.create,p0=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,tT=Object.getOwnPropertyNames,iT=Object.getPrototypeOf,rT=Object.prototype.hasOwnProperty,g0=function(i,e){return function(){return i&&(e=i(i=0)),e}},It=function(i,e){return function(){return e||i((e={exports:{}}).exports,e),e.exports}},sT=function(i,e,t,r){if(e&&typeof e=="object"||typeof e=="function")for(var s=tT(e),n=0,a=s.length,o;n<a;n++)o=s[n],!rT.call(i,o)&&o!==t&&p0(i,o,{get:(function(l){return e[l]}).bind(null,o),enumerable:!(r=eT(e,o))||r.enumerable});return i},Nt=function(i,e,t){return t=i!=null?Jb(iT(i)):{},sT(!i||!i.__esModule?p0(t,"default",{value:i,enumerable:!0}):t,i)},ni=It(function(i,e){var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t={},e.exports=t});function bs(i,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](i):bs(i,e)}var Ts=g0(function(){Ts()});function v0(i){"@swc/helpers - typeof";return i&&typeof Symbol<"u"&&i.constructor===Symbol?"symbol":typeof i}var E0=g0(function(){}),y0=It(function(i,e){var t=Array.prototype.slice;e.exports=r;function r(s,n){for(("length"in s)||(s=[s]),s=t.call(s);s.length;){var a=s.shift(),o=n(a);if(o)return o;a.childNodes&&a.childNodes.length&&(s=t.call(a.childNodes).concat(s))}}}),nT=It(function(i,e){Ts(),e.exports=t;function t(r,s){if(!bs(this,t))return new t(r,s);this.data=r,this.nodeValue=r,this.length=r.length,this.ownerDocument=s||null}t.prototype.nodeType=8,t.prototype.nodeName="#comment",t.prototype.toString=function(){return"[object Comment]"}}),aT=It(function(i,e){Ts(),e.exports=t;function t(r,s){if(!bs(this,t))return new t(r);this.data=r||"",this.length=this.data.length,this.ownerDocument=s||null}t.prototype.type="DOMTextNode",t.prototype.nodeType=3,t.prototype.nodeName="#text",t.prototype.toString=function(){return this.data},t.prototype.replaceData=function(r,s,n){var a=this.data,o=a.substring(0,r),l=a.substring(r+s,a.length);this.data=o+n+l,this.length=this.data.length}}),b0=It(function(i,e){e.exports=t;function t(r){var s=this,n=r.type;r.target||(r.target=s),s.listeners||(s.listeners={});var a=s.listeners[n];if(a)return a.forEach(function(o){r.currentTarget=s,typeof o=="function"?o(r):o.handleEvent(r)});s.parentNode&&s.parentNode.dispatchEvent(r)}}),T0=It(function(i,e){e.exports=t;function t(r,s){var n=this;n.listeners||(n.listeners={}),n.listeners[r]||(n.listeners[r]=[]),n.listeners[r].indexOf(s)===-1&&n.listeners[r].push(s)}}),_0=It(function(i,e){e.exports=t;function t(r,s){var n=this;if(n.listeners&&n.listeners[r]){var a=n.listeners[r],o=a.indexOf(s);o!==-1&&a.splice(o,1)}}}),oT=It(function(i,e){E0(),e.exports=r;var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function r(h){switch(h.nodeType){case 3:return u(h.data);case 8:return"<!--"+h.data+"-->";default:return s(h)}}function s(h){var f=[],m=h.tagName;return h.namespaceURI==="http://www.w3.org/1999/xhtml"&&(m=m.toLowerCase()),f.push("<"+m+d(h)+o(h)),t.indexOf(m)>-1?f.push(" />"):(f.push(">"),h.childNodes.length?f.push.apply(f,h.childNodes.map(r)):h.textContent||h.innerText?f.push(u(h.textContent||h.innerText)):h.innerHTML&&f.push(h.innerHTML),f.push("</"+m+">")),f.join("")}function n(h,f){var m=v0(h[f]);return f==="style"&&Object.keys(h.style).length>0?!0:h.hasOwnProperty(f)&&(m==="string"||m==="boolean"||m==="number")&&f!=="nodeName"&&f!=="className"&&f!=="tagName"&&f!=="textContent"&&f!=="innerText"&&f!=="namespaceURI"&&f!=="innerHTML"}function a(h){if(typeof h=="string")return h;var f="";return Object.keys(h).forEach(function(m){var p=h[m];m=m.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}),f+=m+":"+p+";"}),f}function o(h){var f=h.dataset,m=[];for(var p in f)m.push({name:"data-"+p,value:f[p]});return m.length?l(m):""}function l(h){var f=[];return h.forEach(function(m){var p=m.name,g=m.value;p==="style"&&(g=a(g)),f.push(p+'="'+c(g)+'"')}),f.length?" "+f.join(" "):""}function d(h){var f=[];for(var m in h)n(h,m)&&f.push({name:m,value:h[m]});for(var p in h._attributes)for(var g in h._attributes[p]){var v=h._attributes[p][g],b=(v.prefix?v.prefix+":":"")+g;f.push({name:b,value:v.value})}return h.className&&f.push({name:"class",value:h.className}),f.length?l(f):""}function u(h){var f="";return typeof h=="string"?f=h:h&&(f=h.toString()),f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(h){return u(h).replace(/"/g,""")}}),A0=It(function(i,e){Ts();var t=y0(),r=b0(),s=T0(),n=_0(),a=oT(),o="http://www.w3.org/1999/xhtml";e.exports=l;function l(d,u,c){if(!bs(this,l))return new l(d);var h=c===void 0?o:c||null;this.tagName=h===o?String(d).toUpperCase():d,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=u||null,this.namespaceURI=h,this._attributes={},this.tagName==="INPUT"&&(this.type="text")}l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(d){return d.parentNode&&d.parentNode.removeChild(d),this.childNodes.push(d),d.parentNode=this,d},l.prototype.replaceChild=function(d,u){d.parentNode&&d.parentNode.removeChild(d);var c=this.childNodes.indexOf(u);return u.parentNode=null,this.childNodes[c]=d,d.parentNode=this,u},l.prototype.removeChild=function(d){var u=this.childNodes.indexOf(d);return this.childNodes.splice(u,1),d.parentNode=null,d},l.prototype.insertBefore=function(d,u){d.parentNode&&d.parentNode.removeChild(d);var c=u==null?-1:this.childNodes.indexOf(u);return c>-1?this.childNodes.splice(c,0,d):this.childNodes.push(d),d.parentNode=this,d},l.prototype.setAttributeNS=function(d,u,c){var h=null,f=u,m=u.indexOf(":");if(m>-1&&(h=u.substr(0,m),f=u.substr(m+1)),this.tagName==="INPUT"&&u==="type")this.type=c;else{var p=this._attributes[d]||(this._attributes[d]={});p[f]={value:c,prefix:h}}},l.prototype.getAttributeNS=function(d,u){var c=this._attributes[d],h=c&&c[u]&&c[u].value;return this.tagName==="INPUT"&&u==="type"?this.type:typeof h!="string"?null:h},l.prototype.removeAttributeNS=function(d,u){var c=this._attributes[d];c&&delete c[u]},l.prototype.hasAttributeNS=function(d,u){var c=this._attributes[d];return!!c&&u in c},l.prototype.setAttribute=function(d,u){return this.setAttributeNS(null,d,u)},l.prototype.getAttribute=function(d){return this.getAttributeNS(null,d)},l.prototype.removeAttribute=function(d){return this.removeAttributeNS(null,d)},l.prototype.hasAttribute=function(d){return this.hasAttributeNS(null,d)},l.prototype.removeEventListener=n,l.prototype.addEventListener=s,l.prototype.dispatchEvent=r,l.prototype.focus=function(){},l.prototype.toString=function(){return a(this)},l.prototype.getElementsByClassName=function(d){var u=d.split(" "),c=[];return t(this,function(h){if(h.nodeType===1){var f=h.className||"",m=f.split(" ");u.every(function(p){return m.indexOf(p)!==-1})&&c.push(h)}}),c},l.prototype.getElementsByTagName=function(d){d=d.toLowerCase();var u=[];return t(this.childNodes,function(c){c.nodeType===1&&(d==="*"||c.tagName.toLowerCase()===d)&&u.push(c)}),u},l.prototype.contains=function(d){return t(this,function(u){return d===u})||!1}}),lT=It(function(i,e){Ts();var t=A0();e.exports=r;function r(s){if(!bs(this,r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=s||null}r.prototype.type="DocumentFragment",r.prototype.nodeType=11,r.prototype.nodeName="#document-fragment",r.prototype.appendChild=t.prototype.appendChild,r.prototype.replaceChild=t.prototype.replaceChild,r.prototype.removeChild=t.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(s){return String(s)}).join("")}}),dT=It(function(i,e){e.exports=t;function t(r){}t.prototype.initEvent=function(r,s,n){this.type=r,this.bubbles=s,this.cancelable=n},t.prototype.preventDefault=function(){}}),uT=It(function(i,e){Ts();var t=y0(),r=nT(),s=aT(),n=A0(),a=lT(),o=dT(),l=b0(),d=T0(),u=_0();e.exports=c;function c(){if(!bs(this,c))return new c;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var h=c.prototype;h.createTextNode=function(f){return new s(f,this)},h.createElementNS=function(f,m){var p=f===null?null:String(f);return new n(m,this,p)},h.createElement=function(f){return new n(f,this)},h.createDocumentFragment=function(){return new a(this)},h.createEvent=function(f){return new o(f)},h.createComment=function(f){return new r(f,this)},h.getElementById=function(f){f=String(f);var m=t(this.childNodes,function(p){if(String(p.id)===f)return p});return m||null},h.getElementsByClassName=n.prototype.getElementsByClassName,h.getElementsByTagName=n.prototype.getElementsByTagName,h.contains=n.prototype.contains,h.removeEventListener=u,h.addEventListener=d,h.dispatchEvent=l}),cT=It(function(i,e){var t=uT();e.exports=new t}),S0=It(function(i,e){var t=typeof global<"u"?global:typeof window<"u"?window:{},r=cT(),s;typeof document<"u"?s=document:(s=t["__GLOBAL_DOCUMENT_CACHE@4"],s||(s=t["__GLOBAL_DOCUMENT_CACHE@4"]=r)),e.exports=s});function hT(i){if(Array.isArray(i))return i}function fT(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r=[],s=!0,n=!1,a,o;try{for(t=t.call(i);!(s=(a=t.next()).done)&&(r.push(a.value),!(e&&r.length===e));s=!0);}catch(l){n=!0,o=l}finally{try{!s&&t.return!=null&&t.return()}finally{if(n)throw o}}return r}}function mT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xu(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=i[t];return r}function x0(i,e){if(i){if(typeof i=="string")return Xu(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Xu(i,e)}}function Xi(i,e){return hT(i)||fT(i,e)||x0(i,e)||mT()}var _a=Nt(ni()),Dm=Nt(ni()),pT=Nt(ni()),gT={now:function(){var i=pT.default.performance,e=i&&i.timing,t=e&&e.navigationStart,r=typeof t=="number"&&typeof i.now=="function"?t+i.now():Date.now();return Math.round(r)}},et=gT,Oa=function(){var i,e,t;if(typeof((i=Dm.default.crypto)===null||i===void 0?void 0:i.getRandomValues)=="function"){t=new Uint8Array(32),Dm.default.crypto.getRandomValues(t);for(var r=0;r<32;r++)t[r]=t[r]%16}else{t=[];for(var s=0;s<32;s++)t[s]=Math.random()*16|0}var n=0;e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var d=l==="x"?t[n]:t[n]&3|8;return n++,d.toString(16)});var a=et.now(),o=a==null?void 0:a.toString(16).substring(3);return o?e.substring(0,28)+o:e},R0=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},jt=function(i){if(i&&typeof i.nodeName<"u")return i.muxId||(i.muxId=R0()),i.muxId;var e;try{e=document.querySelector(i)}catch{}return e&&!e.muxId&&(e.muxId=i),(e==null?void 0:e.muxId)||i},Xl=function(i){var e;i&&typeof i.nodeName<"u"?(e=i,i=jt(e)):e=document.querySelector(i);var t=e&&e.nodeName?e.nodeName.toLowerCase():"";return[e,i,t]};function vT(i){if(Array.isArray(i))return Xu(i)}function ET(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function yT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zt(i){return vT(i)||ET(i)||x0(i)||yT()}var es={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4},bT=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,t,r,s,n,a,o=[console,i],l=(t=console.trace).bind.apply(t,zt(o)),d=(r=console.info).bind.apply(r,zt(o)),u=(s=console.debug).bind.apply(s,zt(o)),c=(n=console.warn).bind.apply(n,zt(o)),h=(a=console.error).bind.apply(a,zt(o)),f=e;return{trace:function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(!(f>es.TRACE))return l.apply(void 0,zt(p))},debug:function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(!(f>es.DEBUG))return u.apply(void 0,zt(p))},info:function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(!(f>es.INFO))return d.apply(void 0,zt(p))},warn:function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(!(f>es.WARN))return c.apply(void 0,zt(p))},error:function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(!(f>es.ERROR))return h.apply(void 0,zt(p))},get level(){return f},set level(m){m!==this.level&&(f=m??e)}}},Me=bT("[mux]"),iu=Nt(ni());function Qu(){var i=iu.default.doNotTrack||iu.default.navigator&&iu.default.navigator.doNotTrack;return i==="1"}function le(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}Ts();function pt(i,e){if(!bs(i,e))throw new TypeError("Cannot call a class as a function")}function TT(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function Pi(i,e,t){return e&&TT(i.prototype,e),i}function $(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function yn(i){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(i)}function _T(i,e){for(;!Object.prototype.hasOwnProperty.call(i,e)&&(i=yn(i),i!==null););return i}function Po(i,e,t){return typeof Reflect<"u"&&Reflect.get?Po=Reflect.get:Po=function(r,s,n){var a=_T(r,s);if(a){var o=Object.getOwnPropertyDescriptor(a,s);return o.get?o.get.call(n||r):o.value}},Po(i,e,t||i)}function Zu(i,e){return Zu=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},Zu(i,e)}function AT(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&Zu(i,e)}function ST(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}E0();function xT(i,e){return e&&(v0(e)==="object"||typeof e=="function")?e:le(i)}function RT(i){var e=ST();return function(){var t=yn(i),r;if(e){var s=yn(this).constructor;r=Reflect.construct(t,arguments,s)}else r=t.apply(this,arguments);return xT(this,r)}}var ii=function(i){return Pa(i)[0]},Pa=function(i){if(typeof i!="string"||i==="")return["localhost"];var e=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=i.match(e)||[],r=t[4],s;return r&&(s=(r.match(/[^\.]+\.[^\.]+$/)||[])[0]),[r,s]},ru=Nt(ni()),LT={exists:function(){var i=ru.default.performance,e=i&&i.timing;return e!==void 0},domContentLoadedEventEnd:function(){var i=ru.default.performance,e=i&&i.timing;return e&&e.domContentLoadedEventEnd},navigationStart:function(){var i=ru.default.performance,e=i&&i.timing;return e&&e.navigationStart}},Ql=LT;function Je(i,e,t){t=t===void 0?1:t,i[e]=i[e]||0,i[e]+=t}function Zl(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.forEach(function(s){$(i,s,t[s])})}return i}function IT(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t.push.apply(t,r)}return t}function $h(i,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):IT(Object(e)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))}),i}var kT=["x-cdn","content-type"],L0=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],wT=kT.concat(L0);function Bh(i){i=i||"";var e={},t=i.trim().split(/[\r\n]+/);return t.forEach(function(r){if(r){var s=r.split(": "),n=s.shift();n&&(wT.indexOf(n.toLowerCase())>=0||n.toLowerCase().indexOf("x-litix-")===0)&&(e[n]=s.join(": "))}}),e}function Jl(i){if(i){var e=L0.find(function(t){return i[t]!==void 0});return e?i[e]:void 0}}var DT=function(i){var e={};for(var t in i){var r=i[t],s=r["DATA-ID"].search("io.litix.data.");if(s!==-1){var n=r["DATA-ID"].replace("io.litix.data.","");e[n]=r.VALUE}}return e},I0=DT,ro=function(i){if(!i)return{};var e=Ql.navigationStart(),t=i.loading,r=t?t.start:i.trequest,s=t?t.first:i.tfirst,n=t?t.end:i.tload;return{bytesLoaded:i.total,requestStart:Math.round(e+r),responseStart:Math.round(e+s),responseEnd:Math.round(e+n)}},Pn=function(i){if(!(!i||typeof i.getAllResponseHeaders!="function"))return Bh(i.getAllResponseHeaders())},CT=function(i,e,t){var r=arguments.length>4?arguments[4]:void 0,s=i.log,n=i.utils.secondsToMs,a=function(g){var v=parseInt(r.version),b;return v===1&&g.programDateTime!==null&&(b=g.programDateTime),v===0&&g.pdt!==null&&(b=g.pdt),b};if(!Ql.exists()){s.warn("performance timing not supported. Not tracking HLS.js.");return}var o=function(g,v){return i.emit(e,g,v)},l=function(g,v){var b=v.levels,y=v.audioTracks,S=v.url,_=v.stats,A=v.networkDetails,x=v.sessionData,C={},P={};b.forEach(function(q,j){C[j]={width:q.width,height:q.height,bitrate:q.bitrate,attrs:q.attrs}}),y.forEach(function(q,j){P[j]={name:q.name,language:q.lang,bitrate:q.bitrate}});var R=ro(_),M=R.bytesLoaded,V=R.requestStart,F=R.responseStart,Z=R.responseEnd;o("requestcompleted",$h(Zl({},I0(x)),{request_event_type:g,request_bytes_loaded:M,request_start:V,request_response_start:F,request_response_end:Z,request_type:"manifest",request_hostname:ii(S),request_response_headers:Pn(A),request_rendition_lists:{media:C,audio:P,video:{}}}))};t.on(r.Events.MANIFEST_LOADED,l);var d=function(g,v){var b=v.details,y=v.level,S=v.networkDetails,_=v.stats,A=ro(_),x=A.bytesLoaded,C=A.requestStart,P=A.responseStart,R=A.responseEnd,M=b.fragments[b.fragments.length-1],V=a(M)+n(M.duration);o("requestcompleted",{request_event_type:g,request_bytes_loaded:x,request_start:C,request_response_start:P,request_response_end:R,request_current_level:y,request_type:"manifest",request_hostname:ii(b.url),request_response_headers:Pn(S),video_holdback:b.holdBack&&n(b.holdBack),video_part_holdback:b.partHoldBack&&n(b.partHoldBack),video_part_target_duration:b.partTarget&&n(b.partTarget),video_target_duration:b.targetduration&&n(b.targetduration),video_source_is_live:b.live,player_manifest_newest_program_time:isNaN(V)?void 0:V})};t.on(r.Events.LEVEL_LOADED,d);var u=function(g,v){var b=v.details,y=v.networkDetails,S=v.stats,_=ro(S),A=_.bytesLoaded,x=_.requestStart,C=_.responseStart,P=_.responseEnd;o("requestcompleted",{request_event_type:g,request_bytes_loaded:A,request_start:x,request_response_start:C,request_response_end:P,request_type:"manifest",request_hostname:ii(b.url),request_response_headers:Pn(y)})};t.on(r.Events.AUDIO_TRACK_LOADED,u);var c=function(g,v){var b=v.stats,y=v.networkDetails,S=v.frag;b=b||S.stats;var _=ro(b),A=_.bytesLoaded,x=_.requestStart,C=_.responseStart,P=_.responseEnd,R=y?Pn(y):void 0,M={request_event_type:g,request_bytes_loaded:A,request_start:x,request_response_start:C,request_response_end:P,request_hostname:y?ii(y.responseURL):void 0,request_id:R?Jl(R):void 0,request_response_headers:R,request_media_duration:S.duration,request_url:y==null?void 0:y.responseURL};S.type==="main"?(M.request_type="media",M.request_current_level=S.level,M.request_video_width=(t.levels[S.level]||{}).width,M.request_video_height=(t.levels[S.level]||{}).height,M.request_labeled_bitrate=(t.levels[S.level]||{}).bitrate):M.request_type=S.type,o("requestcompleted",M)};t.on(r.Events.FRAG_LOADED,c);var h=function(g,v){var b=v.frag,y=b.start,S=a(b),_={currentFragmentPDT:S,currentFragmentStart:n(y)};o("fragmentchange",_)};t.on(r.Events.FRAG_CHANGED,h);var f=function(g,v){var b=v.type,y=v.details,S=v.response,_=v.fatal,A=v.frag,x=v.networkDetails,C=(A==null?void 0:A.url)||v.url||"",P=x?Pn(x):void 0;if((y===r.ErrorDetails.MANIFEST_LOAD_ERROR||y===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||y===r.ErrorDetails.FRAG_LOAD_ERROR||y===r.ErrorDetails.FRAG_LOAD_TIMEOUT||y===r.ErrorDetails.LEVEL_LOAD_ERROR||y===r.ErrorDetails.LEVEL_LOAD_TIMEOUT||y===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||y===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||y===r.ErrorDetails.SUBTITLE_LOAD_ERROR||y===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||y===r.ErrorDetails.KEY_LOAD_ERROR||y===r.ErrorDetails.KEY_LOAD_TIMEOUT)&&o("requestfailed",{request_error:y,request_url:C,request_hostname:ii(C),request_id:P?Jl(P):void 0,request_type:y===r.ErrorDetails.FRAG_LOAD_ERROR||y===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":y===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||y===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":y===r.ErrorDetails.SUBTITLE_LOAD_ERROR||y===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":y===r.ErrorDetails.KEY_LOAD_ERROR||y===r.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:S==null?void 0:S.code,request_error_text:S==null?void 0:S.text}),_){var R,M="".concat(C?"url: ".concat(C,`
|
|
4
4
|
`):"")+"".concat(S&&(S.code||S.text)?"response: ".concat(S.code,", ").concat(S.text,`
|
|
@@ -3202,5 +3202,5 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
3202
3202
|
>`:""}
|
|
3203
3203
|
</p>`:""}
|
|
3204
3204
|
`}return QC(i)};function ZC(i){var e,t;let r=i.theme;if(r){let s=(t=(e=i.getRootNode())==null?void 0:e.getElementById)==null?void 0:t.call(e,r);if(s&&s instanceof HTMLTemplateElement)return s;r.startsWith("media-theme-")||(r=`media-theme-${r}`);let n=Pt.customElements.get(r);if(n!=null&&n.template)return n.template}}function JC(i){var e;let t=(e=i.mediaController)==null?void 0:e.querySelector("media-time-display");return t&&getComputedStyle(t).getPropertyValue("--media-duration-display-display").trim()==="none"}function e0(i){let e=i.videoTitle?{video_title:i.videoTitle}:{};return i.getAttributeNames().filter(t=>t.startsWith("metadata-")).reduce((t,r)=>{let s=i.getAttribute(r);return s!==null&&(t[r.replace(/^metadata-/,"").replace(/-/g,"_")]=s),t},e)}var eM=Object.values(D),tM=Object.values(Ki),iM=Object.values(U),t0=_b(),i0="mux-player",r0={isDialogOpen:!1},rM={redundant_streams:!0},Yl,ql,jl,Zr,zl,En,We,hr,kb,Nh,Jr,s0,n0,a0,o0,l0=class extends jg{constructor(){super(),ti(this,We),ti(this,Yl),ti(this,ql,!1),ti(this,jl,{}),ti(this,Zr,!0),ti(this,zl,new TC(this,"hotkeys")),ti(this,En,{...r0,onCloseErrorDialog:e=>{var t;((t=e.composedPath()[0])==null?void 0:t.localName)==="media-error-dialog"&&Qe(this,We,Nh).call(this,{isDialogOpen:!1})},onFocusInErrorDialog:e=>{var t;((t=e.composedPath()[0])==null?void 0:t.localName)==="media-error-dialog"&&(bb(this,ym.activeElement)||e.preventDefault())}}),Mi(this,Yl,ff()),this.attachShadow({mode:"open"}),Qe(this,We,kb).call(this),this.isConnected&&Qe(this,We,hr).call(this)}static get NAME(){return i0}static get VERSION(){return t0}static get observedAttributes(){var e;return[...(e=jg.observedAttributes)!=null?e:[],...tM,...eM,...iM]}get mediaTheme(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("media-theme")}get mediaController(){var e,t;return(t=(e=this.mediaTheme)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("media-controller")}connectedCallback(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mux-video");t&&(t.metadata=e0(this))}attributeChangedCallback(e,t,r){switch(Qe(this,We,hr).call(this),super.attributeChangedCallback(e,t,r),e){case U.HOTKEYS:Re(this,zl).value=r;break;case U.THUMBNAIL_TIME:{r!=null&&this.tokens.thumbnail&&qi(J("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").toString());break}case U.THUMBNAIL_TOKEN:{if(r){let s=cn(r);if(s){let{aud:n}=s,a=xa.THUMBNAIL;n!==a&&qi(J("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:n,expectedAud:a,tokenNamePrefix:"thumbnail"}))}}break}case U.STORYBOARD_TOKEN:{if(r){let s=cn(r);if(s){let{aud:n}=s,a=xa.STORYBOARD;n!==a&&qi(J("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:n,expectedAud:a,tokenNamePrefix:"storyboard"}))}}break}case U.DRM_TOKEN:{if(r){let s=cn(r);if(s){let{aud:n}=s,a=xa.DRM;n!==a&&qi(J("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:n,expectedAud:a,tokenNamePrefix:"drm"}))}}break}case D.PLAYBACK_ID:{r!=null&&r.includes("?token")&&Kt(J("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:r}));break}case D.STREAM_TYPE:r&&![ke.LIVE,ke.ON_DEMAND,ke.UNKNOWN].includes(r)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=r.includes("dvr")?Number.POSITIVE_INFINITY:0:Sb({file:"invalid-stream-type.md",message:J("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):r===ke.LIVE?this.getAttribute(U.TARGET_LIVE_WINDOW)==null&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN}[D.PLAYBACK_ID,Ki.SRC,U.PLAYBACK_TOKEN].includes(e)&&t!==r&&Mi(this,En,{...Re(this,En),...r0}),Qe(this,We,Jr).call(this,{[bC(e)]:r})}async requestFullscreen(e){var t;if(!(!this.mediaController||this.mediaController.hasAttribute(T.MEDIA_IS_FULLSCREEN)))return(t=this.mediaController)==null||t.dispatchEvent(new Pt.CustomEvent(X.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((r,s)=>{var n;(n=this.mediaController)==null||n.addEventListener(Qi.MEDIA_IS_FULLSCREEN,()=>r(),{once:!0})})}async exitFullscreen(){var e;if(!(!this.mediaController||!this.mediaController.hasAttribute(T.MEDIA_IS_FULLSCREEN)))return(e=this.mediaController)==null||e.dispatchEvent(new Pt.CustomEvent(X.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((t,r)=>{var s;(s=this.mediaController)==null||s.addEventListener(Qi.MEDIA_IS_FULLSCREEN,()=>t(),{once:!0})})}get preferCmcd(){var e;return(e=this.getAttribute(D.PREFER_CMCD))!=null?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?cd.includes(e)?this.setAttribute(D.PREFER_CMCD,e):qi(`Invalid value for preferCmcd. Must be one of ${cd.join()}`):this.removeAttribute(D.PREFER_CMCD))}get hasPlayed(){var e,t;return(t=(e=this.mediaController)==null?void 0:e.hasAttribute(T.MEDIA_HAS_PLAYED))!=null?t:!1}get inLiveWindow(){var e;return(e=this.mediaController)==null?void 0:e.hasAttribute(T.MEDIA_TIME_IS_LIVE)}get _hls(){var e;return(e=this.media)==null?void 0:e._hls}get mux(){var e;return(e=this.media)==null?void 0:e.mux}get theme(){var e;return(e=this.getAttribute(U.THEME))!=null?e:zC}set theme(e){this.setAttribute(U.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let t={};for(let r of e.getAttributeNames()){if(Ph.includes(r))continue;let s=e.getAttribute(r);t[Eb(r)]=s===""?!0:s}return t}set themeProps(e){var t,r;Qe(this,We,hr).call(this);let s={...this.themeProps,...e};for(let n in s){if(Ph.includes(n))continue;let a=e==null?void 0:e[n];typeof a=="boolean"||a==null?(t=this.mediaTheme)==null||t.toggleAttribute(Mh(n),!!a):(r=this.mediaTheme)==null||r.setAttribute(Mh(n),a)}}get playbackId(){var e;return(e=this.getAttribute(D.PLAYBACK_ID))!=null?e:void 0}set playbackId(e){e?this.setAttribute(D.PLAYBACK_ID,e):this.removeAttribute(D.PLAYBACK_ID)}get src(){var e,t;return this.playbackId?(e=kr(this,Ki.SRC))!=null?e:void 0:(t=this.getAttribute(Ki.SRC))!=null?t:void 0}set src(e){e?this.setAttribute(Ki.SRC,e):this.removeAttribute(Ki.SRC)}get poster(){var e;let t=this.getAttribute(Ki.POSTER);if(t!=null)return t;let{tokens:r}=this;if(r.playback&&!r.thumbnail){qi("Missing expected thumbnail token. No poster image will be shown");return}if(this.playbackId&&!this.audio)return vC(this.playbackId,{customDomain:this.customDomain,thumbnailTime:(e=this.thumbnailTime)!=null?e:this.startTime,programTime:this.programStartTime,token:r.thumbnail})}set poster(e){e||e===""?this.setAttribute(Ki.POSTER,e):this.removeAttribute(Ki.POSTER)}get storyboardSrc(){var e;return(e=this.getAttribute(U.STORYBOARD_SRC))!=null?e:void 0}set storyboardSrc(e){e?this.setAttribute(U.STORYBOARD_SRC,e):this.removeAttribute(U.STORYBOARD_SRC)}get storyboard(){let{tokens:e}=this;if(this.storyboardSrc&&!e.storyboard)return this.storyboardSrc;if(!(this.audio||!this.playbackId||!this.streamType||[ke.LIVE,ke.UNKNOWN].includes(this.streamType)||e.playback&&!e.storyboard))return EC(this.playbackId,{customDomain:this.customDomain,token:e.storyboard,programStartTime:this.programStartTime,programEndTime:this.programEndTime})}get audio(){return this.hasAttribute(U.AUDIO)}set audio(e){if(!e){this.removeAttribute(U.AUDIO);return}this.setAttribute(U.AUDIO,"")}get hotkeys(){return Re(this,zl)}get nohotkeys(){return this.hasAttribute(U.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(U.NOHOTKEYS);return}this.setAttribute(U.NOHOTKEYS,"")}get thumbnailTime(){return Mt(this.getAttribute(U.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(U.THUMBNAIL_TIME,`${e}`)}get videoTitle(){var e,t;return(t=(e=this.getAttribute(U.VIDEO_TITLE))!=null?e:this.getAttribute(U.TITLE))!=null?t:""}set videoTitle(e){e!==this.videoTitle&&(e?this.setAttribute(U.VIDEO_TITLE,e):this.removeAttribute(U.VIDEO_TITLE))}get placeholder(){var e;return(e=kr(this,U.PLACEHOLDER))!=null?e:""}set placeholder(e){this.setAttribute(U.PLACEHOLDER,`${e}`)}get primaryColor(){var e,t;let r=this.getAttribute(U.PRIMARY_COLOR);if(r!=null||this.mediaTheme&&(r=(t=(e=Pt.getComputedStyle(this.mediaTheme))==null?void 0:e.getPropertyValue("--_primary-color"))==null?void 0:t.trim(),r))return r}set primaryColor(e){this.setAttribute(U.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e,t;let r=this.getAttribute(U.SECONDARY_COLOR);if(r!=null||this.mediaTheme&&(r=(t=(e=Pt.getComputedStyle(this.mediaTheme))==null?void 0:e.getPropertyValue("--_secondary-color"))==null?void 0:t.trim(),r))return r}set secondaryColor(e){this.setAttribute(U.SECONDARY_COLOR,`${e}`)}get accentColor(){var e,t;let r=this.getAttribute(U.ACCENT_COLOR);if(r!=null||this.mediaTheme&&(r=(t=(e=Pt.getComputedStyle(this.mediaTheme))==null?void 0:e.getPropertyValue("--_accent-color"))==null?void 0:t.trim(),r))return r}set accentColor(e){this.setAttribute(U.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(U.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(U.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(U.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(U.PLAYBACK_RATES))return this.getAttribute(U.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t)}set playbackRates(e){if(!e){this.removeAttribute(U.PLAYBACK_RATES);return}this.setAttribute(U.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return(e=Mt(this.getAttribute(U.FORWARD_SEEK_OFFSET)))!=null?e:10}set forwardSeekOffset(e){this.setAttribute(U.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return(e=Mt(this.getAttribute(U.BACKWARD_SEEK_OFFSET)))!=null?e:10}set backwardSeekOffset(e){this.setAttribute(U.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(U.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(U.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(U.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return Mt(this.getAttribute(U.DEFAULT_DURATION))}set defaultDuration(e){e==null?this.removeAttribute(U.DEFAULT_DURATION):this.setAttribute(U.DEFAULT_DURATION,`${e}`)}get playerInitTime(){return this.hasAttribute(D.PLAYER_INIT_TIME)?Mt(this.getAttribute(D.PLAYER_INIT_TIME)):Re(this,Yl)}set playerInitTime(e){e!=this.playerInitTime&&(e==null?this.removeAttribute(D.PLAYER_INIT_TIME):this.setAttribute(D.PLAYER_INIT_TIME,`${+e}`))}get playerSoftwareName(){var e;return(e=this.getAttribute(D.PLAYER_SOFTWARE_NAME))!=null?e:i0}get playerSoftwareVersion(){var e;return(e=this.getAttribute(D.PLAYER_SOFTWARE_VERSION))!=null?e:t0}get beaconCollectionDomain(){var e;return(e=this.getAttribute(D.BEACON_COLLECTION_DOMAIN))!=null?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(D.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(D.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return(e=this.getAttribute(D.MAX_RESOLUTION))!=null?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(D.MAX_RESOLUTION,e):this.removeAttribute(D.MAX_RESOLUTION))}get minResolution(){var e;return(e=this.getAttribute(D.MIN_RESOLUTION))!=null?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(D.MIN_RESOLUTION,e):this.removeAttribute(D.MIN_RESOLUTION))}get renditionOrder(){var e;return(e=this.getAttribute(D.RENDITION_ORDER))!=null?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(D.RENDITION_ORDER,e):this.removeAttribute(D.RENDITION_ORDER))}get programStartTime(){return Mt(this.getAttribute(D.PROGRAM_START_TIME))}set programStartTime(e){e==null?this.removeAttribute(D.PROGRAM_START_TIME):this.setAttribute(D.PROGRAM_START_TIME,`${e}`)}get programEndTime(){return Mt(this.getAttribute(D.PROGRAM_END_TIME))}set programEndTime(e){e==null?this.removeAttribute(D.PROGRAM_END_TIME):this.setAttribute(D.PROGRAM_END_TIME,`${e}`)}get assetStartTime(){return Mt(this.getAttribute(D.ASSET_START_TIME))}set assetStartTime(e){e==null?this.removeAttribute(D.ASSET_START_TIME):this.setAttribute(D.ASSET_START_TIME,`${e}`)}get assetEndTime(){return Mt(this.getAttribute(D.ASSET_END_TIME))}set assetEndTime(e){e==null?this.removeAttribute(D.ASSET_END_TIME):this.setAttribute(D.ASSET_END_TIME,`${e}`)}get extraSourceParams(){return this.hasAttribute(U.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(U.EXTRA_SOURCE_PARAMS)).entries()].reduce((e,[t,r])=>(e[t]=r,e),{}):rM}set extraSourceParams(e){e==null?this.removeAttribute(U.EXTRA_SOURCE_PARAMS):this.setAttribute(U.EXTRA_SOURCE_PARAMS,new URLSearchParams(e).toString())}get customDomain(){var e;return(e=this.getAttribute(D.CUSTOM_DOMAIN))!=null?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(D.CUSTOM_DOMAIN,e):this.removeAttribute(D.CUSTOM_DOMAIN))}get envKey(){var e;return(e=kr(this,D.ENV_KEY))!=null?e:void 0}set envKey(e){this.setAttribute(D.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(U.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(U.NO_VOLUME_PREF,""):this.removeAttribute(U.NO_VOLUME_PREF)}get debug(){return kr(this,D.DEBUG)!=null}set debug(e){e?this.setAttribute(D.DEBUG,""):this.removeAttribute(D.DEBUG)}get disableTracking(){return kr(this,D.DISABLE_TRACKING)!=null}set disableTracking(e){this.toggleAttribute(D.DISABLE_TRACKING,!!e)}get disableCookies(){return kr(this,D.DISABLE_COOKIES)!=null}set disableCookies(e){e?this.setAttribute(D.DISABLE_COOKIES,""):this.removeAttribute(D.DISABLE_COOKIES)}get streamType(){var e,t,r;return(r=(t=this.getAttribute(D.STREAM_TYPE))!=null?t:(e=this.media)==null?void 0:e.streamType)!=null?r:ke.UNKNOWN}set streamType(e){this.setAttribute(D.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,t,r;return(r=(t=this.getAttribute(U.DEFAULT_STREAM_TYPE))!=null?t:(e=this.mediaController)==null?void 0:e.getAttribute(U.DEFAULT_STREAM_TYPE))!=null?r:ke.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(U.DEFAULT_STREAM_TYPE,e):this.removeAttribute(U.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,t;return this.hasAttribute(U.TARGET_LIVE_WINDOW)?+this.getAttribute(U.TARGET_LIVE_WINDOW):(t=(e=this.media)==null?void 0:e.targetLiveWindow)!=null?t:Number.NaN}set targetLiveWindow(e){e==this.targetLiveWindow||Number.isNaN(e)&&Number.isNaN(this.targetLiveWindow)||(e==null?this.removeAttribute(U.TARGET_LIVE_WINDOW):this.setAttribute(U.TARGET_LIVE_WINDOW,`${+e}`))}get liveEdgeStart(){var e;return(e=this.media)==null?void 0:e.liveEdgeStart}get startTime(){return Mt(kr(this,D.START_TIME))}set startTime(e){this.setAttribute(D.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(D.PREFER_PLAYBACK);if(e===Ii.MSE||e===Ii.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Ii.MSE||e===Ii.NATIVE?this.setAttribute(D.PREFER_PLAYBACK,e):this.removeAttribute(D.PREFER_PLAYBACK))}get metadata(){var e;return(e=this.media)==null?void 0:e.metadata}set metadata(e){if(Qe(this,We,hr).call(this),!this.media){Kt("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...e0(this),...e}}get _hlsConfig(){var e;return(e=this.media)==null?void 0:e._hlsConfig}set _hlsConfig(e){if(Qe(this,We,hr).call(this),!this.media){Kt("underlying media element missing when trying to set _hlsConfig. _hlsConfig will not be set.");return}this.media._hlsConfig=e}async addCuePoints(e){var t;if(Qe(this,We,hr).call(this),!this.media){Kt("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return(t=this.media)==null?void 0:t.addCuePoints(e)}get activeCuePoint(){var e;return(e=this.media)==null?void 0:e.activeCuePoint}get cuePoints(){var e,t;return(t=(e=this.media)==null?void 0:e.cuePoints)!=null?t:[]}addChapters(e){var t;if(Qe(this,We,hr).call(this),!this.media){Kt("underlying media element missing when trying to addChapters. chapters will not be added.");return}return(t=this.media)==null?void 0:t.addChapters(e)}get activeChapter(){var e;return(e=this.media)==null?void 0:e.activeChapter}get chapters(){var e,t;return(t=(e=this.media)==null?void 0:e.chapters)!=null?t:[]}getStartDate(){var e;return(e=this.media)==null?void 0:e.getStartDate()}get currentPdt(){var e;return(e=this.media)==null?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(U.PLAYBACK_TOKEN),t=this.getAttribute(U.DRM_TOKEN),r=this.getAttribute(U.THUMBNAIL_TOKEN),s=this.getAttribute(U.STORYBOARD_TOKEN);return{...Re(this,jl),...e!=null?{playback:e}:{},...t!=null?{drm:t}:{},...r!=null?{thumbnail:r}:{},...s!=null?{storyboard:s}:{}}}set tokens(e){Mi(this,jl,e??{})}get playbackToken(){var e;return(e=this.getAttribute(U.PLAYBACK_TOKEN))!=null?e:void 0}set playbackToken(e){this.setAttribute(U.PLAYBACK_TOKEN,`${e}`)}get drmToken(){var e;return(e=this.getAttribute(U.DRM_TOKEN))!=null?e:void 0}set drmToken(e){this.setAttribute(U.DRM_TOKEN,`${e}`)}get thumbnailToken(){var e;return(e=this.getAttribute(U.THUMBNAIL_TOKEN))!=null?e:void 0}set thumbnailToken(e){this.setAttribute(U.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return(e=this.getAttribute(U.STORYBOARD_TOKEN))!=null?e:void 0}set storyboardToken(e){this.setAttribute(U.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,t,r,s){var n;let a=(n=this.media)==null?void 0:n.nativeEl;if(a)return uf(a,e,t,r,s)}removeTextTrack(e){var t;let r=(t=this.media)==null?void 0:t.nativeEl;if(r)return QR(r,e)}get textTracks(){var e;return(e=this.media)==null?void 0:e.textTracks}get castReceiver(){var e;return(e=this.getAttribute(U.CAST_RECEIVER))!=null?e:void 0}set castReceiver(e){e!==this.castReceiver&&(e?this.setAttribute(U.CAST_RECEIVER,e):this.removeAttribute(U.CAST_RECEIVER))}get castCustomData(){var e;return(e=this.media)==null?void 0:e.castCustomData}set castCustomData(e){if(!this.media){Kt("underlying media element missing when trying to set castCustomData. castCustomData will not be set.");return}this.media.castCustomData=e}get noTooltips(){return this.hasAttribute(U.NO_TOOLTIPS)}set noTooltips(e){if(!e){this.removeAttribute(U.NO_TOOLTIPS);return}this.setAttribute(U.NO_TOOLTIPS,"")}get proudlyDisplayMuxBadge(){return this.hasAttribute(U.PROUDLY_DISPLAY_MUX_BADGE)}set proudlyDisplayMuxBadge(e){e?this.setAttribute(U.PROUDLY_DISPLAY_MUX_BADGE,""):this.removeAttribute(U.PROUDLY_DISPLAY_MUX_BADGE)}};Yl=new WeakMap,ql=new WeakMap,jl=new WeakMap,Zr=new WeakMap,zl=new WeakMap,En=new WeakMap,We=new WeakSet,hr=function(){var i,e,t,r;if(!Re(this,ql)){Mi(this,ql,!0),Qe(this,We,Jr).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof Pt.HTMLElement))throw""}catch{Kt("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof ED))throw""}catch{Kt("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof BI))throw""}catch{Kt("<media-controller> failed to upgrade!")}this.init(),Qe(this,We,s0).call(this),Qe(this,We,n0).call(this),Qe(this,We,a0).call(this),Mi(this,Zr,(e=(i=this.mediaController)==null?void 0:i.hasAttribute(te.USER_INACTIVE))!=null?e:!0),Qe(this,We,o0).call(this),(t=this.media)==null||t.addEventListener("streamtypechange",()=>Qe(this,We,Jr).call(this)),(r=this.media)==null||r.addEventListener("loadstart",()=>Qe(this,We,Jr).call(this))}},kb=function(){var i,e;try{(i=window==null?void 0:window.CSS)==null||i.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),(e=window==null?void 0:window.CSS)==null||e.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},Nh=function(i){Object.assign(Re(this,En),i),Qe(this,We,Jr).call(this)},Jr=function(i={}){UC($C(XC(this,{...Re(this,En),...i})),this.shadowRoot)},s0=function(){let i=e=>{var t,r;if(!(e!=null&&e.startsWith("theme-")))return;let s=e.replace(/^theme-/,"");if(Ph.includes(s))return;let n=this.getAttribute(e);n!=null?(t=this.mediaTheme)==null||t.setAttribute(s,n):(r=this.mediaTheme)==null||r.removeAttribute(s)};new MutationObserver(e=>{for(let{attributeName:t}of e)i(t)}).observe(this,{attributes:!0}),this.getAttributeNames().forEach(i)},n0=function(){var i;let e=t=>{let{detail:r}=t;if(r instanceof K||(r=new K(r.message,r.code,r.fatal)),!(r!=null&&r.fatal)){qi(r),r.data&&qi(`${r.name} data:`,r.data);return}let s=Qg(r);s.message&&Sb(s),Kt(r),r.data&&Kt(`${r.name} data:`,r.data),Qe(this,We,Nh).call(this,{isDialogOpen:!0})};this.addEventListener("error",e),this.media&&(this.media.errorTranslator=(t={})=>{var r,s,n;if(!(((r=this.media)==null?void 0:r.error)instanceof K))return t;let a=Qg((s=this.media)==null?void 0:s.error);return{player_error_code:(n=this.media)==null?void 0:n.error.code,player_error_message:a.message?String(a.message):t.player_error_message,player_error_context:a.context?String(a.context):t.player_error_context}}),(i=this.media)==null||i.addEventListener("error",t=>{var r,s;let{detail:n}=t;if(!n){let{message:a,code:o}=(s=(r=this.media)==null?void 0:r.error)!=null?s:{};n=new K(a,o)}n!=null&&n.fatal&&this.dispatchEvent(new CustomEvent("error",{detail:n}))})},a0=function(){var i,e,t,r;let s=()=>Qe(this,We,Jr).call(this);(e=(i=this.media)==null?void 0:i.textTracks)==null||e.addEventListener("addtrack",s),(r=(t=this.media)==null?void 0:t.textTracks)==null||r.addEventListener("removetrack",s)},o0=function(){var i,e;if(!/Firefox/i.test(navigator.userAgent))return;let t,r=new WeakMap,s=()=>this.streamType===ke.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,n=(l,d,u=!1)=>{s()||Array.from(l&&l.activeCues||[]).forEach(c=>{if(!(!c.snapToLines||c.line<-5||c.line>=0&&c.line<10))if(!d||this.paused){let h=c.text.split(`
|
|
3205
|
-
`).length,f=-3;this.streamType===ke.LIVE&&(f=-2);let m=f-h;if(c.line===m&&!u)return;r.has(c)||r.set(c,c.line),c.line=m}else setTimeout(()=>{c.line=r.get(c)||"auto"},500)})},a=()=>{var l,d;n(t,(d=(l=this.mediaController)==null?void 0:l.hasAttribute(te.USER_INACTIVE))!=null?d:!1)},o=()=>{var l,d;let u=Array.from(((d=(l=this.mediaController)==null?void 0:l.media)==null?void 0:d.textTracks)||[]).filter(c=>["subtitles","captions"].includes(c.kind)&&c.mode==="showing")[0];u!==t&&(t==null||t.removeEventListener("cuechange",a)),t=u,t==null||t.addEventListener("cuechange",a),n(t,Re(this,Zr))};o(),(i=this.textTracks)==null||i.addEventListener("change",o),(e=this.textTracks)==null||e.addEventListener("addtrack",o),this.addEventListener("userinactivechange",()=>{var l,d;let u=(d=(l=this.mediaController)==null?void 0:l.hasAttribute(te.USER_INACTIVE))!=null?d:!0;Re(this,Zr)!==u&&(Mi(this,Zr,u),n(t,Re(this,Zr)))})};function kr(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}Pt.customElements.get("mux-player")||(Pt.customElements.define("mux-player",l0),Pt.MuxPlayerElement=l0);var wb=parseInt(Ma.version)>=19,d0={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},sM=i=>i==null,nM=(i,e)=>sM(e)?!1:i in e,aM=i=>i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),oM=(i,e)=>{if(!(!wb&&typeof e=="boolean"&&!e)){if(nM(i,d0))return d0[i];if(typeof e<"u")return/[A-Z]/.test(i)?aM(i):i}},lM=(i,e)=>!wb&&typeof i=="boolean"?"":i,dM=(i={})=>{let{ref:e,...t}=i;return Object.entries(t).reduce((r,[s,n])=>{let a=oM(s,n);if(!a)return r;let o=lM(n);return r[a]=o,r},{})};function u0(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function uM(...i){return e=>{let t=!1,r=i.map(s=>{let n=u0(s,e);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let s=0;s<r.length;s++){let n=r[s];typeof n=="function"?n():u0(i[s],null)}}}}function cM(...i){return Et.useCallback(uM(...i),i)}var hM=Object.prototype.hasOwnProperty,fM=(i,e)=>{if(Object.is(i,e))return!0;if(typeof i!="object"||i===null||typeof e!="object"||e===null)return!1;if(Array.isArray(i))return!Array.isArray(e)||i.length!==e.length?!1:i.some((s,n)=>e[n]===s);let t=Object.keys(i),r=Object.keys(e);if(t.length!==r.length)return!1;for(let s=0;s<t.length;s++)if(!hM.call(e,t[s])||!Object.is(i[t[s]],e[t[s]]))return!1;return!0},Db=(i,e,t)=>!fM(e,i[t]),mM=(i,e,t)=>{i[t]=e},pM=(i,e,t,r=mM,s=Db)=>Et.useEffect(()=>{let n=t==null?void 0:t.current;n&&s(n,e,i)&&r(n,e,i)},[t==null?void 0:t.current,e]),di=pM,gM=()=>{try{return"3.4.1"}catch{}return"UNKNOWN"},vM=gM(),EM=()=>vM,yM=Ma.forwardRef(({children:i,...e},t)=>Ma.createElement("mux-player",{suppressHydrationWarning:!0,...dM(e),ref:t},i)),Oe=(i,e,t)=>Et.useEffect(()=>{let r=e==null?void 0:e.current;if(!(!r||!t))return r.addEventListener(i,t),()=>{r.removeEventListener(i,t)}},[e==null?void 0:e.current,t]),bM=(i,e)=>{let{onAbort:t,onCanPlay:r,onCanPlayThrough:s,onEmptied:n,onLoadStart:a,onLoadedData:o,onLoadedMetadata:l,onProgress:d,onDurationChange:u,onVolumeChange:c,onRateChange:h,onResize:f,onWaiting:m,onPlay:p,onPlaying:g,onTimeUpdate:v,onPause:b,onSeeking:y,onSeeked:S,onStalled:_,onSuspend:A,onEnded:x,onError:C,onCuePointChange:P,onCuePointsChange:R,onChapterChange:M,metadata:V,tokens:F,paused:Z,playbackId:q,playbackRates:j,currentTime:ce,themeProps:ue,extraSourceParams:G,castCustomData:B,_hlsConfig:oe,...de}=e;return di("playbackRates",j,i),di("metadata",V,i),di("extraSourceParams",G,i),di("_hlsConfig",oe,i),di("themeProps",ue,i),di("tokens",F,i),di("playbackId",q,i),di("castCustomData",B,i),di("paused",Z,i,(he,be)=>{be!=null&&(be?he.pause():he.play())},(he,be,He)=>he.hasAttribute("autoplay")&&!he.hasPlayed?!1:Db(he,be,He)),di("currentTime",ce,i,(he,be)=>{be!=null&&(he.currentTime=be)}),Oe("abort",i,t),Oe("canplay",i,r),Oe("canplaythrough",i,s),Oe("emptied",i,n),Oe("loadstart",i,a),Oe("loadeddata",i,o),Oe("loadedmetadata",i,l),Oe("progress",i,d),Oe("durationchange",i,u),Oe("volumechange",i,c),Oe("ratechange",i,h),Oe("resize",i,f),Oe("waiting",i,m),Oe("play",i,p),Oe("playing",i,g),Oe("timeupdate",i,v),Oe("pause",i,b),Oe("seeking",i,y),Oe("seeked",i,S),Oe("stalled",i,_),Oe("suspend",i,A),Oe("ended",i,x),Oe("error",i,C),Oe("cuepointchange",i,P),Oe("cuepointschange",i,R),Oe("chapterchange",i,M),[de]},TM=EM(),_M="mux-player-react",AM=Ma.forwardRef((i,e)=>{var t;let r=Et.useRef(null),s=cM(r,e),[n]=bM(r,i),[a]=Et.useState((t=i.playerInitTime)!=null?t:ff());return Ma.createElement(yM,{ref:s,defaultHiddenCaptions:i.defaultHiddenCaptions,playerSoftwareName:_M,playerSoftwareVersion:TM,playerInitTime:a,...n})}),SM=AM;const xM=Gb({time:Wb(),expiresAt:Kb()}).transform(i=>({time:Number(i.time),expiresAt:new Date(i.expiresAt)}));function RM(){var e;const i=jb("root");return((e=i==null?void 0:i.preferences)==null?void 0:e.player)??null}const LM=["INPUT","SELECT","BUTTON","TEXTAREA","MUX-PLAYER","SUMMARY"],IM=["button","option","combobox","tab","tablist"];function c0(i){let e=i;for(;e;){if(!(e instanceof HTMLElement))return!1;if(LM.includes(e.tagName)||IM.includes(e.getAttribute("role")||"")||e.isContentEditable)return!0;e=e.parentElement}return!1}function h0(i){const e=Et.useRef(i);return Et.useEffect(()=>{e.current=i},[i]),e}function kM({muxPlayerRef:i,...e}){const t=RM(),r=qb(),[s,n]=Et.useState(!1),a=`${e.playbackId}:currentTime`,[o,l]=Et.useState(0),d=h0(r),u=h0(t);Et.useEffect(()=>{if(typeof document>"u")return;const h=sessionStorage.getItem(a);if(h)try{const{time:f,expiresAt:m}=xM.parse(JSON.parse(h));if(m.getTime()<Date.now())throw new Error("Time expired");l(f)}catch{sessionStorage.removeItem(a)}},[a]),Et.useEffect(()=>{function h(f){if(!i.current)return;const m=document.activeElement;c0(m)||c0(f.target)||(f.key===" "&&(f.preventDefault(),i.current.paused?i.current.play():i.current.pause()),f.key==="ArrowRight"&&(f.preventDefault(),i.current.currentTime=i.current.currentTime+(i.current.forwardSeekOffset||10)),f.key==="ArrowLeft"&&(f.preventDefault(),i.current.currentTime=i.current.currentTime-(i.current.forwardSeekOffset||10)),f.key==="f"&&!f.metaKey&&!f.ctrlKey&&(f.preventDefault(),document.fullscreenElement?document.exitFullscreen():i.current.requestFullscreen()))}return window.document.addEventListener("keydown",h),()=>{window.document.removeEventListener("keydown",h)}},[i]);const c=Vb(()=>{const h=i.current;if(!h)return;const f=Array.from(h.textTracks??[]).find(p=>p.kind==="subtitles"),m={playbackRate:h.playbackRate,volumeRate:h.volume,subtitle:f?{id:f.id,mode:f.mode}:{id:null,mode:"disabled"}};Uh(m,u.current)||d.current.submit(m,{method:"POST",action:"/video-player",encType:"application/json"})},300);return Et.useEffect(()=>{var m,p;if(!s)return;const h=(m=i.current)==null?void 0:m.textTracks;if(!h)return;const f=(p=u.current)==null?void 0:p.subtitle;if(f!=null&&f.id){const g=h.getTrackById(f.id);g&&(g.mode=f.mode??"hidden")}return h.addEventListener("change",c),()=>{h.removeEventListener("change",c)}},[s,i,u,c]),H.jsx("div",{className:"flex aspect-video flex-col",children:H.jsx(SM,{ref:i,playbackRates:[.5,.75,1,1.25,1.5,1.75,2,2.5,3,3.5,4],volume:(t==null?void 0:t.volumeRate)??1,playbackRate:(t==null?void 0:t.playbackRate)??1,thumbnailTime:o,onRateChange:c,onVolumeChange:c,streamType:"on-demand",defaultHiddenCaptions:!0,currentTime:o,onTimeUpdate:()=>{var h;return sessionStorage.setItem(a,JSON.stringify({time:(h=i.current)==null?void 0:h.currentTime,expiresAt:new Date(Date.now()+1e3*60*30).toISOString()}))},accentColor:"#427cf0",targetLiveWindow:NaN,onLoadedMetadata:()=>n(!0),minResolution:wM(t==null?void 0:t.minResolution),maxResolution:DM(t==null?void 0:t.maxResolution),...e})})}function Uh(i,e){if(i===e)return!0;if(typeof i!=typeof e||typeof i!="object"||typeof e!="object"||i===null||e===null||Array.isArray(i)!==Array.isArray(e))return!1;if(Array.isArray(i)&&Array.isArray(e)){if(i.length!==e.length)return!1;for(let s=0;s<i.length;s++)if(!Uh(i[s],e[s]))return!1;return!0}const t=Object.keys(i),r=Object.keys(e);if(t.length!==r.length)return!1;for(const s of t)if(!Uh(i[s],e[s]))return!1;return!0}function wM(i){if(i)return i<=480?Is.noLessThan480p:i<=540?Is.noLessThan540p:i<=720?Is.noLessThan720p:i<=1080?Is.noLessThan1080p:i<=1440?Is.noLessThan1440p:Is.noLessThan2160p}function DM(i){if(i)return i<=720?Eo.upTo720p:i<=1080?Eo.upTo1080p:i<=1440?Eo.upTo1440p:Eo.upTo2160p}const Cb=Et.createContext(null);function f2({children:i,epicVideoInfosPromise:e}){return H.jsx(Cb.Provider,{value:e,children:i})}function Mb(i){let e=new URL("https://epicweb.dev");try{e=new URL(i)}catch(c){return console.error(c),"EpicWeb.dev Video"}const t=e.pathname.split("/").filter(Boolean),r=t.includes("solution");let s=t.pop();const n=["problem","solution","embed","exercise"],a=c=>c&&!n.includes(c);for(;!a(s);)s=t.pop();if(!s)return"EpicWeb.dev Video";const o=s.split("-"),l=["the","a","an","and","but","or","for","nor","on","at","to","from","by","of","in","with","as","npm","git","ssh","cli"],d=["OAuth","UI","UX","API","CSS","HTML","JS","TS","SVG","AI","CSRF","CORS","HTTP","HTTPS","URL","URI","DB","SQL","JSON","YAML","YML","useActionData","useAsyncError","useAsyncValue","useBeforeUnload","useFetcher","useFetchers","useFormAction","useHref","useLoaderData","useLocation","useMatches","useNavigate","useNavigation","useNavigationType","useOutlet","useOutletContext","useParams","useResolvedPath","useRevalidator","useRouteError","useRouteLoaderData","useSearchParams","useSubmit","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","useForm","useFieldset","useFieldList","useEventSource","useHydrated","useAuthenticityToken","useShouldHydrate","useGlobalNavigationState","useLocales","useDelegatedAnchors","useDebounceFetcher","useFetcherType"],u=o.filter(Boolean).map((c,h)=>{var p;const f=c.toLowerCase(),m=d.find(g=>g.toLowerCase()===f);return m||(l.includes(f)&&h>0?f:((p=f[0])==null?void 0:p.toUpperCase())+f.slice(1))}).join(" ");return r?`${u} (🏁 solution)`:u}function CM({url:i,title:e="Video Embed",loadingContent:t=H.jsx(Fh,{children:H.jsxs("span",{children:['Loading "',e,'"']})})}){const r=f0(),[s,n]=Et.useState(!1);return Xb()?H.jsxs("div",{className:"relative aspect-video w-full flex-shrink-0 shadow-lg",children:[s?null:H.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center p-8",children:t}),H.jsx("iframe",{onLoad:()=>n(!0),onError:()=>n(!0),src:i,className:Yb("absolute inset-0 flex h-full w-full transition-opacity duration-300",s?"opacity-100":"opacity-0"),title:e,sandbox:"allow-forms allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",allowFullScreen:!0,style:{colorScheme:r}})]}):H.jsx("div",{className:"relative aspect-video w-full flex-shrink-0 shadow-lg",children:H.jsx("div",{className:"not-prose absolute inset-0 z-10 flex items-center justify-center p-8 text-foreground-destructive",children:H.jsx(m0,{name:"WifiNoConnection",size:"xl",children:H.jsxs("span",{children:["Unable to load the video ",H.jsx("a",{href:i,className:"underline",children:`"${e??i}"`})," when offline"]})})})})}function Ob({url:i,title:e}){return H.jsxs("a",{href:i,target:"_blank",className:"flex items-center gap-1 text-base no-underline opacity-70 transition hover:underline hover:opacity-100",rel:"noreferrer",children:[H.jsx(m0,{className:"flex-shrink-0",name:"Video",size:"lg"}),e," ",H.jsx("span",{"aria-hidden":!0,children:"↗︎"})]})}function m2({url:i,title:e}){const t=e??Mb(i),{product:{host:r,displayName:s}}=Zb(),n=Qb(),a=Et.useContext(Cb),o=H.jsx("div",{children:H.jsx(Ob,{url:i,title:t})});return H.jsx("div",{children:H.jsx(Et.Suspense,{fallback:H.jsxs("div",{children:[H.jsx("div",{className:"flex aspect-video w-full items-center justify-center",children:H.jsx(Fh,{children:t})}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{className:"h-[32px]"})]})]}),children:H.jsx(zb,{errorElement:H.jsx("div",{children:"Sorry, failed loading videos. Check the terminal output?"}),resolve:a,children:l=>{const d=l==null?void 0:l[i],u=ENV.EPICSHOP_DEPLOYED?H.jsxs("div",{children:[H.jsx(io,{to:ENV.EPICSHOP_GITHUB_REPO,className:"underline",children:"Run locally"})," for transcripts"]}):H.jsxs("div",{children:[H.jsx(io,{to:"/login",className:"underline",children:n?"Upgrade":"Login"})," for transcripts"]});if(!d)return H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,u]})]});const c=d;return c.status==="success"?H.jsx(MM,{url:i,title:e??c.title??t,muxPlaybackId:c.muxPlaybackId,transcript:c.transcript}):c.type==="region-restricted"?H.jsxs("div",{children:[H.jsxs("div",{className:"flex aspect-video min-h-full min-w-full flex-col items-center justify-start gap-2 overflow-y-scroll border-2 p-4 lg:justify-center lg:gap-4 lg:text-xl",children:[H.jsx("div",{className:"!text-foreground-destructive",children:"Error: Region Restricted"}),H.jsxs("div",{children:["We've detected you're connecting from"," ",c.requestCountry," but your license has restricted access to ",c.restrictedCountry]}),H.jsxs("div",{children:["To continue watching uninterrupted, please"," ",H.jsxs("a",{href:`https://${r}/products`,className:"underline",children:["upgrade your ",s," license"]})," ","to a full Pro license."]})]}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsxs("div",{children:[H.jsx(io,{to:`https://${r}/products`,className:"underline",children:"Upgrade"})," for transcripts"]})]})]}):c.statusCode===401?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,u]})]}):c.statusCode===403?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsxs("div",{children:[H.jsx(io,{to:`https://${r}/products`,className:"underline",children:"Upgrade"})," for transcripts"]})]})]}):c.statusCode===404?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{children:"Transcripts not found"})]})]}):(console.error(c),H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{className:"!text-foreground-destructive",children:"Unknown error (check console)"})]})]}))}})})})}function MM({url:i,title:e=Mb(i),muxPlaybackId:t,transcript:r}){const s=Et.useRef(null),n=/(\d+:\d+)/g,a=[];let o,l=0;for(;o=n.exec(r);){const d=o[1];if(!n.lastIndex||!d)break;const u=o.index,c=n.lastIndex,h=r.slice(l+1,u-1);a.push(H.jsx("span",{children:h},u)),a.push(H.jsx("button",{className:"underline",onClick:f=>{s.current&&(s.current.currentTime=OM(d),s.current.play(),s.current.scrollIntoView({behavior:"smooth",inline:"center",block:"start"}),f.currentTarget.blur())},children:d},d)),l=c}return a.push(H.jsx("span",{children:r.slice(l+1,r.length)},r.length)),H.jsxs("div",{children:[H.jsx("div",{className:"shadow-lg",children:H.jsx(kM,{playbackId:t,muxPlayerRef:s,title:e})}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[H.jsx(Ob,{url:i,title:e}),H.jsxs("details",{children:[H.jsx("summary",{children:"Transcript"}),H.jsx("div",{className:"whitespace-pre-line rounded-md bg-accent p-2 text-accent-foreground",children:a})]})]})]})}function OM(i){const e=i.split(":");let t=0,r=1;for(;e.length>0;)t+=r*parseInt(e.pop()??"0",10),r*=60;return t}function zn({url:i,title:e}){const t=f0();let r=new URL("https://epicweb.dev");try{r=new URL(i)}catch(s){return console.error(s),H.jsxs("div",{children:['Invalid URL: "',i,'"']})}return r.pathname=r.pathname.endsWith("/")?`${r.pathname}embed`:`${r.pathname}/embed`,r.searchParams.set("theme",t),r.host==="www.epicai.pro"&&(r.pathname=`/posts/${r.pathname}`),H.jsx(CM,{url:r.toString(),title:e,loadingContent:H.jsx(Fh,{children:H.jsxs("span",{children:['Loading "',H.jsx("a",{className:"underline",href:i,children:e}),'"']})})})}export{m2 as D,f2 as E,CM as V};
|
|
3206
|
-
//# sourceMappingURL=epic-video-
|
|
3205
|
+
`).length,f=-3;this.streamType===ke.LIVE&&(f=-2);let m=f-h;if(c.line===m&&!u)return;r.has(c)||r.set(c,c.line),c.line=m}else setTimeout(()=>{c.line=r.get(c)||"auto"},500)})},a=()=>{var l,d;n(t,(d=(l=this.mediaController)==null?void 0:l.hasAttribute(te.USER_INACTIVE))!=null?d:!1)},o=()=>{var l,d;let u=Array.from(((d=(l=this.mediaController)==null?void 0:l.media)==null?void 0:d.textTracks)||[]).filter(c=>["subtitles","captions"].includes(c.kind)&&c.mode==="showing")[0];u!==t&&(t==null||t.removeEventListener("cuechange",a)),t=u,t==null||t.addEventListener("cuechange",a),n(t,Re(this,Zr))};o(),(i=this.textTracks)==null||i.addEventListener("change",o),(e=this.textTracks)==null||e.addEventListener("addtrack",o),this.addEventListener("userinactivechange",()=>{var l,d;let u=(d=(l=this.mediaController)==null?void 0:l.hasAttribute(te.USER_INACTIVE))!=null?d:!0;Re(this,Zr)!==u&&(Mi(this,Zr,u),n(t,Re(this,Zr)))})};function kr(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}Pt.customElements.get("mux-player")||(Pt.customElements.define("mux-player",l0),Pt.MuxPlayerElement=l0);var wb=parseInt(Ma.version)>=19,d0={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},sM=i=>i==null,nM=(i,e)=>sM(e)?!1:i in e,aM=i=>i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),oM=(i,e)=>{if(!(!wb&&typeof e=="boolean"&&!e)){if(nM(i,d0))return d0[i];if(typeof e<"u")return/[A-Z]/.test(i)?aM(i):i}},lM=(i,e)=>!wb&&typeof i=="boolean"?"":i,dM=(i={})=>{let{ref:e,...t}=i;return Object.entries(t).reduce((r,[s,n])=>{let a=oM(s,n);if(!a)return r;let o=lM(n);return r[a]=o,r},{})};function u0(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function uM(...i){return e=>{let t=!1,r=i.map(s=>{let n=u0(s,e);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let s=0;s<r.length;s++){let n=r[s];typeof n=="function"?n():u0(i[s],null)}}}}function cM(...i){return Et.useCallback(uM(...i),i)}var hM=Object.prototype.hasOwnProperty,fM=(i,e)=>{if(Object.is(i,e))return!0;if(typeof i!="object"||i===null||typeof e!="object"||e===null)return!1;if(Array.isArray(i))return!Array.isArray(e)||i.length!==e.length?!1:i.some((s,n)=>e[n]===s);let t=Object.keys(i),r=Object.keys(e);if(t.length!==r.length)return!1;for(let s=0;s<t.length;s++)if(!hM.call(e,t[s])||!Object.is(i[t[s]],e[t[s]]))return!1;return!0},Db=(i,e,t)=>!fM(e,i[t]),mM=(i,e,t)=>{i[t]=e},pM=(i,e,t,r=mM,s=Db)=>Et.useEffect(()=>{let n=t==null?void 0:t.current;n&&s(n,e,i)&&r(n,e,i)},[t==null?void 0:t.current,e]),di=pM,gM=()=>{try{return"3.4.1"}catch{}return"UNKNOWN"},vM=gM(),EM=()=>vM,yM=Ma.forwardRef(({children:i,...e},t)=>Ma.createElement("mux-player",{suppressHydrationWarning:!0,...dM(e),ref:t},i)),Oe=(i,e,t)=>Et.useEffect(()=>{let r=e==null?void 0:e.current;if(!(!r||!t))return r.addEventListener(i,t),()=>{r.removeEventListener(i,t)}},[e==null?void 0:e.current,t]),bM=(i,e)=>{let{onAbort:t,onCanPlay:r,onCanPlayThrough:s,onEmptied:n,onLoadStart:a,onLoadedData:o,onLoadedMetadata:l,onProgress:d,onDurationChange:u,onVolumeChange:c,onRateChange:h,onResize:f,onWaiting:m,onPlay:p,onPlaying:g,onTimeUpdate:v,onPause:b,onSeeking:y,onSeeked:S,onStalled:_,onSuspend:A,onEnded:x,onError:C,onCuePointChange:P,onCuePointsChange:R,onChapterChange:M,metadata:V,tokens:F,paused:Z,playbackId:q,playbackRates:j,currentTime:ce,themeProps:ue,extraSourceParams:G,castCustomData:B,_hlsConfig:oe,...de}=e;return di("playbackRates",j,i),di("metadata",V,i),di("extraSourceParams",G,i),di("_hlsConfig",oe,i),di("themeProps",ue,i),di("tokens",F,i),di("playbackId",q,i),di("castCustomData",B,i),di("paused",Z,i,(he,be)=>{be!=null&&(be?he.pause():he.play())},(he,be,He)=>he.hasAttribute("autoplay")&&!he.hasPlayed?!1:Db(he,be,He)),di("currentTime",ce,i,(he,be)=>{be!=null&&(he.currentTime=be)}),Oe("abort",i,t),Oe("canplay",i,r),Oe("canplaythrough",i,s),Oe("emptied",i,n),Oe("loadstart",i,a),Oe("loadeddata",i,o),Oe("loadedmetadata",i,l),Oe("progress",i,d),Oe("durationchange",i,u),Oe("volumechange",i,c),Oe("ratechange",i,h),Oe("resize",i,f),Oe("waiting",i,m),Oe("play",i,p),Oe("playing",i,g),Oe("timeupdate",i,v),Oe("pause",i,b),Oe("seeking",i,y),Oe("seeked",i,S),Oe("stalled",i,_),Oe("suspend",i,A),Oe("ended",i,x),Oe("error",i,C),Oe("cuepointchange",i,P),Oe("cuepointschange",i,R),Oe("chapterchange",i,M),[de]},TM=EM(),_M="mux-player-react",AM=Ma.forwardRef((i,e)=>{var t;let r=Et.useRef(null),s=cM(r,e),[n]=bM(r,i),[a]=Et.useState((t=i.playerInitTime)!=null?t:ff());return Ma.createElement(yM,{ref:s,defaultHiddenCaptions:i.defaultHiddenCaptions,playerSoftwareName:_M,playerSoftwareVersion:TM,playerInitTime:a,...n})}),SM=AM;const xM=Vb({time:qb(),expiresAt:Yb()}).transform(i=>({time:Number(i.time),expiresAt:new Date(i.expiresAt)}));function RM(){var e;const i=Kb("root");return((e=i==null?void 0:i.preferences)==null?void 0:e.player)??null}const LM=["INPUT","SELECT","BUTTON","TEXTAREA","MUX-PLAYER","SUMMARY"],IM=["button","option","combobox","tab","tablist"];function c0(i){let e=i;for(;e;){if(!(e instanceof HTMLElement))return!1;if(LM.includes(e.tagName)||IM.includes(e.getAttribute("role")||"")||e.isContentEditable)return!0;e=e.parentElement}return!1}function h0(i){const e=Et.useRef(i);return Et.useEffect(()=>{e.current=i},[i]),e}function kM({muxPlayerRef:i,...e}){const t=RM(),r=Gb(),[s,n]=Et.useState(!1),a=`${e.playbackId}:currentTime`,[o,l]=Et.useState(0),d=h0(r),u=h0(t);Et.useEffect(()=>{if(typeof document>"u")return;const h=sessionStorage.getItem(a);if(h)try{const{time:f,expiresAt:m}=xM.parse(JSON.parse(h));if(m.getTime()<Date.now())throw new Error("Time expired");l(f)}catch{sessionStorage.removeItem(a)}},[a]),Et.useEffect(()=>{function h(f){if(!i.current)return;const m=document.activeElement;c0(m)||c0(f.target)||(f.key===" "&&(f.preventDefault(),i.current.paused?i.current.play():i.current.pause()),f.key==="ArrowRight"&&(f.preventDefault(),i.current.currentTime=i.current.currentTime+(i.current.forwardSeekOffset||10)),f.key==="ArrowLeft"&&(f.preventDefault(),i.current.currentTime=i.current.currentTime-(i.current.forwardSeekOffset||10)),f.key==="f"&&!f.metaKey&&!f.ctrlKey&&(f.preventDefault(),document.fullscreenElement?document.exitFullscreen():i.current.requestFullscreen()))}return window.document.addEventListener("keydown",h),()=>{window.document.removeEventListener("keydown",h)}},[i]);const c=jb(()=>{const h=i.current;if(!h)return;const f=Array.from(h.textTracks??[]).find(p=>p.kind==="subtitles"),m={playbackRate:h.playbackRate,volumeRate:h.volume,subtitle:f?{id:f.id,mode:f.mode}:{id:null,mode:"disabled"}};Uh(m,u.current)||d.current.submit(m,{method:"POST",action:"/video-player",encType:"application/json"})},300);return Et.useEffect(()=>{var m,p;if(!s)return;const h=(m=i.current)==null?void 0:m.textTracks;if(!h)return;const f=(p=u.current)==null?void 0:p.subtitle;if(f!=null&&f.id){const g=h.getTrackById(f.id);g&&(g.mode=f.mode??"hidden")}return h.addEventListener("change",c),()=>{h.removeEventListener("change",c)}},[s,i,u,c]),H.jsx("div",{className:"flex aspect-video flex-col",children:H.jsx(SM,{ref:i,playbackRates:[.5,.75,1,1.25,1.5,1.75,2,2.5,3,3.5,4],volume:(t==null?void 0:t.volumeRate)??1,playbackRate:(t==null?void 0:t.playbackRate)??1,thumbnailTime:o,onRateChange:c,onVolumeChange:c,streamType:"on-demand",defaultHiddenCaptions:!0,currentTime:o,onTimeUpdate:()=>{var h;return sessionStorage.setItem(a,JSON.stringify({time:(h=i.current)==null?void 0:h.currentTime,expiresAt:new Date(Date.now()+1e3*60*30).toISOString()}))},accentColor:"#427cf0",targetLiveWindow:NaN,onLoadedMetadata:()=>n(!0),minResolution:wM(t==null?void 0:t.minResolution),maxResolution:DM(t==null?void 0:t.maxResolution),...e})})}function Uh(i,e){if(i===e)return!0;if(typeof i!=typeof e||typeof i!="object"||typeof e!="object"||i===null||e===null||Array.isArray(i)!==Array.isArray(e))return!1;if(Array.isArray(i)&&Array.isArray(e)){if(i.length!==e.length)return!1;for(let s=0;s<i.length;s++)if(!Uh(i[s],e[s]))return!1;return!0}const t=Object.keys(i),r=Object.keys(e);if(t.length!==r.length)return!1;for(const s of t)if(!Uh(i[s],e[s]))return!1;return!0}function wM(i){if(i)return i<=480?Is.noLessThan480p:i<=540?Is.noLessThan540p:i<=720?Is.noLessThan720p:i<=1080?Is.noLessThan1080p:i<=1440?Is.noLessThan1440p:Is.noLessThan2160p}function DM(i){if(i)return i<=720?Eo.upTo720p:i<=1080?Eo.upTo1080p:i<=1440?Eo.upTo1440p:Eo.upTo2160p}const Cb=Et.createContext(null);function f2({children:i,epicVideoInfosPromise:e}){return H.jsx(Cb.Provider,{value:e,children:i})}function Mb(i){let e=new URL("https://epicweb.dev");try{e=new URL(i)}catch(c){return console.error(c),"EpicWeb.dev Video"}const t=e.pathname.split("/").filter(Boolean),r=t.includes("solution");let s=t.pop();const n=["problem","solution","embed","exercise"],a=c=>c&&!n.includes(c);for(;!a(s);)s=t.pop();if(!s)return"EpicWeb.dev Video";const o=s.split("-"),l=["the","a","an","and","but","or","for","nor","on","at","to","from","by","of","in","with","as","npm","git","ssh","cli"],d=["OAuth","UI","UX","API","CSS","HTML","JS","TS","SVG","AI","CSRF","CORS","HTTP","HTTPS","URL","URI","DB","SQL","JSON","YAML","YML","useActionData","useAsyncError","useAsyncValue","useBeforeUnload","useFetcher","useFetchers","useFormAction","useHref","useLoaderData","useLocation","useMatches","useNavigate","useNavigation","useNavigationType","useOutlet","useOutletContext","useParams","useResolvedPath","useRevalidator","useRouteError","useRouteLoaderData","useSearchParams","useSubmit","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","useForm","useFieldset","useFieldList","useEventSource","useHydrated","useAuthenticityToken","useShouldHydrate","useGlobalNavigationState","useLocales","useDelegatedAnchors","useDebounceFetcher","useFetcherType"],u=o.filter(Boolean).map((c,h)=>{var p;const f=c.toLowerCase(),m=d.find(g=>g.toLowerCase()===f);return m||(l.includes(f)&&h>0?f:((p=f[0])==null?void 0:p.toUpperCase())+f.slice(1))}).join(" ");return r?`${u} (🏁 solution)`:u}function CM({url:i,title:e="Video Embed",loadingContent:t=H.jsx(Fh,{children:H.jsxs("span",{children:['Loading "',e,'"']})})}){const r=f0(),[s,n]=Et.useState(!1);return Xb()?H.jsxs("div",{className:"relative aspect-video w-full flex-shrink-0 shadow-lg",children:[s?null:H.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center p-8",children:t}),H.jsx("iframe",{onLoad:()=>n(!0),onError:()=>n(!0),src:i,className:zb("absolute inset-0 flex h-full w-full transition-opacity duration-300",s?"opacity-100":"opacity-0"),title:e,sandbox:"allow-forms allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",allowFullScreen:!0,style:{colorScheme:r}})]}):H.jsx("div",{className:"relative aspect-video w-full flex-shrink-0 shadow-lg",children:H.jsx("div",{className:"not-prose absolute inset-0 z-10 flex items-center justify-center p-8 text-foreground-destructive",children:H.jsx(m0,{name:"WifiNoConnection",size:"xl",children:H.jsxs("span",{children:["Unable to load the video ",H.jsx("a",{href:i,className:"underline",children:`"${e??i}"`})," when offline"]})})})})}function Ob({url:i,title:e}){return H.jsxs("a",{href:i,target:"_blank",className:"flex items-center gap-1 text-base no-underline opacity-70 transition hover:underline hover:opacity-100",rel:"noreferrer",children:[H.jsx(m0,{className:"flex-shrink-0",name:"Video",size:"lg"}),e," ",H.jsx("span",{"aria-hidden":!0,children:"↗︎"})]})}function m2({url:i,title:e}){const t=e??Mb(i),{product:{host:r,displayName:s}}=Zb(),n=Qb(),a=Et.useContext(Cb),o=H.jsx("div",{children:H.jsx(Ob,{url:i,title:t})});return H.jsx("div",{children:H.jsx(Et.Suspense,{fallback:H.jsxs("div",{children:[H.jsx("div",{className:"flex aspect-video w-full items-center justify-center",children:H.jsx(Fh,{children:t})}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{className:"h-[32px]"})]})]}),children:H.jsx(Wb,{errorElement:H.jsx("div",{children:"Sorry, failed loading videos. Check the terminal output?"}),resolve:a,children:l=>{const d=l==null?void 0:l[i],u=ENV.EPICSHOP_DEPLOYED?H.jsxs("div",{children:[H.jsx(io,{to:ENV.EPICSHOP_GITHUB_REPO,className:"underline",children:"Run locally"})," for transcripts"]}):H.jsxs("div",{children:[H.jsx(io,{to:"/login",className:"underline",children:n?"Upgrade":"Login"})," for transcripts"]});if(!d)return H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,u]})]});const c=d;return c.status==="success"?H.jsx(MM,{url:i,title:e??c.title??t,muxPlaybackId:c.muxPlaybackId,transcript:c.transcript}):c.type==="region-restricted"?H.jsxs("div",{children:[H.jsxs("div",{className:"flex aspect-video min-h-full min-w-full flex-col items-center justify-start gap-2 overflow-y-scroll border-2 p-4 lg:justify-center lg:gap-4 lg:text-xl",children:[H.jsx("div",{className:"!text-foreground-destructive",children:"Error: Region Restricted"}),H.jsxs("div",{children:["We've detected you're connecting from"," ",c.requestCountry," but your license has restricted access to ",c.restrictedCountry]}),H.jsxs("div",{children:["To continue watching uninterrupted, please"," ",H.jsxs("a",{href:`https://${r}/products`,className:"underline",children:["upgrade your ",s," license"]})," ","to a full Pro license."]})]}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsxs("div",{children:[H.jsx(io,{to:`https://${r}/products`,className:"underline",children:"Upgrade"})," for transcripts"]})]})]}):c.statusCode===401?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,u]})]}):c.statusCode===403?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsxs("div",{children:[H.jsx(io,{to:`https://${r}/products`,className:"underline",children:"Upgrade"})," for transcripts"]})]})]}):c.statusCode===404?H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{children:"Transcripts not found"})]})]}):(console.error(c),H.jsxs("div",{children:[H.jsx(zn,{url:i,title:t}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[o,H.jsx("div",{className:"!text-foreground-destructive",children:"Unknown error (check console)"})]})]}))}})})})}function MM({url:i,title:e=Mb(i),muxPlaybackId:t,transcript:r}){const s=Et.useRef(null),n=/(\d+:\d+)/g,a=[];let o,l=0;for(;o=n.exec(r);){const d=o[1];if(!n.lastIndex||!d)break;const u=o.index,c=n.lastIndex,h=r.slice(l+1,u-1);a.push(H.jsx("span",{children:h},u)),a.push(H.jsx("button",{className:"underline",onClick:f=>{s.current&&(s.current.currentTime=OM(d),s.current.play(),s.current.scrollIntoView({behavior:"smooth",inline:"center",block:"start"}),f.currentTarget.blur())},children:d},d)),l=c}return a.push(H.jsx("span",{children:r.slice(l+1,r.length)},r.length)),H.jsxs("div",{children:[H.jsx("div",{className:"shadow-lg",children:H.jsx(kM,{playbackId:t,muxPlayerRef:s,title:e})}),H.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[H.jsx(Ob,{url:i,title:e}),H.jsxs("details",{children:[H.jsx("summary",{children:"Transcript"}),H.jsx("div",{className:"whitespace-pre-line rounded-md bg-accent p-2 text-accent-foreground",children:a})]})]})]})}function OM(i){const e=i.split(":");let t=0,r=1;for(;e.length>0;)t+=r*parseInt(e.pop()??"0",10),r*=60;return t}function zn({url:i,title:e}){const t=f0();let r=new URL("https://epicweb.dev");try{r=new URL(i)}catch(s){return console.error(s),H.jsxs("div",{children:['Invalid URL: "',i,'"']})}return r.pathname=r.pathname.endsWith("/")?`${r.pathname}embed`:`${r.pathname}/embed`,r.searchParams.set("theme",t),r.host==="www.epicai.pro"&&(r.pathname=`/posts/${r.pathname}`),H.jsx(CM,{url:r.toString(),title:e,loadingContent:H.jsx(Fh,{children:H.jsxs("span",{children:['Loading "',H.jsx("a",{className:"underline",href:i,children:e}),'"']})})})}export{m2 as D,f2 as E,CM as V};
|
|
3206
|
+
//# sourceMappingURL=epic-video-D_3otytp.js.map
|