@zeniai/web-cockpit-ui 1.15.68-prod → 2.0.0-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/Preview-C3kztGrG.js +1 -0
- package/dist/assets/ScreenRoutes-5hC3wQD-.js +179 -0
- package/dist/assets/SignInScreen-Bw3kDJOY.js +1 -0
- package/dist/assets/{analytics-D0xbCiOA.js → analytics-Ci62SVC6.js} +15 -15
- package/dist/assets/analyticsHelper-DvZ4fRLz.js +1 -0
- package/dist/assets/{core-VVne9A9m.js → core-CrJ0HRkP.js} +2 -2
- package/dist/assets/{dash.all.min-CZdKQs3q.js → dash.all.min-BC3O3eK3.js} +1 -1
- package/dist/assets/{empty-BxIsRmiL.js → empty-DCdjTxMk.js} +1 -1
- package/dist/assets/{index-CW-pqTwR.js → empty-DewRN75u.js} +1 -1
- package/dist/assets/epic-ButtTfPO.js +2 -0
- package/dist/assets/{index-D0xGm0tM.js → index-BHVDlT_9.js} +1 -1
- package/dist/assets/{index-0sfOIAIW.js → index-BIzFhK6B.js} +1 -1
- package/dist/assets/index-BnSSVzJm.js +1 -0
- package/dist/assets/index-C1011MmK.js +2 -0
- package/dist/assets/index-CS2xkLsB.js +1 -0
- package/dist/assets/index-DrEiJ4Wx.js +1 -0
- package/dist/assets/index-Obh2uEoj.js +75311 -0
- package/dist/assets/{lexical-0vG0lfLn.js → lexical-Y1MbDrft.js} +1 -1
- package/dist/assets/{liveblocks-abv8TgYe.js → liveblocks-CH5Ytl_r.js} +1 -1
- package/dist/assets/{lottie-DehW2chz.js → lottie-jJKhsKLZ.js} +2 -2
- package/dist/assets/{mui-DOS4CfBc.js → mui-DzLLS9Rs.js} +2 -2
- package/dist/assets/{react-C3bwNlEv.js → react-9Kj1B1wt.js} +2 -2
- package/dist/assets/{react-0muarBdd.js → react-BLe964tg.js} +3 -3
- package/dist/assets/{react-DGIuy5RW.js → react-CNU9DWBw.js} +1 -1
- package/dist/assets/{react-DGupjeTm.js → react-C_qk_SxL.js} +2 -2
- package/dist/assets/{react-BX1V71Rc.js → react-CdND5srH.js} +2 -2
- package/dist/assets/{react-BKlbvdVi.js → react-D1VJKwtS.js} +2 -2
- package/dist/assets/{react-BQ6Phht1.js → react-D1lzTawy.js} +2 -2
- package/dist/assets/{react-Bf7WBvpI.js → react-DRO7qhGA.js} +4 -4
- package/dist/assets/{recharts-BBlqu8Rz.js → recharts-DE-kxplH.js} +25 -25
- package/dist/assets/{sentry-DBhcw6Be.js → sentry-SNkBC2Al.js} +2 -2
- package/dist/assets/{url-CSfgHOtI.js → url-C9VCVVAZ.js} +1 -1
- package/dist/assets/url-h1qG-NI4.js +1 -0
- package/dist/assets/{utils-DT6Wq-eT.js → utils-CpsqBQqv.js} +1 -1
- package/dist/assets/zeni-epic-state-B7yJI5lR.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-B5qIuZya-DM7YY1FB.js +0 -21
- package/dist/assets/AIPerformancePage-BHB45mP--CWndWSdC.js +0 -539
- package/dist/assets/AccountInfoPage-Cd5xYT1g-BbefpV-7.js +0 -18
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-5M9LxJhG.js +0 -149
- package/dist/assets/AccountLockedInfoModal-Dox7IuAX-BMD0s6gP.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-Bqty08m0-B-ibKIL7.js +0 -239
- package/dist/assets/AccountRow-D1cjRJJD-brXv0bxV.js +0 -298
- package/dist/assets/AccountsPromoCardStack-Bs3naJHM-CnqFEGey.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-C4r6mehv.js +0 -6
- package/dist/assets/AddToWalletPage-CyRfqVDB-BdTdHS85.js +0 -344
- package/dist/assets/AgingReportsPage-xBFff3BM-ky-EAGcf.js +0 -79
- package/dist/assets/AllUserItems-BJf6WPDo-Deh60Xs6.js +0 -192
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-Drme0iaF.js +0 -46
- package/dist/assets/AppBasePage-CqDm-hnV-gy7t8mSc.js +0 -71
- package/dist/assets/AppDrawerContent-CVVWj66i-CgQm4R5E.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-CdSeUeuR.js +0 -47
- package/dist/assets/ArAgingChart-CBsqOd-4-CM7YnEql.js +0 -24
- package/dist/assets/ArAgingDetailPage-i7JObt60-DiaDa_kU.js +0 -46
- package/dist/assets/AttachmentView-CzC4skJ3-DSp7S_ow.js +0 -101
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B0jviFnz.js +0 -38
- package/dist/assets/BankAccountSection-Di4sF52j-CjUG2k4c.js +0 -79
- package/dist/assets/BankAccountWarningSection-Cled-2cR-DDIv4R5M.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-Ccnzq7st-BhXmaxPm.js +0 -425
- package/dist/assets/BillDetailPage-XXOwBfO1-DxWLoxsB.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-D62XtRWM.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-COCypDcS-CxH1-1ro.js +0 -241
- package/dist/assets/BillPayPromoPage-DOE2YIqC-BRNhZmcV.js +0 -84
- package/dist/assets/BillPaySetUpPage-BCJbZDsV-EdWAn7sO.js +0 -42
- package/dist/assets/BillingSettingsPage-iImtlEmO-oLToelCa.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B11GWM_0-BmGfxE4w.js +0 -1
- package/dist/assets/BoxItem-Bxa1M4QU-CY-vorJI.js +0 -53
- package/dist/assets/BusinessVerificationPage-DSuJFoW1-Xi-gZLue.js +0 -138
- package/dist/assets/CardNumberSubText-_ZZbaz_k-BDqMr1hm.js +0 -21
- package/dist/assets/CashbackDetailPage-DAZXitLt-kEgVWuyi.js +0 -285
- package/dist/assets/ChargeCardDetailPage-B1VIpASk-BGlRije7.js +0 -1467
- package/dist/assets/ChargeCardListPage-BOBepN-x-DtybfgKA.js +0 -412
- package/dist/assets/ChargeCardListTable-YznzSsJo-DoULf2wO.js +0 -711
- package/dist/assets/ChargeCardPaymentHistoryPage--jOwsMla-Bzj0wTwy.js +0 -565
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-BNvT1cxv.js +0 -222
- package/dist/assets/ChargeCardSetupPage-0bpVkeJs-Bkuwwfuy.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-ChWyQlw6-CbdQ3AHt.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-kNVwtOWy.js +0 -206
- package/dist/assets/CollapsableReportTable-DNfFkAts-cgYLh83Q.js +0 -2982
- package/dist/assets/CompanyOfficerDetailsSection-CrOIN4IW-B9X3JGYF.js +0 -331
- package/dist/assets/CompanyPassportCard-CkzYFTrp-BcZUZqNN.js +0 -42
- package/dist/assets/CompanyPassportPage-FE6yli6h-DWhiSjrR.js +0 -417
- package/dist/assets/CompleteProfile-Cb8i1XgZ-BP6okX49.js +0 -52
- package/dist/assets/ConfettiBurst-BZCXEGYA-ho8ERS31.js +0 -1
- package/dist/assets/ConstrainedInnerElement-CgdnMeoA-Cv85URYx.js +0 -5
- package/dist/assets/CreateOrEditVendorPage-CzpSgxbO-2ilw068v.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-c_q0MsSO-CoTzu5XT.js +0 -227
- package/dist/assets/CurrencySelectField-BAh7SHrG-CBSRpu74.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-f3Aa6E5r-DcPBpEPv.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-DAhlgLSo.js +0 -1
- package/dist/assets/CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DBRyrBpA.js +0 -162
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-ui07nfsA.js +0 -66
- package/dist/assets/CustomerOnboardingPage-B9hSO88_-BFSPGucc.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CG0HKCpQ-CTl3yjRz.js +0 -202
- package/dist/assets/Dashboard-BJ_oIHab-nrsDE6qS.js +0 -1611
- package/dist/assets/DashboardReportPage-BemzMw2e-D89HJr4G.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-Dlhefpu7.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-BDRqwizb.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-DIdaGFeH.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-kEBCfOTM.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-xWfuT0Vo.js +0 -439
- package/dist/assets/DrawerPage-DesxXhZk-CRre4dYu.js +0 -118
- package/dist/assets/EditPeoplePage-QvPy_Six-DH4hfGb_.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-DXyrjaYc.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-5oCAhXWK.js +0 -18
- package/dist/assets/EntitySummarySection-BwX0a4JL-zcla-D8w.js +0 -151
- package/dist/assets/ExpenseAutomationOverviewPage-EdyHjbff-MnqvBISM.js +0 -281
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-D083tvHO.js +0 -3001
- package/dist/assets/ExpressPayPage-EMP6inpX-3XG4gLSI.js +0 -168
- package/dist/assets/FeaturePreviewPage-SYJm-3aR-DqyedTbe.js +0 -11
- package/dist/assets/FollowStepsSection-BxESVqJD-Cg2jHWRs.js +0 -390
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-D3OrFPtp.js +0 -291
- package/dist/assets/InformationCardStack-B_qQUEYD-DttLY3HS.js +0 -31
- package/dist/assets/InsightsCardStack-BsQzoVzj-Dk9dJ9p5.js +0 -79
- package/dist/assets/InsightsSection-B6CNlTNH-BdZRn5zX.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-DP6fAccq-LBB3bZYV.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-CfZjD-fy.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-DC50drx7.js +0 -65
- package/dist/assets/InviteFormPage-DN02jRy5-Buy4T1zp.js +0 -312
- package/dist/assets/InvitePageListView-CP4K9tJi-CHkbuC7f.js +0 -739
- package/dist/assets/InvitePeoplePage-VTM6kM1u-CU4p_G8a.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-XsZhHn3v.js +0 -140
- package/dist/assets/IssueChargeCardPage-CVfuvGey-C6KQpSo7.js +0 -532
- package/dist/assets/LabeledAddressValue-DDrQcHIE-hP7vwQBZ.js +0 -49
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-DFe8vIUL.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-CU-iLMSG.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-BYYjzwUG-DXWiTuV-.js +0 -237
- package/dist/assets/LabeledCreatableSingleSelectField-CISYMojq-DqRsgtUm.js +0 -208
- package/dist/assets/LabeledDocumentField-C_bcFxdY-DJ7-SOXf.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-mVsgmCkO.js +0 -59
- package/dist/assets/LabeledText-C8Y7EOsX-DEEaYkeb.js +0 -42
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D4KRCLOC.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-BZtreVpj-D7w5kOCp.js +0 -297
- package/dist/assets/LinkJETransactionPage-CKq4oiX9-ltE4XV_6.js +0 -98
- package/dist/assets/LockCardPage-CZENNby7-BsVSJBxy.js +0 -623
- package/dist/assets/LowBalancePopup-1727S1ri-Ch0sQQf3.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu--EXqRjnH.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DyDKS580.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BwOG2bc6.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-BLATYjDj.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CARU1oLQ-B0cyw7Mk.js +0 -17
- package/dist/assets/MailingDetailsSection-ByOPaJ05-DHEttRbi.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BdgIIhL1-Dxh6kCPM.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-ClsHkhfI.js +0 -6
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-CkZmnWdK.js +0 -85
- package/dist/assets/NavBarWithPicker-CGGEvLwe-DZ7VBJBK.js +0 -30
- package/dist/assets/NavigationArrow-CTNkKUtV-DwVtEjKU.js +0 -47
- package/dist/assets/NavigationDots-Dvce3gHt-BhNbY-Jn.js +0 -15
- package/dist/assets/NewGlobalMerchantPage-D_f7z47T-CFtXtRiH.js +0 -160
- package/dist/assets/NoDataChart-CrKeqWSr-DnRwd0s-.js +0 -26
- package/dist/assets/NoDataTable-4vPXmPYF-0AXx0isj.js +0 -8
- package/dist/assets/NotFoundPage-BLWPU1wU-DmwpjiFz.js +0 -46
- package/dist/assets/NotificationSettingsPage-CDiDLX3A-9UeXvRF4.js +0 -163
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-CViBSk1u.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-DO1DVf8y.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-BYZguWNQ.js +0 -100
- package/dist/assets/OverlayContainerPage-BG9y5C0t-XSUpPkb1.js +0 -11
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DADbKlaU.js +0 -123
- package/dist/assets/PaymentAccountSetupBillingAddressSection-9ma8SpIa-DnLcaoHi.js +0 -107
- package/dist/assets/PeoplePage-b5_I0qOw-DREebsk9.js +0 -727
- package/dist/assets/Preview-DkS-Ppwi.js +0 -1
- package/dist/assets/ProductsCarousel-C3M0ocdF-CqKUYrUp.js +0 -142
- package/dist/assets/PromoBaseCards-BOGJI2ws-HYGeFCqU.js +0 -218
- package/dist/assets/QBOConnectionDialog-CmpnnuzP-5mKGNZm7.js +0 -51
- package/dist/assets/QBOSetupSection-DjnN9dgv-D9sOi7j3.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-CSFmXSBt.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-BsCTIqUJ-BciPnq07.js +0 -243
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-CCn1M_IM.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CyEgwqcf-QZKK6RXF.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-RETPkEQd-7RlERPSK.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-B6Bppczb.js +0 -1
- package/dist/assets/ReloadCard-Bdoo0XiI-BkT_TrPt.js +0 -26
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-BcXnhDrl.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-C7yXcceR.js +0 -269
- package/dist/assets/RevenueChart-DvyZ3aO7-ln4Xbq3A.js +0 -280
- package/dist/assets/ReviewDetailsPage-BIMg1n2e-DlA-53yQ.js +0 -290
- package/dist/assets/ReviewOverlay-CxwoiOLC-DmcvjVCl.js +0 -152
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-BKP6CsTd.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-DCavU86U.js +0 -37
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-CO7mo75a.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-i-4DMkvc.js +0 -326
- package/dist/assets/ScreenRoutes-D-ddKpF8.js +0 -179
- package/dist/assets/SetUpAccountSection-CctbMmoK-ZyErAiPF.js +0 -378
- package/dist/assets/SignIn-CmgmnRm4-DBoFBrvr.js +0 -491
- package/dist/assets/SignInScreen-DCSGviBr.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-dAFL_Ppz.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-C-kqNTci-Udt5CTX9.js +0 -754
- package/dist/assets/SpendManagementSection-CIz4nE_w-0q2VpGOz.js +0 -246
- package/dist/assets/StatementItem-vVtoBN2w-CiKnbbLX.js +0 -31
- package/dist/assets/StatementsPage-As5WOnMR-D0_TDe23.js +0 -58
- package/dist/assets/StatusSwitcher-Bv-ozN6U-Uu-9K_ZT.js +0 -120
- package/dist/assets/SubTabSwitcher-D7QeM6nb-Cvhnug-S.js +0 -58
- package/dist/assets/SummaryCard-C2qoTsAY-AZ17zAeW.js +0 -1
- package/dist/assets/TaskManagementPage-BJwp32Ph-DTb1_fWh.js +0 -508
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-DMLJ4CgT.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-B7dPmR3A.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-BDMDYsLj.js +0 -53
- package/dist/assets/TopExCard-Z1WabZ8c-D9ahLOhN.js +0 -38
- package/dist/assets/TopExDetailPage-CzHG4f9E-DSsiHUw6.js +0 -132
- package/dist/assets/TransactionActivityLogPage-CGKnjNfU-DFi44yxk.js +0 -195
- package/dist/assets/TransactionDetailPage-1-mLOWSz-NZ0pEK8W.js +0 -903
- package/dist/assets/TransactionList-BB-xoIGm-CmL2sv-k.js +0 -153
- package/dist/assets/TransactionListBig-C5Sf5Xh--DUDOs_q9.js +0 -284
- package/dist/assets/TransactionListPage-Cj7h1Ros-BpKazEVH.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-SsrSOk3O-BLmQC0O2.js +0 -80
- package/dist/assets/TransferDrawerPage-BvKZ7vHF-BDZmQek2.js +0 -362
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-BGYjEWMJ.js +0 -725
- package/dist/assets/TreasuryPromoPage-CtTFvSQW-B3Bvdh6x.js +0 -505
- package/dist/assets/TreasuryStatementsPage-Catz8shX-X_IYs6qa.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-Da9lGvIi.js +0 -58
- package/dist/assets/TrendChart-Bnp4Pcdf-CJF7dKdP.js +0 -16
- package/dist/assets/TrendWithTransactions-3D1FvM8G-TXKeFcvZ.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DbyY-dYB-D1dmyVJ4.js +0 -244
- package/dist/assets/UnitIntegrationPage-CTzme1te-CbgSnbxZ.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-PlCykjL7.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-aIJ1NUXW.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-D-OOHJou.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-De2XcUb6.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BdL3didN.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-himC7iD3-C2XAIK9H.js +0 -175
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-DDAQwDZy.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-CS595Xgc-C3mHhbHk.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-C2v0qs8u.js +0 -1
- package/dist/assets/VendorsAccountsSection-CgSJu8wq-Ctj2nPMI.js +0 -68
- package/dist/assets/VerifyDevice-Dvf0JsNN-PRfKusRx.js +0 -112
- package/dist/assets/VideoPlayer-VAzOGCDL-6U91k2_g.js +0 -78
- package/dist/assets/VideoPopup-BqvZ-XIh-nZFpm96A.js +0 -31
- package/dist/assets/WarningsDrawerPage-DeNonoNp-Cer8JJKy.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BghGtTMM.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-D-GLBesW.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-2vSHgl5n.js +0 -33
- package/dist/assets/ZeniAccountPromoPage-JrcedQYB-DxQZiNCa.js +0 -184
- package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-CCXkWEma.js +0 -36
- package/dist/assets/ZeniCopyright-DglqrTpl-B_6mXo3q.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-Dri2Vqf1.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-2lJ5O5xD.js +0 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +0 -1
- package/dist/assets/analyticsHelper-B3H0U8CW.js +0 -1
- package/dist/assets/analyticsHelper-CAYdbjhS-Bgy1SJeR.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-CH2rCMd8.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-Bwf-jWRn.js +0 -1
- package/dist/assets/chartTypes-CD3vrBsI-CxjFANZl.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-C8J13a8y.js +0 -1
- package/dist/assets/commonTypes-5tEXwrX4-DThfJWJu.js +0 -1
- package/dist/assets/constants-B4Nwm03n.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-IRIi2izs.js +0 -1
- package/dist/assets/empty-B6p9RErG.js +0 -1
- package/dist/assets/epic-CPlQ2CFE.js +0 -2
- package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +0 -1
- package/dist/assets/gift-box-Cmt9OgIZ-CmAMj3r2.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-Db5RbWJE.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-BEpZ9Tqr.js +0 -1
- package/dist/assets/handshake-BPg58FML-6UbFX0a-.js +0 -1
- package/dist/assets/helper-Ckm10Uko-DCD3fpXN.js +0 -223
- package/dist/assets/index-BYqTlB4Y.js +0 -39
- package/dist/assets/index-BZNcKYJW.js +0 -1
- package/dist/assets/index-C8o-xzAN.js +0 -29875
- package/dist/assets/index-D-Jb9hdv.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-Cl8KOFjG.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CDBFUVvY.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-B7yPJt54.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-C3mdnabF.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-DJ5f-tsr.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-Ca3eEPkJ.js +0 -1
- package/dist/assets/page-detail-CWX5S47F-Db9HhKdl.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BEaTutPV.js +0 -3
- package/dist/assets/radio-default-CiSgisfh-bKgsz1mh.js +0 -1
- package/dist/assets/shield-DOlUxcFf-CuhCM_gA.js +0 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-BtYnBfqr.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-Bu4Ds4yf.js +0 -1
- package/dist/assets/types-DyvtCprH-NFPm5TaG.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-_YW_CWHL.js +0 -1
- package/dist/assets/uploadAttachment-Ck4wivBR-Cl_dwAB6.js +0 -286
- package/dist/assets/uploadReceipts-CIgkuVpu-DNtrxUdf.js +0 -1
- package/dist/assets/url-CRv0BSFG.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-Bd_7uKXZ.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-rq31vkuF.js +0 -1
- package/dist/assets/zeni-epic-state-DMWYYyyR.js +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash.all.min-
|
|
2
|
-
import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash.all.min-BC3O3eK3.js","assets/zeni-epic-state-B7yJI5lR.js","assets/sentry-SNkBC2Al.js","assets/core-CrJ0HRkP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{b as D}from"./sentry-SNkBC2Al.js";import{ba as N}from"./zeni-epic-state-B7yJI5lR.js";import{M as A,C as R}from"./mixin-BPAPQfSE.js";import"./core-CrJ0HRkP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6ead8e9f-9456-4ab4-a6c3-0650fa980923",t._sentryDebugIdIdentifier="sentry-dbid-6ead8e9f-9456-4ab4-a6c3-0650fa980923")}catch{}})();class L extends A(R){static shadowRootOptions={...R.shadowRootOptions};static getTemplateHTML=e=>{const{src:n,...o}=e;return R.getTemplateHTML(o)};#t;attributeChangedCallback(e,n,o){e!=="src"&&super.attributeChangedCallback(e,n,o),e==="src"&&n!=o&&this.load()}async _initThumbnails(e){const n=async(d,h)=>{const b=[],g=e.timescale||1,f=e.startNumber||1,w=e.presentationTimeOffset?e.presentationTimeOffset/g:0,_=e.segmentDuration;for(let l=0;l<d;l++){const T=C({thIndex:l,thduration:h,ttiles:d,tduration:_,startNumber:f,pto:w}),E=T+h,M=new Promise((m,y)=>{this.api.provideThumbnail(T,({url:a,width:s,height:c,x:p,y:v})=>{try{const k=new VTTCue(T,E,`${a}#xywh=${p},${v},${s},${c}`);m(k)}catch(k){y(k)}})});b.push(M)}return await Promise.all(b).catch(l=>console.error("Error processing thumbnails",l))},{totalThumbnails:o,thumbnailDuration:i}=$(e),u=await n(o,i);let r=this.nativeEl.querySelector('track[label="thumbnails"]');if(!r){r=O(),this.nativeEl.appendChild(r);const d=x(u);r.src=d,r.dispatchEvent(new Event("change"))}}async load(){if(this.#t){this.api.attachSource(this.src);return}this.#t=!0;const e=await N(()=>import("./dash.all.min-BC3O3eK3.js"),__vite__mapDeps([0,1,2,3]));this.api=e.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay),this.api.on(e.MediaPlayer.events.STREAM_INITIALIZED,()=>{const n=this.api.getRepresentationsByType("video");let o=this.videoTracks.getTrackById("main");o||(o=this.addVideoTrack("main"),o.id="main",o.selected=!0),n.forEach(i=>{const u=i.bandwidth??i.bitrate??(Number.isFinite(i.bitrateInKbit)?i.bitrateInKbit*1e3:void 0),r=o.addRendition(i.id,i.width,i.height,i.mimeType??i.codec,u);r.id=i.id}),this.videoRenditions.addEventListener("change",()=>{const i=this.videoRenditions[this.videoRenditions.selectedIndex];i?.id?(this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),this.api.setRepresentationForTypeById("video",i.id,!0)):this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})}),this.api.isDynamic()||this.api.getRepresentationsByType("image").forEach(async(u,r)=>{r>0||this._initThumbnails(u)})})}}function $(t){var e,n;const o=t.essentialProperties[0],[i,u]=o.value.split("x").map(Number),r=i*u,d=((n=(e=t.adaptation)==null?void 0:e.period)==null?void 0:n.duration)||null,h=t.segmentDuration,b=t.timescale||1,f=h/b/r;return{totalThumbnails:d!=null?Math.ceil(d/f):Math.ceil(h/f),thumbnailDuration:f}}function C({thIndex:t,tduration:e,thduration:n,ttiles:o,startNumber:i,pto:u}){const r=Math.floor(t/o)+i,d=t%o+1,h=(r-1)*e-u,b=(d-1)*n;return h+b}function O(){const t=document.createElement("track");return t.kind="metadata",t.label="thumbnails",t.srclang="en",t.mode="hidden",t.default=!0,t}function x(t){let e=`WEBVTT
|
|
3
3
|
|
|
4
4
|
`;for(const i of t)e+=`${o(i.startTime)} --> ${o(i.endTime)}
|
|
5
5
|
`,e+=`${i.text}
|
|
6
6
|
|
|
7
|
-
`;const n=new Blob([e],{type:"text/vtt"});return URL.createObjectURL(n);function o(i){const u=String(Math.floor(i/3600)).padStart(2,"0"),r=String(Math.floor(i%3600/60)).padStart(2,"0"),d=(i%60).toFixed(3).padStart(6,"0");return`${u}:${r}:${d}`}}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",
|
|
7
|
+
`;const n=new Blob([e],{type:"text/vtt"});return URL.createObjectURL(n);function o(i){const u=String(Math.floor(i/3600)).padStart(2,"0"),r=String(Math.floor(i%3600/60)).padStart(2,"0"),d=(i%60).toFixed(3).padStart(6,"0");return`${u}:${r}:${d}`}}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",L);var B=L,H=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),F={className:"class",htmlFor:"for"};function P(t){return t.toLowerCase()}function S(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function W({react:t,tagName:e,elementClass:n,events:o,displayName:i,defaultProps:u,toAttributeName:r=P,toAttributeValue:d=S}){const h=Number.parseInt(t.version)>=19,b=t.forwardRef((g,f)=>{var w,_;const l=t.useRef(null),T=t.useRef(new Map),E={},M={},m={},y={};for(const[a,s]of Object.entries(g)){if(H.has(a)){m[a]=s;continue}const c=r(F[a]??a);if(n.prototype&&a in n.prototype&&!(a in(((w=globalThis.HTMLElement)==null?void 0:w.prototype)??{}))&&!((_=n.observedAttributes)!=null&&_.some(v=>v===c))){y[a]=s;continue}if(a.startsWith("on")){E[a]=s;continue}const p=d(s);if(c&&p!=null&&(M[c]=String(p),h||(m[c]=p)),c&&h){const v=S(s);p!==v?m[c]=p:m[c]=s}}if(typeof window<"u"){for(const a in E){const s=E[a],c=a.endsWith("Capture"),p=(o?.[a]??a.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const v=l?.current;if(!(!v||typeof s!="function"))return v.addEventListener(p,s,c),()=>{v.removeEventListener(p,s,c)}},[l?.current,s])}t.useLayoutEffect(()=>{if(l.current===null)return;const a=new Map;for(const s in y)I(l.current,s,y[s]),T.current.delete(s),a.set(s,y[s]);for(const[s,c]of T.current)I(l.current,s,void 0);T.current=a})}if(typeof window>"u"&&n?.getTemplateHTML&&n?.shadowRootOptions){const{mode:a,delegatesFocus:s}=n.shadowRootOptions,c=t.createElement("template",{shadowrootmode:a,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(M,g)},key:"ce-la-react-ssr-template-shadow-root"});m.children=[c,m.children]}return t.createElement(e,{...u,...m,ref:t.useCallback(a=>{l.current=a,typeof f=="function"?f(a):f!==null&&(f.current=a)},[f])},m.children)});return b.displayName=i??n.name,b}function I(t,e,n){var o;t[e]=n,n==null&&e in(((o=globalThis.HTMLElement)==null?void 0:o.prototype)??{})&&t.removeAttribute(e)}var q=W({react:D,tagName:"dash-video",elementClass:B,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":P(t)}});export{q as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as U,P as Ie}from"./sentry-DBhcw6Be.js";(function(){try{var r=typeof window<"u"?window:typeof U<"u"?U:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="1574b609-e127-4ca6-aafa-fdba2dd2ca8d",r._sentryDebugIdIdentifier="sentry-dbid-1574b609-e127-4ca6-aafa-fdba2dd2ca8d")}catch{}})();function fe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function he(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(n){K(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function R(){R=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(l,c,d){l[c]=d.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function h(l,c,d){return Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{h({},"")}catch{h=function(c,d,M){return c[d]=M}}function o(l,c,d,M){var w=c&&c.prototype instanceof T?c:T,C=Object.create(w.prototype),A=new L(M||[]);return n(C,"_invoke",{value:v(l,d,A)}),C}function b(l,c,d){try{return{type:"normal",arg:l.call(c,d)}}catch(M){return{type:"throw",arg:M}}}r.wrap=o;var k={};function T(){}function P(){}function g(){}var _={};h(_,a,function(){return this});var O=Object.getPrototypeOf,N=O&&O(O(q([])));N&&N!==e&&t.call(N,a)&&(_=N);var m=g.prototype=T.prototype=Object.create(_);function p(l){["next","throw","return"].forEach(function(c){h(l,c,function(d){return this._invoke(c,d)})})}function f(l,c){function d(w,C,A,j){var F=b(l[w],l,C);if(F.type!=="throw"){var H=F.arg,Q=H.value;return Q&&typeof Q=="object"&&t.call(Q,"__await")?c.resolve(Q.__await).then(function($){d("next",$,A,j)},function($){d("throw",$,A,j)}):c.resolve(Q).then(function($){H.value=$,A(H)},function($){return d("throw",$,A,j)})}j(F.arg)}var M;n(this,"_invoke",{value:function(w,C){function A(){return new c(function(j,F){d(w,C,j,F)})}return M=M?M.then(A,A):A()}})}function v(l,c,d){var M="suspendedStart";return function(w,C){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(w==="throw")throw C;return ie()}for(d.method=w,d.arg=C;;){var A=d.delegate;if(A){var j=E(A,d);if(j){if(j===k)continue;return j}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(M==="suspendedStart")throw M="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);M="executing";var F=b(l,c,d);if(F.type==="normal"){if(M=d.done?"completed":"suspendedYield",F.arg===k)continue;return{value:F.arg,done:d.done}}F.type==="throw"&&(M="completed",d.method="throw",d.arg=F.arg)}}}function E(l,c){var d=c.method,M=l.iterator[d];if(M===void 0)return c.delegate=null,d==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,E(l,c),c.method==="throw")||d!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+d+"' method")),k;var w=b(M,l.iterator,c.arg);if(w.type==="throw")return c.method="throw",c.arg=w.arg,c.delegate=null,k;var C=w.arg;return C?C.done?(c[l.resultName]=C.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,k):C:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,k)}function S(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function y(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function L(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(S,this),this.reset(!0)}function q(l){if(l){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var d=-1,M=function w(){for(;++d<l.length;)if(t.call(l,d))return w.value=l[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return M.next=M}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return P.prototype=g,n(m,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:P,configurable:!0}),P.displayName=h(g,s,"GeneratorFunction"),r.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===P||(c.displayName||c.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,g):(l.__proto__=g,h(l,s,"GeneratorFunction")),l.prototype=Object.create(m),l},r.awrap=function(l){return{__await:l}},p(f.prototype),h(f.prototype,u,function(){return this}),r.AsyncIterator=f,r.async=function(l,c,d,M,w){w===void 0&&(w=Promise);var C=new f(o(l,c,d,M),w);return r.isGeneratorFunction(c)?C:C.next().then(function(A){return A.done?A.value:C.next()})},p(m),h(m,s,"Generator"),h(m,a,function(){return this}),h(m,"toString",function(){return"[object Generator]"}),r.keys=function(l){var c=Object(l),d=[];for(var M in c)d.push(M);return d.reverse(),function w(){for(;d.length;){var C=d.pop();if(C in c)return w.value=C,w.done=!1,w}return w.done=!0,w}},r.values=q,L.prototype={constructor:L,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!l)for(var c in this)c.charAt(0)==="t"&&t.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function d(F,H){return C.type="throw",C.arg=l,c.next=F,H&&(c.method="next",c.arg=void 0),!!H}for(var M=this.tryEntries.length-1;M>=0;--M){var w=this.tryEntries[M],C=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var A=t.call(w,"catchLoc"),j=t.call(w,"finallyLoc");if(A&&j){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(A){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(l,c){for(var d=this.tryEntries.length-1;d>=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var w=M;break}}w&&(l==="break"||l==="continue")&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var C=w?w.completion:{};return C.type=l,C.arg=c,w?(this.method="next",this.next=w.finallyLoc,k):this.complete(C)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),k},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.finallyLoc===l)return this.complete(d.completion,d.afterLoc),y(d),k}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc===l){var M=d.completion;if(M.type==="throw"){var w=M.arg;y(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,d){return this.delegate={iterator:q(l),resultName:c,nextLoc:d},this.method==="next"&&(this.arg=void 0),k}},r}function de(r,e,t,n,i,a,u){try{var s=r[a](u),h=s.value}catch(o){t(o);return}s.done?e(h):Promise.resolve(h).then(n,i)}function W(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function u(h){de(a,n,i,u,s,"next",h)}function s(h){de(a,n,i,u,s,"throw",h)}u(void 0)})}}function ke(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Me(n.key),n)}}function Pe(r,e,t){return e&&Le(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function K(r,e,t){return e=Me(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&X(r,e)}function J(r){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(r)}function X(r,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},X(r,e)}function Te(){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}}function Z(r,e,t){return Te()?Z=Reflect.construct.bind():Z=function(i,a,u){var s=[null];s.push.apply(s,a);var h=Function.bind.apply(i,s),o=new h;return u&&X(o,u.prototype),o},Z.apply(null,arguments)}function Fe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function se(r){var e=typeof Map=="function"?new Map:void 0;return se=function(n){if(n===null||!Fe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Z(n,arguments,J(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X(i,n)},se(r)}function ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function qe(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(r)}function De(r){var e=Te();return function(){var n=J(r),i;if(e){var a=J(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qe(this,i)}}function Ve(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Me(r){var e=Ve(r,"string");return typeof e=="symbol"?e:String(e)}var Se=typeof U<"u"&&{}.toString.call(U)==="[object global]";function pe(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function $e(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function xe(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function z(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Ce(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function We(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=n;i<a.length;i++){var u=a[i];if(t.endsWith(u))return t}return"vimeo.com"}function Oe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(xe(n))return"https://vimeo.com/".concat(n);if(z(n))return n.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var ve=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof t=="string"?[t]:t;return u.forEach(function(s){e[i](s,n)}),{cancel:function(){return u.forEach(function(h){return e[a](h,n)})}}},ze=typeof Array.prototype.indexOf<"u",He=typeof window<"u"&&typeof window.postMessage<"u";if(!Se&&(!ze||!He))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof U<"u"?U:typeof self<"u"?self:{};function Be(r,e){return e={exports:{}},r(e,e.exports),e.exports}(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),n=function(a,u,s){t?Object.defineProperty(a,u,{configurable:!0,writable:!0,value:s}):a[u]=s};r.WeakMap=function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(a.prototype,"delete",function(o){if(u(this,"delete"),!i(o))return!1;var b=o[this._id];return b&&b[0]===o?(delete o[this._id],!0):!1}),n(a.prototype,"get",function(o){if(u(this,"get"),!!i(o)){var b=o[this._id];if(b&&b[0]===o)return b[1]}}),n(a.prototype,"has",function(o){if(u(this,"has"),!i(o))return!1;var b=o[this._id];return!!(b&&b[0]===o)}),n(a.prototype,"set",function(o,b){if(u(this,"set"),!i(o))throw new TypeError("Invalid value used as weak map key");var k=o[this._id];return k&&k[0]===o?(k[1]=b,this):(n(o,this._id,[o,b]),this)});function u(o,b){if(!i(o)||!e.call(o,"_id"))throw new TypeError(b+" method called on incompatible receiver "+typeof o)}function s(o){return o+"_"+h()+"."+h()}function h(){return Math.random().toString().substring(2)}return n(a,"_polyfill",!0),a}();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:G);var D=Be(function(r){(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",G,function(){var t,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,f,v,E){return Object.defineProperty(p,f,{value:v,writable:!0,configurable:E!==!1})}}catch{t=function(f,v,E){return f[v]=E,f}}i=function(){var p,f,v;function E(S,y){this.fn=S,this.self=y,this.next=void 0}return{add:function(y,L){v=new E(y,L),f?f.next=v:p=v,f=v,v=void 0},drain:function(){var y=p;for(p=f=n=void 0;y;)y.fn.call(y.self),y=y.next}}}();function s(m,p){i.add(m,p),n||(n=u(i.drain))}function h(m){var p,f=typeof m;return m!=null&&(f=="object"||f=="function")&&(p=m.then),typeof p=="function"?p:!1}function o(){for(var m=0;m<this.chain.length;m++)b(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function b(m,p,f){var v,E;try{p===!1?f.reject(m.msg):(p===!0?v=m.msg:v=p.call(void 0,m.msg),v===f.promise?f.reject(TypeError("Promise-chain cycle")):(E=h(v))?E.call(v,f.resolve,f.reject):f.resolve(v))}catch(S){f.reject(S)}}function k(m){var p,f=this;if(!f.triggered){f.triggered=!0,f.def&&(f=f.def);try{(p=h(m))?s(function(){var v=new g(f);try{p.call(m,function(){k.apply(v,arguments)},function(){T.apply(v,arguments)})}catch(E){T.call(v,E)}}):(f.msg=m,f.state=1,f.chain.length>0&&s(o,f))}catch(v){T.call(new g(f),v)}}}function T(m){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=m,p.state=2,p.chain.length>0&&s(o,p))}function P(m,p,f,v){for(var E=0;E<p.length;E++)(function(y){m.resolve(p[y]).then(function(q){f(y,q)},v)})(E)}function g(m){this.def=m,this.triggered=!1}function _(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new _(this);this.then=function(v,E){var S={success:typeof v=="function"?v:!0,failure:typeof E=="function"?E:!1};return S.promise=new this.constructor(function(L,q){if(typeof L!="function"||typeof q!="function")throw TypeError("Not a function");S.resolve=L,S.reject=q}),p.chain.push(S),p.state!==0&&s(o,p),S.promise},this.catch=function(v){return this.then(void 0,v)};try{m.call(void 0,function(v){k.call(p,v)},function(v){T.call(p,v)})}catch(f){T.call(p,f)}}var N=t({},"constructor",O,!1);return O.prototype=N,t(N,"__NPO__",0,!1),t(O,"resolve",function(p){var f=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");E(p)})}),t(O,"reject",function(p){return new this(function(v,E){if(typeof v!="function"||typeof E!="function")throw TypeError("Not a function");E(p)})}),t(O,"all",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):p.length===0?f.resolve([]):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");var y=p.length,L=Array(y),q=0;P(f,p,function(l,c){L[l]=c,++q===y&&E(L)},S)})}),t(O,"race",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");P(f,p,function(L,q){E(q)},S)})}),O})}),V=new WeakMap;function Y(r,e,t){var n=V.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),V.set(r.element,n)}function te(r,e){var t=V.get(r.element)||{};return t[e]||[]}function re(r,e,t){var n=V.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],V.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),V.set(r.element,n),n[e]&&n[e].length===0}function Ge(r,e){var t=te(r,e);if(t.length<1)return!1;var n=t.shift();return re(r,e,n),n}function Ue(r,e){var t=V.get(r);V.set(e,t),V.delete(r)}function ne(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(e){return console.warn(e),{}}return r}function x(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Qe(r,e){e=ne(e);var t=[],n;if(e.event){if(e.event==="error"){var i=te(r,e.data.method);i.forEach(function(u){var s=new Error(e.data.message);s.name=e.data.name,u.reject(s),re(r,e.data.method,u)})}t=te(r,"event:".concat(e.event)),n=e.data}else if(e.method){var a=Ge(r,e.method);a&&(t.push(a),n=e.value)}t.forEach(function(u){try{if(typeof u=="function"){u.call(r,n);return}u.resolve(n)}catch{}})}var Ye=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function _e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ye.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function ce(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ae(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!z(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var a=We(r),u="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var s in e)e.hasOwnProperty(s)&&(u+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var h="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;h.open("GET",u,!0),h.onload=function(){if(h.status===404){i(new Error("“".concat(r,"” was not found.")));return}if(h.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var o=JSON.parse(h.responseText);if(o.domain_status_code===403){ce(o,t),i(new Error("“".concat(r,"” is not embeddable.")));return}n(o)}catch(b){i(b)}},h.onerror=function(){var o=h.status?" (".concat(h.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(o,".")))},h.send()})}function Je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=_e(n),a=Oe(i);Ae(a,i,n).then(function(u){return ce(u,n)}).catch(t)}catch(u){t(u)}})}function Xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(z(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===n.source){var u=i[a].parentElement;u.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Ke(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(z(n.origin)){var i=ne(n.data);if(!(!i||i.event!=="ready"))for(var a=r.querySelectorAll("iframe"),u=0;u<a.length;u++){var s=a[u],h=s.contentWindow===n.source;if(Ce(s.src)&&h){var o=new le(s);o.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(z(i.origin)){var a=ne(i.data);if(!(!a||a.event!=="ready"))for(var u=r.querySelectorAll("iframe"),s=function(){var b=u[h],k=b.contentWindow===i.source;if(Ce(b.src)&&k){var T=new le(b);T.getVideoId().then(function(P){var g=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(g&&g[1]){var _=decodeURI(g[1]);T.setCurrentTime(_)}}).catch(e)}},h=0;h<u.length;h++)s()}};window.addEventListener("message",t)}}function et(){var r=function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,u=i.length,s={};a<u;a++)if(n=i[a],n&&n[1]in document){for(a=0;a<n.length;a++)s[i[0][a]]=n[a];return s}return!1}(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(a,u){var s=function o(){t.off("fullscreenchange",o),a()};t.on("fullscreenchange",s),i=i||document.documentElement;var h=i[r.requestFullscreen]();h instanceof Promise&&h.then(s).catch(u)})},exit:function(){return new Promise(function(i,a){if(!t.isFullscreen){i();return}var u=function h(){t.off("fullscreenchange",h),i()};t.on("fullscreenchange",u);var s=document[r.exitFullscreen]();s instanceof Promise&&s.then(u).catch(a)})},on:function(i,a){var u=e[i];u&&document.addEventListener(u,a)},off:function(i,a){var u=e[i];u&&document.removeEventListener(u,a)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var tt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},rt=function(r){je(t,r);var e=De(t);function t(n,i){var a,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ke(this,t),a=e.call(this),K(ee(a),"logger",void 0),K(ee(a),"speedAdjustment",0),K(ee(a),"adjustSpeed",function(){var h=W(R().mark(function o(b,k){var T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a.speedAdjustment!==k){g.next=2;break}return g.abrupt("return");case 2:return g.next=4,b.getPlaybackRate();case 4:return g.t0=g.sent,g.t1=a.speedAdjustment,g.t2=g.t0-g.t1,g.t3=k,T=g.t2+g.t3,a.log("New playbackRate: ".concat(T)),g.next=12,b.setPlaybackRate(T);case 12:a.speedAdjustment=k;case 13:case"end":return g.stop()}},o)}));return function(o,b){return h.apply(this,arguments)}}()),a.logger=s,a.init(i,n,he(he({},tt),u)),a}return Pe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var n=W(R().mark(function a(u,s,h){var o=this,b,k,T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.waitForTOReadyState(u,"open");case 2:if(h.role!=="viewer"){g.next=10;break}return g.next=5,this.updatePlayer(u,s,h);case 5:b=ve(u,"change",function(){return o.updatePlayer(u,s,h)}),k=this.maintainPlaybackPosition(u,s,h),this.addEventListener("disconnect",function(){k.cancel(),b.cancel()}),g.next=14;break;case 10:return g.next=12,this.updateTimingObject(u,s);case 12:T=ve(s,["seeked","play","pause","ratechange"],function(){return o.updateTimingObject(u,s)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return g.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i}()},{key:"updateTimingObject",value:function(){var n=W(R().mark(function a(u,s){return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=u,o.next=3,s.getCurrentTime();case 3:return o.t1=o.sent,o.next=6,s.getPaused();case 6:if(!o.sent){o.next=10;break}o.t2=0,o.next=13;break;case 10:return o.next=12,s.getPlaybackRate();case 12:o.t2=o.sent;case 13:o.t3=o.t2,o.t4={position:o.t1,velocity:o.t3},o.t0.update.call(o.t0,o.t4);case 16:case"end":return o.stop()}},a)}));function i(a,u){return n.apply(this,arguments)}return i}()},{key:"updatePlayer",value:function(){var n=W(R().mark(function a(u,s,h){var o,b,k;return R().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o=u.query(),b=o.position,k=o.velocity,typeof b=="number"&&s.setCurrentTime(b),typeof k!="number"){P.next=25;break}if(k!==0){P.next=11;break}return P.next=6,s.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}s.pause();case 9:P.next=25;break;case 11:if(!(k>0)){P.next=25;break}return P.next=14,s.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,s.play().catch(function(){var g=W(R().mark(function _(O){return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&h.autoPlayMuted)){m.next=5;break}return m.next=3,s.setMuted(!0);case 3:return m.next=5,s.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return m.stop()}},_)}));return function(_){return g.apply(this,arguments)}}());case 18:this.updatePlayer(u,s,h);case 19:return P.next=21,s.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=k,P.t2===P.t3){P.next=25;break}s.setPlaybackRate(k);case 25:case"end":return P.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i}()},{key:"maintainPlaybackPosition",value:function(i,a,u){var s=this,h=u.allowedDrift,o=u.maxAllowedDrift,b=u.minCheckInterval,k=u.maxRateAdjustment,T=u.maxTimeToCatchUp,P=Math.min(T,Math.max(b,o))*1e3,g=function(){var O=W(R().mark(function N(){var m,p,f,v,E;return R().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.t0=i.query().velocity===0,y.t0){y.next=6;break}return y.next=4,a.getPaused();case 4:y.t1=y.sent,y.t0=y.t1===!0;case 6:if(!y.t0){y.next=8;break}return y.abrupt("return");case 8:return y.t2=i.query().position,y.next=11,a.getCurrentTime();case 11:if(y.t3=y.sent,m=y.t2-y.t3,p=Math.abs(m),s.log("Drift: ".concat(m)),!(p>o)){y.next=22;break}return y.next=18,s.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),s.log("Resync by currentTime"),y.next=29;break;case 22:if(!(p>h)){y.next=29;break}return f=p/T,v=k,E=f<v?(v-f)/2:v,y.next=28,s.adjustSpeed(a,E*Math.sign(m));case 28:s.log("Resync by playbackRate");case 29:case"end":return y.stop()}},N)}));return function(){return O.apply(this,arguments)}}(),_=setInterval(function(){return g()},P);return{cancel:function(){return clearInterval(_)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(u){var s=function h(){i.readyState===a?u():i.addEventListener("readystatechange",h,{once:!0})};s()})}}]),t}(se(EventTarget)),B=new WeakMap,ae=new WeakMap,I={},le=function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ke(this,r),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!$e(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(B.has(e))return B.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new D(function(s,h){if(t._onMessage=function(k){if(!(!z(k.origin)||t.element.contentWindow!==k.source)){t.origin==="*"&&(t.origin=k.origin);var T=ne(k.data),P=T&&T.event==="error",g=P&&T.data&&T.data.method==="ready";if(g){var _=new Error(T.data.message);_.name=T.data.name,h(_);return}var O=T&&T.event==="ready",N=T&&T.method==="ping";if(O||N){t.element.setAttribute("data-ready","true"),s();return}Qe(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var o=_e(e,n),b=Oe(o);Ae(b,o,e).then(function(k){var T=ce(k,e);return t.element=T,t._originalElement=e,Ue(e,T),B.set(t.element,t),k}).catch(h)}});if(ae.set(this,a),B.set(this.element,this),this.element.nodeName==="IFRAME"&&x(this,"ping"),I.isEnabled){var u=function(){return I.exit()};this.fullscreenchangeHandler=function(){I.isFullscreen?Y(t,"event:exitFullscreen",u):re(t,"event:exitFullscreen",u),t.ready().then(function(){x(t,"fullscreenchange",I.isFullscreen)})},I.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Pe(r,[{key:"callMethod",value:function(t){for(var n=this,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];if(t==null)throw new TypeError("You must pass a method name.");return new D(function(s,h){return n.ready().then(function(){Y(n,t,{resolve:s,reject:h}),x(n,t,a)}).catch(h)})}},{key:"get",value:function(t){var n=this;return new D(function(i,a){return t=pe(t,"get"),n.ready().then(function(){Y(n,t,{resolve:i,reject:a}),x(n,t)}).catch(a)})}},{key:"set",value:function(t,n){var i=this;return new D(function(a,u){if(t=pe(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Y(i,t,{resolve:a,reject:u}),x(i,t,n)}).catch(u)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=te(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),Y(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=re(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(a){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ae.get(this)||new D(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return D.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return I.isEnabled?I.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return I.isEnabled?I.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return I.isEnabled?D.resolve(I.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(n){if(ae.delete(t),B.delete(t.element),t._originalElement&&(B.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),I.isEnabled&&I.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(a,u){return u(new TypeError("Argument must be an array."))});var n=new D(function(a){return a(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n];return D.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var e=W(R().mark(function n(i,a){var u=this,s;return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(i){o.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return o.next=4,this.ready();case 4:return s=new rt(this,i,a),x(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return x(u,"notifyTimingObjectDisconnect")}),o.abrupt("return",s);case 8:case"end":return o.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()}]),r}();Se||(I=et(),Je(),Xe(),Ke(),Ze());const nt="https://player.vimeo.com/video",it="https://vimeo.com/event",at=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function me(r,e={}){const t={src:ot(r,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(t["data-config"]=JSON.stringify(e.config)),`
|
|
1
|
+
import{c as U,b as Ie}from"./sentry-SNkBC2Al.js";(function(){try{var r=typeof window<"u"?window:typeof U<"u"?U:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="216ed4d1-799e-406e-afa4-54d2bd5bb20b",r._sentryDebugIdIdentifier="sentry-dbid-216ed4d1-799e-406e-afa4-54d2bd5bb20b")}catch{}})();function fe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function he(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(n){K(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function R(){R=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(l,c,d){l[c]=d.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function h(l,c,d){return Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{h({},"")}catch{h=function(c,d,M){return c[d]=M}}function o(l,c,d,M){var w=c&&c.prototype instanceof T?c:T,C=Object.create(w.prototype),A=new L(M||[]);return n(C,"_invoke",{value:v(l,d,A)}),C}function b(l,c,d){try{return{type:"normal",arg:l.call(c,d)}}catch(M){return{type:"throw",arg:M}}}r.wrap=o;var k={};function T(){}function P(){}function g(){}var _={};h(_,a,function(){return this});var O=Object.getPrototypeOf,N=O&&O(O(q([])));N&&N!==e&&t.call(N,a)&&(_=N);var m=g.prototype=T.prototype=Object.create(_);function p(l){["next","throw","return"].forEach(function(c){h(l,c,function(d){return this._invoke(c,d)})})}function f(l,c){function d(w,C,A,j){var F=b(l[w],l,C);if(F.type!=="throw"){var H=F.arg,Q=H.value;return Q&&typeof Q=="object"&&t.call(Q,"__await")?c.resolve(Q.__await).then(function($){d("next",$,A,j)},function($){d("throw",$,A,j)}):c.resolve(Q).then(function($){H.value=$,A(H)},function($){return d("throw",$,A,j)})}j(F.arg)}var M;n(this,"_invoke",{value:function(w,C){function A(){return new c(function(j,F){d(w,C,j,F)})}return M=M?M.then(A,A):A()}})}function v(l,c,d){var M="suspendedStart";return function(w,C){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(w==="throw")throw C;return ie()}for(d.method=w,d.arg=C;;){var A=d.delegate;if(A){var j=E(A,d);if(j){if(j===k)continue;return j}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(M==="suspendedStart")throw M="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);M="executing";var F=b(l,c,d);if(F.type==="normal"){if(M=d.done?"completed":"suspendedYield",F.arg===k)continue;return{value:F.arg,done:d.done}}F.type==="throw"&&(M="completed",d.method="throw",d.arg=F.arg)}}}function E(l,c){var d=c.method,M=l.iterator[d];if(M===void 0)return c.delegate=null,d==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,E(l,c),c.method==="throw")||d!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+d+"' method")),k;var w=b(M,l.iterator,c.arg);if(w.type==="throw")return c.method="throw",c.arg=w.arg,c.delegate=null,k;var C=w.arg;return C?C.done?(c[l.resultName]=C.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,k):C:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,k)}function S(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function y(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function L(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(S,this),this.reset(!0)}function q(l){if(l){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var d=-1,M=function w(){for(;++d<l.length;)if(t.call(l,d))return w.value=l[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return M.next=M}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return P.prototype=g,n(m,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:P,configurable:!0}),P.displayName=h(g,s,"GeneratorFunction"),r.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===P||(c.displayName||c.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,g):(l.__proto__=g,h(l,s,"GeneratorFunction")),l.prototype=Object.create(m),l},r.awrap=function(l){return{__await:l}},p(f.prototype),h(f.prototype,u,function(){return this}),r.AsyncIterator=f,r.async=function(l,c,d,M,w){w===void 0&&(w=Promise);var C=new f(o(l,c,d,M),w);return r.isGeneratorFunction(c)?C:C.next().then(function(A){return A.done?A.value:C.next()})},p(m),h(m,s,"Generator"),h(m,a,function(){return this}),h(m,"toString",function(){return"[object Generator]"}),r.keys=function(l){var c=Object(l),d=[];for(var M in c)d.push(M);return d.reverse(),function w(){for(;d.length;){var C=d.pop();if(C in c)return w.value=C,w.done=!1,w}return w.done=!0,w}},r.values=q,L.prototype={constructor:L,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!l)for(var c in this)c.charAt(0)==="t"&&t.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function d(F,H){return C.type="throw",C.arg=l,c.next=F,H&&(c.method="next",c.arg=void 0),!!H}for(var M=this.tryEntries.length-1;M>=0;--M){var w=this.tryEntries[M],C=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var A=t.call(w,"catchLoc"),j=t.call(w,"finallyLoc");if(A&&j){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(A){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(l,c){for(var d=this.tryEntries.length-1;d>=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var w=M;break}}w&&(l==="break"||l==="continue")&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var C=w?w.completion:{};return C.type=l,C.arg=c,w?(this.method="next",this.next=w.finallyLoc,k):this.complete(C)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),k},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.finallyLoc===l)return this.complete(d.completion,d.afterLoc),y(d),k}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc===l){var M=d.completion;if(M.type==="throw"){var w=M.arg;y(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,d){return this.delegate={iterator:q(l),resultName:c,nextLoc:d},this.method==="next"&&(this.arg=void 0),k}},r}function de(r,e,t,n,i,a,u){try{var s=r[a](u),h=s.value}catch(o){t(o);return}s.done?e(h):Promise.resolve(h).then(n,i)}function W(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function u(h){de(a,n,i,u,s,"next",h)}function s(h){de(a,n,i,u,s,"throw",h)}u(void 0)})}}function ke(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Me(n.key),n)}}function Pe(r,e,t){return e&&Le(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function K(r,e,t){return e=Me(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&X(r,e)}function J(r){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(r)}function X(r,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},X(r,e)}function Te(){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}}function Z(r,e,t){return Te()?Z=Reflect.construct.bind():Z=function(i,a,u){var s=[null];s.push.apply(s,a);var h=Function.bind.apply(i,s),o=new h;return u&&X(o,u.prototype),o},Z.apply(null,arguments)}function Fe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function se(r){var e=typeof Map=="function"?new Map:void 0;return se=function(n){if(n===null||!Fe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Z(n,arguments,J(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X(i,n)},se(r)}function ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function qe(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(r)}function De(r){var e=Te();return function(){var n=J(r),i;if(e){var a=J(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qe(this,i)}}function Ve(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Me(r){var e=Ve(r,"string");return typeof e=="symbol"?e:String(e)}var Se=typeof U<"u"&&{}.toString.call(U)==="[object global]";function pe(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function $e(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function xe(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function z(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Ce(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function We(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=n;i<a.length;i++){var u=a[i];if(t.endsWith(u))return t}return"vimeo.com"}function Oe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(xe(n))return"https://vimeo.com/".concat(n);if(z(n))return n.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var ve=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof t=="string"?[t]:t;return u.forEach(function(s){e[i](s,n)}),{cancel:function(){return u.forEach(function(h){return e[a](h,n)})}}},ze=typeof Array.prototype.indexOf<"u",He=typeof window<"u"&&typeof window.postMessage<"u";if(!Se&&(!ze||!He))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof U<"u"?U:typeof self<"u"?self:{};function Be(r,e){return e={exports:{}},r(e,e.exports),e.exports}(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),n=function(a,u,s){t?Object.defineProperty(a,u,{configurable:!0,writable:!0,value:s}):a[u]=s};r.WeakMap=function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(a.prototype,"delete",function(o){if(u(this,"delete"),!i(o))return!1;var b=o[this._id];return b&&b[0]===o?(delete o[this._id],!0):!1}),n(a.prototype,"get",function(o){if(u(this,"get"),!!i(o)){var b=o[this._id];if(b&&b[0]===o)return b[1]}}),n(a.prototype,"has",function(o){if(u(this,"has"),!i(o))return!1;var b=o[this._id];return!!(b&&b[0]===o)}),n(a.prototype,"set",function(o,b){if(u(this,"set"),!i(o))throw new TypeError("Invalid value used as weak map key");var k=o[this._id];return k&&k[0]===o?(k[1]=b,this):(n(o,this._id,[o,b]),this)});function u(o,b){if(!i(o)||!e.call(o,"_id"))throw new TypeError(b+" method called on incompatible receiver "+typeof o)}function s(o){return o+"_"+h()+"."+h()}function h(){return Math.random().toString().substring(2)}return n(a,"_polyfill",!0),a}();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:G);var D=Be(function(r){(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",G,function(){var t,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,f,v,E){return Object.defineProperty(p,f,{value:v,writable:!0,configurable:E!==!1})}}catch{t=function(f,v,E){return f[v]=E,f}}i=function(){var p,f,v;function E(S,y){this.fn=S,this.self=y,this.next=void 0}return{add:function(y,L){v=new E(y,L),f?f.next=v:p=v,f=v,v=void 0},drain:function(){var y=p;for(p=f=n=void 0;y;)y.fn.call(y.self),y=y.next}}}();function s(m,p){i.add(m,p),n||(n=u(i.drain))}function h(m){var p,f=typeof m;return m!=null&&(f=="object"||f=="function")&&(p=m.then),typeof p=="function"?p:!1}function o(){for(var m=0;m<this.chain.length;m++)b(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function b(m,p,f){var v,E;try{p===!1?f.reject(m.msg):(p===!0?v=m.msg:v=p.call(void 0,m.msg),v===f.promise?f.reject(TypeError("Promise-chain cycle")):(E=h(v))?E.call(v,f.resolve,f.reject):f.resolve(v))}catch(S){f.reject(S)}}function k(m){var p,f=this;if(!f.triggered){f.triggered=!0,f.def&&(f=f.def);try{(p=h(m))?s(function(){var v=new g(f);try{p.call(m,function(){k.apply(v,arguments)},function(){T.apply(v,arguments)})}catch(E){T.call(v,E)}}):(f.msg=m,f.state=1,f.chain.length>0&&s(o,f))}catch(v){T.call(new g(f),v)}}}function T(m){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=m,p.state=2,p.chain.length>0&&s(o,p))}function P(m,p,f,v){for(var E=0;E<p.length;E++)(function(y){m.resolve(p[y]).then(function(q){f(y,q)},v)})(E)}function g(m){this.def=m,this.triggered=!1}function _(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new _(this);this.then=function(v,E){var S={success:typeof v=="function"?v:!0,failure:typeof E=="function"?E:!1};return S.promise=new this.constructor(function(L,q){if(typeof L!="function"||typeof q!="function")throw TypeError("Not a function");S.resolve=L,S.reject=q}),p.chain.push(S),p.state!==0&&s(o,p),S.promise},this.catch=function(v){return this.then(void 0,v)};try{m.call(void 0,function(v){k.call(p,v)},function(v){T.call(p,v)})}catch(f){T.call(p,f)}}var N=t({},"constructor",O,!1);return O.prototype=N,t(N,"__NPO__",0,!1),t(O,"resolve",function(p){var f=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");E(p)})}),t(O,"reject",function(p){return new this(function(v,E){if(typeof v!="function"||typeof E!="function")throw TypeError("Not a function");E(p)})}),t(O,"all",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):p.length===0?f.resolve([]):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");var y=p.length,L=Array(y),q=0;P(f,p,function(l,c){L[l]=c,++q===y&&E(L)},S)})}),t(O,"race",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");P(f,p,function(L,q){E(q)},S)})}),O})}),V=new WeakMap;function Y(r,e,t){var n=V.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),V.set(r.element,n)}function te(r,e){var t=V.get(r.element)||{};return t[e]||[]}function re(r,e,t){var n=V.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],V.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),V.set(r.element,n),n[e]&&n[e].length===0}function Ge(r,e){var t=te(r,e);if(t.length<1)return!1;var n=t.shift();return re(r,e,n),n}function Ue(r,e){var t=V.get(r);V.set(e,t),V.delete(r)}function ne(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(e){return console.warn(e),{}}return r}function x(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Qe(r,e){e=ne(e);var t=[],n;if(e.event){if(e.event==="error"){var i=te(r,e.data.method);i.forEach(function(u){var s=new Error(e.data.message);s.name=e.data.name,u.reject(s),re(r,e.data.method,u)})}t=te(r,"event:".concat(e.event)),n=e.data}else if(e.method){var a=Ge(r,e.method);a&&(t.push(a),n=e.value)}t.forEach(function(u){try{if(typeof u=="function"){u.call(r,n);return}u.resolve(n)}catch{}})}var Ye=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function _e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ye.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function ce(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ae(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!z(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var a=We(r),u="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var s in e)e.hasOwnProperty(s)&&(u+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var h="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;h.open("GET",u,!0),h.onload=function(){if(h.status===404){i(new Error("“".concat(r,"” was not found.")));return}if(h.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var o=JSON.parse(h.responseText);if(o.domain_status_code===403){ce(o,t),i(new Error("“".concat(r,"” is not embeddable.")));return}n(o)}catch(b){i(b)}},h.onerror=function(){var o=h.status?" (".concat(h.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(o,".")))},h.send()})}function Je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=_e(n),a=Oe(i);Ae(a,i,n).then(function(u){return ce(u,n)}).catch(t)}catch(u){t(u)}})}function Xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(z(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===n.source){var u=i[a].parentElement;u.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Ke(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(z(n.origin)){var i=ne(n.data);if(!(!i||i.event!=="ready"))for(var a=r.querySelectorAll("iframe"),u=0;u<a.length;u++){var s=a[u],h=s.contentWindow===n.source;if(Ce(s.src)&&h){var o=new le(s);o.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(z(i.origin)){var a=ne(i.data);if(!(!a||a.event!=="ready"))for(var u=r.querySelectorAll("iframe"),s=function(){var b=u[h],k=b.contentWindow===i.source;if(Ce(b.src)&&k){var T=new le(b);T.getVideoId().then(function(P){var g=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(g&&g[1]){var _=decodeURI(g[1]);T.setCurrentTime(_)}}).catch(e)}},h=0;h<u.length;h++)s()}};window.addEventListener("message",t)}}function et(){var r=function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,u=i.length,s={};a<u;a++)if(n=i[a],n&&n[1]in document){for(a=0;a<n.length;a++)s[i[0][a]]=n[a];return s}return!1}(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(a,u){var s=function o(){t.off("fullscreenchange",o),a()};t.on("fullscreenchange",s),i=i||document.documentElement;var h=i[r.requestFullscreen]();h instanceof Promise&&h.then(s).catch(u)})},exit:function(){return new Promise(function(i,a){if(!t.isFullscreen){i();return}var u=function h(){t.off("fullscreenchange",h),i()};t.on("fullscreenchange",u);var s=document[r.exitFullscreen]();s instanceof Promise&&s.then(u).catch(a)})},on:function(i,a){var u=e[i];u&&document.addEventListener(u,a)},off:function(i,a){var u=e[i];u&&document.removeEventListener(u,a)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var tt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},rt=function(r){je(t,r);var e=De(t);function t(n,i){var a,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ke(this,t),a=e.call(this),K(ee(a),"logger",void 0),K(ee(a),"speedAdjustment",0),K(ee(a),"adjustSpeed",function(){var h=W(R().mark(function o(b,k){var T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a.speedAdjustment!==k){g.next=2;break}return g.abrupt("return");case 2:return g.next=4,b.getPlaybackRate();case 4:return g.t0=g.sent,g.t1=a.speedAdjustment,g.t2=g.t0-g.t1,g.t3=k,T=g.t2+g.t3,a.log("New playbackRate: ".concat(T)),g.next=12,b.setPlaybackRate(T);case 12:a.speedAdjustment=k;case 13:case"end":return g.stop()}},o)}));return function(o,b){return h.apply(this,arguments)}}()),a.logger=s,a.init(i,n,he(he({},tt),u)),a}return Pe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var n=W(R().mark(function a(u,s,h){var o=this,b,k,T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.waitForTOReadyState(u,"open");case 2:if(h.role!=="viewer"){g.next=10;break}return g.next=5,this.updatePlayer(u,s,h);case 5:b=ve(u,"change",function(){return o.updatePlayer(u,s,h)}),k=this.maintainPlaybackPosition(u,s,h),this.addEventListener("disconnect",function(){k.cancel(),b.cancel()}),g.next=14;break;case 10:return g.next=12,this.updateTimingObject(u,s);case 12:T=ve(s,["seeked","play","pause","ratechange"],function(){return o.updateTimingObject(u,s)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return g.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i}()},{key:"updateTimingObject",value:function(){var n=W(R().mark(function a(u,s){return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=u,o.next=3,s.getCurrentTime();case 3:return o.t1=o.sent,o.next=6,s.getPaused();case 6:if(!o.sent){o.next=10;break}o.t2=0,o.next=13;break;case 10:return o.next=12,s.getPlaybackRate();case 12:o.t2=o.sent;case 13:o.t3=o.t2,o.t4={position:o.t1,velocity:o.t3},o.t0.update.call(o.t0,o.t4);case 16:case"end":return o.stop()}},a)}));function i(a,u){return n.apply(this,arguments)}return i}()},{key:"updatePlayer",value:function(){var n=W(R().mark(function a(u,s,h){var o,b,k;return R().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o=u.query(),b=o.position,k=o.velocity,typeof b=="number"&&s.setCurrentTime(b),typeof k!="number"){P.next=25;break}if(k!==0){P.next=11;break}return P.next=6,s.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}s.pause();case 9:P.next=25;break;case 11:if(!(k>0)){P.next=25;break}return P.next=14,s.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,s.play().catch(function(){var g=W(R().mark(function _(O){return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&h.autoPlayMuted)){m.next=5;break}return m.next=3,s.setMuted(!0);case 3:return m.next=5,s.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return m.stop()}},_)}));return function(_){return g.apply(this,arguments)}}());case 18:this.updatePlayer(u,s,h);case 19:return P.next=21,s.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=k,P.t2===P.t3){P.next=25;break}s.setPlaybackRate(k);case 25:case"end":return P.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i}()},{key:"maintainPlaybackPosition",value:function(i,a,u){var s=this,h=u.allowedDrift,o=u.maxAllowedDrift,b=u.minCheckInterval,k=u.maxRateAdjustment,T=u.maxTimeToCatchUp,P=Math.min(T,Math.max(b,o))*1e3,g=function(){var O=W(R().mark(function N(){var m,p,f,v,E;return R().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.t0=i.query().velocity===0,y.t0){y.next=6;break}return y.next=4,a.getPaused();case 4:y.t1=y.sent,y.t0=y.t1===!0;case 6:if(!y.t0){y.next=8;break}return y.abrupt("return");case 8:return y.t2=i.query().position,y.next=11,a.getCurrentTime();case 11:if(y.t3=y.sent,m=y.t2-y.t3,p=Math.abs(m),s.log("Drift: ".concat(m)),!(p>o)){y.next=22;break}return y.next=18,s.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),s.log("Resync by currentTime"),y.next=29;break;case 22:if(!(p>h)){y.next=29;break}return f=p/T,v=k,E=f<v?(v-f)/2:v,y.next=28,s.adjustSpeed(a,E*Math.sign(m));case 28:s.log("Resync by playbackRate");case 29:case"end":return y.stop()}},N)}));return function(){return O.apply(this,arguments)}}(),_=setInterval(function(){return g()},P);return{cancel:function(){return clearInterval(_)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(u){var s=function h(){i.readyState===a?u():i.addEventListener("readystatechange",h,{once:!0})};s()})}}]),t}(se(EventTarget)),B=new WeakMap,ae=new WeakMap,I={},le=function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ke(this,r),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!$e(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(B.has(e))return B.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new D(function(s,h){if(t._onMessage=function(k){if(!(!z(k.origin)||t.element.contentWindow!==k.source)){t.origin==="*"&&(t.origin=k.origin);var T=ne(k.data),P=T&&T.event==="error",g=P&&T.data&&T.data.method==="ready";if(g){var _=new Error(T.data.message);_.name=T.data.name,h(_);return}var O=T&&T.event==="ready",N=T&&T.method==="ping";if(O||N){t.element.setAttribute("data-ready","true"),s();return}Qe(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var o=_e(e,n),b=Oe(o);Ae(b,o,e).then(function(k){var T=ce(k,e);return t.element=T,t._originalElement=e,Ue(e,T),B.set(t.element,t),k}).catch(h)}});if(ae.set(this,a),B.set(this.element,this),this.element.nodeName==="IFRAME"&&x(this,"ping"),I.isEnabled){var u=function(){return I.exit()};this.fullscreenchangeHandler=function(){I.isFullscreen?Y(t,"event:exitFullscreen",u):re(t,"event:exitFullscreen",u),t.ready().then(function(){x(t,"fullscreenchange",I.isFullscreen)})},I.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Pe(r,[{key:"callMethod",value:function(t){for(var n=this,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];if(t==null)throw new TypeError("You must pass a method name.");return new D(function(s,h){return n.ready().then(function(){Y(n,t,{resolve:s,reject:h}),x(n,t,a)}).catch(h)})}},{key:"get",value:function(t){var n=this;return new D(function(i,a){return t=pe(t,"get"),n.ready().then(function(){Y(n,t,{resolve:i,reject:a}),x(n,t)}).catch(a)})}},{key:"set",value:function(t,n){var i=this;return new D(function(a,u){if(t=pe(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Y(i,t,{resolve:a,reject:u}),x(i,t,n)}).catch(u)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=te(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),Y(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=re(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(a){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ae.get(this)||new D(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return D.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return I.isEnabled?I.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return I.isEnabled?I.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return I.isEnabled?D.resolve(I.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(n){if(ae.delete(t),B.delete(t.element),t._originalElement&&(B.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),I.isEnabled&&I.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(a,u){return u(new TypeError("Argument must be an array."))});var n=new D(function(a){return a(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n];return D.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var e=W(R().mark(function n(i,a){var u=this,s;return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(i){o.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return o.next=4,this.ready();case 4:return s=new rt(this,i,a),x(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return x(u,"notifyTimingObjectDisconnect")}),o.abrupt("return",s);case 8:case"end":return o.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()}]),r}();Se||(I=et(),Je(),Xe(),Ke(),Ze());const nt="https://player.vimeo.com/video",it="https://vimeo.com/event",at=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function me(r,e={}){const t={src:ot(r,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(t["data-config"]=JSON.stringify(e.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as H}from"./sentry-SNkBC2Al.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ce177346-ec0f-49be-9efc-945cf7b8fe8e",t._sentryDebugIdIdentifier="sentry-dbid-ce177346-ec0f-49be-9efc-945cf7b8fe8e")}catch{}})();const V="https://www.youtube.com/embed",$="https://www.youtube-nocookie.com/embed",j="https://www.youtube.com/iframe_api",Y="YT",F="onYouTubeIframeAPIReady",C=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,G=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function R(t,e={}){var i;const n={src:x(t,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(i=e.config)!=null&&i.referrerpolicy&&(n.referrerpolicy=e.config.referrerpolicy),e.config&&(n["data-config"]=JSON.stringify(e.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -14,4 +14,4 @@ import{P as H}from"./sentry-DBhcw6Be.js";(function(){try{var t=typeof window<"u"
|
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
16
|
<iframe${U(n)}></iframe>
|
|
17
|
-
`}function x(t,e){if(!t.src)return;const i=t.src.includes("-nocookie")?$:V,n={controls:t.controls===""?null:0,autoplay:t.autoplay,loop:t.loop,mute:t.muted,playsinline:t.playsinline,preload:t.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...e.config};if(C.test(t.src)){const p=t.src.match(C),g=p&&p[1];return`${i}/${g}?${R(n)}`}const l=t.src.match(G),f={listType:"playlist",list:l&&l[1],...n};return`${i}?${R(f)}`}class B extends(globalThis.HTMLElement??class{}){static getTemplateHTML=M;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new A;#o;#r;#t=0;#i=!1;#e;isLoaded=!1;#l=null;#a=null;#s=null;#n=1;constructor(){super(),this.#u("config")}get config(){return this.#a}set config(e){this.#a=e}async load(){if(this.#o)return;this.shadowRoot||this.attachShadow({mode:"open"});const e=!this.#r;this.#r&&(this.loadComplete=new A,this.isLoaded=!1),this.#r=!0,await(this.#o=Promise.resolve()),this.#o=null,this.#t=0,this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src){i?.destroy();return}this.#s=document.createElement("video"),this.textTracks=this.#s.textTracks,this.textTracks.addEventListener("change",()=>{var s;const u=Array.from(this.textTracks).find(d=>d.mode==="showing");(s=this.api)==null||s.setOption("captions","track",u?{languageCode:u.language}:{})}),this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),l=q(this.attributes);e&&n&&(this.#a=JSON.parse(n.getAttribute("data-config")||"{}")),(!n?.src||n.src!==x(l,this))&&(this.shadowRoot.innerHTML=M(l,this),n=this.shadowRoot.querySelector("iframe"));const a=await z(j,Y,F);this.api=new a.Player(n,{events:{onReady:()=>{var s;this.#t=1,this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.#n!==1&&((s=this.api)==null||s.setVolume(this.#n*100)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:s=>{console.error(s),this.#l={code:s.data,message:`YouTube iframe player error #${s.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`},this.dispatchEvent(new Event("error"))}}});let f=!1;this.api.addEventListener("onStateChange",s=>{var u;const d=s.data;if((d===a.PlayerState.PLAYING||d===a.PlayerState.BUFFERING)&&(f||(f=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEach(h=>{[...this.textTracks].some(E=>E.language===h.languageCode)||this.#s.addTextTrack("subtitles",h.displayName,h.languageCode),this.textTracks=this.#s.textTracks}),this.dispatchEvent(new Event("loadstart"))),d===a.PlayerState.PLAYING)this.seeking&&(this.#i=!1,(u=this.#e)==null||u.resolve(),this.dispatchEvent(new Event("seeked"))),this.#t=3,this.dispatchEvent(new Event("playing"));else if(d===a.PlayerState.PAUSED){const b=Math.abs(this.currentTime-p);!this.seeking&&b>.1&&(this.#i=!0,this.dispatchEvent(new Event("seeking"))),f=!1,this.dispatchEvent(new Event("pause"))}d===a.PlayerState.ENDED&&(f=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var s;const u=((s=this.api)==null?void 0:s.getVolume())/100;this.#n=u,this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let p=0;setInterval(()=>{var s;const u=Math.abs(this.currentTime-p),d=this.buffered.end(this.buffered.length-1);this.seeking&&d>.1?(this.#i=!1,(s=this.#e)==null||s.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&u>.1&&(this.#i=!0,this.dispatchEvent(new Event("seeking"))),p=this.currentTime},50);let g;const w=setInterval(()=>{const s=this.buffered.end(this.buffered.length-1);s>=this.duration&&(clearInterval(w),this.#t=4),g!=s&&(g=s,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,i,n){if(i!==n)switch(e){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e;return this.#e=null,await this.loadComplete,(e=this.api)==null||e.playVideo(),Q(this)}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pauseVideo()}get seeking(){return this.#i}get readyState(){return this.#t}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return this.#l}get paused(){var e,i;return this.isLoaded?[-1,0,2,5].includes((i=(e=this.api)==null?void 0:e.getPlayerState)==null?void 0:i.call(e)):!this.autoplay}get duration(){var e,i;return((i=(e=this.api)==null?void 0:e.getDuration)==null?void 0:i.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,i;if(!this.isLoaded)return P();const n=((e=this.api)==null?void 0:e.getVideoLoadedFraction())*((i=this.api)==null?void 0:i.getDuration());return n>0?P(0,n):P()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,i;return((i=(e=this.api)==null?void 0:e.getCurrentTime)==null?void 0:i.call(e))??0}set currentTime(e){this.currentTime!=e&&(this.#e=new A,this.loadComplete.then(()=>{var i,n;(i=this.api)==null||i.seekTo(e,!0),this.paused&&((n=this.#e)==null||n.then(()=>{var l;this.#e&&((l=this.api)==null||l.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var i,n;e?(i=this.api)==null||i.mute():(n=this.api)==null||n.unMute()})}get muted(){var e,i;return this.isLoaded?(i=(e=this.api)==null?void 0:e.isMuted)==null?void 0:i.call(e):this.defaultMuted}get playbackRate(){var e,i;return((i=(e=this.api)==null?void 0:e.getPlaybackRate)==null?void 0:i.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var i;(i=this.api)==null||i.setPlaybackRate(e)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&(this.#n=e,this.loadComplete.then(()=>{var i;(i=this.api)==null||i.setVolume(e*100)}))}get volume(){var e;return this.isLoaded?((e=this.api)==null?void 0:e.getVolume())/100:this.#n}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){const i=this[e];delete this[e],this[e]=i}}}function U(t){let e="";for(const i in t){const n=t[i];n===""?e+=` ${k(i)}`:e+=` ${k(i)}="${k(`${n}`)}"`}return e}function k(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function R(t){return String(new URLSearchParams(W(t)))}function W(t){let e={};for(let i in t){let n=t[i];n===!0||n===""?e[i]=1:n===!1?e[i]=0:n!=null&&(e[i]=n)}return e}function q(t){let e={};for(let i of t)e[i.name]=i.value;return e}const L={};async function z(t,e,i){return L[t]?L[t]:self[e]?(await J(0),self[e]):L[t]=new Promise(function(n,l){const a=document.createElement("script");a.src=t;const f=()=>n(self[e]);self[i]=f,a.onload=()=>!i,a.onerror=l,document.head.append(a)})}const J=t=>new Promise(e=>setTimeout(e,t));function K(t){return(...e)=>new Promise(i=>{t(...e,(...n)=>{n.length>1?i(n):i(n[0])})})}function Q(t){return K((e,i)=>{let n;t.addEventListener(e,n=()=>{t.removeEventListener(e,n),i()})})("playing")}class A extends Promise{constructor(e=()=>{}){let i,n;super((l,a)=>{e(l,a),i=l,n=a}),this.resolve=i,this.reject=n}}function P(t,e){return Array.isArray(t)?I(t):t==null||e==null||t===0&&e===0?I([[0,0]]):I([[t,e]])}function I(t){return Object.defineProperties(t,{start:{value:e=>t[e][0]},end:{value:e=>t[e][1]}}),t}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",B);var X=B,Z=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),ee={className:"class",htmlFor:"for"};function D(t){return t.toLowerCase()}function O(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function te({react:t,tagName:e,elementClass:i,events:n,displayName:l,defaultProps:a,toAttributeName:f=D,toAttributeValue:p=O}){const g=Number.parseInt(t.version)>=19,w=t.forwardRef((s,u)=>{var d,b;const h=t.useRef(null),E=t.useRef(new Map),T={},S={},v={},_={};for(const[o,r]of Object.entries(s)){if(Z.has(o)){v[o]=r;continue}const c=f(ee[o]??o);if(i.prototype&&o in i.prototype&&!(o in(((d=globalThis.HTMLElement)==null?void 0:d.prototype)??{}))&&!((b=i.observedAttributes)!=null&&b.some(y=>y===c))){_[o]=r;continue}if(o.startsWith("on")){T[o]=r;continue}const m=p(r);if(c&&m!=null&&(S[c]=String(m),g||(v[c]=m)),c&&g){const y=O(r);m!==y?v[c]=m:v[c]=r}}if(typeof window<"u"){for(const o in T){const r=T[o],c=o.endsWith("Capture"),m=(n?.[o]??o.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const y=h?.current;if(!(!y||typeof r!="function"))return y.addEventListener(m,r,c),()=>{y.removeEventListener(m,r,c)}},[h?.current,r])}t.useLayoutEffect(()=>{if(h.current===null)return;const o=new Map;for(const r in _)N(h.current,r,_[r]),E.current.delete(r),o.set(r,_[r]);for(const[r,c]of E.current)N(h.current,r,void 0);E.current=o})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:o,delegatesFocus:r}=i.shadowRootOptions,c=t.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(S,s)},key:"ce-la-react-ssr-template-shadow-root"});v.children=[c,v.children]}return t.createElement(e,{...a,...v,ref:t.useCallback(o=>{h.current=o,typeof u=="function"?u(o):u!==null&&(u.current=o)},[u])},v.children)});return w.displayName=l??i.name,w}function N(t,e,i){var n;t[e]=i,i==null&&e in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&t.removeAttribute(e)}var ne=te({react:H,tagName:"youtube-video",elementClass:X,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":D(t)}});export{ne as default};
|
|
17
|
+
`}function x(t,e){if(!t.src)return;const i=t.src.includes("-nocookie")?$:V,n={controls:t.controls===""?null:0,autoplay:t.autoplay,loop:t.loop,mute:t.muted,playsinline:t.playsinline,preload:t.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...e.config};if(C.test(t.src)){const p=t.src.match(C),g=p&&p[1];return`${i}/${g}?${M(n)}`}const l=t.src.match(G),f={listType:"playlist",list:l&&l[1],...n};return`${i}?${M(f)}`}class B extends(globalThis.HTMLElement??class{}){static getTemplateHTML=R;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new A;#o;#r;#t=0;#i=!1;#e;isLoaded=!1;#l=null;#a=null;#s=null;#n=1;constructor(){super(),this.#u("config")}get config(){return this.#a}set config(e){this.#a=e}async load(){if(this.#o)return;this.shadowRoot||this.attachShadow({mode:"open"});const e=!this.#r;this.#r&&(this.loadComplete=new A,this.isLoaded=!1),this.#r=!0,await(this.#o=Promise.resolve()),this.#o=null,this.#t=0,this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src){i?.destroy();return}this.#s=document.createElement("video"),this.textTracks=this.#s.textTracks,this.textTracks.addEventListener("change",()=>{var s;const u=Array.from(this.textTracks).find(d=>d.mode==="showing");(s=this.api)==null||s.setOption("captions","track",u?{languageCode:u.language}:{})}),this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),l=q(this.attributes);e&&n&&(this.#a=JSON.parse(n.getAttribute("data-config")||"{}")),(!n?.src||n.src!==x(l,this))&&(this.shadowRoot.innerHTML=R(l,this),n=this.shadowRoot.querySelector("iframe"));const a=await z(j,Y,F);this.api=new a.Player(n,{events:{onReady:()=>{var s;this.#t=1,this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.#n!==1&&((s=this.api)==null||s.setVolume(this.#n*100)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:s=>{console.error(s),this.#l={code:s.data,message:`YouTube iframe player error #${s.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`},this.dispatchEvent(new Event("error"))}}});let f=!1;this.api.addEventListener("onStateChange",s=>{var u;const d=s.data;if((d===a.PlayerState.PLAYING||d===a.PlayerState.BUFFERING)&&(f||(f=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEach(h=>{[...this.textTracks].some(E=>E.language===h.languageCode)||this.#s.addTextTrack("subtitles",h.displayName,h.languageCode),this.textTracks=this.#s.textTracks}),this.dispatchEvent(new Event("loadstart"))),d===a.PlayerState.PLAYING)this.seeking&&(this.#i=!1,(u=this.#e)==null||u.resolve(),this.dispatchEvent(new Event("seeked"))),this.#t=3,this.dispatchEvent(new Event("playing"));else if(d===a.PlayerState.PAUSED){const b=Math.abs(this.currentTime-p);!this.seeking&&b>.1&&(this.#i=!0,this.dispatchEvent(new Event("seeking"))),f=!1,this.dispatchEvent(new Event("pause"))}d===a.PlayerState.ENDED&&(f=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var s;const u=((s=this.api)==null?void 0:s.getVolume())/100;this.#n=u,this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let p=0;setInterval(()=>{var s;const u=Math.abs(this.currentTime-p),d=this.buffered.end(this.buffered.length-1);this.seeking&&d>.1?(this.#i=!1,(s=this.#e)==null||s.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&u>.1&&(this.#i=!0,this.dispatchEvent(new Event("seeking"))),p=this.currentTime},50);let g;const w=setInterval(()=>{const s=this.buffered.end(this.buffered.length-1);s>=this.duration&&(clearInterval(w),this.#t=4),g!=s&&(g=s,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,i,n){if(i!==n)switch(e){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e;return this.#e=null,await this.loadComplete,(e=this.api)==null||e.playVideo(),Q(this)}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pauseVideo()}get seeking(){return this.#i}get readyState(){return this.#t}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return this.#l}get paused(){var e,i;return this.isLoaded?[-1,0,2,5].includes((i=(e=this.api)==null?void 0:e.getPlayerState)==null?void 0:i.call(e)):!this.autoplay}get duration(){var e,i;return((i=(e=this.api)==null?void 0:e.getDuration)==null?void 0:i.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,i;if(!this.isLoaded)return P();const n=((e=this.api)==null?void 0:e.getVideoLoadedFraction())*((i=this.api)==null?void 0:i.getDuration());return n>0?P(0,n):P()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,i;return((i=(e=this.api)==null?void 0:e.getCurrentTime)==null?void 0:i.call(e))??0}set currentTime(e){this.currentTime!=e&&(this.#e=new A,this.loadComplete.then(()=>{var i,n;(i=this.api)==null||i.seekTo(e,!0),this.paused&&((n=this.#e)==null||n.then(()=>{var l;this.#e&&((l=this.api)==null||l.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var i,n;e?(i=this.api)==null||i.mute():(n=this.api)==null||n.unMute()})}get muted(){var e,i;return this.isLoaded?(i=(e=this.api)==null?void 0:e.isMuted)==null?void 0:i.call(e):this.defaultMuted}get playbackRate(){var e,i;return((i=(e=this.api)==null?void 0:e.getPlaybackRate)==null?void 0:i.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var i;(i=this.api)==null||i.setPlaybackRate(e)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&(this.#n=e,this.loadComplete.then(()=>{var i;(i=this.api)==null||i.setVolume(e*100)}))}get volume(){var e;return this.isLoaded?((e=this.api)==null?void 0:e.getVolume())/100:this.#n}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){const i=this[e];delete this[e],this[e]=i}}}function U(t){let e="";for(const i in t){const n=t[i];n===""?e+=` ${k(i)}`:e+=` ${k(i)}="${k(`${n}`)}"`}return e}function k(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function M(t){return String(new URLSearchParams(W(t)))}function W(t){let e={};for(let i in t){let n=t[i];n===!0||n===""?e[i]=1:n===!1?e[i]=0:n!=null&&(e[i]=n)}return e}function q(t){let e={};for(let i of t)e[i.name]=i.value;return e}const L={};async function z(t,e,i){return L[t]?L[t]:self[e]?(await J(0),self[e]):L[t]=new Promise(function(n,l){const a=document.createElement("script");a.src=t;const f=()=>n(self[e]);self[i]=f,a.onload=()=>!i,a.onerror=l,document.head.append(a)})}const J=t=>new Promise(e=>setTimeout(e,t));function K(t){return(...e)=>new Promise(i=>{t(...e,(...n)=>{n.length>1?i(n):i(n[0])})})}function Q(t){return K((e,i)=>{let n;t.addEventListener(e,n=()=>{t.removeEventListener(e,n),i()})})("playing")}class A extends Promise{constructor(e=()=>{}){let i,n;super((l,a)=>{e(l,a),i=l,n=a}),this.resolve=i,this.reject=n}}function P(t,e){return Array.isArray(t)?I(t):t==null||e==null||t===0&&e===0?I([[0,0]]):I([[t,e]])}function I(t){return Object.defineProperties(t,{start:{value:e=>t[e][0]},end:{value:e=>t[e][1]}}),t}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",B);var X=B,Z=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),ee={className:"class",htmlFor:"for"};function D(t){return t.toLowerCase()}function O(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function te({react:t,tagName:e,elementClass:i,events:n,displayName:l,defaultProps:a,toAttributeName:f=D,toAttributeValue:p=O}){const g=Number.parseInt(t.version)>=19,w=t.forwardRef((s,u)=>{var d,b;const h=t.useRef(null),E=t.useRef(new Map),T={},S={},v={},_={};for(const[o,r]of Object.entries(s)){if(Z.has(o)){v[o]=r;continue}const c=f(ee[o]??o);if(i.prototype&&o in i.prototype&&!(o in(((d=globalThis.HTMLElement)==null?void 0:d.prototype)??{}))&&!((b=i.observedAttributes)!=null&&b.some(y=>y===c))){_[o]=r;continue}if(o.startsWith("on")){T[o]=r;continue}const m=p(r);if(c&&m!=null&&(S[c]=String(m),g||(v[c]=m)),c&&g){const y=O(r);m!==y?v[c]=m:v[c]=r}}if(typeof window<"u"){for(const o in T){const r=T[o],c=o.endsWith("Capture"),m=(n?.[o]??o.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const y=h?.current;if(!(!y||typeof r!="function"))return y.addEventListener(m,r,c),()=>{y.removeEventListener(m,r,c)}},[h?.current,r])}t.useLayoutEffect(()=>{if(h.current===null)return;const o=new Map;for(const r in _)N(h.current,r,_[r]),E.current.delete(r),o.set(r,_[r]);for(const[r,c]of E.current)N(h.current,r,void 0);E.current=o})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:o,delegatesFocus:r}=i.shadowRootOptions,c=t.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(S,s)},key:"ce-la-react-ssr-template-shadow-root"});v.children=[c,v.children]}return t.createElement(e,{...a,...v,ref:t.useCallback(o=>{h.current=o,typeof u=="function"?u(o):u!==null&&(u.current=o)},[u])},v.children)});return w.displayName=l??i.name,w}function N(t,e,i){var n;t[e]=i,i==null&&e in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&t.removeAttribute(e)}var ne=te({react:H,tagName:"youtube-video",elementClass:X,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":D(t)}});export{ne as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as N}from"./sentry-SNkBC2Al.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f661688-f882-4da4-9f6d-1cbb0c5f2007",e._sentryDebugIdIdentifier="sentry-dbid-4f661688-f882-4da4-9f6d-1cbb0c5f2007")}catch{}})();const O="https://open.spotify.com",$=/open\.spotify\.com\/(\w+)\/(\w+)/i,B="https://open.spotify.com/embed-podcast/iframe-api/v1",D="SpotifyIframeApi",j="onSpotifyIframeApiReady";function L(e,t={}){const i={src:R(e,t),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -19,4 +19,4 @@ import{P as N}from"./sentry-DBhcw6Be.js";(function(){try{var e=typeof window<"u"
|
|
|
19
19
|
}
|
|
20
20
|
</style>
|
|
21
21
|
<iframe${W(i)}></iframe>
|
|
22
|
-
`}function R(e,t){var i,s,u;if(!e.src)return;const a=e.src.match($),d=a&&a[1],p=a&&a[2],r={t:(i=t.config)==null?void 0:i.startAt,theme:((s=t.config)==null?void 0:s.theme)==="dark"?"0":null},y=(u=t.config)!=null&&u.preferVideo?"/video":"";return`${O}/embed/${d}/${p}${y}?${x(r)}`}class C extends(globalThis.HTMLElement??class{}){static getTemplateHTML=L;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new M;#r;#a;#l;#t=!1;#e=!1;#i=!0;#s=0;#n=NaN;#o=!1;#u=null;constructor(){super(),this.#d("config")}async load(){var t,i,s;if(this.#r)return;this.#a&&(this.loadComplete=new M),this.#a=!0,await(this.#r=Promise.resolve()),this.#r=null,this.#t=!1,this.#e=!1,this.#s=0,this.#n=NaN,this.#o=!1,this.dispatchEvent(new Event("emptied"));let u=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={t:(t=this.config)==null?void 0:t.startAt,theme:((i=this.config)==null?void 0:i.theme)==="dark"?"0":null,preferVideo:(s=this.config)==null?void 0:s.preferVideo};if(this.#l)this.api=u,this.api.iframeElement.src=R(k(this.attributes),this);else{this.#l=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=L(k(this.attributes),this));let d=this.shadowRoot.querySelector("iframe");const p=await U(B,D,j);this.api=await new Promise(r=>p.createController(d,a,r)),this.api.iframeElement=d,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",r=>{if(this.#e&&this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#e=!1,this.currentTime=1;return}if(r.data.duration/1e3!==this.#n&&(this.#e=!1,this.#n=r.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),r.data.position/1e3!==this.#s&&(this.#o=!1,this.#e=!1,this.#s=r.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),!this.#t&&!this.#i&&r.data.isPaused){this.#i=!0,this.dispatchEvent(new Event("pause"));return}if(this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#i=!1,this.dispatchEvent(new Event("play")),this.#t=r.data.isBuffering,this.#t?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(this.#t&&!r.data.isPaused){this.#t=!1,this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!this.#e&&Math.ceil(this.currentTime)>=this.duration){if(this.#e=!0,this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,i,s){if(i!==s)switch(t){case"src":{this.load();return}}}async play(){var t;return this.#i=!1,this.#t=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,(t=this.api)==null?void 0:t.resume()}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get config(){return this.#u}set config(t){this.#u=t}get paused(){return this.#i??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#o}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get currentTime(){return this.#s}set currentTime(t){if(this.currentTime==t)return;this.#o=!0;let i=this.#s;this.#s=t,this.dispatchEvent(new Event("timeupdate")),this.#s=i,this.loadComplete.then(()=>{var s;(s=this.api)==null||s.seek(t)})}get duration(){return this.#n}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#d(t){if(Object.prototype.hasOwnProperty.call(this,t)){const i=this[t];delete this[t],this[t]=i}}}function W(e){let t="";for(const i in e){const s=e[i];s===""?t+=` ${i}`:t+=` ${i}="${s}"`}return t}function x(e){return String(new URLSearchParams(z(e)))}function z(e){let t={};for(let i in e){let s=e[i];s===!0||s===""?t[i]=1:s===!1?t[i]=0:s!=null&&(t[i]=s)}return t}function k(e){let t={};for(let i of e)t[i.name]=i.value;return t}const
|
|
22
|
+
`}function R(e,t){var i,s,u;if(!e.src)return;const a=e.src.match($),d=a&&a[1],p=a&&a[2],r={t:(i=t.config)==null?void 0:i.startAt,theme:((s=t.config)==null?void 0:s.theme)==="dark"?"0":null},y=(u=t.config)!=null&&u.preferVideo?"/video":"";return`${O}/embed/${d}/${p}${y}?${x(r)}`}class C extends(globalThis.HTMLElement??class{}){static getTemplateHTML=L;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new M;#r;#a;#l;#t=!1;#e=!1;#i=!0;#s=0;#n=NaN;#o=!1;#u=null;constructor(){super(),this.#d("config")}async load(){var t,i,s;if(this.#r)return;this.#a&&(this.loadComplete=new M),this.#a=!0,await(this.#r=Promise.resolve()),this.#r=null,this.#t=!1,this.#e=!1,this.#s=0,this.#n=NaN,this.#o=!1,this.dispatchEvent(new Event("emptied"));let u=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={t:(t=this.config)==null?void 0:t.startAt,theme:((i=this.config)==null?void 0:i.theme)==="dark"?"0":null,preferVideo:(s=this.config)==null?void 0:s.preferVideo};if(this.#l)this.api=u,this.api.iframeElement.src=R(k(this.attributes),this);else{this.#l=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=L(k(this.attributes),this));let d=this.shadowRoot.querySelector("iframe");const p=await U(B,D,j);this.api=await new Promise(r=>p.createController(d,a,r)),this.api.iframeElement=d,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",r=>{if(this.#e&&this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#e=!1,this.currentTime=1;return}if(r.data.duration/1e3!==this.#n&&(this.#e=!1,this.#n=r.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),r.data.position/1e3!==this.#s&&(this.#o=!1,this.#e=!1,this.#s=r.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),!this.#t&&!this.#i&&r.data.isPaused){this.#i=!0,this.dispatchEvent(new Event("pause"));return}if(this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#i=!1,this.dispatchEvent(new Event("play")),this.#t=r.data.isBuffering,this.#t?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(this.#t&&!r.data.isPaused){this.#t=!1,this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!this.#e&&Math.ceil(this.currentTime)>=this.duration){if(this.#e=!0,this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,i,s){if(i!==s)switch(t){case"src":{this.load();return}}}async play(){var t;return this.#i=!1,this.#t=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,(t=this.api)==null?void 0:t.resume()}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get config(){return this.#u}set config(t){this.#u=t}get paused(){return this.#i??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#o}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get currentTime(){return this.#s}set currentTime(t){if(this.currentTime==t)return;this.#o=!0;let i=this.#s;this.#s=t,this.dispatchEvent(new Event("timeupdate")),this.#s=i,this.loadComplete.then(()=>{var s;(s=this.api)==null||s.seek(t)})}get duration(){return this.#n}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#d(t){if(Object.prototype.hasOwnProperty.call(this,t)){const i=this[t];delete this[t],this[t]=i}}}function W(e){let t="";for(const i in e){const s=e[i];s===""?t+=` ${i}`:t+=` ${i}="${s}"`}return t}function x(e){return String(new URLSearchParams(z(e)))}function z(e){let t={};for(let i in e){let s=e[i];s===!0||s===""?t[i]=1:s===!1?t[i]=0:s!=null&&(t[i]=s)}return t}function k(e){let t={};for(let i of e)t[i.name]=i.value;return t}const b={};async function U(e,t,i){return b[e]?b[e]:self[t]?Promise.resolve(self[t]):b[e]=new Promise(function(s,u){const a=document.createElement("script");a.src=e;const d=p=>s(p);self[i]=d,a.onload=()=>!i,a.onerror=u,document.head.append(a)})}class M extends Promise{constructor(t=()=>{}){let i,s;super((u,a)=>{t(u,a),i=u,s=a}),this.resolve=i,this.reject=s}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",C);var q=C,F=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),G={className:"class",htmlFor:"for"};function H(e){return e.toLowerCase()}function S(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function V({react:e,tagName:t,elementClass:i,events:s,displayName:u,defaultProps:a,toAttributeName:d=H,toAttributeValue:p=S}){const r=Number.parseInt(e.version)>=19,y=e.forwardRef((T,v)=>{var _,A;const c=e.useRef(null),w=e.useRef(new Map),E={},P={},h={},g={};for(const[n,o]of Object.entries(T)){if(F.has(n)){h[n]=o;continue}const l=d(G[n]??n);if(i.prototype&&n in i.prototype&&!(n in(((_=globalThis.HTMLElement)==null?void 0:_.prototype)??{}))&&!((A=i.observedAttributes)!=null&&A.some(m=>m===l))){g[n]=o;continue}if(n.startsWith("on")){E[n]=o;continue}const f=p(o);if(l&&f!=null&&(P[l]=String(f),r||(h[l]=f)),l&&r){const m=S(o);f!==m?h[l]=f:h[l]=o}}if(typeof window<"u"){for(const n in E){const o=E[n],l=n.endsWith("Capture"),f=(s?.[n]??n.slice(2).toLowerCase()).slice(0,l?-7:void 0);e.useLayoutEffect(()=>{const m=c?.current;if(!(!m||typeof o!="function"))return m.addEventListener(f,o,l),()=>{m.removeEventListener(f,o,l)}},[c?.current,o])}e.useLayoutEffect(()=>{if(c.current===null)return;const n=new Map;for(const o in g)I(c.current,o,g[o]),w.current.delete(o),n.set(o,g[o]);for(const[o,l]of w.current)I(c.current,o,void 0);w.current=n})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:n,delegatesFocus:o}=i.shadowRootOptions,l=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(P,T)},key:"ce-la-react-ssr-template-shadow-root"});h.children=[l,h.children]}return e.createElement(t,{...a,...h,ref:e.useCallback(n=>{c.current=n,typeof v=="function"?v(n):v!==null&&(v.current=n)},[v])},h.children)});return y.displayName=u??i.name,y}function I(e,t,i){var s;e[t]=i,i==null&&t in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&e.removeAttribute(t)}var J=V({react:N,tagName:"spotify-audio",elementClass:q,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":H(e)}});export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as W}from"./sentry-SNkBC2Al.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f2463f5-cadb-4a0f-a184-2a72be6fe7c8",e._sentryDebugIdIdentifier="sentry-dbid-9f2463f5-cadb-4a0f-a184-2a72be6fe7c8")}catch{}})();const L="https://player.twitch.tv",x=/(?:www\.|go\.)?twitch\.tv\/(?:videos?\/|\?video=)(\d+)($|\?)/,U=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,k={IDLE:"Idle",ENDED:"Ended"},v={PAUSE:2,PLAY:3,SEEK:4,SET_MUTED:10,SET_VOLUME:11};function N(e,t={}){const i={src:C(e,t),frameborder:"0",width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; picture-in-picture;",sandbox:"allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",scrolling:"no"};return t.config&&(i["data-config"]=JSON.stringify(t.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -18,4 +18,4 @@ import{P as W}from"./sentry-DBhcw6Be.js";(function(){try{var e=typeof window<"u"
|
|
|
18
18
|
}
|
|
19
19
|
</style>
|
|
20
20
|
<iframe${B(i)}></iframe>
|
|
21
|
-
`}function
|
|
21
|
+
`}function C(e,t){var i;if(!e.src)return;const n=e.src.match(x),l=e.src.match(U),u={parent:(i=globalThis.location)==null?void 0:i.hostname,controls:e.controls===""?null:!1,autoplay:e.autoplay===""?null:!1,muted:e.muted,preload:e.preload,...t.config};if(n){const r=n[1];return`${L}/?video=v${r}&${D(u)}`}else if(l){const r=l[1];return`${L}/?channel=${r}&${D(u)}`}return""}class O extends(globalThis.HTMLElement??class{}){static getTemplateHTML=N;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","loop","muted","playsinline","preload","src"];loadComplete=new I;#o;#r;#e;#t={};#d=0;#a=!1;#l=1;#u=!this.autoplay;#n=!1;#s=0;#c=null;constructor(){super(),this.#f("config")}get config(){return this.#c}set config(t){this.#c=t}async load(){if(this.#o)return;this.shadowRoot||this.attachShadow({mode:"open"});const t=!this.#r;if(this.#r&&(this.loadComplete=new I),this.#r=!0,await(this.#o=Promise.resolve()),this.#o=null,this.#s=0,this.dispatchEvent(new Event("emptied")),!this.src){this.shadowRoot.innerHTML="",globalThis.removeEventListener("message",this.#h);return}this.dispatchEvent(new Event("loadstart"));let i=this.shadowRoot.querySelector("iframe");const n=j(this.attributes);t&&i&&(this.#c=JSON.parse(i.getAttribute("data-config")||"{}")),(!i?.src||i.src!==C(n,this))&&(this.shadowRoot.innerHTML=N(n,this),i=this.shadowRoot.querySelector("iframe")),this.#e=i,globalThis.addEventListener("message",this.#h)}attributeChangedCallback(t,i,n){if(i!==n)switch(t){case"src":case"controls":{this.load();break}}}getVideoPlaybackQuality(){return this.#t.stats.videoStats}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t)}get readyState(){return this.#s}get seeking(){return this.#n}get buffered(){var t,i;return F(0,((i=(t=this.#t.stats)==null?void 0:t.videoStats)==null?void 0:i.bufferSize)??0)}get paused(){return this.#t.playback?this.#t.playback===k.IDLE:this.#u}get ended(){return this.#t.playback?this.#t.playback===k.ENDED:!1}get duration(){return this.#t.duration??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return this.#t.currentTime?this.#t.currentTime:this.#d}set currentTime(t){this.#d=t,this.loadComplete.then(()=>{this.#i(v.SEEK,t)})}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.toggleAttribute("loop",!!t)}get muted(){return this.#a}set muted(t){this.#a=t,this.loadComplete.then(()=>{this.#i(v.SET_MUTED,t)})}get volume(){return this.#l}set volume(t){this.#l=t,this.loadComplete.then(()=>{this.#i(v.SET_VOLUME,t)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.toggleAttribute("playsinline",!!t)}play(){this.#u=!1,this.#i(v.PLAY)}pause(){this.#u=!0,this.#i(v.PAUSE)}#h=async t=>{var i,n,l,u;if(!this.#e.contentWindow)return;const{data:r,source:E}=t;if(E===this.#e.contentWindow){if(r.namespace==="twitch-embed")await new Promise(p=>setTimeout(p,10)),r.eventName==="ready"?(this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve(),this.#s=1,this.dispatchEvent(new Event("loadedmetadata"))):r.eventName==="seek"?(this.#n=!0,this.dispatchEvent(new Event("seeking"))):r.eventName==="playing"?(this.#n&&(this.#n=!1,this.dispatchEvent(new Event("seeked"))),this.#s=3,this.dispatchEvent(new Event("playing"))):this.dispatchEvent(new Event(r.eventName));else if(r.namespace==="twitch-embed-player-proxy"&&r.eventName==="UPDATE_STATE"){const p=this.#t.duration,g=this.#t.currentTime,f=this.#t.volume,b=this.#t.muted,y=(n=(i=this.#t.stats)==null?void 0:i.videoStats)==null?void 0:n.bufferSize;this.#t={...this.#t,...r.params},p!==this.#t.duration&&this.dispatchEvent(new Event("durationchange")),g!==this.#t.currentTime&&this.dispatchEvent(new Event("timeupdate")),(f!==this.#t.volume||b!==this.#t.muted)&&(this.#t.volume!==void 0&&(this.#l=this.#t.volume),this.#t.muted!==void 0&&(this.#a=this.#t.muted),this.dispatchEvent(new Event("volumechange"))),y!==((u=(l=this.#t.stats)==null?void 0:l.videoStats)==null?void 0:u.bufferSize)&&this.dispatchEvent(new Event("progress"))}}};#i(t,i){if(!this.#e.contentWindow)return;const n={eventName:t,params:i,namespace:"twitch-embed-player-proxy"};this.#e.contentWindow.postMessage(n,L)}#f(t){if(Object.prototype.hasOwnProperty.call(this,t)){const i=this[t];delete this[t],this[t]=i}}}function j(e){let t={};for(let i of e)t[i.name]=i.value;return t}function B(e){let t="";for(const i in e){const n=e[i];n===""?t+=` ${_(i)}`:t+=` ${_(i)}="${_(`${n}`)}"`}return t}function _(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function D(e){return String(new URLSearchParams(z(e)))}function z(e){let t={};for(let i in e){let n=e[i];n===!0||n===""?t[i]=!0:n===!1?t[i]=!1:n!=null&&(t[i]=n)}return t}class I extends Promise{constructor(t=()=>{}){let i,n;super((l,u)=>{t(l,u),i=l,n=u}),this.resolve=i,this.reject=n}}function F(e,t){return Array.isArray(e)?M(e):t==null||t===0?M([[0,0]]):M([[e,t]])}function M(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("twitch-video")&&globalThis.customElements.define("twitch-video",O);var q=O,V=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),J={className:"class",htmlFor:"for"};function $(e){return e.toLowerCase()}function H(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function K({react:e,tagName:t,elementClass:i,events:n,displayName:l,defaultProps:u,toAttributeName:r=$,toAttributeValue:E=H}){const T=Number.parseInt(e.version)>=19,p=e.forwardRef((g,f)=>{var b,y;const c=e.useRef(null),A=e.useRef(new Map),S={},P={},d={},w={};for(const[s,o]of Object.entries(g)){if(V.has(s)){d[s]=o;continue}const a=r(J[s]??s);if(i.prototype&&s in i.prototype&&!(s in(((b=globalThis.HTMLElement)==null?void 0:b.prototype)??{}))&&!((y=i.observedAttributes)!=null&&y.some(m=>m===a))){w[s]=o;continue}if(s.startsWith("on")){S[s]=o;continue}const h=E(o);if(a&&h!=null&&(P[a]=String(h),T||(d[a]=h)),a&&T){const m=H(o);h!==m?d[a]=h:d[a]=o}}if(typeof window<"u"){for(const s in S){const o=S[s],a=s.endsWith("Capture"),h=(n?.[s]??s.slice(2).toLowerCase()).slice(0,a?-7:void 0);e.useLayoutEffect(()=>{const m=c?.current;if(!(!m||typeof o!="function"))return m.addEventListener(h,o,a),()=>{m.removeEventListener(h,o,a)}},[c?.current,o])}e.useLayoutEffect(()=>{if(c.current===null)return;const s=new Map;for(const o in w)R(c.current,o,w[o]),A.current.delete(o),s.set(o,w[o]);for(const[o,a]of A.current)R(c.current,o,void 0);A.current=s})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:s,delegatesFocus:o}=i.shadowRootOptions,a=e.createElement("template",{shadowrootmode:s,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(P,g)},key:"ce-la-react-ssr-template-shadow-root"});d.children=[a,d.children]}return e.createElement(t,{...u,...d,ref:e.useCallback(s=>{c.current=s,typeof f=="function"?f(s):f!==null&&(f.current=s)},[f])},d.children)});return p.displayName=l??i.name,p}function R(e,t,i){var n;e[t]=i,i==null&&t in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&e.removeAttribute(t)}var Q=K({react:W,tagName:"twitch-video",elementClass:q,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":$(e)}});export{Q as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as O}from"./sentry-SNkBC2Al.js";import{M as P,C as A}from"./mixin-BPAPQfSE.js";import{H as f}from"./hls-DifHSkbp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new t.Error().stack;v&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[v]="bb573115-76c9-4edd-a010-83c58654dd66",t._sentryDebugIdIdentifier="sentry-dbid-bb573115-76c9-4edd-a010-83c58654dd66")}catch{}})();const x=t=>class extends t{static shadowRootOptions={...t.shadowRootOptions};static getTemplateHTML=(e,s={})=>{const{src:h,...y}=e;return`
|
|
2
2
|
<script type="application/json" id="config">
|
|
3
3
|
${JSON.stringify(s.config||{})}
|
|
4
4
|
<\/script>
|
|
5
5
|
${t.getTemplateHTML(y)}
|
|
6
|
-
`};#e=null;#t=null;constructor(){super(),this.#o("config")}get config(){return this.#t}set config(e){this.#t=e}attributeChangedCallback(e,s,h){e!=="src"&&super.attributeChangedCallback(e,s,h),e==="src"&&s!=h&&this.load()}#n(){var e,s;(e=this.#e)==null||e.remove(),(s=this.nativeEl)==null||s.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var e,s;const h=!this.api;if(this.#n(),!!this.src){if(h&&!this.#t&&(this.#t=JSON.parse(((e=this.shadowRoot.getElementById("config"))==null?void 0:e.textContent)||"{}")),f.isSupported()){switch(await Promise.resolve(),this.api=new f({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const r=()=>this.api.startLoad();this.nativeEl.addEventListener("play",r,{once:!0}),this.api.on(f.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",r)});break}case"metadata":{const r=this.api.config.maxBufferLength,o=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const i=()=>{this.api.config.maxBufferLength=r,this.api.config.maxBufferSize=o};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(f.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",i)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.#e=document.createElement("source"),this.#e.setAttribute("type","application/x-mpegURL"),this.#e.setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(this.#e);const y=new WeakMap;this.api.on(f.Events.MANIFEST_PARSED,(r,o)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(d=>{console.warn("Autoplay failed:",d)}),
|
|
6
|
+
`};#e=null;#t=null;constructor(){super(),this.#o("config")}get config(){return this.#t}set config(e){this.#t=e}attributeChangedCallback(e,s,h){e!=="src"&&super.attributeChangedCallback(e,s,h),e==="src"&&s!=h&&this.load()}#n(){var e,s;(e=this.#e)==null||e.remove(),(s=this.nativeEl)==null||s.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var e,s;const h=!this.api;if(this.#n(),!!this.src){if(h&&!this.#t&&(this.#t=JSON.parse(((e=this.shadowRoot.getElementById("config"))==null?void 0:e.textContent)||"{}")),f.isSupported()){switch(await Promise.resolve(),this.api=new f({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const r=()=>this.api.startLoad();this.nativeEl.addEventListener("play",r,{once:!0}),this.api.on(f.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",r)});break}case"metadata":{const r=this.api.config.maxBufferLength,o=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const i=()=>{this.api.config.maxBufferLength=r,this.api.config.maxBufferSize=o};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(f.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",i)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.#e=document.createElement("source"),this.#e.setAttribute("type","application/x-mpegURL"),this.#e.setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(this.#e);const y=new WeakMap;this.api.on(f.Events.MANIFEST_PARSED,(r,o)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(d=>{console.warn("Autoplay failed:",d)}),T();let i=this.videoTracks.getTrackById("main");i||(i=this.addVideoTrack("main"),i.id="main",i.selected=!0);for(const[d,l]of o.levels.entries()){const u=i.addRendition(l.url[0],l.width,l.height,l.videoCodec,l.bitrate);y.set(l,`${d}`),u.id=`${d}`}for(let[d,l]of o.audioTracks.entries()){const u=l.default?"main":"alternative",b=this.addAudioTrack(u,l.name,l.lang);b.id=`${d}`,l.default&&(b.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var r;const o=+((r=[...this.audioTracks].find(d=>d.enabled))==null?void 0:r.id),i=this.api.audioTracks.map(d=>d.id);o!=this.api.audioTrack&&i.includes(o)&&(this.api.audioTrack=o)}),this.api.on(f.Events.LEVELS_UPDATED,(r,o)=>{const i=this.videoTracks[this.videoTracks.selectedIndex??0];if(!i)return;const d=o.levels.map(l=>y.get(l));for(const l of this.videoRenditions)l.id&&!d.includes(l.id)&&i.removeRendition(l)});let E=null;this.api.on(f.Events.ERROR,(r,o)=>{o.type===f.ErrorTypes.NETWORK_ERROR&&o.details===f.ErrorDetails.FRAG_LOAD_ERROR&&(E=o.frag.level)}),this.api.on(f.Events.LEVEL_SWITCHED,(r,o)=>{const i=o.level;E!==null&&i<E&&(console.warn(`⚠️ hls.js downgraded quality from level ${E} to ${i} due to fragment load failure.`),this.videoRenditions.selectedIndex=i,E=null)});const L=r=>{const o=r.target.selectedIndex;o!=this.api.nextLevel&&(this.api.nextLevel=o)};(s=this.videoRenditions)==null||s.addEventListener("change",L);const T=()=>{for(const r of this.videoTracks)this.removeVideoTrack(r);for(const r of this.audioTracks)this.removeAudioTrack(r)};this.api.once(f.Events.DESTROYING,T);return}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}#i=()=>{var e,s,h;(e=this.nativeEl)!=null&&e.webkitCurrentPlaybackTargetIsWireless?(s=this.api)==null||s.stopLoad():(h=this.api)==null||h.startLoad()};#o(e){if(Object.prototype.hasOwnProperty.call(this,e)){const s=this[e];delete this[e],this[e]=s}}},S=x(P(A));globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",S);var H=S,D=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),N={className:"class",htmlFor:"for"};function M(t){return t.toLowerCase()}function _(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function C({react:t,tagName:v,elementClass:e,events:s,displayName:h,defaultProps:y,toAttributeName:E=M,toAttributeValue:L=_}){const T=Number.parseInt(t.version)>=19,r=t.forwardRef((o,i)=>{var d,l;const u=t.useRef(null),b=t.useRef(new Map),w={},R={},p={},k={};for(const[n,a]of Object.entries(o)){if(D.has(n)){p[n]=a;continue}const c=E(N[n]??n);if(e.prototype&&n in e.prototype&&!(n in(((d=globalThis.HTMLElement)==null?void 0:d.prototype)??{}))&&!((l=e.observedAttributes)!=null&&l.some(m=>m===c))){k[n]=a;continue}if(n.startsWith("on")){w[n]=a;continue}const g=L(a);if(c&&g!=null&&(R[c]=String(g),T||(p[c]=g)),c&&T){const m=_(a);g!==m?p[c]=g:p[c]=a}}if(typeof window<"u"){for(const n in w){const a=w[n],c=n.endsWith("Capture"),g=(s?.[n]??n.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const m=u?.current;if(!(!m||typeof a!="function"))return m.addEventListener(g,a,c),()=>{m.removeEventListener(g,a,c)}},[u?.current,a])}t.useLayoutEffect(()=>{if(u.current===null)return;const n=new Map;for(const a in k)I(u.current,a,k[a]),b.current.delete(a),n.set(a,k[a]);for(const[a,c]of b.current)I(u.current,a,void 0);b.current=n})}if(typeof window>"u"&&e?.getTemplateHTML&&e?.shadowRootOptions){const{mode:n,delegatesFocus:a}=e.shadowRootOptions,c=t.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(R,o)},key:"ce-la-react-ssr-template-shadow-root"});p.children=[c,p.children]}return t.createElement(v,{...y,...p,ref:t.useCallback(n=>{u.current=n,typeof i=="function"?i(n):i!==null&&(i.current=n)},[i])},p.children)});return r.displayName=h??e.name,r}function I(t,v,e){var s;t[v]=e,e==null&&v in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&t.removeAttribute(v)}var j=C({react:O,tagName:"hls-video",elementClass:H,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":M(t)}});export{j as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as D}from"./sentry-SNkBC2Al.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="93c445e0-9679-4c79-9fe3-aa9f34036b83",t._sentryDebugIdIdentifier="sentry-dbid-93c445e0-9679-4c79-9fe3-aa9f34036b83")}catch{}})();const W=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],A=globalThis.document?.createElement("template");A&&(A.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -14,9 +14,9 @@ import{P as D}from"./sentry-DBhcw6Be.js";(function(){try{var t=typeof window<"u"
|
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
16
|
<slot></slot>
|
|
17
|
-
`);const N=(t,{tag:i,is:o})=>{const d=globalThis.document?.createElement(i,{is:o}),c=d?S(d):[];return class g extends t{static Events=W;static template=A;static skipAttributes=[];static#s;static get observedAttributes(){return g.#l(),[...d?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static#l(){if(this.#s)return;this.#s=!0;const e=new Set(this.observedAttributes);e.delete("muted");for(let s of c){if(s in this.prototype)continue;if(typeof d[s]=="function")this.prototype[s]=function(...r){this.#t();const a=()=>this.call?this.call(s,...r):this.nativeEl[s].apply(this.nativeEl,r);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(a):a()};else{let r={get(){this.#t();let a=s.toLowerCase();if(e.has(a)){const p=this.getAttribute(a);return p===null?!1:p===""?!0:p}return this.get?.(s)??this.nativeEl?.[s]??this.#i[s]}};s!==s.toUpperCase()&&(r.set=async function(a){this.#t();let p=s.toLowerCase();if(e.has(p)){a===!0||a===!1||a==null?this.toggleAttribute(p,!!a):this.setAttribute(p,a);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(s,a);return}this.nativeEl[s]=a}),Object.defineProperty(this.prototype,s,r)}}}#o;#n;#r=!1;#e=!1;#a;#i;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==g.prototype.load&&(this.loadComplete=new O)}get loadComplete(){return this.#n}set loadComplete(e){this.#e=!1,this.#n=e,e?.then(()=>{this.#e=!0})}get isLoaded(){return this.#e}get nativeEl(){return this.#a??this.shadowRoot.querySelector(i)??this.querySelector(i)}set nativeEl(e){this.#a=e}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(e){this.setAttribute("preload",`${e}`)}async#t(){if(this.#o)return;this.#o=!0,this.#u(),this.#c();for(let u of c)this.#d(u);const e=new Map,s=this.shadowRoot.querySelector("slot:not([name])");s?.addEventListener("slotchange",()=>{const u=new Map(e);s.assignedElements().filter(r=>["track","source"].includes(r.localName)).forEach(async r=>{u.delete(r);let a=e.get(r);a||(a=r.cloneNode(),e.set(r,a)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(a)}),u.forEach(r=>r.remove())});for(let u of this.constructor.Events)this.shadowRoot.addEventListener?.(u,r=>{r.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(r.type,{detail:r.detail}))},!0)}#d(e){if(Object.prototype.hasOwnProperty.call(this,e)){const s=this[e];delete this[e],this[e]=s}}#u(){const e=document.createElement(i,{is:o});e.muted=this.hasAttribute("muted");for(let{name:s,value:u}of this.attributes)e.setAttribute(s,u);this.#i={};for(let s of S(e))this.#i[s]=e[s];e.removeAttribute("src"),e.load()}async#c(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const e=document.createElement(i,{is:o});e.part=i,this.shadowRoot.append(e)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(e,s,u){this.#t(),e==="src"&&this.load!==g.prototype.load&&this.#h(),this.#p(e,s,u)}async#h(){this.#r&&(this.loadComplete=new O),this.#r=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async#p(e,s,u){this.loadComplete&&!this.isLoaded&&await this.loadComplete,!["id","class",...this.constructor.skipAttributes].includes(e)&&(u===null?this.nativeEl.removeAttribute?.(e):this.nativeEl.setAttribute?.(e,u))}connectedCallback(){this.#t()}}};function S(t){let i=[];for(let o=Object.getPrototypeOf(t);o&&o!==HTMLElement.prototype;o=Object.getPrototypeOf(o))i.push(...Object.getOwnPropertyNames(o));return i}class O extends Promise{constructor(i=()=>{}){let o,d;super((c,f)=>{i(c,f),o=c,d=f}),this.resolve=o,this.reject=d}}const $=globalThis.document?N(HTMLElement,{tag:"video"}):class{};globalThis.document&&N(HTMLElement,{tag:"audio"});var H,
|
|
17
|
+
`);const N=(t,{tag:i,is:o})=>{const d=globalThis.document?.createElement(i,{is:o}),c=d?S(d):[];return class g extends t{static Events=W;static template=A;static skipAttributes=[];static#s;static get observedAttributes(){return g.#l(),[...d?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static#l(){if(this.#s)return;this.#s=!0;const e=new Set(this.observedAttributes);e.delete("muted");for(let s of c){if(s in this.prototype)continue;if(typeof d[s]=="function")this.prototype[s]=function(...r){this.#t();const a=()=>this.call?this.call(s,...r):this.nativeEl[s].apply(this.nativeEl,r);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(a):a()};else{let r={get(){this.#t();let a=s.toLowerCase();if(e.has(a)){const p=this.getAttribute(a);return p===null?!1:p===""?!0:p}return this.get?.(s)??this.nativeEl?.[s]??this.#i[s]}};s!==s.toUpperCase()&&(r.set=async function(a){this.#t();let p=s.toLowerCase();if(e.has(p)){a===!0||a===!1||a==null?this.toggleAttribute(p,!!a):this.setAttribute(p,a);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(s,a);return}this.nativeEl[s]=a}),Object.defineProperty(this.prototype,s,r)}}}#o;#n;#r=!1;#e=!1;#a;#i;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==g.prototype.load&&(this.loadComplete=new O)}get loadComplete(){return this.#n}set loadComplete(e){this.#e=!1,this.#n=e,e?.then(()=>{this.#e=!0})}get isLoaded(){return this.#e}get nativeEl(){return this.#a??this.shadowRoot.querySelector(i)??this.querySelector(i)}set nativeEl(e){this.#a=e}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(e){this.setAttribute("preload",`${e}`)}async#t(){if(this.#o)return;this.#o=!0,this.#u(),this.#c();for(let u of c)this.#d(u);const e=new Map,s=this.shadowRoot.querySelector("slot:not([name])");s?.addEventListener("slotchange",()=>{const u=new Map(e);s.assignedElements().filter(r=>["track","source"].includes(r.localName)).forEach(async r=>{u.delete(r);let a=e.get(r);a||(a=r.cloneNode(),e.set(r,a)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(a)}),u.forEach(r=>r.remove())});for(let u of this.constructor.Events)this.shadowRoot.addEventListener?.(u,r=>{r.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(r.type,{detail:r.detail}))},!0)}#d(e){if(Object.prototype.hasOwnProperty.call(this,e)){const s=this[e];delete this[e],this[e]=s}}#u(){const e=document.createElement(i,{is:o});e.muted=this.hasAttribute("muted");for(let{name:s,value:u}of this.attributes)e.setAttribute(s,u);this.#i={};for(let s of S(e))this.#i[s]=e[s];e.removeAttribute("src"),e.load()}async#c(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const e=document.createElement(i,{is:o});e.part=i,this.shadowRoot.append(e)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(e,s,u){this.#t(),e==="src"&&this.load!==g.prototype.load&&this.#h(),this.#p(e,s,u)}async#h(){this.#r&&(this.loadComplete=new O),this.#r=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async#p(e,s,u){this.loadComplete&&!this.isLoaded&&await this.loadComplete,!["id","class",...this.constructor.skipAttributes].includes(e)&&(u===null?this.nativeEl.removeAttribute?.(e):this.nativeEl.setAttribute?.(e,u))}connectedCallback(){this.#t()}}};function S(t){let i=[];for(let o=Object.getPrototypeOf(t);o&&o!==HTMLElement.prototype;o=Object.getPrototypeOf(o))i.push(...Object.getOwnPropertyNames(o));return i}class O extends Promise{constructor(i=()=>{}){let o,d;super((c,f)=>{i(c,f),o=c,d=f}),this.resolve=o,this.reject=d}}const $=globalThis.document?N(HTMLElement,{tag:"video"}):class{};globalThis.document&&N(HTMLElement,{tag:"audio"});var H,R;const L=(H=globalThis.document)==null?void 0:H.createElement("template");L&&(L.innerHTML=`
|
|
18
18
|
<div class="wistia_embed"></div>
|
|
19
|
-
`);const
|
|
19
|
+
`);const M=(R=globalThis.document)==null?void 0:R.createElement("template");M&&(M.innerHTML=`
|
|
20
20
|
<style>
|
|
21
21
|
:host {
|
|
22
22
|
display: inline-block;
|
|
@@ -31,4 +31,4 @@ import{P as D}from"./sentry-DBhcw6Be.js";(function(){try{var t=typeof window<"u"
|
|
|
31
31
|
}
|
|
32
32
|
</style>
|
|
33
33
|
<slot></slot>
|
|
34
|
-
`);class j extends ${static template=
|
|
34
|
+
`);class j extends ${static template=M;static skipAttributes=["src"];get nativeEl(){var i;return((i=this.api)==null?void 0:i.elem())??this.querySelector("video")}async load(){var i;if((i=this.querySelector(".wistia_embed"))==null||i.remove(),!this.src)return;await new Promise(s=>setTimeout(s,50));const o=/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i,d=this.src.match(o)[1],c={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(L.content.cloneNode(!0));const f=this.querySelector(".wistia_embed");f.id||(f.id=U(d)),f.classList.add(`wistia_async_${d}`),await B("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(s=>{globalThis._wq.push({id:f.id,onReady:s,options:c})})}async attributeChangedCallback(i,o,d){if(i==="controls"){switch(await this.loadComplete,i){case"controls":this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless();break}return}super.attributeChangedCallback(i,o,d)}get duration(){var i;return(i=this.api)==null?void 0:i.duration()}async play(){return await this.loadComplete,this.api.play(),new Promise(i=>this.addEventListener("playing",i))}}const T={};async function B(t,i){return T[t]?T[t]:self[i]?self[i]:T[t]=new Promise((o,d)=>{const c=document.createElement("script");c.defer=!0,c.src=t,c.onload=()=>o(self[i]),c.onerror=d,document.head.append(c)})}let F=0;function U(t){const i=++F;return`${t}${i}`}globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",j);var z=j,V=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),G={className:"class",htmlFor:"for"};function q(t){return t.toLowerCase()}function I(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function J({react:t,tagName:i,elementClass:o,events:d,displayName:c,defaultProps:f,toAttributeName:e=q,toAttributeValue:s=I}){const u=Number.parseInt(t.version)>=19,r=t.forwardRef((a,p)=>{var _,P;const m=t.useRef(null),E=t.useRef(new Map),C={},k={},b={},w={};for(const[n,l]of Object.entries(a)){if(V.has(n)){b[n]=l;continue}const h=e(G[n]??n);if(o.prototype&&n in o.prototype&&!(n in(((_=globalThis.HTMLElement)==null?void 0:_.prototype)??{}))&&!((P=o.observedAttributes)!=null&&P.some(v=>v===h))){w[n]=l;continue}if(n.startsWith("on")){C[n]=l;continue}const y=s(l);if(h&&y!=null&&(k[h]=String(y),u||(b[h]=y)),h&&u){const v=I(l);y!==v?b[h]=y:b[h]=l}}if(typeof window<"u"){for(const n in C){const l=C[n],h=n.endsWith("Capture"),y=(d?.[n]??n.slice(2).toLowerCase()).slice(0,h?-7:void 0);t.useLayoutEffect(()=>{const v=m?.current;if(!(!v||typeof l!="function"))return v.addEventListener(y,l,h),()=>{v.removeEventListener(y,l,h)}},[m?.current,l])}t.useLayoutEffect(()=>{if(m.current===null)return;const n=new Map;for(const l in w)x(m.current,l,w[l]),E.current.delete(l),n.set(l,w[l]);for(const[l,h]of E.current)x(m.current,l,void 0);E.current=n})}if(typeof window>"u"&&o?.getTemplateHTML&&o?.shadowRootOptions){const{mode:n,delegatesFocus:l}=o.shadowRootOptions,h=t.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:l,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(k,a)},key:"ce-la-react-ssr-template-shadow-root"});b.children=[h,b.children]}return t.createElement(i,{...f,...b,ref:t.useCallback(n=>{m.current=n,typeof p=="function"?p(n):p!==null&&(p.current=n)},[p])},b.children)});return r.displayName=c??o.name,r}function x(t,i,o){var d;t[i]=o,o==null&&i in(((d=globalThis.HTMLElement)==null?void 0:d.prototype)??{})&&t.removeAttribute(i)}var Q=J({react:D,tagName:"wistia-video",elementClass:z,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":q(t)}});export{Q as default};
|