@zeniai/web-cockpit-ui 1.14.82-dev → 1.14.83-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +21 -0
- package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +539 -0
- package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +18 -0
- package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +149 -0
- package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +239 -0
- package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +298 -0
- package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +207 -0
- package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +6 -0
- package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +344 -0
- package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +79 -0
- package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +192 -0
- package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +46 -0
- package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +71 -0
- package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +47 -0
- package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +24 -0
- package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +46 -0
- package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +1 -0
- package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +1 -0
- package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +101 -0
- package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +79 -0
- package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +51 -0
- package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +425 -0
- package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-DnSLHXWD-MUaAKHpR.js → BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js} +26 -26
- package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +84 -0
- package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +42 -0
- package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +1 -0
- package/dist/assets/{BoxItem-B5BR_eEi-Bv0vf77X.js → BoxItem-B6Qj2tSj-aLWYhGMW.js} +2 -2
- package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +138 -0
- package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +21 -0
- package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +285 -0
- package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +1462 -0
- package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +412 -0
- package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +711 -0
- package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +222 -0
- package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +36 -0
- package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +60 -0
- package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +206 -0
- package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +2844 -0
- package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +260 -0
- package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +42 -0
- package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +574 -0
- package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +52 -0
- package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +1 -0
- package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +1 -0
- package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +281 -0
- package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +224 -0
- package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-IwlzXBxP-D0APQC-B.js → CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js} +12 -12
- package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DIey8Q_A-qZcba9zt.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js} +27 -27
- package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +66 -0
- package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +202 -0
- package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +1551 -0
- package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +371 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-DSqlMEXY-CaAiK8be.js → DepositAccTransactionItem-C36JnddA-CD1u3HOE.js} +12 -12
- package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +21 -0
- package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +439 -0
- package/dist/assets/{DrawerPage-DEK5OjOv-CudDxByF.js → DrawerPage-BdYS_9Mt-BL0llqyf.js} +22 -22
- package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +865 -0
- package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +18 -0
- package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +149 -0
- package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +281 -0
- package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +1650 -0
- package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +168 -0
- package/dist/assets/{FeaturePreviewPage-bAjG281t-2xEBJDr4.js → FeaturePreviewPage-Brau5064-B_mFzC9F.js} +4 -4
- package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +390 -0
- package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +291 -0
- package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +31 -0
- package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +79 -0
- package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +57 -0
- package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +171 -0
- package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +292 -0
- package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +312 -0
- package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +739 -0
- package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +12 -0
- package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +140 -0
- package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +532 -0
- package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +49 -0
- package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +16 -0
- package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +204 -0
- package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +59 -0
- package/dist/assets/LabeledText-iHeu8MCf-BqC7UtSs.js +42 -0
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +229 -0
- package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +297 -0
- package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +98 -0
- package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +623 -0
- package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +31 -0
- package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +17 -0
- package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +21 -0
- package/dist/assets/{Menu--_oLyn9M-Sp5pgVYU.js → Menu-pyYbFxsT-C1MdlXRT.js} +4 -4
- package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +6 -0
- package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +85 -0
- package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +30 -0
- package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +47 -0
- package/dist/assets/{NavigationDots-CXbzdOJY-BibyAOdv.js → NavigationDots-DO5y6mdV-DGnlFBBn.js} +3 -3
- package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +160 -0
- package/dist/assets/{NoDataChart-Bgciu380-D8bHxPnp.js → NoDataChart-C0lCeeVH-BiooJKO2.js} +5 -5
- package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +8 -0
- package/dist/assets/{NotFoundPage-BFwyElJE-R-DpYqua.js → NotFoundPage-DGkjOhKP-kjD5UcP7.js} +9 -9
- package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +163 -0
- package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +1 -0
- package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +685 -0
- package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +100 -0
- package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +11 -0
- package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +107 -0
- package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +107 -0
- package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +675 -0
- package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +1 -0
- package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +142 -0
- package/dist/assets/{PromoBaseCards-Dq3GfNdL-CGTQVzuQ.js → PromoBaseCards-38oPeuBR-DNrev2WE.js} +24 -24
- package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +51 -0
- package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +237 -0
- package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +314 -0
- package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +1 -0
- package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +26 -0
- package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +150 -0
- package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +121 -0
- package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +280 -0
- package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +290 -0
- package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +152 -0
- package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +37 -0
- package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +37 -0
- package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +324 -0
- package/dist/assets/ScreenRoutes-B29orzq3.js +206 -0
- package/dist/assets/{SetUpAccountSection-DG7chlm8-kpbqF5AJ.js → SetUpAccountSection-DQMufunh-D76vpY_K.js} +87 -87
- package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +450 -0
- package/dist/assets/SignInScreen-CDr9y3Na.js +1 -0
- package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +754 -0
- package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +230 -0
- package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +31 -0
- package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +58 -0
- package/dist/assets/{StatusSwitcher-Cf6yygg5-CWDIvUyD.js → StatusSwitcher-BFs1Anoq-B4RP8Uzy.js} +8 -8
- package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +58 -0
- package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +1 -0
- package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +1 -0
- package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +508 -0
- package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +66 -0
- package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +31 -0
- package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +38 -0
- package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +132 -0
- package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +912 -0
- package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +147 -0
- package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +284 -0
- package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +80 -0
- package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +362 -0
- package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +708 -0
- package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +505 -0
- package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +58 -0
- package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +16 -0
- package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +116 -0
- package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +244 -0
- package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +67 -0
- package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +38 -0
- package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +1 -0
- package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +1 -0
- package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +1 -0
- package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +175 -0
- package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +152 -0
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BKfX93W4-B6SzKq8w.js → VendorsAccountsSection-tcJAh1A7-COfHef35.js} +8 -8
- package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +112 -0
- package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +78 -0
- package/dist/assets/{VideoPopup-9iierxTj-BAFy3uBP.js → VideoPopup-CPW65Ljn-Mlf95YHy.js} +4 -4
- package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +92 -0
- package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-B75rYYNq-Dj1dl_GZ.js → ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js} +44 -44
- package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +36 -0
- package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +1 -0
- package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +63 -0
- package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +1 -0
- package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +1 -0
- package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-D7W5Y5Hm-zBGkMLf1.js} +1 -1
- package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +1 -0
- package/dist/assets/{analytics-zoE7Zcxt.js → analytics-CeQu-r45.js} +1 -1
- package/dist/assets/{analyticsHelper-B_4dnbas.js → analyticsHelper-DQrzJx-G.js} +1 -1
- package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-D5pI7KCC-DyTRFc-f.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-D1bNopxW-BXcmbJh5.js} +1 -1
- package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +1 -0
- package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +1 -0
- package/dist/assets/{core-3dlyNYRL.js → core-tlHkQPPu.js} +13 -13
- package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +21 -0
- package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +38 -0
- package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +1 -0
- package/dist/assets/{epic-vmWV05sm.js → epic-CxjM8IKD.js} +1 -1
- package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +1 -0
- package/dist/assets/{getReferrerType-DjPOy76W-Cm31g4vJ.js → getReferrerType-D1egX4iL-cWt5sFuQ.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-DZx81G9E-DbnUGiwi.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-CfhD7tYw-SmhQgAdh.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js} +1 -1
- package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +1 -0
- package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-D4b9T-E0-BvZJz7M_.js} +1 -1
- package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +40 -0
- package/dist/assets/index-2CdI-B2B.js +29301 -0
- package/dist/assets/index-BR5-Z2ox.css +1 -0
- package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +3305 -0
- package/dist/assets/lexical-l0sNRNKZ.js +1 -0
- package/dist/assets/{liveblocks-DIep7fJd.js → liveblocks-BrzOBACZ.js} +1 -1
- package/dist/assets/lottie-B4xjt4lE.js +1 -0
- package/dist/assets/map-CnboTxlt-CZn0FfBt.js +1 -0
- package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-grmQSWeg-CqzlaZwf.js → mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +1 -0
- package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +43 -0
- package/dist/assets/mui-kiGMfX4-.js +25 -0
- package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +1 -0
- package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +1 -0
- package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-L_-1iNMr-DCxtcaOg.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-H1PowEcP-lvG8v5I_.js} +1 -1
- package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +19 -0
- package/dist/assets/react-B2-P-PS--DYmRygxV.js +19 -0
- package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +17 -0
- package/dist/assets/react-CWt3gw2R-CPQu_93E.js +21 -0
- package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +7 -0
- package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +22 -0
- package/dist/assets/react-DBTaojCw-BTbEMBGt.js +6 -0
- package/dist/assets/react-G6j-OGKl--ofewKrH.js +34 -0
- package/dist/assets/recharts-Diw77Kjb.js +1 -0
- package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +1 -0
- package/dist/assets/{sentry-o6h_D-9x.js → sentry-Dhk5jNhq.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-E_rJ2OWj-kTEIYW8Q.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +1 -0
- package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-BDef7K0p-Dqvh6We2.js} +1 -1
- package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +1 -0
- package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +286 -0
- package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +1 -0
- package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +1 -0
- package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +1 -0
- package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-4JsxsMjK-mCxwNowe.js} +1 -1
- package/dist/assets/utils-BLUF9kAp.js +70 -0
- package/dist/assets/{zeni-epic-state-LPACxnXP.js → zeni-epic-state-Bo1aGezX.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ACHDetailsPage-B8cMQbzA-DWCLdf-t.js +0 -21
- package/dist/assets/AIPerformancePage-4acIIZMP-B-rRjry_.js +0 -539
- package/dist/assets/AccountInfoPage-BrydzmjB-KHr91NHb.js +0 -18
- package/dist/assets/AccountInfoPageContent-DUxplaBp-FrAxiU_4.js +0 -149
- package/dist/assets/AccountLockedInfoModal-tHlPMl4Y-Ct1s-YMU.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-U6I-zYEJ-Dit01cmg.js +0 -239
- package/dist/assets/AccountRow-BPUVgiz--B9ZBU0Ub.js +0 -298
- package/dist/assets/AccountsPromoCardStack-y8mKetwA-B9ECyUUA.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-mWEDF852-i34A1O1w.js +0 -6
- package/dist/assets/AddToWalletPage-8h9ovxv--TxpEgqlp.js +0 -344
- package/dist/assets/AgingReportsPage-DjL0iX3p-BZDNKxCo.js +0 -79
- package/dist/assets/AllUserItems-BsXasG5N-CuxsTE4D.js +0 -192
- package/dist/assets/ApAgingDetailPage-D4_EOVXW-CPCLR9hb.js +0 -46
- package/dist/assets/AppBasePage-BzrUji13-DfOUej5i.js +0 -71
- package/dist/assets/AppDrawerContent-CZvLqK2n-BuqawGiw.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-3APmrgde-dc-swn_U.js +0 -47
- package/dist/assets/ArAgingChart-P6KtJIV_-DjRI10iW.js +0 -24
- package/dist/assets/ArAgingDetailPage-Qsa99SU7-Sm_WpA-3.js +0 -46
- package/dist/assets/AttachmentView-C1vDyOg6-DWlWJjzp.js +0 -101
- package/dist/assets/BankAccountSection-myuKfQST-BSnxyRJZ.js +0 -79
- package/dist/assets/BankAccountWarningSection-gh8laVG2-BY6zGWOu.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-BBWIpyRM-ze5azuH3.js +0 -425
- package/dist/assets/BillDetailPage-CyhFsEGB-DkTie3Te.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-B3_rA-sq-BdcxnQmt.js +0 -27
- package/dist/assets/BillPayPromoPage-BbBa3DYn-lLOlfxB7.js +0 -84
- package/dist/assets/BillPaySetUpPage-B03pG6jS-DJinIaFQ.js +0 -42
- package/dist/assets/BillingSettingsPage-C6brwXi1-BB5RkLKN.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-CgwBahfX-DFWt9hBv.js +0 -1
- package/dist/assets/BusinessVerificationPage-BlxdC_nV-DC1jqf6y.js +0 -138
- package/dist/assets/CardNumberSubText-CbN8rqBy-Cnr87BXk.js +0 -21
- package/dist/assets/CashbackDetailPage-BW_OnL3H-DtMwDigS.js +0 -285
- package/dist/assets/ChargeCardDetailPage-BpKVl3Ea-B12Yd96T.js +0 -1462
- package/dist/assets/ChargeCardListPage-B89QoOTi-BeB_sD-R.js +0 -412
- package/dist/assets/ChargeCardListTable-CU-J5RcP-DCnik2yB.js +0 -711
- package/dist/assets/ChargeCardPromoPage-Blp9PieM-P4TuvLik.js +0 -222
- package/dist/assets/ChargeCardSetupPage-CXunWgVU-DEdxFCW1.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-396WGHBW-DMiFIJN4.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-C7BVbKlI-DgETwW-L.js +0 -206
- package/dist/assets/CollapsableReportTable-BbW0qlyW-jZfWpSap.js +0 -2844
- package/dist/assets/CompanyOfficerDetailsSection-CEpa9DV0-YSPl7yqU.js +0 -260
- package/dist/assets/CompanyPassportCard-tAObqkaq-DBobX3WO.js +0 -42
- package/dist/assets/CompanyPassportPage-BOF33vf6-C25WfyI1.js +0 -574
- package/dist/assets/CompleteProfile-BhnnbqKE-C9dCi-11.js +0 -52
- package/dist/assets/ConfettiBurst-D0oJjMYW-OgNoTU4M.js +0 -1
- package/dist/assets/CreateOrEditVendorPage-BfIEfvLQ-A8OKff0d.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-jZufhZeW-Czck8YRv.js +0 -224
- package/dist/assets/CurrencySelectField-eLjU71Cn-D8N6eDEv.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-B44-zxPH-B-3OfPkK.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CY-Ereo7-CDSd5c27.js +0 -66
- package/dist/assets/CustomerOnboardingPage-TkHlE1kV-B90xrx5q.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CHQxzOJb-BPLz8QJt.js +0 -202
- package/dist/assets/Dashboard-DpMzEbb0-Bk6FtHLo.js +0 -1551
- package/dist/assets/DashboardReportPage-DoztwEhX-DAUg_oFC.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl7NKDPX-BKa5jVQD.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-LM-5wxCN-2aGATB_a.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCVbnyiw-MmPkUBMW.js +0 -21
- package/dist/assets/DownloadOverlay-Bp_ZXErR-BFxkS5Sp.js +0 -439
- package/dist/assets/EditPeoplePage-DLIKL_0K-BYYB6CQN.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-F_MHrbGF-DossIcDU.js +0 -865
- package/dist/assets/EntityDetailPage-Ca9C29eU-BU7AxpuG.js +0 -18
- package/dist/assets/EntitySummarySection-CjIHfEiX-PbFJ4zts.js +0 -149
- package/dist/assets/ExpenseAutomationOverviewPage-UAVNgUOX-D2d8vPhR.js +0 -281
- package/dist/assets/ExpenseAutomationPage-DZLhQz2w-Dy7QQgBg.js +0 -1650
- package/dist/assets/ExpressPayPage-DVIOuW0t-xDQUwEHB.js +0 -168
- package/dist/assets/FollowStepsSection-B_t3bRMq-DXg2LJ8T.js +0 -390
- package/dist/assets/GlobalReviewListPage-5RVGNBoL-_sR9DlVX.js +0 -291
- package/dist/assets/InformationCardStack-Cm-J8hYU-60aXUK6h.js +0 -31
- package/dist/assets/InsightsCardStack-BWy3HRRw-CB9cKExH.js +0 -79
- package/dist/assets/InsightsSection-DjRiKEWC-CRd8YfwT.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-CHjWI8gL-CCa-olQ5.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-DwmOiSec-BLt2UL2Y.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-COckx00_-DU-V6935.js +0 -292
- package/dist/assets/InviteFormPage-CmyIJ72X-Vl8NJsKW.js +0 -312
- package/dist/assets/InvitePageListView-S-XAzaOd-CKRKrwVx.js +0 -739
- package/dist/assets/InvitePeoplePage-B0HxRKN_-3dGtjrPQ.js +0 -12
- package/dist/assets/InvoiceUploadSection-DnLPeCSG-C0y9aVXE.js +0 -140
- package/dist/assets/IssueChargeCardPage-CoTj6RDV-D-5E4s3e.js +0 -532
- package/dist/assets/LabeledAddressValue-B1ZDT-4q-DVaJdMlO.js +0 -49
- package/dist/assets/LabeledAddressValueField-Di43zVJJ-B4HEKXM1.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-BSK3oaPb-CVXOIMit.js +0 -16
- package/dist/assets/LabeledCreatableSingleSelectField-BkCk2Mz9-QE-OrhIc.js +0 -204
- package/dist/assets/LabeledDocumentField-BtFEcM-5-BNPldwRC.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-CihGYv2Q-uL_S1-42.js +0 -59
- package/dist/assets/LabeledText-CxYr4vz2-OntqEWP_.js +0 -42
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-Bioh8f7m-DSVS8C1m.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-BgiwWAS6-AJekbb2Q.js +0 -297
- package/dist/assets/LinkJETransactionPage-Bc29bXtl-lsZpblLt.js +0 -98
- package/dist/assets/LockCardPage-B10jpxrS-e8fFZQs8.js +0 -623
- package/dist/assets/LowBalancePopup-DzUz_bgp-DkpyxTGf.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-7wHBwA8u-DVtGPkL-.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CWW5hX-e-Cu-zXAx_.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-Dku8PArB-dDYRywx5.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-BaEhnzOs-B5ZPDl3h.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CO4sR9c2-h_xXZHeA.js +0 -17
- package/dist/assets/MailingDetailsSection-Cfd7dekJ-V6MjDV6u.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-CnyIOUNb-CgMkJhJg.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-TRkRTIRl-Au28R7Nt.js +0 -6
- package/dist/assets/MyProfileSettingsPage-CNJgwdAc-ZInAmXWl.js +0 -85
- package/dist/assets/NavBarWithPicker-B3n6c9cW-BqqxXmqK.js +0 -30
- package/dist/assets/NavigationArrow-DerCbJQJ-Dbt4VcuR.js +0 -47
- package/dist/assets/NewGlobalMerchantPage-B9qfP4b1-CgTqdodw.js +0 -160
- package/dist/assets/NoDataTable-XnjjqT1r-tivu1peq.js +0 -8
- package/dist/assets/NotificationSettingsPage-rUpktNmE-xg_pmnpN.js +0 -163
- package/dist/assets/NotificationsListConfig-DxNNUnb--D_leI4ki.js +0 -1
- package/dist/assets/NotificationsPage-LbcVGLzv-BLTUkUub.js +0 -685
- package/dist/assets/OpExByVendorPage-NSjf8sPH-DE-QQrBi.js +0 -100
- package/dist/assets/OverlayContainerPage-BsY9_22w-DGa5ZVpp.js +0 -11
- package/dist/assets/PandLWithForecastPage-CYq7gbZF-BKPHmO-i.js +0 -107
- package/dist/assets/PaymentAccountSetupBillingAddressSection-C3AQKfIX-gT-7ubur.js +0 -107
- package/dist/assets/PeoplePage-Bz22s7eT-DwCtGox6.js +0 -675
- package/dist/assets/Preview-Bnbo8Nq1.js +0 -1
- package/dist/assets/ProductsCarousel-Bz_PnE7C-BoGI8CRR.js +0 -142
- package/dist/assets/QBOConnectionDialog-DwZPS4A--CuAty-gU.js +0 -51
- package/dist/assets/QBOSetupSection-CJh_5ZRY-DIDRxjCw.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BXDkKqzx-COAmJRq9.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-CE6Qa9rc-B0Oei2l8.js +0 -237
- package/dist/assets/ReimbursementDetailPage-CFz0La2v-DgUH5vbC.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CNCL_t1V-CwnQs6UK.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-uAHJ-tqY-DiKttSWe.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BfrwsaW3-CzmfoPGj.js +0 -1
- package/dist/assets/ReloadCard-DAqlQiuw-D-2lbPbW.js +0 -26
- package/dist/assets/ReportTableViewSelector-CKNUdhCi-Cf0CSBJA.js +0 -150
- package/dist/assets/ReportsPage-m4c_CloE-CRqwYB8M.js +0 -121
- package/dist/assets/RevenueChart-CaUcz4_r-jW7BbJWi.js +0 -280
- package/dist/assets/ReviewDetailsPage-BtsmuUr9-CSpdXzjn.js +0 -290
- package/dist/assets/ReviewOverlay-BHH9brKi-3tNvQZvy.js +0 -152
- package/dist/assets/RoleWithToolTip-BvpoBPrI-CGcISREk.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DhDc40Ue-DPWUIUiV.js +0 -37
- package/dist/assets/ScheduleDetailsPage-Dy5DPc5g-CpkwBmVO.js +0 -37
- package/dist/assets/ScheduleSequenceTable-aZhpn2-_-COQXlB3z.js +0 -324
- package/dist/assets/ScreenRoutes-Ddw4gS97.js +0 -201
- package/dist/assets/SignIn-Ci2pl9iT-BPsxAlxz.js +0 -448
- package/dist/assets/SignInScreen-DTfhEy9t.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CAf8mKFG-CHwiO4iE.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-DVIeImpu-CHxGcOEQ.js +0 -754
- package/dist/assets/SpendManagementSection-CBs0TeAg-B-27RJa0.js +0 -230
- package/dist/assets/StatementItem-BpF3tpOS-BkKYeBjv.js +0 -31
- package/dist/assets/StatementsPage-BA98ZlGW-B7nDlk5d.js +0 -58
- package/dist/assets/SubTabSwitcher-DCaHOwRF-DAR0dyFH.js +0 -58
- package/dist/assets/SummaryCard-B8E5cyMH-ClAMEeKe.js +0 -1
- package/dist/assets/TaskManagementPage-CV18ebqf-B011714Z.js +0 -508
- package/dist/assets/TimeRangeSwitcher-DY9UawSC-uIfZtrkK.js +0 -64
- package/dist/assets/TimeframeSwitcher-BAK_5aWm-BMHVxYTf.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-CK1Q-rG6-CC-JYTDO.js +0 -31
- package/dist/assets/TopExCard-Kk7W9fph-D201KTrT.js +0 -38
- package/dist/assets/TopExDetailPage-DvmHTkHv-D0Nk3bsE.js +0 -132
- package/dist/assets/TransactionDetailPage-CUQgc7YH-Bw0MUTOI.js +0 -912
- package/dist/assets/TransactionList-B8r57kr8-DP2Jhq3w.js +0 -147
- package/dist/assets/TransactionListBig-DUU6tKkC-BgsfdPlN.js +0 -284
- package/dist/assets/TransactionListPage-DUPJ4NJw-BicsuqmT.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-uuKl2SqA-CfBmMT7H.js +0 -80
- package/dist/assets/TransferDrawerPage-DPpKrxR_-BOm3H9JH.js +0 -362
- package/dist/assets/TreasuryOverviewPage-BligQLcn-Cbuwuq38.js +0 -708
- package/dist/assets/TreasuryPromoPage-DzcGPAtW-_w2K2zJK.js +0 -505
- package/dist/assets/TreasuryStatementsPage-vRiBwJfp-C2hsOchl.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-DqGQEDsD-Bd3gy35Q.js +0 -58
- package/dist/assets/TrendChart-_Lxl6UlW-C6CPgTWf.js +0 -16
- package/dist/assets/TrendWithTransactions-BHZ8A40V-BbEBIba6.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-wnoS0gbf-CgDPi5HT.js +0 -244
- package/dist/assets/UnitIntegrationPage-LL_kYuwk-C-_3k6Sd.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-CnjAzKXw-fvhbnFek.js +0 -38
- package/dist/assets/Vendor2FAPopup-DWQSvW1O-8qZXKJ0V.js +0 -1
- package/dist/assets/VendorACHDetailsPage-C-bm6Qhp-D15Nx7XZ.js +0 -1
- package/dist/assets/VendorDetailPage-BvdwLyYe-BdJviSYR.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BW84w9Ry-CqMPcmHT.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-BTBNh-F6-DBJhrvXk.js +0 -175
- package/dist/assets/VendorFirstReviewPage-dOgss8oK-DiVYGGaF.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-DAzAM1mu-C8VqYjWe.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Btjdf2I6-C7CnuYuR.js +0 -1
- package/dist/assets/VerifyDevice-Df70OQL0-Dy_fV---.js +0 -112
- package/dist/assets/VideoPlayer-BlDaa3e0-DBziSdiE.js +0 -78
- package/dist/assets/WarningsDrawerPage-DdoJbKk1-DZuScW2D.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-Df0bngPT-CzR-wT4k.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-B66dgraR-TKWP-DJl.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-DsnSMk6--CYtJk0AT.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-DetTri71-bqd_-_Lq.js +0 -36
- package/dist/assets/ZeniCopyright-ag3_XPx6-CAS7ugaf.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-B6VZtpIa-fTsQcTPM.js +0 -63
- package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +0 -1
- package/dist/assets/analyticsHelper-DGP9O_15-DJCxFW2y.js +0 -1
- package/dist/assets/chartTypes-BUNjh2j0-Buc6fDbU.js +0 -1
- package/dist/assets/commonDimensions-Csh-Czgf-DHHuXfVv.js +0 -1
- package/dist/assets/dash.all.min-Ba2vGpbn.js +0 -21
- package/dist/assets/detailCommon-BSu_Baak-Bp5zf8Y3.js +0 -38
- package/dist/assets/downloadPdf-CqRT2Puf-CYGuzpcq.js +0 -1
- package/dist/assets/empty-CnIz-OQ7.js +0 -1
- package/dist/assets/empty-DeBX16Fq.js +0 -1
- package/dist/assets/hls-BA0yQjS5.js +0 -40
- package/dist/assets/index-BwZxOaMR.js +0 -1
- package/dist/assets/index-C3zEY1ql.js +0 -1
- package/dist/assets/index-DQmBF4-D.js +0 -3310
- package/dist/assets/index-Dg5PDYc0.js +0 -1
- package/dist/assets/index-MVH9tD8n.js +0 -1
- package/dist/assets/index-ePPQ9tNX.js +0 -29300
- package/dist/assets/index-t8y498Dk.css +0 -1
- package/dist/assets/lexical-DPEnH3HH.js +0 -21
- package/dist/assets/lottie-DEE24l2z.js +0 -9
- package/dist/assets/mapLoadingInProgressToTreeNode-BdSdrYtM-DQNpzGDX.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-biS8kQJJ-CES1q3H0.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BpAn8O5Z-BAhxv_R7.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D6asy5O1-DtLDkyGT.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-9hfvdurU-CV0zVNns.js +0 -1
- package/dist/assets/mixin-D3UDm--6.js +0 -43
- package/dist/assets/mui-bYXq4XMS.js +0 -25
- package/dist/assets/react-B5y9n_ef.js +0 -17
- package/dist/assets/react-B84192hO.js +0 -32
- package/dist/assets/react-BpmEXSTM.js +0 -27
- package/dist/assets/react-BuvI16A0.js +0 -37
- package/dist/assets/react-BvHTyLQY.js +0 -29
- package/dist/assets/react-CA3XI5Yc.js +0 -16
- package/dist/assets/react-Cz0zQhlY.js +0 -31
- package/dist/assets/react-Egsc5mMa.js +0 -44
- package/dist/assets/recharts-BHhx6CLo.js +0 -73
- package/dist/assets/toCOABalancesWithID-CM8Fnmnz-B1jLHQcN.js +0 -1
- package/dist/assets/toChartData-DVbJJK3l-CGMLhemz.js +0 -1
- package/dist/assets/types-DyvtCprH-BcZYcgaq.js +0 -1
- package/dist/assets/uploadAttachment-BNPqn7_B-_bcIPDdi.js +0 -286
- package/dist/assets/uploadReceipts-CDPM7zcb-DkZqtldQ.js +0 -1
- package/dist/assets/url-BScMlxNd.js +0 -1
- package/dist/assets/url-XsY5bkGi.js +0 -6
- package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +0 -1
- package/dist/assets/utils-uDUqNRFY.js +0 -70
|
@@ -0,0 +1,3305 @@
|
|
|
1
|
+
import{g as So}from"./mui-kiGMfX4-.js";import{o as yr,a as _r}from"./core-tlHkQPPu.js";import{u as xb,E as Nb}from"./hls-CsNM3rq8-NlJdpMmx.js";import{M as Ob,s as xr}from"./mixin-XJuHfVsL-Dozz_ZkW.js";var Pb=Object.create,xc=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Hb=Object.getOwnPropertyNames,Wb=Object.getPrototypeOf,Bb=Object.prototype.hasOwnProperty,Xm=function(t,e){return function(){return t&&(e=t(t=0)),e}},qe=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},ot=function(t,e,n){return n=t!=null?Pb(Wb(t)):{},function(i,a,r,s){if(a&&typeof a=="object"||typeof a=="function")for(var o,l=Hb(a),d=0,u=l.length;d<u;d++)o=l[d],!Bb.call(i,o)&&o!==r&&xc(i,o,{get:(function(c){return a[c]}).bind(null,o),enumerable:!(s=Ub(a,o))||s.enumerable});return i}(t&&t.__esModule?n:xc(n,"default",{value:t,enumerable:!0}),t)},Ft=qe(function(t,e){var n;n=typeof window<"u"?window:typeof So<"u"?So:typeof self<"u"?self:{},e.exports=n});function ri(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):ri(t,e)}var si=Xm(function(){si()});function Jm(t){return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}var ep=Xm(function(){}),tp=qe(function(t,e){var n=Array.prototype.slice;e.exports=function(i,a){for(("length"in i)||(i=[i]),i=n.call(i);i.length;){var r=i.shift(),s=a(r);if(s)return s;r.childNodes&&r.childNodes.length&&(i=n.call(r.childNodes).concat(i))}}}),Vb=qe(function(t,e){function n(i,a){if(!ri(this,n))return new n(i,a);this.data=i,this.nodeValue=i,this.length=i.length,this.ownerDocument=a||null}si(),e.exports=n,n.prototype.nodeType=8,n.prototype.nodeName="#comment",n.prototype.toString=function(){return"[object Comment]"}}),$b=qe(function(t,e){function n(i,a){if(!ri(this,n))return new n(i);this.data=i||"",this.length=this.data.length,this.ownerDocument=a||null}si(),e.exports=n,n.prototype.type="DOMTextNode",n.prototype.nodeType=3,n.prototype.nodeName="#text",n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(i,a,r){var s=this.data,o=s.substring(0,i),l=s.substring(i+a,s.length);this.data=o+r+l,this.length=this.data.length}}),np=qe(function(t,e){e.exports=function(n){var i=this,a=n.type;n.target||(n.target=i),i.listeners||(i.listeners={});var r=i.listeners[a];if(r)return r.forEach(function(s){n.currentTarget=i,typeof s=="function"?s(n):s.handleEvent(n)});i.parentNode&&i.parentNode.dispatchEvent(n)}}),ip=qe(function(t,e){e.exports=function(n,i){var a=this;a.listeners||(a.listeners={}),a.listeners[n]||(a.listeners[n]=[]),a.listeners[n].indexOf(i)===-1&&a.listeners[n].push(i)}}),ap=qe(function(t,e){e.exports=function(n,i){var a=this;if(a.listeners&&a.listeners[n]){var r=a.listeners[n],s=r.indexOf(i);s!==-1&&r.splice(s,1)}}}),qb=qe(function(t,e){ep(),e.exports=i;var n=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function i(o){switch(o.nodeType){case 3:return s(o.data);case 8:return"<!--"+o.data+"-->";default:return function(l){var d=[],u=l.tagName;return l.namespaceURI==="http://www.w3.org/1999/xhtml"&&(u=u.toLowerCase()),d.push("<"+u+function(c){var m=[];for(var p in c)a(c,p)&&m.push({name:p,value:c[p]});for(var v in c._attributes)for(var b in c._attributes[v]){var f=c._attributes[v][b],T=(f.prefix?f.prefix+":":"")+b;m.push({name:T,value:f.value})}return c.className&&m.push({name:"class",value:c.className}),m.length?r(m):""}(l)+function(c){var m=c.dataset,p=[];for(var v in m)p.push({name:"data-"+v,value:m[v]});return p.length?r(p):""}(l)),n.indexOf(u)>-1?d.push(" />"):(d.push(">"),l.childNodes.length?d.push.apply(d,l.childNodes.map(i)):l.textContent||l.innerText?d.push(s(l.textContent||l.innerText)):l.innerHTML&&d.push(l.innerHTML),d.push("</"+u+">")),d.join("")}(o)}}function a(o,l){var d=Jm(o[l]);return l==="style"&&Object.keys(o.style).length>0||o.hasOwnProperty(l)&&(d==="string"||d==="boolean"||d==="number")&&l!=="nodeName"&&l!=="className"&&l!=="tagName"&&l!=="textContent"&&l!=="innerText"&&l!=="namespaceURI"&&l!=="innerHTML"}function r(o){var l=[];return o.forEach(function(d){var u=d.name,c=d.value;u==="style"&&(c=function(m){if(typeof m=="string")return m;var p="";return Object.keys(m).forEach(function(v){var b=m[v];v=v.replace(/[A-Z]/g,function(f){return"-"+f.toLowerCase()}),p+=v+":"+b+";"}),p}(c)),l.push(u+'="'+function(m){return s(m).replace(/"/g,""")}(c)+'"')}),l.length?" "+l.join(" "):""}function s(o){var l="";return typeof o=="string"?l=o:o&&(l=o.toString()),l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}),rp=qe(function(t,e){si();var n=tp(),i=np(),a=ip(),r=ap(),s=qb(),o="http://www.w3.org/1999/xhtml";function l(d,u,c){if(!ri(this,l))return new l(d);var m=c===void 0?o:c||null;this.tagName=m===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=m,this._attributes={},this.tagName==="INPUT"&&(this.type="text")}e.exports=l,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 m=null,p=u,v=u.indexOf(":");v>-1&&(m=u.substr(0,v),p=u.substr(v+1)),this.tagName==="INPUT"&&u==="type"?this.type=c:(this._attributes[d]||(this._attributes[d]={}))[p]={value:c,prefix:m}},l.prototype.getAttributeNS=function(d,u){var c=this._attributes[d],m=c&&c[u]&&c[u].value;return this.tagName==="INPUT"&&u==="type"?this.type:typeof m!="string"?null:m},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=r,l.prototype.addEventListener=a,l.prototype.dispatchEvent=i,l.prototype.focus=function(){},l.prototype.toString=function(){return s(this)},l.prototype.getElementsByClassName=function(d){var u=d.split(" "),c=[];return n(this,function(m){if(m.nodeType===1){var p=(m.className||"").split(" ");u.every(function(v){return p.indexOf(v)!==-1})&&c.push(m)}}),c},l.prototype.getElementsByTagName=function(d){d=d.toLowerCase();var u=[];return n(this.childNodes,function(c){c.nodeType===1&&(d==="*"||c.tagName.toLowerCase()===d)&&u.push(c)}),u},l.prototype.contains=function(d){return n(this,function(u){return d===u})||!1}}),Kb=qe(function(t,e){si();var n=rp();function i(a){if(!ri(this,i))return new i;this.childNodes=[],this.parentNode=null,this.ownerDocument=a||null}e.exports=i,i.prototype.type="DocumentFragment",i.prototype.nodeType=11,i.prototype.nodeName="#document-fragment",i.prototype.appendChild=n.prototype.appendChild,i.prototype.replaceChild=n.prototype.replaceChild,i.prototype.removeChild=n.prototype.removeChild,i.prototype.toString=function(){return this.childNodes.map(function(a){return String(a)}).join("")}}),Fb=qe(function(t,e){function n(i){}e.exports=n,n.prototype.initEvent=function(i,a,r){this.type=i,this.bubbles=a,this.cancelable=r},n.prototype.preventDefault=function(){}}),Yb=qe(function(t,e){si();var n=tp(),i=Vb(),a=$b(),r=rp(),s=Kb(),o=Fb(),l=np(),d=ip(),u=ap();function c(){if(!ri(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}e.exports=c;var m=c.prototype;m.createTextNode=function(p){return new a(p,this)},m.createElementNS=function(p,v){var b=p===null?null:String(p);return new r(v,this,b)},m.createElement=function(p){return new r(p,this)},m.createDocumentFragment=function(){return new s(this)},m.createEvent=function(p){return new o(p)},m.createComment=function(p){return new i(p,this)},m.getElementById=function(p){return p=String(p),n(this.childNodes,function(v){if(String(v.id)===p)return v})||null},m.getElementsByClassName=r.prototype.getElementsByClassName,m.getElementsByTagName=r.prototype.getElementsByTagName,m.contains=r.prototype.contains,m.removeEventListener=u,m.addEventListener=d,m.dispatchEvent=l}),Gb=qe(function(t,e){var n=Yb();e.exports=new n}),sp=qe(function(t,e){var n,i=typeof So<"u"?So:typeof window<"u"?window:{},a=Gb();typeof document<"u"?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=n});function nd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function op(t,e){if(t){if(typeof t=="string")return nd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nd(t,e)}}function an(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var r,s,o=[],l=!0,d=!1;try{for(a=a.call(n);!(l=(r=a.next()).done)&&(o.push(r.value),!i||o.length!==i);l=!0);}catch(u){d=!0,s=u}finally{try{!l&&a.return!=null&&a.return()}finally{if(d)throw s}}return o}}(t,e)||op(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var nr=ot(Ft()),Nc=ot(Ft()),jb=ot(Ft()),xe={now:function(){var t=jb.default.performance,e=t&&t.timing,n=e&&e.navigationStart,i=typeof n=="number"&&typeof t.now=="function"?n+t.now():Date.now();return Math.round(i)}},Tr=function(){var t,e,n;if(typeof((t=Nc.default.crypto)===null||t===void 0?void 0:t.getRandomValues)=="function"){n=new Uint8Array(32),Nc.default.crypto.getRandomValues(n);for(var i=0;i<32;i++)n[i]=n[i]%16}else{n=[];for(var a=0;a<32;a++)n[a]=16*Math.random()|0}var r=0;e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var d=l==="x"?n[r]:3&n[r]|8;return r++,d.toString(16)});var s=xe.now(),o=s?.toString(16).substring(3);return o?e.substring(0,28)+o:e},lp=function(){return("000000"+(Math.random()*Math.pow(36,6)|0).toString(36)).slice(-6)},ut=function(t){if(t&&t.nodeName!==void 0)return t.muxId||(t.muxId=lp()),t.muxId;var e;try{e=document.querySelector(t)}catch{}return e&&!e.muxId&&(e.muxId=t),e?.muxId||t},is=function(t){var e;t&&t.nodeName!==void 0?t=ut(e=t):e=document.querySelector(t);var n=e&&e.nodeName?e.nodeName.toLowerCase():"";return[e,t,n]};function ct(t){return function(e){if(Array.isArray(e))return nd(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||op(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Qb=0,dp=1,zb=2,up=3,Zb=4,X=function(t){var e,n,i,a,r,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,o=[console,t],l=(e=console.trace).bind.apply(e,ct(o)),d=(n=console.info).bind.apply(n,ct(o)),u=(i=console.debug).bind.apply(i,ct(o)),c=(a=console.warn).bind.apply(a,ct(o)),m=(r=console.error).bind.apply(r,ct(o)),p=s;return{trace:function(){for(var v=arguments.length,b=new Array(v),f=0;f<v;f++)b[f]=arguments[f];if(!(p>Qb))return l.apply(void 0,ct(b))},debug:function(){for(var v=arguments.length,b=new Array(v),f=0;f<v;f++)b[f]=arguments[f];if(!(p>dp))return u.apply(void 0,ct(b))},info:function(){for(var v=arguments.length,b=new Array(v),f=0;f<v;f++)b[f]=arguments[f];if(!(p>zb))return d.apply(void 0,ct(b))},warn:function(){for(var v=arguments.length,b=new Array(v),f=0;f<v;f++)b[f]=arguments[f];if(!(p>up))return c.apply(void 0,ct(b))},error:function(){for(var v=arguments.length,b=new Array(v),f=0;f<v;f++)b[f]=arguments[f];if(!(p>Zb))return m.apply(void 0,ct(b))},get level(){return p},set level(v){v!==this.level&&(p=v??s)}}}("[mux]"),sl=ot(Ft());function id(){return(sl.default.doNotTrack||sl.default.navigator&&sl.default.navigator.doNotTrack)==="1"}function P(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t,e){if(!ri(t,e))throw new TypeError("Cannot call a class as a function")}function Yt(t,e,n){return e&&function(i,a){for(var r=0;r<a.length;r++){var s=a[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}(t.prototype,e),t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ar(t){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function ad(t,e,n){return ad=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(i,a,r){var s=function(l,d){for(;!Object.prototype.hasOwnProperty.call(l,d)&&(l=Ar(l))!==null;);return l}(i,a);if(s){var o=Object.getOwnPropertyDescriptor(s,a);return o.get?o.get.call(r||i):o.value}},ad(t,e,n||t)}function cp(t,e){return(cp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n})(t,e)}function Xb(t,e){if(t==null)return{};var n,i,a=function(s,o){if(s==null)return{};var l,d,u={},c=Object.keys(s);for(d=0;d<c.length;d++)l=c[d],!(o.indexOf(l)>=0)&&(u[l]=s[l]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Jb(t){var e=function(){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}}();return function(){var n,i=Ar(t);if(e){var a=Ar(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(r,s){return!s||Jm(s)!=="object"&&typeof s!="function"?P(r):s}(this,n)}}si(),ep();var bt=function(t){return kr(t)[0]},kr=function(t){if(typeof t!="string"||t==="")return["localhost"];var e,n=(t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return n&&(e=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,e]},ol=ot(Ft()),as={exists:function(){var t=ol.default.performance;return(t&&t.timing)!==void 0},domContentLoadedEventEnd:function(){var t=ol.default.performance,e=t&&t.timing;return e&&e.domContentLoadedEventEnd},navigationStart:function(){var t=ol.default.performance,e=t&&t.timing;return e&&e.navigationStart}};function ke(t,e,n){n=n===void 0?1:n,t[e]=t[e]||0,t[e]+=n}function Ro(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){S(t,a,n[a])})}return t}function Ku(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(n){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);i.push.apply(i,a)}return i}(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}var hp=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],ef=["x-cdn","content-type"].concat(hp);function Fu(t){var e={};return(t=t||"").trim().split(/[\r\n]+/).forEach(function(n){if(n){var i=n.split(": "),a=i.shift();a&&(ef.indexOf(a.toLowerCase())>=0||a.toLowerCase().indexOf("x-litix-")===0)&&(e[a]=i.join(": "))}}),e}function Co(t){if(t){var e=hp.find(function(n){return t[n]!==void 0});return e?t[e]:void 0}}var mp=function(t){var e={};for(var n in t){var i=t[n];i["DATA-ID"].search("io.litix.data.")!==-1&&(e[i["DATA-ID"].replace("io.litix.data.","")]=i.VALUE)}return e},Nr=function(t){if(!t)return{};var e=as.navigationStart(),n=t.loading,i=n?n.start:t.trequest,a=n?n.first:t.tfirst,r=n?n.end:t.tload;return{bytesLoaded:t.total,requestStart:Math.round(e+i),responseStart:Math.round(e+a),responseEnd:Math.round(e+r)}},ba=function(t){if(t&&typeof t.getAllResponseHeaders=="function")return Fu(t.getAllResponseHeaders())},Oc=function(t,e){if(!t||!t.requestEndDate)return{};var n,i=bt(t.url),a=t.url,r=t.bytesLoaded,s=new Date(t.requestStartDate).getTime(),o=new Date(t.firstByteDate).getTime(),l=new Date(t.requestEndDate).getTime(),d=isNaN(t.duration)?0:t.duration,u=typeof e.getMetricsFor=="function"?e.getMetricsFor(t.mediaType).HttpList:e.getDashMetrics().getHttpRequests(t.mediaType);return u.length>0&&(n=Fu(u[u.length-1]._responseHeaders||"")),{requestStart:s,requestResponseStart:o,requestResponseEnd:l,requestBytesLoaded:r,requestResponseHeaders:n,requestMediaDuration:d,requestHostname:i,requestUrl:a,requestId:n?Co(n):void 0}},tf=function(t){var e;return(e=t.match(/.*codecs\*?="(.*)"/))===null||e===void 0?void 0:e[1]},nf=function(t,e,n){var i=t.log;if(n&&n.on){var a=function(b){try{var f,T;return(T=b.getVersion)===null||T===void 0||(f=T.call(b))===null||f===void 0?void 0:f.split(".").map(function(A){return parseInt(A)})[0]}catch{return!1}}(n),r=function(b,f){return t.emit(e,b,f)},s=function(b){var f=b.type,T=(b.data||{}).url;r("requestcompleted",{request_event_type:f,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:bt(T),request_url:T})};n.on("manifestLoaded",s);var o={},l=function(b){if(typeof b.getRequests!="function")return null;var f=b.getRequests({state:"executed"});return f.length===0?null:f[f.length-1]},d=function(b){var f=b.type,T=b.chunk,A=b.request,E=(T||{}).mediaInfo||{},_=E.type,w=E.bitrateList,I={};(w=w||[]).forEach(function(He,Ee){I[Ee]={},I[Ee].width=He.width,I[Ee].height=He.height,I[Ee].bitrate=He.bandwidth,I[Ee].attrs={}}),_==="video"?o.video=I:_==="audio"?o.audio=I:o.media=I;var D=Oc(A,n),V=D.requestStart,q=D.requestResponseStart,Y=D.requestResponseEnd,re=D.requestResponseHeaders,oe=D.requestMediaDuration,J=D.requestHostname,ee=D.requestUrl,Ne=D.requestId;r("requestcompleted",{request_event_type:f,request_start:V,request_response_start:q,request_response_end:Y,request_bytes_loaded:-1,request_type:_+"_init",request_response_headers:re,request_hostname:J,request_id:Ne,request_url:ee,request_media_duration:oe,request_rendition_lists:o})};a>=4?n.on("initFragmentLoaded",d):n.on("initFragmentLoaded",function(b){var f=b.type,T=b.fragmentModel,A=b.chunk,E=l(T);d({type:f,request:E,chunk:A})});var u=function(b){var f=b.type,T=b.chunk,A=b.request,E=T||{},_=E.mediaInfo,w=E.start,I=(_||{}).type,D=Oc(A,n),V=D.requestStart,q=D.requestResponseStart,Y=D.requestResponseEnd,re=D.requestBytesLoaded,oe=D.requestResponseHeaders,J=D.requestMediaDuration,ee=D.requestHostname,Ne=D.requestUrl,He=D.requestId,Ee=function(Et,yt){var We=yt.getQualityFor(Et),Oe=yt.getCurrentTrackFor(Et).bitrateList;return Oe?{currentLevel:We,renditionWidth:Oe[We].width||null,renditionHeight:Oe[We].height||null,renditionBitrate:Oe[We].bandwidth}:{}}(I,n),de=Ee.currentLevel,Ke=Ee.renditionWidth,Gt=Ee.renditionHeight,jt=Ee.renditionBitrate;r("requestcompleted",{request_event_type:f,request_start:V,request_response_start:q,request_response_end:Y,request_bytes_loaded:re,request_type:I,request_response_headers:oe,request_hostname:ee,request_id:He,request_url:Ne,request_media_start_time:w,request_media_duration:J,request_current_level:de,request_labeled_bitrate:jt,request_video_width:Ke,request_video_height:Gt})};a>=4?n.on("mediaFragmentLoaded",u):n.on("mediaFragmentLoaded",function(b){var f=b.type,T=b.fragmentModel,A=b.chunk,E=l(T);u({type:f,request:E,chunk:A})});var c={video:void 0,audio:void 0,totalBitrate:void 0},m=function(b,f,T){if(typeof b.newQuality=="number"){var A=b.mediaType;if(A==="audio"||A==="video"){var E=n.getBitrateInfoListFor(A).find(function(w){return w.qualityIndex===b.newQuality});if(!E||typeof E.bitrate!="number")return void i.warn("missing bitrate info for ".concat(A));c[A]=Ku(Ro({},E),{codec:n.getCurrentTrackFor(A).codec});var _=function(){if(c.video&&typeof c.video.bitrate=="number"){if(!c.video.width||!c.video.height)return void i.warn("have bitrate info for video but missing width/height");var w=c.video.bitrate;if(c.audio&&typeof c.audio.bitrate=="number"&&(w+=c.audio.bitrate),w!==c.totalBitrate)return c.totalBitrate=w,{video_source_bitrate:w,video_source_height:c.video.height,video_source_width:c.video.width,video_source_codec:tf(c.video.codec)}}}();_&&r("renditionchange",_)}}else i.warn("missing evt.newQuality in qualityChangeRendered event",b)};n.on("qualityChangeRendered",m);var p=function(b){var f=b.request,T=b.mediaType;r("requestcanceled",{request_event_type:(f=f||{}).type+"_"+f.action,request_url:f.url,request_type:T,request_hostname:bt(f.url)})};n.on("fragmentLoadingAbandoned",p);var v=function(b){var f,T,A=b.error,E=(A==null||(f=A.data)===null||f===void 0?void 0:f.request)||{},_=(A==null||(T=A.data)===null||T===void 0?void 0:T.response)||{};A?.code===27&&r("requestfailed",{request_error:E.type+"_"+E.action,request_url:E.url,request_hostname:bt(E.url),request_type:E.mediaType,request_error_code:_.status,request_error_text:_.statusText});var w="".concat(E!=null&&E.url?"url: ".concat(E.url,`
|
|
4
|
+
`):"")+"".concat(_!=null&&_.status||_!=null&&_.statusText?"response: ".concat(_?.status,", ").concat(_?.statusText,`
|
|
5
|
+
`):"");r("error",{player_error_code:A?.code,player_error_message:A?.message,player_error_context:w})};n.on("error",v),n._stopMuxMonitor=function(){n.off("manifestLoaded",s),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",u),n.off("qualityChangeRendered",m),n.off("error",v),n.off("fragmentLoadingAbandoned",p),delete n._stopMuxMonitor}}else i.warn("Invalid dash.js player reference. Monitoring blocked.")},Pc=0,af=function(){function t(){we(this,t),S(this,"_listeners",void 0)}return Yt(t,[{key:"on",value:function(e,n,i){return n._eventEmitterGuid=n._eventEmitterGuid||++Pc,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],i&&(n=n.bind(i)),this._listeners[e].push(n),n}},{key:"off",value:function(e,n){var i=this._listeners&&this._listeners[e];i&&i.forEach(function(a,r){a._eventEmitterGuid===n._eventEmitterGuid&&i.splice(r,1)})}},{key:"one",value:function(e,n,i){var a=this;n._eventEmitterGuid=n._eventEmitterGuid||++Pc;var r=function(){a.off(e,r),n.apply(i||this,arguments)};r._eventEmitterGuid=n._eventEmitterGuid,this.on(e,r)}},{key:"emit",value:function(e,n){var i=this;if(this._listeners){n=n||{};var a=this._listeners["before"+e]||[],r=this._listeners["before*"]||[],s=this._listeners[e]||[],o=this._listeners["after"+e]||[],l=function(d,u){(d=d.slice()).forEach(function(c){c.call(i,{type:e},u)})};l(a,n),l(r,n),l(s,n),l(o,n)}}}]),t}(),ll=ot(Ft()),rf=function(){function t(e){var n=this;we(this,t),S(this,"_playbackHeartbeatInterval",void 0),S(this,"_playheadShouldBeProgressing",void 0),S(this,"pm",void 0),this.pm=e,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,e.on("playing",function(){n._playheadShouldBeProgressing=!0}),e.on("play",this._startPlaybackHeartbeatInterval.bind(this)),e.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),e.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),e.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("seeked",function(){e.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()}),e.on("timeupdate",function(){n._playbackHeartbeatInterval!==null&&e.emit("playbackheartbeat")}),e.on("devicesleep",function(i,a){n._playbackHeartbeatInterval!==null&&(ll.default.clearInterval(n._playbackHeartbeatInterval),e.emit("playbackheartbeatend",{viewer_time:a.viewer_time}),n._playbackHeartbeatInterval=null)})}return Yt(t,[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;this._playbackHeartbeatInterval===null&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=ll.default.setInterval(function(){e.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,this._playbackHeartbeatInterval!==null&&(ll.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),t}(),sf=function t(e){var n=this;we(this,t),S(this,"viewErrored",void 0),e.on("viewinit",function(){n.viewErrored=!1}),e.on("error",function(i,a){try{var r=e.errorTranslator({player_error_code:a.player_error_code,player_error_message:a.player_error_message,player_error_context:a.player_error_context,player_error_severity:a.player_error_severity,player_error_business_exception:a.player_error_business_exception});r&&(e.data.player_error_code=r.player_error_code||a.player_error_code,e.data.player_error_message=r.player_error_message||a.player_error_message,e.data.player_error_context=r.player_error_context||a.player_error_context,e.data.player_error_severity=r.player_error_severity||a.player_error_severity,e.data.player_error_business_exception=r.player_error_business_exception||a.player_error_business_exception,n.viewErrored=!0)}catch(s){e.mux.log.warn("Exception in error translator callback.",s),n.viewErrored=!0}}),e.on("aftererror",function(){var i,a,r,s,o;(i=e.data)===null||i===void 0||delete i.player_error_code,(a=e.data)===null||a===void 0||delete a.player_error_message,(r=e.data)===null||r===void 0||delete r.player_error_context,(s=e.data)===null||s===void 0||delete s.player_error_severity,(o=e.data)===null||o===void 0||delete o.player_error_business_exception})},of=function(){function t(e){we(this,t),S(this,"_watchTimeTrackerLastCheckedTime",void 0),S(this,"pm",void 0),this.pm=e,this._watchTimeTrackerLastCheckedTime=null,e.on("playbackheartbeat",this._updateWatchTime.bind(this)),e.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return Yt(t,[{key:"_updateWatchTime",value:function(e,n){var i=n.viewer_time;this._watchTimeTrackerLastCheckedTime===null&&(this._watchTimeTrackerLastCheckedTime=i),ke(this.pm.data,"view_watch_time",i-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=i}},{key:"_clearWatchTimeState",value:function(e,n){this._updateWatchTime(e,n),this._watchTimeTrackerLastCheckedTime=null}}]),t}(),lf=function(){function t(e){var n=this;we(this,t),S(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),S(this,"_lastTime",void 0),S(this,"_isAdPlaying",void 0),S(this,"_callbackUpdatePlaybackTime",void 0),S(this,"pm",void 0),this.pm=e,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=xe.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null,e.on("viewinit",function(){n.pm.data.view_playing_time_ms_cumulative=0});var i=this._startPlaybackTimeTracking.bind(this);e.on("playing",i),e.on("adplaying",i),e.on("seeked",i),e.on("rebufferend",i);var a=this._stopPlaybackTimeTracking.bind(this);e.on("playbackheartbeatend",a),e.on("seeking",a),e.on("rebufferstart",a),e.on("adplaying",function(){n._isAdPlaying=!0}),e.on("adended",function(){n._isAdPlaying=!1}),e.on("adpause",function(){n._isAdPlaying=!1}),e.on("adbreakstart",function(){n._isAdPlaying=!1}),e.on("adbreakend",function(){n._isAdPlaying=!1}),e.on("adplay",function(){n._isAdPlaying=!1}),e.on("viewinit",function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=xe.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null})}return Yt(t,[{key:"_startPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime===null&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this._lastTime=xe.now(),this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time||0,n=xe.now(),i=n-this._lastTime,a=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition?a=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(a=i),a>0&&a<=1e3&&ke(this.pm.data,"view_content_playback_time",a),this._callbackUpdatePlaybackTime!==null&&i>0&&i<=1e3&&(this._isAdPlaying&&ke(this.pm.data,"ad_playing_time_ms_cumulative",i),ke(this.pm.data,"view_playing_time_ms_cumulative",i)),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=n}}]),t}(),df=function(){function t(e){we(this,t),S(this,"pm",void 0),this.pm=e;var n=this._updatePlayheadTime.bind(this);e.on("playbackheartbeat",n),e.on("playbackheartbeatend",n),e.on("timeupdate",n),e.on("destroy",function(){e.off("timeupdate",n)})}return Yt(t,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=this.pm.data.view_max_playhead_position===void 0?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,n){var i=this,a=function(){i.pm.currentFragmentPDT&&i.pm.currentFragmentStart&&(i.pm.data.player_program_time=i.pm.currentFragmentPDT+i.pm.data.player_playhead_time-i.pm.currentFragmentStart)};if(n&&n.player_playhead_time)this.pm.data.player_playhead_time=n.player_playhead_time,a(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var r=this.pm.getPlayheadTime();r!==void 0&&(this.pm.data.player_playhead_time=r,a(),this._updateMaxPlayheadPosition())}}}]),t}(),Uc=3e5,uf=function t(e){if(we(this,t),!e.disableRebufferTracking){var n,i=function(r,s){a(s),n=void 0},a=function(r){if(n){var s=r.viewer_time-n;ke(e.data,"view_rebuffer_duration",s),n=r.viewer_time,e.data.view_rebuffer_duration>Uc&&(e.emit("viewend"),e.send("viewend"),e.mux.log.warn("Ending view after rebuffering for longer than ".concat(Uc,"ms, future events will be ignored unless a programchange or videochange occurs.")))}e.data.view_watch_time>=0&&e.data.view_rebuffer_count>0&&(e.data.view_rebuffer_frequency=e.data.view_rebuffer_count/e.data.view_watch_time,e.data.view_rebuffer_percentage=e.data.view_rebuffer_duration/e.data.view_watch_time)};e.on("playbackheartbeat",function(r,s){return a(s)}),e.on("rebufferstart",function(r,s){n||(ke(e.data,"view_rebuffer_count",1),n=s.viewer_time,e.one("rebufferend",i))}),e.on("viewinit",function(){n=void 0,e.off("rebufferend",i)})}},cf=function(){function t(e){var n=this;we(this,t),S(this,"_lastCheckedTime",void 0),S(this,"_lastPlayheadTime",void 0),S(this,"_lastPlayheadTimeUpdatedTime",void 0),S(this,"_rebuffering",void 0),S(this,"pm",void 0),this.pm=e,!e.disableRebufferTracking&&!e.disablePlayheadRebufferTracking&&(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,e.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),e.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),e.on("seeking",function(){n._cleanupRebufferTracker(null,{viewer_time:xe.now()})}))}return Yt(t,[{key:"_checkIfRebuffering",value:function(e,n){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,n);else if(this._lastCheckedTime!==null)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var i=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.sustainedRebufferThreshold=="number"&&i>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=n.viewer_time}else this._cleanupRebufferTracker(e,n,!0);else this._prepareRebufferTrackerState(n.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:n.viewer_time});else{if(this._lastCheckedTime===null)return;var a=this.pm.data.player_playhead_time-this._lastPlayheadTime,r=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.minimumRebufferDuration=="number"&&a>0&&r-a>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+r-a}))}i?this._prepareRebufferTrackerState(n.viewer_time):this._clearRebufferTrackerState()}}]),t}(),hf=function(){function t(e){var n=this;we(this,t),S(this,"pm",void 0),this.pm=e,e.on("viewinit",function(){var i=e.data,a=i.view_id;if(!i.view_program_changed){var r=function(s,o){var l=o.viewer_time;(s.type==="playing"&&e.data.view_time_to_first_frame===void 0||s.type==="adplaying"&&(e.data.view_time_to_first_frame===void 0||n._inPrerollPosition()))&&n.calculateTimeToFirstFrame(l||xe.now(),a)};e.one("playing",r),e.one("adplaying",r),e.one("viewend",function(){e.off("playing",r),e.off("adplaying",r)})}})}return Yt(t,[{key:"_inPrerollPosition",value:function(){return this.pm.data.view_content_playback_time===void 0||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,n){n===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.pm.pageLoadInitTime&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.pm.pageLoadInitTime))}}]),t}(),mf=function t(e){var n=this;we(this,t),S(this,"_lastPlayerHeight",void 0),S(this,"_lastPlayerWidth",void 0),S(this,"_lastPlayheadPosition",void 0),S(this,"_lastSourceHeight",void 0),S(this,"_lastSourceWidth",void 0),e.on("viewinit",function(){n._lastPlayheadPosition=-1}),["pause","rebufferstart","seeking","error","adbreakstart","hb","renditionchange","orientationchange","viewend","playbackmodechange"].forEach(function(i){e.on(i,function(){if(n._lastPlayheadPosition>=0&&e.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var a=e.data.player_playhead_time-n._lastPlayheadPosition;if(a<0)return void(n._lastPlayheadPosition=-1);var r=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),s=Math.max(0,r-1),o=Math.max(0,1-r);e.data.view_max_upscale_percentage=Math.max(e.data.view_max_upscale_percentage||0,s),e.data.view_max_downscale_percentage=Math.max(e.data.view_max_downscale_percentage||0,o),ke(e.data,"view_total_content_playback_time",a),ke(e.data,"view_total_upscaling",s*a),ke(e.data,"view_total_downscaling",o*a)}n._lastPlayheadPosition=-1})}),["playing","hb","renditionchange","orientationchange","playbackmodechange"].forEach(function(i){e.on(i,function(){n._lastPlayheadPosition=e.data.player_playhead_time,n._lastPlayerWidth=e.data.player_width,n._lastPlayerHeight=e.data.player_height,n._lastSourceWidth=e.data.video_source_width,n._lastSourceHeight=e.data.video_source_height})})},pf=function t(e){var n=this;we(this,t),S(this,"isSeeking",void 0),this.isSeeking=!1;var i=-1,a=function(){var r=xe.now(),s=(e.data.viewer_time||r)-(i||r);ke(e.data,"view_seek_duration",s),e.data.view_max_seek_time=Math.max(e.data.view_max_seek_time||0,s),n.isSeeking=!1,i=-1};e.on("seeking",function(r,s){Object.assign(e.data,s),n.isSeeking&&s.viewer_time-i<=2e3?i=s.viewer_time:(n.isSeeking&&a(),n.isSeeking=!0,i=s.viewer_time,ke(e.data,"view_seek_count",1),e.send("seeking"))}),e.on("seeked",function(){a()}),e.on("viewend",function(){n.isSeeking&&(a(),e.send("seeked")),n.isSeeking=!1,i=-1})},Hc=function(t,e){t.push(e),t.sort(function(n,i){return n.viewer_time-i.viewer_time})},vf=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],bf=function(){function t(e){var n=this;we(this,t),S(this,"_adHasPlayed",void 0),S(this,"_adRequests",void 0),S(this,"_adResponses",void 0),S(this,"_currentAdRequestNumber",void 0),S(this,"_currentAdResponseNumber",void 0),S(this,"_prerollPlayTime",void 0),S(this,"_wouldBeNewAdPlay",void 0),S(this,"isAdBreak",void 0),S(this,"pm",void 0),this.pm=e,e.on("viewinit",function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0}),vf.forEach(function(a){return e.on(a,n._updateAdData.bind(n))});var i=function(){n.isAdBreak=!1};e.on("adbreakstart",function(){n.isAdBreak=!0}),e.on("play",i),e.on("playing",i),e.on("viewend",i),e.on("adrequest",function(a,r){r=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},r),Hc(n._adRequests,r),ke(e.data,"view_ad_request_count"),n.inPrerollPosition()&&(e.data.view_preroll_requested=!0,n._adHasPlayed||ke(e.data,"view_preroll_request_count"))}),e.on("adresponse",function(a,r){r=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},r),Hc(n._adResponses,r);var s=n.findAdRequest(r.ad_request_id);s&&ke(e.data,"view_ad_request_time",Math.max(0,r.viewer_time-s.viewer_time))}),e.on("adplay",function(a,r){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,ke(e.data,"view_ad_played_count")),n.inPrerollPosition()&&!e.data.view_preroll_played&&(e.data.view_preroll_played=!0,n._adRequests.length>0&&(e.data.view_preroll_request_time=Math.max(0,r.viewer_time-n._adRequests[0].viewer_time)),e.data.view_start&&(e.data.view_startup_preroll_request_time=Math.max(0,r.viewer_time-e.data.view_start)),n._prerollPlayTime=r.viewer_time)}),e.on("adplaying",function(a,r){n.inPrerollPosition()&&e.data.view_preroll_load_time===void 0&&n._prerollPlayTime!==void 0&&(e.data.view_preroll_load_time=r.viewer_time-n._prerollPlayTime,e.data.view_startup_preroll_load_time=r.viewer_time-n._prerollPlayTime)}),e.on("adclicked",function(a,r){n._wouldBeNewAdPlay||ke(e.data,"view_ad_clicked_count")}),e.on("adskipped",function(a,r){n._wouldBeNewAdPlay||ke(e.data,"view_ad_skipped_count")}),e.on("adended",function(){n._wouldBeNewAdPlay=!0}),e.on("aderror",function(){n._wouldBeNewAdPlay=!0})}return Yt(t,[{key:"inPrerollPosition",value:function(){return this.pm.data.view_content_playback_time===void 0||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var n=0;n<this._adRequests.length;n++)if(this._adRequests[n].ad_request_id===e)return this._adRequests[n]}},{key:"_updateAdData",value:function(e,n){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&n.ad_tag_url){var i=an(kr(n.ad_tag_url),2),a=i[0],r=i[1];this.pm.data.view_preroll_ad_tag_domain=r,this.pm.data.view_preroll_ad_tag_hostname=a}if(!this.pm.data.view_preroll_ad_asset_hostname&&n.ad_asset_url){var s=an(kr(n.ad_asset_url),2),o=s[0],l=s[1];this.pm.data.view_preroll_ad_asset_domain=l,this.pm.data.view_preroll_ad_asset_hostname=o}this.pm.data.ad_type="preroll"}this.pm.data.ad_asset_url=n?.ad_asset_url,this.pm.data.ad_tag_url=n?.ad_tag_url,this.pm.data.ad_creative_id=n?.ad_creative_id,this.pm.data.ad_id=n?.ad_id,this.pm.data.ad_universal_id=n?.ad_universal_id,n!=null&&n.ad_type&&(this.pm.data.ad_type=n?.ad_type)}}]),t}(),ff=function t(e){var n=this;we(this,t),S(this,"lastWallClockTime",void 0);var i=function(){n.lastWallClockTime=xe.now(),e.on("before*",a)},a=function(r){var s=xe.now(),o=n.lastWallClockTime;n.lastWallClockTime=s,s-o>3e4&&(e.emit("devicesleep",{viewer_time:o}),Object.assign(e.data,{viewer_time:o}),e.send("devicesleep"),e.emit("devicewake",{viewer_time:s}),Object.assign(e.data,{viewer_time:s}),e.send("devicewake"))};e.one("playbackheartbeat",i),e.on("playbackheartbeatend",function(){e.off("before*",a),e.one("playbackheartbeat",i)})},dl=ot(Ft()),pp=function(){var t=function(){for(var n=0,i={};n<arguments.length;n++){var a=arguments[n];for(var r in a)i[r]=a[r]}return i};function e(n){function i(a,r,s){var o;if(typeof document<"u"){if(arguments.length>1){if(typeof(s=t({path:"/"},i.defaults,s)).expires=="number"){var l=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s.expires),s.expires=l}try{o=JSON.stringify(r),/^[\{\[]/.test(o)&&(r=o)}catch{}return r=n.write?n.write(r,a):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),a=(a=(a=encodeURIComponent(String(a))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[a,"=",r,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}a||(o={});for(var d=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,c=0;c<d.length;c++){var m=d[c].split("="),p=m.slice(1).join("=");p.charAt(0)==='"'&&(p=p.slice(1,-1));try{var v=m[0].replace(u,decodeURIComponent);if(p=n.read?n.read(p,v):n(p,v)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch{}if(a===v){o=p;break}a||(o[v]=p)}catch{}}return o}}return i.set=i,i.get=function(a){return i.call(i,a)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(a,r){i(a,"",t(r,{expires:-1}))},i.withConverter=e,i}return e(function(){})}(),vp="muxData",Wc=function(){var t;try{t=(pp.get(vp)||"").split("&").reduce(function(e,n){var i=an(n.split("="),2),a=i[0],r=i[1],s=+r,o=r&&s==r?s:r;return e[a]=o,e},{})}catch{t={}}return t},Bc=function(t){try{pp.set(vp,(e=t,Object.entries(e).map(function(n){var i=an(n,2),a=i[0],r=i[1];return"".concat(a,"=").concat(r)}).join("&")),{expires:365})}catch{}var e},gf=ot(Ft()),bp=function(){var t;switch(fp()){case"cellular":t="cellular";break;case"ethernet":t="wired";break;case"wifi":t="wifi";break;case void 0:break;default:t="other"}return t},fp=function(){var t=gf.default.navigator,e=t&&(t.connection||t.mozConnection||t.webkitConnection);return e&&e.type};bp.getConnectionFromAPI=fp;var Ef=bp,yf=gp({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),Vc=gp({ad:"ad",af:"affiliate",ag:"aggregate",ap:"api",al:"application",ao:"audio",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",bn:"brand",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ci:"client",ck:"clicked",cl:"canceled",cm:"cmcd",cn:"config",co:"count",ce:"counter",cp:"complete",cq:"creator",cr:"creative",cs:"captions",ct:"content",cu:"current",cv:"cumulative",cx:"connection",cz:"context",da:"data",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",dy:"dynamic",eb:"enabled",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mp:"mode",ms:"ms",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",or:"origin",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pp:"pip",pr:"preload",ps:"position",pt:"part",pv:"previous",py:"property",px:"pop",pz:"plan",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rg:"range",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sh:"shift",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",ss:"status",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function gp(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function rd(t){var e={},n={};return Object.keys(t).forEach(function(i){var a=!1;if(t.hasOwnProperty(i)&&t[i]!==void 0){var r=i.split("_"),s=r[0],o=yf[s];o||(X.info("Data key word `"+r[0]+"` not expected in "+i),o=s+"_"),r.splice(1).forEach(function(l){l==="url"&&(a=!0),Vc[l]?o+=Vc[l]:Number.isInteger(Number(l))?o+=l:(X.info("Data key word `"+l+"` not expected in "+i),o+="_"+l+"_")}),a?n[o]=t[i]:e[o]=t[i]}}),Object.assign(e,n)}var jn=ot(Ft()),_f=ot(sp()),Tf={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},Af=["hb","requestcompleted","requestfailed","requestcanceled"],Zt=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._beaconUrl=t||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._resendAfterPost=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},Tf,e)};Zt.prototype.queueEvent=function(t,e){var n=Object.assign({},e);return(this._eventQueue.length<=this._options.maxQueueLength||t==="eventrateexceeded")&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},Zt.prototype.flushEvents=function(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this._eventQueue.length===1?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},Zt.prototype.destroy=function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.destroyed=!0,t?this._clearBeaconQueue():this.flushEvents(),jn.default.clearTimeout(this._sendTimeout)},Zt.prototype._clearBeaconQueue=function(){var t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,e=this._eventQueue.slice(t);t>0&&Object.assign(e[e.length-1],rd({mux_view_message:"event queue truncated"}));var n=this._createPayload(e);$c(this._beaconUrl,n,!0,function(){})},Zt.prototype._sendBeaconQueue=function(){var t=this;if(this._postInFlight)this._resendAfterPost=!0;else{var e=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(e),i=xe.now();$c(this._beaconUrl,n,!1,function(a,r){r?(t._eventQueue=e.concat(t._eventQueue),t._failureCount+=1,X.info("Error sending beacon: "+r)):t._failureCount=0,t._roundTripTime=xe.now()-i,t._postInFlight=!1,t._resendAfterPost&&(t._resendAfterPost=!1,t._eventQueue.length>0&&t._sendBeaconQueue())})}},Zt.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var t=Math.pow(2,this._failureCount-1);return(1+(t*=Math.random()))*this._options.baseTimeBetweenBeacons},Zt.prototype._startBeaconSending=function(){var t=this;jn.default.clearTimeout(this._sendTimeout),!this.destroyed&&(this._sendTimeout=jn.default.setTimeout(function(){t._eventQueue.length&&t._sendBeaconQueue(),t._startBeaconSending()},this._getNextBeaconTime()))},Zt.prototype._createPayload=function(t){var e=this,n={transmission_timestamp:Math.round(xe.now())};this._roundTripTime&&(n.rtt_ms=Math.round(this._roundTripTime));var i,a,r,s=function(){i=JSON.stringify({metadata:n,events:a||t}),r=i.length/1024},o=function(){return r<=e._options.maxPayloadKBSize};return s(),o()||(X.info("Payload size is too big ("+r+" kb). Removing unnecessary events."),a=t.filter(function(l){return Af.indexOf(l.e)===-1}),s()),o()||(X.info("Payload size still too big ("+r+" kb). Cropping fields.."),a.forEach(function(l){for(var d in l){var u=l[d];typeof u=="string"&&u.length>51200&&(l[d]=u.substring(0,51200))}}),s()),i};var kf=typeof _f.default.exitPictureInPicture=="function"?function(t){return t.length<=57344}:function(t){return!1},$c=function(t,e,n,i){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(t,e))i();else if(jn.default.fetch)jn.default.fetch(t,{method:"POST",body:e,headers:{"Content-Type":"text/plain"},keepalive:kf(e)}).then(function(r){return i(null,r.ok?null:"Error")}).catch(function(r){return i(null,r)});else{if(jn.default.XMLHttpRequest){var a=new jn.default.XMLHttpRequest;return a.onreadystatechange=function(){if(a.readyState===4)return i(null,a.status!==200?"error":void 0)},a.open("POST",t),a.setRequestHeader("Content-Type","text/plain"),void a.send(e)}i()}},wf=Zt,If=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception","view_playing_time_ms_cumulative","ad_playing_time_ms_cumulative"],Sf=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],Rf=["ad_id","ad_creative_id","ad_universal_id"],Cf=["viewstart","error","ended","viewend"],Df=function(){function t(e,n){var i,a,r,s,o,l,d,u,c,m,p,v,b,f,T,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};we(this,t),S(this,"mux",void 0),S(this,"envKey",void 0),S(this,"options",void 0),S(this,"eventQueue",void 0),S(this,"sampleRate",void 0),S(this,"disableCookies",void 0),S(this,"respectDoNotTrack",void 0),S(this,"previousBeaconData",void 0),S(this,"lastEventTime",void 0),S(this,"rateLimited",void 0),S(this,"pageLevelData",void 0),S(this,"viewerData",void 0),this.mux=e,this.envKey=n,this.options=A,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new wf(function(E,_){var w=_.beaconCollectionDomain,I=_.beaconDomain;if(w)return"https://"+w;var D=I||"litix.io";return(E=E||"inferred").match(/^[a-z0-9]+$/)?"https://"+E+"."+D:"https://img.litix.io/a.gif"}(this.envKey,this.options)),this.sampleRate=(b=this.options.sampleRate)!==null&&b!==void 0?b:1,this.disableCookies=(f=this.options.disableCookies)!==null&&f!==void 0&&f,this.respectDoNotTrack=(T=this.options.respectDoNotTrack)!==null&&T!==void 0&&T,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:(i=this.options.platform)===null||i===void 0?void 0:i.name,viewer_application_version:(a=this.options.platform)===null||a===void 0?void 0:a.version,viewer_application_engine:(r=this.options.platform)===null||r===void 0?void 0:r.layout,viewer_device_name:(s=this.options.platform)===null||s===void 0?void 0:s.product,viewer_device_category:"",viewer_device_manufacturer:(o=this.options.platform)===null||o===void 0?void 0:o.manufacturer,viewer_os_family:(d=this.options.platform)===null||d===void 0||(l=d.os)===null||l===void 0?void 0:l.family,viewer_os_architecture:(c=this.options.platform)===null||c===void 0||(u=c.os)===null||u===void 0?void 0:u.architecture,viewer_os_version:(p=this.options.platform)===null||p===void 0||(m=p.os)===null||m===void 0?void 0:m.version,viewer_connection_type:Ef(),page_url:dl.default===null||dl.default===void 0||(v=dl.default.location)===null||v===void 0?void 0:v.href},this.viewerData=this.disableCookies?{}:function(){var E=Wc();return E.mux_viewer_id=E.mux_viewer_id||Tr(),E.msn=E.msn||Math.random(),Bc(E),{mux_viewer_id:E.mux_viewer_id,mux_sample_number:E.msn}}()}return Yt(t,[{key:"send",value:function(e,n){if(e&&n!=null&&n.view_id){if(this.respectDoNotTrack&&id())return X.info("Not sending `"+e+"` because Do Not Track is enabled");if(!n||typeof n!="object")return X.error("A data object was expected in send() but was not provided");var i=this.disableCookies?{}:function(){var l=Wc(),d=xe.now();return l.session_start&&(l.sst=l.session_start,delete l.session_start),l.session_id&&(l.sid=l.session_id,delete l.session_id),l.session_expires&&(l.sex=l.session_expires,delete l.session_expires),(!l.sex||l.sex<d)&&(l.sid=Tr(),l.sst=d),l.sex=d+15e5,Bc(l),{session_id:l.sid,session_start:l.sst,session_expires:l.sex}}(),a=Ku(Ro({},this.pageLevelData,n,i,this.viewerData),{event:e,env_key:this.envKey});a.user_id&&(a.viewer_user_id=a.user_id,delete a.user_id);var r,s=((r=a.mux_sample_number)!==null&&r!==void 0?r:0)>=this.sampleRate,o=rd(this._deduplicateBeaconData(e,a));if(this.lastEventTime=this.mux.utils.now(),s)return X.info("Not sending event due to sample rate restriction",e,a,o);if(this.envKey||X.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,a,o),!this.rateLimited)if(X.info("Sending event",e,a,o),this.rateLimited=!this.eventQueue.queueEvent(e,o),this.mux.WINDOW_UNLOADING&&e==="viewend")this.eventQueue.destroy(!0);else{if(this.mux.WINDOW_HIDDEN&&e==="hb")this.eventQueue.flushEvents(!0);else if(Cf.indexOf(e)>=0){if(e==="error"&&n.player_error_severity==="warning")return;this.eventQueue.flushEvents()}if(this.rateLimited)return a.event="eventrateexceeded",o=rd(a),this.eventQueue.queueEvent(a.event,o),X.error("Beaconing disabled due to rate limit.")}}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,n){var i=this,a={},r=n.view_id;if(r==="-1"||e==="viewstart"||e==="viewend"||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)a=Ro({},n),r&&(this.previousBeaconData=a),r&&e==="viewend"&&(this.previousBeaconData=null);else{var s=e.indexOf("request")===0;Object.entries(n).forEach(function(o){var l=an(o,2),d=l[0],u=l[1];i.previousBeaconData&&(u!==i.previousBeaconData[d]||If.indexOf(d)>-1||i.objectHasChanged(s,d,u,i.previousBeaconData[d])||i.eventRequiresKey(e,d))&&(a[d]=u,i.previousBeaconData[d]=u)})}return a}},{key:"objectHasChanged",value:function(e,n,i,a){return!(!e||n.indexOf("request_")!==0)&&(n==="request_response_headers"||typeof i!="object"||typeof a!="object"||Object.keys(i||{}).length!==Object.keys(a||{}).length)}},{key:"eventRequiresKey",value:function(e,n){return!!(e==="renditionchange"&&n.indexOf("video_source_")===0||Rf.includes(n)&&Sf.includes(e))}}]),t}(),Lf=function t(e){we(this,t);var n=0,i=0,a=0,r=0,s=0,o=0,l=0;e.on("requestcompleted",function(d,u){var c,m,p=u.request_start,v=u.request_response_start,b=u.request_response_end,f=u.request_bytes_loaded;if(r++,v?(c=v-(p??0),m=(b??0)-v):m=(b??0)-(p??0),m>0&&f&&f>0){var T=f/m*8e3;s++,i+=f,a+=m,e.data.view_min_request_throughput=Math.min(e.data.view_min_request_throughput||1/0,T),e.data.view_average_request_throughput=i/a*8e3,e.data.view_request_count=r,c>0&&(n+=c,e.data.view_max_request_latency=Math.max(e.data.view_max_request_latency||0,c),e.data.view_average_request_latency=n/s)}}),e.on("requestfailed",function(d,u){r++,o++,e.data.view_request_count=r,e.data.view_request_failed_count=o}),e.on("requestcanceled",function(d,u){r++,l++,e.data.view_request_count=r,e.data.view_request_canceled_count=l})},Mf=function t(e){var n=this;we(this,t),S(this,"_lastEventTime",void 0),e.on("before*",function(i,a){var r=a.viewer_time,s=xe.now(),o=n._lastEventTime;if(n._lastEventTime=s,o&&s-o>36e5){var l=Object.keys(e.data).reduce(function(u,c){return c.indexOf("video_")===0?Object.assign(u,S({},c,e.data[c])):u},{});e.mux.log.info("Received event after at least an hour inactivity, creating a new view");var d=e.playbackHeartbeat._playheadShouldBeProgressing;e._resetView(Object.assign({viewer_time:r},l)),e.playbackHeartbeat._playheadShouldBeProgressing=d,e.playbackHeartbeat._playheadShouldBeProgressing&&i.type!=="play"&&i.type!=="adbreakstart"&&(e.emit("play",{viewer_time:r}),i.type!=="playing"&&e.emit("playing",{viewer_time:r}))}})};function qc(t,e){return t?.toLowerCase()===e?.toLowerCase()}var xf=function t(e){we(this,t);var n=function(o){var l,d=function(m){var p;return m!=null&&m.request_type&&(m.request_type==="media"||m.request_type==="video")&&(p=m.request_response_headers)!==null&&p!==void 0&&p["x-cdn"]?m.request_response_headers["x-cdn"]:m!=null&&m.video_cdn?m.video_cdn:null}(o),u=(l=o)!=null&&l.request_start?l.request_start:l!=null&&l.viewer_time?l.viewer_time:Date.now();if(d!=null&&!qc(d,r)&&s<=u){r=d,s=u;var c={video_cdn:d};e.emit("cdnchange",c)}},i=null,a=null,r=null,s=0;e.on("viewinit",function(){i=null,a=null,r=null,s=0}),e.on("beforecdnchange",function(o,l){var d=l?.video_cdn;d&&(l.video_previous_cdn===void 0||l.video_previous_cdn===null)&&(qc(d,a)?l.video_previous_cdn=i??void 0:(l.video_previous_cdn=a??void 0,i=a,a=d))}),e.on("requestcompleted",function(o,l){n(l)})},Nf=function t(e){var n=this;we(this,t),S(this,"_emittingAutomaticEvent",!1),S(this,"_hasInitialized",!1),S(this,"_currentMode","standard"),e.on("viewstart",function(){n._hasInitialized||(n._hasInitialized=!0,n._emittingAutomaticEvent=!0,e.emit("playbackmodechange",{player_playback_mode:n._currentMode,player_playback_mode_data:"{}"}),n._emittingAutomaticEvent=!1)}),e.on("viewend",function(){n._hasInitialized=!1}),e.on("playbackmodechange",function(i,a){n._emittingAutomaticEvent||(a.player_playback_mode_data?function(r){try{return JSON.parse(r),!0}catch{return!1}}(a.player_playback_mode_data)||(e.mux.log.warn("Invalid JSON string for player_playback_mode_data"),a.player_playback_mode_data="{}"):a.player_playback_mode_data="{}",e.data.player_playback_mode_data=a.player_playback_mode_data,e.data.player_playback_mode=a.player_playback_mode,n._currentMode=a.player_playback_mode)})},Of=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange","cdnchange","playbackmodechange"],Pf=new Set(["requestcompleted","requestfailed","requestcanceled"]),Uf=function(){(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),i&&cp(n,i)})(e,af);var t=Jb(e);function e(n,i,a){var r;we(this,e),S(P(r=t.call(this)),"pageLoadEndTime",void 0),S(P(r),"pageLoadInitTime",void 0),S(P(r),"_destroyed",void 0),S(P(r),"_heartBeatTimeout",void 0),S(P(r),"adTracker",void 0),S(P(r),"dashjs",void 0),S(P(r),"data",void 0),S(P(r),"disablePlayheadRebufferTracking",void 0),S(P(r),"disableRebufferTracking",void 0),S(P(r),"errorTracker",void 0),S(P(r),"errorTranslator",void 0),S(P(r),"emitTranslator",void 0),S(P(r),"getAdData",void 0),S(P(r),"getPlayheadTime",void 0),S(P(r),"getStateData",void 0),S(P(r),"stateDataTranslator",void 0),S(P(r),"hlsjs",void 0),S(P(r),"id",void 0),S(P(r),"longResumeTracker",void 0),S(P(r),"minimumRebufferDuration",void 0),S(P(r),"mux",void 0),S(P(r),"playbackEventDispatcher",void 0),S(P(r),"playbackHeartbeat",void 0),S(P(r),"playbackHeartbeatTime",void 0),S(P(r),"playheadTime",void 0),S(P(r),"seekingTracker",void 0),S(P(r),"sustainedRebufferThreshold",void 0),S(P(r),"watchTimeTracker",void 0),S(P(r),"currentFragmentPDT",void 0),S(P(r),"currentFragmentStart",void 0),r.pageLoadInitTime=as.navigationStart(),r.pageLoadEndTime=as.domContentLoadedEventEnd();var s={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(u){return u},emitTranslator:function(){for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return c},stateDataTranslator:function(u){return u}};r.mux=n,r.id=i,a!=null&&a.beaconDomain&&r.mux.log.warn("The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),(a=Object.assign(s,a)).data=a.data||{},a.data.property_key&&(a.data.env_key=a.data.property_key,delete a.data.property_key),X.level=a.debug?dp:up,r.getPlayheadTime=a.getPlayheadTime,r.getStateData=a.getStateData||function(){return{}},r.getAdData=a.getAdData||function(){},r.minimumRebufferDuration=a.minimumRebufferDuration,r.sustainedRebufferThreshold=a.sustainedRebufferThreshold,r.playbackHeartbeatTime=a.playbackHeartbeatTime,r.disableRebufferTracking=a.disableRebufferTracking,r.disableRebufferTracking&&r.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),r.disablePlayheadRebufferTracking=a.disablePlayheadRebufferTracking,r.errorTranslator=a.errorTranslator,r.emitTranslator=a.emitTranslator,r.stateDataTranslator=a.stateDataTranslator,r.playbackEventDispatcher=new Df(n,a.data.env_key,a),r.data={player_instance_id:Tr(),mux_sample_rate:a.sampleRate,beacon_domain:a.beaconCollectionDomain||a.beaconDomain},r.data.view_sequence_number=1,r.data.player_sequence_number=1;var o=(function(){this.data.view_start===void 0&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"),this.emit("renditionchange"))}).bind(P(r));if(r.on("viewinit",function(u,c){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,c),this._initializeViewData(),this.one("play",o),this.one("adbreakstart",o)}),r.on("videochange",function(u,c){this._resetView(c)}),r.on("programchange",function(u,c){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),this._resetView(Object.assign(c,{view_program_changed:!0})),o(),this.emit("play"),this.emit("playing")}),r.on("fragmentchange",function(u,c){this.currentFragmentPDT=c.currentFragmentPDT,this.currentFragmentStart=c.currentFragmentStart}),r.on("destroy",r.destroy),typeof window<"u"&&typeof window.addEventListener=="function"&&typeof window.removeEventListener=="function"){var l=function(){var u=r.data.view_start!==void 0;r.mux.WINDOW_HIDDEN=document.visibilityState==="hidden",u&&r.mux.WINDOW_HIDDEN&&(r.data.player_is_paused||r.emit("hb"))};window.addEventListener("visibilitychange",l,!1);var d=function(u){u.persisted||r.destroy()};window.addEventListener("pagehide",d,!1),r.on("destroy",function(){window.removeEventListener("visibilitychange",l),window.removeEventListener("pagehide",d)})}return r.on("playerready",function(u,c){Object.assign(this.data,c)}),Of.forEach(function(u){r.on(u,function(c,m){u.indexOf("ad")!==0&&this._updateStateData(),Object.assign(this.data,m),this._sanitizeData()}),r.on("after"+u,function(){(u!=="error"||this.errorTracker.viewErrored)&&this.send(u)})}),r.on("viewend",function(u,c){Object.assign(r.data,c)}),r.one("playerready",function(u){var c=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=c-this.data.player_init_time),this.pageLoadInitTime=this.data.page_load_init_time||this.pageLoadInitTime,this.pageLoadEndTime=this.data.page_load_end_time||this.pageLoadEndTime,!this.mux.PLAYER_TRACKED&&this.pageLoadInitTime&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.pageLoadEndTime)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.pageLoadEndTime||1/0)-this.pageLoadInitTime)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time}),r.longResumeTracker=new Mf(P(r)),r.errorTracker=new sf(P(r)),new ff(P(r)),r.seekingTracker=new pf(P(r)),r.playheadTime=new df(P(r)),r.playbackHeartbeat=new rf(P(r)),new mf(P(r)),r.watchTimeTracker=new of(P(r)),new lf(P(r)),r.adTracker=new bf(P(r)),new cf(P(r)),new uf(P(r)),new hf(P(r)),new Lf(P(r)),new xf(P(r)),new Nf(P(r)),a.hlsjs&&r.addHLSJS(a),a.dashjs&&r.addDashJS(a),r.emit("viewinit",a.data),r}return Yt(e,[{key:"emit",value:function(n,i){var a,r=Object.assign({viewer_time:this.mux.utils.now()},i),s=[n,r];if(this.emitTranslator)try{s=this.emitTranslator(n,r)}catch(o){this.mux.log.warn("Exception in emit translator callback.",o)}s!=null&&s.length&&(a=ad(Ar(e.prototype),"emit",this)).call.apply(a,[this].concat(ct(s)))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.data.view_start!==void 0&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(n){if(this.data.view_id){var i=Object.assign({},this.data);if(i.video_source_is_live===void 0&&(i.player_source_duration===1/0||i.video_source_duration===1/0?i.video_source_is_live=!0:(i.player_source_duration>0||i.video_source_duration>0)&&(i.video_source_is_live=!1)),i.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach(function(o){i[o]=void 0}),i.video_source_url=i.video_source_url||i.player_source_url,i.video_source_url){var a=an(kr(i.video_source_url),2),r=a[0],s=a[1];i.video_source_domain=s,i.video_source_hostname=r}delete i.ad_request_id,this.playbackEventDispatcher.send(n,i),this.data.view_sequence_number++,this.data.player_sequence_number++,Pf.has(n)||this._restartHeartBeat(),n==="viewend"&&delete this.data.view_id}}},{key:"_resetView",value:function(n){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",n)}},{key:"_updateStateData",value:function(){var n,i=this.getStateData();if(typeof this.stateDataTranslator=="function")try{i=this.stateDataTranslator(i)}catch(a){this.mux.log.warn("Exception in stateDataTranslator translator callback.",a)}(n=this.data)!==null&&n!==void 0&&n.video_cdn&&i!=null&&i.video_cdn&&(i.video_cdn,i=Xb(i,["video_cdn"])),Object.assign(this.data,i),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var n=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach(function(i){var a=parseInt(n.data[i],10);n.data[i]=isNaN(a)?void 0:a}),["player_source_url","video_source_url"].forEach(function(i){if(n.data[i]){var a=n.data[i].toLowerCase();(a.indexOf("data:")===0||a.indexOf("blob:")===0)&&(n.data[i]="MSE style URL")}})}},{key:"_resetVideoData",value:function(){var n=this;Object.keys(this.data).forEach(function(i){i.indexOf("video_")===0&&delete n.data[i]})}},{key:"_resetViewData",value:function(){var n=this;Object.keys(this.data).forEach(function(i){i.indexOf("view_")===0&&delete n.data[i]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var n=this,i=this.data.view_id=Tr(),a=function(){i===n.data.view_id&&ke(n.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",a):a()}},{key:"_restartHeartBeat",value:function(){var n=this;window.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=window.setTimeout(function(){n.data.player_is_paused||n.emit("hb")},1e4)}},{key:"addHLSJS",value:function(n){n.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=n.hlsjs,function(i,a,r){var s=arguments.length>4?arguments[4]:void 0,o=i.log,l=i.utils.secondsToMs,d=function(E){var _,w=parseInt(s.version);return w===1&&E.programDateTime!==null&&(_=E.programDateTime),w===0&&E.pdt!==null&&(_=E.pdt),_};if(as.exists()){var u=function(E,_){return i.emit(a,E,_)},c=function(E,_){var w=_.levels,I=_.audioTracks,D=_.url,V=_.stats,q=_.networkDetails,Y=_.sessionData,re={},oe={};w.forEach(function(de,Ke){re[Ke]={width:de.width,height:de.height,bitrate:de.bitrate,attrs:de.attrs}}),I.forEach(function(de,Ke){oe[Ke]={name:de.name,language:de.lang,bitrate:de.bitrate}});var J=Nr(V),ee=J.bytesLoaded,Ne=J.requestStart,He=J.responseStart,Ee=J.responseEnd;u("requestcompleted",Ku(Ro({},mp(Y)),{request_event_type:E,request_bytes_loaded:ee,request_start:Ne,request_response_start:He,request_response_end:Ee,request_type:"manifest",request_hostname:bt(D),request_response_headers:ba(q),request_rendition_lists:{media:re,audio:oe,video:{}}}))};r.on(s.Events.MANIFEST_LOADED,c);var m=function(E,_){var w=_.details,I=_.level,D=_.networkDetails,V=_.stats,q=Nr(V),Y=q.bytesLoaded,re=q.requestStart,oe=q.responseStart,J=q.responseEnd,ee=w.fragments[w.fragments.length-1],Ne=d(ee)+l(ee.duration);u("requestcompleted",{request_event_type:E,request_bytes_loaded:Y,request_start:re,request_response_start:oe,request_response_end:J,request_current_level:I,request_type:"manifest",request_hostname:bt(w.url),request_response_headers:ba(D),video_holdback:w.holdBack&&l(w.holdBack),video_part_holdback:w.partHoldBack&&l(w.partHoldBack),video_part_target_duration:w.partTarget&&l(w.partTarget),video_target_duration:w.targetduration&&l(w.targetduration),video_source_is_live:w.live,player_manifest_newest_program_time:isNaN(Ne)?void 0:Ne})};r.on(s.Events.LEVEL_LOADED,m);var p=function(E,_){var w=_.details,I=_.networkDetails,D=_.stats,V=Nr(D),q=V.bytesLoaded,Y=V.requestStart,re=V.responseStart,oe=V.responseEnd;u("requestcompleted",{request_event_type:E,request_bytes_loaded:q,request_start:Y,request_response_start:re,request_response_end:oe,request_type:"manifest",request_hostname:bt(w.url),request_response_headers:ba(I)})};r.on(s.Events.AUDIO_TRACK_LOADED,p);var v=function(E,_){var w=_.stats,I=_.networkDetails,D=_.frag;w=w||D.stats;var V=Nr(w),q=V.bytesLoaded,Y=V.requestStart,re=V.responseStart,oe=V.responseEnd,J=I?ba(I):void 0,ee={request_event_type:E,request_bytes_loaded:q,request_start:Y,request_response_start:re,request_response_end:oe,request_hostname:I?bt(I.responseURL):void 0,request_id:J?Co(J):void 0,request_response_headers:J,request_media_duration:D.duration,request_url:I?.responseURL};D.type==="main"?(ee.request_type="media",ee.request_current_level=D.level,ee.request_video_width=(r.levels[D.level]||{}).width,ee.request_video_height=(r.levels[D.level]||{}).height,ee.request_labeled_bitrate=(r.levels[D.level]||{}).bitrate):ee.request_type=D.type,u("requestcompleted",ee)};r.on(s.Events.FRAG_LOADED,v);var b=function(E,_){var w=_.frag,I=w.start,D={currentFragmentPDT:d(w),currentFragmentStart:l(I)};u("fragmentchange",D)};r.on(s.Events.FRAG_CHANGED,b);var f=function(E,_){var w=_.type,I=_.details,D=_.response,V=_.fatal,q=_.frag,Y=_.networkDetails,re=q?.url||_.url||"",oe=Y?ba(Y):void 0;if((I===s.ErrorDetails.MANIFEST_LOAD_ERROR||I===s.ErrorDetails.MANIFEST_LOAD_TIMEOUT||I===s.ErrorDetails.FRAG_LOAD_ERROR||I===s.ErrorDetails.FRAG_LOAD_TIMEOUT||I===s.ErrorDetails.LEVEL_LOAD_ERROR||I===s.ErrorDetails.LEVEL_LOAD_TIMEOUT||I===s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||I===s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||I===s.ErrorDetails.SUBTITLE_LOAD_ERROR||I===s.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||I===s.ErrorDetails.KEY_LOAD_ERROR||I===s.ErrorDetails.KEY_LOAD_TIMEOUT)&&u("requestfailed",{request_error:I,request_url:re,request_hostname:bt(re),request_id:oe?Co(oe):void 0,request_type:I===s.ErrorDetails.FRAG_LOAD_ERROR||I===s.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":I===s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||I===s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":I===s.ErrorDetails.SUBTITLE_LOAD_ERROR||I===s.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":I===s.ErrorDetails.KEY_LOAD_ERROR||I===s.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:D?.code,request_error_text:D?.text}),V){var J,ee="".concat(re?"url: ".concat(re,`
|
|
6
|
+
`):"")+"".concat(D&&(D.code||D.text)?"response: ".concat(D.code,", ").concat(D.text,`
|
|
7
|
+
`):"")+"".concat(_.reason?"failure reason: ".concat(_.reason,`
|
|
8
|
+
`):"")+"".concat(_.level?"level: ".concat(_.level,`
|
|
9
|
+
`):"")+"".concat(_.parent?"parent stream controller: ".concat(_.parent,`
|
|
10
|
+
`):"")+"".concat(_.buffer?"buffer length: ".concat(_.buffer,`
|
|
11
|
+
`):"")+"".concat(_.error?"error: ".concat(_.error,`
|
|
12
|
+
`):"")+"".concat(_.event?"event: ".concat(_.event,`
|
|
13
|
+
`):"")+"".concat(_.err?"error message: ".concat((J=_.err)===null||J===void 0?void 0:J.message,`
|
|
14
|
+
`):"");u("error",{player_error_code:w,player_error_message:I,player_error_context:ee})}};r.on(s.Events.ERROR,f);var T=function(E,_){var w=_.frag,I=w&&w._url||"";u("requestcanceled",{request_event_type:E,request_url:I,request_type:"media",request_hostname:bt(I)})};r.on(s.Events.FRAG_LOAD_EMERGENCY_ABORTED,T);var A=function(E,_){var w=_.level,I=r.levels[w];if(I&&I.attrs&&I.attrs.BANDWIDTH){var D,V=I.attrs.BANDWIDTH,q=parseFloat(I.attrs["FRAME-RATE"]);isNaN(q)||(D=q),V?u("renditionchange",{video_source_fps:D,video_source_bitrate:V,video_source_width:I.width,video_source_height:I.height,video_source_rendition_name:I.name,video_source_codec:I?.videoCodec}):o.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};r.on(s.Events.LEVEL_SWITCHED,A),r._stopMuxMonitor=function(){r.off(s.Events.MANIFEST_LOADED,c),r.off(s.Events.LEVEL_LOADED,m),r.off(s.Events.AUDIO_TRACK_LOADED,p),r.off(s.Events.FRAG_LOADED,v),r.off(s.Events.FRAG_CHANGED,b),r.off(s.Events.ERROR,f),r.off(s.Events.FRAG_LOAD_EMERGENCY_ABORTED,T),r.off(s.Events.LEVEL_SWITCHED,A),r.off(s.Events.DESTROYING,r._stopMuxMonitor),delete r._stopMuxMonitor},r.on(s.Events.DESTROYING,r._stopMuxMonitor)}else o.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,n.hlsjs,{},n.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){this.hlsjs&&(function(n){n&&typeof n._stopMuxMonitor=="function"&&n._stopMuxMonitor()}(this.hlsjs),this.hlsjs=void 0)}},{key:"addDashJS",value:function(n){n.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=n.dashjs,nf(this.mux,this.id,n.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){this.dashjs&&(function(n){n&&typeof n._stopMuxMonitor=="function"&&n._stopMuxMonitor()}(this.dashjs),this.dashjs=void 0)}}]),e}(),fa=ot(sp());function ul(){return fa.default&&!!(fa.default.fullscreenElement||fa.default.webkitFullscreenElement||fa.default.mozFullScreenElement||fa.default.msFullscreenElement)}var Hf=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],Wf={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},fi,ir=ot(Ft());ir.default&&ir.default.WeakMap&&(fi=new WeakMap);var Bf="#EXT-X-TARGETDURATION",Vf="#EXT-X-PART-INF",$f="#EXT-X-SERVER-CONTROL",qf="#EXTINF",Kf="#EXT-X-PROGRAM-DATE-TIME",Ff="#EXT-X-VERSION",Yf="#EXT-X-SESSION-DATA",rs=function(t){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(t),this.manifest};rs.prototype.process=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf(`
|
|
15
|
+
`);e>-1;e=this.buffer.indexOf(`
|
|
16
|
+
`))this.processLine(this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},rs.prototype.processLine=function(t){var e=t.indexOf(":"),n=zf(t,e),i=n[0],a=n.length===2?Yu(n[1]):void 0;if(i[0]!=="#")this.currentUri.uri=i,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(i){case Bf:if(!isFinite(a)||a<0)return;this.manifest.targetDuration=a,this.setHoldBack();break;case Vf:cl(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case $f:cl(this.manifest,n),this.setHoldBack();break;case qf:a===0?this.currentUri.duration=.01:a>0&&(this.currentUri.duration=a);break;case Kf:var r=a,s=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=s),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=s;break;case Ff:cl(this.manifest,n);break;case Yf:var o=Zf(n[1]),l=mp(o);Object.assign(this.manifest.sessionData,l)}},rs.prototype.setHoldBack=function(){var t=this.manifest,e=t.serverControl,n=t.targetDuration,i=t.partTargetDuration;if(e){var a="holdBack",r="partHoldBack",s=n&&3*n,o=i&&2*i;n&&!e.hasOwnProperty(a)&&(e[a]=s),s&&e[a]<s&&(e[a]=s),i&&!e.hasOwnProperty(r)&&(e[r]=3*i),i&&e[r]<o&&(e[r]=o)}};var cl=function(t,e){var n,i=Ep(e[0].replace("#EXT-X-",""));Qf(e[1])?(n={},n=Object.assign(jf(e[1]),n)):n=Yu(e[1]),t[i]=n},Ep=function(t){return t.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},Yu=function(t){if(t.toLowerCase()==="yes"||t.toLowerCase()==="no")return t.toLowerCase()==="yes";var e=t.indexOf(":")!==-1?t:parseFloat(t);return isNaN(e)?t:e},Gf=function(t){var e={},n=t.split("=");return n.length>1&&(e[Ep(n[0])]=Yu(n[1])),e},jf=function(t){for(var e=t.split(","),n={},i=0;e.length>i;i++){var a=e[i],r=Gf(a);n=Object.assign(r,n)}return n},Qf=function(t){return t.indexOf("=")>-1},zf=function(t,e){return e===-1?[t]:[t.substring(0,e),t.substring(e+1)]},Zf=function(t){var e={};if(t){var n=t.search(",");return[t.slice(0,n),t.slice(n+1)].forEach(function(i,a){for(var r=i.replace(/['"]+/g,"").split("="),s=0;s<r.length;s++)r[s]==="DATA-ID"&&(e["DATA-ID"]=r[1-s]),r[s]==="VALUE"&&(e.VALUE=r[1-s])}),{data:e}}},Xf=rs,Jf={safeCall:function(t,e,n,i){var a=i;if(t&&typeof t[e]=="function")try{a=t[e].apply(t,n)}catch(r){X.info("safeCall error",r)}return a},safeIncrement:ke,getComputedStyle:function(t,e){return t&&e&&ir.default&&typeof ir.default.getComputedStyle=="function"?(fi&&fi.has(t)&&(n=fi.get(t)),n||(n=ir.default.getComputedStyle(t,null),fi&&fi.set(t,n)),n.getPropertyValue(e)):"";var n},secondsToMs:function(t){return Math.floor(1e3*t)},assign:Object.assign,headersStringToObject:Fu,cdnHeadersToRequestId:Co,extractHostnameAndDomain:kr,extractHostname:bt,manifestParser:Xf,generateShortID:lp,generateUUID:Tr,now:xe.now,findMediaElement:is},eg={PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",PLAYBACK_MODE_CHANGE:"playbackmodechange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled",HEARTBEAT:"hb",DESTROY:"destroy"},pe={},Sn=function(t){var e=arguments;typeof t=="string"?Sn.hasOwnProperty(t)?nr.default.setTimeout(function(){e=Array.prototype.splice.call(e,1),Sn[t].apply(null,e)},0):X.warn("`"+t+"` is an unknown task"):typeof t=="function"?nr.default.setTimeout(function(){t(Sn)},0):X.warn("`"+t+"` is invalid.")},tg={loaded:xe.now(),NAME:"mux-embed",VERSION:"5.15.0",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(t,e){return function(n,i,a){var r=an(is(i),3),s=r[0],o=r[1],l=r[2],d=n.log,u=n.utils.getComputedStyle,c=n.utils.secondsToMs;if(!s)return d.error("No element was found with the `"+o+"` query selector.");if(l!=="video"&&l!=="audio")return d.error("The element of `"+o+"` was not a media element.");s.mux&&(s.mux.destroy(),delete s.mux,d.warn("Already monitoring this video element, replacing existing event listeners"));var m={getPlayheadTime:function(){return c(s.currentTime)},getStateData:function(){var v,b,f=((v=this.getPlayheadTime)===null||v===void 0?void 0:v.call(this))||c(s.currentTime),T=this.hlsjs&&this.hlsjs.url,A=this.dashjs&&typeof this.dashjs.getSource=="function"&&this.dashjs.getSource(),E={player_is_paused:s.paused,player_width:parseInt(u(s,"width")),player_height:parseInt(u(s,"height")),player_autoplay_on:s.autoplay,player_preload_on:s.preload,player_language_code:s.lang,player_is_fullscreen:ul(),video_poster_url:s.poster,video_source_url:T||A||s.currentSrc,video_source_duration:c(s.duration),video_source_height:s.videoHeight,video_source_width:s.videoWidth,view_dropped_frame_count:s==null||(b=s.getVideoPlaybackQuality)===null||b===void 0?void 0:b.call(s).droppedVideoFrames};if(s.getStartDate&&f>0){var _=s.getStartDate();if(_&&typeof _.getTime=="function"&&_.getTime()){var w=_.getTime();if(E.player_program_time=w+f,s.seekable.length>0){var I=w+s.seekable.end(s.seekable.length-1);E.player_live_edge_program_time=I}}}return E}};(a=Object.assign({automaticErrorTracking:!0},a,m)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:n.VERSION},a.data),s.mux=s.mux||{},s.mux.deleted=!1,s.mux.emit=function(v,b){n.emit(o,v,b)},s.mux.updateData=function(v){s.mux.emit("hb",v)};var p=function(){d.error("The monitor for this video element has already been destroyed.")};s.mux.destroy=function(){Object.keys(s.mux.listeners).forEach(function(v){s.removeEventListener(v,s.mux.listeners[v],!1)}),delete s.mux.listeners,s.mux.fullscreenChangeListener&&(document.removeEventListener("fullscreenchange",s.mux.fullscreenChangeListener,!1),delete s.mux.fullscreenChangeListener),s.mux.destroy=p,s.mux.swapElement=p,s.mux.emit=p,s.mux.addHLSJS=p,s.mux.addDashJS=p,s.mux.removeHLSJS=p,s.mux.removeDashJS=p,s.mux.updateData=p,s.mux.setEmitTranslator=p,s.mux.setStateDataTranslator=p,s.mux.setGetPlayheadTime=p,s.mux.deleted=!0,n.emit(o,"destroy")},s.mux.swapElement=function(v){var b=an(is(v),3),f=b[0],T=b[1],A=b[2];return f?A!=="video"&&A!=="audio"?n.log.error("The element of `"+T+"` was not a media element."):(f.muxId=s.muxId,delete s.muxId,f.mux=f.mux||{},f.mux.listeners=Object.assign({},s.mux.listeners),delete s.mux.listeners,Object.keys(f.mux.listeners).forEach(function(E){s.removeEventListener(E,f.mux.listeners[E],!1),f.addEventListener(E,f.mux.listeners[E],!1)}),f.mux.fullscreenChangeListener=s.mux.fullscreenChangeListener,delete s.mux.fullscreenChangeListener,f.mux.swapElement=s.mux.swapElement,f.mux.destroy=s.mux.destroy,delete s.mux,void(s=f)):n.log.error("No element was found with the `"+T+"` query selector.")},s.mux.addHLSJS=function(v){n.addHLSJS(o,v)},s.mux.addDashJS=function(v){n.addDashJS(o,v)},s.mux.removeHLSJS=function(){n.removeHLSJS(o)},s.mux.removeDashJS=function(){n.removeDashJS(o)},s.mux.setEmitTranslator=function(v){n.setEmitTranslator(o,v)},s.mux.setStateDataTranslator=function(v){n.setStateDataTranslator(o,v)},s.mux.setGetPlayheadTime=function(v){v||(v=a.getPlayheadTime),n.setGetPlayheadTime(o,v)},n.init(o,a),n.emit(o,"playerready"),s.paused||(n.emit(o,"play"),s.readyState>2&&n.emit(o,"playing")),s.mux.listeners={},Hf.forEach(function(v){v==="error"&&!a.automaticErrorTracking||(s.mux.listeners[v]=function(){var b={};if(v==="error"){if(!s.error||s.error.code===1)return;b.player_error_code=s.error.code,b.player_error_message=Wf[s.error.code]||s.error.message}n.emit(o,v,b)},s.addEventListener(v,s.mux.listeners[v],!1))}),s.mux.listeners.enterpictureinpicture=function(){n.emit(o,"playbackmodechange",{player_playback_mode:"pip",player_playback_mode_data:"{}"})},s.mux.listeners.leavepictureinpicture=function(){var v=ul()?"fullscreen":"standard";n.emit(o,"playbackmodechange",{player_playback_mode:v,player_playback_mode_data:"{}"})},s.addEventListener("enterpictureinpicture",s.mux.listeners.enterpictureinpicture,!1),s.addEventListener("leavepictureinpicture",s.mux.listeners.leavepictureinpicture,!1),s.mux.fullscreenChangeListener=function(){var v=ul(),b=document.fullscreenElement;if(v&&(b===s||b!=null&&b.contains(s)))n.emit(o,"playbackmodechange",{player_playback_mode:"fullscreen",player_playback_mode_data:"{}"});else if(!v){var f=document.pictureInPictureElement===s?"pip":"standard";n.emit(o,"playbackmodechange",{player_playback_mode:f,player_playback_mode_data:"{}"})}},document.addEventListener("fullscreenchange",s.mux.fullscreenChangeListener,!1)}(Sn,t,e)},destroyMonitor:function(t){var e=an(is(t),1)[0];e&&e.mux&&typeof e.mux.destroy=="function"?e.mux.destroy():X.error("A video element monitor for `"+t+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(t,e){var n=ut(t);pe[n]?pe[n].addHLSJS(e):X.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(t,e){var n=ut(t);pe[n]?pe[n].addDashJS(e):X.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(t){var e=ut(t);pe[e]?pe[e].removeHLSJS():X.error("A monitor for `"+e+"` has not been initialized.")},removeDashJS:function(t){var e=ut(t);pe[e]?pe[e].removeDashJS():X.error("A monitor for `"+e+"` has not been initialized.")},init:function(t,e){id()&&e&&e.respectDoNotTrack&&X.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=ut(t);pe[n]=new Uf(Sn,n,e)},emit:function(t,e,n){var i=ut(t);pe[i]?(pe[i].emit(e,n),e==="destroy"&&delete pe[i]):X.error("A monitor for `"+i+"` has not been initialized.")},updateData:function(t,e){var n=ut(t);pe[n]?pe[n].emit("hb",e):X.error("A monitor for `"+n+"` has not been initialized.")},setEmitTranslator:function(t,e){var n=ut(t);pe[n]?pe[n].emitTranslator=e:X.error("A monitor for `"+n+"` has not been initialized.")},setStateDataTranslator:function(t,e){var n=ut(t);pe[n]?pe[n].stateDataTranslator=e:X.error("A monitor for `"+n+"` has not been initialized.")},setGetPlayheadTime:function(t,e){var n=ut(t);pe[n]?pe[n].getPlayheadTime=e:X.error("A monitor for `"+n+"` has not been initialized.")},checkDoNotTrack:id,log:X,utils:Jf,events:eg,WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(Sn,tg),nr.default!==void 0&&typeof nr.default.addEventListener=="function"&&nr.default.addEventListener("pagehide",function(t){t.persisted||(Sn.WINDOW_UNLOADING=!0)},!1);var Gu=Sn,H=xb,ai="video",Te="drm",N={NOT_AN_ERROR:0,NETWORK_OFFLINE:2000002,NETWORK_UNKNOWN_ERROR:2e6,NETWORK_NO_STATUS:2000001,NETWORK_INVALID_URL:24e5,NETWORK_NOT_FOUND:2404e3,NETWORK_NOT_READY:2412e3,NETWORK_GENERIC_SERVER_FAIL:25e5,NETWORK_TOKEN_MISSING:2403201,NETWORK_TOKEN_MALFORMED:2412202,NETWORK_TOKEN_EXPIRED:2403210,NETWORK_TOKEN_AUD_MISSING:2403221,NETWORK_TOKEN_AUD_MISMATCH:2403222,NETWORK_TOKEN_SUB_MISMATCH:2403232,ENCRYPTED_ERROR:5e6,ENCRYPTED_UNSUPPORTED_KEY_SYSTEM:5000001,ENCRYPTED_GENERATE_REQUEST_FAILED:5000002,ENCRYPTED_UPDATE_LICENSE_FAILED:5000003,ENCRYPTED_UPDATE_SERVER_CERT_FAILED:5000004,ENCRYPTED_CDM_ERROR:5000005,ENCRYPTED_OUTPUT_RESTRICTED:5000006,ENCRYPTED_MISSING_TOKEN:5000002},Do=t=>t===ai?"playback":t,hn=class Ca extends Error{constructor(e,n=Ca.MEDIA_ERR_CUSTOM,i,a){var r;super(e),this.name="MediaError",this.code=n,this.context=a,this.fatal=i??(n>=Ca.MEDIA_ERR_NETWORK&&n<=Ca.MEDIA_ERR_ENCRYPTED),this.message||(this.message=(r=Ca.defaultMessages[this.code])!=null?r:"")}};hn.MEDIA_ERR_ABORTED=1,hn.MEDIA_ERR_NETWORK=2,hn.MEDIA_ERR_DECODE=3,hn.MEDIA_ERR_SRC_NOT_SUPPORTED=4,hn.MEDIA_ERR_ENCRYPTED=5,hn.MEDIA_ERR_CUSTOM=100,hn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var C=hn,ju=(t,e)=>!(n=>n==null)(e)&&t in e,sd={ANY:"any",MUTED:"muted"},j={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},wr="mse",Ir="native",Da={HEADER:"header",QUERY:"query",NONE:"none"},Lo=Object.values(Da),Rn={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},Kc={HLS:Rn.M3U8},f0={upTo720p:"720p",upTo1080p:"1080p",upTo1440p:"1440p",upTo2160p:"2160p"},g0={noLessThan480p:"480p",noLessThan540p:"540p",noLessThan720p:"720p",noLessThan1080p:"1080p",noLessThan1440p:"1440p",noLessThan2160p:"2160p"},E0={DESCENDING:"desc"},od={code:"en"},be=(t,e,n,i,a=t)=>{a.addEventListener(e,n,i),t.addEventListener("teardown",()=>{a.removeEventListener(e,n)},{once:!0})},Qu=t=>{let e=t.indexOf("?");return e<0?[t]:[t.slice(0,e),t.slice(e)]},Mo=t=>{let{type:e}=t;if(e){let n=e.toUpperCase();return ju(n,Kc)?Kc[n]:e}return ng(t)},yp=t=>t==="VOD"?j.ON_DEMAND:j.LIVE,_p=t=>t==="EVENT"?Number.POSITIVE_INFINITY:t==="VOD"?Number.NaN:0,ng=t=>{let{src:e}=t;if(!e)return"";let n="";try{n=new URL(e).pathname}catch{console.error("invalid url")}let i=n.lastIndexOf(".");if(i<0)return ig(t)?Rn.M3U8:"";let a=n.slice(i+1).toUpperCase();return ju(a,Rn)?Rn[a]:""},ig=({src:t,customDomain:e="mux.com"})=>{let n;try{n=new URL(`${t}`)}catch{return!1}let i=n.protocol==="https:",a=n.hostname===`stream.${e}`.toLowerCase(),r=n.pathname.split("/"),s=r.length===2,o=!(r!=null&&r[1].includes("."));return i&&a&&s&&o},gi=t=>{let e=(t??"").split(".")[1];if(e)try{let n=e.replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(n).split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}catch{return}};function M(t,e=!0){var n,i;let a=e&&(i=(n=od)==null?void 0:n[t])!=null?i:t;return new ag(a,e?od.code:"en")}var ag=class{constructor(t,e=(n=>(n=od)!=null?n:"en")()){this.message=t,this.locale=e}format(t){return this.message.replace(/\{(\w+)\}/g,(e,n)=>{var i;return(i=t[n])!=null?i:""})}toString(){return this.message}},rg=Object.values(sd),Fc=t=>typeof t=="boolean"||typeof t=="string"&&rg.includes(t),hl=(t,e)=>{if(!e)return;let n=t.muted,i=()=>t.muted=n;switch(e){case sd.ANY:t.play().catch(()=>{t.muted=!0,t.play().catch(i)});break;case sd.MUTED:t.muted=!0,t.play().catch(i);break;default:t.play().catch(()=>{})}};function sg(t,e){var n;if(!("videoTracks"in t))return;let i=new WeakMap;e.on(H.Events.MANIFEST_PARSED,function(s,o){r();let l=t.addVideoTrack("main");l.selected=!0;for(let[d,u]of o.levels.entries()){let c=l.addRendition(u.url[0],u.width,u.height,u.videoCodec,u.bitrate);i.set(u,`${d}`),c.id=`${d}`}}),e.on(H.Events.AUDIO_TRACKS_UPDATED,function(s,o){a();for(let l of o.audioTracks){let d=l.default?"main":"alternative",u=t.addAudioTrack(d,l.name,l.lang);u.id=`${l.id}`,l.default&&(u.enabled=!0)}}),t.audioTracks.addEventListener("change",()=>{var s;let o=+((s=[...t.audioTracks].find(d=>d.enabled))==null?void 0:s.id),l=e.audioTracks.map(d=>d.id);o!=e.audioTrack&&l.includes(o)&&(e.audioTrack=o)}),e.on(H.Events.LEVELS_UPDATED,function(s,o){var l;let d=t.videoTracks[(l=t.videoTracks.selectedIndex)!=null?l:0];if(!d)return;let u=o.levels.map(c=>i.get(c));for(let c of t.videoRenditions)c.id&&!u.includes(c.id)&&d.removeRendition(c)}),(n=t.videoRenditions)==null||n.addEventListener("change",s=>{let o=s.target.selectedIndex;o!=e.nextLevel&&(e.nextLevel=o)});let a=()=>{for(let s of t.audioTracks)t.removeAudioTrack(s)},r=()=>{(()=>{for(let s of t.videoTracks)t.removeVideoTrack(s)})(),a()};e.once(H.Events.DESTROYING,r)}var ml=t=>"time"in t?t.time:t.startTime;function zu(t,e,n,i,a,r){let s=document.createElement("track");return s.kind=e,s.label=n,i&&(s.srclang=i),a&&(s.id=a),r&&(s.default=!0),s.track.mode=["subtitles","captions"].includes(e)?"disabled":"hidden",s.setAttribute("data-removeondestroy",""),t.append(s),s.track}function Sr(t,e,n){var i;return(i=Array.from(t.querySelectorAll("track")).find(a=>a.track.label===e&&a.track.kind===n))==null?void 0:i.track}async function Tp(t,e,n,i){let a=Sr(t,n,i);return a||(a=zu(t,i,n),a.mode="hidden",await new Promise(r=>setTimeout(()=>r(void 0),0))),a.mode!=="hidden"&&(a.mode="hidden"),[...e].sort((r,s)=>ml(s)-ml(r)).forEach(r=>{var s,o;let l=r.value,d=ml(r);if("endTime"in r&&r.endTime!=null)a?.addCue(new VTTCue(d,r.endTime,i==="chapters"?l:JSON.stringify(l??null)));else{let u=Array.prototype.findIndex.call(a?.cues,v=>v.startTime>=d),c=(s=a?.cues)==null?void 0:s[u],m=c?c.startTime:Number.isFinite(t.duration)?t.duration:Number.MAX_SAFE_INTEGER,p=(o=a?.cues)==null?void 0:o[u-1];p&&(p.endTime=d),a?.addCue(new VTTCue(d,m,i==="chapters"?l:JSON.stringify(l??null)))}}),t.textTracks.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a}var Zu="cuepoints",Ap=Object.freeze({label:Zu});async function kp(t,e,n=Ap){return Tp(t,e,n.label,"metadata")}var ld=t=>({time:t.startTime,value:JSON.parse(t.text)});function wp(t,e={label:Zu}){var n,i;let a=Sr(t,e.label,"metadata");if((n=a?.activeCues)==null||!n.length)return;if(a.activeCues.length===1)return ld(a.activeCues[0]);let{currentTime:r}=t,s=Array.prototype.find.call((i=a.activeCues)!=null?i:[],({startTime:o,endTime:l})=>o<=r&&l>r);return ld(s||a.activeCues[0])}var Xu="chapters",Ip=Object.freeze({label:Xu}),dd=t=>({startTime:t.startTime,endTime:t.endTime,value:t.text});async function Sp(t,e,n=Ip){return Tp(t,e,n.label,"chapters")}function Rp(t,e={label:Xu}){var n,i;let a=Sr(t,e.label,"chapters");if((n=a?.activeCues)==null||!n.length)return;if(a.activeCues.length===1)return dd(a.activeCues[0]);let{currentTime:r}=t,s=Array.prototype.find.call((i=a.activeCues)!=null?i:[],({startTime:o,endTime:l})=>o<=r&&l>r);return dd(s||a.activeCues[0])}var og="v",lg="t",dg="s",Cp="d",xo=(t,e,n,i,a=!1,r=!(s=>(s=globalThis.navigator)==null?void 0:s.onLine)())=>{var s,o;if(r){let T,A=M("Your device appears to be offline",a),E=C.MEDIA_ERR_NETWORK,_=new C(A,E,!1,T);return _.errorCategory=e,_.muxCode=N.NETWORK_OFFLINE,_.data=t,_}let l="status"in t?t.status:t.code,d=Date.now(),u=C.MEDIA_ERR_NETWORK;if(l===200)return;let c=Do(e),m=((T,A)=>{var E,_;let w=Do(T),I=`${w}Token`;return(E=A.tokens)!=null&&E[w]?(_=A.tokens)==null?void 0:_[w]:ju(I,A)?A[I]:void 0})(e,n),p=(T=>T===ai?og:T===Te?Cp:void 0)(e),[v]=Qu((s=n.playbackId)!=null?s:"");if(!l||!v)return;let b=gi(m);if(m&&!b){let T=M("The {tokenNamePrefix}-token provided is invalid or malformed.",a).format({tokenNamePrefix:c}),A=M("Compact JWT string: {token}",a).format({token:m}),E=new C(T,u,!0,A);return E.errorCategory=e,E.muxCode=N.NETWORK_TOKEN_MALFORMED,E.data=t,E}if(l>=500){let T=new C("",u,i==null||i);return T.errorCategory=e,T.muxCode=N.NETWORK_UNKNOWN_ERROR,T}if(l===403){if(!b){let T=M("Authorization error trying to access this {category} URL. If this is a signed URL, you might need to provide a {tokenNamePrefix}-token.",a).format({tokenNamePrefix:c,category:e}),A=M("Specified playback ID: {playbackId}",a).format({playbackId:v}),E=new C(T,u,i==null||i,A);return E.errorCategory=e,E.muxCode=N.NETWORK_TOKEN_MISSING,E.data=t,E}if((({exp:T},A=Date.now())=>!T||1e3*T<A)(b,d)){let T={timeStyle:"medium",dateStyle:"medium"},A=M("The video’s secured {tokenNamePrefix}-token has expired.",a).format({tokenNamePrefix:c}),E=M("Expired at: {expiredDate}. Current time: {currentDate}.",a).format({expiredDate:new Intl.DateTimeFormat("en",T).format((o=b.exp)!=null?o:0),currentDate:new Intl.DateTimeFormat("en",T).format(d)}),_=new C(A,u,!0,E);return _.errorCategory=e,_.muxCode=N.NETWORK_TOKEN_EXPIRED,_.data=t,_}if((({sub:T},A)=>T!==A)(b,v)){let T=M("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",a).format({tokenNamePrefix:c}),A=M("Specified playback ID: {playbackId} and the playback ID encoded in the {tokenNamePrefix}-token: {tokenPlaybackId}",a).format({tokenNamePrefix:c,playbackId:v,tokenPlaybackId:b.sub}),E=new C(T,u,!0,A);return E.errorCategory=e,E.muxCode=N.NETWORK_TOKEN_SUB_MISMATCH,E.data=t,E}if((({aud:T})=>!T)(b)){let T=M("The {tokenNamePrefix}-token is formatted with incorrect information.",a).format({tokenNamePrefix:c}),A=M("The {tokenNamePrefix}-token has no aud value. aud value should be {expectedAud}.",a).format({tokenNamePrefix:c,expectedAud:p}),E=new C(T,u,!0,A);return E.errorCategory=e,E.muxCode=N.NETWORK_TOKEN_AUD_MISSING,E.data=t,E}if((({aud:T},A)=>T!==A)(b,p)){let T=M("The {tokenNamePrefix}-token is formatted with incorrect information.",a).format({tokenNamePrefix:c}),A=M("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.",a).format({tokenNamePrefix:c,expectedAud:p,aud:b.aud}),E=new C(T,u,!0,A);return E.errorCategory=e,E.muxCode=N.NETWORK_TOKEN_AUD_MISMATCH,E.data=t,E}}if(l===412){let T=M("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",a),A=M("Specified playback ID: {playbackId}",a).format({playbackId:v}),E=new C(T,u,i==null||i,A);return E.errorCategory=e,E.muxCode=N.NETWORK_NOT_READY,E.streamType=n.streamType===j.LIVE?"live":n.streamType===j.ON_DEMAND?"on-demand":"unknown",E.data=t,E}if(l===404){let T=M("This URL or playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",a),A=M("Specified playback ID: {playbackId}",a).format({playbackId:v}),E=new C(T,u,i==null||i,A);return E.errorCategory=e,E.muxCode=N.NETWORK_NOT_FOUND,E.data=t,E}if(l===400){let T=M("The URL or playback-id was invalid. You may have used an invalid value as a playback-id."),A=M("Specified playback ID: {playbackId}",a).format({playbackId:v}),E=new C(T,u,i==null||i,A);return E.errorCategory=e,E.muxCode=N.NETWORK_INVALID_URL,E.data=t,E}let f=new C("",u,i==null||i);return f.errorCategory=e,f.muxCode=N.NETWORK_UNKNOWN_ERROR,f.data=t,f},Yc=H.DefaultConfig.capLevelController,ug={"720p":921600,"1080p":2073600,"1440p":4194304,"2160p":8294400},ud=class La extends Yc{constructor(e){super(e)}static setMaxAutoResolution(e,n){n?La.maxAutoResolution.set(e,n):La.maxAutoResolution.delete(e)}getMaxAutoResolution(){var e;let n=this.hls;return(e=La.maxAutoResolution.get(n))!=null?e:void 0}get levels(){var e;return(e=this.hls.levels)!=null?e:[]}getValidLevels(e){return this.levels.filter((n,i)=>this.isLevelAllowed(n)&&i<=e)}getMaxLevelCapped(e){let n=this.getValidLevels(e),i=this.getMaxAutoResolution();if(!i)return super.getMaxLevel(e);let a=function(l){let d=l.toLowerCase().trim();return ug[d]}(i);if(!a)return super.getMaxLevel(e);let r=n.filter(l=>l.width*l.height<=a),s=r.findIndex(l=>l.width*l.height===a);if(s!==-1){let l=r[s];return n.findIndex(d=>d===l)}if(r.length===0)return 0;let o=r[r.length-1];return n.findIndex(l=>l===o)}getMaxLevel(e){if(this.getMaxAutoResolution()!==void 0)return this.getMaxLevelCapped(e);let n=super.getMaxLevel(e),i=this.getValidLevels(e);if(!i[n])return n;let a=Math.min(i[n].width,i[n].height),r=La.minMaxResolution;return a>=r?n:Yc.getMaxLevelByMediaSize(i,r*(16/9),r)}};ud.minMaxResolution=720,ud.maxAutoResolution=new WeakMap;var cd=ud,Dp="fairplay",cg="playready",hg="widevine",mg=t=>{let e=t.split(`
|
|
17
|
+
`).filter(i=>i.startsWith("#EXT-X-SESSION-DATA"));if(!e.length)return{};let n={};for(let i of e){let a=vg(i),r=a["DATA-ID"];r&&(n[r]={...a})}return{sessionData:n}},pg=/([A-Z0-9-]+)="?(.*?)"?(?:,|$)/g;function vg(t){let e=[...t.matchAll(pg)];return Object.fromEntries(e.map(([,n,i])=>[n,i]))}var Gc,jc,Qc,zc,Zc,Xc,Jc,bg=t=>{var e,n,i;let a,r=t.split(`
|
|
18
|
+
`),s=(n=((e=r.find(d=>d.startsWith("#EXT-X-PLAYLIST-TYPE")))!=null?e:"").split(":")[1])==null?void 0:n.trim(),o=yp(s),l=_p(s);if(o===j.LIVE){let d=r.find(u=>u.startsWith("#EXT-X-PART-INF"));if(d)a=2*+d.split(":")[1].split("=")[1];else{let u=r.find(m=>m.startsWith("#EXT-X-TARGETDURATION")),c=(i=u?.split(":"))==null?void 0:i[1];a=3*+(c??6)}}return{streamType:o,targetLiveWindow:l,liveEdgeStartOffset:a}},fg=async(t,e)=>{if(e===Rn.MP4)return{streamType:j.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0,sessionData:void 0};if(e===Rn.M3U8){let n=await fetch(t);if(!n.ok)return Promise.reject(n);let i=await n.text(),a=await(r=>{let s=r.split(`
|
|
19
|
+
`).find((o,l,d)=>l&&d[l-1].startsWith("#EXT-X-STREAM-INF"));return fetch(s).then(o=>o.status!==200?Promise.reject(o):o.text())})(i);return{...mg(i),...bg(a)}}return console.error(`Media type ${e} is an unrecognized or unsupported type for src ${t}.`),{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0,sessionData:void 0}},hd=async(t,e)=>{var n,i;try{let a=await fetch(t);if(!a.ok)throw new Error(`Failed to fetch Mux metadata: ${a.status} ${a.statusText}`);let r=await a.json(),s={};if((n=r?.[0])==null||!n.metadata)return;for(let l of r[0].metadata)l.key&&l.value&&(s[l.key]=l.value);((i=ce.get(e))!=null?i:{}).metadata=s;let o=new CustomEvent("muxmetadata");e.dispatchEvent(o)}catch(a){console.error(a)}},gg=(t,e,n)=>{var i,a,r,s,o,l,d,u;let{streamType:c,targetLiveWindow:m,liveEdgeStartOffset:p,lowLatency:v}=(b=>{var f;let T,A=b.type,E=yp(A),_=_p(A),w=!((f=b.partList)==null||!f.length);return E===j.LIVE&&(T=w?2*b.partTarget:3*b.targetduration),{streamType:E,targetLiveWindow:_,liveEdgeStartOffset:T,lowLatency:w}})(t);if(c===j.LIVE){v?(n.config.backBufferLength=(i=n.userConfig.backBufferLength)!=null?i:4,n.config.maxFragLookUpTolerance=(a=n.userConfig.maxFragLookUpTolerance)!=null?a:.001,n.config.abrBandWidthUpFactor=(r=n.userConfig.abrBandWidthUpFactor)!=null?r:n.config.abrBandWidthFactor):n.config.backBufferLength=(s=n.userConfig.backBufferLength)!=null?s:8;let b=Object.freeze({get length(){return e.seekable.length},start:f=>e.seekable.start(f),end(f){var T;return f>this.length||f<0||Number.isFinite(e.duration)?e.seekable.end(f):(T=n.liveSyncPosition)!=null?T:e.seekable.end(f)}});((o=ce.get(e))!=null?o:{}).seekable=b}((l=ce.get(e))!=null?l:{}).liveEdgeStartOffset=p,((d=ce.get(e))!=null?d:{}).targetLiveWindow=m,e.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),((u=ce.get(e))!=null?u:{}).streamType=c,e.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},Lp=(jc=(Gc=globalThis?.navigator)==null?void 0:Gc.userAgent)!=null?jc:"",Eg=(Zc=(zc=(Qc=globalThis?.navigator)==null?void 0:Qc.userAgentData)==null?void 0:zc.platform)!=null?Zc:"",yg=Lp.toLowerCase().includes("android")||["x11","android"].some(t=>Eg.toLowerCase().includes(t)),ce=new WeakMap,rn="mux.com",Mp=(Jc=(Xc=H).isSupported)==null?void 0:Jc.call(Xc),_g=t=>yg||!(e=>/^((?!chrome|android).)*safari/i.test(Lp)&&!!e.canPlayType("application/vnd.apple.mpegurl"))(t),Ju=()=>{if(typeof window<"u")return Gu.utils.now()},Tg=Gu.utils.generateUUID,md=({playbackId:t,customDomain:e=rn,maxResolution:n,minResolution:i,renditionOrder:a,programStartTime:r,programEndTime:s,assetStartTime:o,assetEndTime:l,playbackToken:d,tokens:{playback:u=d}={},extraSourceParams:c={}}={})=>{if(!t)return;let[m,p=""]=Qu(t),v=new URL(`https://stream.${e}/${m}.m3u8${p}`);return u||v.searchParams.has("token")?(v.searchParams.forEach((b,f)=>{f!="token"&&v.searchParams.delete(f)}),u&&v.searchParams.set("token",u)):(n&&v.searchParams.set("max_resolution",n),i&&(v.searchParams.set("min_resolution",i),n&&+n.slice(0,-1)<+i.slice(0,-1)&&console.error("minResolution must be <= maxResolution","minResolution",i,"maxResolution",n)),a&&v.searchParams.set("rendition_order",a),r&&v.searchParams.set("program_start_time",`${r}`),s&&v.searchParams.set("program_end_time",`${s}`),o&&v.searchParams.set("asset_start_time",`${o}`),l&&v.searchParams.set("asset_end_time",`${l}`),Object.entries(c).forEach(([b,f])=>{f!=null&&v.searchParams.set(b,f)})),v.toString()},tl=t=>{if(!t)return;let[e]=t.split("?");return e||void 0},ec=t=>{if(!t||!t.startsWith("https://stream."))return;let[e]=new URL(t).pathname.slice(1).split(/\.m3u8|\//);return e||void 0},xp=t=>{var e;return(e=ce.get(t))==null?void 0:e.error},pd=t=>{var e,n;return(n=(e=ce.get(t))==null?void 0:e.streamType)!=null?n:j.UNKNOWN},vd=t=>{var e,n;return(n=(e=ce.get(t))==null?void 0:e.seekable)!=null?n:t.seekable},bd=.034,Np=(t,e,n=bd)=>t>e||((i,a,r=bd)=>Math.abs(i-a)<=r)(t,e,n),Op=(t,e)=>{var n,i,a;if(!e||!t.buffered.length)return;if(t.readyState>2)return!1;let r=e.currentLevel>=0?(i=(n=e.levels)==null?void 0:n[e.currentLevel])==null?void 0:i.details:(a=e.levels.find(c=>!!c.details))==null?void 0:a.details;if(!r||r.live)return;let{fragments:s}=r;if(s==null||!s.length)return;if(t.currentTime<t.duration-(r.targetduration+.5))return!1;let o=s[s.length-1];if(t.currentTime<=o.start)return!1;let l=o.start+o.duration/2,d=t.buffered.start(t.buffered.length-1),u=t.buffered.end(t.buffered.length-1);return l>d&&l<u},Pp=(t,e)=>t.ended||t.loop?t.ended:!(!e||!Op(t,e))||((n,i=bd)=>n.paused&&Np(n.currentTime,n.duration,i))(t),Ag=(t,e,n)=>{Up(e,n,t);let{metadata:i={}}=t,{view_session_id:a=Tg()}=i,r=(d=>{var u,c,m;return(u=d?.metadata)!=null&&u.video_id?d.metadata.video_id:Bp(d)&&(m=(c=tl(d.playbackId))!=null?c:ec(d.src))!=null?m:d.src})(t);i.view_session_id=a,i.video_id=r,t.metadata=i,t.drmTypeCb=d=>{var u;(u=e.mux)==null||u.emit("hb",{view_drm_type:d})},ce.set(e,{retryCount:0});let s=kg(t,e),o=(({preload:d,src:u},c,m)=>{let p=_=>{_!=null&&["","none","metadata","auto"].includes(_)?c.setAttribute("preload",_):c.removeAttribute("preload")};if(!m)return p(d),p;let v=!1,b=!1,f=m.config.maxBufferLength,T=m.config.maxBufferSize,A=_=>{p(_);let w=_??c.preload;b||w==="none"||(w==="metadata"?(m.config.maxBufferLength=1,m.config.maxBufferSize=1):(m.config.maxBufferLength=f,m.config.maxBufferSize=T),E())},E=()=>{!v&&u&&(v=!0,m.loadSource(u))};return be(c,"play",()=>{b=!0,m.config.maxBufferLength=f,m.config.maxBufferSize=T,E()},{once:!0}),A(d),A})(t,e,s);t!=null&&t.muxDataKeepSession&&e!=null&&e.mux&&!e.mux.deleted?s&&e.mux.addHLSJS({hlsjs:s,Hls:s?H:void 0}):Cg(t,e,s),Dg(t,e,s),async function(d,u=Ap){new Promise(c=>{be(d,"loadstart",async()=>{let m=await kp(d,[],u);be(d,"cuechange",()=>{let p=wp(d);if(p){let v=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:p});d.dispatchEvent(v)}},{},m),c(m)})})}(e),async function(d,u=Ip){new Promise(c=>{be(d,"loadstart",async()=>{let m=await Sp(d,[],u);be(d,"cuechange",()=>{let p=Rp(d);if(p){let v=new CustomEvent("chapterchange",{composed:!0,bubbles:!0,detail:p});d.dispatchEvent(v)}},{},m),c(m)})})}(e);let l=((d,u,c)=>{let{autoplay:m}=d,p=!1,v=!1,b=Fc(m)?m:!!m,f=()=>{p||be(u,"playing",()=>{p=!0},{once:!0})};if(f(),be(u,"loadstart",()=>{p=!1,f(),hl(u,b)},{once:!0}),be(u,"loadstart",()=>{c||(v=d.streamType&&d.streamType!==j.UNKNOWN?d.streamType===j.LIVE:!Number.isFinite(u.duration)),hl(u,b)},{once:!0}),c&&c.once(H.Events.LEVEL_LOADED,(T,A)=>{var E;v=d.streamType&&d.streamType!==j.UNKNOWN?d.streamType===j.LIVE:(E=A.details.live)!=null&&E}),!b){let T=()=>{!v||Number.isFinite(d.startTime)||(c!=null&&c.liveSyncPosition?u.currentTime=c.liveSyncPosition:Number.isFinite(u.seekable.end(0))&&(u.currentTime=u.seekable.end(0)))};c&&be(u,"play",()=>{u.preload==="metadata"?c.once(H.Events.LEVEL_UPDATED,T):T()},{once:!0})}return T=>{p||(b=Fc(T)?T:!!T,hl(u,b))}})(t,e,s);return{engine:s,setAutoplay:l,setPreload:o}},Up=(t,e,n)=>{let i=e?.engine;t!=null&&t.mux&&!t.mux.deleted&&(n!=null&&n.muxDataKeepSession?i&&t.mux.removeHLSJS():(t.mux.destroy(),delete t.mux)),i&&(i.detachMedia(),i.destroy()),t&&(t.hasAttribute("src")&&(t.removeAttribute("src"),t.load()),t.removeEventListener("error",$p),t.removeEventListener("error",fd),t.removeEventListener("durationchange",Vp),ce.delete(t),t.dispatchEvent(new Event("teardown")))};function Hp(t,e){var n;let i=Mo(t);if(i!==Rn.M3U8)return!0;let a=!i||(n=e.canPlayType(i))==null||n,{preferPlayback:r}=t,s=r===Ir,o=Mp&&(r===wr||_g(e));return a&&(s||!o)}var kg=(t,e)=>{let{debug:n,streamType:i,startTime:a=-1,metadata:r,preferCmcd:s,_hlsConfig:o={},maxAutoResolution:l}=t,d=Mo(t)===Rn.M3U8,u=Hp(t,e);if(d&&!u&&Mp){let c={backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelOnFPSDrop:!0},m=wg(i),p=Ig(t),v=[Da.QUERY,Da.HEADER].includes(s)?{useHeaders:s===Da.HEADER,sessionId:r?.view_session_id,contentId:r?.video_id}:void 0,b=Rg(t),f=new H({debug:n,startPosition:a,cmcd:v,xhrSetup:(T,A)=>{var E,_;if(s&&s!==Da.QUERY)return;let w=new URL(A);if(!w.searchParams.has("CMCD"))return;let I=((_=(E=w.searchParams.get("CMCD"))==null?void 0:E.split(","))!=null?_:[]).filter(D=>D.startsWith("sid")||D.startsWith("cid")).join(",");w.searchParams.set("CMCD",I),T.open("GET",w)},...c,...b,...m,...p,...o});return b.capLevelController===cd&&l!==void 0&&cd.setMaxAutoResolution(f,l),f.on(H.Events.MANIFEST_PARSED,async function(T,A){var E,_;let w=(E=A.sessionData)==null?void 0:E["com.apple.hls.chapters"];(w!=null&&w.URI||w!=null&&w.VALUE.toLocaleLowerCase().startsWith("http"))&&hd((_=w?.URI)!=null?_:w?.VALUE,e)}),f}},wg=t=>t===j.LIVE?{backBufferLength:8}:{},Ig=t=>{let{tokens:{drm:e}={},playbackId:n,drmTypeCb:i}=t,a=tl(n);return e&&a?{emeEnabled:!0,drmSystems:{"com.apple.fps":{licenseUrl:ss(t,"fairplay"),serverCertificateUrl:Wp(t,"fairplay")},"com.widevine.alpha":{licenseUrl:ss(t,"widevine")},"com.microsoft.playready":{licenseUrl:ss(t,"playready")}},requestMediaKeySystemAccessFunc:(r,s)=>(r==="com.widevine.alpha"&&(s=[...s.map(o=>{var l;let d=(l=o.videoCapabilities)==null?void 0:l.map(u=>({...u,robustness:"HW_SECURE_ALL"}));return{...o,videoCapabilities:d}}),...s]),navigator.requestMediaKeySystemAccess(r,s).then(o=>{let l=(d=>d.includes("fps")?Dp:d.includes("playready")?cg:d.includes("widevine")?hg:void 0)(r);return i?.(l),o}))}:{}},Sg=(t,e)=>{let n=async a=>{let r=await navigator.requestMediaKeySystemAccess("com.apple.fps",[{initDataTypes:[a],videoCapabilities:[{contentType:"application/vnd.apple.mpegurl",robustness:""}],distinctiveIdentifier:"not-allowed",persistentState:"not-allowed",sessionTypes:["temporary"]}]).then(o=>{var l;return(l=t.drmTypeCb)==null||l.call(t,Dp),o}).catch(()=>{let o=M("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),l=new C(o,C.MEDIA_ERR_ENCRYPTED,!0);l.errorCategory=Te,l.muxCode=N.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,Je(e,l)});if(!r)return;let s=await r.createMediaKeys();try{let o=await(async l=>{let d=await fetch(l);return d.status!==200?Promise.reject(d):await d.arrayBuffer()})(Wp(t,"fairplay")).catch(l=>{if(l instanceof Response){let d=xo(l,Te,t);return console.error("mediaError",d?.message,d?.context),d?Promise.reject(d):Promise.reject(new Error("Unexpected error in app cert request"))}return Promise.reject(l)});await s.setServerCertificate(o).catch(()=>{let l=M("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate."),d=new C(l,C.MEDIA_ERR_ENCRYPTED,!0);return d.errorCategory=Te,d.muxCode=N.ENCRYPTED_UPDATE_SERVER_CERT_FAILED,Promise.reject(d)})}catch(o){return void Je(e,o)}await e.setMediaKeys(s)},i=async(a,r)=>{let s=e.mediaKeys.createSession(),o=()=>{s.keyStatuses.forEach(d=>(u=>{let c;if(u==="internal-error"){let m=M("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");c=new C(m,C.MEDIA_ERR_ENCRYPTED,!0),c.errorCategory=Te,c.muxCode=N.ENCRYPTED_CDM_ERROR}else if(u==="output-restricted"||u==="output-downscaled"){let m=M("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");c=new C(m,C.MEDIA_ERR_ENCRYPTED,!1),c.errorCategory=Te,c.muxCode=N.ENCRYPTED_OUTPUT_RESTRICTED}c&&Je(e,c)})(d))},l=async d=>{let u=d.message;try{let c=await(async(m,p)=>{let v=await fetch(p,{method:"POST",headers:{"Content-type":"application/octet-stream"},body:m});if(v.status!==200)return Promise.reject(v);let b=await v.arrayBuffer();return new Uint8Array(b)})(u,ss(t,"fairplay"));try{await s.update(c)}catch{let m=M("Failed to update DRM license. This may be an issue with the player or your protected content."),p=new C(m,C.MEDIA_ERR_ENCRYPTED,!0);p.errorCategory=Te,p.muxCode=N.ENCRYPTED_UPDATE_LICENSE_FAILED,Je(e,p)}}catch(c){if(c instanceof Response){let m=xo(c,Te,t);return console.error("mediaError",m?.message,m?.context),m?void Je(e,m):void console.error("Unexpected error in license key request",c)}console.error(c)}};s.addEventListener("keystatuseschange",o),s.addEventListener("message",l),e.addEventListener("teardown",()=>{s.removeEventListener("keystatuseschange",o),s.removeEventListener("message",l),s.close()},{once:!0}),await s.generateRequest(a,r).catch(d=>{console.error("Failed to generate license request",d);let u=M("Failed to generate a DRM license request. This may be an issue with the player or your protected content."),c=new C(u,C.MEDIA_ERR_ENCRYPTED,!0);return c.errorCategory=Te,c.muxCode=N.ENCRYPTED_GENERATE_REQUEST_FAILED,Promise.reject(c)})};be(e,"encrypted",async a=>{try{let r=a.initDataType;if(r!=="skd")return void console.error(`Received unexpected initialization data type "${r}"`);e.mediaKeys||await n(r);let s=a.initData;if(s==null)return void console.error(`Could not start encrypted playback due to missing initData in ${a.type} event`);await i(r,s)}catch(r){return void Je(e,r)}})},ss=({playbackId:t,tokens:{drm:e}={},customDomain:n=rn},i)=>{let a=tl(t);return`https://license.${n.toLocaleLowerCase().endsWith(rn)?n:rn}/license/${i}/${a}?token=${e}`},Wp=({playbackId:t,tokens:{drm:e}={},customDomain:n=rn},i)=>{let a=tl(t);return`https://license.${n.toLocaleLowerCase().endsWith(rn)?n:rn}/appcert/${i}/${a}?token=${e}`},Bp=({playbackId:t,src:e,customDomain:n})=>{if(t)return!0;if(typeof e!="string")return!1;let i=window?.location.href,a=new URL(e,i).hostname.toLocaleLowerCase();return a.includes(rn)||!!n&&a.includes(n.toLocaleLowerCase())},Rg=(t,e)=>{let n={};return n.capLevelToPlayerSize=t.capRenditionToPlayerSize,n.capLevelToPlayerSize==null?(n.capLevelController=cd,n.capLevelToPlayerSize=!0):n.capLevelController=Nb,n},Cg=(t,e,n)=>{var i;let{envKey:a,disableTracking:r,muxDataSDK:s=Gu,muxDataSDKOptions:o={}}=t,l=Bp(t);if(!r&&(a||l)){let{playerInitTime:d,playerSoftwareName:u,playerSoftwareVersion:c,beaconCollectionDomain:m,debug:p,disableCookies:v}=t,b={...t.metadata,video_title:((i=t?.metadata)==null?void 0:i.video_title)||void 0},f=T=>typeof T.player_error_code!="string"&&(typeof t.errorTranslator=="function"?t.errorTranslator(T):T);s.monitor(e,{debug:p,beaconCollectionDomain:m,hlsjs:n,Hls:n?H:void 0,automaticErrorTracking:!1,errorTranslator:f,disableCookies:v,...o,data:{...a?{env_key:a}:{},player_software_name:u,player_software:u,player_software_version:c,player_init_time:d,...b}})}},Dg=(t,e,n)=>{var i,a;let r,s,o=Hp(t,e),{src:l,customDomain:d=rn}=t,u=()=>{e.ended||t.disablePseudoEnded||!Pp(e,n)||(Op(e,n)?e.currentTime=e.buffered.end(e.buffered.length-1):e.dispatchEvent(new Event("ended")))},c=()=>{let m,p,v=vd(e);v.length>0&&(m=v.start(0),p=v.end(0)),(s!==p||r!==m)&&e.dispatchEvent(new CustomEvent("seekablechange",{composed:!0})),r=m,s=p};if(be(e,"durationchange",c),e&&o){let m=Mo(t);if(typeof l=="string"){if(l.endsWith(".mp4")&&l.includes(d)){let b=ec(l),f=new URL(`https://stream.${d}/${b}/metadata.json`);hd(f.toString(),e)}let p=()=>{if(pd(e)!==j.LIVE||Number.isFinite(e.duration))return;let b=setInterval(c,1e3);e.addEventListener("teardown",()=>{clearInterval(b)},{once:!0}),be(e,"durationchange",()=>{Number.isFinite(e.duration)&&clearInterval(b)})},v=async()=>(async(b,f,T=Mo({src:b}))=>{var A,E,_,w;let{streamType:I,targetLiveWindow:D,liveEdgeStartOffset:V,sessionData:q}=await fg(b,T),Y=q?.["com.apple.hls.chapters"];(Y!=null&&Y.URI||Y!=null&&Y.VALUE.toLocaleLowerCase().startsWith("http"))&&hd((A=Y.URI)!=null?A:Y.VALUE,f),((E=ce.get(f))!=null?E:{}).liveEdgeStartOffset=V,((_=ce.get(f))!=null?_:{}).targetLiveWindow=D,f.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),((w=ce.get(f))!=null?w:{}).streamType=I,f.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))})(l,e,m).then(p).catch(b=>{if(b instanceof Response){let f=xo(b,ai,t);if(f)return void Je(e,f)}});if(e.preload==="none"){let b=()=>{v(),e.removeEventListener("loadedmetadata",f)},f=()=>{v(),e.removeEventListener("play",b)};be(e,"play",b,{once:!0}),be(e,"loadedmetadata",f,{once:!0})}else v();(i=t.tokens)!=null&&i.drm?Sg(t,e):be(e,"encrypted",()=>{let b=M("Attempting to play DRM-protected content without providing a DRM token."),f=new C(b,C.MEDIA_ERR_ENCRYPTED,!0);f.errorCategory=Te,f.muxCode=N.ENCRYPTED_MISSING_TOKEN,Je(e,f)},{once:!0}),e.setAttribute("src",l),t.startTime&&(((a=ce.get(e))!=null?a:{}).startTime=t.startTime,e.addEventListener("durationchange",Vp,{once:!0}))}else e.removeAttribute("src");e.addEventListener("error",$p),e.addEventListener("error",fd),e.addEventListener("emptied",()=>{e.querySelectorAll("track[data-removeondestroy]").forEach(p=>{p.remove()})},{once:!0}),be(e,"pause",u),be(e,"seeked",u),be(e,"play",()=>{e.ended||Np(e.currentTime,e.duration)&&(e.currentTime=e.seekable.length?e.seekable.start(0):0)})}else n&&l?(n.once(H.Events.LEVEL_LOADED,(m,p)=>{gg(p.details,e,n),c(),pd(e)===j.LIVE&&!Number.isFinite(e.duration)&&(n.on(H.Events.LEVEL_UPDATED,c),be(e,"durationchange",()=>{Number.isFinite(e.duration)&&n.off(H.Events.LEVELS_UPDATED,c)}))}),n.on(H.Events.ERROR,(m,p)=>{var v,b;let f=Lg(p,t);if(f.muxCode===N.NETWORK_NOT_READY){let T=(v=ce.get(e))!=null?v:{},A=(b=T.retryCount)!=null?b:0;if(A<6){let E=A===0?5e3:6e4,_=new C(`Retrying in ${E/1e3} seconds...`,f.code,f.fatal);return Object.assign(_,f),Je(e,_),void setTimeout(()=>{T.retryCount=A+1,p.details==="manifestLoadError"&&p.url&&n.loadSource(p.url)},E)}{T.retryCount=0;let E=new C('Try again later or <a href="#" onclick="window.location.reload(); return false;" style="color: #4a90e2;">click here to retry</a>',f.code,f.fatal);return Object.assign(E,f),void Je(e,E)}}Je(e,f)}),n.on(H.Events.MANIFEST_LOADED,()=>{let m=ce.get(e);m&&m.error&&(m.error=null,m.retryCount=0,e.dispatchEvent(new Event("emptied")),e.dispatchEvent(new Event("loadstart")))}),e.addEventListener("error",fd),be(e,"waiting",u),sg(t,n),function(m,p){p.on(H.Events.NON_NATIVE_TEXT_TRACKS_FOUND,(f,{tracks:T})=>{T.forEach(A=>{var E,_;let w=(E=A.subtitleTrack)!=null?E:A.closedCaptions,I=p.subtitleTracks.findIndex(({lang:V,name:q,type:Y})=>V==w?.lang&&q===A.label&&Y.toLowerCase()===A.kind),D=((_=A._id)!=null?_:A.default)?"default":`${A.kind}${I}`;zu(m,A.kind,A.label,w?.lang,D,A.default)})});let v=()=>{if(!p.subtitleTracks.length)return;let f=Array.from(m.textTracks).find(E=>E.id&&E.mode==="showing"&&["subtitles","captions"].includes(E.kind));if(!f)return;let T=p.subtitleTracks[p.subtitleTrack],A=T?T.default?"default":`${p.subtitleTracks[p.subtitleTrack].type.toLowerCase()}${p.subtitleTrack}`:void 0;if(p.subtitleTrack<0||f?.id!==A){let E=p.subtitleTracks.findIndex(({lang:_,name:w,type:I,default:D})=>f.id==="default"&&D||_==f.language&&w===f.label&&I.toLowerCase()===f.kind);p.subtitleTrack=E}f?.id===A&&f.cues&&Array.from(f.cues).forEach(E=>{f.addCue(E)})};m.textTracks.addEventListener("change",v),p.on(H.Events.CUES_PARSED,(f,{track:T,cues:A})=>{let E=m.textTracks.getTrackById(T);if(!E)return;let _=E.mode==="disabled";_&&(E.mode="hidden"),A.forEach(w=>{var I;(I=E.cues)!=null&&I.getCueById(w.id)||E.addCue(w)}),_&&(E.mode="disabled")}),p.once(H.Events.DESTROYING,()=>{m.textTracks.removeEventListener("change",v),m.querySelectorAll("track[data-removeondestroy]").forEach(f=>{f.remove()})});let b=()=>{Array.from(m.textTracks).forEach(f=>{var T,A;if(!["subtitles","caption"].includes(f.kind)&&(f.label==="thumbnails"||f.kind==="chapters")){if((T=f.cues)==null||!T.length){let E="track";f.kind&&(E+=`[kind="${f.kind}"]`),f.label&&(E+=`[label="${f.label}"]`);let _=m.querySelector(E),w=(A=_?.getAttribute("src"))!=null?A:"";_?.removeAttribute("src"),setTimeout(()=>{_?.setAttribute("src",w)},0)}f.mode!=="hidden"&&(f.mode="hidden")}})};p.once(H.Events.MANIFEST_LOADED,b),p.once(H.Events.MEDIA_ATTACHED,b)}(e,n),n.attachMedia(e)):console.error("It looks like the video you're trying to play will not work on this system! If possible, try upgrading to the newest versions of your browser or software.")};function Vp(t){var e;let n=t.target,i=(e=ce.get(n))==null?void 0:e.startTime;if(i&&function(a,r,s){r&&s>r&&(s=r);for(let o=0;o<a.length;o++)if(a.start(o)<=s&&a.end(o)>=s)return!0;return!1}(n.seekable,n.duration,i)){let a=n.preload==="auto";a&&(n.preload="none"),n.currentTime=i,a&&(n.preload="auto")}}async function $p(t){if(!t.isTrusted)return;t.stopImmediatePropagation();let e=t.target;if(e==null||!e.error)return;let{message:n,code:i}=e.error,a=new C(n,i);if(e.src&&i===C.MEDIA_ERR_SRC_NOT_SUPPORTED&&e.readyState===HTMLMediaElement.HAVE_NOTHING)setTimeout(()=>{var r;let s=(r=xp(e))!=null?r:e.error;s?.code===C.MEDIA_ERR_SRC_NOT_SUPPORTED&&Je(e,a)},500);else{if(e.src&&(i!==C.MEDIA_ERR_DECODE||i!==void 0))try{let{status:r}=await fetch(e.src);a.data={response:{code:r}}}catch{}Je(e,a)}}function Je(t,e){var n;e.fatal&&(((n=ce.get(t))!=null?n:{}).error=e,t.dispatchEvent(new CustomEvent("error",{detail:e})))}function fd(t){var e,n;if(!(t instanceof CustomEvent&&t.detail instanceof C))return;let i=t.target,a=t.detail;!a||!a.fatal||(((e=ce.get(i))!=null?e:{}).error=a,(n=i.mux)==null||n.emit("error",{player_error_code:a.code,player_error_message:a.message,player_error_context:a.context}))}var wt,Ma,os,xa,ls,ds,us,cs,hs,Na,ms,Ei,Oa,Lg=(t,e)=>{var n,i,a;t.fatal?console.error("getErrorFromHlsErrorData()",t):e.debug&&console.warn("getErrorFromHlsErrorData() (non-fatal)",t);let r,s={[H.ErrorTypes.NETWORK_ERROR]:C.MEDIA_ERR_NETWORK,[H.ErrorTypes.MEDIA_ERROR]:C.MEDIA_ERR_DECODE,[H.ErrorTypes.KEY_SYSTEM_ERROR]:C.MEDIA_ERR_ENCRYPTED},o=(l=t,[H.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,H.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED].includes(l.details)?C.MEDIA_ERR_NETWORK:s[l.type]);var l;if(o===C.MEDIA_ERR_NETWORK&&t.response){let d=(n=(u=>u.type===H.ErrorTypes.KEY_SYSTEM_ERROR?Te:u.type===H.ErrorTypes.NETWORK_ERROR?ai:void 0)(t))!=null?n:ai;r=(i=xo(t.response,d,e,t.fatal))!=null?i:new C("",o,t.fatal)}else if(o===C.MEDIA_ERR_ENCRYPTED)if(t.details===H.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE){let d=M("Attempting to play DRM-protected content without providing a DRM token.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_MISSING_TOKEN}else if(t.details===H.ErrorDetails.KEY_SYSTEM_NO_ACCESS){let d=M("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM}else if(t.details===H.ErrorDetails.KEY_SYSTEM_NO_SESSION){let d=M("Failed to generate a DRM license request. This may be an issue with the player or your protected content.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,!0),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_GENERATE_REQUEST_FAILED}else if(t.details===H.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED){let d=M("Failed to update DRM license. This may be an issue with the player or your protected content.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_UPDATE_LICENSE_FAILED}else if(t.details===H.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED){let d=M("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_UPDATE_SERVER_CERT_FAILED}else if(t.details===H.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR){let d=M("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_CDM_ERROR}else if(t.details===H.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED){let d=M("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");r=new C(d,C.MEDIA_ERR_ENCRYPTED,!1),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_OUTPUT_RESTRICTED}else r=new C(t.error.message,C.MEDIA_ERR_ENCRYPTED,t.fatal),r.errorCategory=Te,r.muxCode=N.ENCRYPTED_ERROR;else r=new C("",o,t.fatal);return r.context||(r.context=`${t.url?`url: ${t.url}
|
|
20
|
+
`:""}${t.response&&(t.response.code||t.response.text)?`response: ${t.response.code}, ${t.response.text}
|
|
21
|
+
`:""}${t.reason?`failure reason: ${t.reason}
|
|
22
|
+
`:""}${t.level?`level: ${t.level}
|
|
23
|
+
`:""}${t.parent?`parent stream controller: ${t.parent}
|
|
24
|
+
`:""}${t.buffer?`buffer length: ${t.buffer}
|
|
25
|
+
`:""}${t.error?`error: ${t.error}
|
|
26
|
+
`:""}${t.event?`event: ${t.event}
|
|
27
|
+
`:""}${t.err?`error message: ${(a=t.err)==null?void 0:a.message}
|
|
28
|
+
`:""}`),r.data=t,r},qp=t=>{throw TypeError(t)},tc=(t,e,n)=>e.has(t)||qp("Cannot "+n),Re=(t,e,n)=>(tc(t,e,"read from private field"),n?n.call(t):e.get(t)),tt=(t,e,n)=>e.has(t)?qp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Qe=(t,e,n,i)=>(tc(t,e,"write to private field"),e.set(t,n),n),Or=(t,e,n)=>(tc(t,e,"access private method"),n),Mg=(()=>{try{return"0.30.2"}catch{}return"UNKNOWN"})(),y={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended",DRM_TOKEN:"drm-token",PLAYBACK_TOKEN:"playback-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",MAX_AUTO_RESOLUTION:"max-auto-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",ASSET_START_TIME:"asset-start-time",ASSET_END_TIME:"asset-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PLAYER_INIT_TIME:"player-init-time",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type",LOGO:"logo",CAP_RENDITION_TO_PLAYER_SIZE:"cap-rendition-to-player-size"},xg=Object.values(y),eh=Mg,th="mux-video",Ng=class extends xr{constructor(){super(),tt(this,Ei),tt(this,wt),tt(this,Ma),tt(this,os),tt(this,xa,{}),tt(this,ls,{}),tt(this,ds),tt(this,us),tt(this,cs),tt(this,hs),tt(this,Na,""),tt(this,ms),Qe(this,os,Ju()),this.nativeEl.addEventListener("muxmetadata",t=>{var e;let n=(a=>{var r;return(r=ce.get(a))==null?void 0:r.metadata})(this.nativeEl),i=(e=this.metadata)!=null?e:{};this.metadata={...n,...i},n?.["com.mux.video.branding"]==="mux-free-plan"&&(Qe(this,Na,"default"),this.updateLogo())})}static get NAME(){return th}static get VERSION(){return eh}static get observedAttributes(){var t;return[...xg,...(t=xr.observedAttributes)!=null?t:[]]}static getLogoHTML(t){return t&&t!=="false"?t==="default"?`
|
|
29
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" part="logo" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 1600 500"><g fill="#fff"><path d="M994.287 93.486c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m0-93.486c-34.509 0-62.484 27.976-62.484 62.486v187.511c0 68.943-56.09 125.033-125.032 125.033s-125.03-56.09-125.03-125.033V62.486C681.741 27.976 653.765 0 619.256 0s-62.484 27.976-62.484 62.486v187.511C556.772 387.85 668.921 500 806.771 500c137.851 0 250.001-112.15 250.001-250.003V62.486c0-34.51-27.976-62.486-62.485-62.486M1537.51 468.511c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m-275.883-218.509-143.33 143.329c-24.402 24.402-24.402 63.966 0 88.368 24.402 24.402 63.967 24.402 88.369 0l143.33-143.329 143.328 143.329c24.402 24.4 63.967 24.402 88.369 0 24.403-24.402 24.403-63.966.001-88.368l-143.33-143.329.001-.004 143.329-143.329c24.402-24.402 24.402-63.965 0-88.367s-63.967-24.402-88.369 0L1349.996 161.63 1206.667 18.302c-24.402-24.401-63.967-24.402-88.369 0s-24.402 63.965 0 88.367l143.329 143.329v.004ZM437.511 468.521c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31M461.426 4.759C438.078-4.913 411.2.432 393.33 18.303L249.999 161.632 106.669 18.303C88.798.432 61.922-4.913 38.573 4.759 15.224 14.43-.001 37.214-.001 62.488v375.026c0 34.51 27.977 62.486 62.487 62.486 34.51 0 62.486-27.976 62.486-62.486V213.341l80.843 80.844c24.404 24.402 63.965 24.402 88.369 0l80.843-80.844v224.173c0 34.51 27.976 62.486 62.486 62.486s62.486-27.976 62.486-62.486V62.488c0-25.274-15.224-48.058-38.573-57.729" style="fill-rule:nonzero"/></g></svg>`:`<img part="logo" src="${t}" />`:""}static getTemplateHTML(t={}){var e;return`
|
|
30
|
+
${xr.getTemplateHTML(t)}
|
|
31
|
+
<style>
|
|
32
|
+
:host {
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
35
|
+
slot[name="logo"] {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: end;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 1rem;
|
|
40
|
+
right: 1rem;
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transition: opacity 0.25s ease-in-out;
|
|
43
|
+
z-index: 1;
|
|
44
|
+
}
|
|
45
|
+
slot[name="logo"]:has([part="logo"]) {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
|
48
|
+
slot[name="logo"] [part="logo"] {
|
|
49
|
+
width: 5rem;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
user-select: none;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
54
|
+
<slot name="logo">
|
|
55
|
+
${this.getLogoHTML((e=t[y.LOGO])!=null?e:"")}
|
|
56
|
+
</slot>
|
|
57
|
+
`}get preferCmcd(){var t;return(t=this.getAttribute(y.PREFER_CMCD))!=null?t:void 0}set preferCmcd(t){t!==this.preferCmcd&&(t?Lo.includes(t)?this.setAttribute(y.PREFER_CMCD,t):console.warn(`Invalid value for preferCmcd. Must be one of ${Lo.join()}`):this.removeAttribute(y.PREFER_CMCD))}get playerInitTime(){return this.hasAttribute(y.PLAYER_INIT_TIME)?+this.getAttribute(y.PLAYER_INIT_TIME):Re(this,os)}set playerInitTime(t){t!=this.playerInitTime&&(t==null?this.removeAttribute(y.PLAYER_INIT_TIME):this.setAttribute(y.PLAYER_INIT_TIME,""+ +t))}get playerSoftwareName(){var t;return(t=Re(this,cs))!=null?t:th}set playerSoftwareName(t){Qe(this,cs,t)}get playerSoftwareVersion(){var t;return(t=Re(this,us))!=null?t:eh}set playerSoftwareVersion(t){Qe(this,us,t)}get _hls(){var t;return(t=Re(this,wt))==null?void 0:t.engine}get mux(){var t;return(t=this.nativeEl)==null?void 0:t.mux}get error(){var t;return(t=xp(this.nativeEl))!=null?t:null}get errorTranslator(){return Re(this,hs)}set errorTranslator(t){Qe(this,hs,t)}get src(){return this.getAttribute("src")}set src(t){t!==this.src&&(t==null?this.removeAttribute("src"):this.setAttribute("src",t))}get type(){var t;return(t=this.getAttribute(y.TYPE))!=null?t:void 0}set type(t){t!==this.type&&(t?this.setAttribute(y.TYPE,t):this.removeAttribute(y.TYPE))}get preload(){let t=this.getAttribute("preload");return t===""?"auto":["none","metadata","auto"].includes(t)?t:super.preload}set preload(t){t!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(t)?this.setAttribute("preload",t):this.removeAttribute("preload"))}get debug(){return this.getAttribute(y.DEBUG)!=null}set debug(t){t!==this.debug&&(t?this.setAttribute(y.DEBUG,""):this.removeAttribute(y.DEBUG))}get disableTracking(){return this.hasAttribute(y.DISABLE_TRACKING)}set disableTracking(t){t!==this.disableTracking&&this.toggleAttribute(y.DISABLE_TRACKING,!!t)}get disableCookies(){return this.hasAttribute(y.DISABLE_COOKIES)}set disableCookies(t){t!==this.disableCookies&&(t?this.setAttribute(y.DISABLE_COOKIES,""):this.removeAttribute(y.DISABLE_COOKIES))}get disablePseudoEnded(){return this.hasAttribute(y.DISABLE_PSEUDO_ENDED)}set disablePseudoEnded(t){t!==this.disablePseudoEnded&&(t?this.setAttribute(y.DISABLE_PSEUDO_ENDED,""):this.removeAttribute(y.DISABLE_PSEUDO_ENDED))}get startTime(){let t=this.getAttribute(y.START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set startTime(t){t!==this.startTime&&(t==null?this.removeAttribute(y.START_TIME):this.setAttribute(y.START_TIME,`${t}`))}get playbackId(){var t;return this.hasAttribute(y.PLAYBACK_ID)?this.getAttribute(y.PLAYBACK_ID):(t=ec(this.src))!=null?t:void 0}set playbackId(t){t!==this.playbackId&&(t?this.setAttribute(y.PLAYBACK_ID,t):this.removeAttribute(y.PLAYBACK_ID))}get maxResolution(){var t;return(t=this.getAttribute(y.MAX_RESOLUTION))!=null?t:void 0}set maxResolution(t){t!==this.maxResolution&&(t?this.setAttribute(y.MAX_RESOLUTION,t):this.removeAttribute(y.MAX_RESOLUTION))}get minResolution(){var t;return(t=this.getAttribute(y.MIN_RESOLUTION))!=null?t:void 0}set minResolution(t){t!==this.minResolution&&(t?this.setAttribute(y.MIN_RESOLUTION,t):this.removeAttribute(y.MIN_RESOLUTION))}get maxAutoResolution(){var t;return(t=this.getAttribute(y.MAX_AUTO_RESOLUTION))!=null?t:void 0}set maxAutoResolution(t){t==null?this.removeAttribute(y.MAX_AUTO_RESOLUTION):this.setAttribute(y.MAX_AUTO_RESOLUTION,t)}get renditionOrder(){var t;return(t=this.getAttribute(y.RENDITION_ORDER))!=null?t:void 0}set renditionOrder(t){t!==this.renditionOrder&&(t?this.setAttribute(y.RENDITION_ORDER,t):this.removeAttribute(y.RENDITION_ORDER))}get programStartTime(){let t=this.getAttribute(y.PROGRAM_START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set programStartTime(t){t==null?this.removeAttribute(y.PROGRAM_START_TIME):this.setAttribute(y.PROGRAM_START_TIME,`${t}`)}get programEndTime(){let t=this.getAttribute(y.PROGRAM_END_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set programEndTime(t){t==null?this.removeAttribute(y.PROGRAM_END_TIME):this.setAttribute(y.PROGRAM_END_TIME,`${t}`)}get assetStartTime(){let t=this.getAttribute(y.ASSET_START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set assetStartTime(t){t==null?this.removeAttribute(y.ASSET_START_TIME):this.setAttribute(y.ASSET_START_TIME,`${t}`)}get assetEndTime(){let t=this.getAttribute(y.ASSET_END_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set assetEndTime(t){t==null?this.removeAttribute(y.ASSET_END_TIME):this.setAttribute(y.ASSET_END_TIME,`${t}`)}get customDomain(){var t;return(t=this.getAttribute(y.CUSTOM_DOMAIN))!=null?t:void 0}set customDomain(t){t!==this.customDomain&&(t?this.setAttribute(y.CUSTOM_DOMAIN,t):this.removeAttribute(y.CUSTOM_DOMAIN))}get capRenditionToPlayerSize(){var t;return((t=this._hlsConfig)==null?void 0:t.capLevelToPlayerSize)!=null?this._hlsConfig.capLevelToPlayerSize:Re(this,ms)}set capRenditionToPlayerSize(t){Qe(this,ms,t)}get drmToken(){var t;return(t=this.getAttribute(y.DRM_TOKEN))!=null?t:void 0}set drmToken(t){t!==this.drmToken&&(t?this.setAttribute(y.DRM_TOKEN,t):this.removeAttribute(y.DRM_TOKEN))}get playbackToken(){var t,e,n,i;if(this.hasAttribute(y.PLAYBACK_TOKEN))return(t=this.getAttribute(y.PLAYBACK_TOKEN))!=null?t:void 0;if(this.hasAttribute(y.PLAYBACK_ID)){let[,a]=Qu((e=this.playbackId)!=null?e:"");return(n=new URLSearchParams(a).get("token"))!=null?n:void 0}return this.src&&(i=new URLSearchParams(this.src).get("token"))!=null?i:void 0}set playbackToken(t){t!==this.playbackToken&&(t?this.setAttribute(y.PLAYBACK_TOKEN,t):this.removeAttribute(y.PLAYBACK_TOKEN))}get tokens(){let t=this.getAttribute(y.PLAYBACK_TOKEN),e=this.getAttribute(y.DRM_TOKEN);return{...Re(this,ls),...t!=null?{playback:t}:{},...e!=null?{drm:e}:{}}}set tokens(t){Qe(this,ls,t??{})}get ended(){return Pp(this.nativeEl,this._hls)}get envKey(){var t;return(t=this.getAttribute(y.ENV_KEY))!=null?t:void 0}set envKey(t){t!==this.envKey&&(t?this.setAttribute(y.ENV_KEY,t):this.removeAttribute(y.ENV_KEY))}get beaconCollectionDomain(){var t;return(t=this.getAttribute(y.BEACON_COLLECTION_DOMAIN))!=null?t:void 0}set beaconCollectionDomain(t){t!==this.beaconCollectionDomain&&(t?this.setAttribute(y.BEACON_COLLECTION_DOMAIN,t):this.removeAttribute(y.BEACON_COLLECTION_DOMAIN))}get streamType(){var t;return(t=this.getAttribute(y.STREAM_TYPE))!=null?t:pd(this.nativeEl)}set streamType(t){t!==this.streamType&&(t?this.setAttribute(y.STREAM_TYPE,t):this.removeAttribute(y.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(y.TARGET_LIVE_WINDOW)?+this.getAttribute(y.TARGET_LIVE_WINDOW):(t=this.nativeEl,(n=(e=ce.get(t))==null?void 0:e.targetLiveWindow)!=null?n:Number.NaN);var t,e,n}set targetLiveWindow(t){t!=this.targetLiveWindow&&(t==null?this.removeAttribute(y.TARGET_LIVE_WINDOW):this.setAttribute(y.TARGET_LIVE_WINDOW,""+ +t))}get liveEdgeStart(){var t,e;if(this.hasAttribute(y.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:n}=this,i=(t=this.nativeEl.seekable.end(0))!=null?t:0,a=(e=this.nativeEl.seekable.start(0))!=null?e:0;return Math.max(a,i-n)}return(n=>{var i;let a=(i=ce.get(n))==null?void 0:i.liveEdgeStartOffset;if(typeof a!="number")return Number.NaN;let r=vd(n);return r.length?r.end(r.length-1)-a:Number.NaN})(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(y.LIVE_EDGE_OFFSET))return+this.getAttribute(y.LIVE_EDGE_OFFSET)}set liveEdgeOffset(t){t!=this.liveEdgeOffset&&(t==null?this.removeAttribute(y.LIVE_EDGE_OFFSET):this.setAttribute(y.LIVE_EDGE_OFFSET,""+ +t))}get seekable(){return vd(this.nativeEl)}async addCuePoints(t){return kp(this.nativeEl,t)}get activeCuePoint(){return wp(this.nativeEl)}get cuePoints(){return function(t,e={label:Zu}){let n=Sr(t,e.label,"metadata");return n!=null&&n.cues?Array.from(n.cues,i=>ld(i)):[]}(this.nativeEl)}async addChapters(t){return Sp(this.nativeEl,t)}get activeChapter(){return Rp(this.nativeEl)}get chapters(){return function(t,e={label:Xu}){var n;let i=Sr(t,e.label,"chapters");return(n=i?.cues)!=null&&n.length?Array.from(i.cues,a=>dd(a)):[]}(this.nativeEl)}getStartDate(){return function(t,e){if(e){let n=e.playingDate;if(n!=null)return new Date(n.getTime()-1e3*t.currentTime)}return typeof t.getStartDate=="function"?t.getStartDate():new Date(NaN)}(this.nativeEl,this._hls)}get currentPdt(){return function(t,e){if(e&&e.playingDate)return e.playingDate;if(typeof t.getStartDate=="function"){let n=t.getStartDate();return new Date(n.getTime()+1e3*t.currentTime)}return new Date(NaN)}(this.nativeEl,this._hls)}get preferPlayback(){let t=this.getAttribute(y.PREFER_PLAYBACK);if(t===wr||t===Ir)return t}set preferPlayback(t){t!==this.preferPlayback&&(t===wr||t===Ir?this.setAttribute(y.PREFER_PLAYBACK,t):this.removeAttribute(y.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(t=>t.startsWith("metadata-")&&![y.METADATA_URL].includes(t)).reduce((t,e)=>{let n=this.getAttribute(e);return n!=null&&(t[e.replace(/^metadata-/,"").replace(/-/g,"_")]=n),t},{}),...Re(this,xa)}}set metadata(t){Qe(this,xa,t??{}),this.mux&&this.mux.emit("hb",Re(this,xa))}get _hlsConfig(){return Re(this,ds)}set _hlsConfig(t){Qe(this,ds,t)}get logo(){var t;return(t=this.getAttribute(y.LOGO))!=null?t:Re(this,Na)}set logo(t){t?this.setAttribute(y.LOGO,t):this.removeAttribute(y.LOGO)}load(){Qe(this,wt,Ag(this,this.nativeEl,Re(this,wt)))}unload(){Up(this.nativeEl,Re(this,wt),this),Qe(this,wt,void 0)}attributeChangedCallback(t,e,n){var i,a;switch(xr.observedAttributes.includes(t)&&!["src","autoplay","preload"].includes(t)&&super.attributeChangedCallback(t,e,n),t){case y.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=n??void 0;break;case y.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=n??void 0;break;case"src":{let r=!!e,s=!!n;!r&&s?Or(this,Ei,Oa).call(this):r&&!s?this.unload():r&&s&&(this.unload(),Or(this,Ei,Oa).call(this));break}case"autoplay":if(n===e)break;(i=Re(this,wt))==null||i.setAutoplay(this.autoplay);break;case"preload":if(n===e)break;(a=Re(this,wt))==null||a.setPreload(n);break;case y.PLAYBACK_ID:this.src=md(this);break;case y.DEBUG:{let r=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=r);break}case y.METADATA_URL:n&&fetch(n).then(r=>r.json()).then(r=>this.metadata=r).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${n}!`));break;case y.STREAM_TYPE:(n==null||n!==e)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case y.TARGET_LIVE_WINDOW:(n==null||n!==e)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break;case y.LOGO:(n==null||n!==e)&&this.updateLogo();break;case y.DISABLE_TRACKING:if(n==null||n!==e){let r=this.currentTime,s=this.paused;this.unload(),Or(this,Ei,Oa).call(this).then(()=>{this.currentTime=r,s||this.play()})}break;case y.DISABLE_COOKIES:(n==null||n!==e)&&this.disableCookies&&document.cookie.split(";").forEach(r=>{r.trim().startsWith("muxData")&&(document.cookie=r.replace(/^ +/,"").replace(/=.*/,"=;expires="+new Date().toUTCString()+";path=/"))});break;case y.CAP_RENDITION_TO_PLAYER_SIZE:(n==null||n!==e)&&(this.capRenditionToPlayerSize=n!=null||void 0)}}updateLogo(){if(!this.shadowRoot)return;let t=this.shadowRoot.querySelector('slot[name="logo"]');if(!t)return;let e=this.constructor.getLogoHTML(Re(this,Na)||this.logo);t.innerHTML=e}connectedCallback(){var t;(t=super.connectedCallback)==null||t.call(this),this.nativeEl&&this.src&&!Re(this,wt)&&Or(this,Ei,Oa).call(this)}disconnectedCallback(){this.unload()}handleEvent(t){t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{composed:!0,detail:t.detail}))}};wt=new WeakMap,Ma=new WeakMap,os=new WeakMap,xa=new WeakMap,ls=new WeakMap,ds=new WeakMap,us=new WeakMap,cs=new WeakMap,hs=new WeakMap,Na=new WeakMap,ms=new WeakMap,Ei=new WeakSet,Oa=async function(){Re(this,Ma)||(await Qe(this,Ma,Promise.resolve()),Qe(this,Ma,null),this.load())};const ni=new WeakMap;class pl extends Error{}class Og extends Error{}const Pg=["application/x-mpegURL","application/vnd.apple.mpegurl","audio/mpegurl"];function kn(){return globalThis.cast?.framework?.CastContext.getInstance()}function nc(){return kn()?.getCurrentSession()}function vl(){return nc()?.getSessionObj().media[0]}function nh(t){return kn().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0,...t})}const ps=new(globalThis.WeakRef?class extends Set{add(t){super.add(new WeakRef(t))}forEach(t){super.forEach(e=>{const n=e.deref();n&&t(n)})}}:Set),ln=new WeakSet;let _e;var Pr;Pr=()=>{globalThis.chrome?.cast?.isAvailable?_e||(_e=cast.framework,kn().addEventListener(_e.CastContextEventType.CAST_STATE_CHANGED,t=>{ps.forEach(e=>ni.get(e).onCastStateChanged?.(t))}),kn().addEventListener(_e.CastContextEventType.SESSION_STATE_CHANGED,t=>{ps.forEach(e=>ni.get(e).onSessionStateChanged?.(t))}),ps.forEach(t=>ni.get(t).init?.())):console.debug("chrome.cast.isAvailable",globalThis.chrome?.cast?.isAvailable)},globalThis.chrome?.cast?.isAvailable?globalThis.cast?.framework?Pr():customElements.whenDefined("google-cast-button").then(Pr):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(Pr)};let ih=0;class Ug extends EventTarget{#t;#s;#n;#i;#e="disconnected";#a=!1;#o=new Set;#c=new WeakMap;constructor(e){super(),this.#t=e,ps.add(this),ni.set(this,{init:()=>this.#d(),onCastStateChanged:()=>this.#l(),onSessionStateChanged:()=>this.#p(),getCastPlayer:()=>this.#r}),this.#d()}get#r(){if(ln.has(this.#t))return this.#n}get state(){return this.#e}async watchAvailability(e){if(this.#t.disableRemotePlayback)throw new pl("disableRemotePlayback attribute is present.");return this.#c.set(e,++ih),this.#o.add(e),queueMicrotask(()=>e(this.#m())),ih}async cancelWatchAvailability(e){if(this.#t.disableRemotePlayback)throw new pl("disableRemotePlayback attribute is present.");e?this.#o.delete(e):this.#o.clear()}async prompt(){if(this.#t.disableRemotePlayback)throw new pl("disableRemotePlayback attribute is present.");if(!globalThis.chrome?.cast?.isAvailable)throw new Og("The RemotePlayback API is disabled on this platform.");const e=ln.has(this.#t);ln.add(this.#t),nh(this.#t.castOptions),Object.entries(this.#i).forEach(([n,i])=>{this.#n.controller.addEventListener(n,i)});try{await kn().requestSession()}catch(n){if(e||ln.delete(this.#t),n==="cancel")return;throw new Error(n)}ni.get(this.#t)?.loadOnPrompt?.()}#h(){ln.has(this.#t)&&(Object.entries(this.#i).forEach(([e,n])=>{this.#n.controller.removeEventListener(e,n)}),ln.delete(this.#t),this.#t.muted=this.#n.isMuted,this.#t.currentTime=this.#n.savedPlayerState.currentTime,this.#n.savedPlayerState.isPaused===!1&&this.#t.play())}#m(){const e=kn()?.getCastState();return e&&e!=="NO_DEVICES_AVAILABLE"}#l(){const e=kn().getCastState();if(ln.has(this.#t)&&e==="CONNECTING"&&(this.#e="connecting",this.dispatchEvent(new Event("connecting"))),!this.#a&&e?.includes("CONNECT")){this.#a=!0;for(let n of this.#o)n(!0)}else if(this.#a&&(!e||e==="NO_DEVICES_AVAILABLE")){this.#a=!1;for(let n of this.#o)n(!1)}}async#p(){const{SESSION_RESUMED:e}=_e.SessionState;if(kn().getSessionState()===e&&this.#t.castSrc===vl()?.media.contentId){ln.add(this.#t),Object.entries(this.#i).forEach(([i,a])=>{this.#n.controller.addEventListener(i,a)});try{await(n=new chrome.cast.media.GetStatusRequest,new Promise((i,a)=>{vl().getStatus(n,i,a)}))}catch(i){console.error(i)}this.#i[_e.RemotePlayerEventType.IS_PAUSED_CHANGED](),this.#i[_e.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}var n}#d(){_e&&!this.#s&&(this.#s=!0,nh(this.#t.castOptions),this.#t.textTracks.addEventListener("change",()=>this.#u()),this.#l(),this.#n=new _e.RemotePlayer,new _e.RemotePlayerController(this.#n),this.#i={[_e.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:e})=>{e===!0?(this.#e="connected",this.dispatchEvent(new Event("connect"))):(this.#h(),this.#e="disconnected",this.dispatchEvent(new Event("disconnect")))},[_e.RemotePlayerEventType.DURATION_CHANGED]:()=>{this.#t.dispatchEvent(new Event("durationchange"))},[_e.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{this.#t.dispatchEvent(new Event("volumechange"))},[_e.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{this.#t.dispatchEvent(new Event("volumechange"))},[_e.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{this.#r?.isMediaLoaded&&this.#t.dispatchEvent(new Event("timeupdate"))},[_e.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{this.#t.dispatchEvent(new Event("resize"))},[_e.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{this.#t.dispatchEvent(new Event(this.paused?"pause":"play"))},[_e.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{this.#r?.playerState!==chrome.cast.media.PlayerState.PAUSED&&this.#t.dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[this.#r?.playerState]))},[_e.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{this.#r?.isMediaLoaded&&(await Promise.resolve(),this.#v())}})}#v(){this.#u()}async#u(){if(!this.#r)return;const e=(this.#n.mediaInfo?.tracks??[]).filter(({type:u})=>u===chrome.cast.media.TrackType.TEXT),n=[...this.#t.textTracks].filter(({kind:u})=>u==="subtitles"||u==="captions"),i=e.map(({language:u,name:c,trackId:m})=>{const{mode:p}=n.find(v=>v.language===u&&v.label===c)??{};return!!p&&{mode:p,trackId:m}}).filter(Boolean),a=i.filter(({mode:u})=>u!=="showing").map(({trackId:u})=>u),r=i.find(({mode:u})=>u==="showing"),s=nc()?.getSessionObj().media[0]?.activeTrackIds??[];let o=s;if(s.length&&(o=o.filter(u=>!a.includes(u))),r?.trackId&&(o=[...o,r.trackId]),o=[...new Set(o)],d=o,(l=s).length!==d.length||!l.every(u=>d.includes(u)))try{const u=new chrome.cast.media.EditTracksInfoRequest(o);await function(c){return new Promise((m,p)=>{vl().editTracksInfo(c,m,p)})}(u)}catch(u){console.error(u)}var l,d}}const Hg=t=>class extends t{static observedAttributes=[...t.observedAttributes??[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"];#t={paused:!1};#s={receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0};#n;#i;get remote(){return this.#i?this.#i:globalThis.chrome?(this.disableRemotePlayback||function(){const e="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if(globalThis.chrome?.cast||document.querySelector(`script[src="${e}"]`))return;const n=document.createElement("script");n.src=e,document.head.append(n)}(),ni.set(this,{loadOnPrompt:()=>this.#a()}),this.#i=new Ug(this)):super.remote}get#e(){return ni.get(this.remote)?.getCastPlayer?.()}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),e==="cast-receiver"&&i)this.#s.receiverApplicationId=i;else if(this.#e)switch(e){case"cast-stream-type":case"cast-src":this.load()}}async#a(){this.#t.paused=super.paused,super.pause(),this.muted=super.muted;try{await this.load()}catch(e){console.error(e)}}async load(){if(!this.#e)return super.load();const e=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType);e.customData=this.castCustomData;const n=[...this.querySelectorAll("track")].filter(({kind:s,src:o})=>o&&(s==="subtitles"||s==="captions")),i=[];let a=0;if(n.length&&(e.tracks=n.map(s=>{const o=++a;i.length===0&&s.track.mode==="showing"&&i.push(o);const l=new chrome.cast.media.Track(o,chrome.cast.media.TrackType.TEXT);return l.trackContentId=s.src,l.trackContentType="text/vtt",l.subtype=s.kind==="captions"?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,l.name=s.label,l.language=s.srclang,l})),this.castStreamType==="live"?e.streamType=chrome.cast.media.StreamType.LIVE:e.streamType=chrome.cast.media.StreamType.BUFFERED,e.metadata=new chrome.cast.media.GenericMediaMetadata,e.metadata.title=this.title,e.metadata.images=[{url:this.poster}],async function(s){try{const o=(await fetch(s,{method:"HEAD"})).headers.get("Content-Type");return Pg.some(l=>o===l)}catch(o){return console.error("Error while trying to get the Content-Type of the manifest",o),!1}}(this.castSrc)){const s=await async function(o){try{const l=await(await fetch(o)).text();let d=l;const u=function(c){const m=c.split(`
|
|
58
|
+
`),p=[];for(let v=0;v<m.length;v++)if(m[v].trim().startsWith("#EXT-X-STREAM-INF")){const b=m[v+1]?m[v+1].trim():"";b&&!b.startsWith("#")&&p.push(b)}return p}(l);if(u.length>0){const c=new URL(u[0],o).toString();d=await(await fetch(c)).text()}return function(c){if(!c)return;const m=c.match(/\.([a-zA-Z0-9]+)(?:\?.*)?$/);return m?m[1]:null}(d.split(`
|
|
59
|
+
`).find(c=>!c.trim().startsWith("#")&&c.trim()!==""))}catch(l){return void console.error("Error while trying to parse the manifest playlist",l)}}(this.castSrc);s?.includes("m4s")||s?.includes("mp4")?(e.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.FMP4,e.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.FMP4):s?.includes("ts")&&(e.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.TS,e.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.TS)}const r=new chrome.cast.media.LoadRequest(e);r.currentTime=super.currentTime??0,r.autoplay=!this.#t.paused,r.activeTrackIds=i,await nc()?.loadMedia(r),this.dispatchEvent(new Event("volumechange"))}play(){if(!this.#e)return super.play();this.#e.isPaused&&this.#e.controller?.playOrPause()}pause(){this.#e?this.#e.isPaused||this.#e.controller?.playOrPause():super.pause()}get castOptions(){return this.#s}get castReceiver(){return this.getAttribute("cast-receiver")??void 0}set castReceiver(e){this.castReceiver!=e&&this.setAttribute("cast-receiver",`${e}`)}get castSrc(){return this.getAttribute("cast-src")??this.querySelector("source")?.src??this.currentSrc}set castSrc(e){this.castSrc!=e&&this.setAttribute("cast-src",`${e}`)}get castContentType(){return this.getAttribute("cast-content-type")??void 0}set castContentType(e){this.setAttribute("cast-content-type",`${e}`)}get castStreamType(){return this.getAttribute("cast-stream-type")??this.streamType??void 0}set castStreamType(e){this.setAttribute("cast-stream-type",`${e}`)}get castCustomData(){return this.#n}set castCustomData(e){const n=typeof e;["object","undefined"].includes(n)?this.#n=e:console.error(`castCustomData must be nullish or an object but value was of type ${n}`)}get readyState(){if(this.#e)switch(this.#e.playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return this.#e?this.#e.isPaused:super.paused}get muted(){return this.#e?this.#e?.isMuted:super.muted}set muted(e){this.#e?(e&&!this.#e.isMuted||!e&&this.#e.isMuted)&&this.#e.controller?.muteOrUnmute():super.muted=e}get volume(){return this.#e?this.#e?.volumeLevel??1:super.volume}set volume(e){if(this.#e)return this.#e.volumeLevel=+e,void this.#e.controller?.setVolumeLevel();super.volume=e}get duration(){return this.#e&&this.#e?.isMediaLoaded?this.#e?.duration??NaN:super.duration}get currentTime(){return this.#e&&this.#e?.isMediaLoaded?this.#e?.currentTime??0:super.currentTime}set currentTime(e){if(this.#e)return this.#e.currentTime=e,void this.#e.controller?.seek();super.currentTime=e}};var Kp=t=>{throw TypeError(t)},ah=(t,e,n)=>e.has(t)||Kp("Cannot "+n),Fp=class{addEventListener(){}removeEventListener(){}dispatchEvent(t){return!0}};if(typeof DocumentFragment>"u"){class t extends Fp{}globalThis.DocumentFragment=t}var vs,Wg=class extends Fp{},Bg={customElements:{get(t){},define(t,e,n){},getName:t=>null,upgrade(t){},whenDefined:t=>Promise.resolve(Wg)}},bl=typeof window>"u"||globalThis.customElements===void 0?Bg:globalThis,rh=class extends Hg(Ob(Ng)){constructor(){var t,e,n;super(...arguments),t=this,(e=vs).has(t)?Kp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n)}get autoplay(){let t=this.getAttribute("autoplay");return t!==null&&(t===""||t)}set autoplay(t){t!==this.autoplay&&(t?this.setAttribute("autoplay",typeof t=="string"?t:""):this.removeAttribute("autoplay"))}get muxCastCustomData(){return{mux:{playbackId:this.playbackId,minResolution:this.minResolution,maxResolution:this.maxResolution,renditionOrder:this.renditionOrder,customDomain:this.customDomain,tokens:{drm:this.drmToken},envKey:this.envKey,metadata:this.metadata,disableCookies:this.disableCookies,disableTracking:this.disableTracking,beaconCollectionDomain:this.beaconCollectionDomain,startTime:this.startTime,preferCmcd:this.preferCmcd}}}get castCustomData(){var t;return(t=((e,n,i)=>(ah(e,n,"read from private field"),i?i.call(e):n.get(e)))(this,vs))!=null?t:this.muxCastCustomData}set castCustomData(t){((e,n,i)=>{ah(e,n,"write to private field"),n.set(e,i)})(this,vs,t)}};vs=new WeakMap,bl.customElements.get("mux-video")||(bl.customElements.define("mux-video",rh),bl.MuxVideoElement=rh);const R={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_LOOP_REQUEST:"medialooprequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},F={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},Yp={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_BUFFERED:"mediaBuffered",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_CHAPTERS_CUES:"mediaChaptersCues",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_ENDED:"mediaEnded",MEDIA_ERROR:"mediaError",MEDIA_ERROR_CODE:"mediaErrorCode",MEDIA_ERROR_MESSAGE:"mediaErrorMessage",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_HAS_PLAYED:"mediaHasPlayed",MEDIA_HEIGHT:"mediaHeight",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_IS_PIP:"mediaIsPip",MEDIA_LOADING:"mediaLoading",MEDIA_MUTED:"mediaMuted",MEDIA_LOOP:"mediaLoop",MEDIA_PAUSED:"mediaPaused",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_LANG:"mediaLang",MEDIA_WIDTH:"mediaWidth"},Gp=Object.entries(Yp),h=Gp.reduce((t,[e,n])=>(t[e]=n.toLowerCase(),t),{}),sn=Gp.reduce((t,[e,n])=>(t[e]=n.toLowerCase(),t),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(sn).reduce((t,[e,n])=>{const i=h[e];return i&&(t[n]=i),t},{userinactivechange:"userinactive"});const Vg=Object.entries(h).reduce((t,[e,n])=>{const i=sn[e];return i&&(t[n]=i),t},{userinactive:"userinactivechange"}),qt={SUBTITLES:"subtitles",CAPTIONS:"captions",CHAPTERS:"chapters",METADATA:"metadata"},gd="disabled",ic="showing",$g="mouse",qg="pen",Kg="touch",ga="unavailable",dn="unsupported",en={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},Fg="fullscreen";function Yg(t){if(t){const{id:e,width:n,height:i}=t;return[e,n,i].filter(a=>a!=null).join(":")}}function Gg(t){if(t){const[e,n,i]=t.split(":");return{id:e,width:+n,height:+i}}}function jg(t){if(t){const{id:e,kind:n,language:i,label:a}=t;return[e,n,i,a].filter(r=>r!=null).join(":")}}function Qg(t){if(t){const[e,n,i,a]=t.split(":");return{id:e,kind:n,language:i,label:a}}}function zg(t){return t.replace(/[-_]([a-z])/g,(e,n)=>n.toUpperCase())}function ac(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}function jp(t){return typeof t=="string"&&!isNaN(t)&&!isNaN(parseFloat(t))}const Qp=t=>new Promise(e=>setTimeout(e,t)),sh=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],ar=t=>{if(!ac(t))return"";const e=Math.abs(t),n=e!==t,i=new Date(0,0,0,0,0,e,0);return`${[i.getHours(),i.getMinutes(),i.getSeconds()].map((a,r)=>a&&((s,o)=>`${s} ${s===1?sh[o].singular:sh[o].plural}`)(a,r)).filter(a=>a).join(", ")}${n?" remaining":""}`};function Cn(t,e){let n=!1;t<0&&(n=!0,t=0-t),t=t<0?0:t;let i=Math.floor(t%60),a=Math.floor(t/60%60),r=Math.floor(t/3600);const s=Math.floor(e/60%60),o=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=a=i="0"),r=r>0||o>0?r+":":"",a=((r||s>=10)&&a<10?"0"+a:a)+":",i=i<10?"0"+i:i,(n?"-":"")+r+a+i}var oh;const fl={en:{"Start airplay":"Start airplay","Stop airplay":"Stop airplay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture in picture mode","Exit picture in picture mode":"Exit picture in picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture in picture mode","exit picture in picture mode":"exit picture in picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","Source Not Supported":"Source Not Supported","Encryption Error":"Encryption Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it."}};let Ed=((oh=globalThis.navigator)==null?void 0:oh.language)||"en";const L=(t,e={})=>(n=>{var i,a,r;const[s]=Ed.split("-");return((i=fl[Ed])==null?void 0:i[n])||((a=fl[s])==null?void 0:a[n])||((r=fl.en)==null?void 0:r[n])||n})(t).replace(/\{(\w+)\}/g,(n,i)=>i in e?String(e[i]):`{${i}}`);let zp=class{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}};class Zp extends zp{}let lh=class extends Zp{constructor(){super(...arguments),this.role=null}};const Xp={createElement:function(){return new Rr.HTMLElement},createElementNS:function(){return new Rr.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent:t=>!1},Rr={ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},document:Xp,Node:Zp,Element:lh,HTMLElement:class extends lh{constructor(){super(...arguments),this.innerHTML=""}get content(){return new Rr.DocumentFragment}},DocumentFragment:class extends zp{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem:t=>null,setItem(t,e){},removeItem(t){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia:t=>({matches:!1,media:t}),DOMParser:class{parseFromString(t,e){return{body:{textContent:t}}}}},Jp="global"in globalThis&&globalThis?.global===globalThis||typeof window>"u"||window.customElements===void 0,ev=Object.keys(Rr).every(t=>t in globalThis),g=Jp&&!ev?Rr:globalThis,ge=Jp&&!ev?Xp:globalThis.document,dh=new WeakMap,rc=t=>{let e=dh.get(t);return e||dh.set(t,e=new Set),e},tv=new g.ResizeObserver(t=>{for(const e of t)for(const n of rc(e.target))n(e)});function da(t,e){rc(t).add(e),tv.observe(t)}function ua(t,e){const n=rc(t);n.delete(e),n.size||tv.unobserve(t)}function et(t){const e={};for(const n of t)e[n.name]=n.value;return e}function $e(t){var e;return(e=yd(t))!=null?e:ha(t,"media-controller")}function yd(t){var e;const{MEDIA_CONTROLLER:n}=F,i=t.getAttribute(n);if(i)return(e=nl(t))==null?void 0:e.getElementById(i)}const nv=(t,e,n=".value")=>{const i=t.querySelector(n);i&&(i.textContent=e)},iv=(t,e)=>((n,i)=>{const a=`slot[name="${i}"]`,r=n.shadowRoot.querySelector(a);return r?r.children:[]})(t,e)[0],on=(t,e)=>!(!t||!e)&&(!!t?.contains(e)||on(t,e.getRootNode().host)),ha=(t,e)=>t?t.closest(e)||ha(t.getRootNode().host,e):null;function sc(t=document){var e;const n=t?.activeElement;return n?(e=sc(n.shadowRoot))!=null?e:n:null}function nl(t){var e;const n=(e=t?.getRootNode)==null?void 0:e.call(t);return n instanceof ShadowRoot||n instanceof Document?n:null}function av(t,{depth:e=3,checkOpacity:n=!0,checkVisibilityCSS:i=!0}={}){if(t.checkVisibility)return t.checkVisibility({checkOpacity:n,checkVisibilityCSS:i});let a=t;for(;a&&e>0;){const r=getComputedStyle(a);if(n&&r.opacity==="0"||i&&r.visibility==="hidden"||r.display==="none")return!1;a=a.parentElement,e--}return!0}function Ae(t,e){return function(i,a){var r,s;let o;for(o of(r=i.querySelectorAll("style:not([media])"))!=null?r:[]){let l;try{l=(s=o.sheet)==null?void 0:s.cssRules}catch{continue}for(const d of l??[])if(a(d.selectorText))return d}}(t,i=>i===e)||oc(t,e)}function oc(t,e){var n,i;const a=(n=t.querySelectorAll("style:not([media])"))!=null?n:[],r=a?.[a.length-1];return r?.sheet?(r?.sheet.insertRule(`${e}{}`,r.sheet.cssRules.length),(i=r.sheet.cssRules)==null?void 0:i[r.sheet.cssRules.length-1]):(console.warn("Media Chrome: No style sheet found on style tag of",t),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}})}function ne(t,e,n=Number.NaN){const i=t.getAttribute(e);return i!=null?+i:n}function he(t,e,n){const i=+n;n==null||Number.isNaN(i)?t.hasAttribute(e)&&t.removeAttribute(e):ne(t,e,void 0)!==i&&t.setAttribute(e,`${i}`)}function W(t,e){return t.hasAttribute(e)}function B(t,e,n){n!=null?W(t,e)!=n&&t.toggleAttribute(e,n):t.hasAttribute(e)&&t.removeAttribute(e)}function ie(t,e,n=null){var i;return(i=t.getAttribute(e))!=null?i:n}function ae(t,e,n){if(n==null)return void(t.hasAttribute(e)&&t.removeAttribute(e));const i=`${n}`;ie(t,e,void 0)!==i&&t.setAttribute(e,i)}var Be,rv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},un=(t,e,n)=>(rv(t,e,"read from private field"),n?n.call(t):e.get(t)),Ur=(t,e,n,i)=>(rv(t,e,"write to private field"),e.set(t,n),n);class bs extends g.HTMLElement{constructor(){if(super(),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,Be,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[F.MEDIA_CONTROLLER,h.MEDIA_PAUSED]}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===F.MEDIA_CONTROLLER&&(n&&((r=(a=un(this,Be))==null?void 0:a.unassociateElement)==null||r.call(a,this),Ur(this,Be,null)),i&&this.isConnected&&(Ur(this,Be,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=un(this,Be))==null?void 0:o.associateElement)==null||l.call(o,this)))}connectedCallback(){var e,n,i,a;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),Ur(this,Be,function(r){var s;const o=r.getAttribute(F.MEDIA_CONTROLLER);return o?(s=r.getRootNode())==null?void 0:s.getElementById(o):ha(r,"media-controller")}(this)),this.getAttribute(F.MEDIA_CONTROLLER)&&((n=(e=un(this,Be))==null?void 0:e.associateElement)==null||n.call(e,this)),(i=un(this,Be))==null||i.addEventListener("pointerdown",this),(a=un(this,Be))==null||a.addEventListener("click",this)}disconnectedCallback(){var e,n,i,a;this.getAttribute(F.MEDIA_CONTROLLER)&&((n=(e=un(this,Be))==null?void 0:e.unassociateElement)==null||n.call(e,this)),(i=un(this,Be))==null||i.removeEventListener("pointerdown",this),(a=un(this,Be))==null||a.removeEventListener("click",this),Ur(this,Be,null)}handleEvent(e){var n;const i=(n=e.composedPath())==null?void 0:n[0];if(["video","media-controller"].includes(i?.localName)){if(e.type==="pointerdown")this._pointerType=e.pointerType;else if(e.type==="click"){const{clientX:a,clientY:r}=e,{left:s,top:o,width:l,height:d}=this.getBoundingClientRect(),u=a-s,c=r-o;if(u<0||c<0||u>l||c>d||l===0&&d===0)return;const m=this._pointerType||"mouse";if(this._pointerType=void 0,m===Kg)return void this.handleTap(e);if(m===$g||m===qg)return void this.handleMouseClick(e)}}}get mediaPaused(){return W(this,h.MEDIA_PAUSED)}set mediaPaused(e){B(this,h.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){const n=this.mediaPaused?R.MEDIA_PLAY_REQUEST:R.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new g.CustomEvent(n,{composed:!0,bubbles:!0}))}}Be=new WeakMap,bs.shadowRootOptions={mode:"open"},bs.getTemplateHTML=function(t){return`
|
|
60
|
+
<style>
|
|
61
|
+
:host {
|
|
62
|
+
display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
66
|
+
`},g.customElements.get("media-gesture-receiver")||g.customElements.define("media-gesture-receiver",bs);var No,yi,Pa,Gi,fs,_d,sv,Ua,gs,Td,ov,Ad,lv,rr,Es,ys,gl,ji,Ha,uh=bs,lc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ze=(t,e,n)=>(lc(t,e,"read from private field"),n?n.call(t):e.get(t)),Ge=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},On=(t,e,n,i)=>(lc(t,e,"write to private field"),e.set(t,n),n),rt=(t,e,n)=>(lc(t,e,"access private method"),n);const x={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},Zg=Object.values(h);function ch(t,e){var n;if(!t.isConnected)return;const i=function(s){const o=s.split(/\s+/);return Object.fromEntries(o.map(l=>l.split(":")))}((n=t.getAttribute(x.BREAKPOINTS))!=null?n:"sm:384 md:576 lg:768 xl:960"),a=function(s,o){return Object.keys(s).filter(l=>o>=parseInt(s[l]))}(i,e);let r=!1;if(Object.keys(i).forEach(s=>{a.includes(s)?t.hasAttribute(`breakpoint${s}`)||(t.setAttribute(`breakpoint${s}`,""),r=!0):t.hasAttribute(`breakpoint${s}`)&&(t.removeAttribute(`breakpoint${s}`),r=!0)}),r){const s=new CustomEvent(sn.BREAKPOINTS_CHANGE,{detail:a});t.dispatchEvent(s)}t.breakpointsComputed||(t.breakpointsComputed=!0,t.dispatchEvent(new CustomEvent(sn.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}class _s extends g.HTMLElement{constructor(){if(super(),Ge(this,_d),Ge(this,Td),Ge(this,Ad),Ge(this,rr),Ge(this,ys),Ge(this,ji),Ge(this,No,0),Ge(this,yi,null),Ge(this,Pa,null),Ge(this,Gi,void 0),this.breakpointsComputed=!1,Ge(this,fs,new MutationObserver(rt(this,_d,sv).bind(this))),Ge(this,Ua,!1),Ge(this,gs,n=>{Ze(this,Ua)||(setTimeout(()=>{(function(i){ch(i.target,i.contentRect.width)})(n),On(this,Ua,!1)},0),On(this,Ua,!0))}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const n=et(this.attributes),i=this.constructor.getTemplateHTML(n);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(i):this.shadowRoot.innerHTML=i}const e=this.querySelector(":scope > slot[slot=media]");e&&e.addEventListener("slotchange",()=>{e.assignedElements({flatten:!0}).length?this.handleMediaUpdated(this.media):Ze(this,yi)&&this.mediaUnsetCallback(Ze(this,yi))})}static get observedAttributes(){return[x.AUTOHIDE,x.GESTURES_DISABLED].concat(Zg).filter(e=>![h.MEDIA_RENDITION_LIST,h.MEDIA_AUDIO_TRACK_LIST,h.MEDIA_CHAPTERS_CUES,h.MEDIA_WIDTH,h.MEDIA_HEIGHT,h.MEDIA_ERROR,h.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,n,i){e.toLowerCase()==x.AUTOHIDE&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return e?.nodeName=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(On(this,yi,e),e.localName.includes("-")&&await g.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;Ze(this,fs).observe(this,{childList:!0,subtree:!0}),da(this,Ze(this,gs));const n=this.getAttribute(x.AUDIO)!=null,i=L(n?"audio player":"video player");this.setAttribute("role","region"),this.setAttribute("aria-label",i),this.handleMediaUpdated(this.media),this.setAttribute(x.USER_INACTIVE,""),ch(this,this.getBoundingClientRect().width),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),(e=g.window)==null||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;Ze(this,fs).disconnect(),ua(this,Ze(this,gs)),this.media&&this.mediaUnsetCallback(this.media),(e=g.window)==null||e.removeEventListener("mouseup",this)}mediaSetCallback(e){}mediaUnsetCallback(e){On(this,yi,null)}handleEvent(e){switch(e.type){case"pointerdown":On(this,No,e.timeStamp);break;case"pointermove":rt(this,Td,ov).call(this,e);break;case"pointerup":rt(this,Ad,lv).call(this,e);break;case"mouseleave":rt(this,rr,Es).call(this);break;case"mouseup":this.removeAttribute(x.KEYBOARD_CONTROL);break;case"keyup":rt(this,ji,Ha).call(this),this.setAttribute(x.KEYBOARD_CONTROL,"")}}set autohide(e){const n=Number(e);On(this,Gi,isNaN(n)?0:n)}get autohide(){return(Ze(this,Gi)===void 0?2:Ze(this,Gi)).toString()}get breakpoints(){return ie(this,x.BREAKPOINTS)}set breakpoints(e){ae(this,x.BREAKPOINTS,e)}get audio(){return W(this,x.AUDIO)}set audio(e){B(this,x.AUDIO,e)}get gesturesDisabled(){return W(this,x.GESTURES_DISABLED)}set gesturesDisabled(e){B(this,x.GESTURES_DISABLED,e)}get keyboardControl(){return W(this,x.KEYBOARD_CONTROL)}set keyboardControl(e){B(this,x.KEYBOARD_CONTROL,e)}get noAutohide(){return W(this,x.NO_AUTOHIDE)}set noAutohide(e){B(this,x.NO_AUTOHIDE,e)}get autohideOverControls(){return W(this,x.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){B(this,x.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return W(this,x.USER_INACTIVE)}set userInteractive(e){B(this,x.USER_INACTIVE,e)}}No=new WeakMap,yi=new WeakMap,Pa=new WeakMap,Gi=new WeakMap,fs=new WeakMap,_d=new WeakSet,sv=function(t){const e=this.media;for(const n of t){if(n.type!=="childList")continue;const i=n.removedNodes;for(const a of i){if(a.slot!="media"||n.target!=this)continue;let r=n.previousSibling&&n.previousSibling.previousElementSibling;if(r&&e){let s=r.slot!=="media";for(;(r=r.previousSibling)!==null;)r.slot=="media"&&(s=!1);s&&this.mediaUnsetCallback(a)}else this.mediaUnsetCallback(a)}if(e)for(const a of n.addedNodes)a===e&&this.handleMediaUpdated(e)}},Ua=new WeakMap,gs=new WeakMap,Td=new WeakSet,ov=function(t){if(t.pointerType!=="mouse"&&t.timeStamp-Ze(this,No)<250)return;rt(this,ys,gl).call(this),clearTimeout(Ze(this,Pa));const e=this.hasAttribute(x.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(t.target)||e)&&rt(this,ji,Ha).call(this)},Ad=new WeakSet,lv=function(t){if(t.pointerType==="touch"){const e=!this.hasAttribute(x.USER_INACTIVE);[this,this.media].includes(t.target)&&e?rt(this,rr,Es).call(this):rt(this,ji,Ha).call(this)}else t.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(e?.localName))&&rt(this,ji,Ha).call(this)},rr=new WeakSet,Es=function(){if(Ze(this,Gi)<0||this.hasAttribute(x.USER_INACTIVE))return;this.setAttribute(x.USER_INACTIVE,"");const t=new g.CustomEvent(sn.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(t)},ys=new WeakSet,gl=function(){if(!this.hasAttribute(x.USER_INACTIVE))return;this.removeAttribute(x.USER_INACTIVE);const t=new g.CustomEvent(sn.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(t)},ji=new WeakSet,Ha=function(){rt(this,ys,gl).call(this),clearTimeout(Ze(this,Pa));const t=parseInt(this.autohide);t<0||On(this,Pa,setTimeout(()=>{rt(this,rr,Es).call(this)},1e3*t))},_s.shadowRootOptions={mode:"open"},_s.getTemplateHTML=function(t){return`
|
|
67
|
+
<style>
|
|
68
|
+
|
|
69
|
+
:host([${h.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
|
|
70
|
+
outline: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
position: relative;
|
|
76
|
+
display: inline-block;
|
|
77
|
+
line-height: 0;
|
|
78
|
+
background-color: var(--media-background-color, #000);
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host(:not([${x.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
right: 0;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-flow: column nowrap;
|
|
90
|
+
align-items: start;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
background: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
slot[name=media] {
|
|
96
|
+
display: var(--media-slot-display, contents);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:host([${x.AUDIO}]) slot[name=media] {
|
|
101
|
+
display: var(--media-slot-display, none);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:host([${x.AUDIO}]) [part~=layer][part~=gesture-layer] {
|
|
106
|
+
height: 0;
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:host(:not([${x.AUDIO}])[${x.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
|
|
112
|
+
:host(:not([${x.AUDIO}])[${x.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {
|
|
118
|
+
pointer-events: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host(:not([${x.AUDIO}])) *[part~=layer][part~=centered-layer] {
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host(:not([${x.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
|
|
127
|
+
:host(:not([${x.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
|
|
128
|
+
align-self: stretch;
|
|
129
|
+
flex-grow: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
slot[name=middle-chrome] {
|
|
133
|
+
display: inline;
|
|
134
|
+
flex-grow: 1;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
background: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
::slotted([slot=media]),
|
|
141
|
+
::slotted([slot=poster]) {
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:host(:not([${x.AUDIO}])) .spacer {
|
|
148
|
+
flex-grow: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:host(:-webkit-full-screen) {
|
|
153
|
+
|
|
154
|
+
width: 100% !important;
|
|
155
|
+
height: 100% !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
::slotted(:not([slot=media]):not([slot=poster]):not([${x.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
transition: var(--media-control-transition-in, opacity 0.25s);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:host([${x.USER_INACTIVE}]:not([${h.MEDIA_PAUSED}]):not([${h.MEDIA_IS_AIRPLAYING}]):not([${h.MEDIA_IS_CASTING}]):not([${x.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${x.NO_AUTOHIDE}]):not([role=dialog])) {
|
|
166
|
+
opacity: 0;
|
|
167
|
+
transition: var(--media-control-transition-out, opacity 1s);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host([${x.USER_INACTIVE}]:not([${x.NO_AUTOHIDE}]):not([${h.MEDIA_PAUSED}]):not([${h.MEDIA_IS_CASTING}]):not([${x.AUDIO}])) ::slotted([slot=media]) {
|
|
171
|
+
cursor: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([${x.USER_INACTIVE}][${x.AUTOHIDE_OVER_CONTROLS}]:not([${x.NO_AUTOHIDE}]):not([${h.MEDIA_PAUSED}]):not([${h.MEDIA_IS_CASTING}]):not([${x.AUDIO}])) * {
|
|
175
|
+
--media-cursor: none;
|
|
176
|
+
cursor: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
::slotted(media-control-bar) {
|
|
181
|
+
align-self: stretch;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:host(:not([${x.AUDIO}])[${h.MEDIA_HAS_PLAYED}]) slot[name=poster] {
|
|
186
|
+
display: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
::slotted([role=dialog]) {
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: 100%;
|
|
192
|
+
align-self: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
::slotted([role=menu]) {
|
|
196
|
+
align-self: end;
|
|
197
|
+
}
|
|
198
|
+
</style>
|
|
199
|
+
|
|
200
|
+
<slot name="media" part="layer media-layer"></slot>
|
|
201
|
+
<slot name="poster" part="layer poster-layer"></slot>
|
|
202
|
+
<slot name="gestures-chrome" part="layer gesture-layer">
|
|
203
|
+
<media-gesture-receiver slot="gestures-chrome">
|
|
204
|
+
<template shadowrootmode="${uh.shadowRootOptions.mode}">
|
|
205
|
+
${uh.getTemplateHTML({})}
|
|
206
|
+
</template>
|
|
207
|
+
</media-gesture-receiver>
|
|
208
|
+
</slot>
|
|
209
|
+
<span part="layer vertical-layer">
|
|
210
|
+
<slot name="top-chrome" part="top chrome"></slot>
|
|
211
|
+
<slot name="middle-chrome" part="middle chrome"></slot>
|
|
212
|
+
<slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
|
|
213
|
+
|
|
214
|
+
<slot part="bottom chrome"></slot>
|
|
215
|
+
</span>
|
|
216
|
+
<slot name="dialog" part="layer dialog-layer"></slot>
|
|
217
|
+
`},g.customElements.get("media-container")||g.customElements.define("media-container",_s);var _i,Ti,Oo,Qn,Xt,mn,dv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ce=(t,e,n)=>(dv(t,e,"read from private field"),n?n.call(t):e.get(t)),Ea=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Hr=(t,e,n,i)=>(dv(t,e,"write to private field"),e.set(t,n),n);class dc{constructor(e,n,{defaultValue:i}={defaultValue:void 0}){Ea(this,Xt),Ea(this,_i,void 0),Ea(this,Ti,void 0),Ea(this,Oo,void 0),Ea(this,Qn,new Set),Hr(this,_i,e),Hr(this,Ti,n),Hr(this,Oo,new Set(i))}[Symbol.iterator](){return Ce(this,Xt,mn).values()}get length(){return Ce(this,Xt,mn).size}get value(){var e;return(e=[...Ce(this,Xt,mn)].join(" "))!=null?e:""}set value(e){var n;e!==this.value&&(Hr(this,Qn,new Set),this.add(...(n=e?.split(" "))!=null?n:[]))}toString(){return this.value}item(e){return[...Ce(this,Xt,mn)][e]}values(){return Ce(this,Xt,mn).values()}forEach(e,n){Ce(this,Xt,mn).forEach(e,n)}add(...e){var n,i;e.forEach(a=>Ce(this,Qn).add(a)),(this.value!==""||(n=Ce(this,_i))!=null&&n.hasAttribute(`${Ce(this,Ti)}`))&&((i=Ce(this,_i))==null||i.setAttribute(`${Ce(this,Ti)}`,`${this.value}`))}remove(...e){var n;e.forEach(i=>Ce(this,Qn).delete(i)),(n=Ce(this,_i))==null||n.setAttribute(`${Ce(this,Ti)}`,`${this.value}`)}contains(e){return Ce(this,Xt,mn).has(e)}toggle(e,n){return n!==void 0?n?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,n){return this.remove(e),this.add(n),e===n}}_i=new WeakMap,Ti=new WeakMap,Oo=new WeakMap,Qn=new WeakMap,Xt=new WeakSet,mn=function(){return Ce(this,Qn).size?Ce(this,Qn):Ce(this,Oo)};const uv=(t="")=>{const[e,n,i]=t.split(":"),a=i?decodeURIComponent(i):void 0;return{kind:e==="cc"?qt.CAPTIONS:qt.SUBTITLES,language:n,label:a}},il=(t="",e={})=>((n="")=>n.split(/\s+/))(t).map(n=>{const i=uv(n);return{...e,...i}}),cv=t=>t?Array.isArray(t)?t.map(e=>typeof e=="string"?uv(e):e):typeof t=="string"?il(t):[t]:[],kd=({kind:t,label:e,language:n}={kind:"subtitles"})=>e?`${t==="captions"?"cc":"sb"}:${n}:${encodeURIComponent(e)}`:n,Cr=(t=[])=>Array.prototype.map.call(t,kd).join(" "),hv=t=>{const e=Object.entries(t).map(([n,i])=>((a,r)=>s=>s[a]===r)(n,i));return n=>e.every(i=>i(n))},sr=(t,e=[],n=[])=>{const i=cv(n).map(hv);Array.from(e).filter(a=>i.some(r=>r(a))).forEach(a=>{a.mode=t})},al=(t,e=()=>!0)=>{if(!t?.textTracks)return[];const n=typeof e=="function"?e:hv(e);return Array.from(t.textTracks).filter(n)},mv=t=>{var e;return!!((e=t.mediaSubtitlesShowing)!=null&&e.length)||t.hasAttribute(h.MEDIA_SUBTITLES_SHOWING)},hh="exitFullscreen"in ge?"exitFullscreen":"webkitExitFullscreen"in ge?"webkitExitFullscreen":"webkitCancelFullScreen"in ge?"webkitCancelFullScreen":void 0,ya="fullscreenElement"in ge?"fullscreenElement":"webkitFullscreenElement"in ge?"webkitFullscreenElement":void 0,Xg=t=>{var e;const{media:n,documentElement:i,fullscreenElement:a=n}=t;if(!n||!i)return!1;const r=(s=>{const{documentElement:o,media:l}=s,d=o?.[ya];return!d&&"webkitDisplayingFullscreen"in l&&"webkitPresentationMode"in l&&l.webkitDisplayingFullscreen&&l.webkitPresentationMode===Fg?l:d})(t);if(!r)return!1;if(r===a||r===n)return!0;if(r.localName.includes("-")){let s=r.shadowRoot;if(!(ya in s))return on(r,a);for(;s?.[ya];){if(s[ya]===a)return!0;s=(e=s[ya])==null?void 0:e.shadowRoot}}return!1},Jg="fullscreenEnabled"in ge?"fullscreenEnabled":"webkitFullscreenEnabled"in ge?"webkitFullscreenEnabled":void 0;let El;const uc=()=>{var t,e;return El||(El=(e=(t=ge)==null?void 0:t.createElement)==null?void 0:e.call(t,"video"),El)},eE=(t,e)=>new Promise(n=>{t.addEventListener("volumechange",()=>n(!0),{signal:e})}),tE=async(t,e)=>{for(let n=0;n<10;n++){if(t.volume===e)return!1;await Qp(10)}return t.volume!==e},nE=/.*Version\/.*Safari\/.*/.test(g.navigator.userAgent),pv=(t=uc())=>(!g.matchMedia("(display-mode: standalone)").matches||!nE)&&typeof t?.requestPictureInPicture=="function",vv=(t=uc())=>(e=>{const{documentElement:n,media:i}=e;return!!n?.[Jg]||i&&"webkitSupportsFullscreen"in i})({documentElement:ge,media:t}),iE=vv(),aE=pv(),rE=!!g.WebKitPlaybackTargetAvailabilityEvent,sE=!!g.chrome,Po=t=>al(t.media,e=>[qt.SUBTITLES,qt.CAPTIONS].includes(e.kind)).sort((e,n)=>e.kind>=n.kind?1:-1),bv=t=>al(t.media,e=>e.mode===ic&&[qt.SUBTITLES,qt.CAPTIONS].includes(e.kind)),fv=(t,e)=>{const n=Po(t),i=bv(t),a=!!i.length;if(n.length){if(e===!1||a&&e!==!0)sr(gd,n,i);else if(e===!0||!a&&e!==!1){let r=n[0];const{options:s}=t;if(!s?.noSubtitlesLangPref){const u=globalThis.localStorage.getItem("media-chrome-pref-subtitles-lang"),c=u?[u,...globalThis.navigator.languages]:globalThis.navigator.languages,m=n.filter(p=>c.some(v=>p.language.toLowerCase().startsWith(v.split("-")[0]))).sort((p,v)=>c.findIndex(b=>p.language.toLowerCase().startsWith(b.split("-")[0]))-c.findIndex(b=>v.language.toLowerCase().startsWith(b.split("-")[0])));m[0]&&(r=m[0])}const{language:o,label:l,kind:d}=r;sr(gd,n,i),sr(ic,n,[{language:o,label:l,kind:d}])}}},cc=(t,e)=>t===e||t!=null&&e!=null&&typeof t==typeof e&&(!(typeof t!="number"||!Number.isNaN(t)||!Number.isNaN(e))||typeof t=="object"&&(Array.isArray(t)?oE(t,e):Object.entries(t).every(([n,i])=>n in e&&cc(i,e[n])))),oE=(t,e)=>{const n=Array.isArray(t),i=Array.isArray(e);return n===i&&(!n&&!i||t.length===e.length&&t.every((a,r)=>cc(a,e[r])))},lE=Object.values(en);let Uo;const dE=(async(t=uc())=>{if(!t)return!1;const e=t.volume;t.volume=e/2+.1;const n=new AbortController,i=await Promise.race([eE(t,n.signal),tE(t,e)]);return n.abort(),i})().then(t=>(Uo=t,Uo)),uE=new g.DOMParser,cE=t=>t&&uE.parseFromString(t,"text/html").body.textContent||t,Wa={mediaError:{get(t,e){const{media:n}=t;if(e?.type!=="playing")return n?.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(t,e){var n;const{media:i}=t;if(e?.type!=="playing")return(n=i?.error)==null?void 0:n.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(t,e){var n,i;const{media:a}=t;if(e?.type!=="playing")return(i=(n=a?.error)==null?void 0:n.message)!=null?i:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(t){var e;const{media:n}=t;return(e=n?.videoWidth)!=null?e:0},mediaEvents:["resize"]},mediaHeight:{get(t){var e;const{media:n}=t;return(e=n?.videoHeight)!=null?e:0},mediaEvents:["resize"]},mediaPaused:{get(t){var e;const{media:n}=t;return(e=n?.paused)==null||e},set(t,e){var n;const{media:i}=e;i&&(t?i.pause():(n=i.play())==null||n.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(t,e){const{media:n}=t;return!!n&&(e?e.type==="playing":!n.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(t){var e;const{media:n}=t;return(e=n?.ended)!=null&&e},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(t){var e;const{media:n}=t;return(e=n?.playbackRate)!=null?e:1},set(t,e){const{media:n}=e;n&&Number.isFinite(+t)&&(n.playbackRate=+t)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(t){var e;const{media:n}=t;return(e=n?.muted)!=null&&e},set(t,e){const{media:n,options:{noMutedPref:i}={}}=e;if(n){n.muted=t;try{const a=g.localStorage.getItem("media-chrome-pref-muted")!==null,r=n.hasAttribute("muted");if(i)return void(a&&g.localStorage.removeItem("media-chrome-pref-muted"));if(r&&!a)return;g.localStorage.setItem("media-chrome-pref-muted",t?"true":"false")}catch(a){console.debug("Error setting muted pref",a)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(t,e)=>{const{options:{noMutedPref:n}}=e,{media:i}=e;if(i&&!i.muted&&!n)try{const a=g.localStorage.getItem("media-chrome-pref-muted")==="true";Wa.mediaMuted.set(a,e),t(a)}catch(a){console.debug("Error getting muted pref",a)}}]},mediaLoop:{get(t){const{media:e}=t;return e?.loop},set(t,e){const{media:n}=e;n&&(n.loop=t)},mediaEvents:["medialooprequest"]},mediaVolume:{get(t){var e;const{media:n}=t;return(e=n?.volume)!=null?e:1},set(t,e){const{media:n,options:{noVolumePref:i}={}}=e;if(n){try{t==null?g.localStorage.removeItem("media-chrome-pref-volume"):n.hasAttribute("muted")||i||g.localStorage.setItem("media-chrome-pref-volume",t.toString())}catch(a){console.debug("Error setting volume pref",a)}Number.isFinite(+t)&&(n.volume=+t)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(t,e)=>{const{options:{noVolumePref:n}}=e;if(!n)try{const{media:i}=e;if(!i)return;const a=g.localStorage.getItem("media-chrome-pref-volume");if(a==null)return;Wa.mediaVolume.set(+a,e),t(+a)}catch(i){console.debug("Error getting volume pref",i)}}]},mediaVolumeLevel:{get(t){const{media:e}=t;return e?.volume===void 0?"high":e.muted||e.volume===0?"off":e.volume<.5?"low":e.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(t){var e;const{media:n}=t;return(e=n?.currentTime)!=null?e:0},set(t,e){const{media:n}=e;n&&ac(t)&&(n.currentTime=t)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(t){const{media:e,options:{defaultDuration:n}={}}=t;return!n||e&&e.duration&&!Number.isNaN(e.duration)&&Number.isFinite(e.duration)?Number.isFinite(e?.duration)?e.duration:Number.NaN:n},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(t){const{media:e}=t;return e?.readyState<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(t){var e;const{media:n}=t;if(!((e=n?.seekable)!=null&&e.length))return;const i=n.seekable.start(0),a=n.seekable.end(n.seekable.length-1);return i||a?[Number(i.toFixed(3)),Number(a.toFixed(3))]:void 0},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(t){var e;const{media:n}=t,i=(e=n?.buffered)!=null?e:[];return Array.from(i).map((a,r)=>[Number(i.start(r).toFixed(3)),Number(i.end(r).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(t){const{media:e,options:{defaultStreamType:n}={}}=t,i=[en.LIVE,en.ON_DEMAND].includes(n)?n:void 0;if(!e)return i;const{streamType:a}=e;if(lE.includes(a))return a===en.UNKNOWN?i:a;const r=e.duration;return r===1/0?en.LIVE:Number.isFinite(r)?en.ON_DEMAND:i},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(t){const{media:e}=t;if(!e)return Number.NaN;const{targetLiveWindow:n}=e,i=Wa.mediaStreamType.get(t);return n!=null&&!Number.isNaN(n)||i!==en.LIVE?n:0},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(t){const{media:e,options:{liveEdgeOffset:n=10}={}}=t;if(!e)return!1;if(typeof e.liveEdgeStart=="number")return!Number.isNaN(e.liveEdgeStart)&&e.currentTime>=e.liveEdgeStart;if(Wa.mediaStreamType.get(t)!==en.LIVE)return!1;const i=e.seekable;if(!i)return!0;if(!i.length)return!1;const a=i.end(i.length-1)-n;return e.currentTime>=a},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:t=>Po(t).map(({kind:e,label:n,language:i})=>({kind:e,label:n,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:t=>bv(t).map(({kind:e,label:n,language:i})=>({kind:e,label:n,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(t,e)=>{var n,i;const{media:a,options:r}=e;if(!a)return;const s=o=>{var l;r.defaultSubtitles&&(o&&![qt.CAPTIONS,qt.SUBTITLES].includes((l=o?.track)==null?void 0:l.kind)||fv(e,!0))};return a.addEventListener("loadstart",s),(n=a.textTracks)==null||n.addEventListener("addtrack",s),(i=a.textTracks)==null||i.addEventListener("removetrack",s),()=>{var o,l;a.removeEventListener("loadstart",s),(o=a.textTracks)==null||o.removeEventListener("addtrack",s),(l=a.textTracks)==null||l.removeEventListener("removetrack",s)}}]},mediaChaptersCues:{get(t){var e;const{media:n}=t;if(!n)return[];const[i]=al(n,{kind:qt.CHAPTERS});return Array.from((e=i?.cues)!=null?e:[]).map(({text:a,startTime:r,endTime:s})=>({text:cE(a),startTime:r,endTime:s}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(t,e)=>{var n;const{media:i}=e;if(!i)return;const a=i.querySelector('track[kind="chapters"][default][src]'),r=(n=i.shadowRoot)==null?void 0:n.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return a?.addEventListener("load",t),r?.addEventListener("load",t),()=>{a?.removeEventListener("load",t),r?.removeEventListener("load",t)}}]},mediaIsPip:{get(t){var e,n;const{media:i,documentElement:a}=t;if(!i||!a||!a.pictureInPictureElement)return!1;if(a.pictureInPictureElement===i)return!0;if(a.pictureInPictureElement instanceof HTMLMediaElement)return!!((e=i.localName)!=null&&e.includes("-"))&&on(i,a.pictureInPictureElement);if(a.pictureInPictureElement.localName.includes("-")){let r=a.pictureInPictureElement.shadowRoot;for(;r?.pictureInPictureElement;){if(r.pictureInPictureElement===i)return!0;r=(n=r.pictureInPictureElement)==null?void 0:n.shadowRoot}}return!1},set(t,e){const{media:n}=e;if(n)if(t){if(!ge.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!n.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");const i=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};n.requestPictureInPicture().catch(a=>{if(a.code!==11)throw a;if(n.src){if(n.readyState!==0||n.preload!=="none")throw a;{const r=()=>{n.removeEventListener("loadedmetadata",s),n.preload="none"},s=()=>{n.requestPictureInPicture().catch(i),r()};n.addEventListener("loadedmetadata",s),n.preload="metadata",setTimeout(()=>{n.readyState===0&&i(),r()},1e3)}}else console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.")})}else ge.pictureInPictureElement&&ge.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(t){var e;const{media:n}=t;return[...(e=n?.videoRenditions)!=null?e:[]].map(i=>({...i}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(t){var e,n,i;const{media:a}=t;return(i=(n=a?.videoRenditions)==null?void 0:n[(e=a.videoRenditions)==null?void 0:e.selectedIndex])==null?void 0:i.id},set(t,e){const{media:n}=e;if(!n?.videoRenditions)return void console.warn("MediaController: Rendition selection not supported by this media.");const i=t,a=Array.prototype.findIndex.call(n.videoRenditions,r=>r.id==i);n.videoRenditions.selectedIndex!=a&&(n.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(t){var e;const{media:n}=t;return[...(e=n?.audioTracks)!=null?e:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(t){var e,n;const{media:i}=t;return(n=[...(e=i?.audioTracks)!=null?e:[]].find(a=>a.enabled))==null?void 0:n.id},set(t,e){const{media:n}=e;if(!n?.audioTracks)return void console.warn("MediaChrome: Audio track selection not supported by this media.");const i=t;for(const a of n.audioTracks)a.enabled=i==a.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:t=>Xg(t),set(t,e,n){var i;t?((a=>{var r;const{media:s,fullscreenElement:o}=a;try{const l=o&&"requestFullscreen"in o?"requestFullscreen":o&&"webkitRequestFullScreen"in o?"webkitRequestFullScreen":void 0;if(l){const d=(r=o[l])==null?void 0:r.call(o);if(d instanceof Promise)return d.catch(()=>{})}else s?.webkitEnterFullscreen?s.webkitEnterFullscreen():s?.requestFullscreen&&s.requestFullscreen()}catch(l){console.error(l)}})(e),n.detail&&((i=e.media)==null||i.focus())):(a=>{var r;const{documentElement:s}=a;if(hh){const o=(r=s?.[hh])==null?void 0:r.call(s);o instanceof Promise&&o.catch(()=>{})}})(e)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(t){var e;const{media:n}=t;return!(!n?.remote||((e=n.remote)==null?void 0:e.state)==="disconnected")&&!!n.remote.state},set(t,e){var n,i;const{media:a}=e;a&&(t&&((n=a.remote)==null?void 0:n.state)!=="disconnected"||(t||((i=a.remote)==null?void 0:i.state)==="connected")&&(typeof a.remote.prompt=="function"?a.remote.prompt().catch(()=>{}):console.warn("MediaChrome: Casting is not supported in this environment")))},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(t,e){const{media:n}=e;n&&(n.webkitShowPlaybackTargetPicker&&g.WebKitPlaybackTargetAvailabilityEvent?n.webkitShowPlaybackTargetPicker():console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment"))},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(t){const{media:e}=t;if(!iE||!vv(e))return dn}},mediaPipUnavailable:{get(t){const{media:e}=t;return aE&&pv(e)?e?.disablePictureInPicture?ga:void 0:dn}},mediaVolumeUnavailable:{get(t){const{media:e}=t;if(Uo===!1||e?.volume==null)return dn},stateOwnersUpdateHandlers:[t=>{Uo==null&&dE.then(e=>t(e?void 0:dn))}]},mediaCastUnavailable:{get(t,{availability:e="not-available"}={}){var n;const{media:i}=t;return sE&&((n=i?.remote)!=null&&n.state)?e!=null&&e!=="available"?ga:void 0:dn},stateOwnersUpdateHandlers:[(t,e)=>{var n;const{media:i}=e;if(i)return i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||(n=i?.remote)==null||n.watchAvailability(a=>{t({availability:a?"available":"not-available"})}).catch(a=>{a.name==="NotSupportedError"?t({availability:null}):t({availability:"not-available"})}),()=>{var a;(a=i?.remote)==null||a.cancelWatchAvailability().catch(()=>{})}}]},mediaAirplayUnavailable:{get:(t,e)=>rE?e?.availability==="not-available"?ga:void 0:dn,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(t,e)=>{var n;const{media:i}=e;if(i)return i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||(n=i?.remote)==null||n.watchAvailability(a=>{t({availability:a?"available":"not-available"})}).catch(a=>{a.name==="NotSupportedError"?t({availability:null}):t({availability:"not-available"})}),()=>{var a;(a=i?.remote)==null||a.cancelWatchAvailability().catch(()=>{})}}]},mediaRenditionUnavailable:{get(t){var e;const{media:n}=t;return n?.videoRenditions?(e=n.videoRenditions)!=null&&e.length?void 0:ga:dn},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(t){var e,n;const{media:i}=t;return i?.audioTracks?((n=(e=i.audioTracks)==null?void 0:e.length)!=null?n:0)<=1?ga:void 0:dn},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(t){const{options:{mediaLang:e}={}}=t;return e??"en"}}},hE={[R.MEDIA_PREVIEW_REQUEST](t,e,{detail:n}){var i,a,r;const{media:s}=e,o=n??void 0;let l,d;if(s&&o!=null){const[m]=al(s,{kind:qt.METADATA,label:"thumbnails"}),p=Array.prototype.find.call((i=m?.cues)!=null?i:[],(v,b,f)=>b===0?v.endTime>o:b===f.length-1?v.startTime<=o:v.startTime<=o&&v.endTime>o);if(p){const v=/'^(?:[a-z]+:)?\/\//i.test(p.text)||(a=s?.querySelector('track[label="thumbnails"]'))==null?void 0:a.src,b=new URL(p.text,v);d=new URLSearchParams(b.hash).get("#xywh").split(",").map(f=>+f),l=b.href}}const u=t.mediaDuration.get(e);let c=(r=t.mediaChaptersCues.get(e).find((m,p,v)=>p===v.length-1&&u===m.endTime?m.startTime<=o&&m.endTime>=o:m.startTime<=o&&m.endTime>o))==null?void 0:r.text;return n!=null&&c==null&&(c=""),{mediaPreviewTime:o,mediaPreviewImage:l,mediaPreviewCoords:d,mediaPreviewChapter:c}},[R.MEDIA_PAUSE_REQUEST](t,e){t.mediaPaused.set(!0,e)},[R.MEDIA_PLAY_REQUEST](t,e){var n,i,a,r;const s=t.mediaStreamType.get(e)===en.LIVE,o=!((n=e.options)!=null&&n.noAutoSeekToLive),l=t.mediaTargetLiveWindow.get(e)>0;if(s&&o&&!l){const d=(i=t.mediaSeekable.get(e))==null?void 0:i[1];if(d){const u=d-((r=(a=e.options)==null?void 0:a.seekToLiveOffset)!=null?r:0);t.mediaCurrentTime.set(u,e)}}t.mediaPaused.set(!1,e)},[R.MEDIA_PLAYBACK_RATE_REQUEST](t,e,{detail:n}){const i=n;t.mediaPlaybackRate.set(i,e)},[R.MEDIA_MUTE_REQUEST](t,e){t.mediaMuted.set(!0,e)},[R.MEDIA_UNMUTE_REQUEST](t,e){t.mediaVolume.get(e)||t.mediaVolume.set(.25,e),t.mediaMuted.set(!1,e)},[R.MEDIA_LOOP_REQUEST](t,e,{detail:n}){const i=!!n;return t.mediaLoop.set(i,e),{mediaLoop:i}},[R.MEDIA_VOLUME_REQUEST](t,e,{detail:n}){const i=n;i&&t.mediaMuted.get(e)&&t.mediaMuted.set(!1,e),t.mediaVolume.set(i,e)},[R.MEDIA_SEEK_REQUEST](t,e,{detail:n}){const i=n;t.mediaCurrentTime.set(i,e)},[R.MEDIA_SEEK_TO_LIVE_REQUEST](t,e){var n,i,a;const r=(n=t.mediaSeekable.get(e))==null?void 0:n[1];if(Number.isNaN(Number(r)))return;const s=r-((a=(i=e.options)==null?void 0:i.seekToLiveOffset)!=null?a:0);t.mediaCurrentTime.set(s,e)},[R.MEDIA_SHOW_SUBTITLES_REQUEST](t,e,{detail:n}){var i;const{options:a}=e,r=Po(e),s=cv(n),o=(i=s[0])==null?void 0:i.language;o&&!a.noSubtitlesLangPref&&g.localStorage.setItem("media-chrome-pref-subtitles-lang",o),sr(ic,r,s)},[R.MEDIA_DISABLE_SUBTITLES_REQUEST](t,e,{detail:n}){const i=Po(e);sr(gd,i,n??[])},[R.MEDIA_TOGGLE_SUBTITLES_REQUEST](t,e,{detail:n}){fv(e,n)},[R.MEDIA_RENDITION_REQUEST](t,e,{detail:n}){const i=n;t.mediaRenditionSelected.set(i,e)},[R.MEDIA_AUDIO_TRACK_REQUEST](t,e,{detail:n}){const i=n;t.mediaAudioTrackEnabled.set(i,e)},[R.MEDIA_ENTER_PIP_REQUEST](t,e){t.mediaIsFullscreen.get(e)&&t.mediaIsFullscreen.set(!1,e),t.mediaIsPip.set(!0,e)},[R.MEDIA_EXIT_PIP_REQUEST](t,e){t.mediaIsPip.set(!1,e)},[R.MEDIA_ENTER_FULLSCREEN_REQUEST](t,e,n){t.mediaIsPip.get(e)&&t.mediaIsPip.set(!1,e),t.mediaIsFullscreen.set(!0,e,n)},[R.MEDIA_EXIT_FULLSCREEN_REQUEST](t,e){t.mediaIsFullscreen.set(!1,e)},[R.MEDIA_ENTER_CAST_REQUEST](t,e){t.mediaIsFullscreen.get(e)&&t.mediaIsFullscreen.set(!1,e),t.mediaIsCasting.set(!0,e)},[R.MEDIA_EXIT_CAST_REQUEST](t,e){t.mediaIsCasting.set(!1,e)},[R.MEDIA_AIRPLAY_REQUEST](t,e){t.mediaIsAirplaying.set(!0,e)}},mE=({media:t,fullscreenElement:e,documentElement:n,stateMediator:i=Wa,requestMap:a=hE,options:r={},monitorStateOwnersOnlyWithSubscriptions:s=!0})=>{const o=[],l={options:{...r}};let d=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0});const u=b=>{b!=null&&(cc(b,d)||(d=Object.freeze({...d,...b}),o.forEach(f=>f(d))))},c=()=>{const b=Object.entries(i).reduce((f,[T,{get:A}])=>(f[T]=A(l),f),{});u(b)},m={};let p;const v=async(b,f)=>{var T,A,E,_,w,I,D,V,q,Y,re,oe,J,ee,Ne,He;const Ee=!!p;if(p={...l,...p??{},...b},Ee)return;await(async(...G)=>{await Promise.all(G.filter(Fe=>Fe).map(async Fe=>{if(!("localName"in Fe&&Fe instanceof g.HTMLElement))return;const va=Fe.localName;if(!va.includes("-"))return;const Lr=g.customElements.get(va);Lr&&Fe instanceof Lr||(await g.customElements.whenDefined(va),g.customElements.upgrade(Fe))}))})(...Object.values(b));const de=o.length>0&&f===0&&s,Ke=l.media!==p.media,Gt=((T=l.media)==null?void 0:T.textTracks)!==((A=p.media)==null?void 0:A.textTracks),jt=((E=l.media)==null?void 0:E.videoRenditions)!==((_=p.media)==null?void 0:_.videoRenditions),Et=((w=l.media)==null?void 0:w.audioTracks)!==((I=p.media)==null?void 0:I.audioTracks),yt=((D=l.media)==null?void 0:D.remote)!==((V=p.media)==null?void 0:V.remote),We=l.documentElement!==p.documentElement,Oe=!!l.media&&(Ke||de),oi=!!((q=l.media)!=null&&q.textTracks)&&(Gt||de),Dn=!!((Y=l.media)!=null&&Y.videoRenditions)&&(jt||de),Dr=!!((re=l.media)!=null&&re.audioTracks)&&(Et||de),lt=!!((oe=l.media)!=null&&oe.remote)&&(yt||de),_t=!!l.documentElement&&(We||de),pa=Oe||oi||Dn||Dr||lt||_t,li=o.length===0&&f===1&&s,Ic=!!p.media&&(Ke||li),Sc=!!((J=p.media)!=null&&J.textTracks)&&(Gt||li),Rc=!!((ee=p.media)!=null&&ee.videoRenditions)&&(jt||li),Cc=!!((Ne=p.media)!=null&&Ne.audioTracks)&&(Et||li),Dc=!!((He=p.media)!=null&&He.remote)&&(yt||li),Lc=!!p.documentElement&&(We||li),Mc=Ic||Sc||Rc||Cc||Dc||Lc;if(!(pa||Mc))return Object.entries(p).forEach(([G,Fe])=>{l[G]=Fe}),c(),void(p=void 0);Object.entries(i).forEach(([G,{get:Fe,mediaEvents:va=[],textTracksEvents:Lr=[],videoRenditionsEvents:Rb=[],audioTracksEvents:Cb=[],remoteEvents:Db=[],rootEvents:Lb=[],stateOwnersUpdateHandlers:Mb=[]}])=>{m[G]||(m[G]={});const Ye=te=>{const Le=Fe(l,te);u({[G]:Le})};let Ie;Ie=m[G].mediaEvents,va.forEach(te=>{Ie&&Oe&&(l.media.removeEventListener(te,Ie),m[G].mediaEvents=void 0),Ic&&(p.media.addEventListener(te,Ye),m[G].mediaEvents=Ye)}),Ie=m[G].textTracksEvents,Lr.forEach(te=>{var Le,dt;Ie&&oi&&((Le=l.media.textTracks)==null||Le.removeEventListener(te,Ie),m[G].textTracksEvents=void 0),Sc&&((dt=p.media.textTracks)==null||dt.addEventListener(te,Ye),m[G].textTracksEvents=Ye)}),Ie=m[G].videoRenditionsEvents,Rb.forEach(te=>{var Le,dt;Ie&&Dn&&((Le=l.media.videoRenditions)==null||Le.removeEventListener(te,Ie),m[G].videoRenditionsEvents=void 0),Rc&&((dt=p.media.videoRenditions)==null||dt.addEventListener(te,Ye),m[G].videoRenditionsEvents=Ye)}),Ie=m[G].audioTracksEvents,Cb.forEach(te=>{var Le,dt;Ie&&Dr&&((Le=l.media.audioTracks)==null||Le.removeEventListener(te,Ie),m[G].audioTracksEvents=void 0),Cc&&((dt=p.media.audioTracks)==null||dt.addEventListener(te,Ye),m[G].audioTracksEvents=Ye)}),Ie=m[G].remoteEvents,Db.forEach(te=>{var Le,dt;Ie&<&&((Le=l.media.remote)==null||Le.removeEventListener(te,Ie),m[G].remoteEvents=void 0),Dc&&((dt=p.media.remote)==null||dt.addEventListener(te,Ye),m[G].remoteEvents=Ye)}),Ie=m[G].rootEvents,Lb.forEach(te=>{Ie&&_t&&(l.documentElement.removeEventListener(te,Ie),m[G].rootEvents=void 0),Lc&&(p.documentElement.addEventListener(te,Ye),m[G].rootEvents=Ye)});const Mr=m[G].stateOwnersUpdateHandlers;if(Mr&&pa&&(Array.isArray(Mr)?Mr:[Mr]).forEach(te=>{typeof te=="function"&&te()}),Mc){const te=Mb.map(Le=>Le(Ye,p)).filter(Le=>typeof Le=="function");m[G].stateOwnersUpdateHandlers=te.length===1?te[0]:te}else pa&&(m[G].stateOwnersUpdateHandlers=void 0)}),Object.entries(p).forEach(([G,Fe])=>{l[G]=Fe}),c(),p=void 0};return v({media:t,fullscreenElement:e,documentElement:n,options:r}),{dispatch(b){const{type:f,detail:T}=b;a[f]&&d.mediaErrorCode==null?u(a[f](i,l,b)):f==="mediaelementchangerequest"?v({media:T}):f==="fullscreenelementchangerequest"?v({fullscreenElement:T}):f==="documentelementchangerequest"?v({documentElement:T}):f==="optionschangerequest"&&(Object.entries(T??{}).forEach(([A,E])=>{l.options[A]=E}),c())},getState:()=>d,subscribe:b=>(v({},o.length+1),o.push(b),b(d),()=>{const f=o.indexOf(b);f>=0&&(v({},o.length-1),o.splice(f,1))})}};var Tn,Ba,$,Pn,Va,It,Ts,$a,As,wd,Yn,Ai,ks,Id,Sd,gv,hc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},O=(t,e,n)=>(hc(t,e,"read from private field"),n?n.call(t):e.get(t)),nt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},St=(t,e,n,i)=>(hc(t,e,"write to private field"),e.set(t,n),n),Wt=(t,e,n)=>(hc(t,e,"access private method"),n);const mh=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],ki="defaultsubtitles",wi="defaultstreamtype",or="defaultduration",yl="fullscreenelement",di="hotkeys",ph="keyboardbackwardseekoffset",vh="keyboardforwardseekoffset",bh="keyboarddownvolumestep",fh="keyboardupvolumestep",_l="keysused",gh="lang",Eh="loop",Bt="liveedgeoffset",qa="noautoseektolive",Wr="nodefaultstore",ui="nohotkeys",Ii="nomutedpref",Rd="nosubtitleslangpref",Si="novolumepref",Qi="seektoliveoffset";class Ev extends _s{constructor(){super(),nt(this,As),nt(this,Yn),nt(this,ks),nt(this,Sd),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,nt(this,Tn,new dc(this,di)),nt(this,Ba,void 0),nt(this,$,void 0),nt(this,Pn,null),nt(this,Va,void 0),nt(this,It,void 0),nt(this,Ts,n=>{var i;(i=O(this,$))==null||i.dispatch(n)}),nt(this,$a,void 0),this.associateElement(this);let e={};St(this,Va,n=>{Object.entries(n).forEach(([i,a])=>{if(i in e&&e[i]===a)return;this.propagateMediaState(i,a);const r=i.toLowerCase(),s=new g.CustomEvent(Vg[r],{composed:!0,detail:a});this.dispatchEvent(s)}),e=n}),this.hasAttribute(ui)?this.disableHotkeys():this.enableHotkeys()}static get observedAttributes(){return super.observedAttributes.concat(ui,di,wi,ki,or,Ii,Si,gh,Eh)}get mediaStore(){return O(this,$)}set mediaStore(e){var n,i;O(this,$)&&((n=O(this,It))==null||n.call(this),St(this,It,void 0)),St(this,$,e),O(this,$)||this.hasAttribute(Wr)?St(this,It,(i=O(this,$))==null?void 0:i.subscribe(O(this,Va))):Wt(this,As,wd).call(this)}get fullscreenElement(){var e;return(e=O(this,Ba))!=null?e:this}set fullscreenElement(e){var n;this.hasAttribute(yl)&&this.removeAttribute(yl),St(this,Ba,e),(n=O(this,$))==null||n.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return W(this,ki)}set defaultSubtitles(e){B(this,ki,e)}get defaultStreamType(){return ie(this,wi)}set defaultStreamType(e){ae(this,wi,e)}get defaultDuration(){return ne(this,or)}set defaultDuration(e){he(this,or,e)}get noHotkeys(){return W(this,ui)}set noHotkeys(e){B(this,ui,e)}get keysUsed(){return ie(this,_l)}set keysUsed(e){ae(this,_l,e)}get liveEdgeOffset(){return ne(this,Bt)}set liveEdgeOffset(e){he(this,Bt,e)}get noAutoSeekToLive(){return W(this,qa)}set noAutoSeekToLive(e){B(this,qa,e)}get noVolumePref(){return W(this,Si)}set noVolumePref(e){B(this,Si,e)}get noMutedPref(){return W(this,Ii)}set noMutedPref(e){B(this,Ii,e)}get noSubtitlesLangPref(){return W(this,Rd)}set noSubtitlesLangPref(e){B(this,Rd,e)}get noDefaultStore(){return W(this,Wr)}set noDefaultStore(e){B(this,Wr,e)}attributeChangedCallback(e,n,i){var a,r,s,o,l,d,u,c,m,p,v,b;if(super.attributeChangedCallback(e,n,i),e===ui)i!==n&&i===""?(this.hasAttribute(di)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==n&&i===null&&this.enableHotkeys();else if(e===di)O(this,Tn).value=i;else if(e===ki&&i!==n)(a=O(this,$))==null||a.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(ki)}});else if(e===wi)(s=O(this,$))==null||s.dispatch({type:"optionschangerequest",detail:{defaultStreamType:(r=this.getAttribute(wi))!=null?r:void 0}});else if(e===Bt)(o=O(this,$))==null||o.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(Bt)?+this.getAttribute(Bt):void 0,seekToLiveOffset:this.hasAttribute(Qi)?void 0:+this.getAttribute(Bt)}});else if(e===Qi)(l=O(this,$))==null||l.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(Qi)?+this.getAttribute(Qi):void 0}});else if(e===qa)(d=O(this,$))==null||d.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(qa)}});else if(e===yl){const f=i?(u=this.getRootNode())==null?void 0:u.getElementById(i):void 0;St(this,Ba,f),(c=O(this,$))==null||c.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===gh&&i!==n?(Ed=i,(m=O(this,$))==null||m.dispatch({type:"optionschangerequest",detail:{mediaLang:i}})):e===Eh&&i!==n?(p=O(this,$))==null||p.dispatch({type:R.MEDIA_LOOP_REQUEST,detail:i!=null}):e===Si&&i!==n?(v=O(this,$))==null||v.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(Si)}}):e===Ii&&i!==n&&((b=O(this,$))==null||b.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(Ii)}}))}connectedCallback(){var e,n;O(this,$)||this.hasAttribute(Wr)||Wt(this,As,wd).call(this),(e=O(this,$))==null||e.dispatch({type:"documentelementchangerequest",detail:ge}),super.connectedCallback(),O(this,$)&&!O(this,It)&&St(this,It,(n=O(this,$))==null?void 0:n.subscribe(O(this,Va))),O(this,$a)!==void 0&&O(this,$)&&this.media&&setTimeout(()=>{var i,a,r;(a=(i=this.media)==null?void 0:i.textTracks)!=null&&a.length&&((r=O(this,$))==null||r.dispatch({type:R.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:O(this,$a)}))},0),this.hasAttribute(ui)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,n,i,a,r;if((e=super.disconnectedCallback)==null||e.call(this),O(this,$)){const s=O(this,$).getState();St(this,$a,!!((n=s.mediaSubtitlesShowing)!=null&&n.length)),(i=O(this,$))==null||i.dispatch({type:"documentelementchangerequest",detail:void 0}),(a=O(this,$))==null||a.dispatch({type:R.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}O(this,It)&&((r=O(this,It))==null||r.call(this),St(this,It,void 0))}mediaSetCallback(e){var n;super.mediaSetCallback(e),(n=O(this,$))==null||n.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var n;super.mediaUnsetCallback(e),(n=O(this,$))==null||n.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,n){Th(this.mediaStateReceivers,e,n)}associateElement(e){if(!e)return;const{associatedElementSubscriptions:n}=this;if(n.has(e))return;const i=this.registerMediaStateReceiver.bind(this),a=this.unregisterMediaStateReceiver.bind(this),r=bE(e,i,a);Object.values(R).forEach(s=>{e.addEventListener(s,O(this,Ts))}),n.set(e,r)}unassociateElement(e){if(!e)return;const{associatedElementSubscriptions:n}=this;n.has(e)&&(n.get(e)(),n.delete(e),Object.values(R).forEach(i=>{e.removeEventListener(i,O(this,Ts))}))}registerMediaStateReceiver(e){if(!e)return;const n=this.mediaStateReceivers;n.indexOf(e)>-1||(n.push(e),O(this,$)&&Object.entries(O(this,$).getState()).forEach(([i,a])=>{Th([e],i,a)}))}unregisterMediaStateReceiver(e){const n=this.mediaStateReceivers,i=n.indexOf(e);i<0||n.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",Wt(this,ks,Id))}disableHotkeys(){this.removeEventListener("keydown",Wt(this,ks,Id)),this.removeEventListener("keyup",Wt(this,Yn,Ai))}get hotkeys(){return ie(this,di)}set hotkeys(e){ae(this,di,e)}keyboardShortcutHandler(e){var n,i,a,r,s,o,l,d,u;const c=e.target;if(((a=(i=(n=c.getAttribute(_l))==null?void 0:n.split(" "))!=null?i:c?.keysUsed)!=null?a:[]).map(b=>b==="Space"?" ":b).filter(Boolean).includes(e.key))return;let m,p,v;if(!O(this,Tn).contains(`no${e.key.toLowerCase()}`)&&!(e.key===" "&&O(this,Tn).contains("nospace"))&&(!(e.shiftKey&&(e.key==="/"||e.key==="?"))||!O(this,Tn).contains("noshift+/")))switch(e.key){case" ":case"k":m=O(this,$).getState().mediaPaused?R.MEDIA_PLAY_REQUEST:R.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new g.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"m":m=this.mediaStore.getState().mediaVolumeLevel==="off"?R.MEDIA_UNMUTE_REQUEST:R.MEDIA_MUTE_REQUEST,this.dispatchEvent(new g.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"f":m=this.mediaStore.getState().mediaIsFullscreen?R.MEDIA_EXIT_FULLSCREEN_REQUEST:R.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new g.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new g.CustomEvent(R.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{const b=this.hasAttribute(ph)?+this.getAttribute(ph):10;p=Math.max(((r=this.mediaStore.getState().mediaCurrentTime)!=null?r:0)-b,0),v=new g.CustomEvent(R.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case"ArrowRight":case"l":{const b=this.hasAttribute(vh)?+this.getAttribute(vh):10;p=Math.max(((s=this.mediaStore.getState().mediaCurrentTime)!=null?s:0)+b,0),v=new g.CustomEvent(R.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case"ArrowUp":{const b=this.hasAttribute(fh)?+this.getAttribute(fh):.025;p=Math.min(((o=this.mediaStore.getState().mediaVolume)!=null?o:1)+b,1),v=new g.CustomEvent(R.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case"ArrowDown":{const b=this.hasAttribute(bh)?+this.getAttribute(bh):.025;p=Math.max(((l=this.mediaStore.getState().mediaVolume)!=null?l:1)-b,0),v=new g.CustomEvent(R.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case"<":{const b=(d=this.mediaStore.getState().mediaPlaybackRate)!=null?d:1;p=Math.max(b-.25,.25).toFixed(2),v=new g.CustomEvent(R.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case">":{const b=(u=this.mediaStore.getState().mediaPlaybackRate)!=null?u:1;p=Math.min(b+.25,2).toFixed(2),v=new g.CustomEvent(R.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(v);break}case"/":case"?":e.shiftKey&&Wt(this,Sd,gv).call(this);break;case"p":m=this.mediaStore.getState().mediaIsPip?R.MEDIA_EXIT_PIP_REQUEST:R.MEDIA_ENTER_PIP_REQUEST,v=new g.CustomEvent(m,{composed:!0,bubbles:!0}),this.dispatchEvent(v)}}}Tn=new WeakMap,Ba=new WeakMap,$=new WeakMap,Pn=new WeakMap,Va=new WeakMap,It=new WeakMap,Ts=new WeakMap,$a=new WeakMap,As=new WeakSet,wd=function(){var t;this.mediaStore=mE({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(ki),defaultDuration:this.hasAttribute(or)?+this.getAttribute(or):void 0,defaultStreamType:(t=this.getAttribute(wi))!=null?t:void 0,liveEdgeOffset:this.hasAttribute(Bt)?+this.getAttribute(Bt):void 0,seekToLiveOffset:this.hasAttribute(Qi)?+this.getAttribute(Qi):this.hasAttribute(Bt)?+this.getAttribute(Bt):void 0,noAutoSeekToLive:this.hasAttribute(qa),noVolumePref:this.hasAttribute(Si),noMutedPref:this.hasAttribute(Ii),noSubtitlesLangPref:this.hasAttribute(Rd)}})},Yn=new WeakSet,Ai=function(t){const{key:e,shiftKey:n}=t;n&&(e==="/"||e==="?")||mh.includes(e)?this.keyboardShortcutHandler(t):this.removeEventListener("keyup",Wt(this,Yn,Ai))},ks=new WeakSet,Id=function(t){var e;const{metaKey:n,altKey:i,key:a,shiftKey:r}=t,s=r&&(a==="/"||a==="?");if(s&&((e=O(this,Pn))!=null&&e.open))return void this.removeEventListener("keyup",Wt(this,Yn,Ai));if(n||i||!s&&!mh.includes(a))return void this.removeEventListener("keyup",Wt(this,Yn,Ai));const o=t.target,l=o instanceof HTMLElement&&(o.tagName.toLowerCase()==="media-volume-range"||o.tagName.toLowerCase()==="media-time-range");![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(a)||O(this,Tn).contains(`no${a.toLowerCase()}`)||a===" "&&O(this,Tn).contains("nospace")||l||t.preventDefault(),this.addEventListener("keyup",Wt(this,Yn,Ai),{once:!0})},Sd=new WeakSet,gv=function(){O(this,Pn)||(St(this,Pn,ge.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(O(this,Pn))),O(this,Pn).open=!0};const pE=Object.values(h),vE=Object.values(Yp),yv=t=>{var e,n,i,a;let{observedAttributes:r}=t.constructor;!r&&((e=t.nodeName)!=null&&e.includes("-"))&&(g.customElements.upgrade(t),{observedAttributes:r}=t.constructor);const s=(a=(i=(n=t?.getAttribute)==null?void 0:n.call(t,F.MEDIA_CHROME_ATTRIBUTES))==null?void 0:i.split)==null?void 0:a.call(i,/\s+/);return Array.isArray(r||s)?(r||s).filter(o=>pE.includes(o)):[]},Cd=t=>{return!((n=(e=t).nodeName)!=null&&n.includes("-"))||!g.customElements.get((i=e.nodeName)==null?void 0:i.toLowerCase())||e instanceof g.customElements.get(e.nodeName.toLowerCase())||g.customElements.upgrade(e),vE.some(a=>a in e)||!!yv(t).length;var e,n,i},yh=t=>{var e;return(e=t?.join)==null?void 0:e.call(t,":")},_h={[h.MEDIA_SUBTITLES_LIST]:Cr,[h.MEDIA_SUBTITLES_SHOWING]:Cr,[h.MEDIA_SEEKABLE]:yh,[h.MEDIA_BUFFERED]:t=>t?.map(yh).join(" "),[h.MEDIA_PREVIEW_COORDS]:t=>t?.join(" "),[h.MEDIA_RENDITION_LIST]:function(t){return t?.map(Yg).join(" ")},[h.MEDIA_AUDIO_TRACK_LIST]:function(t){return t?.map(jg).join(" ")}},Un=(t,e)=>{if((i=(n=t).closest)!=null&&i.call(n,'*[slot="media"]'))return;var n,i;const a=(s,o)=>{var l,d;Cd(s)&&o(s);const{children:u=[]}=s??{};[...u,...(d=(l=s?.shadowRoot)==null?void 0:l.children)!=null?d:[]].forEach(c=>Un(c,o))},r=t?.nodeName.toLowerCase();!r.includes("-")||Cd(t)?a(t,e):g.customElements.whenDefined(r).then(()=>{a(t,e)})},Th=(t,e,n)=>{t.forEach(i=>{if(e in i)return void(i[e]=n);const a=yv(i),r=e.toLowerCase();a.includes(r)&&(async(s,o,l)=>{var d,u;if(s.isConnected||await Qp(0),typeof l=="boolean"||l==null)return B(s,o,l);if(typeof l=="number")return he(s,o,l);if(typeof l=="string")return ae(s,o,l);if(Array.isArray(l)&&!l.length)return s.removeAttribute(o);const c=(u=(d=_h[o])==null?void 0:d.call(_h,l))!=null?u:l;s.setAttribute(o,c)})(i,r,n)})},bE=(t,e,n)=>{Un(t,e);const i=l=>{var d;const u=(d=l?.composedPath()[0])!=null?d:l.target;e(u)},a=l=>{var d;const u=(d=l?.composedPath()[0])!=null?d:l.target;n(u)};t.addEventListener(R.REGISTER_MEDIA_STATE_RECEIVER,i),t.addEventListener(R.UNREGISTER_MEDIA_STATE_RECEIVER,a);let r=[];const s=l=>{const d=l.target;d.name!=="media"&&(r.forEach(u=>Un(u,n)),r=[...d.assignedElements({flatten:!0})],r.forEach(u=>Un(u,e)))};t.addEventListener("slotchange",s);const o=new MutationObserver(l=>{l.forEach(d=>{const{addedNodes:u=[],removedNodes:c=[],type:m,target:p,attributeName:v}=d;m==="childList"?(Array.prototype.forEach.call(u,b=>Un(b,e)),Array.prototype.forEach.call(c,b=>Un(b,n))):m==="attributes"&&v===F.MEDIA_CHROME_ATTRIBUTES&&(Cd(p)?e(p):n(p))})});return o.observe(t,{childList:!0,attributes:!0,subtree:!0}),()=>{Un(t,n),t.removeEventListener("slotchange",s),o.disconnect(),t.removeEventListener(R.REGISTER_MEDIA_STATE_RECEIVER,i),t.removeEventListener(R.UNREGISTER_MEDIA_STATE_RECEIVER,a)}};g.customElements.get("media-controller")||g.customElements.define("media-controller",Ev);var fE=Ev;const Tl="placement",Al="bounds";class ws extends g.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!av(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;const n=this.placement;if(n==="left"||n==="right")return void this.style.removeProperty("--media-tooltip-offset-x");const i=getComputedStyle(this),a=(e=ha(this,"#"+this.bounds))!=null?e:$e(this);if(!a)return;const{x:r,width:s}=a.getBoundingClientRect(),{x:o,width:l}=this.getBoundingClientRect(),d=o+l,u=r+s,c=i.getPropertyValue("--media-tooltip-offset-x"),m=c?parseFloat(c.replace("px","")):0,p=i.getPropertyValue("--media-tooltip-container-margin"),v=p?parseFloat(p.replace("px","")):0,b=o-r+m-v,f=d-u+m+v;b<0?this.style.setProperty("--media-tooltip-offset-x",`${b}px`):f>0?this.style.setProperty("--media-tooltip-offset-x",`${f}px`):this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){const e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[Tl,Al]}get placement(){return ie(this,Tl)}set placement(e){ae(this,Tl,e)}get bounds(){return ie(this,Al)}set bounds(e){ae(this,Al,e)}}ws.shadowRootOptions={mode:"open"},ws.getTemplateHTML=function(t){return`
|
|
218
|
+
<style>
|
|
219
|
+
:host {
|
|
220
|
+
--_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));
|
|
221
|
+
--_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));
|
|
222
|
+
--_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);
|
|
223
|
+
--_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);
|
|
224
|
+
--_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));
|
|
225
|
+
position: relative;
|
|
226
|
+
pointer-events: none;
|
|
227
|
+
display: var(--media-tooltip-display, inline-flex);
|
|
228
|
+
justify-content: center;
|
|
229
|
+
align-items: center;
|
|
230
|
+
box-sizing: border-box;
|
|
231
|
+
z-index: var(--media-tooltip-z-index, 1);
|
|
232
|
+
background: var(--_tooltip-background);
|
|
233
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
234
|
+
font: var(--media-font,
|
|
235
|
+
var(--media-font-weight, 400)
|
|
236
|
+
var(--media-font-size, 13px) /
|
|
237
|
+
var(--media-text-content-height, var(--media-control-height, 18px))
|
|
238
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
239
|
+
padding: var(--media-tooltip-padding, .35em .7em);
|
|
240
|
+
border: var(--media-tooltip-border, none);
|
|
241
|
+
border-radius: var(--media-tooltip-border-radius, 5px);
|
|
242
|
+
filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));
|
|
243
|
+
white-space: var(--media-tooltip-white-space, nowrap);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:host([hidden]) {
|
|
247
|
+
display: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
img, svg {
|
|
251
|
+
display: inline-block;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#arrow {
|
|
255
|
+
position: absolute;
|
|
256
|
+
width: 0px;
|
|
257
|
+
height: 0px;
|
|
258
|
+
border-style: solid;
|
|
259
|
+
display: var(--media-tooltip-arrow-display, block);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host(:not([placement])),
|
|
263
|
+
:host([placement="top"]) {
|
|
264
|
+
position: absolute;
|
|
265
|
+
bottom: calc(100% + var(--media-tooltip-distance, 12px));
|
|
266
|
+
left: 50%;
|
|
267
|
+
transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
|
|
268
|
+
}
|
|
269
|
+
:host(:not([placement])) #arrow,
|
|
270
|
+
:host([placement="top"]) #arrow {
|
|
271
|
+
top: 100%;
|
|
272
|
+
left: 50%;
|
|
273
|
+
border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);
|
|
274
|
+
border-color: var(--_tooltip-arrow-background) transparent transparent transparent;
|
|
275
|
+
transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:host([placement="right"]) {
|
|
279
|
+
position: absolute;
|
|
280
|
+
left: calc(100% + var(--media-tooltip-distance, 12px));
|
|
281
|
+
top: 50%;
|
|
282
|
+
transform: translate(0, -50%);
|
|
283
|
+
}
|
|
284
|
+
:host([placement="right"]) #arrow {
|
|
285
|
+
top: 50%;
|
|
286
|
+
right: 100%;
|
|
287
|
+
border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;
|
|
288
|
+
border-color: transparent var(--_tooltip-arrow-background) transparent transparent;
|
|
289
|
+
transform: translate(0, -50%);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host([placement="bottom"]) {
|
|
293
|
+
position: absolute;
|
|
294
|
+
top: calc(100% + var(--media-tooltip-distance, 12px));
|
|
295
|
+
left: 50%;
|
|
296
|
+
transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
|
|
297
|
+
}
|
|
298
|
+
:host([placement="bottom"]) #arrow {
|
|
299
|
+
bottom: 100%;
|
|
300
|
+
left: 50%;
|
|
301
|
+
border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);
|
|
302
|
+
border-color: transparent transparent var(--_tooltip-arrow-background) transparent;
|
|
303
|
+
transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:host([placement="left"]) {
|
|
307
|
+
position: absolute;
|
|
308
|
+
right: calc(100% + var(--media-tooltip-distance, 12px));
|
|
309
|
+
top: 50%;
|
|
310
|
+
transform: translate(0, -50%);
|
|
311
|
+
}
|
|
312
|
+
:host([placement="left"]) #arrow {
|
|
313
|
+
top: 50%;
|
|
314
|
+
left: 100%;
|
|
315
|
+
border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);
|
|
316
|
+
border-color: transparent transparent transparent var(--_tooltip-arrow-background);
|
|
317
|
+
transform: translate(0, -50%);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host([placement="none"]) #arrow {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
</style>
|
|
324
|
+
<slot></slot>
|
|
325
|
+
<div id="arrow"></div>
|
|
326
|
+
`},g.customElements.get("media-tooltip")||g.customElements.define("media-tooltip",ws);var Rt,zi,An,Ri,Is,Dd,_v,Ah=ws,mc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ve=(t,e,n)=>(mc(t,e,"read from private field"),n?n.call(t):e.get(t)),ci=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Br=(t,e,n,i)=>(mc(t,e,"write to private field"),e.set(t,n),n);const Vr="tooltipplacement",kh="disabled",wh="notooltip";class De extends g.HTMLElement{constructor(){if(super(),ci(this,Dd),ci(this,Rt,void 0),this.preventClick=!1,this.tooltipEl=null,ci(this,zi,e=>{this.preventClick||this.handleClick(e),setTimeout(ve(this,An),0)}),ci(this,An,()=>{var e,n;(n=(e=this.tooltipEl)==null?void 0:e.updateXOffset)==null||n.call(e)}),ci(this,Ri,e=>{const{key:n}=e;this.keysUsed.includes(n)?this.preventClick||this.handleClick(e):this.removeEventListener("keyup",ve(this,Ri))}),ci(this,Is,e=>{const{metaKey:n,altKey:i,key:a}=e;n||i||!this.keysUsed.includes(a)?this.removeEventListener("keyup",ve(this,Ri)):this.addEventListener("keyup",ve(this,Ri),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes),n=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(n):this.shadowRoot.innerHTML=n}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",Vr,F.MEDIA_CONTROLLER,h.MEDIA_LANG]}enable(){this.addEventListener("click",ve(this,zi)),this.addEventListener("keydown",ve(this,Is)),this.tabIndex=0}disable(){this.removeEventListener("click",ve(this,zi)),this.removeEventListener("keydown",ve(this,Is)),this.removeEventListener("keyup",ve(this,Ri)),this.tabIndex=-1}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===F.MEDIA_CONTROLLER?(n&&((r=(a=ve(this,Rt))==null?void 0:a.unassociateElement)==null||r.call(a,this),Br(this,Rt,null)),i&&this.isConnected&&(Br(this,Rt,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=ve(this,Rt))==null?void 0:o.associateElement)==null||l.call(o,this))):e==="disabled"&&i!==n?i==null?this.enable():this.disable():e===Vr&&this.tooltipEl&&i!==n?this.tooltipEl.placement=i:e===h.MEDIA_LANG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),ve(this,An).call(this)}connectedCallback(){var e,n,i;const{style:a}=Ae(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");const r=this.getAttribute(F.MEDIA_CONTROLLER);r&&(Br(this,Rt,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=ve(this,Rt))==null?void 0:n.associateElement)==null||i.call(n,this)),g.customElements.whenDefined("media-tooltip").then(()=>{return(s=this,o=Dd,l=_v,mc(s,o,"access private method"),l).call(this);var s,o,l})}disconnectedCallback(){var e,n;this.disable(),(n=(e=ve(this,Rt))==null?void 0:e.unassociateElement)==null||n.call(e,this),Br(this,Rt,null),this.removeEventListener("mouseenter",ve(this,An)),this.removeEventListener("focus",ve(this,An)),this.removeEventListener("click",ve(this,zi))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return ie(this,Vr)}set tooltipPlacement(e){ae(this,Vr,e)}get mediaController(){return ie(this,F.MEDIA_CONTROLLER)}set mediaController(e){ae(this,F.MEDIA_CONTROLLER,e)}get disabled(){return W(this,kh)}set disabled(e){B(this,kh,e)}get noTooltip(){return W(this,wh)}set noTooltip(e){B(this,wh,e)}handleClick(e){}}Rt=new WeakMap,zi=new WeakMap,An=new WeakMap,Ri=new WeakMap,Is=new WeakMap,Dd=new WeakSet,_v=function(){this.addEventListener("mouseenter",ve(this,An)),this.addEventListener("focus",ve(this,An)),this.addEventListener("click",ve(this,zi));const t=this.tooltipPlacement;t&&this.tooltipEl&&(this.tooltipEl.placement=t)},De.shadowRootOptions={mode:"open"},De.getTemplateHTML=function(t,e={}){return`
|
|
327
|
+
<style>
|
|
328
|
+
:host {
|
|
329
|
+
position: relative;
|
|
330
|
+
font: var(--media-font,
|
|
331
|
+
var(--media-font-weight, bold)
|
|
332
|
+
var(--media-font-size, 14px) /
|
|
333
|
+
var(--media-text-content-height, var(--media-control-height, 24px))
|
|
334
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
335
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
336
|
+
background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
|
|
337
|
+
padding: var(--media-button-padding, var(--media-control-padding, 10px));
|
|
338
|
+
justify-content: var(--media-button-justify-content, center);
|
|
339
|
+
display: inline-flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
vertical-align: middle;
|
|
342
|
+
box-sizing: border-box;
|
|
343
|
+
transition: background .15s linear;
|
|
344
|
+
pointer-events: auto;
|
|
345
|
+
cursor: var(--media-cursor, pointer);
|
|
346
|
+
-webkit-tap-highlight-color: transparent;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
:host(:focus-visible) {
|
|
351
|
+
box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
|
|
352
|
+
outline: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:host(:where(:focus)) {
|
|
356
|
+
box-shadow: none;
|
|
357
|
+
outline: 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:host(:hover) {
|
|
361
|
+
background: var(--media-control-hover-background, rgba(50 50 70 / .7));
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
svg, img, ::slotted(svg), ::slotted(img) {
|
|
365
|
+
width: var(--media-button-icon-width);
|
|
366
|
+
height: var(--media-button-icon-height, var(--media-control-height, 24px));
|
|
367
|
+
transform: var(--media-button-icon-transform);
|
|
368
|
+
transition: var(--media-button-icon-transition);
|
|
369
|
+
fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
|
|
370
|
+
vertical-align: middle;
|
|
371
|
+
max-width: 100%;
|
|
372
|
+
max-height: 100%;
|
|
373
|
+
min-width: 100%;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
media-tooltip {
|
|
377
|
+
|
|
378
|
+
max-width: 0;
|
|
379
|
+
overflow-x: clip;
|
|
380
|
+
opacity: 0;
|
|
381
|
+
transition: opacity .3s, max-width 0s 9s;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:host(:hover) media-tooltip,
|
|
385
|
+
:host(:focus-visible) media-tooltip {
|
|
386
|
+
max-width: 100vw;
|
|
387
|
+
opacity: 1;
|
|
388
|
+
transition: opacity .3s;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
:host([notooltip]) slot[name="tooltip"] {
|
|
392
|
+
display: none;
|
|
393
|
+
}
|
|
394
|
+
</style>
|
|
395
|
+
|
|
396
|
+
${this.getSlotTemplateHTML(t,e)}
|
|
397
|
+
|
|
398
|
+
<slot name="tooltip">
|
|
399
|
+
<media-tooltip part="tooltip" aria-hidden="true">
|
|
400
|
+
<template shadowrootmode="${Ah.shadowRootOptions.mode}">
|
|
401
|
+
${Ah.getTemplateHTML({})}
|
|
402
|
+
</template>
|
|
403
|
+
<slot name="tooltip-content">
|
|
404
|
+
${this.getTooltipContentHTML(t)}
|
|
405
|
+
</slot>
|
|
406
|
+
</media-tooltip>
|
|
407
|
+
</slot>
|
|
408
|
+
`},De.getSlotTemplateHTML=function(t,e){return`
|
|
409
|
+
<slot></slot>
|
|
410
|
+
`},De.getTooltipContentHTML=function(){return""},g.customElements.get("media-chrome-button")||g.customElements.define("media-chrome-button",De);const Ih=`<svg aria-hidden="true" viewBox="0 0 26 24">
|
|
411
|
+
<path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
|
|
412
|
+
</svg>
|
|
413
|
+
`,Sh=t=>{const e=t.mediaIsAirplaying?L("stop airplay"):L("start airplay");t.setAttribute("aria-label",e)};class kl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_IS_AIRPLAYING,h.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Sh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_IS_AIRPLAYING&&Sh(this)}get mediaIsAirplaying(){return W(this,h.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){B(this,h.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return ie(this,h.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){ae(this,h.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){const e=new g.CustomEvent(R.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}kl.getSlotTemplateHTML=function(t){return`
|
|
414
|
+
<style>
|
|
415
|
+
:host([${h.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {
|
|
416
|
+
display: none !important;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
:host(:not([${h.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {
|
|
421
|
+
display: none !important;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
:host([${h.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],
|
|
425
|
+
:host(:not([${h.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {
|
|
426
|
+
display: none;
|
|
427
|
+
}
|
|
428
|
+
</style>
|
|
429
|
+
|
|
430
|
+
<slot name="icon">
|
|
431
|
+
<slot name="enter">${Ih}</slot>
|
|
432
|
+
<slot name="exit">${Ih}</slot>
|
|
433
|
+
</slot>
|
|
434
|
+
`},kl.getTooltipContentHTML=function(){return`
|
|
435
|
+
<slot name="tooltip-enter">${L("start airplay")}</slot>
|
|
436
|
+
<slot name="tooltip-exit">${L("stop airplay")}</slot>
|
|
437
|
+
`},g.customElements.get("media-airplay-button")||g.customElements.define("media-airplay-button",kl);const Rh=t=>{t.setAttribute("aria-checked",mv(t).toString())};class Ld extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_SUBTITLES_LIST,h.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",L("closed captions")),Rh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_SUBTITLES_SHOWING&&Rh(this)}get mediaSubtitlesList(){return Ch(this,h.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){Dh(this,h.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Ch(this,h.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){Dh(this,h.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new g.CustomEvent(R.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}Ld.getSlotTemplateHTML=function(t){return`
|
|
438
|
+
<style>
|
|
439
|
+
:host([aria-checked="true"]) slot[name=off] {
|
|
440
|
+
display: none !important;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
:host(:not([aria-checked="true"])) slot[name=on] {
|
|
445
|
+
display: none !important;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
:host([aria-checked="true"]) slot[name=tooltip-enable],
|
|
449
|
+
:host(:not([aria-checked="true"])) slot[name=tooltip-disable] {
|
|
450
|
+
display: none;
|
|
451
|
+
}
|
|
452
|
+
</style>
|
|
453
|
+
|
|
454
|
+
<slot name="icon">
|
|
455
|
+
<slot name="on"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
456
|
+
<path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
|
|
457
|
+
</svg></slot>
|
|
458
|
+
<slot name="off"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
459
|
+
<path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
|
|
460
|
+
</svg></slot>
|
|
461
|
+
</slot>
|
|
462
|
+
`},Ld.getTooltipContentHTML=function(){return`
|
|
463
|
+
<slot name="tooltip-enable">${L("Enable captions")}</slot>
|
|
464
|
+
<slot name="tooltip-disable">${L("Disable captions")}</slot>
|
|
465
|
+
`};const Ch=(t,e)=>{const n=t.getAttribute(e);return n?il(n):[]},Dh=(t,e,n)=>{if(!n?.length)return void t.removeAttribute(e);const i=Cr(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};g.customElements.get("media-captions-button")||g.customElements.define("media-captions-button",Ld);const Lh=t=>{const e=t.mediaIsCasting?L("stop casting"):L("start casting");t.setAttribute("aria-label",e)};class wl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_IS_CASTING,h.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Lh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_IS_CASTING&&Lh(this)}get mediaIsCasting(){return W(this,h.MEDIA_IS_CASTING)}set mediaIsCasting(e){B(this,h.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return ie(this,h.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){ae(this,h.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){const e=this.mediaIsCasting?R.MEDIA_EXIT_CAST_REQUEST:R.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new g.CustomEvent(e,{composed:!0,bubbles:!0}))}}wl.getSlotTemplateHTML=function(t){return`
|
|
466
|
+
<style>
|
|
467
|
+
:host([${h.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {
|
|
468
|
+
display: none !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
:host(:not([${h.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {
|
|
473
|
+
display: none !important;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
:host([${h.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],
|
|
477
|
+
:host(:not([${h.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {
|
|
478
|
+
display: none;
|
|
479
|
+
}
|
|
480
|
+
</style>
|
|
481
|
+
|
|
482
|
+
<slot name="icon">
|
|
483
|
+
<slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>
|
|
484
|
+
<slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>
|
|
485
|
+
</slot>
|
|
486
|
+
`},wl.getTooltipContentHTML=function(){return`
|
|
487
|
+
<slot name="tooltip-enter">${L("Start casting")}</slot>
|
|
488
|
+
<slot name="tooltip-exit">${L("Stop casting")}</slot>
|
|
489
|
+
`},g.customElements.get("media-cast-button")||g.customElements.define("media-cast-button",wl);var Ss,lr,Hn,Rs,Md,xd,Tv,Nd,Av,Od,kv,Pd,wv,Ud,Iv,pc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ln=(t,e,n)=>(pc(t,e,"read from private field"),e.get(t)),Qt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Hd=(t,e,n,i)=>(pc(t,e,"write to private field"),e.set(t,n),n),Mn=(t,e,n)=>(pc(t,e,"access private method"),n);const $r="open",gE="anchor";class Zi extends g.HTMLElement{constructor(){super(),Qt(this,Rs),Qt(this,xd),Qt(this,Nd),Qt(this,Od),Qt(this,Pd),Qt(this,Ud),Qt(this,Ss,!1),Qt(this,lr,null),Qt(this,Hn,null),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}static get observedAttributes(){return[$r,gE]}get open(){return W(this,$r)}set open(e){B(this,$r,e)}handleEvent(e){switch(e.type){case"invoke":Mn(this,Od,kv).call(this,e);break;case"focusout":Mn(this,Pd,wv).call(this,e);break;case"keydown":Mn(this,Ud,Iv).call(this,e)}}connectedCallback(){Mn(this,Rs,Md).call(this),this.role||(this.role="dialog")}attributeChangedCallback(e,n,i){Mn(this,Rs,Md).call(this),e===$r&&i!==n&&(this.open?Mn(this,xd,Tv).call(this):Mn(this,Nd,Av).call(this))}focus(){Hd(this,lr,sc());const e=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),n=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(e||n)return;const i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');i?.focus()}get keysUsed(){return["Escape","Tab"]}}Ss=new WeakMap,lr=new WeakMap,Hn=new WeakMap,Rs=new WeakSet,Md=function(){if(!Ln(this,Ss)&&(Hd(this,Ss,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);const t=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t),queueMicrotask(()=>{const{style:e}=Ae(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},xd=new WeakSet,Tv=function(){var t;(t=Ln(this,Hn))==null||t.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},Nd=new WeakSet,Av=function(){var t;(t=Ln(this,Hn))==null||t.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},Od=new WeakSet,kv=function(t){Hd(this,Hn,t.relatedTarget),on(this,t.relatedTarget)||(this.open=!this.open)},Pd=new WeakSet,wv=function(t){var e;on(this,t.relatedTarget)||((e=Ln(this,lr))==null||e.focus(),Ln(this,Hn)&&Ln(this,Hn)!==t.relatedTarget&&this.open&&(this.open=!1))},Ud=new WeakSet,Iv=function(t){var e,n,i,a,r;const{key:s,ctrlKey:o,altKey:l,metaKey:d}=t;o||l||d||this.keysUsed.includes(s)&&(t.preventDefault(),t.stopPropagation(),s==="Tab"?(t.shiftKey?(n=(e=this.previousElementSibling)==null?void 0:e.focus)==null||n.call(e):(a=(i=this.nextElementSibling)==null?void 0:i.focus)==null||a.call(i),this.blur()):s==="Escape"&&((r=Ln(this,lr))==null||r.focus(),this.open=!1))},Zi.shadowRootOptions={mode:"open"},Zi.getTemplateHTML=function(t){return`
|
|
490
|
+
<style>
|
|
491
|
+
:host {
|
|
492
|
+
font: var(--media-font,
|
|
493
|
+
var(--media-font-weight, normal)
|
|
494
|
+
var(--media-font-size, 14px) /
|
|
495
|
+
var(--media-text-content-height, var(--media-control-height, 24px))
|
|
496
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
497
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
498
|
+
display: var(--media-dialog-display, inline-flex);
|
|
499
|
+
justify-content: center;
|
|
500
|
+
align-items: center;
|
|
501
|
+
|
|
502
|
+
transition-behavior: allow-discrete;
|
|
503
|
+
visibility: hidden;
|
|
504
|
+
opacity: 0;
|
|
505
|
+
transform: translateY(2px) scale(.99);
|
|
506
|
+
pointer-events: none;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
:host([open]) {
|
|
510
|
+
transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;
|
|
511
|
+
visibility: visible;
|
|
512
|
+
opacity: 1;
|
|
513
|
+
transform: translateY(0) scale(1);
|
|
514
|
+
pointer-events: auto;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
#content {
|
|
518
|
+
display: flex;
|
|
519
|
+
position: relative;
|
|
520
|
+
box-sizing: border-box;
|
|
521
|
+
width: min(320px, 100%);
|
|
522
|
+
word-wrap: break-word;
|
|
523
|
+
max-height: 100%;
|
|
524
|
+
overflow: auto;
|
|
525
|
+
text-align: center;
|
|
526
|
+
line-height: 1.4;
|
|
527
|
+
}
|
|
528
|
+
</style>
|
|
529
|
+
${this.getSlotTemplateHTML(t)}
|
|
530
|
+
`},Zi.getSlotTemplateHTML=function(t){return`
|
|
531
|
+
<slot id="content"></slot>
|
|
532
|
+
`},g.customElements.get("media-chrome-dialog")||g.customElements.define("media-chrome-dialog",Zi);var Ct,Cs,Ds,Ls,pt,Ho,Ms,xs,Ns,Wd,Mh,Os,Bd,Ps,Vd,Wo,$d,qd,Sv,Kd,Rv,Fd,Cv,Yd,Dv,vc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},le=(t,e,n)=>(vc(t,e,"read from private field"),n?n.call(t):e.get(t)),Me=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},pn=(t,e,n,i)=>(vc(t,e,"write to private field"),e.set(t,n),n),mt=(t,e,n)=>(vc(t,e,"access private method"),n);class Xi extends g.HTMLElement{constructor(){if(super(),Me(this,Wd),Me(this,Os),Me(this,Ps),Me(this,Wo),Me(this,qd),Me(this,Kd),Me(this,Fd),Me(this,Yd),Me(this,Ct,void 0),Me(this,Cs,void 0),Me(this,Ds,void 0),Me(this,Ls,void 0),Me(this,pt,{}),Me(this,Ho,[]),Me(this,Ms,()=>{if(this.range.matches(":focus-visible")){const{style:e}=Ae(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),Me(this,xs,()=>{const{style:e}=Ae(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),Me(this,Ns,()=>{const e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes),n=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(n):this.shadowRoot.innerHTML=n}this.container=this.shadowRoot.querySelector("#container"),pn(this,Ds,this.shadowRoot.querySelector("#startpoint")),pn(this,Ls,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",F.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===F.MEDIA_CONTROLLER?(n&&((r=(a=le(this,Ct))==null?void 0:a.unassociateElement)==null||r.call(a,this),pn(this,Ct,null)),i&&this.isConnected&&(pn(this,Ct,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=le(this,Ct))==null?void 0:o.associateElement)==null||l.call(o,this))):(e==="disabled"||e==="aria-disabled"&&n!==i)&&(i==null?(this.range.removeAttribute(e),mt(this,Os,Bd).call(this)):(this.range.setAttribute(e,i),mt(this,Ps,Vd).call(this)))}connectedCallback(){var e,n,i;const{style:a}=Ae(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),le(this,pt).pointer=Ae(this.shadowRoot,"#pointer"),le(this,pt).progress=Ae(this.shadowRoot,"#progress"),le(this,pt).thumb=Ae(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),le(this,pt).activeSegment=Ae(this.shadowRoot,"#segments-clipping rect:nth-child(0)");const r=this.getAttribute(F.MEDIA_CONTROLLER);r&&(pn(this,Ct,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=le(this,Ct))==null?void 0:n.associateElement)==null||i.call(n,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",le(this,Ms)),this.shadowRoot.addEventListener("focusout",le(this,xs)),mt(this,Os,Bd).call(this),da(this.container,le(this,Ns))}disconnectedCallback(){var e,n;mt(this,Ps,Vd).call(this),(n=(e=le(this,Ct))==null?void 0:e.unassociateElement)==null||n.call(e,this),pn(this,Ct,null),this.shadowRoot.removeEventListener("focusin",le(this,Ms)),this.shadowRoot.removeEventListener("focusout",le(this,xs)),ua(this.container,le(this,Ns))}updatePointerBar(e){var n;(n=le(this,pt).pointer)==null||n.style.setProperty("width",100*this.getPointerRatio(e)+"%")}updateBar(){var e,n;const i=100*this.range.valueAsNumber;(e=le(this,pt).progress)==null||e.style.setProperty("width",`${i}%`),(n=le(this,pt).thumb)==null||n.style.setProperty("left",`${i}%`)}updateSegments(e){const n=this.shadowRoot.querySelector("#segments-clipping");if(n.textContent="",this.container.classList.toggle("segments",!!e?.length),!e?.length)return;const i=[...new Set([+this.range.min,...e.flatMap(r=>[r.start,r.end]),+this.range.max])];pn(this,Ho,[...i]);const a=i.pop();for(const[r,s]of i.entries()){const[o,l]=[r===0,r===i.length-1],d=o?"calc(var(--segments-gap) / -1)":100*s+"%",u=`calc(${100*((l?a:i[r+1])-s)}%${o||l?"":" - var(--segments-gap)"})`,c=ge.createElementNS("http://www.w3.org/2000/svg","rect"),m=oc(this.shadowRoot,`#segments-clipping rect:nth-child(${r+1})`);m.style.setProperty("x",d),m.style.setProperty("width",u),n.append(c)}}getPointerRatio(e){return function(n,i,a,r){const s=r.x-a.x,o=r.y-a.y,l=s*s+o*o;if(l===0)return 0;const d=((n-a.x)*s+(i-a.y)*o)/l;return Math.max(0,Math.min(1,d))}(e.clientX,e.clientY,le(this,Ds).getBoundingClientRect(),le(this,Ls).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":mt(this,Yd,Dv).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":mt(this,qd,Sv).call(this,e);break;case"pointerdown":mt(this,Wo,$d).call(this,e);break;case"pointerup":mt(this,Kd,Rv).call(this);break;case"pointerleave":mt(this,Fd,Cv).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}Ct=new WeakMap,Cs=new WeakMap,Ds=new WeakMap,Ls=new WeakMap,pt=new WeakMap,Ho=new WeakMap,Ms=new WeakMap,xs=new WeakMap,Ns=new WeakMap,Wd=new WeakSet,Mh=function(t){const e=le(this,pt).activeSegment;if(!e)return;const n=this.getPointerRatio(t),i=`#segments-clipping rect:nth-child(${le(this,Ho).findIndex((a,r,s)=>{const o=s[r+1];return o!=null&&n>=a&&n<=o})+1})`;e.selectorText==i&&e.style.transform||(e.selectorText=i,e.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},Os=new WeakSet,Bd=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},Ps=new WeakSet,Vd=function(){var t,e;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),(t=g.window)==null||t.removeEventListener("pointerup",this),(e=g.window)==null||e.removeEventListener("pointermove",this)},Wo=new WeakSet,$d=function(t){var e;pn(this,Cs,t.composedPath().includes(this.range)),(e=g.window)==null||e.addEventListener("pointerup",this)},qd=new WeakSet,Sv=function(t){var e;t.pointerType!=="mouse"&&mt(this,Wo,$d).call(this,t),this.addEventListener("pointerleave",this),(e=g.window)==null||e.addEventListener("pointermove",this)},Kd=new WeakSet,Rv=function(){var t;(t=g.window)==null||t.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},Fd=new WeakSet,Cv=function(){var t,e;this.removeEventListener("pointerleave",this),(t=g.window)==null||t.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),(e=le(this,pt).activeSegment)==null||e.style.removeProperty("transform")},Yd=new WeakSet,Dv=function(t){t.pointerType==="pen"&&t.buttons===0||(this.toggleAttribute("dragging",t.buttons===1||t.pointerType!=="mouse"),this.updatePointerBar(t),mt(this,Wd,Mh).call(this,t),!this.dragging||t.pointerType==="mouse"&&le(this,Cs)||(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(t),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},Xi.shadowRootOptions={mode:"open"},Xi.getTemplateHTML=function(t){return`
|
|
533
|
+
<style>
|
|
534
|
+
:host {
|
|
535
|
+
--_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
|
|
536
|
+
--_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
|
|
537
|
+
|
|
538
|
+
box-shadow: var(--_focus-visible-box-shadow, none);
|
|
539
|
+
background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
|
|
540
|
+
height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
|
|
541
|
+
display: inline-flex;
|
|
542
|
+
align-items: center;
|
|
543
|
+
|
|
544
|
+
vertical-align: middle;
|
|
545
|
+
box-sizing: border-box;
|
|
546
|
+
position: relative;
|
|
547
|
+
width: 100px;
|
|
548
|
+
transition: background .15s linear;
|
|
549
|
+
cursor: var(--media-cursor, pointer);
|
|
550
|
+
pointer-events: auto;
|
|
551
|
+
touch-action: none;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
input[type=range]:focus {
|
|
556
|
+
outline: 0;
|
|
557
|
+
}
|
|
558
|
+
input[type=range]:focus::-webkit-slider-runnable-track {
|
|
559
|
+
outline: 0;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
:host(:hover) {
|
|
563
|
+
background: var(--media-control-hover-background, rgb(50 50 70 / .7));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
#leftgap {
|
|
567
|
+
padding-left: var(--media-range-padding-left, var(--_media-range-padding));
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
#rightgap {
|
|
571
|
+
padding-right: var(--media-range-padding-right, var(--_media-range-padding));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
#startpoint,
|
|
575
|
+
#endpoint {
|
|
576
|
+
position: absolute;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
#endpoint {
|
|
580
|
+
right: 0;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
#container {
|
|
584
|
+
|
|
585
|
+
width: var(--media-range-track-width, 100%);
|
|
586
|
+
transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
|
|
587
|
+
position: relative;
|
|
588
|
+
height: 100%;
|
|
589
|
+
display: flex;
|
|
590
|
+
align-items: center;
|
|
591
|
+
min-width: 40px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
#range {
|
|
595
|
+
|
|
596
|
+
display: var(--media-time-range-hover-display, block);
|
|
597
|
+
bottom: var(--media-time-range-hover-bottom, -7px);
|
|
598
|
+
height: var(--media-time-range-hover-height, max(100% + 7px, 25px));
|
|
599
|
+
width: 100%;
|
|
600
|
+
position: absolute;
|
|
601
|
+
cursor: var(--media-cursor, pointer);
|
|
602
|
+
|
|
603
|
+
-webkit-appearance: none;
|
|
604
|
+
-webkit-tap-highlight-color: transparent;
|
|
605
|
+
background: transparent;
|
|
606
|
+
margin: 0;
|
|
607
|
+
z-index: 1;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@media (hover: hover) {
|
|
611
|
+
#range {
|
|
612
|
+
bottom: var(--media-time-range-hover-bottom, -5px);
|
|
613
|
+
height: var(--media-time-range-hover-height, max(100% + 5px, 20px));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
#range::-webkit-slider-thumb {
|
|
620
|
+
-webkit-appearance: none;
|
|
621
|
+
background: transparent;
|
|
622
|
+
width: .1px;
|
|
623
|
+
height: .1px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
#range::-moz-range-thumb {
|
|
628
|
+
background: transparent;
|
|
629
|
+
border: transparent;
|
|
630
|
+
width: .1px;
|
|
631
|
+
height: .1px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
#appearance {
|
|
635
|
+
height: var(--media-range-track-height, 4px);
|
|
636
|
+
display: flex;
|
|
637
|
+
flex-direction: column;
|
|
638
|
+
justify-content: center;
|
|
639
|
+
width: 100%;
|
|
640
|
+
position: absolute;
|
|
641
|
+
|
|
642
|
+
will-change: transform;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
#track {
|
|
646
|
+
background: var(--media-range-track-background, rgb(255 255 255 / .2));
|
|
647
|
+
border-radius: var(--media-range-track-border-radius, 1px);
|
|
648
|
+
border: var(--media-range-track-border, none);
|
|
649
|
+
outline: var(--media-range-track-outline);
|
|
650
|
+
outline-offset: var(--media-range-track-outline-offset);
|
|
651
|
+
backdrop-filter: var(--media-range-track-backdrop-filter);
|
|
652
|
+
-webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
|
|
653
|
+
box-shadow: var(--media-range-track-box-shadow, none);
|
|
654
|
+
position: absolute;
|
|
655
|
+
width: 100%;
|
|
656
|
+
height: 100%;
|
|
657
|
+
overflow: hidden;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
#progress,
|
|
661
|
+
#pointer {
|
|
662
|
+
position: absolute;
|
|
663
|
+
height: 100%;
|
|
664
|
+
will-change: width;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
#progress {
|
|
668
|
+
background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
|
|
669
|
+
transition: var(--media-range-track-transition);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
#pointer {
|
|
673
|
+
background: var(--media-range-track-pointer-background);
|
|
674
|
+
border-right: var(--media-range-track-pointer-border-right);
|
|
675
|
+
transition: visibility .25s, opacity .25s;
|
|
676
|
+
visibility: hidden;
|
|
677
|
+
opacity: 0;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
@media (hover: hover) {
|
|
681
|
+
:host(:hover) #pointer {
|
|
682
|
+
transition: visibility .5s, opacity .5s;
|
|
683
|
+
visibility: visible;
|
|
684
|
+
opacity: 1;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
#thumb,
|
|
689
|
+
::slotted([slot=thumb]) {
|
|
690
|
+
width: var(--media-range-thumb-width, 10px);
|
|
691
|
+
height: var(--media-range-thumb-height, 10px);
|
|
692
|
+
transition: var(--media-range-thumb-transition);
|
|
693
|
+
transform: var(--media-range-thumb-transform, none);
|
|
694
|
+
opacity: var(--media-range-thumb-opacity, 1);
|
|
695
|
+
translate: -50%;
|
|
696
|
+
position: absolute;
|
|
697
|
+
left: 0;
|
|
698
|
+
cursor: var(--media-cursor, pointer);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
#thumb {
|
|
702
|
+
border-radius: var(--media-range-thumb-border-radius, 10px);
|
|
703
|
+
background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
|
|
704
|
+
box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
|
|
705
|
+
border: var(--media-range-thumb-border, none);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
:host([disabled]) #thumb {
|
|
709
|
+
background-color: #777;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.segments #appearance {
|
|
713
|
+
height: var(--media-range-segment-hover-height, 7px);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
#track {
|
|
717
|
+
clip-path: url(#segments-clipping);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
#segments {
|
|
721
|
+
--segments-gap: var(--media-range-segments-gap, 2px);
|
|
722
|
+
position: absolute;
|
|
723
|
+
width: 100%;
|
|
724
|
+
height: 100%;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
#segments-clipping {
|
|
728
|
+
transform: translateX(calc(var(--segments-gap) / 2));
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
#segments-clipping:empty {
|
|
732
|
+
display: none;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
#segments-clipping rect {
|
|
736
|
+
height: var(--media-range-track-height, 4px);
|
|
737
|
+
y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
|
|
738
|
+
transition: var(--media-range-segment-transition, transform .1s ease-in-out);
|
|
739
|
+
transform: var(--media-range-segment-transform, scaleY(1));
|
|
740
|
+
transform-origin: center;
|
|
741
|
+
}
|
|
742
|
+
</style>
|
|
743
|
+
<div id="leftgap"></div>
|
|
744
|
+
<div id="container">
|
|
745
|
+
<div id="startpoint"></div>
|
|
746
|
+
<div id="endpoint"></div>
|
|
747
|
+
<div id="appearance">
|
|
748
|
+
<div id="track" part="track">
|
|
749
|
+
<div id="pointer"></div>
|
|
750
|
+
<div id="progress" part="progress"></div>
|
|
751
|
+
</div>
|
|
752
|
+
<slot name="thumb">
|
|
753
|
+
<div id="thumb" part="thumb"></div>
|
|
754
|
+
</slot>
|
|
755
|
+
<svg id="segments"><clipPath id="segments-clipping"></clipPath></svg>
|
|
756
|
+
</div>
|
|
757
|
+
<input id="range" type="range" min="0" max="1" step="any" value="0">
|
|
758
|
+
|
|
759
|
+
${this.getContainerTemplateHTML(t)}
|
|
760
|
+
</div>
|
|
761
|
+
<div id="rightgap"></div>
|
|
762
|
+
`},Xi.getContainerTemplateHTML=function(t){return""},g.customElements.get("media-chrome-range")||g.customElements.define("media-chrome-range",Xi);var Dt,Lv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},qr=(t,e,n)=>(Lv(t,e,"read from private field"),n?n.call(t):e.get(t)),Kr=(t,e,n,i)=>(Lv(t,e,"write to private field"),e.set(t,n),n);class Il extends g.HTMLElement{constructor(){if(super(),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,Dt,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[F.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===F.MEDIA_CONTROLLER&&(n&&((r=(a=qr(this,Dt))==null?void 0:a.unassociateElement)==null||r.call(a,this),Kr(this,Dt,null)),i&&this.isConnected&&(Kr(this,Dt,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=qr(this,Dt))==null?void 0:o.associateElement)==null||l.call(o,this)))}connectedCallback(){var e,n,i;const a=this.getAttribute(F.MEDIA_CONTROLLER);a&&(Kr(this,Dt,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=qr(this,Dt))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=qr(this,Dt))==null?void 0:e.unassociateElement)==null||n.call(e,this),Kr(this,Dt,null)}}Dt=new WeakMap,Il.shadowRootOptions={mode:"open"},Il.getTemplateHTML=function(t){return`
|
|
763
|
+
<style>
|
|
764
|
+
:host {
|
|
765
|
+
|
|
766
|
+
box-sizing: border-box;
|
|
767
|
+
display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
|
|
768
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
769
|
+
--media-loading-indicator-icon-height: 44px;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
::slotted(media-time-range),
|
|
773
|
+
::slotted(media-volume-range) {
|
|
774
|
+
min-height: 100%;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
::slotted(media-time-range),
|
|
778
|
+
::slotted(media-clip-selector) {
|
|
779
|
+
flex-grow: 1;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
::slotted([role="menu"]) {
|
|
783
|
+
position: absolute;
|
|
784
|
+
}
|
|
785
|
+
</style>
|
|
786
|
+
|
|
787
|
+
<slot></slot>
|
|
788
|
+
`},g.customElements.get("media-control-bar")||g.customElements.define("media-control-bar",Il);var Lt,Mv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Fr=(t,e,n)=>(Mv(t,e,"read from private field"),n?n.call(t):e.get(t)),Yr=(t,e,n,i)=>(Mv(t,e,"write to private field"),e.set(t,n),n);class wn extends g.HTMLElement{constructor(){if(super(),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,Lt,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[F.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===F.MEDIA_CONTROLLER&&(n&&((r=(a=Fr(this,Lt))==null?void 0:a.unassociateElement)==null||r.call(a,this),Yr(this,Lt,null)),i&&this.isConnected&&(Yr(this,Lt,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=Fr(this,Lt))==null?void 0:o.associateElement)==null||l.call(o,this)))}connectedCallback(){var e,n,i;const{style:a}=Ae(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);const r=this.getAttribute(F.MEDIA_CONTROLLER);r&&(Yr(this,Lt,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=Fr(this,Lt))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=Fr(this,Lt))==null?void 0:e.unassociateElement)==null||n.call(e,this),Yr(this,Lt,null)}}Lt=new WeakMap,wn.shadowRootOptions={mode:"open"},wn.getTemplateHTML=function(t,e={}){return`
|
|
789
|
+
<style>
|
|
790
|
+
:host {
|
|
791
|
+
font: var(--media-font,
|
|
792
|
+
var(--media-font-weight, normal)
|
|
793
|
+
var(--media-font-size, 14px) /
|
|
794
|
+
var(--media-text-content-height, var(--media-control-height, 24px))
|
|
795
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
796
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
797
|
+
background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
|
|
798
|
+
padding: var(--media-control-padding, 10px);
|
|
799
|
+
display: inline-flex;
|
|
800
|
+
justify-content: center;
|
|
801
|
+
align-items: center;
|
|
802
|
+
vertical-align: middle;
|
|
803
|
+
box-sizing: border-box;
|
|
804
|
+
text-align: center;
|
|
805
|
+
pointer-events: auto;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
:host(:focus-visible) {
|
|
810
|
+
box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
|
|
811
|
+
outline: 0;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
:host(:where(:focus)) {
|
|
816
|
+
box-shadow: none;
|
|
817
|
+
outline: 0;
|
|
818
|
+
}
|
|
819
|
+
</style>
|
|
820
|
+
|
|
821
|
+
${this.getSlotTemplateHTML(t,e)}
|
|
822
|
+
`},wn.getSlotTemplateHTML=function(t,e){return`
|
|
823
|
+
<slot></slot>
|
|
824
|
+
`},g.customElements.get("media-text-display")||g.customElements.define("media-text-display",wn);var Ka,xv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},xh=(t,e,n)=>(xv(t,e,"read from private field"),n?n.call(t):e.get(t));class Nh extends wn{constructor(){var e,n,i,a;super(),((r,s,o)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,o)})(this,Ka,void 0),n=this,i=Ka,a=this.shadowRoot.querySelector("slot"),xv(n,i,"write to private field"),i.set(n,a),xh(this,Ka).textContent=Cn((e=this.mediaDuration)!=null?e:0)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_DURATION]}attributeChangedCallback(e,n,i){e===h.MEDIA_DURATION&&(xh(this,Ka).textContent=Cn(+i)),super.attributeChangedCallback(e,n,i)}get mediaDuration(){return ne(this,h.MEDIA_DURATION)}set mediaDuration(e){he(this,h.MEDIA_DURATION,e)}}Ka=new WeakMap,Nh.getSlotTemplateHTML=function(t,e){return`
|
|
825
|
+
<slot>${Cn(e.mediaDuration)}</slot>
|
|
826
|
+
`},g.customElements.get("media-duration-display")||g.customElements.define("media-duration-display",Nh);const EE={2:L("Network Error"),3:L("Decode Error"),4:L("Source Not Supported"),5:L("Encryption Error")},yE={2:L("A network error caused the media download to fail."),3:L("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:L("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:L("The media is encrypted and there are no keys to decrypt it.")},Nv=t=>{var e,n;return t.code===1?null:{title:(e=EE[t.code])!=null?e:`Error ${t.code}`,message:(n=yE[t.code])!=null?n:t.message}};var Us,Oh=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};function Ph(t){var e;const{title:n,message:i}=(e=Nv(t))!=null?e:{};let a="";return n&&(a+=`<slot name="error-${t.code}-title"><h3>${n}</h3></slot>`),i&&(a+=`<slot name="error-${t.code}-message"><p>${i}</p></slot>`),a}const Uh=[h.MEDIA_ERROR_CODE,h.MEDIA_ERROR_MESSAGE];class Hs extends Zi{constructor(){super(...arguments),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,Us,null)}static get observedAttributes(){return[...super.observedAttributes,...Uh]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,n,i){var a;if(super.attributeChangedCallback(e,n,i),!Uh.includes(e))return;const r=(a=this.mediaError)!=null?a:{code:this.mediaErrorCode,message:this.mediaErrorMessage};var s;this.open=(s=r).code&&Nv(s)!==null,this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(r))}get mediaError(){return Oh(e=this,n=Us,"read from private field"),i?i.call(e):n.get(e);var e,n,i}set mediaError(e){((n,i,a)=>{Oh(n,i,"write to private field"),i.set(n,a)})(this,Us,e)}get mediaErrorCode(){return ne(this,"mediaerrorcode")}set mediaErrorCode(e){he(this,"mediaerrorcode",e)}get mediaErrorMessage(){return ie(this,"mediaerrormessage")}set mediaErrorMessage(e){ae(this,"mediaerrormessage",e)}}Us=new WeakMap,Hs.getSlotTemplateHTML=function(t){return`
|
|
827
|
+
<style>
|
|
828
|
+
:host {
|
|
829
|
+
background: rgb(20 20 30 / .8);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
#content {
|
|
833
|
+
display: block;
|
|
834
|
+
padding: 1.2em 1.5em;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
h3,
|
|
838
|
+
p {
|
|
839
|
+
margin-block: 0 .3em;
|
|
840
|
+
}
|
|
841
|
+
</style>
|
|
842
|
+
<slot name="error-${t.mediaerrorcode}" id="content">
|
|
843
|
+
${Ph({code:+t.mediaerrorcode,message:t.mediaerrormessage})}
|
|
844
|
+
</slot>
|
|
845
|
+
`},Hs.formatErrorMessage=Ph,g.customElements.get("media-error-dialog")||g.customElements.define("media-error-dialog",Hs);var Ci,Di,Ov=Hs,cn=(t,e,n)=>(((i,a,r)=>{if(!a.has(i))throw TypeError("Cannot "+r)})(t,e,"read from private field"),n?n.call(t):e.get(t)),Hh=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};class Wh extends Zi{constructor(){super(...arguments),Hh(this,Ci,e=>{var n;if(!this.open)return;const i=(n=this.shadowRoot)==null?void 0:n.querySelector("#content");if(!i)return;const a=e.composedPath(),r=a[0]===this||a.includes(this),s=a.includes(i);r&&!s&&(this.open=!1)}),Hh(this,Di,e=>{if(!this.open)return;const n=e.shiftKey&&(e.key==="/"||e.key==="?");e.key!=="Escape"&&!n||e.ctrlKey||e.altKey||e.metaKey||(this.open=!1,e.preventDefault(),e.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",cn(this,Ci)),document.addEventListener("keydown",cn(this,Di)))}disconnectedCallback(){this.removeEventListener("click",cn(this,Ci)),document.removeEventListener("keydown",cn(this,Di))}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e==="open"&&(this.open?(this.addEventListener("click",cn(this,Ci)),document.addEventListener("keydown",cn(this,Di))):(this.removeEventListener("click",cn(this,Ci)),document.removeEventListener("keydown",cn(this,Di))))}}Ci=new WeakMap,Di=new WeakMap,Wh.getSlotTemplateHTML=function(t){return`
|
|
846
|
+
<style>
|
|
847
|
+
:host {
|
|
848
|
+
position: fixed;
|
|
849
|
+
top: 0;
|
|
850
|
+
left: 0;
|
|
851
|
+
z-index: 9999;
|
|
852
|
+
background: rgb(20 20 30 / .8);
|
|
853
|
+
backdrop-filter: blur(10px);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
#content {
|
|
857
|
+
display: block;
|
|
858
|
+
width: clamp(400px, 40vw, 700px);
|
|
859
|
+
max-width: 90vw;
|
|
860
|
+
text-align: left;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
h2 {
|
|
864
|
+
margin: 0 0 1.5rem 0;
|
|
865
|
+
font-size: 1.5rem;
|
|
866
|
+
font-weight: 500;
|
|
867
|
+
text-align: center;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.shortcuts-table {
|
|
871
|
+
width: 100%;
|
|
872
|
+
border-collapse: collapse;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.shortcuts-table tr {
|
|
876
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.shortcuts-table tr:last-child {
|
|
880
|
+
border-bottom: none;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.shortcuts-table td {
|
|
884
|
+
padding: 0.75rem 0.5rem;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.shortcuts-table td:first-child {
|
|
888
|
+
text-align: right;
|
|
889
|
+
padding-right: 1rem;
|
|
890
|
+
width: 40%;
|
|
891
|
+
min-width: 120px;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.shortcuts-table td:last-child {
|
|
895
|
+
padding-left: 1rem;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.key {
|
|
899
|
+
display: inline-block;
|
|
900
|
+
background: rgba(255, 255, 255, 0.15);
|
|
901
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
902
|
+
border-radius: 4px;
|
|
903
|
+
padding: 0.25rem 0.5rem;
|
|
904
|
+
font-family: 'Courier New', monospace;
|
|
905
|
+
font-size: 0.9rem;
|
|
906
|
+
font-weight: 500;
|
|
907
|
+
min-width: 1.5rem;
|
|
908
|
+
text-align: center;
|
|
909
|
+
margin: 0 0.2rem;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.description {
|
|
913
|
+
color: rgba(255, 255, 255, 0.9);
|
|
914
|
+
font-size: 0.95rem;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.key-combo {
|
|
918
|
+
display: flex;
|
|
919
|
+
align-items: center;
|
|
920
|
+
justify-content: flex-end;
|
|
921
|
+
gap: 0.3rem;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.key-separator {
|
|
925
|
+
color: rgba(255, 255, 255, 0.5);
|
|
926
|
+
font-size: 0.9rem;
|
|
927
|
+
}
|
|
928
|
+
</style>
|
|
929
|
+
<slot id="content">
|
|
930
|
+
|
|
931
|
+
<h2>Keyboard Shortcuts</h2>
|
|
932
|
+
<table class="shortcuts-table">${[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["←","j"],description:"Seek back 10s"},{keys:["→","l"],description:"Seek forward 10s"},{keys:["↑"],description:"Turn volume up"},{keys:["↓"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:e,description:n})=>`
|
|
933
|
+
<tr>
|
|
934
|
+
<td>
|
|
935
|
+
<div class="key-combo">${e.map((i,a)=>a>0?`<span class="key-separator">or</span><span class="key">${i}</span>`:`<span class="key">${i}</span>`).join("")}</div>
|
|
936
|
+
</td>
|
|
937
|
+
<td class="description">${n}</td>
|
|
938
|
+
</tr>
|
|
939
|
+
`).join("")}</table>
|
|
940
|
+
|
|
941
|
+
</slot>
|
|
942
|
+
`},g.customElements.get("media-keyboard-shortcuts-dialog")||g.customElements.define("media-keyboard-shortcuts-dialog",Wh);var Ws,Bh=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};const Vh=t=>{const e=t.mediaIsFullscreen?L("exit fullscreen mode"):L("enter fullscreen mode");t.setAttribute("aria-label",e)};class Sl extends De{constructor(){super(...arguments),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,Ws,null)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_IS_FULLSCREEN,h.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Vh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_IS_FULLSCREEN&&Vh(this)}get mediaFullscreenUnavailable(){return ie(this,h.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){ae(this,h.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return W(this,h.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){B(this,h.MEDIA_IS_FULLSCREEN,e)}handleClick(e){var n,i,a;a=e,Bh(n=this,i=Ws,"write to private field"),i.set(n,a);const r=((o,l)=>(Bh(o,l,"read from private field"),l.get(o)))(this,Ws)instanceof PointerEvent,s=this.mediaIsFullscreen?new g.CustomEvent(R.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new g.CustomEvent(R.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:r});this.dispatchEvent(s)}}Ws=new WeakMap,Sl.getSlotTemplateHTML=function(t){return`
|
|
943
|
+
<style>
|
|
944
|
+
:host([${h.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {
|
|
945
|
+
display: none !important;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
:host(:not([${h.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {
|
|
950
|
+
display: none !important;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
:host([${h.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],
|
|
954
|
+
:host(:not([${h.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {
|
|
955
|
+
display: none;
|
|
956
|
+
}
|
|
957
|
+
</style>
|
|
958
|
+
|
|
959
|
+
<slot name="icon">
|
|
960
|
+
<slot name="enter"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
961
|
+
<path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
|
|
962
|
+
</svg></slot>
|
|
963
|
+
<slot name="exit"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
964
|
+
<path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
|
|
965
|
+
</svg></slot>
|
|
966
|
+
</slot>
|
|
967
|
+
`},Sl.getTooltipContentHTML=function(){return`
|
|
968
|
+
<slot name="tooltip-enter">${L("Enter fullscreen mode")}</slot>
|
|
969
|
+
<slot name="tooltip-exit">${L("Exit fullscreen mode")}</slot>
|
|
970
|
+
`},g.customElements.get("media-fullscreen-button")||g.customElements.define("media-fullscreen-button",Sl);const{MEDIA_TIME_IS_LIVE:Bs,MEDIA_PAUSED:dr}=h,{MEDIA_SEEK_TO_LIVE_REQUEST:_E,MEDIA_PLAY_REQUEST:TE}=R,$h=t=>{var e;const n=t.mediaPaused||!t.mediaTimeIsLive,i=L(n?"seek to live":"playing live");t.setAttribute("aria-label",i);const a=(e=t.shadowRoot)==null?void 0:e.querySelector('slot[name="text"]');a&&(a.textContent=L("live")),n?t.removeAttribute("aria-disabled"):t.setAttribute("aria-disabled","true")};class qh extends De{static get observedAttributes(){return[...super.observedAttributes,Bs,dr]}connectedCallback(){super.connectedCallback(),$h(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),$h(this)}get mediaPaused(){return W(this,h.MEDIA_PAUSED)}set mediaPaused(e){B(this,h.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return W(this,h.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){B(this,h.MEDIA_TIME_IS_LIVE,e)}handleClick(){!this.mediaPaused&&this.mediaTimeIsLive||(this.dispatchEvent(new g.CustomEvent(_E,{composed:!0,bubbles:!0})),this.hasAttribute(dr)&&this.dispatchEvent(new g.CustomEvent(TE,{composed:!0,bubbles:!0})))}}qh.getSlotTemplateHTML=function(t){return`
|
|
971
|
+
<style>
|
|
972
|
+
:host { --media-tooltip-display: none; }
|
|
973
|
+
|
|
974
|
+
slot[name=indicator] > *,
|
|
975
|
+
:host ::slotted([slot=indicator]) {
|
|
976
|
+
|
|
977
|
+
min-width: auto;
|
|
978
|
+
fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
|
|
979
|
+
color: var(--media-live-button-icon-color, rgb(140, 140, 140));
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
:host([${Bs}]:not([${dr}])) slot[name=indicator] > *,
|
|
983
|
+
:host([${Bs}]:not([${dr}])) ::slotted([slot=indicator]) {
|
|
984
|
+
fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
|
|
985
|
+
color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
:host([${Bs}]:not([${dr}])) {
|
|
989
|
+
cursor: var(--media-cursor, not-allowed);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
slot[name=text]{
|
|
993
|
+
text-transform: uppercase;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
</style>
|
|
997
|
+
|
|
998
|
+
<slot name="indicator"><svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg></slot>
|
|
999
|
+
|
|
1000
|
+
<slot name="spacer"> </slot><slot name="text">${L("live")}</slot>
|
|
1001
|
+
`},g.customElements.get("media-live-button")||g.customElements.define("media-live-button",qh);var Mt,Vs,Pv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},_a=(t,e,n)=>(Pv(t,e,"read from private field"),n?n.call(t):e.get(t)),Kh=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ta=(t,e,n,i)=>(Pv(t,e,"write to private field"),e.set(t,n),n);const Fh="loadingdelay",Yh="noautohide";class Rl extends g.HTMLElement{constructor(){if(super(),Kh(this,Mt,void 0),Kh(this,Vs,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[F.MEDIA_CONTROLLER,h.MEDIA_PAUSED,h.MEDIA_LOADING,Fh]}attributeChangedCallback(e,n,i){var a,r,s,o,l;e===Fh&&n!==i?this.loadingDelay=Number(i):e===F.MEDIA_CONTROLLER&&(n&&((r=(a=_a(this,Mt))==null?void 0:a.unassociateElement)==null||r.call(a,this),Ta(this,Mt,null)),i&&this.isConnected&&(Ta(this,Mt,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=_a(this,Mt))==null?void 0:o.associateElement)==null||l.call(o,this)))}connectedCallback(){var e,n,i;const a=this.getAttribute(F.MEDIA_CONTROLLER);a&&(Ta(this,Mt,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=_a(this,Mt))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=_a(this,Mt))==null?void 0:e.unassociateElement)==null||n.call(e,this),Ta(this,Mt,null)}get loadingDelay(){return _a(this,Vs)}set loadingDelay(e){Ta(this,Vs,e);const{style:n}=Ae(this.shadowRoot,":host");n.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return W(this,h.MEDIA_PAUSED)}set mediaPaused(e){B(this,h.MEDIA_PAUSED,e)}get mediaLoading(){return W(this,h.MEDIA_LOADING)}set mediaLoading(e){B(this,h.MEDIA_LOADING,e)}get mediaController(){return ie(this,F.MEDIA_CONTROLLER)}set mediaController(e){ae(this,F.MEDIA_CONTROLLER,e)}get noAutohide(){return W(this,Yh)}set noAutohide(e){B(this,Yh,e)}}Mt=new WeakMap,Vs=new WeakMap,Rl.shadowRootOptions={mode:"open"},Rl.getTemplateHTML=function(t){return`
|
|
1002
|
+
<style>
|
|
1003
|
+
:host {
|
|
1004
|
+
display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
|
|
1005
|
+
vertical-align: middle;
|
|
1006
|
+
box-sizing: border-box;
|
|
1007
|
+
--_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
#status {
|
|
1011
|
+
color: rgba(0,0,0,0);
|
|
1012
|
+
width: 0px;
|
|
1013
|
+
height: 0px;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
:host slot[name=icon] > *,
|
|
1017
|
+
:host ::slotted([slot=icon]) {
|
|
1018
|
+
opacity: var(--media-loading-indicator-opacity, 0);
|
|
1019
|
+
transition: opacity 0.15s;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
:host([${h.MEDIA_LOADING}]:not([${h.MEDIA_PAUSED}])) slot[name=icon] > *,
|
|
1023
|
+
:host([${h.MEDIA_LOADING}]:not([${h.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
|
|
1024
|
+
opacity: var(--media-loading-indicator-opacity, 1);
|
|
1025
|
+
transition: opacity 0.15s var(--_loading-indicator-delay);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
:host #status {
|
|
1029
|
+
visibility: var(--media-loading-indicator-opacity, hidden);
|
|
1030
|
+
transition: visibility 0.15s;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
:host([${h.MEDIA_LOADING}]:not([${h.MEDIA_PAUSED}])) #status {
|
|
1034
|
+
visibility: var(--media-loading-indicator-opacity, visible);
|
|
1035
|
+
transition: visibility 0.15s var(--_loading-indicator-delay);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
svg, img, ::slotted(svg), ::slotted(img) {
|
|
1039
|
+
width: var(--media-loading-indicator-icon-width);
|
|
1040
|
+
height: var(--media-loading-indicator-icon-height, 100px);
|
|
1041
|
+
fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
|
|
1042
|
+
vertical-align: middle;
|
|
1043
|
+
}
|
|
1044
|
+
</style>
|
|
1045
|
+
|
|
1046
|
+
<slot name="icon">
|
|
1047
|
+
<svg aria-hidden="true" viewBox="0 0 100 100">
|
|
1048
|
+
<path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
|
|
1049
|
+
<animateTransform
|
|
1050
|
+
attributeName="transform"
|
|
1051
|
+
attributeType="XML"
|
|
1052
|
+
type="rotate"
|
|
1053
|
+
dur="1s"
|
|
1054
|
+
from="0 50 50"
|
|
1055
|
+
to="360 50 50"
|
|
1056
|
+
repeatCount="indefinite" />
|
|
1057
|
+
</path>
|
|
1058
|
+
</svg>
|
|
1059
|
+
</slot>
|
|
1060
|
+
<div id="status" role="status" aria-live="polite">${L("media loading")}</div>
|
|
1061
|
+
`},g.customElements.get("media-loading-indicator")||g.customElements.define("media-loading-indicator",Rl);const Gh=`<svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1062
|
+
<path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
|
|
1063
|
+
</svg>`,jh=t=>{const e=t.mediaVolumeLevel==="off",n=L(e?"unmute":"mute");t.setAttribute("aria-label",n)};class Cl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),jh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_VOLUME_LEVEL&&jh(this)}get mediaVolumeLevel(){return ie(this,h.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){ae(this,h.MEDIA_VOLUME_LEVEL,e)}handleClick(){const e=this.mediaVolumeLevel==="off"?R.MEDIA_UNMUTE_REQUEST:R.MEDIA_MUTE_REQUEST;this.dispatchEvent(new g.CustomEvent(e,{composed:!0,bubbles:!0}))}}Cl.getSlotTemplateHTML=function(t){return`
|
|
1064
|
+
<style>
|
|
1065
|
+
:host(:not([${h.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),
|
|
1066
|
+
:host([${h.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {
|
|
1067
|
+
display: none !important;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
:host([${h.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {
|
|
1071
|
+
display: none !important;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
:host([${h.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {
|
|
1075
|
+
display: none !important;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
:host([${h.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {
|
|
1079
|
+
display: none !important;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
:host(:not([${h.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],
|
|
1083
|
+
:host([${h.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {
|
|
1084
|
+
display: none;
|
|
1085
|
+
}
|
|
1086
|
+
</style>
|
|
1087
|
+
|
|
1088
|
+
<slot name="icon">
|
|
1089
|
+
<slot name="off"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1090
|
+
<path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
|
|
1091
|
+
</svg></slot>
|
|
1092
|
+
<slot name="low">${Gh}</slot>
|
|
1093
|
+
<slot name="medium">${Gh}</slot>
|
|
1094
|
+
<slot name="high"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1095
|
+
<path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
|
|
1096
|
+
</svg></slot>
|
|
1097
|
+
</slot>
|
|
1098
|
+
`},Cl.getTooltipContentHTML=function(){return`
|
|
1099
|
+
<slot name="tooltip-mute">${L("Mute")}</slot>
|
|
1100
|
+
<slot name="tooltip-unmute">${L("Unmute")}</slot>
|
|
1101
|
+
`},g.customElements.get("media-mute-button")||g.customElements.define("media-mute-button",Cl);const Qh=`<svg aria-hidden="true" viewBox="0 0 28 24">
|
|
1102
|
+
<path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
|
|
1103
|
+
</svg>`,zh=t=>{const e=t.mediaIsPip?L("exit picture in picture mode"):L("enter picture in picture mode");t.setAttribute("aria-label",e)};class Dl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_IS_PIP,h.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),zh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_IS_PIP&&zh(this)}get mediaPipUnavailable(){return ie(this,h.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){ae(this,h.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return W(this,h.MEDIA_IS_PIP)}set mediaIsPip(e){B(this,h.MEDIA_IS_PIP,e)}handleClick(){const e=this.mediaIsPip?R.MEDIA_EXIT_PIP_REQUEST:R.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new g.CustomEvent(e,{composed:!0,bubbles:!0}))}}Dl.getSlotTemplateHTML=function(t){return`
|
|
1104
|
+
<style>
|
|
1105
|
+
:host([${h.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {
|
|
1106
|
+
display: none !important;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
:host(:not([${h.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {
|
|
1110
|
+
display: none !important;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
:host([${h.MEDIA_IS_PIP}]) slot[name=tooltip-enter],
|
|
1114
|
+
:host(:not([${h.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {
|
|
1115
|
+
display: none;
|
|
1116
|
+
}
|
|
1117
|
+
</style>
|
|
1118
|
+
|
|
1119
|
+
<slot name="icon">
|
|
1120
|
+
<slot name="enter">${Qh}</slot>
|
|
1121
|
+
<slot name="exit">${Qh}</slot>
|
|
1122
|
+
</slot>
|
|
1123
|
+
`},Dl.getTooltipContentHTML=function(){return`
|
|
1124
|
+
<slot name="tooltip-enter">${L("Enter picture in picture mode")}</slot>
|
|
1125
|
+
<slot name="tooltip-exit">${L("Exit picture in picture mode")}</slot>
|
|
1126
|
+
`},g.customElements.get("media-pip-button")||g.customElements.define("media-pip-button",Dl);var vn,hi=(t,e,n)=>(((i,a,r)=>{if(!a.has(i))throw TypeError("Cannot "+r)})(t,e,"read from private field"),n?n.call(t):e.get(t));const Ll="rates",Uv=[1,1.2,1.5,1.7,2];class Ml extends De{constructor(){var e;super(),((n,i,a)=>{if(i.has(n))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(n):i.set(n,a)})(this,vn,new dc(this,Ll,{defaultValue:Uv})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${(e=this.mediaPlaybackRate)!=null?e:1}x`}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PLAYBACK_RATE,Ll]}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),e===Ll&&(hi(this,vn).value=i),e===h.MEDIA_PLAYBACK_RATE){const a=i?+i:Number.NaN,r=Number.isNaN(a)?1:a;this.container.innerHTML=`${r}x`,this.setAttribute("aria-label",L("Playback rate {playbackRate}",{playbackRate:r}))}}get rates(){return hi(this,vn)}set rates(e){e?Array.isArray(e)?hi(this,vn).value=e.join(" "):typeof e=="string"&&(hi(this,vn).value=e):hi(this,vn).value=""}get mediaPlaybackRate(){return ne(this,h.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){he(this,h.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,n;const i=Array.from(hi(this,vn).values(),s=>+s).sort((s,o)=>s-o),a=(n=(e=i.find(s=>s>this.mediaPlaybackRate))!=null?e:i[0])!=null?n:1,r=new g.CustomEvent(R.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(r)}}vn=new WeakMap,Ml.getSlotTemplateHTML=function(t){return`
|
|
1127
|
+
<style>
|
|
1128
|
+
:host {
|
|
1129
|
+
min-width: 5ch;
|
|
1130
|
+
padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
|
|
1131
|
+
}
|
|
1132
|
+
</style>
|
|
1133
|
+
<slot name="icon">${t.mediaplaybackrate||1}x</slot>
|
|
1134
|
+
`},Ml.getTooltipContentHTML=function(){return L("Playback rate")},g.customElements.get("media-playback-rate-button")||g.customElements.define("media-playback-rate-button",Ml);const Zh=t=>{const e=t.mediaPaused?L("play"):L("pause");t.setAttribute("aria-label",e)};class xl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PAUSED,h.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),Zh(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e!==h.MEDIA_PAUSED&&e!==h.MEDIA_LANG||Zh(this)}get mediaPaused(){return W(this,h.MEDIA_PAUSED)}set mediaPaused(e){B(this,h.MEDIA_PAUSED,e)}handleClick(){const e=this.mediaPaused?R.MEDIA_PLAY_REQUEST:R.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new g.CustomEvent(e,{composed:!0,bubbles:!0}))}}xl.getSlotTemplateHTML=function(t){return`
|
|
1135
|
+
<style>
|
|
1136
|
+
:host([${h.MEDIA_PAUSED}]) slot[name=pause],
|
|
1137
|
+
:host(:not([${h.MEDIA_PAUSED}])) slot[name=play] {
|
|
1138
|
+
display: none !important;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
:host([${h.MEDIA_PAUSED}]) slot[name=tooltip-pause],
|
|
1142
|
+
:host(:not([${h.MEDIA_PAUSED}])) slot[name=tooltip-play] {
|
|
1143
|
+
display: none;
|
|
1144
|
+
}
|
|
1145
|
+
</style>
|
|
1146
|
+
|
|
1147
|
+
<slot name="icon">
|
|
1148
|
+
<slot name="play"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1149
|
+
<path d="m6 21 15-9L6 3v18Z"/>
|
|
1150
|
+
</svg></slot>
|
|
1151
|
+
<slot name="pause"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1152
|
+
<path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
|
|
1153
|
+
</svg></slot>
|
|
1154
|
+
</slot>
|
|
1155
|
+
`},xl.getTooltipContentHTML=function(){return`
|
|
1156
|
+
<slot name="tooltip-play">${L("Play")}</slot>
|
|
1157
|
+
<slot name="tooltip-pause">${L("Pause")}</slot>
|
|
1158
|
+
`},g.customElements.get("media-play-button")||g.customElements.define("media-play-button",xl);const Nl="placeholdersrc",xn="src";class Ol extends g.HTMLElement{static get observedAttributes(){return[Nl,xn]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,n,i){e===xn&&(i==null?this.image.removeAttribute(xn):this.image.setAttribute(xn,i)),e===Nl&&(i==null?this.image.style.removeProperty("background-image"):((a,r)=>{a.style["background-image"]=`url('${r}')`})(this.image,i))}get placeholderSrc(){return ie(this,Nl)}set placeholderSrc(e){ae(this,xn,e)}get src(){return ie(this,xn)}set src(e){ae(this,xn,e)}}Ol.shadowRootOptions={mode:"open"},Ol.getTemplateHTML=function(t){return`
|
|
1159
|
+
<style>
|
|
1160
|
+
:host {
|
|
1161
|
+
pointer-events: none;
|
|
1162
|
+
display: var(--media-poster-image-display, inline-block);
|
|
1163
|
+
box-sizing: border-box;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
img {
|
|
1167
|
+
max-width: 100%;
|
|
1168
|
+
max-height: 100%;
|
|
1169
|
+
min-width: 100%;
|
|
1170
|
+
min-height: 100%;
|
|
1171
|
+
background-repeat: no-repeat;
|
|
1172
|
+
background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
|
|
1173
|
+
background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
|
|
1174
|
+
object-fit: var(--media-object-fit, contain);
|
|
1175
|
+
object-position: var(--media-object-position, center);
|
|
1176
|
+
}
|
|
1177
|
+
</style>
|
|
1178
|
+
|
|
1179
|
+
<img part="poster img" aria-hidden="true" id="image"/>
|
|
1180
|
+
`},g.customElements.get("media-poster-image")||g.customElements.define("media-poster-image",Ol);var $s,Xh=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};class AE extends wn{constructor(){var e,n,i;super(),((a,r,s)=>{if(r.has(a))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(a):r.set(a,s)})(this,$s,void 0),e=this,n=$s,i=this.shadowRoot.querySelector("slot"),Xh(e,n,"write to private field"),n.set(e,i)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PREVIEW_CHAPTER,h.MEDIA_LANG]}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),(e===h.MEDIA_PREVIEW_CHAPTER||e===h.MEDIA_LANG)&&i!==n&&i!=null)if((a=this,r=$s,Xh(a,r,"read from private field"),s?s.call(a):r.get(a)).textContent=i,i!==""){const o=L("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",o)}else this.removeAttribute("aria-valuetext");var a,r,s}get mediaPreviewChapter(){return ie(this,h.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){ae(this,h.MEDIA_PREVIEW_CHAPTER,e)}}$s=new WeakMap,g.customElements.get("media-preview-chapter-display")||g.customElements.define("media-preview-chapter-display",AE);var xt,Hv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Gr=(t,e,n)=>(Hv(t,e,"read from private field"),n?n.call(t):e.get(t)),jr=(t,e,n,i)=>(Hv(t,e,"write to private field"),e.set(t,n),n);class qs extends g.HTMLElement{constructor(){if(super(),((e,n,i)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,i)})(this,xt,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[F.MEDIA_CONTROLLER,h.MEDIA_PREVIEW_IMAGE,h.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,n,i;const a=this.getAttribute(F.MEDIA_CONTROLLER);a&&(jr(this,xt,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=Gr(this,xt))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=Gr(this,xt))==null?void 0:e.unassociateElement)==null||n.call(e,this),jr(this,xt,null)}attributeChangedCallback(e,n,i){var a,r,s,o,l;[h.MEDIA_PREVIEW_IMAGE,h.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===F.MEDIA_CONTROLLER&&(n&&((r=(a=Gr(this,xt))==null?void 0:a.unassociateElement)==null||r.call(a,this),jr(this,xt,null)),i&&this.isConnected&&(jr(this,xt,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(l=(o=Gr(this,xt))==null?void 0:o.associateElement)==null||l.call(o,this)))}get mediaPreviewImage(){return ie(this,h.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){ae(this,h.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){const e=this.getAttribute(h.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(n=>+n)}set mediaPreviewCoords(e){e?this.setAttribute(h.MEDIA_PREVIEW_COORDS,e.join(" ")):this.removeAttribute(h.MEDIA_PREVIEW_COORDS)}update(){const e=this.mediaPreviewCoords,n=this.mediaPreviewImage;if(!e||!n)return;const[i,a,r,s]=e,o=n.split("#")[0],l=getComputedStyle(this),{maxWidth:d,maxHeight:u,minWidth:c,minHeight:m}=l,p=Math.min(parseInt(d)/r,parseInt(u)/s),v=Math.max(parseInt(c)/r,parseInt(m)/s),b=p<1,f=b?p:v>1?v:1,{style:T}=Ae(this.shadowRoot,":host"),A=Ae(this.shadowRoot,"img").style,E=this.shadowRoot.querySelector("img"),_=b?"min":"max";T.setProperty(`${_}-width`,"initial","important"),T.setProperty(`${_}-height`,"initial","important"),T.width=r*f+"px",T.height=s*f+"px";const w=()=>{A.width=this.imgWidth*f+"px",A.height=this.imgHeight*f+"px",A.display="block"};E.src!==o&&(E.onload=()=>{this.imgWidth=E.naturalWidth,this.imgHeight=E.naturalHeight,w()},E.src=o,w()),w(),A.transform=`translate(-${i*f}px, -${a*f}px)`}}xt=new WeakMap,qs.shadowRootOptions={mode:"open"},qs.getTemplateHTML=function(t){return`
|
|
1181
|
+
<style>
|
|
1182
|
+
:host {
|
|
1183
|
+
box-sizing: border-box;
|
|
1184
|
+
display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));
|
|
1185
|
+
overflow: hidden;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
img {
|
|
1189
|
+
display: none;
|
|
1190
|
+
position: relative;
|
|
1191
|
+
}
|
|
1192
|
+
</style>
|
|
1193
|
+
<img crossorigin loading="eager" decoding="async">
|
|
1194
|
+
`},g.customElements.get("media-preview-thumbnail")||g.customElements.define("media-preview-thumbnail",qs);var Fa,Jh=qs,Wv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},em=(t,e,n)=>(Wv(t,e,"read from private field"),n?n.call(t):e.get(t));class kE extends wn{constructor(){var e,n,i;super(),((a,r,s)=>{if(r.has(a))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(a):r.set(a,s)})(this,Fa,void 0),e=this,n=Fa,i=this.shadowRoot.querySelector("slot"),Wv(e,n,"write to private field"),n.set(e,i),em(this,Fa).textContent=Cn(0)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_PREVIEW_TIME&&i!=null&&(em(this,Fa).textContent=Cn(parseFloat(i)))}get mediaPreviewTime(){return ne(this,h.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){he(this,h.MEDIA_PREVIEW_TIME,e)}}Fa=new WeakMap,g.customElements.get("media-preview-time-display")||g.customElements.define("media-preview-time-display",kE);const mi="seekoffset";class Pl extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_CURRENT_TIME,mi]}connectedCallback(){super.connectedCallback(),this.seekOffset=ne(this,mi,30)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===mi&&(this.seekOffset=ne(this,mi,30))}get seekOffset(){return ne(this,mi,30)}set seekOffset(e){he(this,mi,e),this.setAttribute("aria-label",L("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),nv(iv(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return ne(this,h.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){he(this,h.MEDIA_CURRENT_TIME,e)}handleClick(){const e=Math.max(this.mediaCurrentTime-this.seekOffset,0),n=new g.CustomEvent(R.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)}}Pl.getSlotTemplateHTML=function(t,e){return`
|
|
1195
|
+
<slot name="icon">${n=e.seekOffset,`
|
|
1196
|
+
<svg aria-hidden="true" viewBox="0 0 20 24">
|
|
1197
|
+
<defs>
|
|
1198
|
+
<style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
|
|
1199
|
+
</defs>
|
|
1200
|
+
<text class="text value" transform="translate(2.18 19.87)">${n}</text>
|
|
1201
|
+
<path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/>
|
|
1202
|
+
</svg>`}</slot>
|
|
1203
|
+
`;var n},Pl.getTooltipContentHTML=function(){return L("Seek backward")},g.customElements.get("media-seek-backward-button")||g.customElements.define("media-seek-backward-button",Pl);const pi="seekoffset";class Ul extends De{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_CURRENT_TIME,pi]}connectedCallback(){super.connectedCallback(),this.seekOffset=ne(this,pi,30)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===pi&&(this.seekOffset=ne(this,pi,30))}get seekOffset(){return ne(this,pi,30)}set seekOffset(e){he(this,pi,e),this.setAttribute("aria-label",L("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),nv(iv(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return ne(this,h.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){he(this,h.MEDIA_CURRENT_TIME,e)}handleClick(){const e=this.mediaCurrentTime+this.seekOffset,n=new g.CustomEvent(R.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)}}Ul.getSlotTemplateHTML=function(t,e){return`
|
|
1204
|
+
<slot name="icon">${n=e.seekOffset,`
|
|
1205
|
+
<svg aria-hidden="true" viewBox="0 0 20 24">
|
|
1206
|
+
<defs>
|
|
1207
|
+
<style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
|
|
1208
|
+
</defs>
|
|
1209
|
+
<text class="text value" transform="translate(8.9 19.87)">${n}</text>
|
|
1210
|
+
<path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/>
|
|
1211
|
+
</svg>`}</slot>
|
|
1212
|
+
`;var n},Ul.getTooltipContentHTML=function(){return L("Seek forward")},g.customElements.get("media-seek-forward-button")||g.customElements.define("media-seek-forward-button",Ul);var Li,Bv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Hl=(t,e,n)=>(Bv(t,e,"read from private field"),n?n.call(t):e.get(t));const Wn={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},tm=[...Object.values(Wn),h.MEDIA_CURRENT_TIME,h.MEDIA_DURATION,h.MEDIA_SEEKABLE],nm=["Enter"," "],Gd=(t,{timesSep:e=" / "}={})=>{var n,i;const a=(n=t.mediaCurrentTime)!=null?n:0,[,r]=(i=t.mediaSeekable)!=null?i:[];let s=0;Number.isFinite(t.mediaDuration)?s=t.mediaDuration:Number.isFinite(r)&&(s=r);const o=t.remaining?Cn(0-(s-a)):Cn(a);return t.showDuration?`${o}${e}${Cn(s)}`:o};class im extends wn{constructor(){var e,n,i;super(),((a,r,s)=>{if(r.has(a))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(a):r.set(a,s)})(this,Li,void 0),e=this,n=Li,i=this.shadowRoot.querySelector("slot"),Bv(e,n,"write to private field"),n.set(e,i),Hl(this,Li).innerHTML=`${Gd(this)}`}static get observedAttributes(){return[...super.observedAttributes,...tm,"disabled"]}connectedCallback(){const{style:e}=Ae(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",L("playback time"));const n=i=>{const{key:a}=i;nm.includes(a)?this.toggleTimeDisplay():this.removeEventListener("keyup",n)};this.addEventListener("keydown",i=>{const{metaKey:a,altKey:r,key:s}=i;a||r||!nm.includes(s)?this.removeEventListener("keyup",n):this.addEventListener("keyup",n)}),this.addEventListener("click",this.toggleTimeDisplay),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),super.disconnectedCallback()}attributeChangedCallback(e,n,i){tm.includes(e)?this.update():e==="disabled"&&i!==n&&(i==null?this.enable():this.disable()),super.attributeChangedCallback(e,n,i)}enable(){this.tabIndex=0}disable(){this.tabIndex=-1}get remaining(){return W(this,Wn.REMAINING)}set remaining(e){B(this,Wn.REMAINING,e)}get showDuration(){return W(this,Wn.SHOW_DURATION)}set showDuration(e){B(this,Wn.SHOW_DURATION,e)}get noToggle(){return W(this,Wn.NO_TOGGLE)}set noToggle(e){B(this,Wn.NO_TOGGLE,e)}get mediaDuration(){return ne(this,h.MEDIA_DURATION)}set mediaDuration(e){he(this,h.MEDIA_DURATION,e)}get mediaCurrentTime(){return ne(this,h.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){he(this,h.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){const e=this.getAttribute(h.MEDIA_SEEKABLE);if(e)return e.split(":").map(n=>+n)}set mediaSeekable(e){e!=null?this.setAttribute(h.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(h.MEDIA_SEEKABLE)}update(){const e=Gd(this);(n=>{var i;const a=n.mediaCurrentTime,[,r]=(i=n.mediaSeekable)!=null?i:[];let s=null;if(Number.isFinite(n.mediaDuration)?s=n.mediaDuration:Number.isFinite(r)&&(s=r),a==null||s===null)return void n.setAttribute("aria-valuetext","video not loaded, unknown time.");const o=n.remaining?ar(0-(s-a)):ar(a);if(!n.showDuration)return void n.setAttribute("aria-valuetext",o);const l=`${o} of ${ar(s)}`;n.setAttribute("aria-valuetext",l)})(this),e!==Hl(this,Li).innerHTML&&(Hl(this,Li).innerHTML=e)}}Li=new WeakMap,im.getSlotTemplateHTML=function(t,e){return`
|
|
1213
|
+
<slot>${Gd(e)}</slot>
|
|
1214
|
+
`},g.customElements.get("media-time-display")||g.customElements.define("media-time-display",im);var Mi,Ks,xi,Ya,Fs,Ys,Gs,Ni,Bn,js,Vv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Se=(t,e,n)=>(Vv(t,e,"read from private field"),e.get(t)),Tt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},je=(t,e,n,i)=>(Vv(t,e,"write to private field"),e.set(t,n),n);class wE{constructor(e,n,i){Tt(this,Mi,void 0),Tt(this,Ks,void 0),Tt(this,xi,void 0),Tt(this,Ya,void 0),Tt(this,Fs,void 0),Tt(this,Ys,void 0),Tt(this,Gs,void 0),Tt(this,Ni,void 0),Tt(this,Bn,0),Tt(this,js,(a=performance.now())=>{je(this,Bn,requestAnimationFrame(Se(this,js))),je(this,Ya,performance.now()-Se(this,xi));const r=1e3/this.fps;if(Se(this,Ya)>r){je(this,xi,a-Se(this,Ya)%r);const l=1e3/((a-Se(this,Ks))/++(s=this,o=Fs,{set _(c){je(s,o,c)},get _(){return Se(s,o)}})._),d=(a-Se(this,Ys))/1e3/this.duration;let u=Se(this,Gs)+d*this.playbackRate;u-Se(this,Mi).valueAsNumber>0?je(this,Ni,this.playbackRate/this.duration/l):(je(this,Ni,.995*Se(this,Ni)),u=Se(this,Mi).valueAsNumber+Se(this,Ni)),this.callback(u)}var s,o}),je(this,Mi,e),this.callback=n,this.fps=i}start(){Se(this,Bn)===0&&(je(this,xi,performance.now()),je(this,Ks,Se(this,xi)),je(this,Fs,0),Se(this,js).call(this))}stop(){Se(this,Bn)!==0&&(cancelAnimationFrame(Se(this,Bn)),je(this,Bn,0))}update({start:e,duration:n,playbackRate:i}){const a=e-Se(this,Mi).valueAsNumber,r=Math.abs(n-this.duration);(a>0||a<-.03||r>=.5)&&this.callback(e),je(this,Gs,e),je(this,Ys,performance.now()),this.duration=n,this.playbackRate=i}}Mi=new WeakMap,Ks=new WeakMap,xi=new WeakMap,Ya=new WeakMap,Fs=new WeakMap,Ys=new WeakMap,Gs=new WeakMap,Ni=new WeakMap,Bn=new WeakMap,js=new WeakMap;var Oi,zn,Bo,Ga,Vo,Qs,ur,cr,Pi,Ui,Hi,ja,jd,am,Qd,$o,zd,qo,Zd,Ko,Xd,Jd,$v,hr,zs,eu,qv,bc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},me=(t,e,n)=>(bc(t,e,"read from private field"),n?n.call(t):e.get(t)),ye=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},it=(t,e,n,i)=>(bc(t,e,"write to private field"),e.set(t,n),n),Ue=(t,e,n)=>(bc(t,e,"access private method"),n);const Qr=(t,e=t.mediaCurrentTime)=>{const n=Number.isFinite(t.mediaSeekableStart)?t.mediaSeekableStart:0,i=Number.isFinite(t.mediaDuration)?t.mediaDuration:t.mediaSeekableEnd;if(Number.isNaN(i))return 0;const a=(e-n)/(i-n);return Math.max(0,Math.min(a,1))},Kv=(t,e=t.range.valueAsNumber)=>{const n=Number.isFinite(t.mediaSeekableStart)?t.mediaSeekableStart:0,i=Number.isFinite(t.mediaDuration)?t.mediaDuration:t.mediaSeekableEnd;return Number.isNaN(i)?0:e*(i-n)+n};class Wl extends Xi{constructor(){super(),ye(this,Hi),ye(this,jd),ye(this,$o),ye(this,qo),ye(this,Ko),ye(this,Jd),ye(this,hr),ye(this,eu),ye(this,Oi,void 0),ye(this,zn,void 0),ye(this,Bo,void 0),ye(this,Ga,void 0),ye(this,Vo,void 0),ye(this,Qs,void 0),ye(this,ur,void 0),ye(this,cr,void 0),ye(this,Pi,void 0),ye(this,Ui,void 0),ye(this,Qd,n=>{this.dragging||(ac(n)&&(this.range.valueAsNumber=n),me(this,Ui)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),it(this,Bo,this.shadowRoot.querySelectorAll('[part~="box"]')),it(this,Vo,this.shadowRoot.querySelector('[part~="preview-box"]')),it(this,Qs,this.shadowRoot.querySelector('[part~="current-box"]'));const e=getComputedStyle(this);it(this,ur,parseInt(e.getPropertyValue("--media-box-padding-left"))),it(this,cr,parseInt(e.getPropertyValue("--media-box-padding-right"))),it(this,zn,new wE(this.range,me(this,Qd),60))}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PAUSED,h.MEDIA_DURATION,h.MEDIA_SEEKABLE,h.MEDIA_CURRENT_TIME,h.MEDIA_PREVIEW_IMAGE,h.MEDIA_PREVIEW_TIME,h.MEDIA_PREVIEW_CHAPTER,h.MEDIA_BUFFERED,h.MEDIA_PLAYBACK_RATE,h.MEDIA_LOADING,h.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",L("seek")),Ue(this,Hi,ja).call(this),it(this,Oi,this.getRootNode()),(e=me(this,Oi))==null||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),Ue(this,Hi,ja).call(this),(e=me(this,Oi))==null||e.removeEventListener("transitionstart",this),it(this,Oi,null)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),n!=i&&(e===h.MEDIA_CURRENT_TIME||e===h.MEDIA_PAUSED||e===h.MEDIA_ENDED||e===h.MEDIA_LOADING||e===h.MEDIA_DURATION||e===h.MEDIA_SEEKABLE?(me(this,zn).update({start:Qr(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),Ue(this,Hi,ja).call(this),(a=>{const r=a.range,s=ar(+Kv(a)),o=ar(+a.mediaSeekableEnd),l=s&&o?`${s} of ${o}`:"video not loaded, unknown time.";r.setAttribute("aria-valuetext",l)})(this)):e===h.MEDIA_BUFFERED&&this.updateBufferedBar(),e!==h.MEDIA_DURATION&&e!==h.MEDIA_SEEKABLE||(this.mediaChaptersCues=me(this,Pi),this.updateBar()))}get mediaChaptersCues(){return me(this,Pi)}set mediaChaptersCues(e){var n;it(this,Pi,e),this.updateSegments((n=me(this,Pi))==null?void 0:n.map(i=>({start:Qr(this,i.startTime),end:Qr(this,i.endTime)})))}get mediaPaused(){return W(this,h.MEDIA_PAUSED)}set mediaPaused(e){B(this,h.MEDIA_PAUSED,e)}get mediaLoading(){return W(this,h.MEDIA_LOADING)}set mediaLoading(e){B(this,h.MEDIA_LOADING,e)}get mediaDuration(){return ne(this,h.MEDIA_DURATION)}set mediaDuration(e){he(this,h.MEDIA_DURATION,e)}get mediaCurrentTime(){return ne(this,h.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){he(this,h.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return ne(this,h.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){he(this,h.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){const e=this.getAttribute(h.MEDIA_BUFFERED);return e?e.split(" ").map(n=>n.split(":").map(i=>+i)):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(h.MEDIA_BUFFERED);const n=e.map(i=>i.join(":")).join(" ");this.setAttribute(h.MEDIA_BUFFERED,n)}get mediaSeekable(){const e=this.getAttribute(h.MEDIA_SEEKABLE);if(e)return e.split(":").map(n=>+n)}set mediaSeekable(e){e!=null?this.setAttribute(h.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(h.MEDIA_SEEKABLE)}get mediaSeekableEnd(){var e;const[,n=this.mediaDuration]=(e=this.mediaSeekable)!=null?e:[];return n}get mediaSeekableStart(){var e;const[n=0]=(e=this.mediaSeekable)!=null?e:[];return n}get mediaPreviewImage(){return ie(this,h.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){ae(this,h.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return ne(this,h.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){he(this,h.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return W(this,h.MEDIA_ENDED)}set mediaEnded(e){B(this,h.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;const n=this.mediaBuffered;if(!n.length)return;let i;if(this.mediaEnded)i=1;else{const r=this.mediaCurrentTime,[,s=this.mediaSeekableStart]=(e=n.find(([o,l])=>o<=r&&r<=l))!=null?e:[];i=Qr(this,s)}const{style:a}=Ae(this.shadowRoot,"#buffered");a.setProperty("width",100*i+"%")}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;const e=Ae(this.shadowRoot,"#current-rail"),n=Ae(this.shadowRoot,'[part~="current-box"]'),i=Ue(this,$o,zd).call(this,me(this,Qs)),a=Ue(this,qo,Zd).call(this,i,this.range.valueAsNumber),r=Ue(this,Ko,Xd).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${a})`,e.style.setProperty("--_range-width",`${i.range.width}`),n.style.setProperty("--_box-shift",`${r}`),n.style.setProperty("--_box-width",`${i.box.width}px`),n.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":Ue(this,eu,qv).call(this);break;case"pointermove":Ue(this,Jd,$v).call(this,e);break;case"pointerup":me(this,Ui)&&it(this,Ui,!1);break;case"pointerdown":it(this,Ui,!0);break;case"pointerleave":Ue(this,hr,zs).call(this,null);break;case"transitionstart":on(e.target,this)&&setTimeout(()=>Ue(this,Hi,ja).call(this),0)}}}Oi=new WeakMap,zn=new WeakMap,Bo=new WeakMap,Ga=new WeakMap,Vo=new WeakMap,Qs=new WeakMap,ur=new WeakMap,cr=new WeakMap,Pi=new WeakMap,Ui=new WeakMap,Hi=new WeakSet,ja=function(){Ue(this,jd,am).call(this)?me(this,zn).start():me(this,zn).stop()},jd=new WeakSet,am=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&av(this)},Qd=new WeakMap,$o=new WeakSet,zd=function(t){var e;const n=((e=this.getAttribute("bounds")?ha(this,`#${this.getAttribute("bounds")}`):this.parentElement)!=null?e:this).getBoundingClientRect(),i=this.range.getBoundingClientRect(),a=t.offsetWidth;return{box:{width:a,min:-(i.left-n.left-a/2),max:n.right-i.left-a/2},bounds:n,range:i}},qo=new WeakSet,Zd=function(t,e){let n=100*e+"%";const{width:i,min:a,max:r}=t.box;return i&&(Number.isNaN(a)||(n=`max(${`calc(1 / var(--_range-width) * 100 * ${a}% + var(--media-box-padding-left))`}, ${n})`),Number.isNaN(r)||(n=`min(${n}, ${`calc(1 / var(--_range-width) * 100 * ${r}% - var(--media-box-padding-right))`})`)),n},Ko=new WeakSet,Xd=function(t,e){const{width:n,min:i,max:a}=t.box,r=e*t.range.width;return r<i+me(this,ur)?`${r-n/2+(t.range.left-t.bounds.left-me(this,ur))}px`:r>a-me(this,cr)?r+n/2-(t.bounds.right-t.range.right-me(this,cr))-t.range.width+"px":0},Jd=new WeakSet,$v=function(t){const e=[...me(this,Bo)].some(u=>t.composedPath().includes(u));if(!this.dragging&&(e||!t.composedPath().includes(this)))return void Ue(this,hr,zs).call(this,null);const n=this.mediaSeekableEnd;if(!n)return;const i=Ae(this.shadowRoot,"#preview-rail"),a=Ae(this.shadowRoot,'[part~="preview-box"]'),r=Ue(this,$o,zd).call(this,me(this,Vo));let s=(t.clientX-r.range.left)/r.range.width;s=Math.max(0,Math.min(1,s));const o=Ue(this,qo,Zd).call(this,r,s),l=Ue(this,Ko,Xd).call(this,r,s);i.style.transform=`translateX(${o})`,i.style.setProperty("--_range-width",`${r.range.width}`),a.style.setProperty("--_box-shift",`${l}`),a.style.setProperty("--_box-width",`${r.box.width}px`);const d=Math.round(me(this,Ga))-Math.round(s*n);Math.abs(d)<1&&s>.01&&s<.99||(it(this,Ga,s*n),Ue(this,hr,zs).call(this,me(this,Ga)))},hr=new WeakSet,zs=function(t){this.dispatchEvent(new g.CustomEvent(R.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:t}))},eu=new WeakSet,qv=function(){me(this,zn).stop();const t=Kv(this);this.dispatchEvent(new g.CustomEvent(R.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:t}))},Wl.shadowRootOptions={mode:"open"},Wl.getContainerTemplateHTML=function(t){return`
|
|
1215
|
+
<style>
|
|
1216
|
+
:host {
|
|
1217
|
+
--media-box-border-radius: 4px;
|
|
1218
|
+
--media-box-padding-left: 10px;
|
|
1219
|
+
--media-box-padding-right: 10px;
|
|
1220
|
+
--media-preview-border-radius: var(--media-box-border-radius);
|
|
1221
|
+
--media-box-arrow-offset: var(--media-box-border-radius);
|
|
1222
|
+
--_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
|
|
1223
|
+
--_preview-background: var(--media-preview-background, var(--_control-background));
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
contain: layout;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
#buffered {
|
|
1230
|
+
background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
|
|
1231
|
+
position: absolute;
|
|
1232
|
+
height: 100%;
|
|
1233
|
+
will-change: width;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
#preview-rail,
|
|
1237
|
+
#current-rail {
|
|
1238
|
+
width: 100%;
|
|
1239
|
+
position: absolute;
|
|
1240
|
+
left: 0;
|
|
1241
|
+
bottom: 100%;
|
|
1242
|
+
pointer-events: none;
|
|
1243
|
+
will-change: transform;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
[part~="box"] {
|
|
1247
|
+
width: min-content;
|
|
1248
|
+
|
|
1249
|
+
position: absolute;
|
|
1250
|
+
bottom: 100%;
|
|
1251
|
+
flex-direction: column;
|
|
1252
|
+
align-items: center;
|
|
1253
|
+
transform: translateX(-50%);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
[part~="current-box"] {
|
|
1257
|
+
display: var(--media-current-box-display, var(--media-box-display, flex));
|
|
1258
|
+
margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
|
|
1259
|
+
visibility: hidden;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
[part~="preview-box"] {
|
|
1263
|
+
display: var(--media-preview-box-display, var(--media-box-display, flex));
|
|
1264
|
+
margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
|
|
1265
|
+
transition-property: var(--media-preview-transition-property, visibility, opacity);
|
|
1266
|
+
transition-duration: var(--media-preview-transition-duration-out, .25s);
|
|
1267
|
+
transition-delay: var(--media-preview-transition-delay-out, 0s);
|
|
1268
|
+
visibility: hidden;
|
|
1269
|
+
opacity: 0;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
:host(:is([${h.MEDIA_PREVIEW_IMAGE}], [${h.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
|
|
1273
|
+
transition-duration: var(--media-preview-transition-duration-in, .5s);
|
|
1274
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1275
|
+
visibility: visible;
|
|
1276
|
+
opacity: 1;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
@media (hover: hover) {
|
|
1280
|
+
:host(:is([${h.MEDIA_PREVIEW_IMAGE}], [${h.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
|
|
1281
|
+
transition-duration: var(--media-preview-transition-duration-in, .5s);
|
|
1282
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1283
|
+
visibility: visible;
|
|
1284
|
+
opacity: 1;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
media-preview-thumbnail,
|
|
1289
|
+
::slotted(media-preview-thumbnail) {
|
|
1290
|
+
visibility: hidden;
|
|
1291
|
+
|
|
1292
|
+
transition: visibility 0s .25s;
|
|
1293
|
+
transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
|
|
1294
|
+
background: var(--media-preview-thumbnail-background, var(--_preview-background));
|
|
1295
|
+
box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
|
|
1296
|
+
max-width: var(--media-preview-thumbnail-max-width, 180px);
|
|
1297
|
+
max-height: var(--media-preview-thumbnail-max-height, 160px);
|
|
1298
|
+
min-width: var(--media-preview-thumbnail-min-width, 120px);
|
|
1299
|
+
min-height: var(--media-preview-thumbnail-min-height, 80px);
|
|
1300
|
+
border: var(--media-preview-thumbnail-border);
|
|
1301
|
+
border-radius: var(--media-preview-thumbnail-border-radius,
|
|
1302
|
+
var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
|
|
1306
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
|
|
1307
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1308
|
+
visibility: visible;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
@media (hover: hover) {
|
|
1312
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
|
|
1313
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
|
|
1314
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1315
|
+
visibility: visible;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
:host([${h.MEDIA_PREVIEW_TIME}]:hover) {
|
|
1319
|
+
--media-time-range-hover-display: block;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
media-preview-chapter-display,
|
|
1324
|
+
::slotted(media-preview-chapter-display) {
|
|
1325
|
+
font-size: var(--media-font-size, 13px);
|
|
1326
|
+
line-height: 17px;
|
|
1327
|
+
min-width: 0;
|
|
1328
|
+
visibility: hidden;
|
|
1329
|
+
|
|
1330
|
+
transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
|
|
1331
|
+
transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
|
|
1332
|
+
background: var(--media-preview-chapter-background, var(--_preview-background));
|
|
1333
|
+
border-radius: var(--media-preview-chapter-border-radius,
|
|
1334
|
+
var(--media-preview-border-radius) var(--media-preview-border-radius)
|
|
1335
|
+
var(--media-preview-border-radius) var(--media-preview-border-radius));
|
|
1336
|
+
padding: var(--media-preview-chapter-padding, 3.5px 9px);
|
|
1337
|
+
margin: var(--media-preview-chapter-margin, 0 0 5px);
|
|
1338
|
+
text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
|
|
1342
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
|
|
1343
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1344
|
+
border-radius: var(--media-preview-chapter-border-radius, 0);
|
|
1345
|
+
padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
|
|
1346
|
+
margin: var(--media-preview-chapter-margin, 0);
|
|
1347
|
+
min-width: 100%;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
media-preview-chapter-display[${h.MEDIA_PREVIEW_CHAPTER}],
|
|
1351
|
+
::slotted(media-preview-chapter-display[${h.MEDIA_PREVIEW_CHAPTER}]) {
|
|
1352
|
+
visibility: visible;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
media-preview-chapter-display:not([aria-valuetext]),
|
|
1356
|
+
::slotted(media-preview-chapter-display:not([aria-valuetext])) {
|
|
1357
|
+
display: none;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
media-preview-time-display,
|
|
1361
|
+
::slotted(media-preview-time-display),
|
|
1362
|
+
media-time-display,
|
|
1363
|
+
::slotted(media-time-display) {
|
|
1364
|
+
font-size: var(--media-font-size, 13px);
|
|
1365
|
+
line-height: 17px;
|
|
1366
|
+
min-width: 0;
|
|
1367
|
+
|
|
1368
|
+
transition: min-width 0s, border-radius 0s;
|
|
1369
|
+
transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
|
|
1370
|
+
background: var(--media-preview-time-background, var(--_preview-background));
|
|
1371
|
+
border-radius: var(--media-preview-time-border-radius,
|
|
1372
|
+
var(--media-preview-border-radius) var(--media-preview-border-radius)
|
|
1373
|
+
var(--media-preview-border-radius) var(--media-preview-border-radius));
|
|
1374
|
+
padding: var(--media-preview-time-padding, 3.5px 9px);
|
|
1375
|
+
margin: var(--media-preview-time-margin, 0);
|
|
1376
|
+
text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
|
|
1377
|
+
transform: translateX(min(
|
|
1378
|
+
max(calc(50% - var(--_box-width) / 2),
|
|
1379
|
+
calc(var(--_box-shift, 0))),
|
|
1380
|
+
calc(var(--_box-width) / 2 - 50%)
|
|
1381
|
+
));
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
|
|
1385
|
+
:host([${h.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
|
|
1386
|
+
transition-delay: var(--media-preview-transition-delay-in, .25s);
|
|
1387
|
+
border-radius: var(--media-preview-time-border-radius,
|
|
1388
|
+
0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
|
|
1389
|
+
min-width: 100%;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
:host([${h.MEDIA_PREVIEW_TIME}]:hover) {
|
|
1393
|
+
--media-time-range-hover-display: block;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
[part~="arrow"],
|
|
1397
|
+
::slotted([part~="arrow"]) {
|
|
1398
|
+
display: var(--media-box-arrow-display, inline-block);
|
|
1399
|
+
transform: translateX(min(
|
|
1400
|
+
max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
|
|
1401
|
+
calc(var(--_box-shift, 0))),
|
|
1402
|
+
calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
|
|
1403
|
+
));
|
|
1404
|
+
|
|
1405
|
+
border-color: transparent;
|
|
1406
|
+
border-top-color: var(--media-box-arrow-background, var(--_control-background));
|
|
1407
|
+
border-width: var(--media-box-arrow-border-width,
|
|
1408
|
+
var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
|
|
1409
|
+
border-style: solid;
|
|
1410
|
+
justify-content: center;
|
|
1411
|
+
height: 0;
|
|
1412
|
+
}
|
|
1413
|
+
</style>
|
|
1414
|
+
<div id="preview-rail">
|
|
1415
|
+
<slot name="preview" part="box preview-box">
|
|
1416
|
+
<media-preview-thumbnail>
|
|
1417
|
+
<template shadowrootmode="${Jh.shadowRootOptions.mode}">
|
|
1418
|
+
${Jh.getTemplateHTML({})}
|
|
1419
|
+
</template>
|
|
1420
|
+
</media-preview-thumbnail>
|
|
1421
|
+
<media-preview-chapter-display></media-preview-chapter-display>
|
|
1422
|
+
<media-preview-time-display></media-preview-time-display>
|
|
1423
|
+
<slot name="preview-arrow"><div part="arrow"></div></slot>
|
|
1424
|
+
</slot>
|
|
1425
|
+
</div>
|
|
1426
|
+
<div id="current-rail">
|
|
1427
|
+
<slot name="current" part="box current-box">
|
|
1428
|
+
|
|
1429
|
+
</slot>
|
|
1430
|
+
</div>
|
|
1431
|
+
`},g.customElements.get("media-time-range")||g.customElements.define("media-time-range",Wl);class IE extends Xi{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_VOLUME,h.MEDIA_MUTED,h.MEDIA_VOLUME_UNAVAILABLE]}constructor(){super(),this.range.addEventListener("input",()=>{const e=this.range.value,n=new g.CustomEvent(R.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)})}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",L("volume"))}attributeChangedCallback(e,n,i){var a,r;super.attributeChangedCallback(e,n,i),e!==h.MEDIA_VOLUME&&e!==h.MEDIA_MUTED||(this.range.valueAsNumber=(r=this).mediaMuted?0:r.mediaVolume,this.range.setAttribute("aria-valuetext",(a=this.range.valueAsNumber,`${Math.round(100*a)}%`)),this.updateBar())}get mediaVolume(){return ne(this,h.MEDIA_VOLUME,1)}set mediaVolume(e){he(this,h.MEDIA_VOLUME,e)}get mediaMuted(){return W(this,h.MEDIA_MUTED)}set mediaMuted(e){B(this,h.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return ie(this,h.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){ae(this,h.MEDIA_VOLUME_UNAVAILABLE,e)}}g.customElements.get("media-volume-range")||g.customElements.define("media-volume-range",IE);class Bl extends De{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=((e=this.shadowRoot)==null?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=L("Loop"))}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return W(this,h.MEDIA_LOOP)}set mediaLoop(e){B(this,h.MEDIA_LOOP,e)}handleClick(){const e=!this.mediaLoop,n=new g.CustomEvent(R.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)}}Bl.getSlotTemplateHTML=function(t){return`
|
|
1432
|
+
<style>
|
|
1433
|
+
:host {
|
|
1434
|
+
min-width: 4ch;
|
|
1435
|
+
padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
|
|
1436
|
+
width: 100%;
|
|
1437
|
+
display: grid;
|
|
1438
|
+
grid-template-columns: 1fr auto;
|
|
1439
|
+
gap: 1rem;
|
|
1440
|
+
font-weight: var(--media-button-font-weight, normal);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
#checked-indicator {
|
|
1444
|
+
display: none;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
:host([${h.MEDIA_LOOP}]) #checked-indicator {
|
|
1448
|
+
display: block;
|
|
1449
|
+
}
|
|
1450
|
+
</style>
|
|
1451
|
+
|
|
1452
|
+
<span id="icon">
|
|
1453
|
+
</span>
|
|
1454
|
+
|
|
1455
|
+
<div id="checked-indicator">
|
|
1456
|
+
<svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
|
|
1457
|
+
<path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
|
|
1458
|
+
</svg>
|
|
1459
|
+
</div>
|
|
1460
|
+
`},Bl.getTooltipContentHTML=function(){return L("Loop")},g.customElements.get("media-loop-button")||g.customElements.define("media-loop-button",Bl);var Wi,Zs,Vn,Qa,bn,fn,gn,$n,Bi,Xs,ht,Fv=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},U=(t,e,n)=>(Fv(t,e,"read from private field"),n?n.call(t):e.get(t)),Vt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},nn=(t,e,n,i)=>(Fv(t,e,"write to private field"),e.set(t,n),n);const SE={processCallback(t,e,n){if(n){for(const[i,a]of e)if(i in n){const r=n[i];typeof r=="boolean"&&a instanceof gt&&typeof a.element[a.attributeName]=="boolean"?a.booleanValue=r:typeof r=="function"&&a instanceof gt?a.element[a.attributeName]=r:a.value=r}}}};class rl extends g.DocumentFragment{constructor(e,n,i=SE){var a;super(),Vt(this,Wi,void 0),Vt(this,Zs,void 0),this.append(e.content.cloneNode(!0)),nn(this,Wi,Yv(this)),nn(this,Zs,i),(a=i.createCallback)==null||a.call(i,this,U(this,Wi),n),i.processCallback(this,U(this,Wi),n)}update(e){U(this,Zs).processCallback(this,U(this,Wi),e)}}Wi=new WeakMap,Zs=new WeakMap;const Yv=(t,e=[])=>{let n,i;for(const a of t.attributes||[])if(a.value.includes("{{")){const r=new RE;for([n,i]of sm(a.value))if(n){const s=new gt(t,a.name,a.namespaceURI);r.append(s),e.push([i,s])}else r.append(i);a.value=r.toString()}for(const a of t.childNodes)if(a.nodeType!==1||a instanceof HTMLTemplateElement){const r=a.data;if(a.nodeType===1||r.includes("{{")){const s=[];if(r)for([n,i]of sm(r))if(n){const o=new ia(t);s.push(o),e.push([i,o])}else s.push(new Text(i));else if(a instanceof HTMLTemplateElement){const o=new Qv(t,a);s.push(o),e.push([o.expression,o])}a.replaceWith(...s.flatMap(o=>o.replacementNodes||[o]))}}else Yv(a,e);return e},rm={},sm=t=>{let e,n="",i=0,a=rm[t],r=0;if(a)return a;for(a=[];e=t[r];r++)e==="{"&&t[r+1]==="{"&&t[r-1]!=="\\"&&t[r+2]&&++i==1?(n&&a.push([0,n]),n="",r++):e!=="}"||t[r+1]!=="}"||t[r-1]==="\\"||--i?n+=e||"":(a.push([1,n.trim()]),n="",r++);return n&&a.push([0,(i>0?"{{":"")+n]),rm[t]=a};class Gv{get value(){return""}set value(e){}toString(){return this.value}}const jv=new WeakMap;class RE{constructor(){Vt(this,Vn,[])}[Symbol.iterator](){return U(this,Vn).values()}get length(){return U(this,Vn).length}item(e){return U(this,Vn)[e]}append(...e){for(const n of e)n instanceof gt&&jv.set(n,this),U(this,Vn).push(n)}toString(){return U(this,Vn).join("")}}Vn=new WeakMap;class gt extends Gv{constructor(e,n,i){super(),Vt(this,$n),Vt(this,Qa,""),Vt(this,bn,void 0),Vt(this,fn,void 0),Vt(this,gn,void 0),nn(this,bn,e),nn(this,fn,n),nn(this,gn,i)}get attributeName(){return U(this,fn)}get attributeNamespace(){return U(this,gn)}get element(){return U(this,bn)}get value(){return U(this,Qa)}set value(e){U(this,Qa)!==e&&(nn(this,Qa,e),U(this,$n,Bi)&&U(this,$n,Bi).length!==1?U(this,bn).setAttributeNS(U(this,gn),U(this,fn),U(this,$n,Bi).toString()):e==null?U(this,bn).removeAttributeNS(U(this,gn),U(this,fn)):U(this,bn).setAttributeNS(U(this,gn),U(this,fn),e))}get booleanValue(){return U(this,bn).hasAttributeNS(U(this,gn),U(this,fn))}set booleanValue(e){if(U(this,$n,Bi)&&U(this,$n,Bi).length!==1)throw new DOMException("Value is not fully templatized");this.value=e?"":null}}Qa=new WeakMap,bn=new WeakMap,fn=new WeakMap,gn=new WeakMap,$n=new WeakSet,Bi=function(){return jv.get(this)};class ia extends Gv{constructor(e,n){super(),Vt(this,Xs,void 0),Vt(this,ht,void 0),nn(this,Xs,e),nn(this,ht,n?[...n]:[new Text])}get replacementNodes(){return U(this,ht)}get parentNode(){return U(this,Xs)}get nextSibling(){return U(this,ht)[U(this,ht).length-1].nextSibling}get previousSibling(){return U(this,ht)[0].previousSibling}get value(){return U(this,ht).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){const n=e.flat().flatMap(i=>i==null?[new Text]:i.forEach?[...i]:i.nodeType===11?[...i.childNodes]:i.nodeType?[i]:[new Text(i)]);n.length||n.push(new Text),nn(this,ht,function(i,a,r,s=null){let o,l,d,u=0,c=r.length,m=a.length;for(;u<c&&u<m&&a[u]==r[u];)u++;for(;u<c&&u<m&&r[c-1]==a[m-1];)s=r[--m,--c];if(u==m)for(;u<c;)i.insertBefore(r[u++],s);if(u==c)for(;u<m;)i.removeChild(a[u++]);else{for(o=a[u];u<c;)d=r[u++],l=o?o.nextSibling:s,o==d?o=l:u<c&&r[u]==l?(i.replaceChild(d,o),o=l):i.insertBefore(d,o);for(;o!=s;)l=o.nextSibling,i.removeChild(o),o=l}return r}(U(this,ht)[0].parentNode,U(this,ht),n,this.nextSibling))}}Xs=new WeakMap,ht=new WeakMap;class Qv extends ia{constructor(e,n){const i=n.getAttribute("directive")||n.getAttribute("type");let a=n.getAttribute("expression")||n.getAttribute(i)||"";a.startsWith("{{")&&(a=a.trim().slice(2,-2).trim()),super(e),this.expression=a,this.template=n,this.directive=i}}const om={string:t=>String(t)};class zv{constructor(e){this.template=e,this.state=void 0}}const Zn=new WeakMap,Xn=new WeakMap,tu={partial:(t,e)=>{e[t.expression]=new zv(t.template)},if:(t,e)=>{var n;if(Zv(t.expression,e))if(Zn.get(t)!==t.template){Zn.set(t,t.template);const i=new rl(t.template,e,fc);t.replace(i),Xn.set(t,i)}else(n=Xn.get(t))==null||n.update(e);else t.replace(""),Zn.delete(t),Xn.delete(t)}},CE=Object.keys(tu),fc={processCallback(t,e,n){var i,a;if(n)for(const[r,s]of e){if(s instanceof Qv){if(!s.directive){const l=CE.find(d=>s.template.hasAttribute(d));l&&(s.directive=l,s.expression=s.template.getAttribute(l))}(i=tu[s.directive])==null||i.call(tu,s,n);continue}let o=Zv(r,n);o instanceof zv?Zn.get(s)!==o.template?(Zn.set(s,o.template),o=new rl(o.template,o.state,fc),s.value=o,Xn.set(s,o)):(a=Xn.get(s))==null||a.update(o.state):o?(s instanceof gt&&s.attributeName.startsWith("aria-")&&(o=String(o)),s instanceof gt?typeof o=="boolean"?s.booleanValue=o:typeof o=="function"?s.element[s.attributeName]=o:s.value=o:(s.value=o,Zn.delete(s),Xn.delete(s))):s instanceof gt?s.value=void 0:(s.value=void 0,Zn.delete(s),Xn.delete(s))}}},lm={"!":t=>!t,"!!":t=>!!t,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,"<":(t,e)=>t<e,"<=":(t,e)=>t<=e,"??":(t,e)=>t??e,"|":(t,e)=>{var n;return(n=om[e])==null?void 0:n.call(om,t)}};function Zv(t,e={}){var n,i,a,r,s,o,l;const d=function(u){return function(c,m){let p,v,b;const f=[];for(;c;){b=null,p=c.length;for(const T in m)v=m[T].exec(c),v&&v.index<p&&(b={token:v[0],type:T,matches:v.slice(1)},p=v.index);p&&f.push({token:c.substr(0,p),type:void 0}),b&&f.push(b),c=c.substr(p+(b?b.token.length:0))}return f}(u,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:c})=>c!=="ws")}(t);if(d.length===0||d.some(({type:u})=>!u))return Aa(t);if(((n=d[0])==null?void 0:n.token)===">"){const u=e[(i=d[1])==null?void 0:i.token];if(!u)return Aa(t);const c={...e};u.state=c;const m=d.slice(2);for(let p=0;p<m.length;p+=3){const v=(a=m[p])==null?void 0:a.token,b=(r=m[p+1])==null?void 0:r.token,f=(s=m[p+2])==null?void 0:s.token;v&&b==="="&&(c[v]=ka(f,e))}return u}if(d.length===1)return zr(d[0])?ka(d[0].token,e):Aa(t);if(d.length===2){const u=(o=d[0])==null?void 0:o.token,c=lm[u];return!c||!zr(d[1])?Aa(t):c(ka(d[1].token,e))}if(d.length===3){const u=(l=d[1])==null?void 0:l.token,c=lm[u];if(!c||!zr(d[0])||!zr(d[2]))return Aa(t);const m=ka(d[0].token,e);return u==="|"?c(m,d[2].token):c(m,ka(d[2].token,e))}}function Aa(t){return console.warn(`Warning: invalid expression \`${t}\``),!1}function zr({type:t}){return["number","boolean","string","param"].includes(t)}function ka(t,e){const n=t[0],i=t.slice(-1);return t==="true"||t==="false"?t==="true":n===i&&["'",'"'].includes(n)?t.slice(1,-1):jp(t)?parseFloat(t):e[t]}var aa,Js,Ji,nu,Xv,eo,iu,gc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},au=(t,e,n)=>(gc(t,e,"read from private field"),n?n.call(t):e.get(t)),wa=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Jn=(t,e,n,i)=>(gc(t,e,"write to private field"),e.set(t,n),n),Vl=(t,e,n)=>(gc(t,e,"access private method"),n);const $l={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},Jv=ge.createElement("template");Jv.innerHTML=`
|
|
1461
|
+
<style>
|
|
1462
|
+
:host {
|
|
1463
|
+
display: inline-block;
|
|
1464
|
+
line-height: 0;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
media-controller {
|
|
1468
|
+
width: 100%;
|
|
1469
|
+
height: 100%;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
media-captions-button:not([mediasubtitleslist]),
|
|
1473
|
+
media-captions-menu:not([mediasubtitleslist]),
|
|
1474
|
+
media-captions-menu-button:not([mediasubtitleslist]),
|
|
1475
|
+
media-audio-track-menu[mediaaudiotrackunavailable],
|
|
1476
|
+
media-audio-track-menu-button[mediaaudiotrackunavailable],
|
|
1477
|
+
media-rendition-menu[mediarenditionunavailable],
|
|
1478
|
+
media-rendition-menu-button[mediarenditionunavailable],
|
|
1479
|
+
media-volume-range[mediavolumeunavailable],
|
|
1480
|
+
media-airplay-button[mediaairplayunavailable],
|
|
1481
|
+
media-fullscreen-button[mediafullscreenunavailable],
|
|
1482
|
+
media-cast-button[mediacastunavailable],
|
|
1483
|
+
media-pip-button[mediapipunavailable] {
|
|
1484
|
+
display: none;
|
|
1485
|
+
}
|
|
1486
|
+
</style>
|
|
1487
|
+
`;class to extends g.HTMLElement{constructor(){super(),wa(this,nu),wa(this,eo),wa(this,aa,void 0),wa(this,Js,void 0),wa(this,Ji,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer());const e=new MutationObserver(n=>{var i;this.mediaController&&!((i=this.mediaController)!=null&&i.breakpointsComputed)||n.some(a=>{const r=a.target;return r===this||r.localName==="media-controller"&&(!!$l[a.attributeName]||!!a.attributeName.startsWith("breakpoint"))})&&this.render()});e.observe(this,{attributes:!0}),e.observe(this.renderRoot,{attributes:!0,subtree:!0}),this.addEventListener(sn.BREAKPOINTS_COMPUTED,this.render),Vl(this,nu,Xv).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return(e=au(this,aa))!=null?e:this.constructor.template}set template(e){e!==null?typeof e=="string"?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(Jn(this,aa,e),Jn(this,Ji,null),this.createRenderer()):this.removeAttribute("template")}get props(){var e,n,i;const a=[...Array.from((n=(e=this.mediaController)==null?void 0:e.attributes)!=null?n:[]).filter(({name:s})=>$l[s]||s.startsWith("breakpoint")),...Array.from(this.attributes)],r={};for(const s of a){const o=(i=$l[s.name])!=null?i:zg(s.name);let{value:l}=s;l!=null?(jp(l)&&(l=parseFloat(l)),r[o]=l===""||l):r[o]=!1}return r}attributeChangedCallback(e,n,i){e==="template"&&n!=i&&Vl(this,eo,iu).call(this)}connectedCallback(){Vl(this,eo,iu).call(this)}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==au(this,Js)&&(Jn(this,Js,this.template),this.renderer=new rl(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(Jv.content.cloneNode(!0),this.renderer))}render(){var e;(e=this.renderer)==null||e.update(this.props)}}function DE({anchor:t,floating:e,placement:n}){const i=function({anchor:s,floating:o}){return{anchor:LE(s,o.offsetParent),floating:{x:0,y:0,width:o.offsetWidth,height:o.offsetHeight}}}({anchor:t,floating:e}),{x:a,y:r}=function({anchor:s,floating:o},l){const d=function(f){return["top","bottom"].includes(dm(f))?"y":"x"}(l)==="x"?"y":"x",u=d==="y"?"height":"width",c=dm(l),m=s.x+s.width/2-o.width/2,p=s.y+s.height/2-o.height/2,v=s[u]/2-o[u]/2;let b;switch(c){case"top":b={x:m,y:s.y-o.height};break;case"bottom":b={x:m,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:p};break;case"left":b={x:s.x-o.width,y:p};break;default:b={x:s.x,y:s.y}}switch(l.split("-")[1]){case"start":b[d]-=v;break;case"end":b[d]+=v}return b}(i,n);return{x:a,y:r}}function LE(t,e){var n;const i=t.getBoundingClientRect(),a=(n=e?.getBoundingClientRect())!=null?n:{x:0,y:0};return{x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}function dm(t){return t.split("-")[0]}aa=new WeakMap,Js=new WeakMap,Ji=new WeakMap,nu=new WeakSet,Xv=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}},eo=new WeakSet,iu=function(){var t;const e=this.getAttribute("template");if(!e||e===au(this,Ji))return;const n=this.getRootNode(),i=(t=n?.getElementById)==null?void 0:t.call(n,e);if(i)return Jn(this,Ji,e),Jn(this,aa,i),void this.createRenderer();(function(a){if(!/^(\/|\.\/|https?:\/\/)/.test(a))return!1;const r=/^https?:\/\//.test(a)?void 0:location.origin;try{new URL(a,r)}catch{return!1}return!0})(e)&&(Jn(this,Ji,e),async function(a){const r=await fetch(a);if(r.status!==200)throw new Error(`Failed to load resource: the server responded with a status of ${r.status}`);return r.text()}(e).then(a=>{const r=ge.createElement("template");r.innerHTML=a,Jn(this,aa,r),this.createRenderer()}).catch(console.error))},to.observedAttributes=["template"],to.processor=fc,g.customElements.get("media-theme")||g.customElements.define("media-theme",to);class Ec extends Event{constructor({action:e="auto",relatedTarget:n,...i}){super("invoke",i),this.action=e,this.relatedTarget=n}}class ME extends Event{constructor({newState:e,oldState:n,...i}){super("toggle",i),this.newState=e,this.oldState=n}}var Nt,ei,yn,no,io,ti,mr,ru,eb,Fo,su,Yo,ao,ou,lu,tb,du,nb,uu,ib,ra,sa,oa,pr,Go,cu,hu,ab,mu,um,pu,rb,vu,cm,bu,sb,fu,ob,vr,jo,gu,lb,br,Qo,ro,Eu,yc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},K=(t,e,n)=>(yc(t,e,"read from private field"),n?n.call(t):e.get(t)),z=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ot=(t,e,n,i)=>(yc(t,e,"write to private field"),e.set(t,n),n),Z=(t,e,n)=>(yc(t,e,"access private method"),n);function ca({type:t,text:e,value:n,checked:i}){const a=ge.createElement("media-chrome-menu-item");a.type=t,a.part.add("menu-item"),a.part.add(t),a.value=n,a.checked=i;const r=ge.createElement("span");return r.textContent=e,a.append(r),a}function ii(t,e){let n=t.querySelector(`:scope > [slot="${e}"]`);if(n?.nodeName=="SLOT"&&(n=n.assignedElements({flatten:!0})[0]),n)return n=n.cloneNode(!0),n;const i=t.shadowRoot.querySelector(`[name="${e}"] > svg`);return i?i.cloneNode(!0):""}const hm="style",mm="hidden",pm="disabled",xE="anchor";class st extends g.HTMLElement{constructor(){if(super(),z(this,ru),z(this,Fo),z(this,ao),z(this,lu),z(this,du),z(this,uu),z(this,oa),z(this,Go),z(this,hu),z(this,mu),z(this,pu),z(this,vu),z(this,bu),z(this,fu),z(this,vr),z(this,gu),z(this,br),z(this,ro),z(this,Nt,null),z(this,ei,null),z(this,yn,null),z(this,no,new Set),z(this,io,void 0),z(this,ti,!1),z(this,mr,null),z(this,Yo,()=>{const e=K(this,no),n=new Set(this.items);for(const i of e)n.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(const i of n)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));Ot(this,no,n)}),z(this,ra,()=>{Z(this,oa,pr).call(this),Z(this,Go,cu).call(this,!1)}),z(this,sa,()=>{Z(this,oa,pr).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.shadowRoot.addEventListener("slotchange",this),Ot(this,io,new MutationObserver(K(this,Yo))),K(this,io).observe(this.defaultSlot,{childList:!0})}static get observedAttributes(){return[pm,mm,hm,xE,F.MEDIA_CONTROLLER]}static formatMenuItemText(e,n){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":Z(this,ru,eb).call(this,e);break;case"invoke":Z(this,lu,tb).call(this,e);break;case"click":Z(this,hu,ab).call(this,e);break;case"toggle":Z(this,pu,rb).call(this,e);break;case"focusout":Z(this,bu,sb).call(this,e);break;case"keydown":Z(this,fu,ob).call(this,e)}}connectedCallback(){var e,n;Ot(this,mr,oc(this.shadowRoot,":host")),Z(this,ao,ou).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),Ot(this,Nt,yd(this)),(n=(e=K(this,Nt))==null?void 0:e.associateElement)==null||n.call(e,this),this.hidden||(da(fr(this),K(this,ra)),da(this,K(this,sa))),Z(this,Fo,su).call(this)}disconnectedCallback(){var e,n;ua(fr(this),K(this,ra)),ua(this,K(this,sa)),this.disable(),(n=(e=K(this,Nt))==null?void 0:e.unassociateElement)==null||n.call(e,this),Ot(this,Nt,null)}attributeChangedCallback(e,n,i){var a,r,s,o;e===mm&&i!==n?(K(this,ti)||Ot(this,ti,!0),this.hidden?Z(this,uu,ib).call(this):Z(this,du,nb).call(this),this.dispatchEvent(new ME({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===F.MEDIA_CONTROLLER?(n&&((r=(a=K(this,Nt))==null?void 0:a.unassociateElement)==null||r.call(a,this),Ot(this,Nt,null)),i&&this.isConnected&&(Ot(this,Nt,yd(this)),(o=(s=K(this,Nt))==null?void 0:s.associateElement)==null||o.call(s,this))):e===pm&&i!==n?i==null?this.enable():this.disable():e===hm&&i!==n&&Z(this,ao,ou).call(this)}formatMenuItemText(e,n){return this.constructor.formatMenuItemText(e,n)}get anchor(){return this.getAttribute("anchor")}set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?(e=nl(this))==null?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(NE)}get radioGroupItems(){return this.items.filter(e=>e.role==="menuitemradio")}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,n;return(n=(e=this.checkedItems[0])==null?void 0:e.value)!=null?n:""}set value(e){const n=this.items.find(i=>i.value===e);n&&Z(this,ro,Eu).call(this,n)}focus(){if(Ot(this,ei,sc()),this.items.length)return Z(this,br,Qo).call(this,this.items[0]),void this.items[0].focus();const e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');e?.focus()}handleSelect(e){var n;const i=Z(this,vr,jo).call(this,e);i&&(Z(this,ro,Eu).call(this,i,i.type==="checkbox"),K(this,yn)&&!this.hidden&&((n=K(this,ei))==null||n.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var n,i;const{key:a}=e,r=this.items,s=(i=(n=Z(this,vr,jo).call(this,e))!=null?n:Z(this,gu,lb).call(this))!=null?i:r[0],o=r.indexOf(s);let l=Math.max(0,o);a==="ArrowDown"?l++:a==="ArrowUp"?l--:e.key==="Home"?l=0:e.key==="End"&&(l=r.length-1),l<0&&(l=r.length-1),l>r.length-1&&(l=0),Z(this,br,Qo).call(this,r[l]),r[l].focus()}}function NE(t){return["menuitem","menuitemradio","menuitemcheckbox"].includes(t?.role)}function fr(t){var e;return(e=t.getAttribute("bounds")?ha(t,`#${t.getAttribute("bounds")}`):$e(t)||t.parentElement)!=null?e:t}Nt=new WeakMap,ei=new WeakMap,yn=new WeakMap,no=new WeakMap,io=new WeakMap,ti=new WeakMap,mr=new WeakMap,ru=new WeakSet,eb=function(t){const e=t.target;for(const n of e.assignedNodes({flatten:!0}))n.nodeType===3&&n.textContent.trim()===""&&n.remove();["header","title"].includes(e.name)&&Z(this,Fo,su).call(this),e.name||K(this,Yo).call(this)},Fo=new WeakSet,su=function(){const t=this.shadowRoot.querySelector('slot[name="header"]'),e=this.shadowRoot.querySelector('slot[name="title"]');t.hidden=e.assignedNodes().length===0&&t.assignedNodes().length===0},Yo=new WeakMap,ao=new WeakSet,ou=function(){var t;const e=this.shadowRoot.querySelector("#layout-row"),n=(t=getComputedStyle(this).getPropertyValue("--media-menu-layout"))==null?void 0:t.trim();e.setAttribute("media",n==="row"?"":"width:0")},lu=new WeakSet,tb=function(t){Ot(this,yn,t.relatedTarget),on(this,t.relatedTarget)||(this.hidden=!this.hidden)},du=new WeakSet,nb=function(){var t;(t=K(this,yn))==null||t.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),da(fr(this),K(this,ra)),da(this,K(this,sa))},uu=new WeakSet,ib=function(){var t;(t=K(this,yn))==null||t.setAttribute("aria-expanded","false"),ua(fr(this),K(this,ra)),ua(this,K(this,sa))},ra=new WeakMap,sa=new WeakMap,oa=new WeakSet,pr=function(t){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;const{x:e,y:n}=DE({anchor:this.anchorElement,floating:this,placement:"top-start"});t!=null||(t=this.offsetWidth);const i=fr(this).getBoundingClientRect(),a=i.width-e-t,r=i.height-n-this.offsetHeight,{style:s}=K(this,mr);s.setProperty("position","absolute"),s.setProperty("right",`${Math.max(0,a)}px`),s.setProperty("--_menu-bottom",`${r}px`);const o=getComputedStyle(this),l=s.getPropertyValue("--_menu-bottom")===o.bottom?r:parseFloat(o.bottom),d=i.height-l-parseFloat(o.marginBottom);this.style.setProperty("--_menu-max-height",`${d}px`)},Go=new WeakSet,cu=function(t){const e=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),n=e?.querySelector('[role="menu"]'),{style:i}=K(this,mr);if(t||i.setProperty("--media-menu-transition-in","none"),n){const a=n.offsetHeight,r=Math.max(n.offsetWidth,e.offsetWidth);this.style.setProperty("min-width",`${r}px`),this.style.setProperty("min-height",`${a}px`),Z(this,oa,pr).call(this,r)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),Z(this,oa,pr).call(this);i.removeProperty("--media-menu-transition-in")},hu=new WeakSet,ab=function(t){var e;if(t.stopPropagation(),t.composedPath().includes(K(this,mu,um)))return(e=K(this,ei))==null||e.focus(),void(this.hidden=!0);const n=Z(this,vr,jo).call(this,t);n&&!n.hasAttribute("disabled")&&(Z(this,br,Qo).call(this,n),this.handleSelect(t))},mu=new WeakSet,um=function(){var t;return(t=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))==null?void 0:t.find(e=>e.matches('button[part~="back"]'))},pu=new WeakSet,rb=function(t){if(t.target===this)return;Z(this,vu,cm).call(this);const e=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(const n of e)n.invokeTargetElement!=t.target&&(t.newState!="open"||n.getAttribute("aria-expanded")!="true"||n.invokeTargetElement.hidden||n.invokeTargetElement.dispatchEvent(new Ec({relatedTarget:n})));for(const n of e)n.setAttribute("aria-expanded",`${!n.submenuElement.hidden}`);Z(this,Go,cu).call(this,!0)},vu=new WeakSet,cm=function(){const t=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!t)},bu=new WeakSet,sb=function(t){var e;on(this,t.relatedTarget)||(K(this,ti)&&((e=K(this,ei))==null||e.focus()),K(this,yn)&&K(this,yn)!==t.relatedTarget&&!this.hidden&&(this.hidden=!0))},fu=new WeakSet,ob=function(t){var e,n,i,a,r;const{key:s,ctrlKey:o,altKey:l,metaKey:d}=t;if(!(o||l||d)&&this.keysUsed.includes(s))if(t.preventDefault(),t.stopPropagation(),s==="Tab"){if(K(this,ti))return void(this.hidden=!0);t.shiftKey?(n=(e=this.previousElementSibling)==null?void 0:e.focus)==null||n.call(e):(a=(i=this.nextElementSibling)==null?void 0:i.focus)==null||a.call(i),this.blur()}else s==="Escape"?((r=K(this,ei))==null||r.focus(),K(this,ti)&&(this.hidden=!0)):s==="Enter"||s===" "?this.handleSelect(t):this.handleMove(t)},vr=new WeakSet,jo=function(t){return t.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))},gu=new WeakSet,lb=function(){return this.items.find(t=>t.tabIndex===0)},br=new WeakSet,Qo=function(t){for(const e of this.items)e.tabIndex=e===t?0:-1},ro=new WeakSet,Eu=function(t,e){const n=[...this.checkedItems];t.type==="radio"&&this.radioGroupItems.forEach(i=>i.checked=!1),t.checked=!e||!t.checked,this.checkedItems.some((i,a)=>i!=n[a])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},st.shadowRootOptions={mode:"open"},st.getTemplateHTML=function(t){return`
|
|
1488
|
+
<style>
|
|
1489
|
+
:host {
|
|
1490
|
+
font: var(--media-font,
|
|
1491
|
+
var(--media-font-weight, normal)
|
|
1492
|
+
var(--media-font-size, 14px) /
|
|
1493
|
+
var(--media-text-content-height, var(--media-control-height, 24px))
|
|
1494
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
1495
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
1496
|
+
--_menu-bg: rgb(20 20 30 / .8);
|
|
1497
|
+
background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
|
|
1498
|
+
border-radius: var(--media-menu-border-radius);
|
|
1499
|
+
border: var(--media-menu-border, none);
|
|
1500
|
+
display: var(--media-menu-display, inline-flex) !important;
|
|
1501
|
+
|
|
1502
|
+
transition: var(--media-menu-transition-in,
|
|
1503
|
+
visibility 0s,
|
|
1504
|
+
opacity .2s ease-out,
|
|
1505
|
+
transform .15s ease-out,
|
|
1506
|
+
left .2s ease-in-out,
|
|
1507
|
+
min-width .2s ease-in-out,
|
|
1508
|
+
min-height .2s ease-in-out
|
|
1509
|
+
) !important;
|
|
1510
|
+
|
|
1511
|
+
visibility: var(--media-menu-visibility, visible);
|
|
1512
|
+
opacity: var(--media-menu-opacity, 1);
|
|
1513
|
+
max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
|
|
1514
|
+
transform: var(--media-menu-transform-in, translateY(0) scale(1));
|
|
1515
|
+
flex-direction: column;
|
|
1516
|
+
|
|
1517
|
+
min-height: 0;
|
|
1518
|
+
position: relative;
|
|
1519
|
+
bottom: var(--_menu-bottom);
|
|
1520
|
+
box-sizing: border-box;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
@-moz-document url-prefix() {
|
|
1524
|
+
:host{
|
|
1525
|
+
--_menu-bg: rgb(20 20 30);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
:host([hidden]) {
|
|
1530
|
+
transition: var(--media-menu-transition-out,
|
|
1531
|
+
visibility .15s ease-in,
|
|
1532
|
+
opacity .15s ease-in,
|
|
1533
|
+
transform .15s ease-in
|
|
1534
|
+
) !important;
|
|
1535
|
+
visibility: var(--media-menu-hidden-visibility, hidden);
|
|
1536
|
+
opacity: var(--media-menu-hidden-opacity, 0);
|
|
1537
|
+
max-height: var(--media-menu-hidden-max-height,
|
|
1538
|
+
var(--media-menu-max-height, var(--_menu-max-height, 300px)));
|
|
1539
|
+
transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
|
|
1540
|
+
pointer-events: none;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
:host([slot="submenu"]) {
|
|
1544
|
+
background: none;
|
|
1545
|
+
width: 100%;
|
|
1546
|
+
min-height: 100%;
|
|
1547
|
+
position: absolute;
|
|
1548
|
+
bottom: 0;
|
|
1549
|
+
right: -100%;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
#container {
|
|
1553
|
+
display: flex;
|
|
1554
|
+
flex-direction: column;
|
|
1555
|
+
min-height: 0;
|
|
1556
|
+
transition: transform .2s ease-out;
|
|
1557
|
+
transform: translate(0, 0);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
#container.has-expanded {
|
|
1561
|
+
transition: transform .2s ease-in;
|
|
1562
|
+
transform: translate(-100%, 0);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
button {
|
|
1566
|
+
background: none;
|
|
1567
|
+
color: inherit;
|
|
1568
|
+
border: none;
|
|
1569
|
+
padding: 0;
|
|
1570
|
+
font: inherit;
|
|
1571
|
+
outline: inherit;
|
|
1572
|
+
display: inline-flex;
|
|
1573
|
+
align-items: center;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
slot[name="header"][hidden] {
|
|
1577
|
+
display: none;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
slot[name="header"] > *,
|
|
1581
|
+
slot[name="header"]::slotted(*) {
|
|
1582
|
+
padding: .4em .7em;
|
|
1583
|
+
border-bottom: 1px solid rgb(255 255 255 / .25);
|
|
1584
|
+
cursor: var(--media-cursor, default);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
slot[name="header"] > button[part~="back"],
|
|
1588
|
+
slot[name="header"]::slotted(button[part~="back"]) {
|
|
1589
|
+
cursor: var(--media-cursor, pointer);
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
svg[part~="back"] {
|
|
1593
|
+
height: var(--media-menu-icon-height, var(--media-control-height, 24px));
|
|
1594
|
+
fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
|
|
1595
|
+
display: block;
|
|
1596
|
+
margin-right: .5ch;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
slot:not([name]) {
|
|
1600
|
+
gap: var(--media-menu-gap);
|
|
1601
|
+
flex-direction: var(--media-menu-flex-direction, column);
|
|
1602
|
+
overflow: var(--media-menu-overflow, hidden auto);
|
|
1603
|
+
display: flex;
|
|
1604
|
+
min-height: 0;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
:host([role="menu"]) slot:not([name]) {
|
|
1608
|
+
padding-block: .4em;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
slot:not([name])::slotted([role="menu"]) {
|
|
1612
|
+
background: none;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
media-chrome-menu-item > span {
|
|
1616
|
+
margin-right: .5ch;
|
|
1617
|
+
max-width: var(--media-menu-item-max-width);
|
|
1618
|
+
text-overflow: ellipsis;
|
|
1619
|
+
overflow: hidden;
|
|
1620
|
+
}
|
|
1621
|
+
</style>
|
|
1622
|
+
<style id="layout-row" media="width:0">
|
|
1623
|
+
|
|
1624
|
+
slot[name="header"] > *,
|
|
1625
|
+
slot[name="header"]::slotted(*) {
|
|
1626
|
+
padding: .4em .5em;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
slot:not([name]) {
|
|
1630
|
+
gap: var(--media-menu-gap, .25em);
|
|
1631
|
+
flex-direction: var(--media-menu-flex-direction, row);
|
|
1632
|
+
padding-inline: .5em;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
media-chrome-menu-item {
|
|
1636
|
+
padding: .3em .5em;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
media-chrome-menu-item[aria-checked="true"] {
|
|
1640
|
+
background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
media-chrome-menu-item::part(checked-indicator) {
|
|
1645
|
+
display: var(--media-menu-item-checked-indicator-display, none);
|
|
1646
|
+
}
|
|
1647
|
+
</style>
|
|
1648
|
+
<div id="container" part="container">
|
|
1649
|
+
<slot name="header" hidden>
|
|
1650
|
+
<button part="back button" aria-label="Back to previous menu">
|
|
1651
|
+
<slot name="back-icon">
|
|
1652
|
+
<svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
|
|
1653
|
+
<path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
|
|
1654
|
+
</svg>
|
|
1655
|
+
</slot>
|
|
1656
|
+
<slot name="title"></slot>
|
|
1657
|
+
</button>
|
|
1658
|
+
</slot>
|
|
1659
|
+
<slot></slot>
|
|
1660
|
+
</div>
|
|
1661
|
+
<slot name="checked-indicator" hidden></slot>
|
|
1662
|
+
`},g.customElements.get("media-chrome-menu")||g.customElements.define("media-chrome-menu",st);var so,gr,yu,db,zo,_u,Tu,vm,Pt,ea,za,Au,ub,oo,ku,_c=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ut=(t,e,n)=>(_c(t,e,"read from private field"),n?n.call(t):e.get(t)),zt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ql=(t,e,n,i)=>(_c(t,e,"write to private field"),e.set(t,n),n),ft=(t,e,n)=>(_c(t,e,"access private method"),n);const Zr="type",Kl="value",bm="checked",Fl="disabled";class In extends g.HTMLElement{constructor(){if(super(),zt(this,yu),zt(this,zo),zt(this,Tu),zt(this,ea),zt(this,Au),zt(this,oo),zt(this,so,!1),zt(this,gr,void 0),zt(this,Pt,()=>{var e,n;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);const i=this.shadowRoot.querySelector('slot[name="description"]'),a=(e=this.submenuElement.checkedItems)==null?void 0:e[0],r=(n=a?.dataset.description)!=null?n:a?.text,s=ge.createElement("span");s.textContent=r??"",i.replaceChildren(s)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=et(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.shadowRoot.addEventListener("slotchange",this)}static get observedAttributes(){return[Zr,Fl,bm,Kl]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),Ia(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","false"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":ft(this,yu,db).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":ft(this,Au,ub).call(this,e);break;case"keyup":ft(this,ea,za).call(this,e)}}attributeChangedCallback(e,n,i){e===bm&&Ia(this)&&!Ut(this,so)?this.setAttribute("aria-checked",i!=null?"true":"false"):e===Zr&&i!==n?this.role="menuitem"+i:e===Fl&&i!==n&&(i==null?this.enable():this.disable())}connectedCallback(){this.hasAttribute(Fl)||this.enable(),this.role="menuitem"+this.type,ql(this,gr,wu(this,this.parentNode)),ft(this,oo,ku).call(this),this.submenuElement&&ft(this,zo,_u).call(this)}disconnectedCallback(){this.disable(),ft(this,oo,ku).call(this),ql(this,gr,null)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=nl(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return(e=this.getAttribute(Zr))!=null?e:""}set type(e){this.setAttribute(Zr,`${e}`)}get value(){var e;return(e=this.getAttribute(Kl))!=null?e:this.text}set value(e){this.setAttribute(Kl,e)}get text(){var e;return((e=this.textContent)!=null?e:"").trim()}get checked(){if(Ia(this))return this.getAttribute("aria-checked")==="true"}set checked(e){Ia(this)&&(ql(this,so,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){Ia(this)||this.invokeTargetElement&&on(this,e.target)&&this.invokeTargetElement.dispatchEvent(new Ec({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}}function Ia(t){return t.type==="radio"||t.type==="checkbox"}function wu(t,e){if(!t)return null;const{host:n}=t.getRootNode();return!e&&n?wu(t,n):e?.items?e:wu(e,e?.parentNode)}so=new WeakMap,gr=new WeakMap,yu=new WeakSet,db=function(t){const e=t.target;if(!e?.name)for(const n of e.assignedNodes({flatten:!0}))n instanceof Text&&n.textContent.trim()===""&&n.remove();e.name==="submenu"&&(this.submenuElement?ft(this,zo,_u).call(this):ft(this,Tu,vm).call(this))},zo=new WeakSet,_u=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",Ut(this,Pt)),this.submenuElement.addEventListener("addmenuitem",Ut(this,Pt)),this.submenuElement.addEventListener("removemenuitem",Ut(this,Pt)),Ut(this,Pt).call(this)},Tu=new WeakSet,vm=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",Ut(this,Pt)),this.submenuElement.removeEventListener("addmenuitem",Ut(this,Pt)),this.submenuElement.removeEventListener("removemenuitem",Ut(this,Pt)),Ut(this,Pt).call(this)},Pt=new WeakMap,ea=new WeakSet,za=function(t){const{key:e}=t;this.keysUsed.includes(e)?this.handleClick(t):this.removeEventListener("keyup",ft(this,ea,za))},Au=new WeakSet,ub=function(t){const{metaKey:e,altKey:n,key:i}=t;e||n||!this.keysUsed.includes(i)?this.removeEventListener("keyup",ft(this,ea,za)):this.addEventListener("keyup",ft(this,ea,za),{once:!0})},oo=new WeakSet,ku=function(){var t;const e=(t=Ut(this,gr))==null?void 0:t.radioGroupItems;if(!e)return;let n=e.filter(i=>i.getAttribute("aria-checked")==="true").pop();n||(n=e[0]);for(const i of e)i.setAttribute("aria-checked","false");n?.setAttribute("aria-checked","true")},In.shadowRootOptions={mode:"open"},In.getTemplateHTML=function(t){return`
|
|
1663
|
+
<style>
|
|
1664
|
+
:host {
|
|
1665
|
+
transition: var(--media-menu-item-transition,
|
|
1666
|
+
background .15s linear,
|
|
1667
|
+
opacity .2s ease-in-out
|
|
1668
|
+
);
|
|
1669
|
+
outline: var(--media-menu-item-outline, 0);
|
|
1670
|
+
outline-offset: var(--media-menu-item-outline-offset, -1px);
|
|
1671
|
+
cursor: var(--media-cursor, pointer);
|
|
1672
|
+
display: flex;
|
|
1673
|
+
align-items: center;
|
|
1674
|
+
align-self: stretch;
|
|
1675
|
+
justify-self: stretch;
|
|
1676
|
+
white-space: nowrap;
|
|
1677
|
+
white-space-collapse: collapse;
|
|
1678
|
+
text-wrap: nowrap;
|
|
1679
|
+
padding: .4em .8em .4em 1em;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
:host(:focus-visible) {
|
|
1683
|
+
box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
|
|
1684
|
+
outline: var(--media-menu-item-hover-outline, 0);
|
|
1685
|
+
outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px));
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
:host(:hover) {
|
|
1689
|
+
cursor: var(--media-cursor, pointer);
|
|
1690
|
+
background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
|
|
1691
|
+
outline: var(--media-menu-item-hover-outline);
|
|
1692
|
+
outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px));
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
:host([aria-checked="true"]) {
|
|
1696
|
+
background: var(--media-menu-item-checked-background);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
:host([hidden]) {
|
|
1700
|
+
display: none;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
:host([disabled]) {
|
|
1704
|
+
pointer-events: none;
|
|
1705
|
+
color: rgba(255, 255, 255, .3);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
slot:not([name]) {
|
|
1709
|
+
width: 100%;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
slot:not([name="submenu"]) {
|
|
1713
|
+
display: inline-flex;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
transition: inherit;
|
|
1716
|
+
opacity: var(--media-menu-item-opacity, 1);
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
slot[name="description"] {
|
|
1720
|
+
justify-content: end;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
slot[name="description"] > span {
|
|
1724
|
+
display: inline-block;
|
|
1725
|
+
margin-inline: 1em .2em;
|
|
1726
|
+
max-width: var(--media-menu-item-description-max-width, 100px);
|
|
1727
|
+
text-overflow: ellipsis;
|
|
1728
|
+
overflow: hidden;
|
|
1729
|
+
font-size: .8em;
|
|
1730
|
+
font-weight: 400;
|
|
1731
|
+
text-align: right;
|
|
1732
|
+
position: relative;
|
|
1733
|
+
top: .04em;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
slot[name="checked-indicator"] {
|
|
1737
|
+
display: none;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
:host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
|
|
1741
|
+
display: var(--media-menu-item-checked-indicator-display, inline-block);
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
svg, img, ::slotted(svg), ::slotted(img) {
|
|
1746
|
+
height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
|
|
1747
|
+
fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
|
|
1748
|
+
display: block;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
[part~="indicator"],
|
|
1753
|
+
::slotted([part~="indicator"]) {
|
|
1754
|
+
fill: var(--media-menu-item-indicator-fill,
|
|
1755
|
+
var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
|
|
1756
|
+
height: var(--media-menu-item-indicator-height, 1.25em);
|
|
1757
|
+
margin-right: .5ch;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
[part~="checked-indicator"] {
|
|
1761
|
+
visibility: hidden;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
:host([aria-checked="true"]) [part~="checked-indicator"] {
|
|
1765
|
+
visibility: visible;
|
|
1766
|
+
}
|
|
1767
|
+
</style>
|
|
1768
|
+
<slot name="checked-indicator">
|
|
1769
|
+
<svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
|
|
1770
|
+
<path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
|
|
1771
|
+
</svg>
|
|
1772
|
+
</slot>
|
|
1773
|
+
<slot name="prefix"></slot>
|
|
1774
|
+
<slot></slot>
|
|
1775
|
+
<slot name="description"></slot>
|
|
1776
|
+
<slot name="suffix">
|
|
1777
|
+
${this.getSuffixSlotInnerHTML(t)}
|
|
1778
|
+
</slot>
|
|
1779
|
+
<slot name="submenu"></slot>
|
|
1780
|
+
`},In.getSuffixSlotInnerHTML=function(t){return""},g.customElements.get("media-chrome-menu-item")||g.customElements.define("media-chrome-menu-item",In);class fm extends st{get anchorElement(){return this.anchor!=="auto"?super.anchorElement:$e(this).querySelector("media-settings-menu-button")}}fm.getTemplateHTML=function(t){return`
|
|
1781
|
+
${st.getTemplateHTML(t)}
|
|
1782
|
+
<style>
|
|
1783
|
+
:host {
|
|
1784
|
+
--_menu-bg: rgb(20 20 30 / .8);
|
|
1785
|
+
background: var(--media-settings-menu-background,
|
|
1786
|
+
var(--media-menu-background,
|
|
1787
|
+
var(--media-control-background,
|
|
1788
|
+
var(--media-secondary-color, var(--_menu-bg)))));
|
|
1789
|
+
min-width: var(--media-settings-menu-min-width, 170px);
|
|
1790
|
+
border-radius: 2px 2px 0 0;
|
|
1791
|
+
overflow: hidden;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
@-moz-document url-prefix() {
|
|
1795
|
+
:host{
|
|
1796
|
+
--_menu-bg: rgb(20 20 30);
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
:host([role="menu"]) {
|
|
1801
|
+
|
|
1802
|
+
justify-content: end;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
slot:not([name]) {
|
|
1806
|
+
justify-content: var(--media-settings-menu-justify-content);
|
|
1807
|
+
flex-direction: var(--media-settings-menu-flex-direction, column);
|
|
1808
|
+
overflow: visible;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
#container.has-expanded {
|
|
1812
|
+
--media-settings-menu-item-opacity: 0;
|
|
1813
|
+
}
|
|
1814
|
+
</style>
|
|
1815
|
+
`},g.customElements.get("media-settings-menu")||g.customElements.define("media-settings-menu",fm);class Xr extends In{}Xr.shadowRootOptions={mode:"open"},Xr.getTemplateHTML=function(t){return`
|
|
1816
|
+
${In.getTemplateHTML.call(this,t)}
|
|
1817
|
+
<style>
|
|
1818
|
+
slot:not([name="submenu"]) {
|
|
1819
|
+
opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
:host([aria-expanded="true"]:hover) {
|
|
1823
|
+
background: transparent;
|
|
1824
|
+
}
|
|
1825
|
+
</style>
|
|
1826
|
+
`},Xr.getSuffixSlotInnerHTML=function(t){return`
|
|
1827
|
+
<svg aria-hidden="true" viewBox="0 0 20 24">
|
|
1828
|
+
<path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>
|
|
1829
|
+
</svg>
|
|
1830
|
+
`},g.customElements.get("media-settings-menu-item")||g.customElements.define("media-settings-menu-item",Xr);class ma extends De{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=nl(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;(e=this.invokeTargetElement)==null||e.dispatchEvent(new Ec({relatedTarget:this}))}}g.customElements.get("media-chrome-menu-button")||g.customElements.define("media-chrome-menu-button",ma);class Yl extends ma{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",L("settings"))}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:$e(this).querySelector("media-settings-menu")}}Yl.getSlotTemplateHTML=function(){return`
|
|
1831
|
+
<style>
|
|
1832
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
1833
|
+
display: none;
|
|
1834
|
+
}
|
|
1835
|
+
</style>
|
|
1836
|
+
<slot name="icon">
|
|
1837
|
+
<svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1838
|
+
<path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
|
|
1839
|
+
</svg>
|
|
1840
|
+
</slot>
|
|
1841
|
+
`},Yl.getTooltipContentHTML=function(){return L("Settings")},g.customElements.get("media-settings-menu-button")||g.customElements.define("media-settings-menu-button",Yl);var Za,lo,uo,Iu,co,Su,Tc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},cb=(t,e,n)=>(Tc(t,e,"read from private field"),n?n.call(t):e.get(t)),Jr=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ru=(t,e,n,i)=>(Tc(t,e,"write to private field"),e.set(t,n),n),es=(t,e,n)=>(Tc(t,e,"access private method"),n);class OE extends st{constructor(){super(...arguments),Jr(this,uo),Jr(this,co),Jr(this,Za,[]),Jr(this,lo,void 0)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_AUDIO_TRACK_LIST,h.MEDIA_AUDIO_TRACK_ENABLED,h.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,n,i){var a;super.attributeChangedCallback(e,n,i),e===h.MEDIA_AUDIO_TRACK_ENABLED&&n!==i?this.value=i:e===h.MEDIA_AUDIO_TRACK_LIST&&n!==i&&(Ru(this,Za,(a=i??"")==null?void 0:a.split(/\s+/).map(Qg)),es(this,uo,Iu).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",es(this,co,Su))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",es(this,co,Su))}get anchorElement(){var e;return this.anchor!=="auto"?super.anchorElement:(e=$e(this))==null?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return cb(this,Za)}set mediaAudioTrackList(e){Ru(this,Za,e),es(this,uo,Iu).call(this)}get mediaAudioTrackEnabled(){var e;return(e=ie(this,h.MEDIA_AUDIO_TRACK_ENABLED))!=null?e:""}set mediaAudioTrackEnabled(e){ae(this,h.MEDIA_AUDIO_TRACK_ENABLED,e)}}Za=new WeakMap,lo=new WeakMap,uo=new WeakSet,Iu=function(){if(cb(this,lo)===JSON.stringify(this.mediaAudioTrackList))return;Ru(this,lo,JSON.stringify(this.mediaAudioTrackList));const t=this.mediaAudioTrackList;this.defaultSlot.textContent="",t.sort((e,n)=>e.id.localeCompare(n.id,void 0,{numeric:!0}));for(const e of t){const n=ca({type:"radio",text:this.formatMenuItemText(e.label,e),value:`${e.id}`,checked:e.enabled});n.prepend(ii(this,"checked-indicator")),this.defaultSlot.append(n)}},co=new WeakSet,Su=function(){if(this.value==null)return;const t=new g.CustomEvent(R.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)},g.customElements.get("media-audio-track-menu")||g.customElements.define("media-audio-track-menu",OE);const gm=t=>{const e=L("Audio");t.setAttribute("aria-label",e)};class Gl extends ma{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_AUDIO_TRACK_ENABLED,h.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),gm(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_LANG&&gm(this)}get invokeTargetElement(){var e;return this.invokeTarget!=null?super.invokeTargetElement:(e=$e(this))==null?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return(e=ie(this,h.MEDIA_AUDIO_TRACK_ENABLED))!=null?e:""}set mediaAudioTrackEnabled(e){ae(this,h.MEDIA_AUDIO_TRACK_ENABLED,e)}}Gl.getSlotTemplateHTML=function(){return`
|
|
1842
|
+
<style>
|
|
1843
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
1844
|
+
display: none;
|
|
1845
|
+
}
|
|
1846
|
+
</style>
|
|
1847
|
+
<slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1848
|
+
<path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
|
|
1849
|
+
<path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
|
|
1850
|
+
</svg></slot>
|
|
1851
|
+
`},Gl.getTooltipContentHTML=function(){return L("Audio")},g.customElements.get("media-audio-track-menu-button")||g.customElements.define("media-audio-track-menu-button",Gl);var ho,mo,Cu,po,Du,Lu=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},jl=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ts=(t,e,n)=>(Lu(t,e,"access private method"),n);class hb extends st{constructor(){super(...arguments),jl(this,mo),jl(this,po),jl(this,ho,void 0)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_SUBTITLES_LIST,h.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_SUBTITLES_LIST&&n!==i?ts(this,mo,Cu).call(this):e===h.MEDIA_SUBTITLES_SHOWING&&n!==i&&(this.value=i||"",ts(this,mo,Cu).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",ts(this,po,Du))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",ts(this,po,Du))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:$e(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return Em(this,h.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){ym(this,h.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Em(this,h.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){ym(this,h.MEDIA_SUBTITLES_SHOWING,e)}}ho=new WeakMap,mo=new WeakSet,Cu=function(){var t;const e=(Lu(n=this,i=ho,"read from private field"),i.get(n)!==JSON.stringify(this.mediaSubtitlesList));var n,i;const a=this.value!==this.getAttribute(h.MEDIA_SUBTITLES_SHOWING);if(!e&&!a)return;((l,d,u)=>{Lu(l,d,"write to private field"),d.set(l,u)})(this,ho,JSON.stringify(this.mediaSubtitlesList)),this.defaultSlot.textContent="";const r=!this.value,s=ca({type:"radio",text:this.formatMenuItemText(L("Off")),value:"off",checked:r});s.prepend(ii(this,"checked-indicator")),this.defaultSlot.append(s);const o=this.mediaSubtitlesList;for(const l of o){const d=ca({type:"radio",text:this.formatMenuItemText(l.label,l),value:kd(l),checked:this.value==kd(l)});d.prepend(ii(this,"checked-indicator")),((t=l.kind)!=null?t:"subs")==="captions"&&d.append(ii(this,"captions-indicator")),this.defaultSlot.append(d)}},po=new WeakSet,Du=function(){const t=this.mediaSubtitlesShowing,e=this.getAttribute(h.MEDIA_SUBTITLES_SHOWING),n=this.value!==e;if(t?.length&&n&&this.dispatchEvent(new g.CustomEvent(R.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:t})),!this.value||!n)return;const i=new g.CustomEvent(R.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)},hb.getTemplateHTML=function(t){return`
|
|
1852
|
+
${st.getTemplateHTML(t)}
|
|
1853
|
+
<slot name="captions-indicator" hidden>
|
|
1854
|
+
<svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
|
|
1855
|
+
<path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
|
|
1856
|
+
</svg></slot>
|
|
1857
|
+
`};const Em=(t,e)=>{const n=t.getAttribute(e);return n?il(n):[]},ym=(t,e,n)=>{if(!n?.length)return void t.removeAttribute(e);const i=Cr(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};g.customElements.get("media-captions-menu")||g.customElements.define("media-captions-menu",hb);const _m=t=>{t.setAttribute("data-captions-enabled",mv(t).toString())},Tm=t=>{t.setAttribute("aria-label",L("closed captions"))};class Mu extends ma{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_SUBTITLES_LIST,h.MEDIA_SUBTITLES_SHOWING,h.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),Tm(this),_m(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_SUBTITLES_SHOWING?_m(this):e===h.MEDIA_LANG&&Tm(this)}get invokeTargetElement(){var e;return this.invokeTarget!=null?super.invokeTargetElement:(e=$e(this))==null?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return Am(this,h.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){km(this,h.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Am(this,h.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){km(this,h.MEDIA_SUBTITLES_SHOWING,e)}}Mu.getSlotTemplateHTML=function(){return`
|
|
1858
|
+
<style>
|
|
1859
|
+
:host([data-captions-enabled="true"]) slot[name=off] {
|
|
1860
|
+
display: none !important;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
:host(:not([data-captions-enabled="true"])) slot[name=on] {
|
|
1865
|
+
display: none !important;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
1869
|
+
display: none;
|
|
1870
|
+
}
|
|
1871
|
+
</style>
|
|
1872
|
+
|
|
1873
|
+
<slot name="icon">
|
|
1874
|
+
<slot name="on"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
1875
|
+
<path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
|
|
1876
|
+
</svg></slot>
|
|
1877
|
+
<slot name="off"><svg aria-hidden="true" viewBox="0 0 26 24">
|
|
1878
|
+
<path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
|
|
1879
|
+
</svg></slot>
|
|
1880
|
+
</slot>
|
|
1881
|
+
`},Mu.getTooltipContentHTML=function(){return L("Captions")};const Am=(t,e)=>{const n=t.getAttribute(e);return n?il(n):[]},km=(t,e,n)=>{if(!n?.length)return void t.removeAttribute(e);const i=Cr(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};g.customElements.get("media-captions-menu-button")||g.customElements.define("media-captions-menu-button",Mu);var _n,Vi,Xa,vo,xu,mb=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},$i=(t,e,n)=>(mb(t,e,"read from private field"),n?n.call(t):e.get(t)),Ql=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},vi=(t,e,n)=>(mb(t,e,"access private method"),n);const zl="rates";class PE extends st{constructor(){super(),Ql(this,Vi),Ql(this,vo),Ql(this,_n,new dc(this,zl,{defaultValue:Uv})),vi(this,Vi,Xa).call(this)}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PLAYBACK_RATE,zl]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===h.MEDIA_PLAYBACK_RATE&&n!=i?(this.value=i,vi(this,Vi,Xa).call(this)):e===zl&&n!=i&&($i(this,_n).value=i,vi(this,Vi,Xa).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",vi(this,vo,xu))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",vi(this,vo,xu))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:$e(this).querySelector("media-playback-rate-menu-button")}get rates(){return $i(this,_n)}set rates(e){e?Array.isArray(e)?$i(this,_n).value=e.join(" "):typeof e=="string"&&($i(this,_n).value=e):$i(this,_n).value="",vi(this,Vi,Xa).call(this)}get mediaPlaybackRate(){return ne(this,h.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){he(this,h.MEDIA_PLAYBACK_RATE,e)}}_n=new WeakMap,Vi=new WeakSet,Xa=function(){this.defaultSlot.textContent="";const t=this.mediaPlaybackRate,e=new Set(Array.from($i(this,_n)).map(i=>Number(i)));t>0&&!e.has(t)&&e.add(t);const n=Array.from(e).sort((i,a)=>i-a);for(const i of n){const a=ca({type:"radio",text:this.formatMenuItemText(`${i}x`,i),value:i.toString(),checked:t===i});a.prepend(ii(this,"checked-indicator")),this.defaultSlot.append(a)}},vo=new WeakSet,xu=function(){if(!this.value)return;const t=new g.CustomEvent(R.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)},g.customElements.get("media-playback-rate-menu")||g.customElements.define("media-playback-rate-menu",PE);class Zl extends ma{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${(e=this.mediaPlaybackRate)!=null?e:1}x`}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),e===h.MEDIA_PLAYBACK_RATE){const a=i?+i:Number.NaN,r=Number.isNaN(a)?1:a;this.container.innerHTML=`${r}x`,this.setAttribute("aria-label",L("Playback rate {playbackRate}",{playbackRate:r}))}}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:$e(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return ne(this,h.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){he(this,h.MEDIA_PLAYBACK_RATE,e)}}Zl.getSlotTemplateHTML=function(t){return`
|
|
1882
|
+
<style>
|
|
1883
|
+
:host {
|
|
1884
|
+
min-width: 5ch;
|
|
1885
|
+
padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
:host([aria-expanded="true"]) slot {
|
|
1889
|
+
display: block;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
1893
|
+
display: none;
|
|
1894
|
+
}
|
|
1895
|
+
</style>
|
|
1896
|
+
<slot name="icon">${t.mediaplaybackrate||1}x</slot>
|
|
1897
|
+
`},Zl.getTooltipContentHTML=function(){return L("Playback rate")},g.customElements.get("media-playback-rate-menu-button")||g.customElements.define("media-playback-rate-menu-button",Zl);var Ja,qi,Ki,er,bo,Nu,Ac=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},tr=(t,e,n)=>(Ac(t,e,"read from private field"),n?n.call(t):e.get(t)),ns=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},wm=(t,e,n,i)=>(Ac(t,e,"write to private field"),e.set(t,n),n),bi=(t,e,n)=>(Ac(t,e,"access private method"),n);class UE extends st{constructor(){super(...arguments),ns(this,Ki),ns(this,bo),ns(this,Ja,[]),ns(this,qi,{})}static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_RENDITION_LIST,h.MEDIA_RENDITION_SELECTED,h.MEDIA_RENDITION_UNAVAILABLE,h.MEDIA_HEIGHT]}static formatMenuItemText(e,n){return super.formatMenuItemText(e,n)}static formatRendition(e,{showBitrate:n=!1}={}){const i=`${Math.min(e.width,e.height)}p`;if(n&&e.bitrate){const a=e.bitrate/1e6;return`${i} (${`${a.toFixed(a<1?1:0)} Mbps`})`}return this.formatMenuItemText(i,e)}static compareRendition(e,n){var i,a;return n.height===e.height?((i=n.bitrate)!=null?i:0)-((a=e.bitrate)!=null?a:0):n.height-e.height}attributeChangedCallback(e,n,i){var a;super.attributeChangedCallback(e,n,i),e===h.MEDIA_RENDITION_SELECTED&&n!==i?(this.value=i??"auto",bi(this,Ki,er).call(this)):e===h.MEDIA_RENDITION_LIST&&n!==i?(wm(this,Ja,(a=i)==null?void 0:a.split(/\s+/).map(Gg)),bi(this,Ki,er).call(this)):e===h.MEDIA_HEIGHT&&n!==i&&bi(this,Ki,er).call(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",bi(this,bo,Nu))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",bi(this,bo,Nu))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:$e(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return tr(this,Ja)}set mediaRenditionList(e){wm(this,Ja,e),bi(this,Ki,er).call(this)}get mediaRenditionSelected(){return ie(this,h.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){ae(this,h.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return ne(this,h.MEDIA_HEIGHT)}set mediaHeight(e){he(this,h.MEDIA_HEIGHT,e)}compareRendition(e,n){return this.constructor.compareRendition(e,n)}formatMenuItemText(e,n){return this.constructor.formatMenuItemText(e,n)}formatRendition(e,n){return this.constructor.formatRendition(e,n)}showRenditionBitrate(e){return this.mediaRenditionList.some(n=>n!==e&&n.height===e.height&&n.bitrate!==e.bitrate)}}Ja=new WeakMap,qi=new WeakMap,Ki=new WeakSet,er=function(){if(tr(this,qi).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&tr(this,qi).mediaHeight===this.mediaHeight)return;tr(this,qi).mediaRenditionList=JSON.stringify(this.mediaRenditionList),tr(this,qi).mediaHeight=this.mediaHeight;const t=this.mediaRenditionList.sort(this.compareRendition.bind(this)),e=t.find(s=>s.id===this.mediaRenditionSelected);for(const s of t)s.selected=s===e;this.defaultSlot.textContent="";const n=!this.mediaRenditionSelected;for(const s of t){const o=ca({type:"radio",text:this.formatRendition(s,{showBitrate:this.showRenditionBitrate(s)}),value:`${s.id}`,checked:s.selected&&!n});o.prepend(ii(this,"checked-indicator")),this.defaultSlot.append(o)}const i=e&&this.showRenditionBitrate(e),a=n?e?this.formatMenuItemText(`${L("Auto")} • ${this.formatRendition(e,{showBitrate:i})}`,e):this.formatMenuItemText(`${L("Auto")} (${this.mediaHeight}p)`):this.formatMenuItemText(L("Auto")),r=ca({type:"radio",text:a,value:"auto",checked:n});r.dataset.description=a,r.prepend(ii(this,"checked-indicator")),this.defaultSlot.append(r)},bo=new WeakSet,Nu=function(){if(this.value==null)return;const t=new g.CustomEvent(R.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)},g.customElements.get("media-rendition-menu")||g.customElements.define("media-rendition-menu",UE);class Xl extends ma{static get observedAttributes(){return[...super.observedAttributes,h.MEDIA_RENDITION_SELECTED,h.MEDIA_RENDITION_UNAVAILABLE,h.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",L("quality"))}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:$e(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return ie(this,h.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){ae(this,h.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return ne(this,h.MEDIA_HEIGHT)}set mediaHeight(e){he(this,h.MEDIA_HEIGHT,e)}}Xl.getSlotTemplateHTML=function(){return`
|
|
1898
|
+
<style>
|
|
1899
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
1900
|
+
display: none;
|
|
1901
|
+
}
|
|
1902
|
+
</style>
|
|
1903
|
+
<slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">
|
|
1904
|
+
<path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
|
|
1905
|
+
</svg></slot>
|
|
1906
|
+
`},Xl.getTooltipContentHTML=function(){return L("Quality")},g.customElements.get("media-rendition-menu-button")||g.customElements.define("media-rendition-menu-button",Xl);var ta,Er,fo,Gn,na,Ou,Im,go,Pu,Eo,Uu,pb,Zo,Xo,yo,kc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ht=(t,e,n)=>(kc(t,e,"read from private field"),n?n.call(t):e.get(t)),At=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Sm=(t,e,n,i)=>(kc(t,e,"write to private field"),e.set(t,n),n),at=(t,e,n)=>(kc(t,e,"access private method"),n);class Rm extends st{constructor(){super(),At(this,Er),At(this,Gn),At(this,Ou),At(this,go),At(this,Uu),At(this,ta,!1),At(this,Eo,e=>{const n=e.target,i=n?.nodeName==="VIDEO",a=at(this,go,Pu).call(this,n);(i||a)&&(Ht(this,ta)?at(this,Gn,na).call(this):at(this,Uu,pb).call(this,e))}),At(this,Zo,e=>{const n=e.target,i=this.contains(n),a=e.button===2,r=n?.nodeName==="VIDEO",s=at(this,go,Pu).call(this,n);i||a&&(r||s)||at(this,Gn,na).call(this)}),At(this,Xo,e=>{e.key==="Escape"&&at(this,Gn,na).call(this)}),At(this,yo,e=>{var n,i;const a=e.target;if((n=a.matches)!=null&&n.call(a,'button[invoke="copy"]')){const r=(i=a.closest("media-context-menu-item"))==null?void 0:i.querySelector('input[slot="copy"]');r&&navigator.clipboard.writeText(r.value)}at(this,Gn,na).call(this)}),this.setAttribute("noautohide",""),at(this,Er,fo).call(this)}connectedCallback(){super.connectedCallback(),$e(this).addEventListener("contextmenu",Ht(this,Eo)),this.addEventListener("click",Ht(this,yo))}disconnectedCallback(){super.disconnectedCallback(),$e(this).removeEventListener("contextmenu",Ht(this,Eo)),this.removeEventListener("click",Ht(this,yo)),document.removeEventListener("mousedown",Ht(this,Zo)),document.removeEventListener("keydown",Ht(this,Xo))}}ta=new WeakMap,Er=new WeakSet,fo=function(){this.hidden=!Ht(this,ta)},Gn=new WeakSet,na=function(){Sm(this,ta,!1),at(this,Er,fo).call(this)},Ou=new WeakSet,Im=function(){document.querySelectorAll("media-context-menu").forEach(t=>{var e;t!==this&&at(e=t,Gn,na).call(e)})},go=new WeakSet,Pu=function(t){return t?t.hasAttribute("slot")&&t.getAttribute("slot")==="media"?!0:t.nodeName.includes("-")&&t.tagName.includes("-")?t.hasAttribute("src")||t.hasAttribute("poster")||t.hasAttribute("preload")||t.hasAttribute("playsinline"):!1:!1},Eo=new WeakMap,Uu=new WeakSet,pb=function(t){t.preventDefault(),at(this,Ou,Im).call(this),Sm(this,ta,!0),this.style.position="fixed",this.style.left=`${t.clientX}px`,this.style.top=`${t.clientY}px`,at(this,Er,fo).call(this),document.addEventListener("mousedown",Ht(this,Zo),{once:!0}),document.addEventListener("keydown",Ht(this,Xo),{once:!0})},Zo=new WeakMap,Xo=new WeakMap,yo=new WeakMap,Rm.getTemplateHTML=function(t){return`
|
|
1907
|
+
${st.getTemplateHTML(t)}
|
|
1908
|
+
<style>
|
|
1909
|
+
:host {
|
|
1910
|
+
--_menu-bg: rgb(20 20 30 / .8);
|
|
1911
|
+
background: var(--media-settings-menu-background,
|
|
1912
|
+
var(--media-menu-background,
|
|
1913
|
+
var(--media-control-background,
|
|
1914
|
+
var(--media-secondary-color, var(--_menu-bg)))));
|
|
1915
|
+
min-width: var(--media-settings-menu-min-width, 170px);
|
|
1916
|
+
border-radius: 2px;
|
|
1917
|
+
overflow: hidden;
|
|
1918
|
+
}
|
|
1919
|
+
</style>
|
|
1920
|
+
`},g.customElements.get("media-context-menu")||g.customElements.define("media-context-menu",Rm);class Jl extends In{}Jl.shadowRootOptions={mode:"open"},Jl.getTemplateHTML=function(t){return`
|
|
1921
|
+
${In.getTemplateHTML.call(this,t)}
|
|
1922
|
+
<style>
|
|
1923
|
+
::slotted(*) {
|
|
1924
|
+
color: var(--media-text-color, white);
|
|
1925
|
+
text-decoration: none;
|
|
1926
|
+
border: none;
|
|
1927
|
+
background: none;
|
|
1928
|
+
cursor: pointer;
|
|
1929
|
+
padding: 0;
|
|
1930
|
+
min-height: var(--media-control-height, 24px);
|
|
1931
|
+
}
|
|
1932
|
+
</style>
|
|
1933
|
+
`},g.customElements.get("media-context-menu-item")||g.customElements.define("media-context-menu-item",Jl);var vb=t=>{throw TypeError(t)},wc=(t,e,n)=>e.has(t)||vb("Cannot "+n),Q=(t,e,n)=>(wc(t,e,"read from private field"),n?n.call(t):e.get(t)),vt=(t,e,n)=>e.has(t)?vb("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Kt=(t,e,n,i)=>(wc(t,e,"write to private field"),e.set(t,n),n),fe=(t,e,n)=>(wc(t,e,"access private method"),n),Jo=class{addEventListener(){}removeEventListener(){}dispatchEvent(t){return!0}};if(typeof DocumentFragment>"u"){class t extends Jo{}globalThis.DocumentFragment=t}var _o,Hu=class extends Jo{},HE={get(t){},define(t,e,n){},getName:t=>null,upgrade(t){},whenDefined:t=>Promise.resolve(Hu)};_o=new WeakMap;var bb={document:{createElement:function(t,e){return new Hu}},DocumentFragment,customElements:HE,CustomEvent:class{constructor(t,e={}){vt(this,_o),Kt(this,_o,e?.detail)}get detail(){return Q(this,_o)}initCustomEvent(){}},EventTarget:Jo,HTMLElement:Hu,HTMLVideoElement:class extends Jo{}},fb=typeof window>"u"||globalThis.customElements===void 0,$t=fb?bb:globalThis,el=fb?bb.document:globalThis.document;function Wu(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function gb(t){return t.replace(/[-_]([a-z])/g,(e,n)=>n.toUpperCase())}function ze(t){if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}function Cm(t){let e=function(n){let i={};for(let a in n)n[a]!=null&&(i[a]=n[a]);return new URLSearchParams(i)}(t).toString();return e?"?"+e:""}var Eb=(t,e)=>!(!t||!e)&&(!!t.contains(e)||Eb(t,e.getRootNode().host)),Dm="mux.com",WE=(()=>{try{return"3.11.4"}catch{}return"UNKNOWN"})(),yb=()=>WE,Bu=t=>{if(t){if([j.LIVE,j.ON_DEMAND].includes(t))return t;if(t!=null&&t.includes("live"))return j.LIVE}},BE={crossorigin:"crossOrigin",playsinline:"playsInline"};function VE(t){var e;return(e=BE[t])!=null?e:gb(t)}var Fi,Yi,Ve,$E=class{constructor(t,e){vt(this,Fi),vt(this,Yi),vt(this,Ve,[]),Kt(this,Fi,t),Kt(this,Yi,e)}[Symbol.iterator](){return Q(this,Ve).values()}get length(){return Q(this,Ve).length}get value(){var t;return(t=Q(this,Ve).join(" "))!=null?t:""}set value(t){var e;t!==this.value&&(Kt(this,Ve,[]),this.add(...(e=t?.split(" "))!=null?e:[]))}toString(){return this.value}item(t){return Q(this,Ve)[t]}values(){return Q(this,Ve).values()}keys(){return Q(this,Ve).keys()}forEach(t){Q(this,Ve).forEach(t)}add(...t){var e,n;t.forEach(i=>{this.contains(i)||Q(this,Ve).push(i)}),(this.value!==""||(e=Q(this,Fi))!=null&&e.hasAttribute(`${Q(this,Yi)}`))&&((n=Q(this,Fi))==null||n.setAttribute(`${Q(this,Yi)}`,`${this.value}`))}remove(...t){var e;t.forEach(n=>{Q(this,Ve).splice(Q(this,Ve).indexOf(n),1)}),(e=Q(this,Fi))==null||e.setAttribute(`${Q(this,Yi)}`,`${this.value}`)}contains(t){return Q(this,Ve).includes(t)}toggle(t,e){return e!==void 0?e?(this.add(t),!0):(this.remove(t),!1):this.contains(t)?(this.remove(t),!1):(this.add(t),!0)}replace(t,e){this.remove(t),this.add(e)}};Fi=new WeakMap,Yi=new WeakMap,Ve=new WeakMap;var _b=`[mux-player ${yb()}]`;function tn(...t){console.warn(_b,...t)}function Xe(...t){console.error(_b,...t)}function Tb(t){var e;let n=(e=t.message)!=null?e:"";t.context&&(n+=` ${t.context}`),t.file&&(n+=` ${M("Read more: ")}
|
|
1934
|
+
https://github.com/muxinc/elements/blob/main/errors/${t.file}`),tn(n)}var Pe={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},qn={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},Lm=Object.freeze({length:0,start(t){let e=t>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let e=t>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),qE=[...Object.values(Pe).filter(t=>Pe.PLAYSINLINE!==t),...Object.values(qn)];function Sa(t,e){return t.media?t.media.getAttribute(e):t.getAttribute(e)}var Mm=class extends $t.HTMLElement{static get observedAttributes(){return qE}constructor(){super()}attributeChangedCallback(t,e,n){var i,a;switch(t){case qn.MUTED:return void(this.media&&(this.media.muted=n!=null,this.media.defaultMuted=n!=null));case qn.VOLUME:{let r=(i=ze(n))!=null?i:1;return void(this.media&&(this.media.volume=r))}case qn.PLAYBACKRATE:{let r=(a=ze(n))!=null?a:1;return void(this.media&&(this.media.playbackRate=r,this.media.defaultPlaybackRate=r))}}}play(){var t,e;return(e=(t=this.media)==null?void 0:t.play())!=null?e:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,e;return(e=(t=this.media)==null?void 0:t.paused)==null||e}get duration(){var t,e;return(e=(t=this.media)==null?void 0:t.duration)!=null?e:NaN}get ended(){var t,e;return(e=(t=this.media)==null?void 0:t.ended)!=null&&e}get buffered(){var t,e;return(e=(t=this.media)==null?void 0:t.buffered)!=null?e:Lm}get seekable(){var t,e;return(e=(t=this.media)==null?void 0:t.seekable)!=null?e:Lm}get readyState(){var t,e;return(e=(t=this.media)==null?void 0:t.readyState)!=null?e:0}get videoWidth(){var t,e;return(e=(t=this.media)==null?void 0:t.videoWidth)!=null?e:0}get videoHeight(){var t,e;return(e=(t=this.media)==null?void 0:t.videoHeight)!=null?e:0}get currentSrc(){var t,e;return(e=(t=this.media)==null?void 0:t.currentSrc)!=null?e:""}get currentTime(){var t,e;return(e=(t=this.media)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,e;return(e=(t=this.media)==null?void 0:t.volume)!=null?e:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,e;return(e=(t=this.media)==null?void 0:t.playbackRate)!=null?e:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=ze(this.getAttribute(qn.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(qn.PLAYBACKRATE,`${t}`):this.removeAttribute(qn.PLAYBACKRATE)}get crossOrigin(){return Sa(this,Pe.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(Pe.CROSSORIGIN,`${t}`)}get autoplay(){return Sa(this,Pe.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(Pe.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(Pe.AUTOPLAY)}get loop(){return Sa(this,Pe.LOOP)!=null}set loop(t){t?this.setAttribute(Pe.LOOP,""):this.removeAttribute(Pe.LOOP)}get muted(){var t,e;return(e=(t=this.media)==null?void 0:t.muted)!=null&&e}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Sa(this,Pe.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(Pe.MUTED,""):this.removeAttribute(Pe.MUTED)}get playsInline(){return Sa(this,Pe.PLAYSINLINE)!=null}set playsInline(t){Xe("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(Pe.PRELOAD,t):this.removeAttribute(Pe.PRELOAD)}},Ra=new WeakMap,KE=class Ab{constructor(e,n){this.element=e,this.type=n,this.element.addEventListener(this.type,this);let i=Ra.get(this.element);i&&i.set(this.type,this)}set(e){if(typeof e=="function")this.handleEvent=e.bind(this.element);else if(typeof e=="object"&&typeof e.handleEvent=="function")this.handleEvent=e.handleEvent.bind(e);else{this.element.removeEventListener(this.type,this);let n=Ra.get(this.element);n&&n.delete(this.type)}}static for(e){Ra.has(e.element)||Ra.set(e.element,new Map);let n=e.attributeName.slice(2),i=Ra.get(e.element);return i&&i.has(n)?i.get(n):new Ab(e.element,n)}};function FE(t,e){(function(n,i){if(n instanceof gt&&i instanceof Element){let a=n.element;return a[n.attributeName]!==i&&(n.element.removeAttributeNS(n.attributeNamespace,n.attributeName),a[n.attributeName]=i),!0}return!1})(t,e)||function(n,i){if(typeof i=="boolean"&&n instanceof gt){let a=n.attributeNamespace;return i!==n.element.hasAttributeNS(a,n.attributeName)&&(n.booleanValue=i),!0}return!1}(t,e)||function(n,i){return!!(n instanceof gt&&n.attributeName.startsWith("on"))&&(KE.for(n).set(i),n.element.removeAttributeNS(n.attributeNamespace,n.attributeName),!0)}(t,e)||function(n,i){return i===!1&&n instanceof ia&&(n.replace(""),!0)}(t,e)||function(n,i){return i instanceof kb&&n instanceof ia&&(i.renderInto(n),!0)}(t,e)||function(n,i){return i instanceof DocumentFragment&&n instanceof ia&&(i.childNodes.length&&n.replace(...i.childNodes),!0)}(t,e)||function(n,i){if(n instanceof gt){let a=n.attributeNamespace,r=n.element.getAttributeNS(a,n.attributeName);return String(i)!==r&&(n.value=String(i)),!0}n.value=String(i)}(t,e)}var ed=new Map,xm=new WeakMap,Nm=new WeakMap,kb=class{constructor(t,e,n){this.strings=t,this.values=e,this.processor=n,this.stringsKey=this.strings.join("")}get template(){if(ed.has(this.stringsKey))return ed.get(this.stringsKey);{let t=el.createElement("template"),e=this.strings.length-1;return t.innerHTML=this.strings.reduce((n,i,a)=>n+i+(a<e?`{{ ${a} }}`:""),""),ed.set(this.stringsKey,t),t}}renderInto(t){var e;let n=this.template;if(xm.get(t)!==n){xm.set(t,n);let a=new rl(n,this.values,this.processor);return Nm.set(t,a),void(t instanceof ia?t.replace(...a.children):t.appendChild(a))}let i=Nm.get(t);(e=i?.update)==null||e.call(i,this.values)}},YE={processCallback(t,e,n){var i;if(n)for(let[a,r]of e)a in n&&FE(r,(i=n[a])!=null?i:"")}};function To(t,...e){return new kb(t,e,YE)}var GE=Object.values({TOP:"top",CENTER:"center",BOTTOM:"bottom",LAYER:"layer",MEDIA_LAYER:"media-layer",POSTER_LAYER:"poster-layer",VERTICAL_LAYER:"vertical-layer",CENTERED_LAYER:"centered-layer",GESTURE_LAYER:"gesture-layer",CONTROLLER_LAYER:"controller",BUTTON:"button",RANGE:"range",THUMB:"thumb",DISPLAY:"display",CONTROL_BAR:"control-bar",MENU_BUTTON:"menu-button",MENU:"menu",MENU_ITEM:"menu-item",OPTION:"option",POSTER:"poster",LIVE:"live",PLAY:"play",PRE_PLAY:"pre-play",SEEK_BACKWARD:"seek-backward",SEEK_FORWARD:"seek-forward",MUTE:"mute",CAPTIONS:"captions",AIRPLAY:"airplay",PIP:"pip",FULLSCREEN:"fullscreen",CAST:"cast",PLAYBACK_RATE:"playback-rate",VOLUME:"volume",TIME:"time",TITLE:"title",AUDIO_TRACK:"audio-track",RENDITION:"rendition"}).join(", "),jE=t=>{var e,n,i,a,r,s,o,l,d,u,c,m,p,v,b,f,T,A,E,_,w,I,D,V,q,Y,re,oe,J,ee,Ne,He,Ee,de,Ke,Gt,jt,Et,yt;return To`
|
|
1935
|
+
<media-theme
|
|
1936
|
+
template="${t.themeTemplate||!1}"
|
|
1937
|
+
defaultstreamtype="${(e=t.defaultStreamType)!=null&&e}"
|
|
1938
|
+
hotkeys="${(We=>{let Oe=We.hotKeys?`${We.hotKeys}`:"";return Bu(We.streamType)==="live"&&(Oe+=" noarrowleft noarrowright"),Oe})(t)||!1}"
|
|
1939
|
+
nohotkeys="${t.noHotKeys||!t.hasSrc||!1}"
|
|
1940
|
+
noautoseektolive="${!((n=t.streamType)==null||!n.includes(j.LIVE))&&t.targetLiveWindow!==0}"
|
|
1941
|
+
novolumepref="${t.novolumepref||!1}"
|
|
1942
|
+
nomutedpref="${t.nomutedpref||!1}"
|
|
1943
|
+
disabled="${!t.hasSrc||t.isDialogOpen}"
|
|
1944
|
+
audio="${(i=t.audio)!=null&&i}"
|
|
1945
|
+
style="${(a=function(We){let Oe="";return Object.entries(We).forEach(([oi,Dn])=>{Dn!=null&&(Oe+=`${Wu(oi)}: ${Dn}; `)}),Oe?Oe.trim():void 0}({"--media-primary-color":t.primaryColor,"--media-secondary-color":t.secondaryColor,"--media-accent-color":t.accentColor}))!=null&&a}"
|
|
1946
|
+
defaultsubtitles="${!t.defaultHiddenCaptions}"
|
|
1947
|
+
forwardseekoffset="${(r=t.forwardSeekOffset)!=null&&r}"
|
|
1948
|
+
backwardseekoffset="${(s=t.backwardSeekOffset)!=null&&s}"
|
|
1949
|
+
playbackrates="${(o=t.playbackRates)!=null&&o}"
|
|
1950
|
+
defaultshowremainingtime="${(l=t.defaultShowRemainingTime)!=null&&l}"
|
|
1951
|
+
defaultduration="${(d=t.defaultDuration)!=null&&d}"
|
|
1952
|
+
hideduration="${(u=t.hideDuration)!=null&&u}"
|
|
1953
|
+
title="${(c=t.title)!=null&&c}"
|
|
1954
|
+
videotitle="${(m=t.videoTitle)!=null&&m}"
|
|
1955
|
+
proudlydisplaymuxbadge="${(p=t.proudlyDisplayMuxBadge)!=null&&p}"
|
|
1956
|
+
exportparts="${GE}"
|
|
1957
|
+
onclose="${t.onCloseErrorDialog}"
|
|
1958
|
+
onfocusin="${t.onFocusInErrorDialog}"
|
|
1959
|
+
>
|
|
1960
|
+
<mux-video
|
|
1961
|
+
slot="media"
|
|
1962
|
+
inert="${(v=t.noHotKeys)!=null&&v}"
|
|
1963
|
+
target-live-window="${(b=t.targetLiveWindow)!=null&&b}"
|
|
1964
|
+
stream-type="${(f=Bu(t.streamType))!=null&&f}"
|
|
1965
|
+
crossorigin="${(T=t.crossOrigin)!=null?T:""}"
|
|
1966
|
+
playsinline
|
|
1967
|
+
autoplay="${(A=t.autoplay)!=null&&A}"
|
|
1968
|
+
muted="${(E=t.muted)!=null&&E}"
|
|
1969
|
+
loop="${(_=t.loop)!=null&&_}"
|
|
1970
|
+
preload="${(w=t.preload)!=null&&w}"
|
|
1971
|
+
debug="${(I=t.debug)!=null&&I}"
|
|
1972
|
+
prefer-cmcd="${(D=t.preferCmcd)!=null&&D}"
|
|
1973
|
+
disable-tracking="${(V=t.disableTracking)!=null&&V}"
|
|
1974
|
+
disable-cookies="${(q=t.disableCookies)!=null&&q}"
|
|
1975
|
+
prefer-playback="${(Y=t.preferPlayback)!=null&&Y}"
|
|
1976
|
+
start-time="${t.startTime!=null&&t.startTime}"
|
|
1977
|
+
beacon-collection-domain="${(re=t.beaconCollectionDomain)!=null&&re}"
|
|
1978
|
+
player-init-time="${(oe=t.playerInitTime)!=null&&oe}"
|
|
1979
|
+
player-software-name="${(J=t.playerSoftwareName)!=null&&J}"
|
|
1980
|
+
player-software-version="${(ee=t.playerSoftwareVersion)!=null&&ee}"
|
|
1981
|
+
env-key="${(Ne=t.envKey)!=null&&Ne}"
|
|
1982
|
+
custom-domain="${(He=t.customDomain)!=null&&He}"
|
|
1983
|
+
src="${t.src?t.src:!!t.playbackId&&md(t)}"
|
|
1984
|
+
cast-src="${t.src?t.src:!!t.playbackId&&md(t)}"
|
|
1985
|
+
cast-receiver="${(Ee=t.castReceiver)!=null&&Ee}"
|
|
1986
|
+
drm-token="${(Ke=(de=t.tokens)==null?void 0:de.drm)!=null&&Ke}"
|
|
1987
|
+
exportparts="video"
|
|
1988
|
+
disable-pseudo-ended="${(Gt=t.disablePseudoEnded)!=null&&Gt}"
|
|
1989
|
+
max-auto-resolution="${(jt=t.maxAutoResolution)!=null&&jt}"
|
|
1990
|
+
cap-rendition-to-player-size="${(Et=t.capRenditionToPlayerSize)!=null&&Et}"
|
|
1991
|
+
>
|
|
1992
|
+
${t.storyboard?To`<track label="thumbnails" default kind="metadata" src="${t.storyboard}" />`:To``}
|
|
1993
|
+
<slot></slot>
|
|
1994
|
+
</mux-video>
|
|
1995
|
+
<slot name="poster" slot="poster">
|
|
1996
|
+
<media-poster-image
|
|
1997
|
+
part="poster"
|
|
1998
|
+
exportparts="poster, img"
|
|
1999
|
+
src="${!!t.poster&&t.poster}"
|
|
2000
|
+
placeholdersrc="${(yt=t.placeholder)!=null&&yt}"
|
|
2001
|
+
></media-poster-image>
|
|
2002
|
+
</slot>
|
|
2003
|
+
</media-theme>
|
|
2004
|
+
`},Om=t=>t.charAt(0).toUpperCase()+t.slice(1),QE=(t,e=!1)=>{let n=((a,r=!1)=>{var s,o;if(a.muxCode){let l=Om((s=a.errorCategory)!=null?s:"video"),d=Do((o=a.errorCategory)!=null?o:ai);if(a.muxCode===N.NETWORK_OFFLINE)return M("Your device appears to be offline",r);if(a.muxCode===N.NETWORK_TOKEN_EXPIRED)return M("{category} URL has expired",r).format({category:l});if([N.NETWORK_TOKEN_SUB_MISMATCH,N.NETWORK_TOKEN_AUD_MISMATCH,N.NETWORK_TOKEN_AUD_MISSING,N.NETWORK_TOKEN_MALFORMED].includes(a.muxCode))return M("{category} URL is formatted incorrectly",r).format({category:l});if(a.muxCode===N.NETWORK_TOKEN_MISSING)return M("Invalid {categoryName} URL",r).format({categoryName:d});if(a.muxCode===N.NETWORK_NOT_FOUND)return M("{category} does not exist",r).format({category:l});if(a.muxCode===N.NETWORK_NOT_READY){let u=a.streamType==="live"?"Live stream":"Video";return M("{mediaType} is not currently available",r).format({mediaType:u})}}if(a.code){if(a.code===C.MEDIA_ERR_NETWORK)return M("Network Error",r);if(a.code===C.MEDIA_ERR_DECODE)return M("Media Error",r);if(a.code===C.MEDIA_ERR_SRC_NOT_SUPPORTED)return M("Source Not Supported",r)}return M("Error",r)})(t,e).toString(),i=((a,r=!1)=>{var s,o;if(a.muxCode){let l=Om((s=a.errorCategory)!=null?s:"video"),d=Do((o=a.errorCategory)!=null?o:ai);return a.muxCode===N.NETWORK_OFFLINE?M("Check your internet connection and try reloading this video.",r):a.muxCode===N.NETWORK_TOKEN_EXPIRED?M("The video’s secured {tokenNamePrefix}-token has expired.",r).format({tokenNamePrefix:d}):a.muxCode===N.NETWORK_TOKEN_SUB_MISMATCH?M("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",r).format({tokenNamePrefix:d}):a.muxCode===N.NETWORK_TOKEN_MALFORMED?M("{category} URL is formatted incorrectly",r).format({category:l}):[N.NETWORK_TOKEN_AUD_MISMATCH,N.NETWORK_TOKEN_AUD_MISSING].includes(a.muxCode)?M("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:d}):[N.NETWORK_TOKEN_MISSING,N.NETWORK_INVALID_URL].includes(a.muxCode)?M("The video URL or {tokenNamePrefix}-token are formatted with incorrect or incomplete information.",r).format({tokenNamePrefix:d}):a.muxCode===N.NETWORK_NOT_FOUND?"":a.message}return a.code&&(a.code===C.MEDIA_ERR_NETWORK||a.code===C.MEDIA_ERR_DECODE||(a.code,C.MEDIA_ERR_SRC_NOT_SUPPORTED)),a.message})(t,e).toString();return{title:n,message:i}},Pm=(t,e)=>{let n=(i=>{if(i.muxCode){if(i.muxCode===N.NETWORK_TOKEN_EXPIRED)return"403-expired-token.md";if(i.muxCode===N.NETWORK_TOKEN_MALFORMED)return"403-malformatted-token.md";if([N.NETWORK_TOKEN_AUD_MISMATCH,N.NETWORK_TOKEN_AUD_MISSING].includes(i.muxCode))return"403-incorrect-aud-value.md";if(i.muxCode===N.NETWORK_TOKEN_SUB_MISMATCH)return"403-playback-id-mismatch.md";if(i.muxCode===N.NETWORK_TOKEN_MISSING)return"missing-signed-tokens.md";if(i.muxCode===N.NETWORK_NOT_FOUND)return"404-not-found.md";if(i.muxCode===N.NETWORK_NOT_READY)return"412-not-playable.md"}if(i.code){if(i.code===C.MEDIA_ERR_NETWORK)return"";if(i.code===C.MEDIA_ERR_DECODE)return"media-decode-error.md";if(i.code===C.MEDIA_ERR_SRC_NOT_SUPPORTED)return"media-src-not-supported.md"}return""})(t);return{message:t.message,context:t.context,file:n}},Vu=el.createElement("template");"innerHTML"in Vu&&(Vu.innerHTML=`<template id="media-theme-gerwig">
|
|
2005
|
+
<style>
|
|
2006
|
+
@keyframes pre-play-hide {
|
|
2007
|
+
0% {
|
|
2008
|
+
transform: scale(1);
|
|
2009
|
+
opacity: 1;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
30% {
|
|
2013
|
+
transform: scale(0.7);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
100% {
|
|
2017
|
+
transform: scale(1.5);
|
|
2018
|
+
opacity: 0;
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
:host {
|
|
2023
|
+
--_primary-color: var(--media-primary-color, #fff);
|
|
2024
|
+
--_secondary-color: var(--media-secondary-color, transparent);
|
|
2025
|
+
--_accent-color: var(--media-accent-color, #fa50b5);
|
|
2026
|
+
--_text-color: var(--media-text-color, #000);
|
|
2027
|
+
|
|
2028
|
+
--media-icon-color: var(--_primary-color);
|
|
2029
|
+
--media-control-background: var(--_secondary-color);
|
|
2030
|
+
--media-control-hover-background: var(--_accent-color);
|
|
2031
|
+
--media-time-buffered-color: rgba(255, 255, 255, 0.4);
|
|
2032
|
+
--media-preview-time-text-shadow: none;
|
|
2033
|
+
--media-control-height: 14px;
|
|
2034
|
+
--media-control-padding: 6px;
|
|
2035
|
+
--media-tooltip-container-margin: 6px;
|
|
2036
|
+
--media-tooltip-distance: 18px;
|
|
2037
|
+
|
|
2038
|
+
color: var(--_primary-color);
|
|
2039
|
+
display: inline-block;
|
|
2040
|
+
width: 100%;
|
|
2041
|
+
height: 100%;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
:host([audio]) {
|
|
2045
|
+
--_secondary-color: var(--media-secondary-color, black);
|
|
2046
|
+
--media-preview-time-text-shadow: none;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
:host([audio]) ::slotted([slot='media']) {
|
|
2050
|
+
height: 0px;
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
:host([audio]) media-loading-indicator {
|
|
2054
|
+
display: none;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
:host([audio]) media-controller {
|
|
2058
|
+
background: transparent;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
:host([audio]) media-controller::part(vertical-layer) {
|
|
2062
|
+
background: transparent;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
:host([audio]) media-control-bar {
|
|
2066
|
+
width: 100%;
|
|
2067
|
+
background-color: var(--media-control-background);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/*
|
|
2071
|
+
* 0.433s is the transition duration for VTT Regions.
|
|
2072
|
+
* Borrowed here, so the captions don't move too fast.
|
|
2073
|
+
*/
|
|
2074
|
+
media-controller {
|
|
2075
|
+
--media-webkit-text-track-transform: translateY(0) scale(0.98);
|
|
2076
|
+
--media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
|
|
2077
|
+
}
|
|
2078
|
+
media-controller:is([mediapaused], :not([userinactive])) {
|
|
2079
|
+
--media-webkit-text-track-transform: translateY(-50px) scale(0.98);
|
|
2080
|
+
--media-webkit-text-track-transition: transform 0.15s ease;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/*
|
|
2084
|
+
* CSS specific to iOS devices.
|
|
2085
|
+
* See: https://stackoverflow.com/questions/30102792/css-media-query-to-target-only-ios-devices/60220757#60220757
|
|
2086
|
+
*/
|
|
2087
|
+
@supports (-webkit-touch-callout: none) {
|
|
2088
|
+
/* Disable subtitle adjusting for iOS Safari */
|
|
2089
|
+
media-controller[mediaisfullscreen] {
|
|
2090
|
+
--media-webkit-text-track-transform: unset;
|
|
2091
|
+
--media-webkit-text-track-transition: unset;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
media-time-range {
|
|
2096
|
+
--media-box-padding-left: 6px;
|
|
2097
|
+
--media-box-padding-right: 6px;
|
|
2098
|
+
--media-range-bar-color: var(--_accent-color);
|
|
2099
|
+
--media-time-range-buffered-color: var(--_primary-color);
|
|
2100
|
+
--media-range-track-color: transparent;
|
|
2101
|
+
--media-range-track-background: rgba(255, 255, 255, 0.4);
|
|
2102
|
+
--media-range-thumb-background: radial-gradient(
|
|
2103
|
+
circle,
|
|
2104
|
+
#000 0%,
|
|
2105
|
+
#000 25%,
|
|
2106
|
+
var(--_accent-color) 25%,
|
|
2107
|
+
var(--_accent-color)
|
|
2108
|
+
);
|
|
2109
|
+
--media-range-thumb-width: 12px;
|
|
2110
|
+
--media-range-thumb-height: 12px;
|
|
2111
|
+
--media-range-thumb-transform: scale(0);
|
|
2112
|
+
--media-range-thumb-transition: transform 0.3s;
|
|
2113
|
+
--media-range-thumb-opacity: 1;
|
|
2114
|
+
--media-preview-background: var(--_primary-color);
|
|
2115
|
+
--media-box-arrow-background: var(--_primary-color);
|
|
2116
|
+
--media-preview-thumbnail-border: 5px solid var(--_primary-color);
|
|
2117
|
+
--media-preview-border-radius: 5px;
|
|
2118
|
+
--media-text-color: var(--_text-color);
|
|
2119
|
+
--media-control-hover-background: transparent;
|
|
2120
|
+
--media-preview-chapter-text-shadow: none;
|
|
2121
|
+
color: var(--_accent-color);
|
|
2122
|
+
padding: 0 6px;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
:host([audio]) media-time-range {
|
|
2126
|
+
--media-preview-time-padding: 1.5px 6px;
|
|
2127
|
+
--media-preview-box-margin: 0 0 -5px;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
media-time-range:hover {
|
|
2131
|
+
--media-range-thumb-transform: scale(1);
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
media-preview-thumbnail {
|
|
2135
|
+
border-bottom-width: 0;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
[part~='menu'] {
|
|
2139
|
+
border-radius: 2px;
|
|
2140
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2141
|
+
bottom: 50px;
|
|
2142
|
+
padding: 2.5px 10px;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
[part~='menu']::part(indicator) {
|
|
2146
|
+
fill: var(--_accent-color);
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
[part~='menu']::part(menu-item) {
|
|
2150
|
+
box-sizing: border-box;
|
|
2151
|
+
display: flex;
|
|
2152
|
+
align-items: center;
|
|
2153
|
+
padding: 6px 10px;
|
|
2154
|
+
min-height: 34px;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
[part~='menu']::part(checked) {
|
|
2158
|
+
font-weight: 700;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
media-captions-menu,
|
|
2162
|
+
media-rendition-menu,
|
|
2163
|
+
media-audio-track-menu,
|
|
2164
|
+
media-playback-rate-menu {
|
|
2165
|
+
position: absolute; /* ensure they don't take up space in DOM on load */
|
|
2166
|
+
--media-menu-background: var(--_primary-color);
|
|
2167
|
+
--media-menu-item-checked-background: transparent;
|
|
2168
|
+
--media-text-color: var(--_text-color);
|
|
2169
|
+
--media-menu-item-hover-background: transparent;
|
|
2170
|
+
--media-menu-item-hover-outline: var(--_accent-color) solid 1px;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
media-rendition-menu {
|
|
2174
|
+
min-width: 140px;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
/* The icon is a circle so make it 16px high instead of 14px for more balance. */
|
|
2178
|
+
media-audio-track-menu-button {
|
|
2179
|
+
--media-control-padding: 5px;
|
|
2180
|
+
--media-control-height: 16px;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
media-playback-rate-menu-button {
|
|
2184
|
+
--media-control-padding: 6px 3px;
|
|
2185
|
+
min-width: 4.4ch;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
media-playback-rate-menu {
|
|
2189
|
+
--media-menu-flex-direction: row;
|
|
2190
|
+
--media-menu-item-checked-background: var(--_accent-color);
|
|
2191
|
+
--media-menu-item-checked-indicator-display: none;
|
|
2192
|
+
margin-right: 6px;
|
|
2193
|
+
padding: 0;
|
|
2194
|
+
--media-menu-gap: 0.25em;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
media-playback-rate-menu[part~='menu']::part(menu-item) {
|
|
2198
|
+
padding: 6px 6px 6px 8px;
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
media-playback-rate-menu[part~='menu']::part(checked) {
|
|
2202
|
+
color: #fff;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
:host(:not([audio])) media-time-range {
|
|
2206
|
+
/* Adding px is required here for calc() */
|
|
2207
|
+
--media-range-padding: 0px;
|
|
2208
|
+
background: transparent;
|
|
2209
|
+
z-index: 10;
|
|
2210
|
+
height: 10px;
|
|
2211
|
+
bottom: -3px;
|
|
2212
|
+
width: 100%;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
media-control-bar :is([role='button'], [role='switch'], button) {
|
|
2216
|
+
line-height: 0;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
media-control-bar :is([part*='button'], [part*='range'], [part*='display']) {
|
|
2220
|
+
border-radius: 3px;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
.spacer {
|
|
2224
|
+
flex-grow: 1;
|
|
2225
|
+
background-color: var(--media-control-background, rgba(20, 20, 30, 0.7));
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
media-control-bar[slot~='top-chrome'] {
|
|
2229
|
+
min-height: 42px;
|
|
2230
|
+
pointer-events: none;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
media-control-bar {
|
|
2234
|
+
--gradient-steps:
|
|
2235
|
+
hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.013) 8.1%, hsl(0 0% 0% / 0.049) 15.5%, hsl(0 0% 0% / 0.104) 22.5%,
|
|
2236
|
+
hsl(0 0% 0% / 0.175) 29%, hsl(0 0% 0% / 0.259) 35.3%, hsl(0 0% 0% / 0.352) 41.2%, hsl(0 0% 0% / 0.45) 47.1%,
|
|
2237
|
+
hsl(0 0% 0% / 0.55) 52.9%, hsl(0 0% 0% / 0.648) 58.8%, hsl(0 0% 0% / 0.741) 64.7%, hsl(0 0% 0% / 0.825) 71%,
|
|
2238
|
+
hsl(0 0% 0% / 0.896) 77.5%, hsl(0 0% 0% / 0.951) 84.5%, hsl(0 0% 0% / 0.987) 91.9%, hsl(0 0% 0%) 100%;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
:host([title]) media-control-bar[slot='top-chrome']::before,
|
|
2242
|
+
:host([videotitle]) media-control-bar[slot='top-chrome']::before {
|
|
2243
|
+
content: '';
|
|
2244
|
+
position: absolute;
|
|
2245
|
+
width: 100%;
|
|
2246
|
+
padding-bottom: min(100px, 25%);
|
|
2247
|
+
background: linear-gradient(to top, var(--gradient-steps));
|
|
2248
|
+
opacity: 0.8;
|
|
2249
|
+
pointer-events: none;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
:host(:not([audio])) media-control-bar[part~='bottom']::before {
|
|
2253
|
+
content: '';
|
|
2254
|
+
position: absolute;
|
|
2255
|
+
width: 100%;
|
|
2256
|
+
bottom: 0;
|
|
2257
|
+
left: 0;
|
|
2258
|
+
padding-bottom: min(100px, 25%);
|
|
2259
|
+
background: linear-gradient(to bottom, var(--gradient-steps));
|
|
2260
|
+
opacity: 0.8;
|
|
2261
|
+
z-index: 1;
|
|
2262
|
+
pointer-events: none;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
media-control-bar[part~='bottom'] > * {
|
|
2266
|
+
z-index: 20;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
media-control-bar[part~='bottom'] {
|
|
2270
|
+
padding: 6px 6px;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
media-control-bar[slot~='top-chrome'] > * {
|
|
2274
|
+
--media-control-background: transparent;
|
|
2275
|
+
--media-control-hover-background: transparent;
|
|
2276
|
+
position: relative;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
media-controller::part(vertical-layer) {
|
|
2280
|
+
transition: background-color 1s;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
media-controller:is([mediapaused], :not([userinactive]))::part(vertical-layer) {
|
|
2284
|
+
background-color: var(--controls-backdrop-color, var(--controls, transparent));
|
|
2285
|
+
transition: background-color 0.25s;
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
.center-controls {
|
|
2289
|
+
--media-button-icon-width: 100%;
|
|
2290
|
+
--media-button-icon-height: auto;
|
|
2291
|
+
--media-tooltip-display: none;
|
|
2292
|
+
pointer-events: none;
|
|
2293
|
+
width: 100%;
|
|
2294
|
+
display: flex;
|
|
2295
|
+
flex-flow: row;
|
|
2296
|
+
align-items: center;
|
|
2297
|
+
justify-content: center;
|
|
2298
|
+
paint-order: stroke;
|
|
2299
|
+
stroke: rgba(102, 102, 102, 1);
|
|
2300
|
+
stroke-width: 0.3px;
|
|
2301
|
+
text-shadow:
|
|
2302
|
+
0 0 2px rgb(0 0 0 / 0.25),
|
|
2303
|
+
0 0 6px rgb(0 0 0 / 0.25);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
.center-controls media-play-button {
|
|
2307
|
+
--media-control-background: transparent;
|
|
2308
|
+
--media-control-hover-background: transparent;
|
|
2309
|
+
--media-control-padding: 0;
|
|
2310
|
+
width: 40px;
|
|
2311
|
+
filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
[breakpointsm] .center-controls media-play-button {
|
|
2315
|
+
width: 90px;
|
|
2316
|
+
height: 90px;
|
|
2317
|
+
border-radius: 50%;
|
|
2318
|
+
transition: background 0.4s;
|
|
2319
|
+
padding: 24px;
|
|
2320
|
+
--media-control-background: #000;
|
|
2321
|
+
--media-control-hover-background: var(--_accent-color);
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
.center-controls media-seek-backward-button,
|
|
2325
|
+
.center-controls media-seek-forward-button {
|
|
2326
|
+
--media-control-background: transparent;
|
|
2327
|
+
--media-control-hover-background: transparent;
|
|
2328
|
+
padding: 0;
|
|
2329
|
+
margin: 0 20px;
|
|
2330
|
+
width: max(33px, min(8%, 40px));
|
|
2331
|
+
text-shadow:
|
|
2332
|
+
0 0 2px rgb(0 0 0 / 0.25),
|
|
2333
|
+
0 0 6px rgb(0 0 0 / 0.25);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
[breakpointsm]:not([audio]) .center-controls.pre-playback {
|
|
2337
|
+
display: grid;
|
|
2338
|
+
align-items: initial;
|
|
2339
|
+
justify-content: initial;
|
|
2340
|
+
height: 100%;
|
|
2341
|
+
overflow: hidden;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
[breakpointsm]:not([audio]) .center-controls.pre-playback media-play-button {
|
|
2345
|
+
place-self: var(--_pre-playback-place, center);
|
|
2346
|
+
grid-area: 1 / 1;
|
|
2347
|
+
margin: 16px;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
/* Show and hide controls or pre-playback state */
|
|
2351
|
+
|
|
2352
|
+
[breakpointsm]:is([mediahasplayed], :not([mediapaused])):not([audio])
|
|
2353
|
+
.center-controls.pre-playback
|
|
2354
|
+
media-play-button {
|
|
2355
|
+
/* Using \`forwards\` would lead to a laggy UI after the animation got in the end state */
|
|
2356
|
+
animation: 0.3s linear pre-play-hide;
|
|
2357
|
+
opacity: 0;
|
|
2358
|
+
pointer-events: none;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
.autoplay-unmute {
|
|
2362
|
+
--media-control-hover-background: transparent;
|
|
2363
|
+
width: 100%;
|
|
2364
|
+
display: flex;
|
|
2365
|
+
align-items: center;
|
|
2366
|
+
justify-content: center;
|
|
2367
|
+
filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
.autoplay-unmute-btn {
|
|
2371
|
+
--media-control-height: 16px;
|
|
2372
|
+
border-radius: 8px;
|
|
2373
|
+
background: #000;
|
|
2374
|
+
color: var(--_primary-color);
|
|
2375
|
+
display: flex;
|
|
2376
|
+
align-items: center;
|
|
2377
|
+
padding: 8px 16px;
|
|
2378
|
+
font-size: 18px;
|
|
2379
|
+
font-weight: 500;
|
|
2380
|
+
cursor: pointer;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
.autoplay-unmute-btn:hover {
|
|
2384
|
+
background: var(--_accent-color);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
[breakpointsm] .autoplay-unmute-btn {
|
|
2388
|
+
--media-control-height: 30px;
|
|
2389
|
+
padding: 14px 24px;
|
|
2390
|
+
font-size: 26px;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
.autoplay-unmute-btn svg {
|
|
2394
|
+
margin: 0 6px 0 0;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
[breakpointsm] .autoplay-unmute-btn svg {
|
|
2398
|
+
margin: 0 10px 0 0;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
media-controller:not([audio]):not([mediahasplayed]) *:is(media-control-bar, media-time-range) {
|
|
2402
|
+
display: none;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
media-error-dialog:not([mediaerrorcode]) {
|
|
2406
|
+
opacity: 0;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
media-loading-indicator {
|
|
2410
|
+
--media-loading-icon-width: 100%;
|
|
2411
|
+
--media-button-icon-height: auto;
|
|
2412
|
+
display: var(--media-control-display, var(--media-loading-indicator-display, flex));
|
|
2413
|
+
pointer-events: none;
|
|
2414
|
+
position: absolute;
|
|
2415
|
+
width: min(15%, 150px);
|
|
2416
|
+
flex-flow: row;
|
|
2417
|
+
align-items: center;
|
|
2418
|
+
justify-content: center;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
/* Intentionally don't target the div for transition but the children
|
|
2422
|
+
of the div. Prevents messing with media-chrome's autohide feature. */
|
|
2423
|
+
media-loading-indicator + div * {
|
|
2424
|
+
transition: opacity 0.15s;
|
|
2425
|
+
opacity: 1;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {
|
|
2429
|
+
opacity: 0;
|
|
2430
|
+
transition-delay: 400ms;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
media-volume-range {
|
|
2434
|
+
width: min(100%, 100px);
|
|
2435
|
+
--media-range-padding-left: 10px;
|
|
2436
|
+
--media-range-padding-right: 10px;
|
|
2437
|
+
--media-range-thumb-width: 12px;
|
|
2438
|
+
--media-range-thumb-height: 12px;
|
|
2439
|
+
--media-range-thumb-background: radial-gradient(
|
|
2440
|
+
circle,
|
|
2441
|
+
#000 0%,
|
|
2442
|
+
#000 25%,
|
|
2443
|
+
var(--_primary-color) 25%,
|
|
2444
|
+
var(--_primary-color)
|
|
2445
|
+
);
|
|
2446
|
+
--media-control-hover-background: none;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
media-time-display {
|
|
2450
|
+
white-space: nowrap;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
/* Generic style for explicitly disabled controls */
|
|
2454
|
+
media-control-bar[part~='bottom'] [disabled],
|
|
2455
|
+
media-control-bar[part~='bottom'] [aria-disabled='true'] {
|
|
2456
|
+
opacity: 60%;
|
|
2457
|
+
cursor: not-allowed;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
media-text-display {
|
|
2461
|
+
--media-font-size: 16px;
|
|
2462
|
+
--media-control-padding: 14px;
|
|
2463
|
+
font-weight: 500;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
media-play-button.animated *:is(g, path) {
|
|
2467
|
+
transition: all 0.3s;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
media-play-button.animated[mediapaused] .pause-icon-pt1 {
|
|
2471
|
+
opacity: 0;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
media-play-button.animated[mediapaused] .pause-icon-pt2 {
|
|
2475
|
+
transform-origin: center center;
|
|
2476
|
+
transform: scaleY(0);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
media-play-button.animated[mediapaused] .play-icon {
|
|
2480
|
+
clip-path: inset(0 0 0 0);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
media-play-button.animated:not([mediapaused]) .play-icon {
|
|
2484
|
+
clip-path: inset(0 0 0 100%);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
media-seek-forward-button,
|
|
2488
|
+
media-seek-backward-button {
|
|
2489
|
+
--media-font-weight: 400;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.mute-icon {
|
|
2493
|
+
display: inline-block;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.mute-icon :is(path, g) {
|
|
2497
|
+
transition: opacity 0.5s;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
.muted {
|
|
2501
|
+
opacity: 0;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
media-mute-button[mediavolumelevel='low'] :is(.volume-medium, .volume-high),
|
|
2505
|
+
media-mute-button[mediavolumelevel='medium'] :is(.volume-high) {
|
|
2506
|
+
opacity: 0;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
media-mute-button[mediavolumelevel='off'] .unmuted {
|
|
2510
|
+
opacity: 0;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
media-mute-button[mediavolumelevel='off'] .muted {
|
|
2514
|
+
opacity: 1;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Our defaults for these buttons are to hide them at small sizes
|
|
2519
|
+
* users can override this with CSS
|
|
2520
|
+
*/
|
|
2521
|
+
media-controller:not([breakpointsm]):not([audio]) {
|
|
2522
|
+
--bottom-play-button: none;
|
|
2523
|
+
--bottom-seek-backward-button: none;
|
|
2524
|
+
--bottom-seek-forward-button: none;
|
|
2525
|
+
--bottom-time-display: none;
|
|
2526
|
+
--bottom-playback-rate-menu-button: none;
|
|
2527
|
+
--bottom-pip-button: none;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
[part='mux-badge'] {
|
|
2531
|
+
position: absolute;
|
|
2532
|
+
bottom: 10px;
|
|
2533
|
+
right: 10px;
|
|
2534
|
+
z-index: 2;
|
|
2535
|
+
opacity: 0.6;
|
|
2536
|
+
transition:
|
|
2537
|
+
opacity 0.2s ease-in-out,
|
|
2538
|
+
bottom 0.2s ease-in-out;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
[part='mux-badge']:hover {
|
|
2542
|
+
opacity: 1;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
[part='mux-badge'] a {
|
|
2546
|
+
font-size: 14px;
|
|
2547
|
+
font-family: var(--_font-family);
|
|
2548
|
+
color: var(--_primary-color);
|
|
2549
|
+
text-decoration: none;
|
|
2550
|
+
display: flex;
|
|
2551
|
+
align-items: center;
|
|
2552
|
+
gap: 5px;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
[part='mux-badge'] .mux-badge-text {
|
|
2556
|
+
transition: opacity 0.5s ease-in-out;
|
|
2557
|
+
opacity: 0;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
[part='mux-badge'] .mux-badge-logo {
|
|
2561
|
+
width: 40px;
|
|
2562
|
+
height: auto;
|
|
2563
|
+
display: inline-block;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
[part='mux-badge'] .mux-badge-logo svg {
|
|
2567
|
+
width: 100%;
|
|
2568
|
+
height: 100%;
|
|
2569
|
+
fill: white;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
media-controller:not([userinactive]):not([mediahasplayed]) [part='mux-badge'],
|
|
2573
|
+
media-controller:not([userinactive]) [part='mux-badge'],
|
|
2574
|
+
media-controller[mediahasplayed][mediapaused] [part='mux-badge'] {
|
|
2575
|
+
transition: bottom 0.1s ease-in-out;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] {
|
|
2579
|
+
transition: bottom 0.2s ease-in-out 0.62s;
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
media-controller:not([userinactive]) [part='mux-badge'] .mux-badge-text,
|
|
2583
|
+
media-controller[mediahasplayed][mediapaused] [part='mux-badge'] .mux-badge-text {
|
|
2584
|
+
opacity: 1;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] .mux-badge-text {
|
|
2588
|
+
opacity: 0;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] {
|
|
2592
|
+
bottom: 10px;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
media-controller:not([userinactive]):not([mediahasplayed]) [part='mux-badge'] {
|
|
2596
|
+
bottom: 10px;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
media-controller:not([userinactive])[mediahasplayed] [part='mux-badge'],
|
|
2600
|
+
media-controller[mediahasplayed][mediapaused] [part='mux-badge'] {
|
|
2601
|
+
bottom: calc(28px + var(--media-control-height, 0px) + var(--media-control-padding, 0px) * 2);
|
|
2602
|
+
}
|
|
2603
|
+
</style>
|
|
2604
|
+
|
|
2605
|
+
<template partial="TitleDisplay">
|
|
2606
|
+
<template if="videotitle">
|
|
2607
|
+
<template if="videotitle != true">
|
|
2608
|
+
<media-text-display part="top title display" class="title-display">{{videotitle}}</media-text-display>
|
|
2609
|
+
</template>
|
|
2610
|
+
</template>
|
|
2611
|
+
<template if="!videotitle">
|
|
2612
|
+
<template if="title">
|
|
2613
|
+
<media-text-display part="top title display" class="title-display">{{title}}</media-text-display>
|
|
2614
|
+
</template>
|
|
2615
|
+
</template>
|
|
2616
|
+
</template>
|
|
2617
|
+
|
|
2618
|
+
<template partial="PlayButton">
|
|
2619
|
+
<media-play-button
|
|
2620
|
+
part="{{section ?? 'bottom'}} play button"
|
|
2621
|
+
disabled="{{disabled}}"
|
|
2622
|
+
aria-disabled="{{disabled}}"
|
|
2623
|
+
class="animated"
|
|
2624
|
+
>
|
|
2625
|
+
<svg aria-hidden="true" viewBox="0 0 18 14" slot="icon">
|
|
2626
|
+
<g class="play-icon">
|
|
2627
|
+
<path
|
|
2628
|
+
d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
|
|
2629
|
+
/>
|
|
2630
|
+
</g>
|
|
2631
|
+
<g class="pause-icon">
|
|
2632
|
+
<path
|
|
2633
|
+
class="pause-icon-pt1"
|
|
2634
|
+
d="M5.90709 0H2.96889C2.46857 0 2.06299 0.405585 2.06299 0.9059V13.0941C2.06299 13.5944 2.46857 14 2.96889 14H5.90709C6.4074 14 6.81299 13.5944 6.81299 13.0941V0.9059C6.81299 0.405585 6.4074 0 5.90709 0Z"
|
|
2635
|
+
/>
|
|
2636
|
+
<path
|
|
2637
|
+
class="pause-icon-pt2"
|
|
2638
|
+
d="M15.1571 0H12.2189C11.7186 0 11.313 0.405585 11.313 0.9059V13.0941C11.313 13.5944 11.7186 14 12.2189 14H15.1571C15.6574 14 16.063 13.5944 16.063 13.0941V0.9059C16.063 0.405585 15.6574 0 15.1571 0Z"
|
|
2639
|
+
/>
|
|
2640
|
+
</g>
|
|
2641
|
+
</svg>
|
|
2642
|
+
</media-play-button>
|
|
2643
|
+
</template>
|
|
2644
|
+
|
|
2645
|
+
<template partial="PrePlayButton">
|
|
2646
|
+
<media-play-button
|
|
2647
|
+
part="{{section ?? 'center'}} play button pre-play"
|
|
2648
|
+
disabled="{{disabled}}"
|
|
2649
|
+
aria-disabled="{{disabled}}"
|
|
2650
|
+
>
|
|
2651
|
+
<svg aria-hidden="true" viewBox="0 0 18 14" slot="icon" style="transform: translate(3px, 0)">
|
|
2652
|
+
<path
|
|
2653
|
+
d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
|
|
2654
|
+
/>
|
|
2655
|
+
</svg>
|
|
2656
|
+
</media-play-button>
|
|
2657
|
+
</template>
|
|
2658
|
+
|
|
2659
|
+
<template partial="SeekBackwardButton">
|
|
2660
|
+
<media-seek-backward-button
|
|
2661
|
+
seekoffset="{{backwardseekoffset}}"
|
|
2662
|
+
part="{{section ?? 'bottom'}} seek-backward button"
|
|
2663
|
+
disabled="{{disabled}}"
|
|
2664
|
+
aria-disabled="{{disabled}}"
|
|
2665
|
+
>
|
|
2666
|
+
<svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
|
|
2667
|
+
<path
|
|
2668
|
+
d="M3.65 2.07888L0.0864 6.7279C-0.0288 6.87812 -0.0288 7.12188 0.0864 7.2721L3.65 11.9211C3.7792 12.0896 4 11.9703 4 11.7321V2.26787C4 2.02968 3.7792 1.9104 3.65 2.07888Z"
|
|
2669
|
+
/>
|
|
2670
|
+
<text transform="translate(6 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
|
|
2671
|
+
{{backwardseekoffset}}
|
|
2672
|
+
</text>
|
|
2673
|
+
</svg>
|
|
2674
|
+
</media-seek-backward-button>
|
|
2675
|
+
</template>
|
|
2676
|
+
|
|
2677
|
+
<template partial="SeekForwardButton">
|
|
2678
|
+
<media-seek-forward-button
|
|
2679
|
+
seekoffset="{{forwardseekoffset}}"
|
|
2680
|
+
part="{{section ?? 'bottom'}} seek-forward button"
|
|
2681
|
+
disabled="{{disabled}}"
|
|
2682
|
+
aria-disabled="{{disabled}}"
|
|
2683
|
+
>
|
|
2684
|
+
<svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
|
|
2685
|
+
<g>
|
|
2686
|
+
<text transform="translate(-1 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
|
|
2687
|
+
{{forwardseekoffset}}
|
|
2688
|
+
</text>
|
|
2689
|
+
<path
|
|
2690
|
+
d="M18.35 11.9211L21.9136 7.2721C22.0288 7.12188 22.0288 6.87812 21.9136 6.7279L18.35 2.07888C18.2208 1.91041 18 2.02968 18 2.26787V11.7321C18 11.9703 18.2208 12.0896 18.35 11.9211Z"
|
|
2691
|
+
/>
|
|
2692
|
+
</g>
|
|
2693
|
+
</svg>
|
|
2694
|
+
</media-seek-forward-button>
|
|
2695
|
+
</template>
|
|
2696
|
+
|
|
2697
|
+
<template partial="MuteButton">
|
|
2698
|
+
<media-mute-button part="bottom mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2699
|
+
<svg viewBox="0 0 18 14" slot="icon" class="mute-icon" aria-hidden="true">
|
|
2700
|
+
<g class="unmuted">
|
|
2701
|
+
<path
|
|
2702
|
+
d="M6.76786 1.21233L3.98606 3.98924H1.19937C0.593146 3.98924 0.101743 4.51375 0.101743 5.1607V6.96412L0 6.99998L0.101743 7.03583V8.83926C0.101743 9.48633 0.593146 10.0108 1.19937 10.0108H3.98606L6.76773 12.7877C7.23561 13.2547 8 12.9007 8 12.2171V1.78301C8 1.09925 7.23574 0.745258 6.76786 1.21233Z"
|
|
2703
|
+
/>
|
|
2704
|
+
<path
|
|
2705
|
+
class="volume-low"
|
|
2706
|
+
d="M10 3.54781C10.7452 4.55141 11.1393 5.74511 11.1393 6.99991C11.1393 8.25471 10.7453 9.44791 10 10.4515L10.7988 11.0496C11.6734 9.87201 12.1356 8.47161 12.1356 6.99991C12.1356 5.52821 11.6735 4.12731 10.7988 2.94971L10 3.54781Z"
|
|
2707
|
+
/>
|
|
2708
|
+
<path
|
|
2709
|
+
class="volume-medium"
|
|
2710
|
+
d="M12.3778 2.40086C13.2709 3.76756 13.7428 5.35806 13.7428 7.00026C13.7428 8.64246 13.2709 10.233 12.3778 11.5992L13.2106 12.1484C14.2107 10.6185 14.739 8.83796 14.739 7.00016C14.739 5.16236 14.2107 3.38236 13.2106 1.85156L12.3778 2.40086Z"
|
|
2711
|
+
/>
|
|
2712
|
+
<path
|
|
2713
|
+
class="volume-high"
|
|
2714
|
+
d="M15.5981 0.75L14.7478 1.2719C15.7937 2.9919 16.3468 4.9723 16.3468 7C16.3468 9.0277 15.7937 11.0082 14.7478 12.7281L15.5981 13.25C16.7398 11.3722 17.343 9.211 17.343 7C17.343 4.789 16.7398 2.6268 15.5981 0.75Z"
|
|
2715
|
+
/>
|
|
2716
|
+
</g>
|
|
2717
|
+
<g class="muted">
|
|
2718
|
+
<path
|
|
2719
|
+
fill-rule="evenodd"
|
|
2720
|
+
clip-rule="evenodd"
|
|
2721
|
+
d="M4.39976 4.98924H1.19937C1.19429 4.98924 1.17777 4.98961 1.15296 5.01609C1.1271 5.04369 1.10174 5.09245 1.10174 5.1607V8.83926C1.10174 8.90761 1.12714 8.95641 1.15299 8.984C1.17779 9.01047 1.1943 9.01084 1.19937 9.01084H4.39977L7 11.6066V2.39357L4.39976 4.98924ZM7.47434 1.92006C7.4743 1.9201 7.47439 1.92002 7.47434 1.92006V1.92006ZM6.76773 12.7877L3.98606 10.0108H1.19937C0.593146 10.0108 0.101743 9.48633 0.101743 8.83926V7.03583L0 6.99998L0.101743 6.96412V5.1607C0.101743 4.51375 0.593146 3.98924 1.19937 3.98924H3.98606L6.76786 1.21233C7.23574 0.745258 8 1.09925 8 1.78301V12.2171C8 12.9007 7.23561 13.2547 6.76773 12.7877Z"
|
|
2722
|
+
/>
|
|
2723
|
+
<path
|
|
2724
|
+
fill-rule="evenodd"
|
|
2725
|
+
clip-rule="evenodd"
|
|
2726
|
+
d="M15.2677 9.30323C15.463 9.49849 15.7796 9.49849 15.9749 9.30323C16.1701 9.10796 16.1701 8.79138 15.9749 8.59612L14.2071 6.82841L15.9749 5.06066C16.1702 4.8654 16.1702 4.54882 15.9749 4.35355C15.7796 4.15829 15.4631 4.15829 15.2678 4.35355L13.5 6.1213L11.7322 4.35348C11.537 4.15822 11.2204 4.15822 11.0251 4.35348C10.8298 4.54874 10.8298 4.86532 11.0251 5.06058L12.7929 6.82841L11.0251 8.59619C10.8299 8.79146 10.8299 9.10804 11.0251 9.3033C11.2204 9.49856 11.537 9.49856 11.7323 9.3033L13.5 7.53552L15.2677 9.30323Z"
|
|
2727
|
+
/>
|
|
2728
|
+
</g>
|
|
2729
|
+
</svg>
|
|
2730
|
+
</media-mute-button>
|
|
2731
|
+
</template>
|
|
2732
|
+
|
|
2733
|
+
<template partial="PipButton">
|
|
2734
|
+
<media-pip-button part="bottom pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2735
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
|
|
2736
|
+
<path
|
|
2737
|
+
d="M15.9891 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.989C0 13.0996 0.9004 14 2.011 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0ZM17 11.9891C17 12.5465 16.5465 13 15.9891 13H2.011C1.4536 13 1.0001 12.5465 1.0001 11.9891V2.0109C1.0001 1.4535 1.4536 0.9999 2.011 0.9999H15.9891C16.5465 0.9999 17 1.4535 17 2.0109V11.9891Z"
|
|
2738
|
+
/>
|
|
2739
|
+
<path
|
|
2740
|
+
d="M15.356 5.67822H8.19523C8.03253 5.67822 7.90063 5.81012 7.90063 5.97282V11.3836C7.90063 11.5463 8.03253 11.6782 8.19523 11.6782H15.356C15.5187 11.6782 15.6506 11.5463 15.6506 11.3836V5.97282C15.6506 5.81012 15.5187 5.67822 15.356 5.67822Z"
|
|
2741
|
+
/>
|
|
2742
|
+
</svg>
|
|
2743
|
+
</media-pip-button>
|
|
2744
|
+
</template>
|
|
2745
|
+
|
|
2746
|
+
<template partial="CaptionsMenu">
|
|
2747
|
+
<media-captions-menu-button part="bottom captions button">
|
|
2748
|
+
<svg aria-hidden="true" viewBox="0 0 18 14" slot="on">
|
|
2749
|
+
<path
|
|
2750
|
+
d="M15.989 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9004 14 2.011 14H15.989C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.989 0ZM4.2292 8.7639C4.5954 9.1902 5.0935 9.4031 5.7233 9.4031C6.1852 9.4031 6.5544 9.301 6.8302 9.0969C7.1061 8.8933 7.2863 8.614 7.3702 8.26H8.4322C8.3062 8.884 8.0093 9.3733 7.5411 9.7273C7.0733 10.0813 6.4703 10.2581 5.732 10.2581C5.108 10.2581 4.5699 10.1219 4.1168 9.8489C3.6637 9.5759 3.3141 9.1946 3.0685 8.7058C2.8224 8.2165 2.6994 7.6511 2.6994 7.009C2.6994 6.3611 2.8224 5.7927 3.0685 5.3034C3.3141 4.8146 3.6637 4.4323 4.1168 4.1559C4.5699 3.88 5.108 3.7418 5.732 3.7418C6.4703 3.7418 7.0733 3.922 7.5411 4.2818C8.0094 4.6422 8.3062 5.1461 8.4322 5.794H7.3702C7.2862 5.4283 7.106 5.1368 6.8302 4.921C6.5544 4.7052 6.1852 4.5968 5.7233 4.5968C5.0934 4.5968 4.5954 4.8116 4.2292 5.2404C3.8635 5.6696 3.6804 6.259 3.6804 7.009C3.6804 7.7531 3.8635 8.3381 4.2292 8.7639ZM11.0974 8.7639C11.4636 9.1902 11.9617 9.4031 12.5915 9.4031C13.0534 9.4031 13.4226 9.301 13.6984 9.0969C13.9743 8.8933 14.1545 8.614 14.2384 8.26H15.3004C15.1744 8.884 14.8775 9.3733 14.4093 9.7273C13.9415 10.0813 13.3385 10.2581 12.6002 10.2581C11.9762 10.2581 11.4381 10.1219 10.985 9.8489C10.5319 9.5759 10.1823 9.1946 9.9367 8.7058C9.6906 8.2165 9.5676 7.6511 9.5676 7.009C9.5676 6.3611 9.6906 5.7927 9.9367 5.3034C10.1823 4.8146 10.5319 4.4323 10.985 4.1559C11.4381 3.88 11.9762 3.7418 12.6002 3.7418C13.3385 3.7418 13.9415 3.922 14.4093 4.2818C14.8776 4.6422 15.1744 5.1461 15.3004 5.794H14.2384C14.1544 5.4283 13.9742 5.1368 13.6984 4.921C13.4226 4.7052 13.0534 4.5968 12.5915 4.5968C11.9616 4.5968 11.4636 4.8116 11.0974 5.2404C10.7317 5.6696 10.5486 6.259 10.5486 7.009C10.5486 7.7531 10.7317 8.3381 11.0974 8.7639Z"
|
|
2751
|
+
/>
|
|
2752
|
+
</svg>
|
|
2753
|
+
<svg aria-hidden="true" viewBox="0 0 18 14" slot="off">
|
|
2754
|
+
<path
|
|
2755
|
+
d="M5.73219 10.258C5.10819 10.258 4.57009 10.1218 4.11699 9.8488C3.66389 9.5758 3.31429 9.1945 3.06869 8.7057C2.82259 8.2164 2.69958 7.651 2.69958 7.0089C2.69958 6.361 2.82259 5.7926 3.06869 5.3033C3.31429 4.8145 3.66389 4.4322 4.11699 4.1558C4.57009 3.8799 5.10819 3.7417 5.73219 3.7417C6.47049 3.7417 7.07348 3.9219 7.54128 4.2817C8.00958 4.6421 8.30638 5.146 8.43238 5.7939H7.37039C7.28639 5.4282 7.10618 5.1367 6.83039 4.9209C6.55459 4.7051 6.18538 4.5967 5.72348 4.5967C5.09358 4.5967 4.59559 4.8115 4.22939 5.2403C3.86369 5.6695 3.68058 6.2589 3.68058 7.0089C3.68058 7.753 3.86369 8.338 4.22939 8.7638C4.59559 9.1901 5.09368 9.403 5.72348 9.403C6.18538 9.403 6.55459 9.3009 6.83039 9.0968C7.10629 8.8932 7.28649 8.6139 7.37039 8.2599H8.43238C8.30638 8.8839 8.00948 9.3732 7.54128 9.7272C7.07348 10.0812 6.47049 10.258 5.73219 10.258Z"
|
|
2756
|
+
/>
|
|
2757
|
+
<path
|
|
2758
|
+
d="M12.6003 10.258C11.9763 10.258 11.4382 10.1218 10.9851 9.8488C10.532 9.5758 10.1824 9.1945 9.93685 8.7057C9.69075 8.2164 9.56775 7.651 9.56775 7.0089C9.56775 6.361 9.69075 5.7926 9.93685 5.3033C10.1824 4.8145 10.532 4.4322 10.9851 4.1558C11.4382 3.8799 11.9763 3.7417 12.6003 3.7417C13.3386 3.7417 13.9416 3.9219 14.4094 4.2817C14.8777 4.6421 15.1745 5.146 15.3005 5.7939H14.2385C14.1545 5.4282 13.9743 5.1367 13.6985 4.9209C13.4227 4.7051 13.0535 4.5967 12.5916 4.5967C11.9617 4.5967 11.4637 4.8115 11.0975 5.2403C10.7318 5.6695 10.5487 6.2589 10.5487 7.0089C10.5487 7.753 10.7318 8.338 11.0975 8.7638C11.4637 9.1901 11.9618 9.403 12.5916 9.403C13.0535 9.403 13.4227 9.3009 13.6985 9.0968C13.9744 8.8932 14.1546 8.6139 14.2385 8.2599H15.3005C15.1745 8.8839 14.8776 9.3732 14.4094 9.7272C13.9416 10.0812 13.3386 10.258 12.6003 10.258Z"
|
|
2759
|
+
/>
|
|
2760
|
+
<path
|
|
2761
|
+
d="M15.9891 1C16.5465 1 17 1.4535 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H2.0109C1.4535 13 1 12.5465 1 11.9891V2.0109C1 1.4535 1.4535 0.9999 2.0109 0.9999L15.9891 1ZM15.9891 0H2.0109C0.9003 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9003 14 2.0109 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0Z"
|
|
2762
|
+
/>
|
|
2763
|
+
</svg>
|
|
2764
|
+
</media-captions-menu-button>
|
|
2765
|
+
<media-captions-menu
|
|
2766
|
+
hidden
|
|
2767
|
+
anchor="auto"
|
|
2768
|
+
part="bottom captions menu"
|
|
2769
|
+
disabled="{{disabled}}"
|
|
2770
|
+
aria-disabled="{{disabled}}"
|
|
2771
|
+
exportparts="menu-item"
|
|
2772
|
+
>
|
|
2773
|
+
<div slot="checked-indicator">
|
|
2774
|
+
<style>
|
|
2775
|
+
.indicator {
|
|
2776
|
+
position: relative;
|
|
2777
|
+
top: 1px;
|
|
2778
|
+
width: 0.9em;
|
|
2779
|
+
height: auto;
|
|
2780
|
+
fill: var(--_accent-color);
|
|
2781
|
+
margin-right: 5px;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
[aria-checked='false'] .indicator {
|
|
2785
|
+
display: none;
|
|
2786
|
+
}
|
|
2787
|
+
</style>
|
|
2788
|
+
<svg viewBox="0 0 14 18" class="indicator">
|
|
2789
|
+
<path
|
|
2790
|
+
d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
|
|
2791
|
+
fill-rule="evenodd"
|
|
2792
|
+
/>
|
|
2793
|
+
</svg></div
|
|
2794
|
+
></media-captions-menu>
|
|
2795
|
+
</template>
|
|
2796
|
+
|
|
2797
|
+
<template partial="AirplayButton">
|
|
2798
|
+
<media-airplay-button part="bottom airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2799
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
|
|
2800
|
+
<path
|
|
2801
|
+
d="M16.1383 0H1.8618C0.8335 0 0 0.8335 0 1.8617V10.1382C0 11.1664 0.8335 12 1.8618 12H3.076C3.1204 11.9433 3.1503 11.8785 3.2012 11.826L4.004 11H1.8618C1.3866 11 1 10.6134 1 10.1382V1.8617C1 1.3865 1.3866 0.9999 1.8618 0.9999H16.1383C16.6135 0.9999 17.0001 1.3865 17.0001 1.8617V10.1382C17.0001 10.6134 16.6135 11 16.1383 11H13.9961L14.7989 11.826C14.8499 11.8785 14.8798 11.9432 14.9241 12H16.1383C17.1665 12 18.0001 11.1664 18.0001 10.1382V1.8617C18 0.8335 17.1665 0 16.1383 0Z"
|
|
2802
|
+
/>
|
|
2803
|
+
<path
|
|
2804
|
+
d="M9.55061 8.21903C9.39981 8.06383 9.20001 7.98633 9.00011 7.98633C8.80021 7.98633 8.60031 8.06383 8.44951 8.21903L4.09771 12.697C3.62471 13.1838 3.96961 13.9998 4.64831 13.9998H13.3518C14.0304 13.9998 14.3754 13.1838 13.9023 12.697L9.55061 8.21903Z"
|
|
2805
|
+
/>
|
|
2806
|
+
</svg>
|
|
2807
|
+
</media-airplay-button>
|
|
2808
|
+
</template>
|
|
2809
|
+
|
|
2810
|
+
<template partial="FullscreenButton">
|
|
2811
|
+
<media-fullscreen-button part="bottom fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2812
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
|
|
2813
|
+
<path
|
|
2814
|
+
d="M1.00745 4.39539L1.01445 1.98789C1.01605 1.43049 1.47085 0.978289 2.02835 0.979989L6.39375 0.992589L6.39665 -0.007411L2.03125 -0.020011C0.920646 -0.023211 0.0176463 0.874489 0.0144463 1.98509L0.00744629 4.39539H1.00745Z"
|
|
2815
|
+
/>
|
|
2816
|
+
<path
|
|
2817
|
+
d="M17.0144 2.03431L17.0076 4.39541H18.0076L18.0144 2.03721C18.0176 0.926712 17.1199 0.0237125 16.0093 0.0205125L11.6439 0.0078125L11.641 1.00781L16.0064 1.02041C16.5638 1.02201 17.016 1.47681 17.0144 2.03431Z"
|
|
2818
|
+
/>
|
|
2819
|
+
<path
|
|
2820
|
+
d="M16.9925 9.60498L16.9855 12.0124C16.9839 12.5698 16.5291 13.022 15.9717 13.0204L11.6063 13.0078L11.6034 14.0078L15.9688 14.0204C17.0794 14.0236 17.9823 13.1259 17.9855 12.0153L17.9925 9.60498H16.9925Z"
|
|
2821
|
+
/>
|
|
2822
|
+
<path
|
|
2823
|
+
d="M0.985626 11.9661L0.992426 9.60498H-0.0074737L-0.0142737 11.9632C-0.0174737 13.0738 0.880226 13.9767 1.99083 13.98L6.35623 13.9926L6.35913 12.9926L1.99373 12.98C1.43633 12.9784 0.983926 12.5236 0.985626 11.9661Z"
|
|
2824
|
+
/>
|
|
2825
|
+
</svg>
|
|
2826
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
|
|
2827
|
+
<path
|
|
2828
|
+
d="M5.39655 -0.0200195L5.38955 2.38748C5.38795 2.94488 4.93315 3.39708 4.37565 3.39538L0.0103463 3.38278L0.00744629 4.38278L4.37285 4.39538C5.48345 4.39858 6.38635 3.50088 6.38965 2.39028L6.39665 -0.0200195H5.39655Z"
|
|
2829
|
+
/>
|
|
2830
|
+
<path
|
|
2831
|
+
d="M12.6411 2.36891L12.6479 0.0078125H11.6479L11.6411 2.36601C11.6379 3.47651 12.5356 4.37951 13.6462 4.38271L18.0116 4.39531L18.0145 3.39531L13.6491 3.38271C13.0917 3.38111 12.6395 2.92641 12.6411 2.36891Z"
|
|
2832
|
+
/>
|
|
2833
|
+
<path
|
|
2834
|
+
d="M12.6034 14.0204L12.6104 11.613C12.612 11.0556 13.0668 10.6034 13.6242 10.605L17.9896 10.6176L17.9925 9.61759L13.6271 9.60499C12.5165 9.60179 11.6136 10.4995 11.6104 11.6101L11.6034 14.0204H12.6034Z"
|
|
2835
|
+
/>
|
|
2836
|
+
<path
|
|
2837
|
+
d="M5.359 11.6315L5.3522 13.9926H6.3522L6.359 11.6344C6.3622 10.5238 5.4645 9.62088 4.3539 9.61758L-0.0115043 9.60498L-0.0144043 10.605L4.351 10.6176C4.9084 10.6192 5.3607 11.074 5.359 11.6315Z"
|
|
2838
|
+
/>
|
|
2839
|
+
</svg>
|
|
2840
|
+
</media-fullscreen-button>
|
|
2841
|
+
</template>
|
|
2842
|
+
|
|
2843
|
+
<template partial="CastButton">
|
|
2844
|
+
<media-cast-button part="bottom cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2845
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
|
|
2846
|
+
<path
|
|
2847
|
+
d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"
|
|
2848
|
+
/>
|
|
2849
|
+
</svg>
|
|
2850
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
|
|
2851
|
+
<path
|
|
2852
|
+
d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"
|
|
2853
|
+
/>
|
|
2854
|
+
<path d="M2.15002 5.634C5.18352 6.4207 7.57252 8.8151 8.35282 11.8499H15.8501V2.1499H2.15002V5.634Z" />
|
|
2855
|
+
</svg>
|
|
2856
|
+
</media-cast-button>
|
|
2857
|
+
</template>
|
|
2858
|
+
|
|
2859
|
+
<template partial="LiveButton">
|
|
2860
|
+
<media-live-button part="{{section ?? 'top'}} live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
|
|
2861
|
+
<span slot="text">Live</span>
|
|
2862
|
+
</media-live-button>
|
|
2863
|
+
</template>
|
|
2864
|
+
|
|
2865
|
+
<template partial="PlaybackRateMenu">
|
|
2866
|
+
<media-playback-rate-menu-button part="bottom playback-rate button"></media-playback-rate-menu-button>
|
|
2867
|
+
<media-playback-rate-menu
|
|
2868
|
+
hidden
|
|
2869
|
+
anchor="auto"
|
|
2870
|
+
rates="{{playbackrates}}"
|
|
2871
|
+
exportparts="menu-item"
|
|
2872
|
+
part="bottom playback-rate menu"
|
|
2873
|
+
disabled="{{disabled}}"
|
|
2874
|
+
aria-disabled="{{disabled}}"
|
|
2875
|
+
></media-playback-rate-menu>
|
|
2876
|
+
</template>
|
|
2877
|
+
|
|
2878
|
+
<template partial="VolumeRange">
|
|
2879
|
+
<media-volume-range
|
|
2880
|
+
part="bottom volume range"
|
|
2881
|
+
disabled="{{disabled}}"
|
|
2882
|
+
aria-disabled="{{disabled}}"
|
|
2883
|
+
></media-volume-range>
|
|
2884
|
+
</template>
|
|
2885
|
+
|
|
2886
|
+
<template partial="TimeDisplay">
|
|
2887
|
+
<media-time-display
|
|
2888
|
+
remaining="{{defaultshowremainingtime}}"
|
|
2889
|
+
showduration="{{!hideduration}}"
|
|
2890
|
+
part="bottom time display"
|
|
2891
|
+
disabled="{{disabled}}"
|
|
2892
|
+
aria-disabled="{{disabled}}"
|
|
2893
|
+
></media-time-display>
|
|
2894
|
+
</template>
|
|
2895
|
+
|
|
2896
|
+
<template partial="TimeRange">
|
|
2897
|
+
<media-time-range part="bottom time range" disabled="{{disabled}}" aria-disabled="{{disabled}}" exportparts="thumb">
|
|
2898
|
+
<media-preview-thumbnail slot="preview"></media-preview-thumbnail>
|
|
2899
|
+
<media-preview-chapter-display slot="preview"></media-preview-chapter-display>
|
|
2900
|
+
<media-preview-time-display slot="preview"></media-preview-time-display>
|
|
2901
|
+
<div slot="preview" part="arrow"></div>
|
|
2902
|
+
</media-time-range>
|
|
2903
|
+
</template>
|
|
2904
|
+
|
|
2905
|
+
<template partial="AudioTrackMenu">
|
|
2906
|
+
<media-audio-track-menu-button part="bottom audio-track button">
|
|
2907
|
+
<svg aria-hidden="true" slot="icon" viewBox="0 0 18 16">
|
|
2908
|
+
<path d="M9 15A7 7 0 1 1 9 1a7 7 0 0 1 0 14Zm0 1A8 8 0 1 0 9 0a8 8 0 0 0 0 16Z" />
|
|
2909
|
+
<path
|
|
2910
|
+
d="M5.2 6.3a.5.5 0 0 1 .5.5v2.4a.5.5 0 1 1-1 0V6.8a.5.5 0 0 1 .5-.5Zm2.4-2.4a.5.5 0 0 1 .5.5v7.2a.5.5 0 0 1-1 0V4.4a.5.5 0 0 1 .5-.5ZM10 5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.4-.8a.5.5 0 0 1 .5.5v5.6a.5.5 0 0 1-1 0V5.2a.5.5 0 0 1 .5-.5Z"
|
|
2911
|
+
/>
|
|
2912
|
+
</svg>
|
|
2913
|
+
</media-audio-track-menu-button>
|
|
2914
|
+
<media-audio-track-menu
|
|
2915
|
+
hidden
|
|
2916
|
+
anchor="auto"
|
|
2917
|
+
part="bottom audio-track menu"
|
|
2918
|
+
disabled="{{disabled}}"
|
|
2919
|
+
aria-disabled="{{disabled}}"
|
|
2920
|
+
exportparts="menu-item"
|
|
2921
|
+
>
|
|
2922
|
+
<div slot="checked-indicator">
|
|
2923
|
+
<style>
|
|
2924
|
+
.indicator {
|
|
2925
|
+
position: relative;
|
|
2926
|
+
top: 1px;
|
|
2927
|
+
width: 0.9em;
|
|
2928
|
+
height: auto;
|
|
2929
|
+
fill: var(--_accent-color);
|
|
2930
|
+
margin-right: 5px;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
[aria-checked='false'] .indicator {
|
|
2934
|
+
display: none;
|
|
2935
|
+
}
|
|
2936
|
+
</style>
|
|
2937
|
+
<svg viewBox="0 0 14 18" class="indicator">
|
|
2938
|
+
<path
|
|
2939
|
+
d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
|
|
2940
|
+
fill-rule="evenodd"
|
|
2941
|
+
/>
|
|
2942
|
+
</svg>
|
|
2943
|
+
</div>
|
|
2944
|
+
</media-audio-track-menu>
|
|
2945
|
+
</template>
|
|
2946
|
+
|
|
2947
|
+
<template partial="RenditionMenu">
|
|
2948
|
+
<media-rendition-menu-button part="bottom rendition button">
|
|
2949
|
+
<svg aria-hidden="true" slot="icon" viewBox="0 0 18 14">
|
|
2950
|
+
<path
|
|
2951
|
+
d="M2.25 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM9 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
|
|
2952
|
+
/>
|
|
2953
|
+
</svg>
|
|
2954
|
+
</media-rendition-menu-button>
|
|
2955
|
+
<media-rendition-menu
|
|
2956
|
+
hidden
|
|
2957
|
+
anchor="auto"
|
|
2958
|
+
part="bottom rendition menu"
|
|
2959
|
+
disabled="{{disabled}}"
|
|
2960
|
+
aria-disabled="{{disabled}}"
|
|
2961
|
+
>
|
|
2962
|
+
<div slot="checked-indicator">
|
|
2963
|
+
<style>
|
|
2964
|
+
.indicator {
|
|
2965
|
+
position: relative;
|
|
2966
|
+
top: 1px;
|
|
2967
|
+
width: 0.9em;
|
|
2968
|
+
height: auto;
|
|
2969
|
+
fill: var(--_accent-color);
|
|
2970
|
+
margin-right: 5px;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
[aria-checked='false'] .indicator {
|
|
2974
|
+
opacity: 0;
|
|
2975
|
+
}
|
|
2976
|
+
</style>
|
|
2977
|
+
<svg viewBox="0 0 14 18" class="indicator">
|
|
2978
|
+
<path
|
|
2979
|
+
d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
|
|
2980
|
+
fill-rule="evenodd"
|
|
2981
|
+
/>
|
|
2982
|
+
</svg>
|
|
2983
|
+
</div>
|
|
2984
|
+
</media-rendition-menu>
|
|
2985
|
+
</template>
|
|
2986
|
+
|
|
2987
|
+
<template partial="MuxBadge">
|
|
2988
|
+
<div part="mux-badge">
|
|
2989
|
+
<a href="https://www.mux.com/player" target="_blank">
|
|
2990
|
+
<span class="mux-badge-text">Powered by</span>
|
|
2991
|
+
<div class="mux-badge-logo">
|
|
2992
|
+
<svg
|
|
2993
|
+
viewBox="0 0 1600 500"
|
|
2994
|
+
style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2"
|
|
2995
|
+
>
|
|
2996
|
+
<g>
|
|
2997
|
+
<path
|
|
2998
|
+
d="M994.287,93.486c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m0,-93.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,68.943 -56.09,125.033 -125.032,125.033c-68.942,-0 -125.03,-56.09 -125.03,-125.033l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,137.853 112.149,250.003 249.999,250.003c137.851,-0 250.001,-112.15 250.001,-250.003l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486"
|
|
2999
|
+
style="fill-rule: nonzero"
|
|
3000
|
+
></path>
|
|
3001
|
+
<path
|
|
3002
|
+
d="M1537.51,468.511c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m-275.883,-218.509l-143.33,143.329c-24.402,24.402 -24.402,63.966 0,88.368c24.402,24.402 63.967,24.402 88.369,-0l143.33,-143.329l143.328,143.329c24.402,24.4 63.967,24.402 88.369,-0c24.403,-24.402 24.403,-63.966 0.001,-88.368l-143.33,-143.329l0.001,-0.004l143.329,-143.329c24.402,-24.402 24.402,-63.965 0,-88.367c-24.402,-24.402 -63.967,-24.402 -88.369,-0l-143.329,143.328l-143.329,-143.328c-24.402,-24.401 -63.967,-24.402 -88.369,-0c-24.402,24.402 -24.402,63.965 0,88.367l143.329,143.329l0,0.004Z"
|
|
3003
|
+
style="fill-rule: nonzero"
|
|
3004
|
+
></path>
|
|
3005
|
+
<path
|
|
3006
|
+
d="M437.511,468.521c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m23.915,-463.762c-23.348,-9.672 -50.226,-4.327 -68.096,13.544l-143.331,143.329l-143.33,-143.329c-17.871,-17.871 -44.747,-23.216 -68.096,-13.544c-23.349,9.671 -38.574,32.455 -38.574,57.729l0,375.026c0,34.51 27.977,62.486 62.487,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-224.173l80.843,80.844c24.404,24.402 63.965,24.402 88.369,-0l80.843,-80.844l0,224.173c0,34.51 27.976,62.486 62.486,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-375.026c0,-25.274 -15.224,-48.058 -38.573,-57.729"
|
|
3007
|
+
style="fill-rule: nonzero"
|
|
3008
|
+
></path>
|
|
3009
|
+
</g>
|
|
3010
|
+
</svg>
|
|
3011
|
+
</div>
|
|
3012
|
+
</a>
|
|
3013
|
+
</div>
|
|
3014
|
+
</template>
|
|
3015
|
+
|
|
3016
|
+
<media-controller
|
|
3017
|
+
part="controller"
|
|
3018
|
+
defaultstreamtype="{{defaultstreamtype ?? 'on-demand'}}"
|
|
3019
|
+
breakpoints="sm:470"
|
|
3020
|
+
gesturesdisabled="{{disabled}}"
|
|
3021
|
+
hotkeys="{{hotkeys}}"
|
|
3022
|
+
nohotkeys="{{nohotkeys}}"
|
|
3023
|
+
novolumepref="{{novolumepref}}"
|
|
3024
|
+
audio="{{audio}}"
|
|
3025
|
+
noautoseektolive="{{noautoseektolive}}"
|
|
3026
|
+
defaultsubtitles="{{defaultsubtitles}}"
|
|
3027
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
3028
|
+
keyboardforwardseekoffset="{{forwardseekoffset}}"
|
|
3029
|
+
keyboardbackwardseekoffset="{{backwardseekoffset}}"
|
|
3030
|
+
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
3031
|
+
style="--_pre-playback-place:{{preplaybackplace ?? 'center'}}"
|
|
3032
|
+
>
|
|
3033
|
+
<slot name="media" slot="media"></slot>
|
|
3034
|
+
<slot name="poster" slot="poster"></slot>
|
|
3035
|
+
|
|
3036
|
+
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
|
|
3037
|
+
|
|
3038
|
+
<template if="!audio">
|
|
3039
|
+
<media-error-dialog slot="dialog" noautohide></media-error-dialog>
|
|
3040
|
+
<!-- Pre-playback UI -->
|
|
3041
|
+
<!-- same for both on-demand and live -->
|
|
3042
|
+
<div slot="centered-chrome" class="center-controls pre-playback">
|
|
3043
|
+
<template if="!breakpointsm">{{>PlayButton section="center"}}</template>
|
|
3044
|
+
<template if="breakpointsm">{{>PrePlayButton section="center"}}</template>
|
|
3045
|
+
</div>
|
|
3046
|
+
|
|
3047
|
+
<!-- Mux Badge -->
|
|
3048
|
+
<template if="proudlydisplaymuxbadge"> {{>MuxBadge}} </template>
|
|
3049
|
+
|
|
3050
|
+
<!-- Autoplay centered unmute button -->
|
|
3051
|
+
<!--
|
|
3052
|
+
todo: figure out how show this with available state variables
|
|
3053
|
+
needs to show when:
|
|
3054
|
+
- autoplay is enabled
|
|
3055
|
+
- playback has been successful
|
|
3056
|
+
- audio is muted
|
|
3057
|
+
- in place / instead of the pre-plaback play button
|
|
3058
|
+
- not to show again after user has interacted with this button
|
|
3059
|
+
- OR user has interacted with the mute button in the control bar
|
|
3060
|
+
-->
|
|
3061
|
+
<!--
|
|
3062
|
+
There should be a >MuteButton to the left of the "Unmute" text, but a templating bug
|
|
3063
|
+
makes it appear even if commented out in the markup, add it back when code is un-commented
|
|
3064
|
+
-->
|
|
3065
|
+
<!-- <div slot="centered-chrome" class="autoplay-unmute">
|
|
3066
|
+
<div role="button" class="autoplay-unmute-btn">Unmute</div>
|
|
3067
|
+
</div> -->
|
|
3068
|
+
|
|
3069
|
+
<template if="streamtype == 'on-demand'">
|
|
3070
|
+
<template if="breakpointsm">
|
|
3071
|
+
<media-control-bar part="control-bar top" slot="top-chrome">{{>TitleDisplay}} </media-control-bar>
|
|
3072
|
+
</template>
|
|
3073
|
+
{{>TimeRange}}
|
|
3074
|
+
<media-control-bar part="control-bar bottom">
|
|
3075
|
+
{{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}
|
|
3076
|
+
{{>VolumeRange}}
|
|
3077
|
+
<div class="spacer"></div>
|
|
3078
|
+
{{>RenditionMenu}} {{>PlaybackRateMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}}
|
|
3079
|
+
{{>CastButton}} {{>PipButton}} {{>FullscreenButton}}
|
|
3080
|
+
</media-control-bar>
|
|
3081
|
+
</template>
|
|
3082
|
+
|
|
3083
|
+
<template if="streamtype == 'live'">
|
|
3084
|
+
<media-control-bar part="control-bar top" slot="top-chrome">
|
|
3085
|
+
{{>LiveButton}}
|
|
3086
|
+
<template if="breakpointsm"> {{>TitleDisplay}} </template>
|
|
3087
|
+
</media-control-bar>
|
|
3088
|
+
<template if="targetlivewindow > 0">{{>TimeRange}}</template>
|
|
3089
|
+
<media-control-bar part="control-bar bottom">
|
|
3090
|
+
{{>PlayButton}}
|
|
3091
|
+
<template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>
|
|
3092
|
+
{{>MuteButton}} {{>VolumeRange}}
|
|
3093
|
+
<div class="spacer"></div>
|
|
3094
|
+
{{>RenditionMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}}
|
|
3095
|
+
{{>FullscreenButton}}
|
|
3096
|
+
</media-control-bar>
|
|
3097
|
+
</template>
|
|
3098
|
+
</template>
|
|
3099
|
+
|
|
3100
|
+
<template if="audio">
|
|
3101
|
+
<template if="streamtype == 'on-demand'">
|
|
3102
|
+
<template if="title">
|
|
3103
|
+
<media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
|
|
3104
|
+
</template>
|
|
3105
|
+
<media-control-bar part="control-bar bottom">
|
|
3106
|
+
{{>PlayButton}}
|
|
3107
|
+
<template if="breakpointsm"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
3108
|
+
{{>MuteButton}}
|
|
3109
|
+
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
3110
|
+
{{>TimeDisplay}} {{>TimeRange}}
|
|
3111
|
+
<template if="breakpointsm">{{>PlaybackRateMenu}}</template>
|
|
3112
|
+
{{>AirplayButton}} {{>CastButton}}
|
|
3113
|
+
</media-control-bar>
|
|
3114
|
+
</template>
|
|
3115
|
+
|
|
3116
|
+
<template if="streamtype == 'live'">
|
|
3117
|
+
<template if="title">
|
|
3118
|
+
<media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
|
|
3119
|
+
</template>
|
|
3120
|
+
<media-control-bar part="control-bar bottom">
|
|
3121
|
+
{{>PlayButton}} {{>LiveButton section="bottom"}} {{>MuteButton}}
|
|
3122
|
+
<template if="breakpointsm">
|
|
3123
|
+
{{>VolumeRange}}
|
|
3124
|
+
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
3125
|
+
</template>
|
|
3126
|
+
<template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
|
|
3127
|
+
<template if="!targetlivewindow"><div class="spacer"></div></template>
|
|
3128
|
+
{{>AirplayButton}} {{>CastButton}}
|
|
3129
|
+
</media-control-bar>
|
|
3130
|
+
</template>
|
|
3131
|
+
</template>
|
|
3132
|
+
|
|
3133
|
+
<slot></slot>
|
|
3134
|
+
</media-controller>
|
|
3135
|
+
</template>
|
|
3136
|
+
`);var Um,Hm,Wm=class extends to{};Wm.template=(Hm=(Um=Vu.content)==null?void 0:Um.children)==null?void 0:Hm[0],$t.customElements.get("media-theme-gerwig")||$t.customElements.define("media-theme-gerwig",Wm);var Jt={SRC:"src",POSTER:"poster"},k={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",ACCENT_COLOR:"accent-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",FULLSCREEN_ELEMENT:"fullscreen-element",DRM_TOKEN:"drm-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",DEFAULT_DURATION:"default-duration",TITLE:"title",VIDEO_TITLE:"video-title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",EXTRA_SOURCE_PARAMS:"extra-source-params",NO_VOLUME_PREF:"no-volume-pref",NO_MUTED_PREF:"no-muted-pref",CAST_RECEIVER:"cast-receiver",NO_TOOLTIPS:"no-tooltips",PROUDLY_DISPLAY_MUX_BADGE:"proudly-display-mux-badge",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended"},$u=["audio","backwardseekoffset","defaultduration","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","videotitle","novolumepref","nomutedpref","proudlydisplaymuxbadge"],zE=Ov.formatErrorMessage;function ZE(t){var e,n;let i=t.theme;if(i){let a=(n=(e=t.getRootNode())==null?void 0:e.getElementById)==null?void 0:n.call(e,i);if(a&&a instanceof HTMLTemplateElement)return a;i.startsWith("media-theme-")||(i=`media-theme-${i}`);let r=$t.customElements.get(i);if(r!=null&&r.template)return r.template}}function XE(t){var e;let n=(e=t.mediaController)==null?void 0:e.querySelector("media-time-display");return n&&getComputedStyle(n).getPropertyValue("--media-duration-display-display").trim()==="none"}function Bm(t){let e=t.videoTitle?{video_title:t.videoTitle}:{};return t.getAttributeNames().filter(n=>n.startsWith("metadata-")).reduce((n,i)=>{let a=t.getAttribute(i);return a!==null&&(n[i.replace(/^metadata-/,"").replace(/-/g,"_")]=a),n},e)}Ov.formatErrorMessage=t=>{var e,n;if(t instanceof C){let i=QE(t,!1);return`
|
|
3137
|
+
${i!=null&&i.title?`<h3>${i.title}</h3>`:""}
|
|
3138
|
+
${i!=null&&i.message||i!=null&&i.linkUrl?`<p>
|
|
3139
|
+
${i?.message}
|
|
3140
|
+
${i!=null&&i.linkUrl?`<a
|
|
3141
|
+
href="${i.linkUrl}"
|
|
3142
|
+
target="_blank"
|
|
3143
|
+
rel="external noopener"
|
|
3144
|
+
aria-label="${(e=i.linkText)!=null?e:""} ${M("(opens in a new window)")}"
|
|
3145
|
+
>${(n=i.linkText)!=null?n:i.linkUrl}</a
|
|
3146
|
+
>`:""}
|
|
3147
|
+
</p>`:""}
|
|
3148
|
+
`}return zE(t)};var Ao,ko,wo,Kn,Io,la,ue,En,wb,qu,Fn,Vm,$m,qm,Km,JE=Object.values(y),e0=Object.values(Jt),t0=Object.values(k),Fm=yb(),Ym="mux-player",Gm={isDialogOpen:!1},n0={redundant_streams:!0};function Nn(t,e){return t.media?t.media.getAttribute(e):t.getAttribute(e)}Ao=new WeakMap,ko=new WeakMap,wo=new WeakMap,Kn=new WeakMap,Io=new WeakMap,la=new WeakMap,ue=new WeakSet,En=function(){var t,e,n,i;if(!Q(this,ko)){Kt(this,ko,!0),fe(this,ue,Fn).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof $t.HTMLElement))throw""}catch{Xe("<media-theme> failed to upgrade!")}try{customElements.upgrade(this.media)}catch{Xe("underlying media element failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof fE))throw""}catch{Xe("<media-controller> failed to upgrade!")}fe(this,ue,Vm).call(this),fe(this,ue,$m).call(this),fe(this,ue,qm).call(this),Kt(this,Kn,(e=(t=this.mediaController)==null?void 0:t.hasAttribute(x.USER_INACTIVE))==null||e),fe(this,ue,Km).call(this),(n=this.media)==null||n.addEventListener("streamtypechange",()=>fe(this,ue,Fn).call(this)),(i=this.media)==null||i.addEventListener("loadstart",()=>fe(this,ue,Fn).call(this))}},wb=function(){var t,e;try{(t=window?.CSS)==null||t.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),(e=window?.CSS)==null||e.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},qu=function(t){Object.assign(Q(this,la),t),fe(this,ue,Fn).call(this)},Fn=function(t={}){var e,n,i,a,r;(function(s,o){s.renderInto(o)})((s=>To`
|
|
3149
|
+
<style>
|
|
3150
|
+
${(o=>{let{tokens:l}=o;return l.drm?":host(:not([cast-receiver])) { --_cast-button-drm-display: none; }":""})(s)}
|
|
3151
|
+
${`:host {
|
|
3152
|
+
--media-control-display: var(--controls);
|
|
3153
|
+
--media-loading-indicator-display: var(--loading-indicator);
|
|
3154
|
+
--media-dialog-display: var(--dialog);
|
|
3155
|
+
--media-play-button-display: var(--play-button);
|
|
3156
|
+
--media-live-button-display: var(--live-button);
|
|
3157
|
+
--media-seek-backward-button-display: var(--seek-backward-button);
|
|
3158
|
+
--media-seek-forward-button-display: var(--seek-forward-button);
|
|
3159
|
+
--media-mute-button-display: var(--mute-button);
|
|
3160
|
+
--media-captions-button-display: var(--captions-button);
|
|
3161
|
+
--media-captions-menu-button-display: var(--captions-menu-button, var(--media-captions-button-display));
|
|
3162
|
+
--media-rendition-menu-button-display: var(--rendition-menu-button);
|
|
3163
|
+
--media-audio-track-menu-button-display: var(--audio-track-menu-button);
|
|
3164
|
+
--media-airplay-button-display: var(--airplay-button);
|
|
3165
|
+
--media-pip-button-display: var(--pip-button);
|
|
3166
|
+
--media-fullscreen-button-display: var(--fullscreen-button);
|
|
3167
|
+
--media-cast-button-display: var(--cast-button, var(--_cast-button-drm-display));
|
|
3168
|
+
--media-playback-rate-button-display: var(--playback-rate-button);
|
|
3169
|
+
--media-playback-rate-menu-button-display: var(--playback-rate-menu-button);
|
|
3170
|
+
--media-volume-range-display: var(--volume-range);
|
|
3171
|
+
--media-time-range-display: var(--time-range);
|
|
3172
|
+
--media-time-display-display: var(--time-display);
|
|
3173
|
+
--media-duration-display-display: var(--duration-display);
|
|
3174
|
+
--media-title-display-display: var(--title-display);
|
|
3175
|
+
|
|
3176
|
+
display: inline-block;
|
|
3177
|
+
line-height: 0;
|
|
3178
|
+
width: 100%;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
a {
|
|
3182
|
+
color: #fff;
|
|
3183
|
+
font-size: 0.9em;
|
|
3184
|
+
text-decoration: underline;
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
media-theme {
|
|
3188
|
+
display: inline-block;
|
|
3189
|
+
line-height: 0;
|
|
3190
|
+
width: 100%;
|
|
3191
|
+
height: 100%;
|
|
3192
|
+
direction: ltr;
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
media-poster-image {
|
|
3196
|
+
display: inline-block;
|
|
3197
|
+
line-height: 0;
|
|
3198
|
+
width: 100%;
|
|
3199
|
+
height: 100%;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
media-poster-image:not([src]):not([placeholdersrc]) {
|
|
3203
|
+
display: none;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
::part(top),
|
|
3207
|
+
[part~='top'] {
|
|
3208
|
+
--media-control-display: var(--controls, var(--top-controls));
|
|
3209
|
+
--media-play-button-display: var(--play-button, var(--top-play-button));
|
|
3210
|
+
--media-live-button-display: var(--live-button, var(--top-live-button));
|
|
3211
|
+
--media-seek-backward-button-display: var(--seek-backward-button, var(--top-seek-backward-button));
|
|
3212
|
+
--media-seek-forward-button-display: var(--seek-forward-button, var(--top-seek-forward-button));
|
|
3213
|
+
--media-mute-button-display: var(--mute-button, var(--top-mute-button));
|
|
3214
|
+
--media-captions-button-display: var(--captions-button, var(--top-captions-button));
|
|
3215
|
+
--media-captions-menu-button-display: var(
|
|
3216
|
+
--captions-menu-button,
|
|
3217
|
+
var(--media-captions-button-display, var(--top-captions-menu-button))
|
|
3218
|
+
);
|
|
3219
|
+
--media-rendition-menu-button-display: var(--rendition-menu-button, var(--top-rendition-menu-button));
|
|
3220
|
+
--media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--top-audio-track-menu-button));
|
|
3221
|
+
--media-airplay-button-display: var(--airplay-button, var(--top-airplay-button));
|
|
3222
|
+
--media-pip-button-display: var(--pip-button, var(--top-pip-button));
|
|
3223
|
+
--media-fullscreen-button-display: var(--fullscreen-button, var(--top-fullscreen-button));
|
|
3224
|
+
--media-cast-button-display: var(--cast-button, var(--top-cast-button, var(--_cast-button-drm-display)));
|
|
3225
|
+
--media-playback-rate-button-display: var(--playback-rate-button, var(--top-playback-rate-button));
|
|
3226
|
+
--media-playback-rate-menu-button-display: var(
|
|
3227
|
+
--captions-menu-button,
|
|
3228
|
+
var(--media-playback-rate-button-display, var(--top-playback-rate-menu-button))
|
|
3229
|
+
);
|
|
3230
|
+
--media-volume-range-display: var(--volume-range, var(--top-volume-range));
|
|
3231
|
+
--media-time-range-display: var(--time-range, var(--top-time-range));
|
|
3232
|
+
--media-time-display-display: var(--time-display, var(--top-time-display));
|
|
3233
|
+
--media-duration-display-display: var(--duration-display, var(--top-duration-display));
|
|
3234
|
+
--media-title-display-display: var(--title-display, var(--top-title-display));
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
::part(center),
|
|
3238
|
+
[part~='center'] {
|
|
3239
|
+
--media-control-display: var(--controls, var(--center-controls));
|
|
3240
|
+
--media-play-button-display: var(--play-button, var(--center-play-button));
|
|
3241
|
+
--media-live-button-display: var(--live-button, var(--center-live-button));
|
|
3242
|
+
--media-seek-backward-button-display: var(--seek-backward-button, var(--center-seek-backward-button));
|
|
3243
|
+
--media-seek-forward-button-display: var(--seek-forward-button, var(--center-seek-forward-button));
|
|
3244
|
+
--media-mute-button-display: var(--mute-button, var(--center-mute-button));
|
|
3245
|
+
--media-captions-button-display: var(--captions-button, var(--center-captions-button));
|
|
3246
|
+
--media-captions-menu-button-display: var(
|
|
3247
|
+
--captions-menu-button,
|
|
3248
|
+
var(--media-captions-button-display, var(--center-captions-menu-button))
|
|
3249
|
+
);
|
|
3250
|
+
--media-rendition-menu-button-display: var(--rendition-menu-button, var(--center-rendition-menu-button));
|
|
3251
|
+
--media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--center-audio-track-menu-button));
|
|
3252
|
+
--media-airplay-button-display: var(--airplay-button, var(--center-airplay-button));
|
|
3253
|
+
--media-pip-button-display: var(--pip-button, var(--center-pip-button));
|
|
3254
|
+
--media-fullscreen-button-display: var(--fullscreen-button, var(--center-fullscreen-button));
|
|
3255
|
+
--media-cast-button-display: var(--cast-button, var(--center-cast-button, var(--_cast-button-drm-display)));
|
|
3256
|
+
--media-playback-rate-button-display: var(--playback-rate-button, var(--center-playback-rate-button));
|
|
3257
|
+
--media-playback-rate-menu-button-display: var(
|
|
3258
|
+
--playback-rate-menu-button,
|
|
3259
|
+
var(--media-playback-rate-button-display, var(--center-playback-rate-menu-button))
|
|
3260
|
+
);
|
|
3261
|
+
--media-volume-range-display: var(--volume-range, var(--center-volume-range));
|
|
3262
|
+
--media-time-range-display: var(--time-range, var(--center-time-range));
|
|
3263
|
+
--media-time-display-display: var(--time-display, var(--center-time-display));
|
|
3264
|
+
--media-duration-display-display: var(--duration-display, var(--center-duration-display));
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
::part(bottom),
|
|
3268
|
+
[part~='bottom'] {
|
|
3269
|
+
--media-control-display: var(--controls, var(--bottom-controls));
|
|
3270
|
+
--media-play-button-display: var(--play-button, var(--bottom-play-button));
|
|
3271
|
+
--media-live-button-display: var(--live-button, var(--bottom-live-button));
|
|
3272
|
+
--media-seek-backward-button-display: var(--seek-backward-button, var(--bottom-seek-backward-button));
|
|
3273
|
+
--media-seek-forward-button-display: var(--seek-forward-button, var(--bottom-seek-forward-button));
|
|
3274
|
+
--media-mute-button-display: var(--mute-button, var(--bottom-mute-button));
|
|
3275
|
+
--media-captions-button-display: var(--captions-button, var(--bottom-captions-button));
|
|
3276
|
+
--media-captions-menu-button-display: var(
|
|
3277
|
+
--captions-menu-button,
|
|
3278
|
+
var(--media-captions-button-display, var(--bottom-captions-menu-button))
|
|
3279
|
+
);
|
|
3280
|
+
--media-rendition-menu-button-display: var(--rendition-menu-button, var(--bottom-rendition-menu-button));
|
|
3281
|
+
--media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--bottom-audio-track-menu-button));
|
|
3282
|
+
--media-airplay-button-display: var(--airplay-button, var(--bottom-airplay-button));
|
|
3283
|
+
--media-pip-button-display: var(--pip-button, var(--bottom-pip-button));
|
|
3284
|
+
--media-fullscreen-button-display: var(--fullscreen-button, var(--bottom-fullscreen-button));
|
|
3285
|
+
--media-cast-button-display: var(--cast-button, var(--bottom-cast-button, var(--_cast-button-drm-display)));
|
|
3286
|
+
--media-playback-rate-button-display: var(--playback-rate-button, var(--bottom-playback-rate-button));
|
|
3287
|
+
--media-playback-rate-menu-button-display: var(
|
|
3288
|
+
--playback-rate-menu-button,
|
|
3289
|
+
var(--media-playback-rate-button-display, var(--bottom-playback-rate-menu-button))
|
|
3290
|
+
);
|
|
3291
|
+
--media-volume-range-display: var(--volume-range, var(--bottom-volume-range));
|
|
3292
|
+
--media-time-range-display: var(--time-range, var(--bottom-time-range));
|
|
3293
|
+
--media-time-display-display: var(--time-display, var(--bottom-time-display));
|
|
3294
|
+
--media-duration-display-display: var(--duration-display, var(--bottom-duration-display));
|
|
3295
|
+
--media-title-display-display: var(--title-display, var(--bottom-title-display));
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
:host([no-tooltips]) {
|
|
3299
|
+
--media-tooltip-display: none;
|
|
3300
|
+
}
|
|
3301
|
+
`}
|
|
3302
|
+
</style>
|
|
3303
|
+
${jE(s)}
|
|
3304
|
+
`)((e=this,n={...Q(this,la),...t},{src:!e.playbackId&&e.src,playbackId:e.playbackId,hasSrc:!!e.playbackId||!!e.src||!!e.currentSrc,poster:e.poster,storyboard:((i=e.media)==null?void 0:i.currentSrc)&&e.storyboard,storyboardSrc:e.getAttribute(k.STORYBOARD_SRC),fullscreenElement:e.getAttribute(k.FULLSCREEN_ELEMENT),placeholder:e.getAttribute("placeholder"),themeTemplate:ZE(e),thumbnailTime:!e.tokens.thumbnail&&e.thumbnailTime,autoplay:e.autoplay,crossOrigin:e.crossOrigin,loop:e.loop,noHotKeys:e.hasAttribute(k.NOHOTKEYS),hotKeys:e.getAttribute(k.HOTKEYS),muted:e.muted,paused:e.paused,preload:e.preload,envKey:e.envKey,preferCmcd:e.preferCmcd,debug:e.debug,disableTracking:e.disableTracking,disableCookies:e.disableCookies,tokens:e.tokens,beaconCollectionDomain:e.beaconCollectionDomain,maxResolution:e.maxResolution,minResolution:e.minResolution,maxAutoResolution:e.maxAutoResolution,programStartTime:e.programStartTime,programEndTime:e.programEndTime,assetStartTime:e.assetStartTime,assetEndTime:e.assetEndTime,renditionOrder:e.renditionOrder,metadata:e.metadata,playerInitTime:e.playerInitTime,playerSoftwareName:e.playerSoftwareName,playerSoftwareVersion:e.playerSoftwareVersion,startTime:e.startTime,preferPlayback:e.preferPlayback,audio:e.audio,defaultStreamType:e.defaultStreamType,targetLiveWindow:e.getAttribute(y.TARGET_LIVE_WINDOW),streamType:Bu(e.getAttribute(y.STREAM_TYPE)),primaryColor:e.getAttribute(k.PRIMARY_COLOR),secondaryColor:e.getAttribute(k.SECONDARY_COLOR),accentColor:e.getAttribute(k.ACCENT_COLOR),forwardSeekOffset:e.forwardSeekOffset,backwardSeekOffset:e.backwardSeekOffset,defaultHiddenCaptions:e.defaultHiddenCaptions,defaultDuration:e.defaultDuration,defaultShowRemainingTime:e.defaultShowRemainingTime,hideDuration:XE(e),playbackRates:e.getAttribute(k.PLAYBACK_RATES),customDomain:(a=e.getAttribute(y.CUSTOM_DOMAIN))!=null?a:void 0,title:e.getAttribute(k.TITLE),videoTitle:(r=e.getAttribute(k.VIDEO_TITLE))!=null?r:e.getAttribute(k.TITLE),novolumepref:e.hasAttribute(k.NO_VOLUME_PREF),nomutedpref:e.hasAttribute(k.NO_MUTED_PREF),proudlyDisplayMuxBadge:e.hasAttribute(k.PROUDLY_DISPLAY_MUX_BADGE),castReceiver:e.castReceiver,disablePseudoEnded:e.hasAttribute(k.DISABLE_PSEUDO_ENDED),capRenditionToPlayerSize:e.capRenditionToPlayerSize,...n,extraSourceParams:e.extraSourceParams})),this.shadowRoot)},Vm=function(){let t=e=>{var n,i;if(e==null||!e.startsWith("theme-"))return;let a=e.replace(/^theme-/,"");if($u.includes(a))return;let r=this.getAttribute(e);r!=null?(n=this.mediaTheme)==null||n.setAttribute(a,r):(i=this.mediaTheme)==null||i.removeAttribute(a)};new MutationObserver(e=>{for(let{attributeName:n}of e)t(n)}).observe(this,{attributes:!0}),this.getAttributeNames().forEach(t)},$m=function(){this.addEventListener("error",t=>{var e;let n=(e=this.media)==null?void 0:e.error;if(!(n instanceof C)){let{message:a,code:r}=n??{};n=new C(a,r)}if(n==null||!n.fatal)return tn(n),void(n.data&&tn(`${n.name} data:`,n.data));let i=Pm(n);i.message&&Tb(i),Xe(n),n.data&&Xe(`${n.name} data:`,n.data),fe(this,ue,qu).call(this,{isDialogOpen:!0})}),this.media&&(this.media.errorTranslator=(t={})=>{var e,n,i;if(!(((e=this.media)==null?void 0:e.error)instanceof C))return t;let a=Pm((n=this.media)==null?void 0:n.error);return{player_error_code:(i=this.media)==null?void 0:i.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}})},qm=function(){var t,e,n,i;let a=()=>fe(this,ue,Fn).call(this);(e=(t=this.media)==null?void 0:t.textTracks)==null||e.addEventListener("addtrack",a),(i=(n=this.media)==null?void 0:n.textTracks)==null||i.addEventListener("removetrack",a)},Km=function(){var t,e;if(!/Firefox/i.test(navigator.userAgent))return;let n,i=new WeakMap,a=()=>this.streamType===j.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,r=(l,d,u=!1)=>{a()||Array.from(l&&l.activeCues||[]).forEach(c=>{if(!(!c.snapToLines||c.line<-5||c.line>=0&&c.line<10))if(!d||this.paused){let m=c.text.split(`
|
|
3305
|
+
`).length,p=-3;this.streamType===j.LIVE&&(p=-2);let v=p-m;if(c.line===v&&!u)return;i.has(c)||i.set(c,c.line),c.line=v}else setTimeout(()=>{c.line=i.get(c)||"auto"},500)})},s=()=>{var l,d;r(n,(d=(l=this.mediaController)==null?void 0:l.hasAttribute(x.USER_INACTIVE))!=null&&d)},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!==n&&n?.removeEventListener("cuechange",s),n=u,n?.addEventListener("cuechange",s),r(n,Q(this,Kn))};o(),(t=this.textTracks)==null||t.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(x.USER_INACTIVE))==null||d;Q(this,Kn)!==u&&(Kt(this,Kn,u),r(n,Q(this,Kn)))})};var jm=class extends Mm{constructor(){super(),vt(this,ue),vt(this,Ao),vt(this,ko,!1),vt(this,wo,{}),vt(this,Kn,!0),vt(this,Io,new $E(this,"hotkeys")),vt(this,la,{...Gm,onCloseErrorDialog:t=>{var e;((e=t.composedPath()[0])==null?void 0:e.localName)==="media-error-dialog"&&fe(this,ue,qu).call(this,{isDialogOpen:!1})},onFocusInErrorDialog:t=>{var e;((e=t.composedPath()[0])==null?void 0:e.localName)==="media-error-dialog"&&(Eb(this,el.activeElement)||t.preventDefault())}}),Kt(this,Ao,Ju()),this.attachShadow({mode:"open"}),fe(this,ue,wb).call(this),this.isConnected&&fe(this,ue,En).call(this)}static get NAME(){return Ym}static get VERSION(){return Fm}static get observedAttributes(){var t;return[...(t=Mm.observedAttributes)!=null?t:[],...e0,...JE,...t0]}get mediaTheme(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("media-theme")}get mediaController(){var t,e;return(e=(t=this.mediaTheme)==null?void 0:t.shadowRoot)==null?void 0:e.querySelector("media-controller")}connectedCallback(){let t=this.media;t&&(t.metadata=Bm(this))}attributeChangedCallback(t,e,n){switch(fe(this,ue,En).call(this),super.attributeChangedCallback(t,e,n),t){case k.HOTKEYS:Q(this,Io).value=n;break;case k.THUMBNAIL_TIME:n!=null&&this.tokens.thumbnail&&tn(M("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").toString());break;case k.THUMBNAIL_TOKEN:if(n){let i=gi(n);if(i){let{aud:a}=i,r=lg;a!==r&&tn(M("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:a,expectedAud:r,tokenNamePrefix:"thumbnail"}))}}break;case k.STORYBOARD_TOKEN:if(n){let i=gi(n);if(i){let{aud:a}=i,r=dg;a!==r&&tn(M("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:a,expectedAud:r,tokenNamePrefix:"storyboard"}))}}break;case k.DRM_TOKEN:if(n){let i=gi(n);if(i){let{aud:a}=i,r=Cp;a!==r&&tn(M("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:a,expectedAud:r,tokenNamePrefix:"drm"}))}}break;case y.PLAYBACK_ID:n!=null&&n.includes("?token")&&Xe(M("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:n}));break;case y.STREAM_TYPE:n&&![j.LIVE,j.ON_DEMAND,j.UNKNOWN].includes(n)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=n.includes("dvr")?Number.POSITIVE_INFINITY:0:Tb({file:"invalid-stream-type.md",message:M("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):n===j.LIVE?this.getAttribute(k.TARGET_LIVE_WINDOW)==null&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN;break;case k.FULLSCREEN_ELEMENT:if(n!=null||n!==e){let i=el.getElementById(n),a=i?.querySelector("mux-player");this.mediaController&&i&&a&&(this.mediaController.fullscreenElement=i)}break;case y.CAP_RENDITION_TO_PLAYER_SIZE:(n==null||n!==e)&&(this.capRenditionToPlayerSize=n!=null||void 0)}[y.PLAYBACK_ID,Jt.SRC,k.PLAYBACK_TOKEN].includes(t)&&e!==n&&Kt(this,la,{...Q(this,la),...Gm}),fe(this,ue,Fn).call(this,{[VE(t)]:n})}async requestFullscreen(t){var e;if(this.mediaController&&!this.mediaController.hasAttribute(h.MEDIA_IS_FULLSCREEN))return(e=this.mediaController)==null||e.dispatchEvent(new $t.CustomEvent(R.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((n,i)=>{var a;(a=this.mediaController)==null||a.addEventListener(sn.MEDIA_IS_FULLSCREEN,()=>n(),{once:!0})})}async exitFullscreen(){var t;if(this.mediaController&&this.mediaController.hasAttribute(h.MEDIA_IS_FULLSCREEN))return(t=this.mediaController)==null||t.dispatchEvent(new $t.CustomEvent(R.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((e,n)=>{var i;(i=this.mediaController)==null||i.addEventListener(sn.MEDIA_IS_FULLSCREEN,()=>e(),{once:!0})})}get preferCmcd(){var t;return(t=this.getAttribute(y.PREFER_CMCD))!=null?t:void 0}set preferCmcd(t){t!==this.preferCmcd&&(t?Lo.includes(t)?this.setAttribute(y.PREFER_CMCD,t):tn(`Invalid value for preferCmcd. Must be one of ${Lo.join()}`):this.removeAttribute(y.PREFER_CMCD))}get hasPlayed(){var t,e;return(e=(t=this.mediaController)==null?void 0:t.hasAttribute(h.MEDIA_HAS_PLAYED))!=null&&e}get inLiveWindow(){var t;return(t=this.mediaController)==null?void 0:t.hasAttribute(h.MEDIA_TIME_IS_LIVE)}get _hls(){var t;return(t=this.media)==null?void 0:t._hls}get mux(){var t;return(t=this.media)==null?void 0:t.mux}get theme(){var t;return(t=this.getAttribute(k.THEME))!=null?t:"gerwig"}set theme(t){this.setAttribute(k.THEME,`${t}`)}get themeProps(){let t=this.mediaTheme;if(!t)return;let e={};for(let n of t.getAttributeNames()){if($u.includes(n))continue;let i=t.getAttribute(n);e[gb(n)]=i===""||i}return e}set themeProps(t){var e,n;fe(this,ue,En).call(this);let i={...this.themeProps,...t};for(let a in i){if($u.includes(a))continue;let r=t?.[a];typeof r=="boolean"||r==null?(e=this.mediaTheme)==null||e.toggleAttribute(Wu(a),!!r):(n=this.mediaTheme)==null||n.setAttribute(Wu(a),r)}}get playbackId(){var t;return(t=this.getAttribute(y.PLAYBACK_ID))!=null?t:void 0}set playbackId(t){t?this.setAttribute(y.PLAYBACK_ID,t):this.removeAttribute(y.PLAYBACK_ID)}get src(){var t,e;return this.playbackId?(t=Nn(this,Jt.SRC))!=null?t:void 0:(e=this.getAttribute(Jt.SRC))!=null?e:void 0}set src(t){t?this.setAttribute(Jt.SRC,t):this.removeAttribute(Jt.SRC)}get poster(){var t;let e=this.getAttribute(Jt.POSTER);if(e!=null)return e;let{tokens:n}=this;if(!n.playback||n.thumbnail)return this.playbackId&&!this.audio?((i,{token:a,customDomain:r=Dm,thumbnailTime:s,programTime:o}={})=>{var l;let d=a==null?s:void 0,{aud:u}=(l=gi(a))!=null?l:{};if(!a||u==="t")return`https://image.${r}/${i}/thumbnail.webp${Cm({token:a,time:d,program_time:o})}`})(this.playbackId,{customDomain:this.customDomain,thumbnailTime:(t=this.thumbnailTime)!=null?t:this.startTime,programTime:this.programStartTime,token:n.thumbnail}):void 0;tn("Missing expected thumbnail token. No poster image will be shown")}set poster(t){t||t===""?this.setAttribute(Jt.POSTER,t):this.removeAttribute(Jt.POSTER)}get storyboardSrc(){var t;return(t=this.getAttribute(k.STORYBOARD_SRC))!=null?t:void 0}set storyboardSrc(t){t?this.setAttribute(k.STORYBOARD_SRC,t):this.removeAttribute(k.STORYBOARD_SRC)}get storyboard(){let{tokens:t}=this;return this.storyboardSrc&&!t.storyboard?this.storyboardSrc:this.audio||!this.playbackId||!this.streamType||[j.LIVE,j.UNKNOWN].includes(this.streamType)||t.playback&&!t.storyboard?void 0:((e,{token:n,customDomain:i=Dm,programStartTime:a,programEndTime:r}={})=>{var s;let{aud:o}=(s=gi(n))!=null?s:{};if(!n||o==="s")return`https://image.${i}/${e}/storyboard.vtt${Cm({token:n,format:"webp",program_start_time:a,program_end_time:r})}`})(this.playbackId,{customDomain:this.customDomain,token:t.storyboard,programStartTime:this.programStartTime,programEndTime:this.programEndTime})}get audio(){return this.hasAttribute(k.AUDIO)}set audio(t){t?this.setAttribute(k.AUDIO,""):this.removeAttribute(k.AUDIO)}get hotkeys(){return Q(this,Io)}get nohotkeys(){return this.hasAttribute(k.NOHOTKEYS)}set nohotkeys(t){t?this.setAttribute(k.NOHOTKEYS,""):this.removeAttribute(k.NOHOTKEYS)}get thumbnailTime(){return ze(this.getAttribute(k.THUMBNAIL_TIME))}set thumbnailTime(t){this.setAttribute(k.THUMBNAIL_TIME,`${t}`)}get videoTitle(){var t,e;return(e=(t=this.getAttribute(k.VIDEO_TITLE))!=null?t:this.getAttribute(k.TITLE))!=null?e:""}set videoTitle(t){t!==this.videoTitle&&(t?this.setAttribute(k.VIDEO_TITLE,t):this.removeAttribute(k.VIDEO_TITLE))}get placeholder(){var t;return(t=Nn(this,k.PLACEHOLDER))!=null?t:""}set placeholder(t){this.setAttribute(k.PLACEHOLDER,`${t}`)}get primaryColor(){var t,e;let n=this.getAttribute(k.PRIMARY_COLOR);if(n!=null||this.mediaTheme&&(n=(e=(t=$t.getComputedStyle(this.mediaTheme))==null?void 0:t.getPropertyValue("--_primary-color"))==null?void 0:e.trim(),n))return n}set primaryColor(t){this.setAttribute(k.PRIMARY_COLOR,`${t}`)}get secondaryColor(){var t,e;let n=this.getAttribute(k.SECONDARY_COLOR);if(n!=null||this.mediaTheme&&(n=(e=(t=$t.getComputedStyle(this.mediaTheme))==null?void 0:t.getPropertyValue("--_secondary-color"))==null?void 0:e.trim(),n))return n}set secondaryColor(t){this.setAttribute(k.SECONDARY_COLOR,`${t}`)}get accentColor(){var t,e;let n=this.getAttribute(k.ACCENT_COLOR);if(n!=null||this.mediaTheme&&(n=(e=(t=$t.getComputedStyle(this.mediaTheme))==null?void 0:t.getPropertyValue("--_accent-color"))==null?void 0:e.trim(),n))return n}set accentColor(t){this.setAttribute(k.ACCENT_COLOR,`${t}`)}get defaultShowRemainingTime(){return this.hasAttribute(k.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(t){t?this.setAttribute(k.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(k.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(k.PLAYBACK_RATES))return this.getAttribute(k.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(t=>Number(t)).filter(t=>!Number.isNaN(t)).sort((t,e)=>t-e)}set playbackRates(t){t?this.setAttribute(k.PLAYBACK_RATES,t.join(" ")):this.removeAttribute(k.PLAYBACK_RATES)}get forwardSeekOffset(){var t;return(t=ze(this.getAttribute(k.FORWARD_SEEK_OFFSET)))!=null?t:10}set forwardSeekOffset(t){this.setAttribute(k.FORWARD_SEEK_OFFSET,`${t}`)}get backwardSeekOffset(){var t;return(t=ze(this.getAttribute(k.BACKWARD_SEEK_OFFSET)))!=null?t:10}set backwardSeekOffset(t){this.setAttribute(k.BACKWARD_SEEK_OFFSET,`${t}`)}get defaultHiddenCaptions(){return this.hasAttribute(k.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(t){t?this.setAttribute(k.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(k.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return ze(this.getAttribute(k.DEFAULT_DURATION))}set defaultDuration(t){t==null?this.removeAttribute(k.DEFAULT_DURATION):this.setAttribute(k.DEFAULT_DURATION,`${t}`)}get playerInitTime(){return this.hasAttribute(y.PLAYER_INIT_TIME)?ze(this.getAttribute(y.PLAYER_INIT_TIME)):Q(this,Ao)}set playerInitTime(t){t!=this.playerInitTime&&(t==null?this.removeAttribute(y.PLAYER_INIT_TIME):this.setAttribute(y.PLAYER_INIT_TIME,""+ +t))}get playerSoftwareName(){var t;return(t=this.getAttribute(y.PLAYER_SOFTWARE_NAME))!=null?t:Ym}get playerSoftwareVersion(){var t;return(t=this.getAttribute(y.PLAYER_SOFTWARE_VERSION))!=null?t:Fm}get beaconCollectionDomain(){var t;return(t=this.getAttribute(y.BEACON_COLLECTION_DOMAIN))!=null?t:void 0}set beaconCollectionDomain(t){t!==this.beaconCollectionDomain&&(t?this.setAttribute(y.BEACON_COLLECTION_DOMAIN,t):this.removeAttribute(y.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var t;return(t=this.getAttribute(y.MAX_RESOLUTION))!=null?t:void 0}set maxResolution(t){t!==this.maxResolution&&(t?this.setAttribute(y.MAX_RESOLUTION,t):this.removeAttribute(y.MAX_RESOLUTION))}get minResolution(){var t;return(t=this.getAttribute(y.MIN_RESOLUTION))!=null?t:void 0}set minResolution(t){t!==this.minResolution&&(t?this.setAttribute(y.MIN_RESOLUTION,t):this.removeAttribute(y.MIN_RESOLUTION))}get maxAutoResolution(){var t;return(t=this.getAttribute(y.MAX_AUTO_RESOLUTION))!=null?t:void 0}set maxAutoResolution(t){t==null?this.removeAttribute(y.MAX_AUTO_RESOLUTION):this.setAttribute(y.MAX_AUTO_RESOLUTION,t)}get renditionOrder(){var t;return(t=this.getAttribute(y.RENDITION_ORDER))!=null?t:void 0}set renditionOrder(t){t!==this.renditionOrder&&(t?this.setAttribute(y.RENDITION_ORDER,t):this.removeAttribute(y.RENDITION_ORDER))}get programStartTime(){return ze(this.getAttribute(y.PROGRAM_START_TIME))}set programStartTime(t){t==null?this.removeAttribute(y.PROGRAM_START_TIME):this.setAttribute(y.PROGRAM_START_TIME,`${t}`)}get programEndTime(){return ze(this.getAttribute(y.PROGRAM_END_TIME))}set programEndTime(t){t==null?this.removeAttribute(y.PROGRAM_END_TIME):this.setAttribute(y.PROGRAM_END_TIME,`${t}`)}get assetStartTime(){return ze(this.getAttribute(y.ASSET_START_TIME))}set assetStartTime(t){t==null?this.removeAttribute(y.ASSET_START_TIME):this.setAttribute(y.ASSET_START_TIME,`${t}`)}get assetEndTime(){return ze(this.getAttribute(y.ASSET_END_TIME))}set assetEndTime(t){t==null?this.removeAttribute(y.ASSET_END_TIME):this.setAttribute(y.ASSET_END_TIME,`${t}`)}get extraSourceParams(){return this.hasAttribute(k.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(k.EXTRA_SOURCE_PARAMS)).entries()].reduce((t,[e,n])=>(t[e]=n,t),{}):n0}set extraSourceParams(t){t==null?this.removeAttribute(k.EXTRA_SOURCE_PARAMS):this.setAttribute(k.EXTRA_SOURCE_PARAMS,new URLSearchParams(t).toString())}get customDomain(){var t;return(t=this.getAttribute(y.CUSTOM_DOMAIN))!=null?t:void 0}set customDomain(t){t!==this.customDomain&&(t?this.setAttribute(y.CUSTOM_DOMAIN,t):this.removeAttribute(y.CUSTOM_DOMAIN))}get envKey(){var t;return(t=Nn(this,y.ENV_KEY))!=null?t:void 0}set envKey(t){this.setAttribute(y.ENV_KEY,`${t}`)}get noVolumePref(){return this.hasAttribute(k.NO_VOLUME_PREF)}set noVolumePref(t){t?this.setAttribute(k.NO_VOLUME_PREF,""):this.removeAttribute(k.NO_VOLUME_PREF)}get noMutedPref(){return this.hasAttribute(k.NO_MUTED_PREF)}set noMutedPref(t){t?this.setAttribute(k.NO_MUTED_PREF,""):this.removeAttribute(k.NO_MUTED_PREF)}get debug(){return Nn(this,y.DEBUG)!=null}set debug(t){t?this.setAttribute(y.DEBUG,""):this.removeAttribute(y.DEBUG)}get disableTracking(){return Nn(this,y.DISABLE_TRACKING)!=null}set disableTracking(t){this.toggleAttribute(y.DISABLE_TRACKING,!!t)}get disableCookies(){return Nn(this,y.DISABLE_COOKIES)!=null}set disableCookies(t){t?this.setAttribute(y.DISABLE_COOKIES,""):this.removeAttribute(y.DISABLE_COOKIES)}get streamType(){var t,e,n;return(n=(e=this.getAttribute(y.STREAM_TYPE))!=null?e:(t=this.media)==null?void 0:t.streamType)!=null?n:j.UNKNOWN}set streamType(t){this.setAttribute(y.STREAM_TYPE,`${t}`)}get defaultStreamType(){var t,e,n;return(n=(e=this.getAttribute(k.DEFAULT_STREAM_TYPE))!=null?e:(t=this.mediaController)==null?void 0:t.getAttribute(k.DEFAULT_STREAM_TYPE))!=null?n:j.ON_DEMAND}set defaultStreamType(t){t?this.setAttribute(k.DEFAULT_STREAM_TYPE,t):this.removeAttribute(k.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var t,e;return this.hasAttribute(k.TARGET_LIVE_WINDOW)?+this.getAttribute(k.TARGET_LIVE_WINDOW):(e=(t=this.media)==null?void 0:t.targetLiveWindow)!=null?e:Number.NaN}set targetLiveWindow(t){t==this.targetLiveWindow||Number.isNaN(t)&&Number.isNaN(this.targetLiveWindow)||(t==null?this.removeAttribute(k.TARGET_LIVE_WINDOW):this.setAttribute(k.TARGET_LIVE_WINDOW,""+ +t))}get liveEdgeStart(){var t;return(t=this.media)==null?void 0:t.liveEdgeStart}get startTime(){return ze(Nn(this,y.START_TIME))}set startTime(t){this.setAttribute(y.START_TIME,`${t}`)}get preferPlayback(){let t=this.getAttribute(y.PREFER_PLAYBACK);if(t===wr||t===Ir)return t}set preferPlayback(t){t!==this.preferPlayback&&(t===wr||t===Ir?this.setAttribute(y.PREFER_PLAYBACK,t):this.removeAttribute(y.PREFER_PLAYBACK))}get metadata(){var t;return(t=this.media)==null?void 0:t.metadata}set metadata(t){fe(this,ue,En).call(this),this.media?this.media.metadata={...Bm(this),...t}:Xe("underlying media element missing when trying to set metadata. metadata will not be set.")}get _hlsConfig(){var t;return(t=this.media)==null?void 0:t._hlsConfig}set _hlsConfig(t){fe(this,ue,En).call(this),this.media?this.media._hlsConfig=t:Xe("underlying media element missing when trying to set _hlsConfig. _hlsConfig will not be set.")}async addCuePoints(t){var e;if(fe(this,ue,En).call(this),this.media)return(e=this.media)==null?void 0:e.addCuePoints(t);Xe("underlying media element missing when trying to addCuePoints. cuePoints will not be added.")}get activeCuePoint(){var t;return(t=this.media)==null?void 0:t.activeCuePoint}get cuePoints(){var t,e;return(e=(t=this.media)==null?void 0:t.cuePoints)!=null?e:[]}addChapters(t){var e;if(fe(this,ue,En).call(this),this.media)return(e=this.media)==null?void 0:e.addChapters(t);Xe("underlying media element missing when trying to addChapters. chapters will not be added.")}get activeChapter(){var t;return(t=this.media)==null?void 0:t.activeChapter}get chapters(){var t,e;return(e=(t=this.media)==null?void 0:t.chapters)!=null?e:[]}getStartDate(){var t;return(t=this.media)==null?void 0:t.getStartDate()}get currentPdt(){var t;return(t=this.media)==null?void 0:t.currentPdt}get tokens(){let t=this.getAttribute(k.PLAYBACK_TOKEN),e=this.getAttribute(k.DRM_TOKEN),n=this.getAttribute(k.THUMBNAIL_TOKEN),i=this.getAttribute(k.STORYBOARD_TOKEN);return{...Q(this,wo),...t!=null?{playback:t}:{},...e!=null?{drm:e}:{},...n!=null?{thumbnail:n}:{},...i!=null?{storyboard:i}:{}}}set tokens(t){Kt(this,wo,t??{})}get playbackToken(){var t;return(t=this.getAttribute(k.PLAYBACK_TOKEN))!=null?t:void 0}set playbackToken(t){this.setAttribute(k.PLAYBACK_TOKEN,`${t}`)}get drmToken(){var t;return(t=this.getAttribute(k.DRM_TOKEN))!=null?t:void 0}set drmToken(t){this.setAttribute(k.DRM_TOKEN,`${t}`)}get thumbnailToken(){var t;return(t=this.getAttribute(k.THUMBNAIL_TOKEN))!=null?t:void 0}set thumbnailToken(t){this.setAttribute(k.THUMBNAIL_TOKEN,`${t}`)}get storyboardToken(){var t;return(t=this.getAttribute(k.STORYBOARD_TOKEN))!=null?t:void 0}set storyboardToken(t){this.setAttribute(k.STORYBOARD_TOKEN,`${t}`)}addTextTrack(t,e,n,i){var a;let r=(a=this.media)==null?void 0:a.nativeEl;if(r)return zu(r,t,e,n,i)}removeTextTrack(t){var e;let n=(e=this.media)==null?void 0:e.nativeEl;if(n)return function(i,a){let r=Array.prototype.find.call(i.querySelectorAll("track"),s=>s.track===a);r?.remove()}(n,t)}get textTracks(){var t;return(t=this.media)==null?void 0:t.textTracks}get castReceiver(){var t;return(t=this.getAttribute(k.CAST_RECEIVER))!=null?t:void 0}set castReceiver(t){t!==this.castReceiver&&(t?this.setAttribute(k.CAST_RECEIVER,t):this.removeAttribute(k.CAST_RECEIVER))}get castCustomData(){var t;return(t=this.media)==null?void 0:t.castCustomData}set castCustomData(t){this.media?this.media.castCustomData=t:Xe("underlying media element missing when trying to set castCustomData. castCustomData will not be set.")}get noTooltips(){return this.hasAttribute(k.NO_TOOLTIPS)}set noTooltips(t){t?this.setAttribute(k.NO_TOOLTIPS,""):this.removeAttribute(k.NO_TOOLTIPS)}get proudlyDisplayMuxBadge(){return this.hasAttribute(k.PROUDLY_DISPLAY_MUX_BADGE)}set proudlyDisplayMuxBadge(t){t?this.setAttribute(k.PROUDLY_DISPLAY_MUX_BADGE,""):this.removeAttribute(k.PROUDLY_DISPLAY_MUX_BADGE)}get capRenditionToPlayerSize(){var t;return(t=this.media)==null?void 0:t.capRenditionToPlayerSize}set capRenditionToPlayerSize(t){this.media?this.media.capRenditionToPlayerSize=t:Xe("underlying media element missing when trying to set capRenditionToPlayerSize")}},Ib=class{addEventListener(){}removeEventListener(){}dispatchEvent(t){return!0}};if(typeof DocumentFragment>"u"){class t extends Ib{}globalThis.DocumentFragment=t}var i0=class extends Ib{},a0={customElements:{get(t){},define(t,e,n){},getName:t=>null,upgrade(t){},whenDefined:t=>Promise.resolve(i0)}},td=typeof window>"u"||globalThis.customElements===void 0?a0:globalThis;td.customElements.get("mux-player")||(td.customElements.define("mux-player",jm),td.MuxPlayerElement=jm);var Qm=parseInt(yr.version)>=19,zm={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},r0=(t={})=>{let{ref:e,...n}=t;return Object.entries(n).reduce((i,[a,r])=>{let s=((l,d)=>{if(Qm||typeof d!="boolean"||d){if(((u,c)=>!(m=>m==null)(c)&&u in c)(l,zm))return zm[l];if(d!==void 0)return/[A-Z]/.test(l)?(u=>u.replace(/[A-Z]/g,c=>`-${c.toLowerCase()}`))(l):l}})(a,r);if(!s)return i;let o=(l=>Qm||typeof l!="boolean"?l:"")(r);return i[s]=o,i},{})};function Zm(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function s0(...t){return _r.useCallback(function(...e){return n=>{let i=!1,a=e.map(r=>{let s=Zm(r,n);return!i&&typeof s=="function"&&(i=!0),s});if(i)return()=>{for(let r=0;r<a.length;r++){let s=a[r];typeof s=="function"?s():Zm(e[r],null)}}}}(...t),t)}var o0=Object.prototype.hasOwnProperty,Sb=(t,e,n)=>!((i,a)=>{if(Object.is(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;if(Array.isArray(i))return!(!Array.isArray(a)||i.length!==a.length)&&i.some((o,l)=>a[l]===o);let r=Object.keys(i),s=Object.keys(a);if(r.length!==s.length)return!1;for(let o=0;o<r.length;o++)if(!o0.call(a,r[o])||!Object.is(i[r[o]],a[r[o]]))return!1;return!0})(e,t[n]),l0=(t,e,n)=>{t[n]=e},kt=(t,e,n,i=l0,a=Sb)=>_r.useEffect(()=>{let r=n?.current;r&&a(r,e,t)&&i(r,e,t)},[n?.current,e]),d0=(()=>{try{return"3.11.4"}catch{}return"UNKNOWN"})(),se=(t,e,n)=>_r.useEffect(()=>{let i=e?.current;if(!i||!n)return;let a=t,r=n;return i.addEventListener(a,r),()=>{i.removeEventListener(a,r)}},[e?.current,n,t]),u0=yr.forwardRef(({children:t,...e},n)=>yr.createElement("mux-player",{suppressHydrationWarning:!0,...r0(e),ref:n},t)),c0=d0,h0="mux-player-react",y0=yr.forwardRef((t,e)=>{var n;let i=_r.useRef(null),a=s0(i,e),[r]=((o,l)=>{let{onAbort:d,onCanPlay:u,onCanPlayThrough:c,onEmptied:m,onLoadStart:p,onLoadedData:v,onLoadedMetadata:b,onProgress:f,onDurationChange:T,onVolumeChange:A,onRateChange:E,onResize:_,onWaiting:w,onPlay:I,onPlaying:D,onTimeUpdate:V,onPause:q,onSeeking:Y,onSeeked:re,onStalled:oe,onSuspend:J,onEnded:ee,onError:Ne,onCuePointChange:He,onChapterChange:Ee,metadata:de,tokens:Ke,paused:Gt,playbackId:jt,playbackRates:Et,currentTime:yt,themeProps:We,extraSourceParams:Oe,castCustomData:oi,_hlsConfig:Dn,...Dr}=l;return kt("tokens",Ke,o),kt("playbackId",jt,o),kt("playbackRates",Et,o),kt("metadata",de,o),kt("extraSourceParams",Oe,o),kt("_hlsConfig",Dn,o),kt("themeProps",We,o),kt("castCustomData",oi,o),kt("paused",Gt,o,(lt,_t)=>{_t!=null&&(_t?lt.pause():lt.play())},(lt,_t,pa)=>!(lt.hasAttribute("autoplay")&&!lt.hasPlayed)&&Sb(lt,_t,pa)),kt("currentTime",yt,o,(lt,_t)=>{_t!=null&&(lt.currentTime=_t)}),se("abort",o,d),se("canplay",o,u),se("canplaythrough",o,c),se("emptied",o,m),se("loadstart",o,p),se("loadeddata",o,v),se("loadedmetadata",o,b),se("progress",o,f),se("durationchange",o,T),se("volumechange",o,A),se("ratechange",o,E),se("resize",o,_),se("waiting",o,w),se("play",o,I),se("playing",o,D),se("timeupdate",o,V),se("pause",o,q),se("seeking",o,Y),se("seeked",o,re),se("stalled",o,oe),se("suspend",o,J),se("ended",o,ee),se("error",o,Ne),se("cuepointchange",o,He),se("chapterchange",o,Ee),[Dr]})(i,t),[s]=_r.useState((n=t.playerInitTime)!=null?n:Ju());return yr.createElement(u0,{ref:a,defaultHiddenCaptions:t.defaultHiddenCaptions,playerSoftwareName:h0,playerSoftwareVersion:c0,playerInitTime:s,...r})});export{f0 as MaxResolution,C as MediaError,g0 as MinResolution,E0 as RenditionOrder,y0 as default,Ju as generatePlayerInitTime,h0 as playerSoftwareName,c0 as playerSoftwareVersion};
|