@outmarket-ai/react-sdk 0.1.0-alpha.14 → 0.1.0-alpha.16
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/{AddNoteDialog-BL0GEtih.js → AddNoteDialog-BXcMKqZ1.js} +1 -1
- package/dist/{AlertDialog-DPADhE5F.js → AlertDialog-C9DEDOJk.js} +1 -1
- package/dist/{ApproveWorkflowsList-DI4M5epq.js → ApproveWorkflowsList-vTI3IV60.js} +1 -1
- package/dist/{BORLetterEditor-BR-fXa0o.js → BORLetterEditor-ZqsUBeyo.js} +1 -1
- package/dist/{BillDetailModal-PpccNfhN.js → BillDetailModal-gaWcjakb.js} +1 -1
- package/dist/{CoiIssueHolderModal-DvS-n-nQ.js → CoiIssueHolderModal-Vr1ThjTe.js} +1 -1
- package/dist/{DeletePromptDialog-mh0J7ii7.js → DeletePromptDialog-YvD5xrRK.js} +1 -1
- package/dist/{EmailFormatSelectionDialog-DybdVeDn.js → EmailFormatSelectionDialog-oj2ChYBP.js} +1 -1
- package/dist/{ExcelExportPreviewDialog-qH-_ZFxL.js → ExcelExportPreviewDialog-D_BU3Eg-.js} +1 -1
- package/dist/{ExplainPanel-B033xhAY.js → ExplainPanel-BJhF28It.js} +1 -1
- package/dist/{ExportDialog-C0Xv7nau.js → ExportDialog-C9WAwcY6.js} +1 -1
- package/dist/{ExportToAmsDialog-DA1f8e8w.js → ExportToAmsDialog-yNazjk-T.js} +1 -1
- package/dist/{ExportToDriveDialog-CYDwXJh6.js → ExportToDriveDialog-DF2Xh1eR.js} +1 -1
- package/dist/{FeedbackTool-C2_00m9U.js → FeedbackTool-C46OtXYp.js} +1 -1
- package/dist/{LayerDetailModal-D2w-L58N.js → LayerDetailModal-Bv61_jif.js} +1 -1
- package/dist/{LogoEditor-BpAHt64n.js → LogoEditor-BHAUcQs0.js} +1 -1
- package/dist/{MarkdownExportPreviewDialog-DOwETpGi.js → MarkdownExportPreviewDialog-CzxJcujF.js} +1 -1
- package/dist/{NotificationDrawer-BvLCqB06.js → NotificationDrawer-aCSJFdvC.js} +1 -1
- package/dist/{PhoneNumbersDisplay-B4MqJu95.js → PhoneNumbersDisplay-D9j6xmhs.js} +1 -1
- package/dist/{PlanSelector-Bobr-5LF.js → PlanSelector-en46Xov8.js} +1 -1
- package/dist/{PlanSettingsModal-CJVeux7W.js → PlanSettingsModal-Dl6h72F2.js} +1 -1
- package/dist/{PlanWizardModal-yczB9kdT.js → PlanWizardModal-CnYby_bO.js} +1 -1
- package/dist/{RenameAssetDialog-BRt7mpB5.js → RenameAssetDialog-WHSL2LgD.js} +1 -1
- package/dist/{SaveBlockDialog-hslXixiF.js → SaveBlockDialog-DSRB4Q4k.js} +1 -1
- package/dist/{SaveOutlineDialog-D7yVaVDd.js → SaveOutlineDialog-BJbc7Nl2.js} +1 -1
- package/dist/{SavePromptDialog-C0hrkCrH.js → SavePromptDialog-dUc-2L1J.js} +1 -1
- package/dist/{ShareResourceDialog-VE3FZJde.js → ShareResourceDialog-2pvneQGX.js} +1 -1
- package/dist/{TermsNoticeModal-BTv9Rb0A.js → TermsNoticeModal-CufQhNaq.js} +1 -1
- package/dist/{TowerAlertModal-B2SOQ-yF.js → TowerAlertModal-XNulb1R-.js} +1 -1
- package/dist/{TowerSummaryModal-DfqDCePA.js → TowerSummaryModal-C1bFQfEh.js} +1 -1
- package/dist/{VaultSettingsDialog-DUX-oWYx.js → VaultSettingsDialog-BJC4SwoX.js} +1 -1
- package/dist/{ViewNoteDialog-BTGfJi9l.js → ViewNoteDialog-C6ks5tQb.js} +1 -1
- package/dist/{WhatsNewProvider-CQWbyblz.js → WhatsNewProvider-Dn8IRE1u.js} +1 -1
- package/dist/{WidgetRawDataView-Choi_bJ5.js → WidgetRawDataView-BjHRsvKa.js} +1 -1
- package/dist/{abap-Dhrc-p2T.js → abap-BqgX6Jp5.js} +1 -1
- package/dist/{abnf-sTxgwUxA.js → abnf-9nUCt17M.js} +1 -1
- package/dist/{actionscript-CO7xE7Uy.js → actionscript-DRn78CzV.js} +1 -1
- package/dist/{activityLog-DKGjvqkR.js → activityLog-CwyQhA_Z.js} +1 -1
- package/dist/{ada-C5bmpvpI.js → ada-D0V4GqUu.js} +1 -1
- package/dist/{agda-BZpbhOk4.js → agda-DMCvJ9CI.js} +1 -1
- package/dist/{al-CkP28GHV.js → al-Dc3Md0On.js} +1 -1
- package/dist/{antlr4-KaehxVf3.js → antlr4-Cns5AxBH.js} +1 -1
- package/dist/{apacheconf-CBKbqeAp.js → apacheconf-DQ_lO0kV.js} +1 -1
- package/dist/{apex-wvlQz5nN.js → apex-BkNT_K1N.js} +1 -1
- package/dist/{apl-D-lS5rF6.js → apl-DTbWXkzB.js} +1 -1
- package/dist/{applescript-Bo3qBlss.js → applescript-C0q9v0t_.js} +1 -1
- package/dist/{aql-DdP28gQV.js → aql-i_-jAzHU.js} +1 -1
- package/dist/{arduino-D2oHhPgY.js → arduino-D_mvVpbS.js} +1 -1
- package/dist/{arff-DJt7qRsY.js → arff-BFwj4isq.js} +1 -1
- package/dist/{asciidoc-D1nS2DtP.js → asciidoc-KVPcjjW6.js} +1 -1
- package/dist/{asm6502-Dfk_dv2D.js → asm6502-CiDuQWfC.js} +1 -1
- package/dist/{asmatmel-DWdnYbva.js → asmatmel-LtBULuN8.js} +1 -1
- package/dist/{aspnet-Bc61Q-hK.js → aspnet-mZO7mfdv.js} +1 -1
- package/dist/{autohotkey-6gPC-uff.js → autohotkey-t8MhgJ3y.js} +1 -1
- package/dist/{autoit-CdH8SmWO.js → autoit-D9xXYHEI.js} +1 -1
- package/dist/{avisynth-DcNz7cLt.js → avisynth-BpX45RoI.js} +1 -1
- package/dist/{avro-idl-CutWYgxK.js → avro-idl-DyYKL9Lg.js} +1 -1
- package/dist/{bash-KOu4FGsM.js → bash-KXrp0wlw.js} +1 -1
- package/dist/{basic-D6IeClPK.js → basic-0BMZz-kV.js} +1 -1
- package/dist/{batch-CaSyan9t.js → batch-CCRucjat.js} +1 -1
- package/dist/{bbcode-BbiBjMRj.js → bbcode-DxjollMP.js} +1 -1
- package/dist/{bell-DGtPe2es.js → bell-DvlROquw.js} +1 -1
- package/dist/{bicep-5m0h6fRd.js → bicep-BjcgBZz0.js} +1 -1
- package/dist/{birb-DLk6cV73.js → birb-CdM4qTaZ.js} +1 -1
- package/dist/{bison-BcdOj5qU.js → bison-B10zEa0C.js} +1 -1
- package/dist/{blockEditorContent-CtSL2Cs3.js → blockEditorContent-B2FYvfS-.js} +1 -1
- package/dist/{bnf-B03o2sLN.js → bnf-C2XE5KeH.js} +1 -1
- package/dist/{brainfuck-DqFDTaKJ.js → brainfuck-D-4ijYnA.js} +1 -1
- package/dist/{brightscript-CtJG8vlg.js → brightscript-s4XTOtCp.js} +1 -1
- package/dist/{bro-BtKoi6rO.js → bro-BzMJ7Vda.js} +1 -1
- package/dist/{bsl-Bzz8h-a2.js → bsl-ogXzC0G1.js} +1 -1
- package/dist/{c-hMtsPBLc.js → c-DgklJjuR.js} +1 -1
- package/dist/{calendar-CYyGVH0f.js → calendar-D4LgtZMv.js} +1 -1
- package/dist/{cfscript-BOnF2dnv.js → cfscript-hNHeNOEh.js} +1 -1
- package/dist/{chaiscript-CfNYt_B8.js → chaiscript-iIeabmwd.js} +1 -1
- package/dist/{cil-DNVRAwAA.js → cil-C3OpSUjK.js} +1 -1
- package/dist/{clike-BINgVVnA.js → clike-CbLsh2Lv.js} +1 -1
- package/dist/{clojure-DlEPZHzR.js → clojure-CUgRihct.js} +1 -1
- package/dist/{cmake-CzjRwuke.js → cmake-BHSI_9ml.js} +1 -1
- package/dist/{cobol-WWs7gQpU.js → cobol-Ck2yDur6.js} +1 -1
- package/dist/{coffeescript-DmIiqSQL.js → coffeescript--CLcihJ4.js} +1 -1
- package/dist/{concurnas-DDEIo0Oz.js → concurnas-pvZ_mOF8.js} +1 -1
- package/dist/{contactsList-hmCdwvDh.js → contactsList-BVi25HoN.js} +2 -2
- package/dist/{copyPreviewToClipboard-Mq0GVCmq.js → copyPreviewToClipboard-ui8loMip.js} +1 -1
- package/dist/{coq-CHF-6LuY.js → coq-BTaxcgj5.js} +1 -1
- package/dist/{core-CSWukMB6.js → core-DNTo4ZLu.js} +1 -1
- package/dist/{cpp-C2gpJhtf.js → cpp-U9FGFBMq.js} +1 -1
- package/dist/{crystal-B1d_5Ei7.js → crystal-DsuNVX4-.js} +1 -1
- package/dist/{csharp-BjHvOfGu.js → csharp-B8c-DtTF.js} +1 -1
- package/dist/{cshtml-DR6rVWkH.js → cshtml-DWuuzO9R.js} +1 -1
- package/dist/{csp-D3ZFa5Dh.js → csp-DxMynwD7.js} +1 -1
- package/dist/{css-Bp3yFEho.js → css-DFCjheZD.js} +1 -1
- package/dist/{css-extras-B4rHc412.js → css-extras-CQh9Oo2p.js} +1 -1
- package/dist/{csv-C-EjdH3Q.js → csv-CwG8W0tw.js} +1 -1
- package/dist/{cypher-CHxBnik8.js → cypher-o-Q8GpfX.js} +1 -1
- package/dist/{d-DFUWTDU3.js → d-0ThVA6Oz.js} +1 -1
- package/dist/{dart-BJeBBmZW.js → dart-M5nEw5ef.js} +1 -1
- package/dist/{dataweave-Ce-gl_jI.js → dataweave-BTRDZd7l.js} +1 -1
- package/dist/{dax-jiVxpNq-.js → dax-CiEuRcKH.js} +1 -1
- package/dist/{dhall-BPSfgG3B.js → dhall-ByT7jh_y.js} +1 -1
- package/dist/{diff-DBdxSJ9m.js → diff-DPbCV6fN.js} +1 -1
- package/dist/{django-BFQk7clY.js → django-Dbn95OGf.js} +1 -1
- package/dist/{dns-zone-file-EWUuAsV1.js → dns-zone-file-BOGWMM1o.js} +1 -1
- package/dist/{docker-D-T4kmLF.js → docker-DrPpOx7z.js} +1 -1
- package/dist/{dot-DiSINfRI.js → dot-ChAqu9Z8.js} +1 -1
- package/dist/{ebnf-C67opg1c.js → ebnf-Djhy3lcy.js} +1 -1
- package/dist/{editCarrierDialog-BXGnVeVx.js → editCarrierDialog-DD1hIP3Q.js} +1 -1
- package/dist/{editorconfig-Df4Edq8a.js → editorconfig-Dt7UoEf4.js} +1 -1
- package/dist/{eiffel-DVwB1eXy.js → eiffel-BW5BEUjx.js} +1 -1
- package/dist/{ejs-S7V22gBB.js → ejs-DE3_VDy5.js} +1 -1
- package/dist/{elixir-Cs4LN0AO.js → elixir-DpFPjwew.js} +1 -1
- package/dist/{elm-4ajV86Sl.js → elm-DGrvKKdw.js} +1 -1
- package/dist/{erb-CSzurQaD.js → erb-DLf3ql4j.js} +1 -1
- package/dist/{erlang-scDiclry.js → erlang-DZX80HV3.js} +1 -1
- package/dist/{etlua-DXfyqV9B.js → etlua-B-hLKbDu.js} +1 -1
- package/dist/{excel-formula-OHb__Ly6.js → excel-formula-CLFXB5bv.js} +1 -1
- package/dist/{exportFileGeneration-Cvi25fHq.js → exportFileGeneration-TN0srRUc.js} +1 -1
- package/dist/{exportImageReadiness-9FNbGX_O.js → exportImageReadiness-BxqWxsco.js} +1 -1
- package/dist/{exportImageReadinessNotifier-D1bAypM8.js → exportImageReadinessNotifier-gxFLw3OD.js} +1 -1
- package/dist/{exportPageHtml-DRGzk3lg.js → exportPageHtml-3os6ERoG.js} +1 -1
- package/dist/{exportPreviewToDocx-Co3Q33v0.js → exportPreviewToDocx-Cdx3cTeU.js} +2 -2
- package/dist/{exportPreviewToPdf-DUVr45sd.js → exportPreviewToPdf-B7xjCu0j.js} +1 -1
- package/dist/{factor-CaOGTn5X.js → factor-CkPux6n1.js} +1 -1
- package/dist/{false-Bi1GYmFa.js → false-DC13Q8du.js} +1 -1
- package/dist/{firestore-security-rules-D2Vaobn-.js → firestore-security-rules-U5gzKXvv.js} +1 -1
- package/dist/{flask-conical-BnzsmSqo.js → flask-conical-nC8mH7pZ.js} +1 -1
- package/dist/{flow-D_tbiJ_P.js → flow-Dn2Cbnwa.js} +1 -1
- package/dist/{fortran-DRw_TxRx.js → fortran-Cjnl0mS1.js} +1 -1
- package/dist/{fsharp-BuoJFDn9.js → fsharp-9bBxei_x.js} +1 -1
- package/dist/{ftl-CmSwVi6R.js → ftl-B8nYled0.js} +1 -1
- package/dist/{gap-B_5X3HMn.js → gap-7XbwIGDA.js} +1 -1
- package/dist/{gcode-DwCa_YqO.js → gcode-Dl8YYfiO.js} +1 -1
- package/dist/{gdscript-POe4AH6w.js → gdscript-UE4SzoSH.js} +1 -1
- package/dist/{gedcom-D7cACtEC.js → gedcom-CNRweabJ.js} +1 -1
- package/dist/{gherkin-DFIpdlvT.js → gherkin-OcBCJhAR.js} +1 -1
- package/dist/{git-DBwViHwK.js → git-C7CrD71c.js} +1 -1
- package/dist/{glsl-CP1yij7a.js → glsl-DgxTBEll.js} +1 -1
- package/dist/{gml-CAIHBjD0.js → gml-D4uvSgTT.js} +1 -1
- package/dist/{gn-CYK1_zJO.js → gn-CQItPYoL.js} +1 -1
- package/dist/{go-BP0HAXhc.js → go-cxacs8lI.js} +1 -1
- package/dist/{go-module-Ci7fQ2S2.js → go-module-CGtYT7ul.js} +1 -1
- package/dist/{graphql-C_mXcBX3.js → graphql-Ckpsa1vf.js} +1 -1
- package/dist/{groovy-Cf_WfAAS.js → groovy-DdoqI2W9.js} +1 -1
- package/dist/{haml-CX0Zhnht.js → haml-BXXPiicq.js} +1 -1
- package/dist/{handlebars-DrxxPao3.js → handlebars-p50xGbhW.js} +1 -1
- package/dist/{haskell-BaQ2J7yl.js → haskell-CSjHODzN.js} +1 -1
- package/dist/{haxe-JcLbeK59.js → haxe-BNJv_mjK.js} +1 -1
- package/dist/{hcl-a-Lkk_4L.js → hcl-D5GaoKpk.js} +1 -1
- package/dist/{highlighter-BRhAyKjW.js → highlighter-BA3cj_rw.js} +1 -1
- package/dist/{hlsl-CLCrdCIn.js → hlsl-CrWZY_JC.js} +1 -1
- package/dist/{hoon-DIPq-h3U.js → hoon-D8fxFPgQ.js} +1 -1
- package/dist/{hpkp-BhhbweDS.js → hpkp-CDXVdksJ.js} +1 -1
- package/dist/{hsts-CocNi1FO.js → hsts-DaqLGhl2.js} +1 -1
- package/dist/{http-CHFiiMn_.js → http-DMq0r1ob.js} +1 -1
- package/dist/{ichigojam-Dtjt1fv9.js → ichigojam-DO3yRLga.js} +1 -1
- package/dist/{icon-D6lBcjpS.js → icon-DYgsCUbt.js} +1 -1
- package/dist/{icu-message-format-DRz8Ojrb.js → icu-message-format-C-yIk6i3.js} +1 -1
- package/dist/{idris-2WYHhx79.js → idris-BcMnvaZR.js} +1 -1
- package/dist/{iecst-C57B28fL.js → iecst-DNu7Wqgu.js} +1 -1
- package/dist/{ignore-C72pLa9S.js → ignore-Cs_UVgYl.js} +1 -1
- package/dist/{image-plus-DhikzzvL.js → image-plus-CaRUwRF7.js} +1 -1
- package/dist/{index-D0kTQgQT.js → index-CNHn8tVc.js} +1 -1
- package/dist/{index-B1va2k4a.js → index-CfpedKNG.js} +1 -1
- package/dist/{index-D-h26zxp.js → index-D0lEPM6q.js} +1 -1
- package/dist/{index-DiGRBOlk.js → index-DHNorzYp.js} +1 -1
- package/dist/index-DYKYPQU9.js +1 -0
- package/dist/{index-CdZ6xu9W.js → index-EXM3eC5B.js} +1 -1
- package/dist/{index-Mv-8-Ty1.js → index-NPOcZ2DK.js} +1 -1
- package/dist/{index.client-DT7SsTjk.js → index.client-CAZURgAJ.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{inform7-w9gLdejc.js → inform7-B2E2qd7c.js} +1 -1
- package/dist/{ini-wWt66KqP.js → ini-DcQ7hxWn.js} +1 -1
- package/dist/{io-BknZ3vTW.js → io-DjmtTkTU.js} +1 -1
- package/dist/{j-CHkILMeU.js → j-C6IIjCgf.js} +1 -1
- package/dist/{java-9wLrRzF-.js → java-CNKt23Qo.js} +1 -1
- package/dist/{javadoc-x2s58K4P.js → javadoc-tZDkZvKD.js} +1 -1
- package/dist/{javadoclike-9o8fUSg5.js → javadoclike-CS4VEqnC.js} +1 -1
- package/dist/{javascript-zunylXB-.js → javascript-DosTVR_L.js} +1 -1
- package/dist/{javastacktrace-csNrFwTY.js → javastacktrace-CrUXYJUd.js} +1 -1
- package/dist/{jexl-Ctitt7Du.js → jexl-Cbh1tMjv.js} +1 -1
- package/dist/{jolie-Ftfd2pD4.js → jolie-Duvbfgac.js} +1 -1
- package/dist/{jq-DcEu1Ru2.js → jq-Ck04okw3.js} +1 -1
- package/dist/{js-extras-D7IMyuB5.js → js-extras-BePtYuEl.js} +1 -1
- package/dist/{js-templates-BClPuOH7.js → js-templates-B-f2ZkE0.js} +1 -1
- package/dist/{jsdoc-Dezt4ZLQ.js → jsdoc-DPYkeZsH.js} +1 -1
- package/dist/{json-DJBGl6PJ.js → json-B7QykXp8.js} +1 -1
- package/dist/{json5-BotNNfUN.js → json5-PGzoTfRb.js} +1 -1
- package/dist/{jsonp-RC3bJESD.js → jsonp-BNkQPh8f.js} +1 -1
- package/dist/{jsstacktrace-BKYe9LJ2.js → jsstacktrace-BJ-zGXtV.js} +1 -1
- package/dist/{jsx-WbJveeEQ.js → jsx-muxTSxqR.js} +1 -1
- package/dist/{julia-DVDyYGQH.js → julia-DPeDRWHf.js} +1 -1
- package/dist/{keepalived-6Yf-vh37.js → keepalived-Bjjk4Y2-.js} +1 -1
- package/dist/{keyman-BYi3T06Q.js → keyman-BWzUv0Tk.js} +1 -1
- package/dist/{kotlin-ONPA0vOs.js → kotlin-BJ_myg-j.js} +1 -1
- package/dist/{kumir-tq_E_gAM.js → kumir-mVDCXmmq.js} +1 -1
- package/dist/{kusto-BvPxFe88.js → kusto-CMoO7v3A.js} +1 -1
- package/dist/{latex-vz-fd_dI.js → latex-Cj719ebl.js} +1 -1
- package/dist/{latte-DGcuV5jO.js → latte-5ZPLy_rP.js} +1 -1
- package/dist/{less-D-O6i0nV.js → less-DR9ofw7x.js} +1 -1
- package/dist/{lilypond-YHg2-tyP.js → lilypond-CLGnhFaZ.js} +1 -1
- package/dist/{link-2-off-CWYhLKuE.js → link-2-off-D1odjiY5.js} +1 -1
- package/dist/{liquid-DnLO3vTJ.js → liquid-JMIxDMKb.js} +1 -1
- package/dist/{lisp-CiwNPgUY.js → lisp-DUI9FDhI.js} +1 -1
- package/dist/{livescript-BnTXy3Bl.js → livescript-DwTBLc1j.js} +1 -1
- package/dist/{llvm-CCY6R2Sj.js → llvm-DO9bITTH.js} +1 -1
- package/dist/{lock-keyhole-JEiLr9MZ.js → lock-keyhole-DwDf6EZg.js} +1 -1
- package/dist/{log-Cjd9FPtG.js → log-Bs9apQzr.js} +1 -1
- package/dist/{lolcode-BACsq8_J.js → lolcode-BigHAi_3.js} +1 -1
- package/dist/{lua-Cc9JWSp2.js → lua-D1gCUjYj.js} +1 -1
- package/dist/{lucide-react-BuBXbMyZ.js → lucide-react-Dgoe-P89.js} +1 -1
- package/dist/{luckyexcel.umd-D5xBvGoY.js → luckyexcel.umd-W5PLD_Er.js} +1 -1
- package/dist/{magma-DAVaW4Ly.js → magma-5SQLKcoo.js} +1 -1
- package/dist/{makefile-DEyq8gU7.js → makefile-p3yOHzON.js} +1 -1
- package/dist/{markdown-UzvhXddM.js → markdown-BzOSvWML.js} +1 -1
- package/dist/{markup-BH3l2q7M.js → markup-DRGz9zbO.js} +1 -1
- package/dist/{markup-templating-DlJLFEgZ.js → markup-templating-BY70k6h4.js} +1 -1
- package/dist/{matlab-CrObvjyY.js → matlab-Y3sUMfuD.js} +1 -1
- package/dist/{maxscript-BsKTbfj3.js → maxscript-S83gN8Tk.js} +1 -1
- package/dist/{mel-D8tSYs95.js → mel-Bo9sDUgd.js} +1 -1
- package/dist/{mermaid-DukMdAOw.js → mermaid-DB1WBKXu.js} +1 -1
- package/dist/{mizar-DY0NrHdx.js → mizar-D-V__A_A.js} +1 -1
- package/dist/{mongodb-MuO1epFj.js → mongodb-CcD1QnEE.js} +1 -1
- package/dist/{monkey-V3h87nZD.js → monkey-DSpf80b7.js} +1 -1
- package/dist/{moonscript-C5nsdD1c.js → moonscript-Cfp9ErBx.js} +1 -1
- package/dist/{n1ql-BmfZsMlL.js → n1ql-CkchNjok.js} +1 -1
- package/dist/{n4js-CXKoOfyC.js → n4js-C2qZKrFy.js} +1 -1
- package/dist/{nand2tetris-hdl-B_uemGsy.js → nand2tetris-hdl-D0w-sn3c.js} +1 -1
- package/dist/{naniscript-Cmr6AO7N.js → naniscript-CAWjPGv0.js} +1 -1
- package/dist/{nasm-DY9i6lfm.js → nasm-WTF-uC5Z.js} +1 -1
- package/dist/{neon-CU_a2ZUY.js → neon-C3StIxqS.js} +1 -1
- package/dist/{nevod-CRMC9sNi.js → nevod-BVL-7JyU.js} +1 -1
- package/dist/{nginx-BhPmO3UM.js → nginx-DR9J_3vc.js} +1 -1
- package/dist/{nim-DB5fLMDX.js → nim-DcdkLkWI.js} +1 -1
- package/dist/{nix-Bqjv8P0o.js → nix-8g7Pk_Tc.js} +1 -1
- package/dist/{nsis-CVBgV0zR.js → nsis-dZ9Nr3BK.js} +1 -1
- package/dist/{objectivec-CQk0AdRP.js → objectivec-C5nDsZdC.js} +1 -1
- package/dist/{ocaml-Bq_0Q796.js → ocaml-DDAQWGzL.js} +1 -1
- package/dist/{opencl-DNdqVqcU.js → opencl-CAjwdPia.js} +1 -1
- package/dist/{openqasm-CUZ1Jlax.js → openqasm-DZI4c2V_.js} +1 -1
- package/dist/{oz-CuryEaXb.js → oz-DyDMUNJy.js} +1 -1
- package/dist/{paintbrush-6DJ7xTqd.js → paintbrush-CoZyM9w2.js} +1 -1
- package/dist/{parigp-DqoBO0F5.js → parigp-CIq_seKA.js} +1 -1
- package/dist/{parser-BK5k8UZ5.js → parser-BKiwwpSR.js} +1 -1
- package/dist/{pascal-DA4gdbHh.js → pascal-CznVm8T1.js} +1 -1
- package/dist/{pascaligo-C-GHFvki.js → pascaligo-CG4QyBa8.js} +1 -1
- package/dist/{pcaxis-Cb21G6on.js → pcaxis-BuxUnHUZ.js} +1 -1
- package/dist/{pen-tool-CLHFqzb0.js → pen-tool-B3d9v3cK.js} +1 -1
- package/dist/{peoplecode-Dh2bV-Wy.js → peoplecode-B8CWhx9D.js} +1 -1
- package/dist/{perl-DUggRdua.js → perl-CutwWkZX.js} +1 -1
- package/dist/{php-BTNonMZQ.js → php-Bm0UURkz.js} +1 -1
- package/dist/{php-extras-12niMlE8.js → php-extras-BID0v00n.js} +1 -1
- package/dist/{phpdoc-BHvUgIkY.js → phpdoc-24Oz9-LZ.js} +1 -1
- package/dist/{plsql-Db8MqoA7.js → plsql-C6BXPR7g.js} +1 -1
- package/dist/{plyr-BmTJgGaR.js → plyr-CuHKxx4q.js} +1 -1
- package/dist/{powerquery-Duz1eKX6.js → powerquery-DubWOvPB.js} +1 -1
- package/dist/{powershell-CR3k9P3y.js → powershell--VoPQ6y-.js} +1 -1
- package/dist/{processing-C1OCINIF.js → processing-B01ZtwTn.js} +1 -1
- package/dist/{prolog-B0CCDnq_.js → prolog-BtX6XFxy.js} +1 -1
- package/dist/{promql-D71tYdVs.js → promql-Bpacgz1D.js} +1 -1
- package/dist/{properties-B5OcpggV.js → properties-BGOQyKbS.js} +1 -1
- package/dist/{protobuf-0AyQL46C.js → protobuf-Q5PixUin.js} +1 -1
- package/dist/{psl-C-JzOVdm.js → psl-BuPhPKUH.js} +1 -1
- package/dist/{pug-B_RZ2V79.js → pug-CBL84bxd.js} +1 -1
- package/dist/{puppet-Cr1ID_C3.js → puppet-C3vOs2_4.js} +1 -1
- package/dist/{pure-BtzfTIiw.js → pure-DWVlypI9.js} +1 -1
- package/dist/{purebasic-mkQBQQXG.js → purebasic-BjiAoKIG.js} +1 -1
- package/dist/{purescript-DvyH8c9f.js → purescript-DG53-ntL.js} +1 -1
- package/dist/{python-CPO0i6-Z.js → python-Cqi2dq-D.js} +1 -1
- package/dist/{q-Cze4AM_h.js → q-DYcnhAJE.js} +1 -1
- package/dist/{qml-BxjpfbLY.js → qml-Ct9zDSWc.js} +1 -1
- package/dist/{qore-DP5lpVb9.js → qore--ouW7gVP.js} +1 -1
- package/dist/{qsharp-qjix95MD.js → qsharp-D3rTiDse.js} +1 -1
- package/dist/{quill-Dei_pA6x.js → quill-CnRN97Et.js} +1 -1
- package/dist/{r-usQFqlaL.js → r-OJnn0f3P.js} +1 -1
- package/dist/{racket-Bvn_sWBu.js → racket-DfstO2-7.js} +1 -1
- package/dist/{reason-CFx8VWU2.js → reason-C-DX-DlF.js} +1 -1
- package/dist/{regex-BLdkJZ0M.js → regex-C8CFNlFO.js} +1 -1
- package/dist/{rego-BWDQjM21.js → rego-Iex0zmP1.js} +1 -1
- package/dist/{renpy-DgtRV_Iv.js → renpy-DrghVWpS.js} +1 -1
- package/dist/{rest-CKafSovJ.js → rest-BlcIVAxH.js} +1 -1
- package/dist/{rip-CX65pSBZ.js → rip-dgGkpcVP.js} +1 -1
- package/dist/{roboconf-CFqUr5Vl.js → roboconf-BbFETeWe.js} +1 -1
- package/dist/{robotframework-BXl1eN7E.js → robotframework-BdtcV7KZ.js} +1 -1
- package/dist/{ruby-CGqnkb8T.js → ruby-BTZHoTS-.js} +1 -1
- package/dist/{runtime-CXjS6HoM.js → runtime-DM500Cza.js} +26 -26
- package/dist/{rust-Dl2kcxgH.js → rust-BrxDMff5.js} +1 -1
- package/dist/{sas-DwZvZD1U.js → sas-BIQT8kMN.js} +1 -1
- package/dist/{sass-B67bbl1T.js → sass-CQApi5gc.js} +1 -1
- package/dist/{scala-Ddj7_zEA.js → scala-DzpGbP4W.js} +1 -1
- package/dist/{scheme-CV3sxzu-.js → scheme-DD-biW6P.js} +1 -1
- package/dist/{scss-DPv1ouac.js → scss-BI-e7yn5.js} +1 -1
- package/dist/{shell-session-D8XhZCpW.js → shell-session-DwyoCw0V.js} +1 -1
- package/dist/{smali-Dp56LCQ0.js → smali-BMHN9Lan.js} +1 -1
- package/dist/{smalltalk-WA3jP4lz.js → smalltalk-iOUew2kj.js} +1 -1
- package/dist/{smarty-yQk81Pu4.js → smarty-BSuTZi-X.js} +1 -1
- package/dist/{sml-CBsyB0Oa.js → sml-BhYV-UU-.js} +1 -1
- package/dist/{solidity-DF-S9lLb.js → solidity-BB7VnzhP.js} +1 -1
- package/dist/{solution-file-BONZ9D7W.js → solution-file-DAJSaTrH.js} +1 -1
- package/dist/{soy-C2pUefWO.js → soy-B_B4YBZo.js} +1 -1
- package/dist/{sparql-D_XtJs4M.js → sparql-8-CrDoIQ.js} +1 -1
- package/dist/{splunk-spl-CPEfZZ_n.js → splunk-spl-CgHWzKfY.js} +1 -1
- package/dist/{sqf-HAdfpsi0.js → sqf-xmmWIvFN.js} +1 -1
- package/dist/{sql-BUkvsU52.js → sql-C_u_3fMo.js} +1 -1
- package/dist/{squirrel-Dc80lJ5-.js → squirrel-CXH9c9bP.js} +1 -1
- package/dist/{stan-BDiJwNVM.js → stan-CoKUIJrg.js} +1 -1
- package/dist/{stylus-ZlBy7tmz.js → stylus-DO0sC_DH.js} +1 -1
- package/dist/{swift-1CgOERYr.js → swift-C95D1hmW.js} +1 -1
- package/dist/{systemd-qChbJeEv.js → systemd-DYKfqKfy.js} +1 -1
- package/dist/{t4-cs-CP-v3dtl.js → t4-cs-DosJvZR5.js} +1 -1
- package/dist/{t4-templating-WTElnm9T.js → t4-templating-DVRMHlVb.js} +1 -1
- package/dist/{t4-vb-DW2_IsNk.js → t4-vb-CnwxOrl3.js} +1 -1
- package/dist/{table-7Vm7gXst.js → table-gSgxHLCJ.js} +1 -1
- package/dist/{tap-CBNBMi0I.js → tap-DDDE9TQB.js} +1 -1
- package/dist/{tcl-Cq6uFSIo.js → tcl-Bb-60yUD.js} +1 -1
- package/dist/templateSelectorDialog-SYCFWALQ.js +2 -0
- package/dist/{textile-Bzcon9sp.js → textile-D3JusoKP.js} +1 -1
- package/dist/{toml-wwV96V-H.js → toml-Cg6eTW0y.js} +1 -1
- package/dist/{tremor-Dx5kZTSB.js → tremor-BPZJr8HN.js} +1 -1
- package/dist/{tsx-D6hcdqSf.js → tsx-BFNqB0BB.js} +1 -1
- package/dist/{tt2-1zjNaQs3.js → tt2-D5IpAePA.js} +1 -1
- package/dist/{turtle-Q21EQxvd.js → turtle-BB8zrql_.js} +1 -1
- package/dist/{twig-DfGbHBgN.js → twig-QPbF69q-.js} +1 -1
- package/dist/{typescript-Dm_uvEvI.js → typescript-BoHrZFgn.js} +1 -1
- package/dist/{typoscript-zK-NAAhE.js → typoscript-BPdT83X8.js} +1 -1
- package/dist/{unrealscript-BnihqJjz.js → unrealscript-D5jUyuBV.js} +1 -1
- package/dist/{uorazor-BGqhmz-l.js → uorazor-Bgz8dZph.js} +1 -1
- package/dist/{uri-BsfjH2Ou.js → uri-B7IC57MQ.js} +1 -1
- package/dist/{usePromptLibraryMutations-Bt8B70g5.js → usePromptLibraryMutations-DtNd3B58.js} +1 -1
- package/dist/{useSupabaseBlobUrl-B0W_Eu0t.js → useSupabaseBlobUrl-C6zcEi_X.js} +1 -1
- package/dist/{useTermsNotice-D8dvh7nj.js → useTermsNotice-Wdk5yELM.js} +1 -1
- package/dist/{user-plus-C7pgdbY3.js → user-plus-Dc20zINv.js} +1 -1
- package/dist/{user-round-plus-D20MIMY1.js → user-round-plus-c5-nvSXv.js} +1 -1
- package/dist/{v-Cjc6koZB.js → v-Bnh7gR05.js} +1 -1
- package/dist/{vala-I5_X-ZEb.js → vala-CphZBFOo.js} +1 -1
- package/dist/{vbnet-Bvsw0Lk6.js → vbnet-6NP5qzru.js} +1 -1
- package/dist/{velocity-CEZGAJhf.js → velocity-Dv-8qntX.js} +1 -1
- package/dist/{verilog-BMqxWxmi.js → verilog-B7NfqkuV.js} +1 -1
- package/dist/{vhdl-0xQIJlyC.js → vhdl-CgCeQHaq.js} +1 -1
- package/dist/{vim-DOCMlPgV.js → vim-CRJWzxah.js} +1 -1
- package/dist/{visual-basic-C_nHPkdC.js → visual-basic-C-dHQ5XN.js} +1 -1
- package/dist/{warpscript-Sfd7ad2B.js → warpscript-ptJsJVMl.js} +1 -1
- package/dist/{wasm-iwKkrXbM.js → wasm-CPHRbmGu.js} +1 -1
- package/dist/{web-idl-DKfG1p6P.js → web-idl-DX9bih1z.js} +1 -1
- package/dist/{wiki-Cio36q2T.js → wiki-CO14PTMz.js} +1 -1
- package/dist/{wolfram-AWZQgbaP.js → wolfram-CjtIW_sE.js} +1 -1
- package/dist/{wren-u8VFQhiO.js → wren-BMDTkZl3.js} +1 -1
- package/dist/{xeora-m2KPNYId.js → xeora-Fyuv-Z_H.js} +1 -1
- package/dist/{xml-doc-Dd9X48ls.js → xml-doc-Dy4Fvdqz.js} +1 -1
- package/dist/{xojo-DG8XsZIE.js → xojo-BEy9ptcU.js} +1 -1
- package/dist/{xquery-B4h8uO9I.js → xquery-Q94NcTJL.js} +1 -1
- package/dist/{yaml-Co-wvzGG.js → yaml-y_rYVhC3.js} +1 -1
- package/dist/{yang-D0sSjT-g.js → yang-2xG9BVrE.js} +1 -1
- package/dist/{zig-CDt_ogFW.js → zig-dhvMLvKa.js} +1 -1
- package/package.json +4 -4
- package/dist/index-cxMIwD4c.js +0 -1
- package/dist/templateSelectorDialog-CWdS_d1y.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as b}from"./runtime-
|
|
1
|
+
import{dy as b}from"./runtime-DM500Cza.js";function f(n,i){for(var o=0;o<i.length;o++){const t=i[o];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in n)){const r=Object.getOwnPropertyDescriptor(t,e);r&&Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var s,c;function d(){if(c)return s;c=1,s=n,n.displayName="pascaligo",n.aliases=[];function n(i){(function(o){var t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,e=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return t}),r=o.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return e}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return e}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return e})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},p=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,u){return a[u]=r[u],a},{});r["class-name"].forEach(function(a){a.inside=p})})(i)}return s}var l=d();const g=b(l),y=f({__proto__:null,default:g},[l]);export{y as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as u}from"./runtime-
|
|
1
|
+
import{dy as u}from"./runtime-DM500Cza.js";function d(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s,i;function l(){if(i)return s;i=1,s=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return s}var p=l();const c=u(p),g=d({__proto__:null,default:c},[p]);export{g as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cx as a}from"./runtime-
|
|
1
|
+
import{cx as a}from"./runtime-DM500Cza.js";const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],c=a("circle-question-mark",e);const t=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],p=a("eraser",t);const r=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]],s=a("pen-tool",r);export{c as C,p as E,s as P};
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.539.0 - ISC
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-
|
|
1
|
+
import{dy as c}from"./runtime-DM500Cza.js";function p(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(o,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function u(){if(s)return i;s=1,i=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return i}var l=u();const d=c(l),f=p({__proto__:null,default:d},[l]);export{f as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as d}from"./runtime-
|
|
1
|
+
import{dy as d}from"./runtime-DM500Cza.js";function l(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const n in e)if(n!=="default"&&!(n in r)){const s=Object.getOwnPropertyDescriptor(e,n);s&&Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a,i;function c(){if(i)return a;i=1,a=r,r.displayName="perl",r.aliases=[];function r(o){(function(t){var e=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,e+/\s*/.source+e].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(o)}return a}var u=c();const p=d(u),b=l({__proto__:null,default:p},[u]);export{b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as a}from"./runtime-
|
|
1
|
+
import{dy as a}from"./runtime-DM500Cza.js";import{r as c}from"./php-D0A5Cwxv.js";function p(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=c();const s=a(i),l=p({__proto__:null,default:s},[i]);export{l as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as f}from"./runtime-
|
|
1
|
+
import{dy as f}from"./runtime-DM500Cza.js";import{r as c}from"./php-D0A5Cwxv.js";function l(t,r){for(var e=0;e<r.length;e++){const a=r[e];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in t)){const o=Object.getOwnPropertyDescriptor(a,n);o&&Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,s;function u(){if(s)return i;s=1;var t=c();i=r,r.displayName="phpExtras",r.aliases=[];function r(e){e.register(t),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return i}var p=u();const b=f(p),g=l({__proto__:null,default:b},[p]);export{g as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-
|
|
1
|
+
import{dy as s}from"./runtime-DM500Cza.js";import{r as c}from"./php-D0A5Cwxv.js";import{r as u}from"./javadoclike-odLU89VS.js";function g(t,n){for(var a=0;a<n.length;a++){const r=n[a];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const o=Object.getOwnPropertyDescriptor(r,e);o&&Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,p;function d(){if(p)return i;p=1;var t=c(),n=u();i=a,a.displayName="phpdoc",a.aliases=[];function a(r){r.register(t),r.register(n),(function(e){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)})(r)}return i}var l=d();const f=s(l),b=g({__proto__:null,default:f},[l]);export{b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as C}from"./runtime-
|
|
1
|
+
import{dy as C}from"./runtime-DM500Cza.js";import{r as D}from"./sql-aYT6xcy6.js";function U(T,A){for(var E=0;E<A.length;E++){const I=A[E];if(typeof I!="string"&&!Array.isArray(I)){for(const R in I)if(R!=="default"&&!(R in T)){const N=Object.getOwnPropertyDescriptor(I,R);N&&Object.defineProperty(T,R,N.get?N:{enumerable:!0,get:()=>I[R]})}}}return Object.freeze(Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}))}var O,S;function M(){if(S)return O;S=1;var T=D();O=A,A.displayName="plsql",A.aliases=[];function A(E){E.register(T),E.languages.plsql=E.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),E.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return O}var L=M();const P=C(L),B=U({__proto__:null,default:P},[L]);export{B as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var ft=Object.defineProperty,yt=(e,i,t)=>i in e?ft(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,m=(e,i,t)=>yt(e,typeof i!="symbol"?i+"":i,t);import{dy as bt}from"./runtime-CXjS6HoM.js";function vt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function wt(e,i,t){return i&&Oe(e.prototype,i),t&&Oe(e,t),e}function kt(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function _e(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,s)}return t}function je(e){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?_e(Object(t),!0).forEach((function(s){kt(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}var De={addCSS:!0,thumbWidth:15,watch:!0};function Tt(e,i){return(function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function Ct(e,i){if(e&&i){var t=new Event(i,{bubbles:!0});e.dispatchEvent(t)}}var Q=function(e){return e!=null?e.constructor:null},fe=function(e,i){return!!(e&&i&&e instanceof i)},He=function(e){return e==null},Re=function(e){return Q(e)===Object},At=function(e){return Q(e)===Number&&!Number.isNaN(e)},qe=function(e){return Q(e)===String},St=function(e){return Q(e)===Boolean},Et=function(e){return Q(e)===Function},Fe=function(e){return Array.isArray(e)},Ve=function(e){return fe(e,NodeList)},Pt=function(e){return fe(e,Element)},Mt=function(e){return fe(e,Event)},Nt=function(e){return He(e)||(qe(e)||Fe(e)||Ve(e))&&!e.length||Re(e)&&!Object.keys(e).length},D={nullOrUndefined:He,object:Re,number:At,string:qe,boolean:St,function:Et,array:Fe,nodeList:Ve,element:Pt,event:Mt,empty:Nt};function xt(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}function Lt(e,i){if(1>i){var t=xt(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var It=(function(){function e(i,t){vt(this,e),D.element(i)?this.element=i:D.string(i)&&(this.element=document.querySelector(i)),D.element(this.element)&&D.empty(this.element.rangeTouch)&&(this.config=je({},De,{},t),this.init())}return wt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(a){t.element[s](a,(function(n){return t.set(n)}),!1)}))}},{key:"get",value:function(i){if(!e.enabled||!D.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(a.clientX-c.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*u:50<t&&(t+=2*(t-50)*u),n+Lt(t/100*(r-n),o)}},{key:"set",value:function(i){e.enabled&&D.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),Ct(i.target,i.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(i){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},s=null;if(D.empty(i)||D.string(i)?s=Array.from(document.querySelectorAll(D.string(i)?i:'input[type="range"]')):D.element(i)?s=[i]:D.nodeList(i)?s=Array.from(i):D.array(i)&&(s=i.filter(D.element)),D.empty(s))return null;var a=je({},De,{},t);if(D.string(i)&&a.watch){var n=new MutationObserver((function(r){Array.from(r).forEach((function(o){Array.from(o.addedNodes).forEach((function(c){D.element(c)&&Tt(c,i)&&new e(c,a)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(r){return new e(r,t)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e})();const J=e=>e!==null&&typeof e<"u"?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),ye=e=>e===null||typeof e>"u",Ue=e=>J(e)===Object,$t=e=>J(e)===Number&&!Number.isNaN(e),re=e=>J(e)===String,Ot=e=>J(e)===Boolean,We=e=>typeof e=="function",Be=e=>Array.isArray(e),_t=e=>U(e,WeakMap),ze=e=>U(e,NodeList),jt=e=>J(e)===Text,Dt=e=>U(e,Event),Ht=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),qt=e=>U(e,TextTrack)||!ye(e)&&re(e.kind),Ft=e=>U(e,Promise)&&We(e.then);function Vt(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function Ke(e){return ye(e)||(re(e)||Be(e)||ze(e))&&!e.length||Ue(e)&&!Object.keys(e).length}function Ut(e){if(U(e,window.URL))return!0;if(!re(e))return!1;let i=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(i=`http://${e}`);try{return!Ke(new URL(i).hostname)}catch{return!1}}const l={nullOrUndefined:ye,object:Ue,number:$t,string:re,boolean:Ot,function:We,array:Be,weakMap:_t,nodeList:ze,element:Vt,textNode:jt,event:Dt,keyboardEvent:Ht,cue:Rt,track:qt,promise:Ft,url:Ut,empty:Ke},be=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return l.string(t)?i[t]:!1})();function Ye(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}function Wt(e){return JSON.parse(JSON.stringify(e))}function Xe(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function x(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),x(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),x(e,...i)):e}function Qe(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;n.appendChild(s),o?r.insertBefore(n,o):r.appendChild(n)})}function ve(e,i){!l.element(e)||l.empty(i)||Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function b(e,i,t){const s=document.createElement(e);return l.object(i)&&ve(s,i),l.string(t)&&(s.textContent=t),s}function Bt(e,i){!l.element(e)||!l.element(i)||i.parentNode.insertBefore(e,i.nextSibling)}function Je(e,i,t,s){l.element(i)&&i.appendChild(b(e,t,s))}function W(e){if(l.nodeList(e)||l.array(e)){Array.from(e).forEach(W);return}!l.element(e)||!l.element(e.parentNode)||e.parentNode.removeChild(e)}function oe(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return!l.element(i)||!l.element(i.parentNode)||!l.element(e)?null:(i.parentNode.replaceChild(e,i),e)}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=x({},i);return e.split(",").forEach(a=>{const n=a.trim(),r=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=u;break}}),x(s,t)}function K(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function S(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>S(s,i,t));if(l.element(e)){let s="toggle";return typeof t<"u"&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function Y(e,i){const{prototype:t}=Element;function s(){return Array.from(document.querySelectorAll(i)).includes(this)}return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||s).call(e,i)}function zt(e,i){const{prototype:t}=Element;function s(){let a=this;do{if(Y.matches(a,i))return a;a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null}return(t.closest||s).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function $(e){return this.elements.container.querySelector(e)}function we(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const Ge={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},L={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=L[e]||i!=="html5",s=t&&L.rangeInput;return{api:t,ui:s}},pip:document.pictureInPictureEnabled&&!b("video").disablePictureInPicture,airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(Ge).includes(t)&&(t+=`; codecs="${Ge[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:be!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Kt=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=n;Kt&&(o={passive:a,capture:n}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function C(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!0,s,a)}function he(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!1,s,a)}function ke(e,i="",t,s=!0,a=!1){const n=(...r)=>{he(e,i,n,s,a),t.apply(this,r)};Z.call(this,e,i,n,!0,s,a)}function v(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Yt(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Xt(){return new Promise(e=>this.ready?setTimeout(e,0):C.call(this,this.elements.container,"ready",e)).then(()=>{})}function V(e){l.promise(e)&&e.then(null,()=>{})}function Te(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function Ze(e,i){return!l.array(e)||!e.length?null:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t)}function et(e){return!window||!window.CSS?!1:window.CSS.supports(e)}const tt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[i,t])=>({...e,[i/t]:[i,t]}),{});function it(e){return!l.array(e)&&(!l.string(e)||!e.includes(":"))?!1:(l.array(e)?e:e.split(":")).map(Number).every(l.number)}function de(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,r)=>r===0?n:s(r,n%r),a=s(i,t);return[i/a,t/a]}function Ce(e){const i=s=>it(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return de(t)}function X(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ce.call(this,e);if(!l.array(t))return{};const[s,a]=de(t),n=et(`aspect-ratio: ${s}/${a}`),r=100/s*a;if(n?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(o-r)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${c}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:t}}function st(e,i,t=.05){const s=e/i,a=Ze(Object.keys(tt),s);return Math.abs(a-s)<=t?tt[a]:[e,i]}function Qt(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return[e,i]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return l.empty(i)?!0:L.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||X.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||V(e.play())}),e.media.load())}v.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(W(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},Jt=!!window.document.documentMode,Gt=/Edge/.test(navigator.userAgent),Zt="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),ei=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ti=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1,_={isIE:Jt,isEdge:Gt,isWebKit:Zt,isIPadOS:ei,isIos:ti};function ii(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function Ae(e,...i){return l.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(t,s)=>i[s].toString())}function si(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}function ee(e="",i="",t=""){return e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString())}function nt(e=""){return e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase())}function ni(e=""){let i=e.toString();return i=ee(i,"-"," "),i=ee(i,"_"," "),i=nt(i),ee(i," ","")}function ai(e=""){let i=e.toString();return i=ni(i),i.charAt(0).toLowerCase()+i.slice(1)}function li(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.textContent}function ri(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const at={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},O={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=Xe(i.i18n,e);if(l.empty(t))return Object.keys(at).includes(e)?at[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=ee(t,a,n)}),t}};class ne{constructor(i){m(this,"get",t=>{if(!ne.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),m(this,"set",t=>{if(!ne.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),x(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function te(e,i="text",t=!1){return new Promise((s,a)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;t&&(n.withCredentials=!0),n.addEventListener("load",()=>{if(i==="text")try{s(JSON.parse(n.responseText))}catch{s(n.responseText)}else s(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){a(n)}})}function lt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let a=!1;const n=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,!(s&&n())&&document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=ne.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(a=u!==null,a){const p=JSON.parse(u);r(c,p.content)}}te(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const rt=e=>Math.trunc(e/60/60%60,10),oi=e=>Math.trunc(e/60%60,10),ci=e=>Math.trunc(e%60,10);function me(e=0,i=!1,t=!1){if(!l.number(e))return me(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=rt(e);const n=oi(e),r=ci(e);return i||a>0?a=`${a}:`:a="",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const d={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||_.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=$.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:$.call(this,this.config.selectors.buttons.pause),restart:$.call(this,this.config.selectors.buttons.restart),rewind:$.call(this,this.config.selectors.buttons.rewind),fastForward:$.call(this,this.config.selectors.buttons.fastForward),mute:$.call(this,this.config.selectors.buttons.mute),pip:$.call(this,this.config.selectors.buttons.pip),airplay:$.call(this,this.config.selectors.buttons.airplay),settings:$.call(this,this.config.selectors.buttons.settings),captions:$.call(this,this.config.selectors.buttons.captions),fullscreen:$.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$.call(this,this.config.selectors.progress),this.elements.inputs={seek:$.call(this,this.config.selectors.inputs.seek),volume:$.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$.call(this,this.config.selectors.display.buffer),currentTime:$.call(this,this.config.selectors.display.currentTime),duration:$.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=d.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");ve(n,x(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(r),n},createLabel(e,i={}){const t=O.get(e,this.config),s={...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")};return b("span",s,t)},createBadge(e){if(l.empty(e))return null;const i=b("span",{class:this.config.classNames.menu.value});return i.appendChild(b("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=x({},i);let s=ai(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(a[r]=t[r],delete t[r])}),a.element==="button"&&!Object.keys(t).includes("type")&&(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").includes(this.config.classNames.control)||x(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=b(a.element);return a.toggle?(n.appendChild(d.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(d.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(d.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(d.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(d.createIcon.call(this,a.icon)),n.appendChild(d.createLabel.call(this,a.label))),x(t,F(this.config.selectors.buttons[s],t)),ve(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=b("input",x(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":O.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,d.updateRangeFill.call(this,t),It.setup(t),t},createProgress(e,i){const t=b("progress",x(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(b("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?O.get(s,this.config):"";t.textContent=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=b("div",x(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":O.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){C.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Y(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))d.showMenuPanel.call(this,i,!0);else{let a;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),we.call(this,a,!0))}},!1),C.call(this,e,"keyup",t=>{t.key==="Return"&&d.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const r=F(this.config.selectors.inputs[t]),o=b("button",x(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":n,value:e})),c=b("span");c.innerHTML=s,l.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get(){return o.getAttribute("aria-checked")==="true"},set(u){u&&Array.from(o.parentNode.children).filter(p=>Y(p,'[role="menuitemradio"]')).forEach(p=>p.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!(l.keyboardEvent(u)&&u.key!==" ")){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e);break}d.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),d.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){if(!l.number(e))return e;const t=rt(this.duration)>0;return me(e,t,i)},updateTimeDisplay(e=null,i=0,t=!1){!l.element(e)||!l.number(i)||(e.textContent=d.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&d.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,d.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=n;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=si(this.currentTime,this.duration),e.type==="timeupdate"&&d.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(!(!l.element(i)||i.getAttribute("type")!=="range")){if(Y(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=d.formatTime(this.currentTime),s=d.formatTime(this.duration),a=O.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Y(i,this.config.selectors.inputs.volume)){const t=i.value*100;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);!_.isWebKit&&!_.isIPadOS||i.style.setProperty("--value",`${i.value/i.max*100}%`)}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=p=>S(s,a,p);if(this.touch){n(!1);return}let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e)){const p=e.pageX-e.clientX;r=100/o.width*(e.pageX-o.left-p)}else if(ue(s,a))r=Number.parseFloat(s.style.left,10);else return;r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.textContent=d.formatTime(c);const u=(t=(i=this.config.markers)==null?void 0:i.points)==null?void 0:t.find(({time:p})=>p===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}<br>`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;d.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),!(e&&e.type==="timeupdate"&&this.media.seeking)&&d.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){K(this.elements.display.currentTime,!0),K(this.elements.progress,!0);return}l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&d.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&d.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&d.setMarkers.call(this),d.updateSeekTooltip.call(this)},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a)){this.debug.warn(`Unsupported value of '${a}' for ${e}`);return}if(!this.config[e].options.includes(a)){this.debug.warn(`Disabled value of '${a}' for ${e}`);return}}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;const r=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);r.innerHTML=d.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?O.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=O.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return nt(i);case"captions":return A.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=Te(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(d.toggleMenuButton.call(this,i,s),oe(t),d.checkMenu.call(this),!s)return;const a=n=>{const r=O.get(`qualityBadge.${n}`,this.config);return r.length?d.createBadge.call(this,r):null};this.options.quality.sort((n,r)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(r)?1:-1}).forEach(n=>{d.createMenuItem.call(this,{value:n,list:t,type:i,title:d.getLabel.call(this,"quality",n),badge:a(n)})}),d.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=A.getTracks.call(this),s=!!t.length;if(d.toggleMenuButton.call(this,e,s),oe(i),d.checkMenu.call(this),!s)return;const a=t.map((n,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:A.getLabel.call(this,n),badge:n.language&&d.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:O.get("disabled",this.config),list:i,type:"language"}),a.forEach(d.createMenuItem.bind(this)),d.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;d.toggleMenuButton.call(this,e,t),oe(i),d.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{d.createMenuItem.call(this,{value:s,list:i,type:e,title:d.getLabel.call(this,"speed",s)})}),d.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);K(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');we.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.key==="Escape")a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(n);if(r||!r&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),K(i,!a),S(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?d.focusFirstMenuItem.call(this,null,!0):!a&&!s&&we.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return W(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(L.transitions&&!L.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=d.getMenuSize.call(this,t),r=o=>{o.target!==s||!["width","height"].includes(o.propertyName)||(s.style.width="",s.style.height="",he.call(this,s,be,r))};C.call(this,s,be,r),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}K(a,!0),K(t,!1),d.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=d;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=b("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const p={class:"plyr__controls__item"};return Te(l.array(this.config.controls)?this.config.controls:[]).forEach(y=>{if(y==="restart"&&u.appendChild(t.call(this,"restart",p)),y==="rewind"&&u.appendChild(t.call(this,"rewind",p)),y==="play"&&u.appendChild(t.call(this,"play",p)),y==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",p)),y==="progress"){const h=b("div",{class:`${p.class} plyr__progress__container`}),f=b("div",F(this.config.selectors.progress));if(f.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),f.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const T=b("span",{class:this.config.classNames.tooltip},"00:00");f.appendChild(T),this.elements.display.seekTooltip=T}this.elements.progress=f,h.appendChild(this.elements.progress),u.appendChild(h)}if(y==="current-time"&&u.appendChild(n.call(this,"currentTime",p)),y==="duration"&&u.appendChild(n.call(this,"duration",p)),y==="mute"||y==="volume"){let{volume:h}=this.elements;if((!l.element(h)||!u.contains(h))&&(h=b("div",x({},p,{class:`${p.class} plyr__volume`.trim()})),this.elements.volume=h,u.appendChild(h)),y==="mute"&&h.appendChild(t.call(this,"mute")),y==="volume"&&!_.isIos&&!_.isIPadOS){const f={max:1,step:.05,value:this.config.volume};h.appendChild(a.call(this,"volume",x(f,{id:`plyr-volume-${e.id}`})))}}if(y==="captions"&&u.appendChild(t.call(this,"captions",p)),y==="settings"&&!l.empty(this.config.settings)){const h=b("div",x({},p,{class:`${p.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const f=b("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),T=b("div"),w=b("div",{id:`plyr-settings-${e.id}-home`}),I=b("div",{role:"menu"});w.appendChild(I),T.appendChild(w),this.elements.settings.panels.home=w,this.config.settings.forEach(P=>{const g=b("button",x(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,g,P),C.call(this,g,"click",()=>{c.call(this,P,!1)});const k=b("span",null,O.get(P,this.config)),M=b("span",{class:this.config.classNames.menu.value});M.innerHTML=e[P],k.appendChild(M),g.appendChild(k),I.appendChild(g);const j=b("div",{id:`plyr-settings-${e.id}-${P}`,hidden:""}),H=b("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});H.appendChild(b("span",{"aria-hidden":!0},O.get(P,this.config))),H.appendChild(b("span",{class:this.config.classNames.hidden},O.get("menuBack",this.config))),C.call(this,j,"keydown",R=>{R.key==="ArrowLeft"&&(R.preventDefault(),R.stopPropagation(),c.call(this,"home",!0))},!1),C.call(this,H,"click",()=>{c.call(this,"home",!1)}),j.appendChild(H),j.appendChild(b("div",{role:"menu"})),T.appendChild(j),this.elements.settings.buttons[P]=g,this.elements.settings.panels[P]=j}),f.appendChild(T),h.appendChild(f),u.appendChild(h),this.elements.settings.popup=f,this.elements.settings.menu=h}if(y==="pip"&&L.pip&&u.appendChild(t.call(this,"pip",p)),y==="airplay"&&L.airplay&&u.appendChild(t.call(this,"airplay",p)),y==="download"){const h=x({},p,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:f}=this.config.urls;!l.url(f)&&this.isEmbed&&x(h,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",h))}y==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",p))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const r=d.getIconUrl.call(this);r.cors&<(r.url,"sprite-plyr")}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=d.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:A.getLabel.call(this)}),t=!1);const s=r=>{let o=r;return Object.entries(i).forEach(([c,u])=>{o=ee(o,`{${c}}`,u)}),o};t&&l.string(this.config.controls)&&(e=s(e));let a;l.string(this.config.selectors.controls.container)&&(a=document.querySelector(this.config.selectors.controls.container)),l.element(a)||(a=this.elements.container);const n=l.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(a[n]("afterbegin",e),l.element(this.elements.controls)||d.findElements.call(this),!l.empty(this.elements.buttons)){const r=o=>{const c=this.config.classNames.controlPressed;o.setAttribute("aria-pressed","false"),Object.defineProperty(o,"pressed",{configurable:!0,enumerable:!0,get(){return ue(o,c)},set(u=!1){S(o,c,u),o.setAttribute("aria-pressed",u?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(o=>{l.array(o)||l.nodeList(o)?Array.from(o).filter(Boolean).forEach(r):r(o)})}if(_.isEdge&&Ye(a),this.config.tooltips.controls){const{classNames:r,selectors:o}=this.config,c=`${o.controls.wrapper} ${o.labels} .${r.hidden}`,u=G.call(this,c);Array.from(u).forEach(p=>{S(p,this.config.classNames.hidden,!1),S(p,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(i=(e=this.config.markers)==null?void 0:e.points)==null?void 0:i.filter(({time:c})=>c>0&&c<this.duration);if(!(t!=null&&t.length))return;const s=document.createDocumentFragment(),a=document.createDocumentFragment();let n=null;const r=`${this.config.classNames.tooltip}--visible`,o=c=>S(n,r,c);t.forEach(c=>{const u=b("span",{class:this.config.classNames.marker},""),p=`${c.time/this.duration*100}%`;n&&(u.addEventListener("mouseenter",()=>{c.label||(n.style.left=p,n.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=p,a.appendChild(u)}),s.appendChild(a),this.config.tooltips.seek||(n=b("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function ot(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ct(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const A={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!L.textTracks){l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this);return}if(l.element(this.elements.captions)||(this.elements.captions=b("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Bt(this.elements.captions,this.elements.wrapper)),_.isIE&&window.URL){const a=this.media.querySelectorAll("track");Array.from(a).forEach(n=>{const r=n.getAttribute("src"),o=ot(r);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&te(r,"blob").then(c=>{n.setAttribute("src",window.URL.createObjectURL(c))}).catch(()=>{W(n)})})}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],i=Te(e.map(a=>a.split("-")[0]));let t=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();t==="auto"&&([t]=i);let s=this.storage.get("captions")||this.captions.active;if(l.boolean(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:t,languages:i}),this.isHTML5){const a=this.config.captions.update?"addtrack removetrack":"removetrack";C.call(this,this.media.textTracks,a,A.update.bind(this))}setTimeout(A.update.bind(this),0)},update(){const e=A.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),C.call(this,r,"cuechange",()=>A.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(A.setLanguage.call(this,t),A.toggle.call(this,i&&n)),this.elements&&S(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=A.getTracks.call(this),r=A.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=r.language,A.set.call(this,n.indexOf(r));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),S(this.elements.container,s,a),this.captions.toggled=a,d.updateSetting.call(this,"captions"),v.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=A.getTracks.call(this);if(e===-1){A.toggle.call(this,!1,i);return}if(!l.number(e)){this.debug.warn("Invalid caption argument",e);return}if(!(e in t)){this.debug.warn("Track not found",e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,d.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),v.call(this,this.media,"languagechange")}A.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&A.updateCues.call(this)},setLanguage(e,i=!0){if(!l.string(e)){this.debug.warn("Invalid language argument",e);return}const t=e.toLowerCase();this.captions.language=t;const s=A.getTracks.call(this),a=A.findTrack.call(this,[t]);A.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=A.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),a=Array.from(t).sort((r,o)=>s(o)-s(r));let n;return e.every(r=>(n=a.find(o=>o.language===r),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return A.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&L.textTracks&&this.captions.toggled&&(i=A.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?O.get("enabled",this.config):e.language.toUpperCase():i.label:O.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!l.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return}let i=e;if(!i){const s=A.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(ri)}const t=i.map(s=>s.trim()).join(`
|
|
1
|
+
var ft=Object.defineProperty,yt=(e,i,t)=>i in e?ft(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,m=(e,i,t)=>yt(e,typeof i!="symbol"?i+"":i,t);import{dy as bt}from"./runtime-DM500Cza.js";function vt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function wt(e,i,t){return i&&Oe(e.prototype,i),t&&Oe(e,t),e}function kt(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function _e(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,s)}return t}function je(e){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?_e(Object(t),!0).forEach((function(s){kt(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}var De={addCSS:!0,thumbWidth:15,watch:!0};function Tt(e,i){return(function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function Ct(e,i){if(e&&i){var t=new Event(i,{bubbles:!0});e.dispatchEvent(t)}}var Q=function(e){return e!=null?e.constructor:null},fe=function(e,i){return!!(e&&i&&e instanceof i)},He=function(e){return e==null},Re=function(e){return Q(e)===Object},At=function(e){return Q(e)===Number&&!Number.isNaN(e)},qe=function(e){return Q(e)===String},St=function(e){return Q(e)===Boolean},Et=function(e){return Q(e)===Function},Fe=function(e){return Array.isArray(e)},Ve=function(e){return fe(e,NodeList)},Pt=function(e){return fe(e,Element)},Mt=function(e){return fe(e,Event)},Nt=function(e){return He(e)||(qe(e)||Fe(e)||Ve(e))&&!e.length||Re(e)&&!Object.keys(e).length},D={nullOrUndefined:He,object:Re,number:At,string:qe,boolean:St,function:Et,array:Fe,nodeList:Ve,element:Pt,event:Mt,empty:Nt};function xt(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}function Lt(e,i){if(1>i){var t=xt(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var It=(function(){function e(i,t){vt(this,e),D.element(i)?this.element=i:D.string(i)&&(this.element=document.querySelector(i)),D.element(this.element)&&D.empty(this.element.rangeTouch)&&(this.config=je({},De,{},t),this.init())}return wt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(a){t.element[s](a,(function(n){return t.set(n)}),!1)}))}},{key:"get",value:function(i){if(!e.enabled||!D.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(a.clientX-c.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*u:50<t&&(t+=2*(t-50)*u),n+Lt(t/100*(r-n),o)}},{key:"set",value:function(i){e.enabled&&D.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),Ct(i.target,i.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(i){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},s=null;if(D.empty(i)||D.string(i)?s=Array.from(document.querySelectorAll(D.string(i)?i:'input[type="range"]')):D.element(i)?s=[i]:D.nodeList(i)?s=Array.from(i):D.array(i)&&(s=i.filter(D.element)),D.empty(s))return null;var a=je({},De,{},t);if(D.string(i)&&a.watch){var n=new MutationObserver((function(r){Array.from(r).forEach((function(o){Array.from(o.addedNodes).forEach((function(c){D.element(c)&&Tt(c,i)&&new e(c,a)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(r){return new e(r,t)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e})();const J=e=>e!==null&&typeof e<"u"?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),ye=e=>e===null||typeof e>"u",Ue=e=>J(e)===Object,$t=e=>J(e)===Number&&!Number.isNaN(e),re=e=>J(e)===String,Ot=e=>J(e)===Boolean,We=e=>typeof e=="function",Be=e=>Array.isArray(e),_t=e=>U(e,WeakMap),ze=e=>U(e,NodeList),jt=e=>J(e)===Text,Dt=e=>U(e,Event),Ht=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),qt=e=>U(e,TextTrack)||!ye(e)&&re(e.kind),Ft=e=>U(e,Promise)&&We(e.then);function Vt(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function Ke(e){return ye(e)||(re(e)||Be(e)||ze(e))&&!e.length||Ue(e)&&!Object.keys(e).length}function Ut(e){if(U(e,window.URL))return!0;if(!re(e))return!1;let i=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(i=`http://${e}`);try{return!Ke(new URL(i).hostname)}catch{return!1}}const l={nullOrUndefined:ye,object:Ue,number:$t,string:re,boolean:Ot,function:We,array:Be,weakMap:_t,nodeList:ze,element:Vt,textNode:jt,event:Dt,keyboardEvent:Ht,cue:Rt,track:qt,promise:Ft,url:Ut,empty:Ke},be=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return l.string(t)?i[t]:!1})();function Ye(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}function Wt(e){return JSON.parse(JSON.stringify(e))}function Xe(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function x(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),x(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),x(e,...i)):e}function Qe(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;n.appendChild(s),o?r.insertBefore(n,o):r.appendChild(n)})}function ve(e,i){!l.element(e)||l.empty(i)||Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function b(e,i,t){const s=document.createElement(e);return l.object(i)&&ve(s,i),l.string(t)&&(s.textContent=t),s}function Bt(e,i){!l.element(e)||!l.element(i)||i.parentNode.insertBefore(e,i.nextSibling)}function Je(e,i,t,s){l.element(i)&&i.appendChild(b(e,t,s))}function W(e){if(l.nodeList(e)||l.array(e)){Array.from(e).forEach(W);return}!l.element(e)||!l.element(e.parentNode)||e.parentNode.removeChild(e)}function oe(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return!l.element(i)||!l.element(i.parentNode)||!l.element(e)?null:(i.parentNode.replaceChild(e,i),e)}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=x({},i);return e.split(",").forEach(a=>{const n=a.trim(),r=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=u;break}}),x(s,t)}function K(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function S(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>S(s,i,t));if(l.element(e)){let s="toggle";return typeof t<"u"&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function Y(e,i){const{prototype:t}=Element;function s(){return Array.from(document.querySelectorAll(i)).includes(this)}return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||s).call(e,i)}function zt(e,i){const{prototype:t}=Element;function s(){let a=this;do{if(Y.matches(a,i))return a;a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null}return(t.closest||s).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function $(e){return this.elements.container.querySelector(e)}function we(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const Ge={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},L={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=L[e]||i!=="html5",s=t&&L.rangeInput;return{api:t,ui:s}},pip:document.pictureInPictureEnabled&&!b("video").disablePictureInPicture,airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(Ge).includes(t)&&(t+=`; codecs="${Ge[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:be!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Kt=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=n;Kt&&(o={passive:a,capture:n}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function C(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!0,s,a)}function he(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!1,s,a)}function ke(e,i="",t,s=!0,a=!1){const n=(...r)=>{he(e,i,n,s,a),t.apply(this,r)};Z.call(this,e,i,n,!0,s,a)}function v(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Yt(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Xt(){return new Promise(e=>this.ready?setTimeout(e,0):C.call(this,this.elements.container,"ready",e)).then(()=>{})}function V(e){l.promise(e)&&e.then(null,()=>{})}function Te(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function Ze(e,i){return!l.array(e)||!e.length?null:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t)}function et(e){return!window||!window.CSS?!1:window.CSS.supports(e)}const tt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[i,t])=>({...e,[i/t]:[i,t]}),{});function it(e){return!l.array(e)&&(!l.string(e)||!e.includes(":"))?!1:(l.array(e)?e:e.split(":")).map(Number).every(l.number)}function de(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,r)=>r===0?n:s(r,n%r),a=s(i,t);return[i/a,t/a]}function Ce(e){const i=s=>it(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return de(t)}function X(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ce.call(this,e);if(!l.array(t))return{};const[s,a]=de(t),n=et(`aspect-ratio: ${s}/${a}`),r=100/s*a;if(n?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(o-r)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${c}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:t}}function st(e,i,t=.05){const s=e/i,a=Ze(Object.keys(tt),s);return Math.abs(a-s)<=t?tt[a]:[e,i]}function Qt(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return[e,i]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return l.empty(i)?!0:L.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||X.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||V(e.play())}),e.media.load())}v.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(W(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},Jt=!!window.document.documentMode,Gt=/Edge/.test(navigator.userAgent),Zt="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),ei=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ti=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1,_={isIE:Jt,isEdge:Gt,isWebKit:Zt,isIPadOS:ei,isIos:ti};function ii(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function Ae(e,...i){return l.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(t,s)=>i[s].toString())}function si(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}function ee(e="",i="",t=""){return e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString())}function nt(e=""){return e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase())}function ni(e=""){let i=e.toString();return i=ee(i,"-"," "),i=ee(i,"_"," "),i=nt(i),ee(i," ","")}function ai(e=""){let i=e.toString();return i=ni(i),i.charAt(0).toLowerCase()+i.slice(1)}function li(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.textContent}function ri(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const at={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},O={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=Xe(i.i18n,e);if(l.empty(t))return Object.keys(at).includes(e)?at[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=ee(t,a,n)}),t}};class ne{constructor(i){m(this,"get",t=>{if(!ne.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),m(this,"set",t=>{if(!ne.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),x(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function te(e,i="text",t=!1){return new Promise((s,a)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;t&&(n.withCredentials=!0),n.addEventListener("load",()=>{if(i==="text")try{s(JSON.parse(n.responseText))}catch{s(n.responseText)}else s(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){a(n)}})}function lt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let a=!1;const n=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,!(s&&n())&&document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=ne.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(a=u!==null,a){const p=JSON.parse(u);r(c,p.content)}}te(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const rt=e=>Math.trunc(e/60/60%60,10),oi=e=>Math.trunc(e/60%60,10),ci=e=>Math.trunc(e%60,10);function me(e=0,i=!1,t=!1){if(!l.number(e))return me(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=rt(e);const n=oi(e),r=ci(e);return i||a>0?a=`${a}:`:a="",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const d={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||_.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=$.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:$.call(this,this.config.selectors.buttons.pause),restart:$.call(this,this.config.selectors.buttons.restart),rewind:$.call(this,this.config.selectors.buttons.rewind),fastForward:$.call(this,this.config.selectors.buttons.fastForward),mute:$.call(this,this.config.selectors.buttons.mute),pip:$.call(this,this.config.selectors.buttons.pip),airplay:$.call(this,this.config.selectors.buttons.airplay),settings:$.call(this,this.config.selectors.buttons.settings),captions:$.call(this,this.config.selectors.buttons.captions),fullscreen:$.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$.call(this,this.config.selectors.progress),this.elements.inputs={seek:$.call(this,this.config.selectors.inputs.seek),volume:$.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$.call(this,this.config.selectors.display.buffer),currentTime:$.call(this,this.config.selectors.display.currentTime),duration:$.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=d.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");ve(n,x(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(r),n},createLabel(e,i={}){const t=O.get(e,this.config),s={...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")};return b("span",s,t)},createBadge(e){if(l.empty(e))return null;const i=b("span",{class:this.config.classNames.menu.value});return i.appendChild(b("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=x({},i);let s=ai(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(a[r]=t[r],delete t[r])}),a.element==="button"&&!Object.keys(t).includes("type")&&(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").includes(this.config.classNames.control)||x(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=b(a.element);return a.toggle?(n.appendChild(d.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(d.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(d.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(d.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(d.createIcon.call(this,a.icon)),n.appendChild(d.createLabel.call(this,a.label))),x(t,F(this.config.selectors.buttons[s],t)),ve(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=b("input",x(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":O.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,d.updateRangeFill.call(this,t),It.setup(t),t},createProgress(e,i){const t=b("progress",x(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(b("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?O.get(s,this.config):"";t.textContent=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=b("div",x(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":O.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){C.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Y(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))d.showMenuPanel.call(this,i,!0);else{let a;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),we.call(this,a,!0))}},!1),C.call(this,e,"keyup",t=>{t.key==="Return"&&d.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const r=F(this.config.selectors.inputs[t]),o=b("button",x(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":n,value:e})),c=b("span");c.innerHTML=s,l.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get(){return o.getAttribute("aria-checked")==="true"},set(u){u&&Array.from(o.parentNode.children).filter(p=>Y(p,'[role="menuitemradio"]')).forEach(p=>p.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!(l.keyboardEvent(u)&&u.key!==" ")){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e);break}d.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),d.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){if(!l.number(e))return e;const t=rt(this.duration)>0;return me(e,t,i)},updateTimeDisplay(e=null,i=0,t=!1){!l.element(e)||!l.number(i)||(e.textContent=d.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&d.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,d.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=n;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=si(this.currentTime,this.duration),e.type==="timeupdate"&&d.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(!(!l.element(i)||i.getAttribute("type")!=="range")){if(Y(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=d.formatTime(this.currentTime),s=d.formatTime(this.duration),a=O.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Y(i,this.config.selectors.inputs.volume)){const t=i.value*100;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);!_.isWebKit&&!_.isIPadOS||i.style.setProperty("--value",`${i.value/i.max*100}%`)}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=p=>S(s,a,p);if(this.touch){n(!1);return}let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e)){const p=e.pageX-e.clientX;r=100/o.width*(e.pageX-o.left-p)}else if(ue(s,a))r=Number.parseFloat(s.style.left,10);else return;r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.textContent=d.formatTime(c);const u=(t=(i=this.config.markers)==null?void 0:i.points)==null?void 0:t.find(({time:p})=>p===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}<br>`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;d.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),!(e&&e.type==="timeupdate"&&this.media.seeking)&&d.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){K(this.elements.display.currentTime,!0),K(this.elements.progress,!0);return}l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&d.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&d.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&d.setMarkers.call(this),d.updateSeekTooltip.call(this)},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a)){this.debug.warn(`Unsupported value of '${a}' for ${e}`);return}if(!this.config[e].options.includes(a)){this.debug.warn(`Disabled value of '${a}' for ${e}`);return}}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;const r=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);r.innerHTML=d.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?O.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=O.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return nt(i);case"captions":return A.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=Te(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(d.toggleMenuButton.call(this,i,s),oe(t),d.checkMenu.call(this),!s)return;const a=n=>{const r=O.get(`qualityBadge.${n}`,this.config);return r.length?d.createBadge.call(this,r):null};this.options.quality.sort((n,r)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(r)?1:-1}).forEach(n=>{d.createMenuItem.call(this,{value:n,list:t,type:i,title:d.getLabel.call(this,"quality",n),badge:a(n)})}),d.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=A.getTracks.call(this),s=!!t.length;if(d.toggleMenuButton.call(this,e,s),oe(i),d.checkMenu.call(this),!s)return;const a=t.map((n,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:A.getLabel.call(this,n),badge:n.language&&d.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:O.get("disabled",this.config),list:i,type:"language"}),a.forEach(d.createMenuItem.bind(this)),d.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;d.toggleMenuButton.call(this,e,t),oe(i),d.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{d.createMenuItem.call(this,{value:s,list:i,type:e,title:d.getLabel.call(this,"speed",s)})}),d.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);K(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');we.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.key==="Escape")a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(n);if(r||!r&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),K(i,!a),S(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?d.focusFirstMenuItem.call(this,null,!0):!a&&!s&&we.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return W(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(L.transitions&&!L.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=d.getMenuSize.call(this,t),r=o=>{o.target!==s||!["width","height"].includes(o.propertyName)||(s.style.width="",s.style.height="",he.call(this,s,be,r))};C.call(this,s,be,r),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}K(a,!0),K(t,!1),d.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=d;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=b("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const p={class:"plyr__controls__item"};return Te(l.array(this.config.controls)?this.config.controls:[]).forEach(y=>{if(y==="restart"&&u.appendChild(t.call(this,"restart",p)),y==="rewind"&&u.appendChild(t.call(this,"rewind",p)),y==="play"&&u.appendChild(t.call(this,"play",p)),y==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",p)),y==="progress"){const h=b("div",{class:`${p.class} plyr__progress__container`}),f=b("div",F(this.config.selectors.progress));if(f.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),f.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const T=b("span",{class:this.config.classNames.tooltip},"00:00");f.appendChild(T),this.elements.display.seekTooltip=T}this.elements.progress=f,h.appendChild(this.elements.progress),u.appendChild(h)}if(y==="current-time"&&u.appendChild(n.call(this,"currentTime",p)),y==="duration"&&u.appendChild(n.call(this,"duration",p)),y==="mute"||y==="volume"){let{volume:h}=this.elements;if((!l.element(h)||!u.contains(h))&&(h=b("div",x({},p,{class:`${p.class} plyr__volume`.trim()})),this.elements.volume=h,u.appendChild(h)),y==="mute"&&h.appendChild(t.call(this,"mute")),y==="volume"&&!_.isIos&&!_.isIPadOS){const f={max:1,step:.05,value:this.config.volume};h.appendChild(a.call(this,"volume",x(f,{id:`plyr-volume-${e.id}`})))}}if(y==="captions"&&u.appendChild(t.call(this,"captions",p)),y==="settings"&&!l.empty(this.config.settings)){const h=b("div",x({},p,{class:`${p.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const f=b("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),T=b("div"),w=b("div",{id:`plyr-settings-${e.id}-home`}),I=b("div",{role:"menu"});w.appendChild(I),T.appendChild(w),this.elements.settings.panels.home=w,this.config.settings.forEach(P=>{const g=b("button",x(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,g,P),C.call(this,g,"click",()=>{c.call(this,P,!1)});const k=b("span",null,O.get(P,this.config)),M=b("span",{class:this.config.classNames.menu.value});M.innerHTML=e[P],k.appendChild(M),g.appendChild(k),I.appendChild(g);const j=b("div",{id:`plyr-settings-${e.id}-${P}`,hidden:""}),H=b("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});H.appendChild(b("span",{"aria-hidden":!0},O.get(P,this.config))),H.appendChild(b("span",{class:this.config.classNames.hidden},O.get("menuBack",this.config))),C.call(this,j,"keydown",R=>{R.key==="ArrowLeft"&&(R.preventDefault(),R.stopPropagation(),c.call(this,"home",!0))},!1),C.call(this,H,"click",()=>{c.call(this,"home",!1)}),j.appendChild(H),j.appendChild(b("div",{role:"menu"})),T.appendChild(j),this.elements.settings.buttons[P]=g,this.elements.settings.panels[P]=j}),f.appendChild(T),h.appendChild(f),u.appendChild(h),this.elements.settings.popup=f,this.elements.settings.menu=h}if(y==="pip"&&L.pip&&u.appendChild(t.call(this,"pip",p)),y==="airplay"&&L.airplay&&u.appendChild(t.call(this,"airplay",p)),y==="download"){const h=x({},p,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:f}=this.config.urls;!l.url(f)&&this.isEmbed&&x(h,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",h))}y==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",p))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const r=d.getIconUrl.call(this);r.cors&<(r.url,"sprite-plyr")}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=d.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:A.getLabel.call(this)}),t=!1);const s=r=>{let o=r;return Object.entries(i).forEach(([c,u])=>{o=ee(o,`{${c}}`,u)}),o};t&&l.string(this.config.controls)&&(e=s(e));let a;l.string(this.config.selectors.controls.container)&&(a=document.querySelector(this.config.selectors.controls.container)),l.element(a)||(a=this.elements.container);const n=l.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(a[n]("afterbegin",e),l.element(this.elements.controls)||d.findElements.call(this),!l.empty(this.elements.buttons)){const r=o=>{const c=this.config.classNames.controlPressed;o.setAttribute("aria-pressed","false"),Object.defineProperty(o,"pressed",{configurable:!0,enumerable:!0,get(){return ue(o,c)},set(u=!1){S(o,c,u),o.setAttribute("aria-pressed",u?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(o=>{l.array(o)||l.nodeList(o)?Array.from(o).filter(Boolean).forEach(r):r(o)})}if(_.isEdge&&Ye(a),this.config.tooltips.controls){const{classNames:r,selectors:o}=this.config,c=`${o.controls.wrapper} ${o.labels} .${r.hidden}`,u=G.call(this,c);Array.from(u).forEach(p=>{S(p,this.config.classNames.hidden,!1),S(p,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(i=(e=this.config.markers)==null?void 0:e.points)==null?void 0:i.filter(({time:c})=>c>0&&c<this.duration);if(!(t!=null&&t.length))return;const s=document.createDocumentFragment(),a=document.createDocumentFragment();let n=null;const r=`${this.config.classNames.tooltip}--visible`,o=c=>S(n,r,c);t.forEach(c=>{const u=b("span",{class:this.config.classNames.marker},""),p=`${c.time/this.duration*100}%`;n&&(u.addEventListener("mouseenter",()=>{c.label||(n.style.left=p,n.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=p,a.appendChild(u)}),s.appendChild(a),this.config.tooltips.seek||(n=b("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function ot(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ct(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const A={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!L.textTracks){l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this);return}if(l.element(this.elements.captions)||(this.elements.captions=b("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Bt(this.elements.captions,this.elements.wrapper)),_.isIE&&window.URL){const a=this.media.querySelectorAll("track");Array.from(a).forEach(n=>{const r=n.getAttribute("src"),o=ot(r);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&te(r,"blob").then(c=>{n.setAttribute("src",window.URL.createObjectURL(c))}).catch(()=>{W(n)})})}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],i=Te(e.map(a=>a.split("-")[0]));let t=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();t==="auto"&&([t]=i);let s=this.storage.get("captions")||this.captions.active;if(l.boolean(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:t,languages:i}),this.isHTML5){const a=this.config.captions.update?"addtrack removetrack":"removetrack";C.call(this,this.media.textTracks,a,A.update.bind(this))}setTimeout(A.update.bind(this),0)},update(){const e=A.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),C.call(this,r,"cuechange",()=>A.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(A.setLanguage.call(this,t),A.toggle.call(this,i&&n)),this.elements&&S(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=A.getTracks.call(this),r=A.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=r.language,A.set.call(this,n.indexOf(r));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),S(this.elements.container,s,a),this.captions.toggled=a,d.updateSetting.call(this,"captions"),v.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=A.getTracks.call(this);if(e===-1){A.toggle.call(this,!1,i);return}if(!l.number(e)){this.debug.warn("Invalid caption argument",e);return}if(!(e in t)){this.debug.warn("Track not found",e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,d.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),v.call(this,this.media,"languagechange")}A.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&A.updateCues.call(this)},setLanguage(e,i=!0){if(!l.string(e)){this.debug.warn("Invalid language argument",e);return}const t=e.toLowerCase();this.captions.language=t;const s=A.getTracks.call(this),a=A.findTrack.call(this,[t]);A.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=A.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),a=Array.from(t).sort((r,o)=>s(o)-s(r));let n;return e.every(r=>(n=a.find(o=>o.language===r),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return A.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&L.textTracks&&this.captions.toggled&&(i=A.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?O.get("enabled",this.config):e.language.toUpperCase():i.label:O.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!l.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return}let i=e;if(!i){const s=A.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(ri)}const t=i.map(s=>s.trim()).join(`
|
|
2
2
|
`);if(t!==this.elements.captions.innerHTML){oe(this.elements.captions);const s=b("span",F(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),v.call(this,this.media,"cuechange")}}},ut={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.3/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Se={active:"picture-in-picture",inactive:"inline"},z={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ee={audio:"audio",video:"video"};function ui(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?z.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?z.vimeo:null}function Pe(){}class hi{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Pe}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Pe}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Pe}}class q{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;v.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),m(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",S(this.target,this.player.config.classNames.fullscreen.fallback,t),_.isIos){let s=document.head.querySelector('meta[name="viewport"]');const a="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const n=l.string(s.content)&&s.content.includes(a);t?(this.cleanupViewport=!n,n||(s.content+=`,${a}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(r=>r.trim()!==a).join(","))}this.onChange()}),m(this,"trapFocus",t=>{if(_.isIos||_.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,a=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,r=a[a.length-1];s===r&&!t.shiftKey?(n.focus(),t.preventDefault()):s===n&&t.shiftKey&&(r.focus(),t.preventDefault())}),m(this,"update",()=>{if(this.supported){let t;this.forceFallback?t="Fallback (forced)":q.nativeSupported?t="Native":t="Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");S(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),m(this,"enter",()=>{this.supported&&(_.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!q.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),m(this,"exit",()=>{if(this.supported){if(_.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),V(this.player.play());else if(!q.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}}),m(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=q.prefix,this.property=q.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&zt(this.player.elements.container,i.config.fullscreen.container),C.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),C.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),C.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return q.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>l.function(document[`${t}ExitFullscreen`])||l.function(document[`${t}CancelFullScreen`])?(i=t,!0):!1),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,q.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||q.nativeSupported||!_.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!q.nativeSupported||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return _.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function pe(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const E={addStyleHook(){S(this.elements.container,this.config.selectors.container.replace(".",""),!0),S(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),E.toggleNativeControls.call(this,!0);return}l.element(this.elements.controls)||(d.inject.call(this),this.listeners.controls()),E.toggleNativeControls.call(this),this.isHTML5&&A.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,d.updateVolume.call(this),d.timeUpdate.call(this),d.durationUpdate.call(this),E.checkPlaying.call(this),S(this.elements.container,this.config.classNames.pip.supported,L.pip&&this.isHTML5&&this.isVideo),S(this.elements.container,this.config.classNames.airplay.supported,L.airplay&&this.isHTML5),S(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{v.call(this,this.media,"ready")},0),E.setTitle.call(this),this.poster&&E.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&d.durationUpdate.call(this),this.config.mediaMetadata&&d.setMediaMetadata.call(this)},setTitle(){let e=O.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=$.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=O.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){S(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Xt.call(this).then(()=>pe(e)).catch(t=>{throw e===this.poster&&E.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),E.togglePoster.call(this,!0),e)))},checkPlaying(e){S(this.elements.container,this.config.classNames.playing,this.playing),S(this.elements.container,this.config.classNames.paused,this.paused),S(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",O.get(this.playing?"pause":"play",this.config))}),!(l.event(e)&&e.type==="timeupdate")&&E.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{S(this.elements.container,this.config.classNames.loading,this.loading),E.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class di{constructor(i){m(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,S(s.container,t.config.classNames.isTouch,!0)}),m(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Z.call(s,window,"keydown keyup",this.handleKey,t,!1),Z.call(s,document.body,"click",this.toggleMenu,t),ke.call(s,document.body,"touchstart",this.firstTouch)}),m(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&C.call(t,a.container,"keydown keyup",this.handleKey,!1),C.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:u}=a;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);const p=["touchstart","touchmove","mousemove"].includes(c.type);let y=0;p&&(E.toggleControls.call(t,!0),y=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>E.toggleControls.call(t,!1),y)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=a.wrapper,{active:u}=t.fullscreen,[p,y]=Ce.call(t),h=et(`aspect-ratio: ${p} / ${y}`);if(!u){h?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null);return}const[f,T]=Qt(),w=f/T>p/y;h?(c.style.width=w?"auto":"100%",c.style.height=w?"100%":"auto"):(c.style.maxWidth=w?`${T/y*p}px`:null,c.style.margin=w?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(r,50)};C.call(t,a.container,"enterfullscreen exitfullscreen",c=>{const{target:u}=t.fullscreen;u!==a.container||!t.isEmbed&&l.empty(t.config.ratio)||(r(),(c.type==="enterfullscreen"?C:he).call(t,window,"resize",o))})}),m(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(C.call(t,t.media,"timeupdate seeking seeked",n=>d.timeUpdate.call(t,n)),C.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>d.durationUpdate.call(t,n)),C.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),C.call(t,t.media,"progress playing seeking seeked",n=>d.updateProgress.call(t,n)),C.call(t,t.media,"volumechange",n=>d.updateVolume.call(t,n)),C.call(t,t.media,"playing play pause ended emptied timeupdate",n=>E.checkPlaying.call(t,n)),C.call(t,t.media,"waiting canplay seeked playing",n=>E.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=$.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;C.call(t,s.container,"click",r=>{![s.container,n].includes(r.target)&&!n.contains(r.target)||t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{V(t.play())},"play")):this.proxy(r,()=>{V(t.togglePlay())},"play"))})}t.supported.ui&&t.config.disableContextMenu&&C.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),C.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),C.call(t,t.media,"ratechange",()=>{d.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),C.call(t,t.media,"qualitychange",n=>{d.updateSetting.call(t,"quality",null,n.detail.quality)}),C.call(t,t.media,"ready qualitychange",()=>{d.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");C.call(t,t.media,a,n=>{let{detail:r={}}=n;n.type==="error"&&(r=t.media.error),v.call(t,s.container,n.type,!0,r)})}),m(this,"proxy",(t,s,a)=>{const{player:n}=this,r=n.config.listeners[a],o=l.function(r);let c=!0;o&&(c=r.call(n,t)),c!==!1&&l.function(s)&&s.call(n,t)}),m(this,"bind",(t,s,a,n,r=!0)=>{const{player:o}=this,c=o.config.listeners[n],u=l.function(c);C.call(o,t,s,p=>this.proxy(p,a,n),r&&!u)}),m(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=_.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{V(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{v.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),d.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{if([" ","Enter"].includes(n.key)){if(n.key==="Enter"){d.focusFirstMenuItem.call(t,null,!0);return}n.preventDefault(),n.stopPropagation(),d.toggleMenu.call(t,n)}},null,!1),this.bind(s.settings.menu,"keydown",n=>{n.key==="Escape"&&d.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const r=s.progress.getBoundingClientRect(),o=n.pageX-n.clientX,c=100/r.width*(n.pageX-r.left-o);n.currentTarget.setAttribute("seek-value",c)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const r=n.currentTarget,o="play-on-seeked";if(l.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(n.type);c&&u?(r.removeAttribute(o),V(t.play())):!u&&t.playing&&(r.setAttribute(o,""),t.pause())}),_.isIos){const n=G.call(t,'input[type="range"]');Array.from(n).forEach(r=>this.bind(r,a,o=>Ye(o.target)))}this.bind(s.inputs.seek,a,n=>{const r=n.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>d.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(n)}),_.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",r=>d.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,d.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&n.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:r}=t;S(s.controls,n.classNames.noTransition,!0),E.toggleControls.call(t,!0),setTimeout(()=>{S(s.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>E.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",n=>{const r=n.webkitDirectionInvertedFromDevice,[o,c]=[n.deltaX,-n.deltaY].map(y=>r?-y:y),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const{volume:p}=t.media;(u===1&&p<1||u===-1&&p>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:a,type:n,altKey:r,ctrlKey:o,metaKey:c,shiftKey:u}=i,p=n==="keydown",y=p&&a===this.lastKey;if(r||o||c||u||!a)return;const h=f=>{t.currentTime=t.duration/10*f};if(p){const f=document.activeElement;if(l.element(f)){const{editable:T}=t.config.selectors,{seek:w}=s.inputs;if(f!==w&&Y(f,T)||i.key===" "&&Y(f,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y||h(Number.parseInt(a,10));break;case" ":case"k":y||V(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":y||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":y||t.toggleCaptions();break;case"l":t.loop=!t.loop;break}a==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){d.toggleMenu.call(this.player,i)}}var Me={exports:{}},mi=Me.exports,ht;function pi(){return ht||(ht=1,(function(e,i){(function(t,s){e.exports=s()})(mi,function(){var t=function(){},s={},a={},n={};function r(h,f){h=h.push?h:[h];var T=[],w=h.length,I=w,P,g,k,M;for(P=function(j,H){H.length&&T.push(j),I--,I||f(T)};w--;){if(g=h[w],k=a[g],k){P(g,k);continue}M=n[g]=n[g]||[],M.push(P)}}function o(h,f){if(h){var T=n[h];if(a[h]=f,!!T)for(;T.length;)T[0](h,f),T.splice(0,1)}}function c(h,f){h.call&&(h={success:h}),f.length?(h.error||t)(f):(h.success||t)(h)}function u(h,f,T,w){var I=document,P=T.async,g=(T.numRetries||0)+1,k=T.before||t,M=h.replace(/[\?|#].*$/,""),j=h.replace(/^(css|img|module|nomodule)!/,""),H,R,N;if(w=w||0,/(^css!|\.css$)/.test(M))N=I.createElement("link"),N.rel="stylesheet",N.href=j,H="hideFocus"in N,H&&N.relList&&(H=0,N.rel="preload",N.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(M))N=I.createElement("img"),N.src=j;else if(N=I.createElement("script"),N.src=j,N.async=P===void 0?!0:P,R="noModule"in N,/^module!/.test(M)){if(!R)return f(h,"l");N.type="module"}else if(/^nomodule!/.test(M)&&R)return f(h,"l");N.onload=N.onerror=N.onbeforeload=function($e){var le=$e.type[0];if(H)try{N.sheet.cssText.length||(le="e")}catch(gt){gt.code!=18&&(le="e")}if(le=="e"){if(w+=1,w<g)return u(h,f,T,w)}else if(N.rel=="preload"&&N.as=="style")return N.rel="stylesheet";f(h,le,$e.defaultPrevented)},k(h,N)!==!1&&I.head.appendChild(N)}function p(h,f,T){h=h.push?h:[h];var w=h.length,I=w,P=[],g,k;for(g=function(M,j,H){if(j=="e"&&P.push(M),j=="b")if(H)P.push(M);else return;w--,w||f(P)},k=0;k<I;k++)u(h[k],g,T)}function y(h,f,T){var w,I;if(f&&f.trim&&(w=f),I=(w?T:f)||{},w){if(w in s)throw"LoadJS";s[w]=!0}function P(g,k){p(h,function(M){c(I,M),g&&c({success:g,error:k},M),o(w,M)},I)}if(I.returnPromise)return new Promise(P);P()}return y.ready=function(h,f){return r(h,function(T){c(f,T)}),y},y.done=function(h){o(h,[])},y.reset=function(){s={},a={},n={}},y.isDefined=function(h){return h in s},y})})(Me)),Me.exports}var gi=pi();const fi=bt(gi);function Ne(e){return new Promise((i,t)=>{fi(e,{success:i,error:t})})}function yi(e){if(l.empty(e))return null;if(l.number(Number(e)))return e;const i=/^.*(vimeo.com\/|video\/)(\d+).*/,t=e.match(i);return t?t[2]:e}function bi(e){const i=/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/,t=e.match(i);return t&&t.length===5?t[4]:null}function ie(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}const xe={setup(){const e=this;S(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,X.call(e),l.object(window.Vimeo)?xe.ready.call(e):Ne(e.config.urls.vimeo.sdk).then(()=>{xe.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...a}=i;let n=e.media.getAttribute("src"),r="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=bi(n);const o=r?{h:r}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const c=ct({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...a}),u=yi(n),p=b("iframe"),y=Ae(e.config.urls.vimeo.iframe,u,c);if(p.setAttribute("src",y),p.setAttribute("allowfullscreen",""),p.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||p.setAttribute("referrerPolicy",s),t||!i.customControls)p.setAttribute("data-poster",e.poster),e.media=ce(p,e.media);else{const g=b("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});g.appendChild(p),e.media=ce(g,e.media)}i.customControls||te(Ae(e.config.urls.vimeo.api,y)).then(g=>{l.empty(g)||!g.thumbnail_url||E.setPoster.call(e,g.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(p,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(ie.call(e,!0),e.embed.play()),e.media.pause=()=>(ie.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return h},set(g){const{embed:k,media:M,paused:j,volume:H}=e,R=j&&!k.hasPlayed;M.seeking=!0,v.call(e,M,"seeking"),Promise.resolve(R&&k.setVolume(0)).then(()=>k.setCurrentTime(g)).then(()=>R&&k.pause()).then(()=>R&&k.setVolume(H)).catch(()=>{})}});let f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return f},set(g){e.embed.setPlaybackRate(g).then(()=>{f=g,v.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:T}=e.config;Object.defineProperty(e.media,"volume",{get(){return T},set(g){e.embed.setVolume(g).then(()=>{T=g,v.call(e,e.media,"volumechange")})}});let{muted:w}=e.config;Object.defineProperty(e.media,"muted",{get(){return w},set(g){const k=l.boolean(g)?g:!1;e.embed.setMuted(k?!0:e.config.muted).then(()=>{w=k,v.call(e,e.media,"volumechange")})}});let{loop:I}=e.config;Object.defineProperty(e.media,"loop",{get(){return I},set(g){const k=l.boolean(g)?g:e.config.loop.active;e.embed.setLoop(k).then(()=>{I=k})}});let P;e.embed.getVideoUrl().then(g=>{P=g,d.setDownloadUrl.call(e)}).catch(g=>{this.debug.warn(g)}),Object.defineProperty(e.media,"currentSrc",{get(){return P}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(g=>{const[k,M]=g;e.embed.ratio=st(k,M),X.call(this)}),e.embed.setAutopause(e.config.autopause).then(g=>{e.config.autopause=g}),e.embed.getVideoTitle().then(g=>{e.config.title=g,E.setTitle.call(this)}),e.embed.getCurrentTime().then(g=>{h=g,v.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(g=>{e.media.duration=g,v.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(g=>{e.media.textTracks=g,A.setup.call(e)}),e.embed.on("cuechange",({cues:g=[]})=>{const k=g.map(M=>li(M.text));A.updateCues.call(e,k)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(g=>{ie.call(e,!g),g||v.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{v.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{v.call(e,e.media,"playing")}),e.embed.on("play",()=>{ie.call(e,!0),v.call(e,e.media,"playing")}),e.embed.on("pause",()=>{ie.call(e,!1)}),e.embed.on("timeupdate",g=>{e.media.seeking=!1,h=g.seconds,v.call(e,e.media,"timeupdate")}),e.embed.on("progress",g=>{e.media.buffered=g.percent,v.call(e,e.media,"progress"),Number.parseInt(g.percent,10)===1&&v.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(k=>{k!==e.media.duration&&(e.media.duration=k,v.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,v.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,v.call(e,e.media,"ended")}),e.embed.on("error",g=>{e.media.error=g,v.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>E.build.call(e),0)}};function vi(e){if(l.empty(e))return null;const i=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,t=e.match(i);return t&&t[2]?t[2]:e}function se(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}function wi(e){if(e.noCookie)return"https://www.youtube-nocookie.com";if(window.location.protocol==="http:")return"http://www.youtube.com"}const ge={setup(){if(S(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))ge.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),ge.ready.call(this)},Ne(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){const i=Ae(this.config.urls.youtube.api,e);te(i).then(t=>{if(l.object(t)){const{title:s,height:a,width:n}=t;this.config.title=s,E.setTitle.call(this),this.embed.ratio=st(n,a)}X.call(this)}).catch(()=>{X.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=vi(s),n=ii(e.provider),r=b("div",{id:n,"data-poster":i.customControls?e.poster:void 0});if(e.media=ce(r,e.media),i.customControls){const o=c=>`https://i.ytimg.com/vi/${a}/${c}default.jpg`;pe(o("maxres"),121).catch(()=>pe(o("sd"),121)).catch(()=>pe(o("hq"))).then(c=>E.setPoster.call(e,c.src)).then(c=>{c.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:wi(i),playerVars:x({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const c=o.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[c]||"An unknown error occurred";e.media.error={code:c,message:u},v.call(e,e.media,"error")}},onPlaybackRateChange(o){const c=o.target;e.media.playbackRate=c.getPlaybackRate(),v.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const c=o.target;ge.getTitle.call(e,a),e.media.play=()=>{se.call(e,!0),c.playVideo()},e.media.pause=()=>{se.call(e,!1),c.pauseVideo()},e.media.stop=()=>{c.stopVideo()},e.media.duration=c.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(c.getCurrentTime())},set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,v.call(e,e.media,"seeking"),c.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get(){return c.getPlaybackRate()},set(h){c.setPlaybackRate(h)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get(){return u},set(h){u=h,c.setVolume(u*100),v.call(e,e.media,"volumechange")}});let{muted:p}=e.config;Object.defineProperty(e.media,"muted",{get(){return p},set(h){const f=l.boolean(h)?h:p;p=f,c[f?"mute":"unMute"](),c.setVolume(u*100),v.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get(){return c.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}});const y=c.getAvailablePlaybackRates();e.options.speed=y.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),v.call(e,e.media,"timeupdate"),v.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=c.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&v.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),v.call(e,e.media,"canplaythrough"))},200),i.customControls&&setTimeout(()=>E.build.call(e),50)},onStateChange(o){const c=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,v.call(e,e.media,"seeked")),o.data){case-1:v.call(e,e.media,"timeupdate"),e.media.buffered=c.getVideoLoadedFraction(),v.call(e,e.media,"progress");break;case 0:se.call(e,!1),e.media.loop?(c.stopVideo(),c.playVideo()):v.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(se.call(e,!0),v.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{v.call(e,e.media,"timeupdate")},50),e.media.duration!==c.getDuration()&&(e.media.duration=c.getDuration(),v.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),se.call(e,!1);break;case 3:v.call(e,e.media,"waiting");break}v.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},dt={setup(){if(!this.media){this.debug.warn("No media element found!");return}S(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),S(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&S(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=b("div",{class:this.config.classNames.video}),Qe(this.media,this.elements.wrapper),this.elements.poster=b("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?B.setup.call(this):this.isYouTube?ge.setup.call(this):this.isVimeo&&xe.setup.call(this)}};function ki(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}class Ti{constructor(i){m(this,"load",()=>{this.enabled&&(!l.object(window.google)||!l.object(window.google.ima)?Ne(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}):this.ready())}),m(this,"ready",()=>{this.enabled||ki(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),m(this,"setupIMA",()=>{this.elements.container=b("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),m(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),m(this,"pollCountdown",(t=!1)=>{if(!t){clearInterval(this.countdownTimer),this.elements.container.removeAttribute("data-badge-text");return}const s=()=>{const a=me(Math.max(this.manager.getRemainingTime(),0)),n=`${O.get("advertisement",this.player.config)} - ${a}`;this.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(s,100)}),m(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),m(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const s=this.player.elements.progress;if(l.element(s)){const a=100/this.player.duration*t,n=b("span",{class:this.player.config.classNames.cues});n.style.left=`${a.toString()}%`,s.appendChild(n)}}})}),m(this,"onAdEvent",t=>{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((r=>{v.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`);break}}),m(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),m(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,r)=>{s<n&&n<a&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),m(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),m(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,V(this.player.media.play())}),m(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),m(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),m(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),m(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),m(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),m(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),m(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;if(l.url(i.tagUrl))return i.tagUrl;const t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId};return`https://go.aniview.com/api/adserver6/vast/?${ct(t)}`}}function mt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}function Ci(e){const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);n&&(s.startTime=Number(n[1]||0)*60*60+Number(n[2])*60+Number(n[3])+ +`0.${n[4]}`,s.endTime=Number(n[6]||0)*60*60+Number(n[7])*60+Number(n[8])+ +`0.${n[9]}`)}}),s.text&&i.push(s)}),i}function pt(e,i){const t=i.width/i.height,s={};return e>t?(s.width=i.width,s.height=1/e*i.width):(s.height=i.height,s.width=e*i.height),s}class Le{constructor(i){m(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),m(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,r)=>n.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(n).then(a)}})),m(this,"getThumbnail",t=>new Promise(s=>{te(t,void 0,this.player.config.previewThumbnails.withCredentials).then(a=>{const n={frames:Ci(a),height:null,urlPrefix:""};!n.frames[0].text.startsWith("/")&&!n.frames[0].text.startsWith("http://")&&!n.frames[0].text.startsWith("https://")&&(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{n.height=r.naturalHeight,n.width=r.naturalWidth,this.thumbnails.push(n),s()},r.src=n.urlPrefix+n.frames[0].text})})),m(this,"startMove",t=>{var s,a;if(this.loaded&&!(!l.event(t)||!["touchmove","mousemove"].includes(t.type))&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const n=this.player.elements.progress.getBoundingClientRect(),r=100/n.width*(t.pageX-n.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.textContent=me(this.seekTime);const o=(a=(s=this.player.config.markers)==null?void 0:s.points)==null?void 0:a.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),m(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),m(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):ke.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),m(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),m(this,"render",()=>{this.elements.thumb.container=b("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=b("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=b("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=b("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=b("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),m(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),m(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,r)=>{this.loadedImages.includes(n.frames[t].text)&&(a=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,r=a.frames[s],o=a.frames[s].text,c=n+o;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==o){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image;u.src=c,u.dataset.index=s,u.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),u.onload=()=>this.showImage(u,r,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u)}else this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement)}),m(this,"showImage",(t,s,a,n,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${n}. qual: ${a}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,r))}),m(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),m(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let r;s?r=this.thumbnails[0].frames.slice(t):r=this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const u=c.text;if(u!==n&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:p}=this.thumbnails[0],y=p+u,h=new Image;h.src=y,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),a()}}}),o||a()}},300)})),m(this,"getHigherQuality",(t,s,a,n)=>{if(t<this.thumbnails.length-1){let r=s.naturalHeight;this.usingSprites&&(r=a.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const a=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(a,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),m(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),m(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,n=s.left-t.left+10,r=s.right-t.left-a.clientWidth-10,o=this.mousePosX-t.left-a.clientWidth/2,c=mt(o,n,r);a.style.left=`${c}px`,a.style.setProperty("--preview-arrow-offset",`${o-c}px`)}),m(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=pt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),m(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=`${t.naturalHeight*a}px`,t.style.width=`${t.naturalWidth*a}px`,t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=pt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Ie={insertElements(e,i){l.string(i)?Je(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{Je(e,this.media,t)})},change(e){if(!Xe(e,"sources.length")){this.debug.warn("Invalid source format");return}B.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],W(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=z.html5,src:a}]=i,n=s==="html5"?t:"div",r=s==="html5"?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:L.check(t,s,this.config.playsinline),media:b(n,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),E.addStyleHook.call(this),this.isHTML5&&Ie.insertElements.call(this,"source",i),this.config.title=e.title,dt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Ie.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&E.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))),this.fullscreen.update()},!0)}};class ae{constructor(i,t){if(m(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>V(this.media.play())),this.media.play()):null),m(this,"pause",()=>!this.playing||!l.function(this.media.pause)?null:this.media.pause()),m(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),m(this,"restart",()=>{this.currentTime=0}),m(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),m(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),m(this,"increaseVolume",o=>{const c=this.media.muted?0:this.volume;this.volume=c+(l.number(o)?o:0)}),m(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),m(this,"airplay",()=>{L.airplay&&this.media.webkitShowPlaybackTargetPicker()}),m(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=ue(this.elements.container,this.config.classNames.hideControls),u=typeof o>"u"?void 0:!o,p=S(this.elements.container,this.config.classNames.hideControls,u);if(p&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&d.toggleMenu.call(this,!1),p!==c){const y=p?"controlshidden":"controlsshown";v.call(this,this.media,y)}return!p}return!1}),m(this,"on",(o,c)=>{C.call(this,this.elements.container,o,c)}),m(this,"once",(o,c)=>{ke.call(this,this.elements.container,o,c)}),m(this,"off",(o,c)=>{he(this.elements.container,o,c)}),m(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(W(this.elements.buttons.play),W(this.elements.captions),W(this.elements.controls),W(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(Yt.call(this),B.cancelRequests.call(this),ce(this.elements.original,this.elements.container),v.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(E.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200))}),m(this,"supports",o=>L.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=L.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=x({},ut,ae.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new hi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",L),l.nullOrUndefined(this.media)||!l.element(this.media)){this.debug.error("Setup failed: no suitable element passed");return}if(this.media.plyr){this.debug.warn("Target already setup");return}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return}if(!L.check().api){this.debug.error("Setup failed: no support");return}const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,r=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(r=ot(n.getAttribute("src")),this.provider=ui(r.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(z).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return}this.type=Ee.video;break;case"video":case"audio":this.type=a,this.provider=z.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:this.debug.error("Setup failed: unsupported type");return}if(this.supported=L.check(this.type,this.provider),!this.supported.api){this.debug.error("Setup failed: no support");return}this.eventListeners=[],this.listeners=new di(this),this.storage=new ne(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=b("div"),Qe(this.media,this.elements.container)),E.migrateStyles.call(this),E.addStyleHook.call(this),dt.setup.call(this),this.config.debug&&C.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new q(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&E.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ti(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>V(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))}get isHTML5(){return this.provider===z.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===z.youtube}get isVimeo(){return this.provider===z.vimeo}get isVideo(){return this.type===Ee.video}get isAudio(){return this.type===Ee.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,s=!l.number(t)||t===1/0?0:t;return i||s}set volume(i){let t=i;const s=1,a=0;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>s&&(t=s),t<a&&(t=a),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||this.isAudio?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=mt(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const r=Ze(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${r} instead`),a=r,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){Ie.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,d.setDownloadUrl.call(this))}set poster(i){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return}E.setPoster.call(this,i,!1).catch(()=>{})}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=de(Ce.call(this));return l.array(i)?i.join(":"):i}set ratio(i){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return}if(!l.string(i)||!it(i)){this.debug.error(`Invalid aspect ratio specified (${i})`);return}this.config.ratio=de(i),X.call(this)}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){A.toggle.call(this,i,!1)}set currentTrack(i){A.set.call(this,i,!1),A.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){A.setLanguage.call(this,i,!1)}get language(){return(A.getCurrentTrack.call(this)||{}).language}set pip(i){if(!L.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Se.active:Se.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return L.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Se.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))}static supported(i,t){return L.check(i,t)}static loadSprite(i,t){return lt(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new ae(a,t))}}ae.defaults=Wt(ut);export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-
|
|
1
|
+
import{dy as s}from"./runtime-DM500Cza.js";function l(n,e){for(var a=0;a<e.length;a++){const t=e[a];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in n)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var o,b;function u(){if(b)return o;b=1,o=n,n.displayName="powerquery",n.aliases=[];function n(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}return o}var d=u();const c=s(d),g=l({__proto__:null,default:c},[d]);export{g as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-
|
|
1
|
+
import{dy as l}from"./runtime-DM500Cza.js";function c(r,i){for(var t=0;t<i.length;t++){const e=i[t];if(typeof e!="string"&&!Array.isArray(e)){for(const n in e)if(n!=="default"&&!(n in r)){const o=Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a,s;function d(){if(s)return a;s=1,a=r,r.displayName="powershell",r.aliases=[];function r(i){(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(i)}return a}var p=d();const m=l(p),u=c({__proto__:null,default:m},[p]);export{u as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-
|
|
1
|
+
import{dy as c}from"./runtime-DM500Cza.js";function u(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function f(){if(s)return i;s=1,i=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return i}var l=f();const p=c(l),b=u({__proto__:null,default:p},[l]);export{b as p};
|