players.brightcove.net
Open in
urlscan Pro
184.28.89.92
Public Scan
URL:
https://players.brightcove.net/5036649783001/wt1SkxgXE_default/index.min.js
Submission: On August 13 via api from IT — Scanned from IT
Submission: On August 13 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
(function(e,t){if(typeof define==="function"&&define.amd){define("bc",[],function(){var i=t.apply(this,arguments);e.videojs.log.warn("DEPRECATION: Using the default named RequireJS module in the Brightcove Player is deprecated. See: https://support.brightcove.com/requirejs-and-brightcove-player#Future_implementation");return i})}else if(typeof exports==="object"){module.exports=t()}else{e.bc=t(e)}})(this,function(root){var vjsCssText='@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\uf10d";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \uf11d";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}',cssText=".bc-player-wt1SkxgXE_default *,.bc-player-wt1SkxgXE_default :after,.bc-player-wt1SkxgXE_default :before{box-sizing:inherit;font-size:inherit;color:inherit;line-height:inherit}.bc-player-wt1SkxgXE_default{width:300px;height:150px;font-size:14px;overflow:hidden}.bc-player-wt1SkxgXE_default.vjs-fluid.vjs-16-9:not(.vjs-audio-only-mode),.bc-player-wt1SkxgXE_default.vjs-fluid:not(.vjs-audio-only-mode){padding-top:56.25%}.bc-player-wt1SkxgXE_default.vjs-fluid.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.bc-player-wt1SkxgXE_default.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.bc-iframe,.bc-iframe body,.bc-player-wt1SkxgXE_default,.bc-player-wt1SkxgXE_default .vjs-poster{background-color:#151B17}.bc-iframe,.bc-iframe .bc-player-wt1SkxgXE_default,.bc-iframe body{margin:0;width:100%;height:100%;overflow:hidden}.bc-player-wt1SkxgXE_default.vjs-fullscreen,.bc-player-wt1SkxgXE_default.vjs-fullscreen .vjs-tech{width:100%!important;height:100%!important}.bc-player-wt1SkxgXE_default .vjs-track-setting select{color:#000;background-color:#fff}.bc-player-wt1SkxgXE_default .vjs-audio-button .vjs-menu-item,.bc-player-wt1SkxgXE_default .vjs-chapters-button .vjs-menu-item,.bc-player-wt1SkxgXE_default .vjs-descriptions-button .vjs-menu-item,.bc-player-wt1SkxgXE_default .vjs-subs-caps-button .vjs-menu-item{text-transform:none}.bc-player-wt1SkxgXE_default.vjs-waiting-for-autoplay .vjs-big-play-button{opacity:0}.bc-player-wt1SkxgXE_default .vjs-progress-control .vjs-mouse-display{z-index:2}/*! @name @brightcove/player-core @version 0.31.0 @license UNLICENSED */.vjs-modal-dialog.vjs-player-info-modal{background:rgba(0,0,0,.9)}.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{overflow:auto;display:grid;grid-template-columns:1fr 1fr;grid-gap:1em}@media screen and (max-width:640px){.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-modal-dialog.vjs-player-info-modal h2{font-size:1.1667em;margin:0 0 .4286em}.vjs-modal-dialog.vjs-player-info-modal table{border-bottom:1px solid #333;border-collapse:collapse;border-top:1px solid #333;margin-bottom:1.5em;width:100%}.vjs-modal-dialog.vjs-player-info-modal table.vjs-two td,.vjs-modal-dialog.vjs-player-info-modal table.vjs-two th{width:50%}.vjs-modal-dialog.vjs-player-info-modal table.vjs-three td,.vjs-modal-dialog.vjs-player-info-modal table.vjs-three th{width:33.333%}.vjs-modal-dialog.vjs-player-info-modal th{font-weight:400;text-align:left}.vjs-modal-dialog.vjs-player-info-modal td{border-bottom:1px solid #333;opacity:.5}.vjs-modal-dialog.vjs-player-info-modal tr:last-child td{border-bottom:0}.vjs-modal-dialog.vjs-player-info-modal tr:hover td{opacity:1}.vjs-error-display{color:#fff;display:none;font-family:Helvetica,Arial,sans serif;font-size:16px;line-height:1.428}.vjs-error .vjs-error-display{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:14px}.vjs-errors-dialog{text-align:left;border:1px #999 solid;overflow:hidden;position:absolute;top:2%;bottom:2%;left:5%;right:5%;padding-left:1%;padding-right:1%;background:rgba(24,24,24,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)\"}.vjs-errors-details{margin-top:15px}.vjs-errors-message{border:1px #999 solid;background-color:#2c2c2c;overflow:auto;margin-top:15px;padding:15px}.vjs-errors-ok-button-container{display:block;position:absolute;bottom:15px;left:15px;right:15px;text-align:center}.vjs-errors-ok-button{display:block;margin:0 auto;width:80px;height:36px;background-color:#000;border:1px #999 solid;border-radius:5px;color:#999;font-size:14px;cursor:pointer}.vjs-errors-ok-button:hover{border:1px #FFF solid;color:#CCC}.vjs-errors-content-container{overflow:auto;position:absolute;padding-bottom:15px;top:0;left:15px;right:15px;bottom:61px}.vjs-errors-headline{font-size:14px;font-weight:700;padding-right:3em}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-flashmessage{float:right;font-size:9px;font-style:italic}.vjs-xs.vjs-error-display{font-size:14px;background-color:#000}.vjs-xs.vjs-error-display .vjs-errors-details,.vjs-xs.vjs-error-display .vjs-errors-message{display:none}.vjs-xs .vjs-errors-content-container{top:0}.vjs-xs .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-xs .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-xs.vjs-errors-flashmessage{display:none}@media (max-width:600px),(max-height:250px){.vjs-error-display{font-size:14px;background-color:#000}.vjs-error-display .vjs-errors-details,.vjs-error-display .vjs-errors-message{display:none}.vjs-error-display .vjs-errors-content-container{top:15px}.vjs-error-display .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-error-display .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-errors-flashmessage{display:none}}.vjs-errors-ref-id{color:rgba(255,255,255,.5);font-size:.75em;margin:.5em 0 0}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1.8em;font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s}.video-js .vjs-dock-text{left:0;margin:0;width:100%;background:rgba(0,0,0,.8);background:-webkit-linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,rgba(0,0,0,0) 100%);background:linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,rgba(0,0,0,0) 100%);padding:1em 25% 2em 1em}.video-js.vjs-no-flex .vjs-dock-text{padding-bottom:1em}.video-js .vjs-dock-shelf{padding:1em 1em;right:0;text-align:right;width:25%}.video-js .vjs-dock-shelf *{pointer-events:auto}.video-js .vjs-dock-description,.video-js .vjs-dock-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-js .vjs-dock-title{font-weight:700;letter-spacing:1px;line-height:1.333;margin-bottom:.333em}.video-js .vjs-dock-description{font-weight:400;line-height:1.5}.vjs-playing.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-user-inactive .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-text{display:none}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1em}.vjs-has-started:not(:hover) .vjs-dock-shelf:focus-within{opacity:1}.vjs-has-started:not(:hover) .vjs-dock-shelf,.vjs-has-started:not(:hover) .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}/*! @name videojs-contextmenu-ui @version 5.2.0 @license Apache-2.0 */.vjs-contextmenu-ui-menu{position:absolute}.vjs-contextmenu-ui-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;padding:.25em}.vjs-contextmenu-ui-menu .vjs-menu-item{border-radius:.3em;cursor:pointer;margin:0 0 1px;padding:.5em 1em;font-size:1em;line-height:1.2;text-transform:none}.vjs-contextmenu-ui-menu .vjs-menu-item:active,.vjs-contextmenu-ui-menu .vjs-menu-item:hover{background-color:rgba(0,0,0,.5);text-shadow:0 0 1em #fff}.bc-player-wt1SkxgXE_default .vjs-control-bar{background-color:rgba(0,0,0,.45);color:#fff}.bc-player-wt1SkxgXE_default .vjs-control{color:inherit}.bc-player-wt1SkxgXE_default .vjs-mouse-display:after,.bc-player-wt1SkxgXE_default .vjs-play-progress:after{border-radius:0}.bc-player-wt1SkxgXE_default .vjs-menu-button-inline:hover,.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-menu-button-inline{width:8.35em}.bc-player-wt1SkxgXE_default .vjs-control:focus:before,.bc-player-wt1SkxgXE_default .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}.bc-player-wt1SkxgXE_default .vjs-spacer{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:1 1 auto;-moz-box-flex:1 1 auto;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.bc-player-wt1SkxgXE_default .vjs-time-control{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:0 1 auto;-moz-box-flex:0 1 auto;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;width:auto}.bc-player-wt1SkxgXE_default .vjs-time-control.vjs-time-divider{width:14px}.bc-player-wt1SkxgXE_default .vjs-time-control.vjs-time-divider div{width:100%;text-align:center}.bc-player-wt1SkxgXE_default .vjs-time-control.vjs-current-time{margin-left:1em}.bc-player-wt1SkxgXE_default .vjs-time-control .vjs-current-time-display,.bc-player-wt1SkxgXE_default .vjs-time-control .vjs-duration-display{width:100%}.bc-player-wt1SkxgXE_default .vjs-time-control .vjs-current-time-display{text-align:right}.bc-player-wt1SkxgXE_default .vjs-time-control .vjs-duration-display{text-align:left}.bc-player-wt1SkxgXE_default .vjs-remaining-time{display:none}.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-time-control.vjs-remaining-time{display:none}.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-wt1SkxgXE_default .vjs-play-progress,.bc-player-wt1SkxgXE_default .vjs-volume-level{background-color:#d52484}.bc-player-wt1SkxgXE_default.vjs-ad-playing .vjs-play-progress,.bc-player-wt1SkxgXE_default.vjs-ad-playing .vjs-volume-level{background-color:#ffe400}.bc-player-wt1SkxgXE_default .vjs-play-progress:before,.bc-player-wt1SkxgXE_default .vjs-volume-level:before{display:none}.bc-player-wt1SkxgXE_default .vjs-volume-level:after{display:none}.bc-player-wt1SkxgXE_default .vjs-progress-control{position:absolute;left:0;right:0;width:100%;height:1.5em;top:-1.5em}.bc-player-wt1SkxgXE_default .vjs-progress-control .vjs-load-progress,.bc-player-wt1SkxgXE_default .vjs-progress-control .vjs-play-progress,.bc-player-wt1SkxgXE_default .vjs-progress-control .vjs-progress-holder{height:100%}.bc-player-wt1SkxgXE_default .vjs-progress-control .vjs-progress-holder{margin:0}.bc-player-wt1SkxgXE_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-wt1SkxgXE_default .vjs-control-bar:not(.vjs-focus-within){-webkit-transition:-webkit-transform .1s ease 0s;-moz-transition:-moz-transform .1s ease 0s;-ms-transition:-ms-transform .1s ease 0s;-o-transition:-o-transform .1s ease 0s;transition:transform .1s ease 0s}.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){visibility:visible;opacity:1;-webkit-backface-visibility:hidden;-webkit-transform:translateY(3em);-moz-transform:translateY(3em);-ms-transform:translateY(3em);-o-transform:translateY(3em);transform:translateY(3em);-webkit-transition:-webkit-transform 1s ease 0s;-moz-transition:-moz-transform 1s ease 0s;-ms-transition:-ms-transform 1s ease 0s;-o-transition:-o-transform 1s ease 0s;transition:transform 1s ease 0s}.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active:not(.vjs-audio-only-mode) .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-audio-only-mode) .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-audio-only-mode) .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-audio-only-mode) .vjs-progress-control,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-audio-only-mode) .vjs-progress-control,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-audio-only-mode) .vjs-progress-control{height:.3em;top:-.3em;pointer-events:none;-webkit-transition:height 1s,top 1s;-moz-transition:height 1s,top 1s;-ms-transition:height 1s,top 1s;-o-transition:height 1s,top 1s;transition:height 1s,top 1s}.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-volume-vertical,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-volume-vertical,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-volume-vertical,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-menu,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-wt1SkxgXE_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu-item,.bc-player-wt1SkxgXE_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu{opacity:1}.bc-player-wt1SkxgXE_default.vjs-live .vjs-live-control{margin-left:1em}.bc-player-wt1SkxgXE_default.vjs-live .vjs-time-control.vjs-current-time,.bc-player-wt1SkxgXE_default.vjs-live .vjs-time-control.vjs-duration,.bc-player-wt1SkxgXE_default.vjs-live .vjs-time-control.vjs-time-divider{display:none}.bc-player-wt1SkxgXE_default .vjs-big-play-button{top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;font-size:3.5em;background-color:rgba(0,0,0,.45);color:#fff;-webkit-transition:border-color .4s,outline .4s,background-color .4s;-moz-transition:border-color .4s,outline .4s,background-color .4s;-ms-transition:border-color .4s,outline .4s,background-color .4s;-o-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s}.bc-player-wt1SkxgXE_default .vjs-big-play-button:active,.bc-player-wt1SkxgXE_default .vjs-big-play-button:focus,.bc-player-wt1SkxgXE_default:active .vjs-big-play-button,.bc-player-wt1SkxgXE_default:hover .vjs-big-play-button{background-color:#d52484}.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu{left:-3em}.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:transparent;width:12em;left:-1.5em;padding-bottom:.5em}.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item,.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-title{background-color:#151B17;margin:.3em 0;padding:.5em;border-radius:.3em}.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected{background-color:#d52484}.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff;color:#fff}.bc-player-wt1SkxgXE_default.vjs-ad-playing .vjs-mouse-display,.bc-player-wt1SkxgXE_default.vjs-ad-playing .vjs-mouse-display:after{display:none}.bc-player-wt1SkxgXE_default.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{pointer-events:auto;width:100%;height:100%;position:absolute;left:0;bottom:0;content:\" \";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.bc-player-wt1SkxgXE_default.vjs-ad-playing .vjs-picture-in-picture-control{display:none}.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-spacer{display:table-cell}.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-wt1SkxgXE_default.vjs-no-flex .vjs-remaining-time{display:none}.vjs-mouse.bc-player-wt1SkxgXE_default .vjs-control-bar{font-size:10px}.vjs-mouse.bc-player-wt1SkxgXE_default .vjs-progress-control{height:.5em;top:-.5em}.vjs-mouse.bc-player-wt1SkxgXE_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-wt1SkxgXE_default select{width:inherit}.bc-player-wt1SkxgXE_default.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.bc-player-wt1SkxgXE_default.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:block}.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-glow .vjs-big-play-button:active,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-glow .vjs-big-play-button:focus,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-glow:active .vjs-big-play-button,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-glow:hover .vjs-big-play-button{box-shadow:0 0 15px 3px #fff;background-color:rgba(0,0,0,.45)}.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-darken .vjs-big-play-button:active,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-darken .vjs-big-play-button:focus,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-darken:active .vjs-big-play-button,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-hover-darken:hover .vjs-big-play-button{background-color:rgba(0,0,0,.85)}.bc-player-wt1SkxgXE_default.vjs-play-button-shape-square .vjs-big-play-button{border-radius:11px;height:2em;width:2em;margin-left:-1em;margin-top:-1em}.bc-player-wt1SkxgXE_default.vjs-play-button-shape-rectangle .vjs-big-play-button{border-radius:21px;height:2em;width:3em;margin-left:-1.5em;margin-top:-1em}.bc-player-wt1SkxgXE_default.vjs-play-button-position-top-left .vjs-big-play-button{margin:0;left:17px;top:17px}.bc-player-wt1SkxgXE_default.vjs-play-button-position-top-right .vjs-big-play-button{margin:0;right:17px;left:auto;top:17px}.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-position-top-left .vjs-dock-shelf,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-position-top-left .vjs-dock-text,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-position-top-right .vjs-dock-shelf,.bc-player-wt1SkxgXE_default.video-js.vjs-play-button-position-top-right .vjs-dock-text{display:none}.bc-player-wt1SkxgXE_default .vjs-big-play-button,.bc-player-wt1SkxgXE_default .vjs-big-play-state.vjs-play-control.vjs-control,.bc-player-wt1SkxgXE_default .vjs-control-bar{background-color:rgba(0,0,0,.45)}.bc-player-wt1SkxgXE_default .vjs-big-play-button,.bc-player-wt1SkxgXE_default .vjs-big-play-state,.bc-player-wt1SkxgXE_default .vjs-control-bar{color:#fff}.bc-iframe .vjs-playlist-sidebar .vjs-playlist-show-hide button:hover,.bc-player-wt1SkxgXE_default .vjs-big-play-button:active,.bc-player-wt1SkxgXE_default .vjs-big-play-button:focus,.bc-player-wt1SkxgXE_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected,.bc-player-wt1SkxgXE_default .vjs-play-progress,.bc-player-wt1SkxgXE_default .vjs-volume-level,.bc-player-wt1SkxgXE_default:active .vjs-big-play-button,.bc-player-wt1SkxgXE_default:hover .vjs-big-play-button{background-color:#d62424}.bc-player-wt1SkxgXE_default.vjs-audio-mode.vjs-has-started.vjs-focus-within.video-js.video-js.video-js .vjs-control-bar,.bc-player-wt1SkxgXE_default.vjs-audio-mode.vjs-has-started.vjs-user-active.video-js.video-js.video-js .vjs-control-bar:not(.vjs-focus-within),.bc-player-wt1SkxgXE_default.vjs-audio-mode.vjs-has-started.vjs-user-inactive.video-js.video-js.video-js .vjs-control-bar{opacity:1;visibility:visible;transform:none}.bc-player-wt1SkxgXE_default.vjs-audio-only-mode .vjs-poster{display:none}.bc-player-wt1SkxgXE_default.vjs-audio-only-mode .vjs-progress-control{height:1.5em;top:-1.5em}.vjs-bumper-video .vjs-play-progress.vjs-play-progress-resetting{transition:width 0s linear}.vjs-bumper-video .vjs-dock-text{display:none}.video-js .vjs-overlay{color:#fff;position:absolute;text-align:center}.video-js .vjs-overlay-no-background{max-width:33%}.video-js .vjs-overlay-background{background-color:#646464;background-color:rgba(255,255,255,.4);border-radius:3px;padding:10px;width:33%}.video-js .vjs-overlay-top-left{top:5px;left:5px}.video-js .vjs-overlay-top{left:50%;margin-left:-16.5%;top:5px}.video-js .vjs-overlay-top-right{right:5px;top:5px}.video-js .vjs-overlay-right{right:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-bottom-right{bottom:3.5em;right:5px}.video-js .vjs-overlay-bottom{bottom:3.5em;left:50%;margin-left:-16.5%}.video-js .vjs-overlay-bottom-left{bottom:3.5em;left:5px}.video-js .vjs-overlay-left{left:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-center{left:50%;margin-left:-16.5%;top:50%;transform:translateY(-50%)}.video-js .vjs-no-flex .vjs-overlay-center,.video-js .vjs-no-flex .vjs-overlay-left,.video-js .vjs-no-flex .vjs-overlay-right{margin-top:-15px}.video-js .vjs-related .vjs-modal-dialog-content{padding:0}.video-js.vjs-related-showing .vjs-dock-shelf,.video-js.vjs-related-showing .vjs-dock-text{display:none}@keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-ms-keyframes fadein{from{opacity:0}to{opacity:1}}@-o-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-ms-keyframes fadeout{from{opacity:1}to{opacity:0}}@-o-keyframes fadeout{from{opacity:1}to{opacity:0}}.vjs-related{-webkit-animation:fadein 2s;-moz-animation:fadein 2s;-ms-animation:fadein 2s;-o-animation:fadein 2s;animation:fadein 2s}.vjs-related.hiding{-webkit-animation:fadein 1s;-moz-animation:fadein 1s;-ms-animation:fadein 1s;-o-animation:fadein 1s;animation:fadein 1s}.vjs-related .vjs-related-list{color:#fff;text-shadow:0 0 5px #000;display:table;height:100%;margin:0;padding:0;position:absolute;width:100%}.vjs-related .vjs-related-list li{background-size:cover;cursor:pointer;display:block;height:33.33333%;overflow:hidden;position:absolute;transition:box-shadow .5s;width:33.33333%}.vjs-related .vjs-related-list li:hover{box-shadow:inset 0 3px 6px rgba(0,0,0,.3),inset 0 3px 6px rgba(0,0,0,.5)}.vjs-related .vjs-related-list li:hover cite{visibility:hidden}.vjs-related .vjs-related-list li:hover cite::before{content:\"\\\uf101\";font-family:VideoJS;font-size:200%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);visibility:visible}.vjs-related .vjs-related-list li cite{display:block;font-style:normal;position:relative;text-align:center;top:50%;transform:translateY(-50%);background-color:rgba(0,0,0,.5)}.vjs-related .vjs-related-list li p{display:none}.vjs-related .vjs-related-list li:nth-child(2),.vjs-related .vjs-related-list li:nth-child(4),.vjs-related .vjs-related-list li:nth-child(6){left:33.33333%}.vjs-related .vjs-related-list li:nth-child(3),.vjs-related .vjs-related-list li:nth-child(5),.vjs-related .vjs-related-list li:nth-child(7){left:66.66667%}.vjs-related .vjs-related-list li:nth-child(4),.vjs-related .vjs-related-list li:nth-child(5){top:33.33333%}.vjs-related .vjs-related-list li:nth-child(6),.vjs-related .vjs-related-list li:nth-child(7),.vjs-related .vjs-related-list li:nth-child(8){bottom:0}.vjs-related .vjs-related-list li:nth-child(n+9){display:none}.vjs-related.related-small .vjs-poster{height:50%;top:0;width:50%}.vjs-related.related-small li{height:50%;width:50%}.vjs-related.related-small li:nth-child(1),.vjs-related.related-small li:nth-child(3){left:50%}.vjs-related.related-small li:nth-child(2),.vjs-related.related-small li:nth-child(3){bottom:0}.vjs-related.related-small li:nth-child(2){left:0}.vjs-related.related-small li:nth-child(n+4){display:none}.vjs-related .vjs-poster{color:#fff;text-shadow:0 0 5px #000;background-position:initial;background-size:cover;cursor:pointer;height:33.33333%;position:absolute;top:33.33333%;transition:box-shadow .5s;width:33.33333%}.vjs-related .vjs-poster.vjs-poster{display:block}.vjs-related .vjs-poster::before{font-size:200%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.vjs-related .vjs-poster:hover{box-shadow:inset 0 3px 6px rgba(0,0,0,.3),inset 0 3px 6px rgba(0,0,0,.5)}.vjs-related .vjs-poster:hover::before{content:\"\\\uf101\"}/*! @name @brightcove/videojs-thumbnails @version 1.2.4 @license UNLICENSED */.video-js.vjs-thumbnails{display:block}.video-js.vjs-thumbnails .remove-me,.video-js.vjs-thumbnails .remove-me-too,.video-js.vjs-thumbnails.finally-remove-me{color:red;font-size:504px}.video-js .vjs-thumbnail-display{display:none;position:absolute}.video-js .vjs-progress-control:hover .vjs-thumbnail-display{display:block;position:absolute;width:150px;height:84px;bottom:2.2em;box-shadow:1px 1px 5px rgba(0,0,0,.35);background-color:#000}.video-js.vjs-ad-playing .vjs-progress-control:hover .vjs-thumbnail-display{display:none}.video-js .vjs-progress-control .vjs-thumbnail-display .vjs-thumbnail-image{width:100%;height:100%}.video-js.vjs-user-inactive .vjs-progress-control .vjs-thumbnail-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js .vjs-overlay{color:#fff;position:absolute;text-align:center}.video-js .vjs-overlay-no-background{max-width:33%}.video-js .vjs-overlay-background{background-color:#646464;background-color:rgba(255,255,255,.4);border-radius:3px;padding:10px;width:33%}.video-js .vjs-overlay-top-left{top:5px;left:5px}.video-js .vjs-overlay-top{left:50%;margin-left:-16.5%;top:5px}.video-js .vjs-overlay-top-right{right:5px;top:5px}.video-js .vjs-overlay-right{right:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-bottom-right{bottom:3.5em;right:5px}.video-js .vjs-overlay-bottom{bottom:3.5em;left:50%;margin-left:-16.5%}.video-js .vjs-overlay-bottom-left{bottom:3.5em;left:5px}.video-js .vjs-overlay-left{left:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-center{left:50%;margin-left:-16.5%;top:50%;transform:translateY(-50%)}.video-js .vjs-no-flex .vjs-overlay-center,.video-js .vjs-no-flex .vjs-overlay-left,.video-js .vjs-no-flex .vjs-overlay-right{margin-top:-15px}.vjs-ad-playing.vjs-ad-playing .vjs-progress-control{pointer-events:none}.vjs-ad-playing.vjs-ad-playing .vjs-play-progress{background-color:#ffe400}.vjs-ad-loading .vjs-loading-spinner{display:block;visibility:visible}.vjs-ad-playing .vjs-captions-button{display:none}.vjs-ad-playing .vjs-audio-button{display:none}.vjs-ad-loading .vjs-loading-spinner:after,.vjs-ad-loading .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-ad-loading .vjs-loading-spinner:before{border-top-color:#fff}.vjs-ad-loading .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}.vjs-ad-content-resuming .vjs-big-play-button,.vjs-ad-content-resuming .vjs-poster,.vjs-ad-loading .vjs-big-play-button,.vjs-ad-loading .vjs-poster{display:none}.vjs-ima3-ad-container{bottom:0;left:0;position:absolute;right:0;top:0}.vjs-ima3-html5 .vjs-ima3-ad-container>*,.vjs-ima3-html5 .vjs-ima3-ad-container>* iframe{width:100%!important;height:100%!important}.vjs-ima3-ad-container,.vjs-ima3-click-tracker{pointer-events:none}.vjs-ima3-ad-background{width:100%;height:100%;background-color:rgba(0,0,0,0);position:absolute;top:0;left:0}.vjs-ad-playing .vjs-ima3-ad-background{background-color:#000}.vjs-ad-playing .vjs-ima3-ad-container,.vjs-ad-playing .vjs-ima3-click-tracker,.vjs-ima3-overlay .vjs-ima3-ad-container,.vjs-ima3-overlay .vjs-ima3-click-tracker{left:0}.vjs-mouse.vjs-ima3-html5.vjs-ad-playing .vjs-ima3-ad-container,.vjs-mouse.vjs-ima3-html5.vjs-ad-playing .vjs-ima3-click-tracker,.vjs-mouse.vjs-ima3-html5.vjs-ima3-overlay .vjs-ima3-ad-container,.vjs-mouse.vjs-ima3-html5.vjs-ima3-overlay .vjs-ima3-click-tracker{cursor:pointer;pointer-events:auto}.vjs-user-active.vjs-ad-playing.vjs-ima3-html5 .vjs-ima3-ad-container,.vjs-user-active.vjs-ad-playing.vjs-ima3-html5 .vjs-ima3-click-tracker,.vjs-user-active.vjs-ima3-overlay.vjs-ima3-html5 .vjs-ima3-ad-container,.vjs-user-active.vjs-ima3-overlay.vjs-ima3-html5 .vjs-ima3-click-tracker{cursor:pointer;pointer-events:auto}.vjs-ima3-html5.vjs-using-native-controls.vjs-ima3-paused.vjs-ima3-paused .vjs-ima3-ad-container,.vjs-ima3-html5.vjs-using-native-controls.vjs-ima3-paused.vjs-ima3-paused .vjs-ima3-click-tracker{pointer-events:none}.vjs-ima3-click-tracker{bottom:0;left:0;margin:0;position:absolute;right:0;top:0}.vjs-ima3-overlay .vjs-ima3-click-tracker{top:auto;margin:0 auto}.vjs-ad-controls.vjs-ad-playing.vjs-controls-disabled .vjs-ad-control-bar.vjs-ad-control-bar,.vjs-ad-controls.vjs-ad-playing.vjs-using-native-controls .vjs-ad-control-bar.vjs-ad-control-bar{display:none}.vjs-ad-controls.vjs-ad-playing.vjs-user-active:not(.not-hover) .vjs-control-bar.vjs-ad-control-bar,.vjs-ad-controls.vjs-ad-playing.vjs-user-active:not(.vjs-hide-controls) .vjs-control-bar.vjs-ad-control-bar,.vjs-controls-enabled.vjs-ad-controls.vjs-ima3-overlay.vjs-user-active:not(.not-hover) .vjs-control-bar,.vjs-controls-enabled.vjs-ad-controls.vjs-ima3-overlay.vjs-user-active:not(.vjs-hide-controls) .vjs-control-bar{-ms-transform:none;-ms-transition:none;transform:none;transition:none}.vjs-ad-playing .vjs-dock-shelf,.vjs-ad-playing .vjs-dock-text{display:none}.vjs-ad-controls.vjs-ad-playing.vjs-vpaid-playing.vjs-vpaid-controls-disabled .vjs-control-bar.vjs-ad-control-bar{display:none}.vjs-ad-loading .vjs-overlay,.vjs-ad-playing .vjs-overlay{display:none}.vjs-ad-controls.vjs-ad-playing .vjs-control-bar.vjs-ad-control-bar{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.vjs-ad-controls.vjs-ad-playing.vjs-no-flex .vjs-control-bar.vjs-ad-control-bar{display:table}.vjs-mouse .vjs-control-bar.vjs-ad-control-bar .vjs-progress-control:hover{height:.5em;top:-.5em}.vjs-mouse .vjs-control-bar.vjs-ad-control-bar .vjs-progress-control:hover .vjs-mouse-display,.vjs-mouse .vjs-control-bar.vjs-ad-control-bar .vjs-progress-control:hover .vjs-mouse-display:after,.vjs-mouse .vjs-progress-control:hover .vjs-play-progress:after{display:none}.vjs-ima3-html5.vjs-ad-loading .vjs-tech{opacity:0}.vjs-ima3-autoplay.vjs-ima3-not-playing-yet .vjs-poster,.vjs-ima3-autoplay.vjs-ima3-not-playing-yet .vjs-tech{opacity:0}.vjs-ima3-html5.vjs-ad-playing .vjs-ad-control-bar .vjs-play-progress{transition:width 1s linear}.vjs-ima3-html5.vjs-ad-playing .vjs-ad-control-bar .vjs-play-progress.vjs-play-progress-resetting{transition:width 0s linear}.customIol{font-size:10px;white-space:nowrap}.customIol .video-js .vjs-related .vjs-modal-dialog-content{border:10px solid #000;background-color:#000}.customIol .vjs-related .vjs-related-list li{width:calc(100%/3);height:50%;border:solid #000;border-width:10px 10px 60px;overflow:visible;margin-bottom:0}.customIol .vjs-related .vjs-related-list li:nth-child(6){display:none!important}.customIol .vjs-related .vjs-related-list li:nth-child(4),.customIol .vjs-related .vjs-related-list li:nth-child(5){top:50%}.customIol .vjs-related .vjs-poster .replay-title,.customIol .vjs-related .vjs-related-list li cite{position:absolute;text-align:left;top:auto;-webkit-transform:translateY(0);transform:translateY(0);bottom:-40px;height:34px;font-weight:700;overflow:hidden;font-family:Arial,system-ui,sans-serif;white-space:normal}.customIol .vjs-related .vjs-related-list li:hover cite{visibility:visible}.customIol .vjs-related .vjs-related-list li:hover cite:before{visibility:hidden}.customIol .vjs-related .vjs-poster .replay-duration,.customIol .vjs-related .vjs-related-list li .video-duration{position:absolute;left:3px;bottom:3px;display:inline-block;padding:3px;background-color:rgba(0,0,0,.6);font-size:11px;font-weight:700;font-family:Arial,system-ui,sans-serif}.customIol .vjs-related .vjs-poster{width:calc(100%/3);height:50%;top:50%;border:solid #000;border-width:10px 10px 60px}.customIol .vjs-related .vjs-poster:after{content:\"RIVEDI\";font-family:Arial,system-ui,sans-serif;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,57%);transform:translate(-50%,57%);font-size:130%;font-weight:700;display:block}.customIol .vjs-related .vjs-poster:hover,.customIol .vjs-related .vjs-related-list li:hover{box-shadow:inset 0 170px 0 rgba(0,0,0,.5)}.iol-custom-related .vjs-icon-replay .replay-category,.iol-custom-related .vjs-related-list .video-categories,.iol-custom-related .vjs-related-list .video-views{display:none}.iol-custom-related:not(.related-small) .vjs-icon-replay:after{width:50%!important;font-size:.7rem!important;color:#303030;text-align:center;text-shadow:none;background:#fff;padding:0;border:1px solid #303030;top:44%;display:block}.iol-custom-related:not(.related-small) .vjs-icon-replay:before{color:#303030;text-shadow:none;font-weight:700;top:50%;background-color:hsla(0,0%,100%,.6);width:100%;height:100%;text-align:center;padding-top:1rem}.iol-custom-related:not(.related-small) .vjs-icon-replay:after{content:\"\";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%!important;height:100%;border:none;background:transparent url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='370' height='200' viewBox='0 0 370 200'%3E%3Cpath fill='none' d='M93 100.5h184v64H93z'/%3E%3Cpath fill='none' d='M0 10.5h370v154H0z'/%3E%3Cpath fill='%23fafafa' fill-opacity='.8' d='M57 116.5h256v60H57z'/%3E%3Cpath d='M185 38.29V26.46l-14.79 14.79L185 56V44.21A17.75 17.75 0 11167.25 62h-5.92A23.67 23.67 0 10185 38.29zM112.21 150.32v15.18H106v-38h10.73q7.36 0 10.9 2.75t3.53 8.32q0 7.1-7.38 10.11l10.73 16.82h-7.07l-9.09-15.18zm0-5.15h4.32c2.89 0 5-.53 6.29-1.61a5.84 5.84 0 002-4.78 5.17 5.17 0 00-2.11-4.63c-1.4-.93-3.52-1.4-6.34-1.4h-4.11zM140 165.5v-38h6.22v38zM177.92 127.5h6.45l-13.31 38h-6.55l-13.26-38h6.4l7.92 23.63c.42 1.12.86 2.57 1.33 4.35s.77 3.1.91 4c.22-1.31.57-2.84 1-4.57s.85-3 1.14-3.85zM210.88 165.5h-21.5v-38h21.5v5.25h-15.29v10.34h14.33v5.2h-14.33v11.93h15.29zM250 146.14q0 9.41-5.23 14.38t-15.05 5h-10.63v-38h11.75q9.07 0 14.11 4.89t5.05 13.73zm-6.55.2q0-13.64-12.77-13.64h-5.38v27.58h4.42q13.73 0 13.73-13.94zM257.79 165.5v-38H264v38z'/%3E%3C/svg%3E\") no-repeat 50%/75%}.iol-custom-related:not(.related-small) .vjs-icon-replay:before{content:\"\";padding-top:0}.iol-custom-related:not(.related-small) .vjs-icon-replay:hover:after{background:0 0}.iol-custom-related:not(.related-small) .vjs-icon-replay:hover:before{background:transparent url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='370' height='200' viewBox='0 0 370 200'%3E%3Cpath fill='none' d='M93 100.5h184v64H93z'/%3E%3Cpath fill='none' d='M0 10.5h370v154H0z'/%3E%3Cpath fill='%23fafafa' fill-opacity='.8' d='M57 116.5h256v60H57z'/%3E%3Cpath d='M112.21 150.32v15.18H106v-38h10.73q7.36 0 10.9 2.75t3.53 8.32q0 7.1-7.38 10.11l10.73 16.82h-7.07l-9.09-15.18zm0-5.15h4.32c2.89 0 5-.53 6.29-1.61a5.84 5.84 0 002-4.78 5.17 5.17 0 00-2.11-4.63c-1.4-.93-3.52-1.4-6.34-1.4h-4.11zM140 165.5v-38h6.22v38zM177.92 127.5h6.45l-13.31 38h-6.55l-13.26-38h6.4l7.92 23.63c.42 1.12.86 2.57 1.33 4.35s.77 3.1.91 4c.22-1.31.57-2.84 1-4.57s.85-3 1.14-3.85zM210.88 165.5h-21.5v-38h21.5v5.25h-15.29v10.34h14.33v5.2h-14.33v11.93h15.29zM250 146.14q0 9.41-5.23 14.38t-15.05 5h-10.63v-38h11.75q9.07 0 14.11 4.89t5.05 13.73zm-6.55.2q0-13.64-12.77-13.64h-5.38v27.58h4.42q13.73 0 13.73-13.94zM257.79 165.5v-38H264v38z'/%3E%3Cpath d='M173.17 38.29v41.42L205.71 59z' fill='%23fff'/%3E%3C/svg%3E\") no-repeat 50%/75%}.customIol .vjs-related .vjs-poster:hover,.customIol .vjs-related .vjs-related-list li:hover{box-shadow:inset 0 400px 0 rgba(0,0,0,.5)}@media only screen and (min-width:29em){.iol-custom-related:not(.related-small){background:0 0}.iol-custom-related:not(.related-small) .vjs-related-list{position:relative}.iol-custom-related:not(.related-small) .vjs-related-list li{height:47%}.iol-custom-related:not(.related-small) .vjs-related-list li:first-of-type{top:24%;left:33%}.iol-custom-related:not(.related-small) .vjs-related-list li:nth-of-type(2){top:24%;left:66%}.iol-custom-related:not(.related-small) .vjs-related-list li:nth-of-type(3){display:none}.iol-custom-related:not(.related-small) .vjs-related-list .video-categories{display:block;position:absolute;text-align:left;bottom:-2rem;-webkit-transform:translateY(0);transform:translateY(0);height:auto;font-weight:600;overflow:hidden;font-family:Arial,system-ui,sans-serif;white-space:normal;color:#e74b18;text-transform:uppercase}.iol-custom-related:not(.related-small) .vjs-related-list .video-name{bottom:-5.5rem}.iol-custom-related:not(.related-small) .vjs-icon-replay{top:24%;height:47%}.iol-custom-related:not(.related-small) .vjs-icon-replay .replay-category{display:block;position:absolute;text-align:left;bottom:-2rem;-webkit-transform:translateY(0);transform:translateY(0);height:auto;font-weight:600;overflow:hidden;font-family:Arial,system-ui,sans-serif;white-space:normal;color:#e74b18;text-transform:uppercase}.iol-custom-related:not(.related-small) .vjs-icon-replay .replay-title{bottom:-5.5rem}.iol-custom-related:not(.related-small) .vjs-icon-replay:after{top:50%}.iol-custom-related:not(.related-small) .vjs-icon-replay:before{padding-top:5%}}@media only screen and (min-width:85.44em){.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-related-list li{height:39%}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-related-list li:hover{box-shadow:inset 0 352px 0 rgba(0,0,0,.5)}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-related-list .video-categories{font-size:1.2rem}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-icon-replay{height:39%}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-icon-replay .replay-category{font-size:1.2rem}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-icon-replay:hover{box-shadow:inset 0 352px 0 rgba(0,0,0,.5)}.vjs-fullscreen .iol-custom-related:not(.related-small) .vjs-icon-replay:before{padding-top:15%}}.customIol .vjs-related.related-small .vjs-poster,.customIol .vjs-related.related-small .vjs-related-list li{width:50%;height:50%}.customIol .vjs-related.related-small .vjs-related-list li:first-child{left:0}.customIol .vjs-related.related-small .vjs-related-list li:nth-child(2){left:50%;top:0;bottom:auto}.customIol .vjs-related.related-small .vjs-poster,.customIol .vjs-related.related-small .vjs-related-list li{border-bottom-width:10px}.customIol .vjs-related.related-small .vjs-poster .replay-title,.customIol .vjs-related.related-small .vjs-poster:after,.customIol .vjs-related.related-small .vjs-related-list li cite{display:none}.customIol .vjs-related.related-small .vjs-poster:hover,.customIol .vjs-related.related-small .vjs-related-list li:hover{box-shadow:inset 0 0 0 transparent}.customIol .iol-adv-msg-container{background:-webkit-linear-gradient(left,#000,#000 60%,transparent);background:linear-gradient(90deg,#000 0,#000 60%,transparent);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#000000\", endColorstr=\"#00000000\", GradientType=1);color:#fff;height:2.14em;line-height:2.14em;width:50%;bottom:3em;position:absolute;z-index:1;box-sizing:border-box;padding-left:.7em;font-size:1.2em;text-align:left}.customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active .iol-adv-msg-container,.customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .iol-adv-msg-container,.customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active .iol-adv-msg-container,.customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .iol-adv-msg-container,.customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .iol-adv-msg-container,.customIol.vjs-has-started.vjs-playing.vjs-user-inactive .iol-adv-msg-container{-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translateY(4em);transform:translateY(4em)}.customIol .vjs-menu-button-inline.vjs-slider-active,.customIol .vjs-menu-button-inline:focus,.customIol .vjs-menu-button-inline:hover,.customIol.vjs-no-flex .vjs-menu-button-inline{width:8em}.logo-iol-player{position:absolute;bottom:48px;right:12px;z-index:0;width:6%;max-width:54px}.logo-iol-player:after{content:\"\";display:block;padding-top:79.2%}.logo-iol-player img{width:100%;position:absolute;left:0;top:0}.hide-overlay .vjs-overlay{display:none}.video-js .vjs-overlay{top:0;left:0;padding:0;height:100%;width:100%;background:0 0;z-index:10}.video-js .vjs-overlay p{width:100%;height:100%;background-color:#f3f3f3;color:#303030;font-size:14px;text-align:center;padding:1%;line-height:1.5;margin:0;box-sizing:border-box}.video-js .vjs-overlay strong{display:block;font-size:20px;padding-bottom:2%;font-weight:700}.video-js .vjs-overlay a{display:block;margin:5% auto 0;width:80%;padding:15px;color:#e74b18;font-weight:600;text-transform:uppercase;font-size:13px;background-color:#fff;text-decoration:none;white-space:normal}@media only screen and (min-width:48em){.video-js .vjs-overlay p{padding:9% 11%}.video-js .vjs-overlay strong{font-size:40px;padding-bottom:10%}.video-js .vjs-overlay a{white-space:nowrap;width:90%}}.video-js .vjs-close-button.vjs-floater-close-button{font-size:1.2em!important}.video-js .vjs-icon-cancel:before{font-family:VideoJS!important;font-weight:400!important}.iol-video-thumb-Container-outer{bottom:45px;position:absolute;right:10px;z-index:999999;background:rgba(0,0,0,.8);width:25%}.iol-thumb-container{width:100%}.iol-thumb-container img{width:100%;height:50px}.customIol .iol-thumb-text{width:100%;line-height:18px;text-align:center;font-size:10px}.customIol .vjs-dock-text .vjs-dock-description{display:none}.iol-container-cta-title,.video-js .iol-btn-info{position:absolute;top:10px;height:30px;overflow:hidden;background-color:rgba(0,0,0,.7)!important;opacity:1}.vjs-has-started:not(:hover) .iol-btn-info,.vjs-has-started:not(:hover) .iol-container-cta-title{opacity:0}.iol-btn-info-showing~.iol-container-cta-title,.video-js .iol-btn-info-showing{opacity:1!important}.video-js .iol-btn-info-hiding{opacity:0!important;z-index:0}.video-js .iol-btn-info{right:10px;width:30px;border-radius:0 5px 5px 0;-webkit-transition:opacity .25s cubic-bezier(0,0,.2,1);transition:opacity .25s cubic-bezier(0,0,.2,1)}.video-js .iol-btn-info:before{content:\"\";display:block;width:24px;height:24px;background:transparent url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z' fill='%23fff'/%3E%3C/svg%3E\") no-repeat 50%/contain}.iol-container-cta-title{z-index:2;right:40px;max-width:5px;overflow:hidden;box-sizing:border-box;border-radius:5px 0 0 5px;direction:ltr;-webkit-font-smoothing:antialiased;-webkit-transition:opacity .25s cubic-bezier(0,0,.2,1),max-width .25s cubic-bezier(0,0,.2,1);transition:opacity .25s cubic-bezier(0,0,.2,1),max-width .25s cubic-bezier(0,0,.2,1)}.iol-cta-title-shown .iol-container-cta-title{max-width:75%}.iol-container-cta-text{padding:0 9px}.cta-title-link{display:block;overflow:hidden;font:normal 700 13px/30px Arial,system-ui,sans-serif;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;text-transform:none}.video-js.iol-cta-info-hidden .iol-btn-info,.video-js.iol-cta-info-hidden .iol-container-cta-title,.video-js.iol-cta-player-small .iol-btn-info,.video-js.iol-cta-player-small .iol-container-cta-title,.video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-active:not(.iol-cta-title-shown) .iol-btn-info,.video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-active:not(.iol-cta-title-shown) .iol-container-cta-title,.video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive:not(.iol-cta-title-shown) .iol-btn-info,.video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive:not(.iol-cta-title-shown) .iol-container-cta-title,.video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.iol-cta-title-shown) .iol-btn-info,.video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.iol-cta-title-shown) .iol-container-cta-title,.video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-btn-info,.video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-container-cta-title,.video-js.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-btn-info,.video-js.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-container-cta-title,.video-js.vjs-has-started.vjs-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-btn-info,.video-js.vjs-has-started.vjs-playing.vjs-user-inactive:not(.iol-cta-title-shown) .iol-container-cta-title{opacity:0!important;z-index:0}.iol-hide-ad-play-button.vjs-ad-playing button.vjs-play-control{display:none!important}.vjs-floater-parent{position:fixed;top:auto;left:auto;bottom:0;right:0;min-width:400px;width:23%;margin-bottom:0;z-index:1000000}.vjs-floater-parent:before{content:\"\";display:block}.vjs-floater-placeholder{background-size:contain;display:none;width:100%}.vjs-floater-parent{box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)}.vjs-fullscreen .vjs-floater-restore-button{display:none}.vjs-dock-shelf .vjs-floater-restore-button{cursor:pointer;font-size:14px}.vjs-dock-shelf .vjs-floater-restore-button span{font-family:Arial,system-ui,sans-serif;vertical-align:top;text-decoration:underline;margin-left:2px;font-size:12px}.vjs-dock-shelf .vjs-floater-restore-button:hover{text-shadow:0 0 1em hsla(0,0%,100%,.5),0 0 1em hsla(0,0%,100%,.5),0 0 1em hsla(0,0%,100%,.5)}.iol-btn-inner{left:15%;top:15%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute}.btn-unmute{color:#000!important;background-color:#fff!important;width:160px;height:auto;position:absolute;left:10px;top:10px;z-index:1;font-size:12px!important;margin:0;padding:7px 7px 5px 5px!important;font-weight:700;border-radius:3px 3px 3px 3px;-moz-border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px}.btn-unmute .vjs-icon-placeholder{margin-right:8px;font-size:24px;vertical-align:middle}@media only screen and (min-width:768px){.btn-unmute{top:45px}}[class*=bc-player].customIol .vjs-control-bar{height:4em;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}[class*=bc-player].customIol .vjs-dock-title{font-size:16px;line-height:22px;font-weight:400;letter-spacing:.01em}[class*=bc-player].customIol .iol-video-overlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;pointer-events:none;background:-webkit-linear-gradient(rgba(66,70,77,.8),rgba(66,70,77,0) 50%,rgba(66,70,77,.8));background:linear-gradient(rgba(66,70,77,.8),rgba(66,70,77,0) 50%,rgba(66,70,77,.8));display:none}[class*=bc-player].customIol.vjs-paused.vjs-related-showing .iol-video-overlay,[class*=bc-player].customIol.vjs-related-showing .iol-video-overlay,[class*=bc-player].customIol:not(.not-hover) .iol-video-overlay{display:block}[class*=bc-player].customIol.not-hover .iol-video-overlay,[class*=bc-player].customIol.vjs-user-inactive .iol-video-overlay{display:none}[class*=bc-player].customIol .vjs-current-time,[class*=bc-player].customIol .vjs-duration,[class*=bc-player].customIol .vjs-fullscreen-control,[class*=bc-player].customIol .vjs-mute-control,[class*=bc-player].customIol .vjs-play-control,[class*=bc-player].customIol .vjs-time-divider{margin-top:8px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}[class*=bc-player].customIol .vjs-current-time:not(.btn-unmute),[class*=bc-player].customIol .vjs-duration:not(.btn-unmute),[class*=bc-player].customIol .vjs-fullscreen-control:not(.btn-unmute),[class*=bc-player].customIol .vjs-mute-control:not(.btn-unmute),[class*=bc-player].customIol .vjs-play-control:not(.btn-unmute),[class*=bc-player].customIol .vjs-time-divider:not(.btn-unmute){text-shadow:0 0 1px #000}[class*=bc-player].customIol .vjs-mute-control.vjs-button,[class*=bc-player].customIol .vjs-play-control{margin-right:.5em}@media (min-width:64em){[class*=bc-player].customIol .vjs-mute-control.vjs-button,[class*=bc-player].customIol .vjs-play-control{margin-right:0}}[class*=bc-player].customIol .vjs-control-bar{z-index:2;opacity:1!important;background:0 0}[class*=bc-player].customIol .vjs-control-bar .vjs-current-time{-webkit-box-ordinal-group:5;-webkit-order:4;-ms-flex-order:4;order:4;padding-left:.2em}[class*=bc-player].customIol .vjs-control-bar .vjs-time-divider{display:none}[class*=bc-player].customIol .vjs-control-bar .vjs-duration{-webkit-box-ordinal-group:7;-webkit-order:6;-ms-flex-order:6;order:6}[class*=bc-player].customIol .vjs-control-bar .vjs-progress-control{-webkit-box-ordinal-group:6;-webkit-order:5;-ms-flex-order:5;order:5}[class*=bc-player].customIol .vjs-control-bar .vjs-fullscreen-control{-webkit-box-ordinal-group:8;-webkit-order:7;-ms-flex-order:7;order:7}[class*=bc-player].customIol .vjs-control-bar .logo-iol-player{-webkit-box-ordinal-group:9;-webkit-order:8;-ms-flex-order:8;order:8}[class*=bc-player].customIol .vjs-fullscreen-control,[class*=bc-player].customIol .vjs-mute-control.vjs-button,[class*=bc-player].customIol .vjs-play-control{width:36px;height:40px;font-size:14px}@media (min-width:64em){[class*=bc-player].customIol .vjs-fullscreen-control,[class*=bc-player].customIol .vjs-mute-control.vjs-button,[class*=bc-player].customIol .vjs-play-control{width:40px;font-size:16px;margin-top:0}}[class*=bc-player].customIol .vjs-fullscreen-control .vjs-icon-placeholder:before,[class*=bc-player].customIol .vjs-mute-control.vjs-button .vjs-icon-placeholder:before,[class*=bc-player].customIol .vjs-play-control .vjs-icon-placeholder:before{margin-top:-.2em}[class*=bc-player].customIol .vjs-volume-panel{width:36px;height:40px}@media (min-width:64em){[class*=bc-player].customIol .vjs-volume-panel{width:40px}}[class*=bc-player].customIol .vjs-volume-bar.vjs-slider-vertical,[class*=bc-player].customIol .vjs-volume-level{width:.4em;border-radius:.8em}[class*=bc-player].customIol .vjs-volume-level{background-color:#ff4a4a!important}[class*=bc-player].customIol .vjs-volume-vertical{background-color:transparent;bottom:65px;display:none;z-index:2}@media (min-width:64em){[class*=bc-player].customIol .vjs-volume-vertical{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}}[class*=bc-player].customIol .vjs-volume-vertical span.iol-volume-dot{width:.8em;height:.8em;background:#fff;display:block;border-radius:99px;position:absolute;right:-.24em;bottom:auto}[class*=bc-player].customIol .vjs-duration{padding-right:.3em}@media (min-width:64em){[class*=bc-player].customIol .vjs-duration{padding-right:1em}}[class*=bc-player].customIol .vjs-mute-control{margin-top:4px;z-index:3}[class*=bc-player].customIol .vjs-custom-control-spacer{display:none!important}@media (min-width:64em){[class*=bc-player].customIol .vjs-time-control{line-height:2.8em}}[class*=bc-player].customIol .vjs-time-control.vjs-time-divider{display:none}[class*=bc-player].customIol .vjs-time-control.vjs-current-time,[class*=bc-player].customIol .vjs-time-control.vjs-duration{font-size:14px;margin-top:0;display:none}@media (min-width:64em){[class*=bc-player].customIol .vjs-time-control.vjs-current-time,[class*=bc-player].customIol .vjs-time-control.vjs-duration{display:block}}[class*=bc-player].customIol .vjs-time-control.vjs-current-time{margin-left:0}@media (min-width:64em){[class*=bc-player].customIol .vjs-time-control.vjs-current-time{margin-left:1em}}[class*=bc-player].customIol .btn-unmute{top:8px;left:8px}@media (min-width:64em){[class*=bc-player].customIol .btn-unmute{top:24px;left:24px;margin-top:0;-webkit-transition:transform 1s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}}@media (min-width:64em){[class*=bc-player].customIol.vjs-paused:not(.iol-cta-title-shown) .btn-unmute,[class*=bc-player].customIol.vjs-related-showing:not(.iol-cta-title-shown) .btn-unmute,[class*=bc-player].customIol:hover:not(.iol-cta-title-shown) .btn-unmute{-webkit-transform:translateY(24px);transform:translateY(24px)}}[class*=bc-player].customIol .vjs-control:focus:before,[class*=bc-player].customIol .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}[class*=bc-player].customIol .vjs-progress-control{position:static;width:35%;margin-left:.75em;margin-right:.75em;-webkit-transition:width .3s ease-out;transition:width .3s ease-out}@media (min-width:64em){[class*=bc-player].customIol .vjs-progress-control{width:60%;margin-left:1em;margin-right:1em}}[class*=bc-player].customIol .vjs-progress-control .vjs-progress-holder{height:.4em}[class*=bc-player].customIol .vjs-dock-text{background:0 0!important;padding:1em 1em 2em;z-index:2;font-size:14px;color:#fff;text-shadow:0 0 5px #000}@media (min-width:64em){[class*=bc-player].customIol .vjs-dock-text{font-size:16px;padding:13px 25% 36px 24px}}[class*=bc-player].customIol .iol-btn-info{z-index:2;background-color:hsla(0,0%,57.3%,.65)!important;border-radius:99px}[class*=bc-player].customIol .iol-btn-info:before{width:32px;height:32px}@media (min-width:64em){[class*=bc-player].customIol .iol-btn-info{top:8px;right:24px}}[class*=bc-player].customIol.vjs-mouse .vjs-progress-control{top:-.4em}[class*=bc-player].customIol.vjs-mouse .vjs-progress-control:hover{height:.4em}[class*=bc-player].customIol.vjs-mouse .vjs-progress-control .vjs-mouse-display{border-radius:.2em}[class*=bc-player].customIol.vjs-mouse .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip{background-color:hsla(0,0%,57.3%,.65);color:#fff;font-size:14px;padding:8px}[class*=bc-player].customIol.vjs-mouse .vjs-thumbnail-display{border:.2em solid #fff;margin-bottom:1.5em}[class*=bc-player].customIol.vjs-mouse .vjs-play-progress .vjs-time-tooltip{display:none}[class*=bc-player].customIol .vjs-play-progress{background:#ff4a4a!important}[class*=bc-player].customIol .vjs-play-progress .iol-mobile-play-progress-indicator{display:block;width:12px;height:12px;background-color:#ff4a4a;position:absolute;border-radius:8px;right:-.1em;top:0;bottom:0;margin:auto}@media (min-width:64em){[class*=bc-player].customIol .vjs-play-progress .iol-mobile-play-progress-indicator{display:none}}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,[class*=bc-player].customIol.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){-webkit-transition:transform 1s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-related-showing .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-related-showing .vjs-progress-control{-webkit-transition:transform .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;height:.4em;top:-.4em}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar{-webkit-transition:transform 1s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control{position:absolute;margin-left:0;margin-right:0;left:0;width:100%}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control .iol-mobile-play-progress-indicator,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control .iol-mobile-play-progress-indicator{display:none}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-related-showing .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-related-showing .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){-webkit-transform:none;transform:none}[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:1}[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar.vjs-ad-control-bar,[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar.vjs-ad-control-bar{-webkit-transition:transform 0s ease-out;-webkit-transition:-webkit-transform 0s ease-out;transition:-webkit-transform 0s ease-out;transition:transform 0s ease-out;transition:transform 0s ease-out,-webkit-transform 0s ease-out;-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-active:not(.vjs-related-showing) .vjs-control-bar.vjs-ad-control-bar .vjs-volume-panel,[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar.vjs-ad-control-bar .vjs-volume-panel{position:fixed;bottom:4em;left:0;display:none}[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-active:not(.vjs-related-showing) video[muted=muted]~.vjs-control-bar.vjs-ad-control-bar .vjs-volume-panel,[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) video[muted=muted]~.vjs-control-bar.vjs-ad-control-bar .vjs-volume-panel{display:block}[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-active:not(.vjs-related-showing) .vjs-progress-control,[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-progress-control{position:absolute;-webkit-transition:transform .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;height:.4em;top:-.4em;left:0;width:100%;margin-left:0;margin-right:0}[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-active:not(.vjs-related-showing) .iol-video-thumb-Container-outer,[class*=bc-player].customIol.not-hover.vjs-controls-enabled.vjs-ad-controls.vjs-has-started.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .iol-video-thumb-Container-outer{bottom:16px}[class*=bc-player].customIol.vjs-ad-playing .vjs-play-control{display:none}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar,[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){-webkit-transition:transform .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-volume-panel,[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible) .vjs-volume-panel{position:fixed;bottom:4em;left:0;display:none}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) video[muted=muted]~.vjs-control-bar .vjs-volume-panel,[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) video[muted=muted]~.vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible) .vjs-volume-panel{display:block}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:not(.vjs-related-showing) .iol-video-thumb-Container-outer{bottom:16px}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control,[class*=bc-player].customIol.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{-webkit-transition:transform .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;height:.4em;top:-.4em}[class*=bc-player].customIol.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control .iol-mobile-play-progress-indicator,[class*=bc-player].customIol.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control .iol-mobile-play-progress-indicator{display:none}[class*=bc-player].customIol.not-hover.vjs-related-showing.vjs-has-started.vjs-paused.vjs-user-active:not(.iol-cta-title-shown) .iol-btn-info,[class*=bc-player].customIol.not-hover.vjs-related-showing.vjs-has-started.vjs-paused.vjs-user-inactive:not(.iol-cta-title-shown) .iol-btn-info{opacity:1!important;z-index:1}[class*=bc-player].customIol.not-hover:not(.vjs-related-showing) .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible) .vjs-progress-control,[class*=bc-player].customIol.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible) .vjs-progress-control{position:absolute;margin-left:0;margin-right:0;left:0;width:100%}[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar,[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar{-webkit-transition:transform 0s;-webkit-transition:-webkit-transform 0s;transition:-webkit-transform 0s;transition:transform 0s;transition:transform 0s,-webkit-transform 0s;-webkit-transform:translateY(4em);transform:translateY(4em)}[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control,[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control{position:absolute;margin-left:0;margin-right:0;left:0;width:100%}[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-paused.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control .iol-mobile-play-progress-indicator,[class*=bc-player].customIol.vjs-ad-playing.vjs-has-started.vjs-playing.vjs-user-inactive:not(.vjs-related-showing) .vjs-control-bar .vjs-progress-control .iol-mobile-play-progress-indicator{display:none}[class*=bc-player].customIol .iol-scrubbing-tips{display:none;color:#fff;text-shadow:0 0 5px #000;position:absolute;top:0;left:0;right:0;white-space:normal;text-align:center;z-index:1;max-width:300px;margin:1rem auto;font-family:Arial,system-ui,sans-serif}[class*=bc-player].customIol .iol-scrubbing-tips .iol-scrubbing-arrow{display:inline-block}[class*=bc-player].customIol .iol-scrubbing-tips .iol-scrubbing-tips-text{max-width:80%;display:inline-block;font-size:1.2em;vertical-align:-.5em}[class*=bc-player].customIol.vjs-scrubbing .iol-scrubbing-tips{display:block}[class*=bc-player].customIol.iol-scrubbing-tips-showing .vjs-dock-text{opacity:0!important}[class*=bc-player].customIol .iol-double-tap-dx,[class*=bc-player].customIol .iol-double-tap-sx{position:absolute;top:50%;height:4em;width:6.4em;z-index:1}[class*=bc-player].customIol .iol-double-tap-dx{right:1em;left:auto}[class*=bc-player].customIol .iol-double-tap-sx{left:1em;right:auto}[class*=bc-player].customIol .iol-double-tap-arrow{display:block;margin:0 auto .8em;width:20px}[class*=bc-player].customIol .iol-double-tap-text{color:#fff;text-shadow:0 0 5px #000;font-size:12px}[class*=bc-player].customIol .iol-tap-overlay-dx{width:100%;height:100%;position:absolute;top:0;right:0;z-index:1;pointer-events:none;background:-webkit-linear-gradient(right,transparent,rgba(66,70,77,.3) 20%,rgba(66,70,77,.4) 50%,rgba(66,70,77,.5));background:linear-gradient(270deg,transparent 0,rgba(66,70,77,.3) 20%,rgba(66,70,77,.4) 50%,rgba(66,70,77,.5))}[class*=bc-player].customIol .iol-tap-overlay-sx{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;pointer-events:none;background:-webkit-linear-gradient(left,transparent,rgba(66,70,77,.3) 20%,rgba(66,70,77,.4) 50%,rgba(66,70,77,.5));background:linear-gradient(90deg,transparent 0,rgba(66,70,77,.3) 20%,rgba(66,70,77,.4) 50%,rgba(66,70,77,.5))}[class*=bc-player].customIol .logo-iol-player{position:static;width:36px;height:18px;margin-left:1em;margin-top:-4px}@media (min-width:64em){[class*=bc-player].customIol .logo-iol-player{width:48px;height:40px;margin-top:11px;margin-left:8px}}@media (min-width:98.4375em){[class*=bc-player].customIol .logo-iol-player{margin-top:9px}}[class*=bc-player].customIol .logo-iol-player svg{margin-right:1em;width:auto;height:20px}@media (min-width:64em){[class*=bc-player].customIol .logo-iol-player svg{width:35px;height:25px}}[class*=bc-player].customIol.not-hover .iol-video-thumb-Container-outer{bottom:16px;-webkit-transition:bottom .3s ease-in;transition:bottom .3s ease-in}[class*=bc-player].customIol .iol-video-thumb-Container-outer{bottom:54px;-webkit-transition:bottom .3s ease-in;transition:bottom .3s ease-in;background-color:#2e2e2e;color:#ff4a4a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:48em){[class*=bc-player].customIol .iol-video-thumb-Container-outer{width:25%}}@media (min-width:64em){[class*=bc-player].customIol .iol-video-thumb-Container-outer{width:25%;height:auto;padding:0}}[class*=bc-player].customIol .iol-video-thumb-Container-outer .iol-thumb-text{display:none;text-align:left}@media (min-width:64em){[class*=bc-player].customIol .iol-video-thumb-Container-outer .iol-thumb-text{font-size:14px}}[class*=bc-player].customIol .iol-video-thumb-Container-outer .iol-thumb-container img{width:100%;height:auto}@media (min-width:64em){[class*=bc-player].customIol .iol-video-thumb-Container-outer .iol-thumb-container img{margin-top:0}}[class*=bc-player].customIol .iol-thumb-duration{position:absolute;bottom:0;right:0;padding:.3em;background-color:rgba(71,71,71,.75);color:#fff;font-size:14px;border-radius:.2em;text-shadow:0 0 5px #000}@media (min-width:64em){[class*=bc-player].customIol .iol-thumb-duration{top:auto}}[class*=bc-player].customIol .iol-thumb-title{display:none;color:#fff;overflow:hidden;position:absolute;top:0;margin-top:0;width:100%;left:0;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 0 5px #000;font-size:14px;padding:.4em}@media (min-width:64em){[class*=bc-player].customIol .iol-thumb-title{display:block}}[class*=bc-player].customIol .vjs-related.iol-custom-related .iol-related-list-wrapper{position:relative;margin:auto;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);max-width:680px}@media (min-width:48em){[class*=bc-player].customIol .vjs-related.iol-custom-related .iol-related-list-wrapper{padding:0 23px}}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-modal-dialog-content{overflow:hidden}[class*=bc-player].customIol .vjs-related.iol-custom-related .iol-related-dialog-title{overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#fff;text-shadow:0 0 5px #000;position:absolute;top:0;left:0;width:100%;padding:8px 25% 8px 8px;margin:-1px 0 0;z-index:1;font-family:Arial,system-ui,sans-serif}@media (min-width:64em){[class*=bc-player].customIol .vjs-related.iol-custom-related .iol-related-dialog-title{font-size:16px;padding:13px 25% 36px 24px}}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-icon-replay{display:none;position:absolute;top:-.5em;bottom:0;left:0;right:0;width:40px;height:40px;margin:auto;z-index:1;font-size:40px}[class*=bc-player].customIol .vjs-related.iol-custom-related:not(.related-small) .vjs-related-list{height:200px}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list{background-color:rgba(46,46,46,.86);margin-left:auto;margin-right:auto;text-shadow:none}@media (min-width:48em) and (max-width:63.9375em){[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list{height:200px}}@media (min-width:64em){[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list{max-width:670px;height:190px;max-height:190px}}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list:before{content:\"Altri video\";font-size:16px;color:#ff4a4a;padding:8px}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li{width:calc(100%/4);border-color:transparent;border-width:16px 4px;top:24px;max-height:110px;height:100%;background-clip:content-box;background-repeat:no-repeat}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:hover{box-shadow:none!important}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:last-of-type{border-right-width:8px}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:first-of-type{border-left-width:8px;left:0}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:nth-of-type(2){right:0;left:25%;border-right-width:8px}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:nth-of-type(3){display:block;left:50%}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list li:nth-of-type(4){left:75%}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list .video-duration{bottom:0;right:0;left:auto;background-color:hsla(0,0%,57.3%,.65);font-size:14px;font-weight:400;padding:0 10px;border-radius:2px}@media (min-width:48em){[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list .video-duration{top:6px;bottom:auto;right:6px;left:auto}}[class*=bc-player].customIol .vjs-related.iol-custom-related .vjs-related-list .video-name{bottom:-50px;left:0;background-color:transparent;font-size:14px;height:42px;font-weight:400}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-icon-replay{display:block}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .iol-related-list-wrapper{height:100%}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list{height:100%;max-height:100%;background-color:rgba(46,46,46,.86);margin-top:0;left:0}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list:before{display:none}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li{border:none;width:calc(100%/2.5);padding:32px;top:0;bottom:0;margin:auto;height:90px;background-clip:border-box}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li:first-of-type{left:7.5%}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li:nth-of-type(2){right:7.5%;left:auto}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li:nth-of-type(3),[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li:nth-of-type(4){display:none}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li .video-name{display:block;position:absolute;top:0;font-size:10px;line-height:12px;padding:4px}@media (min-width:48em){[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li .video-name{font-size:14px}}[class*=bc-player].customIol .vjs-related.iol-custom-related.related-small .vjs-related-list li .video-duration{top:auto;right:0;bottom:0;left:auto}[class*=bc-player].customIol.vjs-related-showing .iol-video-thumb-Container-outer{display:none!important}[class*=bc-player].customIol .iol-big-pause-button{display:block;color:#fff;top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;-webkit-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s;position:absolute;padding:0;cursor:pointer;opacity:1;font-size:34px}@media (min-width:64em){[class*=bc-player].customIol .iol-big-pause-button{background-color:rgba(0,0,0,.45)!important}}[class*=bc-player].customIol .iol-big-pause-button .vjs-icon-placeholder:before{content:\"\\f103\";font-family:VideoJS;font-weight:400;font-style:normal}[class*=bc-player].customIol .iol-big-replay-button{display:block;color:#fff;top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;-webkit-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s;position:absolute;padding:0;cursor:pointer;opacity:1;font-size:34px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='66' height='66'%3E%3Cg data-name='Raggruppa 1' transform='translate(-1091 -505)'%3E%3Ccircle data-name='Ellisse 1' cx='33' cy='33' r='33' transform='translate(1091 505)' fill='rgba(0,0,0,0.55)'/%3E%3Cpath data-name='Icon material-replay' d='M1123.7 529.1v-5.6l-7 7 7 7v-5.6a8.4 8.4 0 11-8.4 8.4h-2.8a11.2 11.2 0 1011.2-11.2z' fill='%23fff' stroke='%23fff' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat}[class*=bc-player].customIol .vjs-big-play-button{background-color:transparent!important}@media (min-width:64em){[class*=bc-player].customIol .vjs-big-play-button{background-color:rgba(0,0,0,.45)!important}}[class*=bc-player].customIol .cta-title-link{font-size:14px;color:#fff;text-decoration:none}[class*=bc-player].customIol.iol-cta-title-shown .iol-container-cta-title{border-top-left-radius:16px;border-bottom-left-radius:16px;background-color:hsla(0,0%,57.3%,.65)!important;z-index:1;right:40px;top:10px}@media (min-width:64em){[class*=bc-player].customIol.iol-cta-title-shown .iol-container-cta-title{right:54px;top:8px}}[class*=bc-player].customIol.iol-cta-title-shown .iol-related-dialog-title,[class*=bc-player].customIol.iol-cta-title-shown .vjs-dock-text{display:none!important}[class*=bc-player].customIol.iol-cta-title-shown .iol-btn-info{background-color:hsla(0,0%,57.3%,.65)!important;border-top-left-radius:0;border-bottom-left-radius:0;z-index:2}[class*=bc-player].customIol:not(.iol-cta-title-shown) .iol-container-cta-text{opacity:0;width:0;padding:0}[class*=bc-player].customIol:not(.iol-cta-title-shown) .iol-btn-info{background-color:transparent!important}[class*=bc-player].customIol.vjs-ad-playing .vjs-play-progress{background:#ffe400!important}[class*=bc-player].customIol.vjs-ad-playing .iol-video-thumb-Container-outer{color:#fff!important}[class*=bc-player].customIol.vjs-ad-playing .vjs-progress-control:after{width:auto!important}[class*=bc-player].customIol.vjs-ad-playing .videoAdUiAttributionContainer{display:none}[class*=bc-player].customIol.vjs-ad-playing .vjs-control-bar.vjs-ad-control-bar{z-index:99999}[class*=bc-player].customIol.vjs-ad-playing .vjs-control-bar.vjs-ad-control-bar.vjs-ad-playing{display:block}[class*=bc-player].customIol .iol-adv-msg-container{background:0 0;top:.5em;color:#ffe400;font-size:14px;font-family:Arial,system-ui,sans-serif;-webkit-transform:translateY(0)!important;transform:translateY(0)!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-shadow:0 0 4px #000}@media (min-width:48em){[class*=bc-player].customIol .iol-adv-msg-container{font-size:16px}}[class*=bc-player].customIol.iol-player-small .btn-unmute{top:8px;left:8px}[class*=bc-player].customIol.iol-player-small .iol-container-cta-title{display:none}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small:hover .btn-unmute{-webkit-transform:translateY(24px);transform:translateY(24px)}}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small.vjs-paused .btn-unmute{-webkit-transform:none;transform:none}}[class*=bc-player].customIol.iol-player-small .vjs-dock-text{padding:8px 25% 8px 8px}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small .vjs-fullscreen-control,[class*=bc-player].customIol.iol-player-small .vjs-mute-control.vjs-button,[class*=bc-player].customIol.iol-player-small .vjs-play-control{width:36px;font-size:14px;margin-right:.5em}}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small .vjs-fullscreen-control .vjs-icon-placeholder:before,[class*=bc-player].customIol.iol-player-small .vjs-mute-control.vjs-button .vjs-icon-placeholder:before,[class*=bc-player].customIol.iol-player-small .vjs-play-control .vjs-icon-placeholder:before{margin-top:0}}[class*=bc-player].customIol.iol-player-small .vjs-volume-vertical{margin-left:-.5em}[class*=bc-player].customIol.iol-player-small .vjs-control-bar .vjs-current-time,[class*=bc-player].customIol.iol-player-small .vjs-control-bar .vjs-duration{display:none}[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer{width:25%;height:auto;padding:0;bottom:4em}[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer .iol-thumb-text,[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer .iol-thumb-title{display:none}[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer .iol-thumb-container img{height:auto;width:100%}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer .iol-thumb-container img{height:auto;margin-top:0!important}}[class*=bc-player].customIol.iol-player-small .iol-video-thumb-Container-outer .iol-thumb-duration{bottom:0;right:0;top:auto;background-color:rgba(71,71,71,.75)}[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer{padding:0}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer{padding:0}}[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer .iol-thumb-text{display:none}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer .iol-thumb-text{display:none}}[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer .iol-thumb-container img{margin-top:0}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small.vjs-ad-playing .iol-video-thumb-Container-outer .iol-thumb-container img{margin-top:0}}[class*=bc-player].customIol.iol-player-small .iol-big-pause-button,[class*=bc-player].customIol.iol-player-small .vjs-big-play-button{background-color:transparent!important}@media (min-width:64em){[class*=bc-player].customIol.iol-player-small .iol-big-pause-button,[class*=bc-player].customIol.iol-player-small .vjs-big-play-button{background-color:transparent!important}}[class*=bc-player].customIol.iol-player-small .vjs-control.vjs-close-button.iol-related-close-btn{display:none}[class*=bc-player].customIol.vjs-floater-floating .vjs-dock-text{padding:8px 25% 8px 8px}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .vjs-dock-text{padding:13px 25% 36px 24px}}[class*=bc-player].customIol.vjs-floater-floating .vjs-close-button.vjs-floater-close-button{top:0}[class*=bc-player].customIol.vjs-floater-floating .iol-btn-info,[class*=bc-player].customIol.vjs-floater-floating .iol-container-cta-title{display:none!important;opacity:0!important;z-index:0}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating:hover .btn-unmute{-webkit-transform:translateY(30px);transform:translateY(30px)}}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating.vjs-paused.not-hover .btn-unmute{-webkit-transform:none;transform:none}}[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar{z-index:2}[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player{bottom:auto;right:auto;position:static;width:30px;height:19px;margin-top:-4px;margin-right:10px}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player{margin-top:10px}[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player svg{width:30px;height:20px;margin-top:-.6em}}@media (min-width:98.4375em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player{margin-top:8px}}@media (min-width:111.5em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player{margin-top:6px}}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-mute-control.vjs-button,[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-play-control{width:36px;font-size:14px}}@media (min-width:98.4375em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-mute-control.vjs-button .vjs-icon-placeholder:before,[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-play-control .vjs-icon-placeholder:before{margin-top:0}}[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-current-time,[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .vjs-duration{display:none}[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar.vjs-ad-control-bar.vjs-ad-playing{display:block}[class*=bc-player].customIol.vjs-floater-floating.vjs-related-showing:not(.vjs-ended) .related-small{display:none!important}[class*=bc-player].customIol.vjs-floater-floating .vjs-related.iol-custom-related.related-small .iol-related-list-wrapper{padding:0}[class*=bc-player].customIol.vjs-floater-floating .vjs-related.iol-custom-related.related-small .vjs-related-list li{height:100px;max-height:100px}[class*=bc-player].customIol.vjs-floater-floating .vjs-related.iol-custom-related.related-small .iol-related-dialog-title{padding:8px 25% 8px 8px}[class*=bc-player].customIol.vjs-floater-floating .iol-video-thumb-Container-outer{width:25%;height:auto}[class*=bc-player].customIol.vjs-floater-floating .iol-video-thumb-Container-outer .iol-thumb-container img{height:auto;width:100%}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .iol-video-thumb-Container-outer .iol-thumb-container img{height:auto;margin-top:0!important}}[class*=bc-player].customIol.vjs-fullscreen .vjs-volume-vertical{bottom:70px}[class*=bc-player].customIol.vjs-fullscreen .vjs-dock-title{font-size:14px}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .vjs-dock-title{font-size:24px;line-height:27px}}[class*=bc-player].customIol.vjs-fullscreen .logo-iol-player{margin-top:-2px}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .logo-iol-player{margin-top:-4px}}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .logo-iol-player{margin-top:8px}}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-video-thumb-Container-outer{width:31.4em;height:auto}}[class*=bc-player].customIol.vjs-fullscreen .iol-video-thumb-Container-outer .iol-thumb-text{font-size:24px;padding:.5em;text-align:left}[class*=bc-player].customIol.vjs-fullscreen .iol-video-thumb-Container-outer .iol-thumb-duration{bottom:0;font-size:18px;top:auto}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-video-thumb-Container-outer .iol-thumb-container img{height:168px;margin-top:0}}[class*=bc-player].customIol.vjs-fullscreen .iol-video-thumb-Container-outer .iol-thumb-title{font-size:18px}[class*=bc-player].customIol.vjs-fullscreen .cta-title-link{font-size:16px}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .vjs-modal-dialog-content{height:100%}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper{height:auto;max-width:100%;padding:0}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper{max-width:1312px}}@media (min-width:98.4375em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper{max-height:350px;height:350px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list{height:200px;max-height:40vh;max-width:100%}@media screen and (max-height:500px){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list{height:260px;max-height:60vh}}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list{height:260px}}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list{height:320px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list:before{font-size:24px;padding:16px 24px;display:block}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li{height:120px;max-height:120px;bottom:0;top:36px;border-right-width:12px;border-left-width:12px}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li{background-clip:border-box;top:45px;height:140px;max-height:140px}}@media (min-width:98.4375em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li{height:180px;max-height:180px;height:200px;max-height:200px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li:first-of-type{border-left-width:24px}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li:last-of-type{border-right-width:24px}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-duration{bottom:0;right:0;background-color:hsla(0,0%,57.3%,.65)}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-duration{bottom:auto}}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-duration{top:6px;right:6px;left:auto}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-name{top:auto;bottom:-60px;font-size:14px;line-height:normal;height:60px}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-name{left:0;font-size:14px;height:66px;bottom:-78px}}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-list-wrapper .vjs-related-list li .video-name{bottom:-90px;top:auto;left:auto;font-size:20px;height:65px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-dialog-title{font-size:14px;overflow:hidden}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related .iol-related-dialog-title{font-size:24px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-icon-replay{top:-1.5em}@media screen and (min-width:400px){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-icon-replay{top:-1.5em}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-related-list{height:100%;max-height:100%}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-related-list:before{display:none}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-related-list li{top:-36px;height:100px}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-related-list li{height:160px;max-height:160px}}[class*=bc-player].customIol.vjs-fullscreen .iol-custom-related.related-small .vjs-related-list li .video-duration{bottom:0}[class*=bc-player].customIol.vjs-fullscreen .vjs-control.vjs-close-button.iol-related-close-btn{top:1em;right:1em}@media (min-width:64em){[class*=bc-player].customIol.vjs-fullscreen .vjs-control.vjs-close-button.iol-related-close-btn{top:2em;right:2em}}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen.vjs-floater-floating .vjs-dock-text{padding:13px 25% 36px 24px}}@media (min-width:48em){[class*=bc-player].customIol.vjs-fullscreen.vjs-floater-floating .logo-iol-player{margin-top:6px}}.video-js .vjs-control.vjs-close-button.iol-related-close-btn{top:12px;right:32px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PHBhdGggZGF0YS1uYW1lPSJJY29uIG1hdGVyaWFsLWNsb3NlIiBkPSJNMTIgMS4yMDlMMTAuNzkxIDAgNiA0Ljc5MSAxLjIwOSAwIDAgMS4yMDkgNC43OTEgNiAwIDEwLjc5MSAxLjIwOSAxMiA2IDcuMjA5IDEwLjc5MSAxMiAxMiAxMC43OTEgNy4yMDkgNnoiIGZpbGw9IiNmMGYwZjAiLz48L3N2Zz4=);width:12px;height:12px}.video-js .vjs-control.vjs-close-button.iol-related-close-btn .vjs-icon-placeholder:before{content:\"\"!important}.videoAdUiAttributionContainer{display:none!important}.vjs-floater-parent{min-width:533px;min-height:300px;width:36%}.vjs-floater-parent>div>div{padding-top:56.25%!important}@media (min-width:98.4375em){[class*=bc-player].customIol.vjs-floater-floating .vjs-related.iol-custom-related .iol-related-dialog-title{padding:13px 25% 36px 13px}}[class*=bc-player].customIol.vjs-floater-floating .vjs-mute-control.vjs-button .vjs-icon-placeholder:before,[class*=bc-player].customIol.vjs-floater-floating .vjs-play-control .vjs-icon-placeholder:before{margin-top:0}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .vjs-control-bar .logo-iol-player{margin-top:6px}}[class*=bc-player].customIol.vjs-floater-floating .btn-unmute{top:8px;left:8px}@media (min-width:64em){[class*=bc-player].customIol.vjs-floater-floating .vjs-dock-text{padding:8px 25% 8px 8px}}",cssClass="bc-style-wt1SkxgXE-default",cssEl,vjsCssId="bc-style-vjs",vjsCssEl,bc,video,i,head=document.querySelector("head"),refNode=head.firstChild,createStyleSheet=function(e,t){var i=document.createElement("style");i.type="text/css";i.appendChild(document.createTextNode(e));if(t){head.insertBefore(i,t)}else{head.appendChild(i)}return i};bc=function(window,document){var define=undefined;var rjsDefine=window.define;var previousVideojs=window.videojs;window.VIDEOJS_NO_DYNAMIC_STYLE=true;var BrightcovePlayerCore=function(e){"use strict";function t(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var i=t(e);var n="0.31.0";function r(e,t,i){return i={path:t,exports:{},require:function(e,t){return a(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function a(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var s=r(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){e[n]=i[n]}}}return e},e.exports.__esModule=true,e.exports["default"]=e.exports;return t.apply(this,arguments)}e.exports=t,e.exports.__esModule=true,e.exports["default"]=e.exports});var o=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"});var l=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function u(e){return s({muted:false,timeout:250,inline:false},e)}function d(e,t){var i=e.muted,n=e.timeout,r=e.inline;var a=t(),s=a.element,o=a.source;var l=void 0;var u=void 0;var d=void 0;s.muted=i;if(i===true){s.setAttribute("muted","muted")}if(r===true){s.setAttribute("playsinline","playsinline")}s.src=o;return new Promise(function(e){l=s.play();u=setTimeout(function(){d(false,new Error("Timeout "+n+" ms has been reached"))},n);d=function t(i){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;s.remove();s.srcObject=null;clearTimeout(u);e({result:i,error:n})};if(l!==undefined){l.then(function(){return d(true)}).catch(function(e){return d(false,e)})}else{d(true)}})}function c(e){e=u(e);return d(e,function(){return{element:document.createElement("video"),source:URL.createObjectURL(l)}})}function f(e){e=u(e);return d(e,function(){return{element:document.createElement("audio"),source:URL.createObjectURL(o)}})}var p={audio:f,video:c};function h(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function v(e){return typeof e==="function"}var g;if(Array.isArray){g=Array.isArray}else{g=function e(t){return Object.prototype.toString.call(t)==="[object Array]"}}var m=g;var y=0;var _;var b;var S=function e(t,i){D[y]=t;D[y+1]=i;y+=2;if(y===2){if(b){b(R)}else{M()}}};function T(e){b=e}function E(e){S=e}var w=typeof window!=="undefined"?window:undefined;var k=w||{};var I=k.MutationObserver||k.WebKitMutationObserver;var A=typeof self==="undefined"&&typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var C=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function j(){return function(){return process.nextTick(R)}}function P(){if(typeof _!=="undefined"){return function(){_(R)}}return O()}function x(){var e=0;var t=new I(R);var i=document.createTextNode("");t.observe(i,{characterData:true});return function(){i.data=e=++e%2}}function L(){var e=new MessageChannel;e.port1.onmessage=R;return function(){return e.port2.postMessage(0)}}function O(){var e=setTimeout;return function(){return e(R,1)}}var D=new Array(1e3);function R(){for(var e=0;e<y;e+=2){var t=D[e];var i=D[e+1];t(i);D[e]=undefined;D[e+1]=undefined}y=0}function N(){try{var e=Function("return this")().require("vertx");_=e.runOnLoop||e.runOnContext;return P()}catch(e){return O()}}var M;if(A){M=j()}else if(I){M=x()}else if(C){M=L()}else if(w===undefined&&typeof require==="function"){M=N()}else{M=O()}function U(e,t){var i=this;var n=new this.constructor(V);if(n[F]===undefined){oe(n)}var r=i._state;if(r){var a=arguments[r-1];S(function(){return ne(r,n,a,i._result)})}else{te(i,n,e,t)}return n}function B(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t){return e}var i=new t(V);J(i,e);return i}var F=Math.random().toString(36).substring(2);function V(){}var q=void 0;var H=1;var G=2;function z(){return new TypeError("You cannot resolve a promise with itself")}function W(){return new TypeError("A promises callback cannot return that same promise.")}function Y(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}function K(e,t,i){S(function(e){var n=false;var r=Y(i,t,function(i){if(n){return}n=true;if(t!==i){J(e,i)}else{$(e,i)}},function(t){if(n){return}n=true;ee(e,t)},"Settle: "+(e._label||" unknown promise"));if(!n&&r){n=true;ee(e,r)}},e)}function X(e,t){if(t._state===H){$(e,t._result)}else if(t._state===G){ee(e,t._result)}else{te(t,undefined,function(t){return J(e,t)},function(t){return ee(e,t)})}}function Q(e,t,i){if(t.constructor===e.constructor&&i===U&&t.constructor.resolve===B){X(e,t)}else{if(i===undefined){$(e,t)}else if(v(i)){K(e,t,i)}else{$(e,t)}}}function J(e,t){if(e===t){ee(e,z())}else if(h(t)){var i;try{i=t.then}catch(t){ee(e,t);return}Q(e,t,i)}else{$(e,t)}}function Z(e){if(e._onerror){e._onerror(e._result)}ie(e)}function $(e,t){if(e._state!==q){return}e._result=t;e._state=H;if(e._subscribers.length!==0){S(ie,e)}}function ee(e,t){if(e._state!==q){return}e._state=G;e._result=t;S(Z,e)}function te(e,t,i,n){var r=e._subscribers;var a=r.length;e._onerror=null;r[a]=t;r[a+H]=i;r[a+G]=n;if(a===0&&e._state){S(ie,e)}}function ie(e){var t=e._subscribers;var i=e._state;if(t.length===0){return}var n,r,a=e._result;for(var s=0;s<t.length;s+=3){n=t[s];r=t[s+i];if(n){ne(i,n,r,a)}else{r(a)}}e._subscribers.length=0}function ne(e,t,i,n){var r=v(i),a,s,o=true;if(r){try{a=i(n)}catch(e){o=false;s=e}if(t===a){ee(t,W());return}}else{a=n}if(t._state!==q);else if(r&&o){J(t,a)}else if(o===false){ee(t,s)}else if(e===H){$(t,a)}else if(e===G){ee(t,a)}}function re(e,t){try{t(function t(i){J(e,i)},function t(i){ee(e,i)})}catch(t){ee(e,t)}}var ae=0;function se(){return ae++}function oe(e){e[F]=ae++;e._state=undefined;e._result=undefined;e._subscribers=[]}function le(){return new Error("Array Methods must be provided an Array")}var ue=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(V);if(!this.promise[F]){oe(this.promise)}if(m(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0){$(this.promise,this._result)}else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0){$(this.promise,this._result)}}}else{ee(this.promise,le())}}var t=e.prototype;t._enumerate=function e(t){for(var i=0;this._state===q&&i<t.length;i++){this._eachEntry(t[i],i)}};t._eachEntry=function e(t,i){var n=this._instanceConstructor;var r=n.resolve;if(r===B){var a;var s;var o=false;try{a=t.then}catch(e){o=true;s=e}if(a===U&&t._state!==q){this._settledAt(t._state,i,t._result)}else if(typeof a!=="function"){this._remaining--;this._result[i]=t}else if(n===ve){var l=new n(V);if(o){ee(l,s)}else{Q(l,t,a)}this._willSettleAt(l,i)}else{this._willSettleAt(new n(function(e){return e(t)}),i)}}else{this._willSettleAt(r(t),i)}};t._settledAt=function e(t,i,n){var r=this.promise;if(r._state===q){this._remaining--;if(t===G){ee(r,n)}else{this._result[i]=n}}if(this._remaining===0){$(r,this._result)}};t._willSettleAt=function e(t,i){var n=this;te(t,undefined,function(e){return n._settledAt(H,i,e)},function(e){return n._settledAt(G,i,e)})};return e}();function de(e){return new ue(this,e).promise}function ce(e){var t=this;if(!m(e)){return new t(function(e,t){return t(new TypeError("You must pass an array to race."))})}else{return new t(function(i,n){var r=e.length;for(var a=0;a<r;a++){t.resolve(e[a]).then(i,n)}})}}function fe(e){var t=this;var i=new t(V);ee(i,e);return i}function pe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function he(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ve=function(){function e(t){this[F]=se();this._result=this._state=undefined;this._subscribers=[];if(V!==t){typeof t!=="function"&&pe();this instanceof e?re(this,t):he()}}var t=e.prototype;t.catch=function e(t){return this.then(null,t)};t.finally=function e(t){var i=this;var n=i.constructor;if(v(t)){return i.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})}return i.then(t,t)};return e}();ve.prototype.then=U;ve.all=de;ve.race=ce;ve.resolve=B;ve.reject=fe;ve._setScheduler=T;ve._setAsap=E;ve._asap=S;function ge(){var e;if(typeof global!=="undefined"){e=global}else if(typeof self!=="undefined"){e=self}else{try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if(i==="[object Promise]"&&!t.cast){return}}e.Promise=ve}ve.polyfill=ge;ve.Promise=ve;var me=window.performance;var ye={};["memory","navigation","timing"].forEach(function(e){ye[e]=me&&me[e]||{}});["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setResourceTimingBufferSize","toJSON"].forEach(function(e){ye[e]=function(){if(me&&me[e]){return me[e].apply(me,arguments)}}});function _e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var be=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function Se(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Te(e,t,i,n){t=t||"&";i=i||"=";if(e===null){e=undefined}if(typeof e==="object"){return Ee(we(e),function(n){var r=encodeURIComponent(Se(n))+i;if(be(e[n])){return Ee(e[n],function(e){return r+encodeURIComponent(Se(e))}).join(t)}else{return r+encodeURIComponent(Se(e[n]))}}).join(t)}if(!n)return"";return encodeURIComponent(Se(n))+i+encodeURIComponent(Se(e))}function Ee(e,t){if(e.map)return e.map(t);var i=[];for(var n=0;n<e.length;n++){i.push(t(e[n],n))}return i}var we=Object.keys||function(e){var t=[];for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t.push(i)}return t};function ke(e,t,i,n){t=t||"&";i=i||"=";var r={};if(typeof e!=="string"||e.length===0){return r}var a=/\+/g;e=e.split(t);var s=1e3;if(n&&typeof n.maxKeys==="number"){s=n.maxKeys}var o=e.length;if(s>0&&o>s){o=s}for(var l=0;l<o;++l){var u=e[l].replace(a,"%20"),d=u.indexOf(i),c,f,p,h;if(d>=0){c=u.substr(0,d);f=u.substr(d+1)}else{c=u;f=""}p=decodeURIComponent(c);h=decodeURIComponent(f);if(!_e(r,p)){r[p]=h}else if(be(r[p])){r[p].push(h)}else{r[p]=[r[p],h]}}return r}var Ie={encode:Te,stringify:Te,decode:ke,parse:ke};function Ae(e){if(e===void 0){e=window&&window.location||{}}var t;var i;try{t=Ie.parse((e.hash||"#").substr(1))}catch(e){t={}}try{i=Ie.parse((e.search||"?").substr(1))}catch(e){i={}}return s({hash:t,search:i},Ie)}var Ce={isArr:function e(t){return Array.isArray(t)},isFn:function e(t){return typeof t==="function"},isNil:function e(t){return t===null||t===undefined},isNum:function e(t){return typeof t==="number"&&t===t},isNonEmptyStr:function e(t){return typeof t==="string"&&/\S/.test(t)},isObj:function e(t){return Object.prototype.toString.call(t)==="[object Object]"}};var je=function e(t,n){if(t){var r=Number(t.substring(0,t.indexOf(".")));if(r){return r>=n}i["default"].log.warn("Plugin VERSION string format does not conform to semantic versioning standards and cannot be checked.")}return false};var Pe={perf:ye,Promise:ve,qs:Ae,isValidVersion:je,assign:function e(){return s.apply(void 0,arguments)},get:function e(t,i,n){var r=t;var a=i.split(".");if(!r){return n}for(var s=0;s<a.length;s++){var o=a[s];if(r[o]===undefined){return n}if(s+1<a.length){r=r[o]}else{return r[o]}}},withoutNilValues:function e(t){var i=t;if(Ce.isArr(t)){i=t.filter(function(e){return!Ce.isNil(e)}).map(Pe.withoutNilValues)}else if(Ce.isObj(t)){i={};Object.keys(t).forEach(function(e){if(!Ce.isNil(t[e])){i[e]=Pe.withoutNilValues(t[e])}})}return i},debounce:function e(t,i,n,r){if(r===void 0){r=window}var a;return function(){var e=this;var s=arguments;var o=function i(){a=null;o=null;if(!n){t.apply(e,s)}};if(!a&&n){t.apply(e,s)}r.clearTimeout(a);a=r.setTimeout(o,i)}},throttle:function e(t,i){var n=Date.now();return function(){var e=Date.now();if(e-n>=i){t.apply(void 0,arguments);n=e}}}};Pe.assign(Pe,Ce);Pe.VERSION="n/a";var xe=[{inline:false,muted:false},{inline:true,muted:false},{inline:false,muted:true},{inline:true,muted:true}];function Le(e){var t=e.filter(function(e){return e.passed})[0];if(!t){return{always:false,sometimes:false,never:true,inline:false,muted:false}}var i=t.inline,n=t.muted;var r=!i&&!n;return{always:r,sometimes:!r,never:false,inline:i,muted:n}}function Oe(e){var t;if(e.IE_VERSION||window.cast&&window.cast.receiver){t={always:true,sometimes:false,never:false,inline:false,muted:false}}if(e.ANDROID_VERSION||e.IS_IOS){t={always:false,sometimes:true,never:false,inline:false,muted:true};if(e.IS_IPHONE){t.inline=true}}if(t){return Pe.Promise.resolve(t)}}function De(e,t){if(e!=="video"&&e!=="audio"){throw new Error("invalid autoplay type: "+e)}var i=Oe(t.browser);if(i){return i}var n=xe.map(function(t){return p[e](t).then(function(e){var i=e.result;return s({passed:i},t)})});return Pe.Promise.all(n).then(function(e){return Le(e)})}var Re="bc-style-vjs";function Ne(e,t,i){var n=e.classNames;if(!t&&!i&&t!==0&&i!==0){return}var r=document.querySelector("."+n.playerInstanceDimensions);if(!r){r=document.createElement("style");r.className=n.playerInstanceDimensions;var a=document.querySelector("."+n.playerStyle)||document.querySelector("."+Re);if(a){a.parentNode.insertBefore(r,a.nextSibling)}else{document.head.appendChild(r)}}else if(r.innerText){if(!t&&t!==0){var s=/width:(\d+)px;/g.exec(r.innerText);if(s&&s[1]){t=window.parseInt(s[1],10)}}else if(!i&&i!==0){var o=/height:(\d+)px;/g.exec(r.innerText);if(o&&o[1]){i=window.parseInt(o[1],10)}}}var l="."+n.playerInstance+"{";if(t||t===0){l+="width:"+window.parseInt(t,10)+"px;"}if(i||i===0){l+="height:"+window.parseInt(i,10)+"px;"}l+="}";r.innerText=l}var Me=3;var Ue=50;var Be=function e(t){var i=document.body;var n=document.createElement("div");n.className="pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text_ads_2 text-ads text-ad-links";n.innerHTML=" ";n.setAttribute("style","height:10px!important;font-size:20px;color:transparent;position:absolute;bottom:0;left:-10000px");var r=0;var a=function e(){r++;var a=n.offsetHeight===0||!i.contains(n)||n.style.display==="none"||n.style.visibility==="hidden";if(a||r===Me){if(n.parentNode){n.parentNode.removeChild(n)}return t(a)}window.setTimeout(e,Ue)};i.appendChild(n);a()};var Fe=null;var Ve;function qe(e){if(e||!Ve){Ve=new ve(function(e){if(document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll){Be(e)}else{document.addEventListener("DOMContentLoaded",function(){Be(e)})}})}return Ve.then(function(e){Fe=e;return e})}Object.defineProperties(qe,{VERSION:{enumerable:true,value:"n/a"},lastResult:{enumerable:true,get:function e(){return Fe}},mightBe:{enumerable:true,get:function e(){return Fe!==false}},mightNotBe:{enumerable:true,get:function e(){return Fe!==true}}});var He=function e(t){var i=window.matchMedia("(hover)");var n=true;if(i.media!=="not all"){n=i.matches}return n||t.browser.IS_FIREFOX&&t.browser.IS_WINDOWS};var Ge="vjs-waiting-for-autoplay";function ze(e,t,i,n){return e.hasAttribute("data-debug")||t.debug!==undefined||i.debug||n.debug}function We(e,t,i,n){var r=t.settings,a=t.environment;var s=r.embedId,o=r.playerId;var l=a.isInBcFrame,u=a.queryString,d=a.urlHash;var c="bc-player-"+o+"_"+s;var f=c+"-index-"+r.playerIndex;Pe.perf.mark("bcInitStart");r.classNames={player:c,playerStyle:"bc-style-"+o+"-"+s,playerInstance:f,playerInstanceDimensions:f+"-video-dimensions"};r.embedState={controls:i.hasAttribute("controls")||i.hasAttribute("data-controls"),loop:i.hasAttribute("loop"),muted:i.hasAttribute("muted"),playsinline:i.hasAttribute("playsinline"),poster:i.hasAttribute("poster"),sources:!!i.querySelector("source"),tracks:!!i.querySelector("track")};n.debug=ze(i,u,n,r);if(i.hasAttribute("data-vttjs")&&Pe.isNonEmptyStr(i.getAttribute("data-vttjs"))){n["vtt.js"]=i.getAttribute("data-vttjs")}else if(u.vttjs&&Pe.isNonEmptyStr(u.vttjs)){n["vtt.js"]=u.vttjs}else if(n.hasOwnProperty("vtt.js")||n.hasOwnProperty("vttjs")){n["vtt.js"]=n["vtt.js"]||n.vttjs}else if(r["vtt.js"]||r.vttjs){n["vtt.js"]=r["vtt.js"]||r.vttjs}else{n["vtt.js"]="https://vjs.zencdn.net/vttjs/0.15.3/vtt.global.min.js"}if(r.playButton){var p=r.playButton,h=p.hover,v=p.shape,g=p.position;if(h==="glow"){e.dom.addClass(i,"vjs-play-button-hover-glow")}else if(h==="darken"){e.dom.addClass(i,"vjs-play-button-hover-darken")}if(v==="square"){e.dom.addClass(i,"vjs-play-button-shape-square")}else if(v==="rectangle"){e.dom.addClass(i,"vjs-play-button-shape-rectangle")}if(g==="topRight"){e.dom.addClass(i,"vjs-play-button-position-top-right")}else if(g==="topLeft"){e.dom.addClass(i,"vjs-play-button-position-top-left")}}if(u.crossorigin!==undefined||r.media&&r.media.tracks&&e.browser.IS_ANY_SAFARI){r.crossorigin=true}if(r.crossorigin){i.setAttribute("crossorigin","anonymous")}if(r.audioPosterMode){n.audioPosterMode=r.audioPosterMode}if(r.audioOnlyMode){n.audioOnlyMode=r.audioOnlyMode}var m=d.t||u.t||i.getAttribute("data-start-time");if(/^[\d]+$/.test(m)){r.startTime=Number(m)}else if(/^(\d+h)?(\d+m)?(\d+s)?$/.test(m)){r.startTime=m}var y=u.adConfigId;var _=i.getAttribute("data-ad-config-id");if(Pe.isNonEmptyStr(y)){r.adConfigId=y}else if(Pe.isNonEmptyStr(_)){r.adConfigId=_}if(typeof r.adConfigId==="string"){r.adConfigId=r.adConfigId.trim()}if(!Pe.isNonEmptyStr(r.adConfigId)){r.adConfigId=null}if(r.usingAdFailover&&!qe.mightBe){r.adConfigId=null}var b=u.deliveryConfigId;var S=i.getAttribute("data-delivery-config-id");if(Pe.isNonEmptyStr(b)){r.deliveryConfigId=b}else if(Pe.isNonEmptyStr(S)){r.deliveryConfigId=S}if(typeof r.deliveryConfigId==="string"){r.deliveryConfigId=r.deliveryConfigId.trim()}if(!Pe.isNonEmptyStr(r.deliveryConfigId)){r.deliveryConfigId=null}r.applicationId=u.applicationId||i.getAttribute("data-application-id")||r.applicationId;var T=Pe.qs();if(i.hasAttribute("autoplay")){n.autoplay=true}else if(T.hash.hasOwnProperty("autoplay")||T.search.hasOwnProperty("autoplay")){n.autoplay=T.hash.autoplay||T.search.autoplay||true;if(!l){e.log.warn("DEPRECATION: Using the `autoplay` query parameter or URL hash value to request autoplay for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please use the player configuration or Video.js option instead!")}}else if(!n.hasOwnProperty("autoplay")){n.autoplay=r.autoplay||false}if(n.autoplay){e.dom.addClass(i,Ge)}if(u.preload){n.preload=u.preload}else if(!n.hasOwnProperty("preload")&&r.preload){n.preload=r.preload}n.height=i.getAttribute("height")||undefined;n.width=i.getAttribute("width")||undefined;if(!l&&i&&(n.width||n.height)){Ne(r,n.width,n.height)}["loop","muted","playsinline"].forEach(function(e){if(u[e]!==undefined||r[e]||r.embedState[e]||n[e]){n[e]=true}else{n[e]=false}});if(n.autoplay){n.playsinline=true}if(n.playsinline){i.setAttribute("playsinline","playsinline")}if(n.muted){i.setAttribute("muted","muted");i.muted=true}if(l){if(u.language){n.language=u.language}else if(Pe.isNonEmptyStr(document.documentElement.lang)){n.language=document.documentElement.lang}else{n.language=window.navigator.language}document.documentElement.lang=n.language}else if(i.hasAttribute("language")){n.language=i.getAttribute("language");e.log.warn("Use of the language attribute on the video embed is invalid. Please use the lang attribute instead.")}else if(!n.hasOwnProperty("language")&&Pe.isNonEmptyStr(r.language)){n.language=r.language}var E=i.getAttribute("data-bumper-id");var w=u.bumperId;var k=r.videoCloud?r.videoCloud.bumper:undefined;if(E||w||k){r.videoCloud.bumper=k&&typeof k==="object"?k:{};var I=E||w||k.id||k;if(typeof I==="string"){r.videoCloud.bumper.id=I}else{e.log.error("Bumper id must be a string")}}var A=r.media;if(A&&A.poster&&A.poster.highres&&!i.poster){if(/(https?:)?\/\//.test(A.poster.highres)){n.poster=A.poster.highres}else{n.poster=t.environment.scriptBaseUrl+"/"+A.poster.highres}if(e.browser.IS_IPHONE){i.poster=n.poster}}if(A&&A.tracks){A.tracks.forEach(function(t){i.appendChild(e.dom.createEl("track",{},{default:t.default?t.default:"",label:t.label?t.label:"",kind:"captions",src:t.src,srclang:t.srclang}))})}if(A&&A.src){n.sources=[A.src]}else if(A&&A.sources){n.sources=A.sources}n.runtime_=t;n.html5=n.html5||{};if(!(e.browser.IS_ANY_SAFARI||e.browser.IS_IOS)){n.html5.nativeCaptions=false}if(r.vhs!==false){if(!n.flash){n.flash={}}if(!n.flash.swf){n.flash.swf=r.playersCDN+"/videojs-flashls-source-handler/1.4.8/video-js.swf"}}e.options.vhs=e.options.vhs||{};n.html5=n.html5||{};n.html5.vhs=n.html5.vhs||{};if(r.vhs&&typeof r.vhs==="object"){n.html5.vhs=r.vhs}if(e.browser.IS_ANDROID&&(e.options.vhs.enableLowInitialPlaylist===undefined||n.html5.vhs.enableLowInitialPlaylist===undefined)){n.html5.vhs.enableLowInitialPlaylist=true}if(!e.browser.IS_ANY_SAFARI&&e.options.vhs.overrideNative===undefined&&n.html5.vhs.overrideNative===undefined){n.html5.vhs.overrideNative=true}if(e.options.vhs.experimentalLLHLS===undefined&&n.html5.vhs.experimentalLLHLS===undefined){n.html5.vhs.experimentalLLHLS=true}n.html5.initialBandwidth=typeof n.html5.initialBandwidth==="number"?n.html5.initialBandwidth:r.initialBandwidth;n.inactivityTimeout=5e3;if(!He(e)){n.inactivityTimeout=0}n.controls=l?true:r.embedState.controls;n.persistTextTrackSettings=true;n.sourceOrder=true;n.userActions={hotkeys:{}};if(r.fullscreenControl===false){n.userActions.doubleClick=false}var C=t.environment.userAgent.match(/applewebkit\/(\d*).*Version\/(\d*.\d*)/i);n.nativeControlsForTouch=e.browser.IS_ANDROID&&e.browser.ANDROID_VERSION<5&&C&&C[2]>0;var j=e.getPluginVersion("ima3");n.normalizeAutoplay=j?Pe.isValidVersion(j,4):true;["controlBar","flash","liveui","playbackRates","responsive","suppressNotSupportedError","techOrder"].forEach(function(e){if(r.hasOwnProperty(e)){n[e]=r[e]}});return n}var Ye=function e(t){var i=t.registerPlugin||t.plugin;i("urlparams",function(e){e=e||{};var i=function e(t){var i=0,n;t=(t||"").replace(/^\s+|\s+$/g,"");if(!t||!/^(\d+h)?(\d+m)?(\d+s)?$/.test(t)){return-1}n=t.match(/^(\d+)h/);if(n){i+=parseFloat(n[1])*3600;t=t.replace(/^(\d+)h/,"")}n=t.match(/^(\d+)m/);if(n){i+=parseFloat(n[1])*60;t=t.replace(/^(\d+)m/,"")}n=t.match(/^(\d+)s/);if(n){i+=parseFloat(n[1])}return i},n=.9,r=function e(t,i){var r=t-i;if(isNaN(r)){return false}return Math.abs(r)<n},a=function e(t){s.ready(function(){if(s.networkState()===2){t()}else{s.one("loadedmetadata",function(){s.setTimeout(t,0)})}})},s=this,o=Pe.qs(),l=o.hash.t||o.search.t,u;if(typeof e.time==="number"){u=e.time}else{u=i(e.time)}if(l){if(/^[\d]+$/.test(l)){u=Number(l)}else{u=i(l)}if(!e.iframe&&u!==-1){t.log.warn("DEPRECATION: Using the `t` query parameter or URL hash value to set an initial playback start time for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please add a `data-start-time` attribute going forward!")}}if(u>0){(function(){var t=e.delay||250,i,n=false,o=function e(){if(n||r(s.currentTime(),u)){n=true;l()}else{s.currentTime(u);i=s.setTimeout(e,t)}},l=function e(){s.clearTimeout(i);s.off("timeupdate",e);if(!n){s.currentTime(u)}};s.on("timeupdate",l);a(o)})()}if(o.hash.captions!==undefined||o.search.captions!==undefined){(function(){var e=o.hash.captions||o.search.captions;s.one("play",function(){var t=s.textTracks(),i,n;if(t){for(n=0;n<t.length;n++){i=t[n];if(i.language===e){i.mode="showing";break}}}})})()}})};var Ke=r(function(e){function t(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}e.exports=t,e.exports.__esModule=true,e.exports["default"]=e.exports});var Xe=r(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t},e.exports.__esModule=true,e.exports["default"]=e.exports;return t(i,n)}e.exports=t,e.exports.__esModule=true,e.exports["default"]=e.exports});var Qe=r(function(e){function t(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;Xe(e,t)}e.exports=t,e.exports.__esModule=true,e.exports["default"]=e.exports});var Je={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:undefined,kind:"metadata",label:"",language:"",mode:"",oncuechange:undefined};var Ze=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];var $e=["mode"];var et=function e(t,i){if(t==="media"&&i.kind==="metadata"&&i.label==="media-cues"){return true}if(t==="id3"&&typeof i.inBandMetadataTrackDispatchType==="string"&&i.inBandMetadataTrackDispatchType.trim().length>0){return true}return false};var tt=function e(t){var i=function(e){Qe(i,e);function i(i,n,r){var a;if(r===void 0){r=function e(){}}a=e.call(this)||this;var s=Ke(a);s.player_=i;s.reTriggerEvent_=t.bind(s,s.reTriggerEvent_);s.update_=t.bind(s,s.update_);s.type_=n;s.logger_=r;Ze.concat($e).forEach(function(e){var t={get:function t(){return s.track_&&s.track_[e]||Je[e]},enumerable:true};if($e.indexOf(e)!==-1){t.set=function(t){if(!s.track_){return}s.track_[e]=t}}Object.defineProperty(s,e,t)});s.update_();var o=i.textTracks();var l=function e(t){if(!s.track_){s.update_(t)}else if(s.track_.mode!=="hidden"){s.track_.mode="hidden";s.logger_("timeupdate -> type:"+s.type_+(s.track_?",mode:"+s.track_.mode:"")+" -> track was set to hidden")}};["addtrack","removetrack"].forEach(function(e){return o.addEventListener(e,s.update_)});s.player_.on("timeupdate",l);return s||Ke(a)}var n=i.prototype;n.addCue=function e(){var t=this;var i=arguments;if(!this.track_){this.one("trackexists",function(){return t.addCue.apply(t,i)});return}return this.track_.addCue.apply(this.track_,i)};n.removeCue=function e(){var t=this;var i=arguments;if(!this.track_){return this.one("trackexists",function(){return t.removeCue.apply(t,i)})}return this.track_.removeCue.apply(this.track_,i)};n.reTriggerEvent_=function e(t){this.trigger(t)};n.update_=function e(t){var i=this;if(t===void 0){t={}}var n;if(t.type==="removetrack"&&t.track&&t.track===this.track_){n=null}else if(t.type==="addtrack"&&t.track&&!this.track_&&et(this.type_,t.track)){n=t.track}else{var r=this.player_.textTracks();var a=r.length;while(a--){if(et(this.type_,r[a])){n=r[a];break}}}var s=function e(){if(t.type==="timeupdate"){return}i.logger_.apply(i,arguments)};s("update -> type:"+this.type_+", mode:"+(n?n.mode:"?")+" -> event:"+(t.type||"constructor"));if(this.track_===n){s("update -> type:"+this.type_+", mode:"+(n?n.mode:"?")+" -> "+(n?"already proxied":"no track to proxy"));return}if(this.track_){this.track_.removeEventListener("cuechange",this.reTriggerEvent_)}this.track_=n;if(!this.track_){s("update -> type:"+this.type_+", mode:"+(n?n.mode:"?")+" -> track changed, but no new track exists");return}if(this.track_.mode!=="hidden"){this.track_.mode="hidden"}this.track_.addEventListener("cuechange",this.reTriggerEvent_);this.trigger("trackexists");s("update -> type:"+this.type_+", mode:"+(n?n.mode:"?")+" -> track exists")};return i}(t.EventTarget);i.prototype.allowedEvents_={cuechange:"cuechange"};return i};var it=function e(t){var i=tt(t);var r={id3CuePointsTrack:function e(t){var n=this.proxyTracks_.id3;if(!n){n=this.proxyTracks_.id3=new i(this,"id3",t)}return n},mediaCuePointsTrack:function e(t){var n=this.proxyTracks_.media;if(n){return n}n=this.proxyTracks_.media=new i(this,"media",t);if(n.track_){return n}this.addTextTrack("metadata","media-cues");n.update_();return n}};function a(e){var i=this;if(e===void 0){e={}}this.proxyTracks_={};var n=t.createLogger("proxyTracks");if(!e.debug){n=function e(){}}n("initialized");Object.keys(r).forEach(function(e){i[e]=function(){return r[e].call(i,n)}});this.ready(function(){Object.keys(r).forEach(function(t){var r=i[t]();if(e.debug){r.on("cuechange",function(){for(var e=0;e<r.activeCues.length;e++){var t=r.activeCues[e];n(r.type_+" -> cuechange -> activeCues["+e+"]: "+(t.value&&t.value.key||t.frame&&t.frame.id))}})}})})}t.registerPlugin("proxyTracks",a);a.VERSION=n};var nt=function e(t,i){var n=t.encryptedWatcher().encryptedSeen();if(!i||!n||i.code!==-2||t.currentTime()>.1){return i}var r;var a=t.currentSource();if(!t.hasPlugin("eme")){r="DRM/EME plugin is not included!"}else if(t.hasPlugin("eme")&&!t.usingPlugin("eme")){r="DRM/EME plugin is included but not initialized!"}else if(!a.keySystems||!Object.keys(a.keySystems).length){r="DRM (keySystems) was not provided!"}if(r){return{code:5,message:"DRM configuration issue prevented playback: "+r}}return i};var rt=function e(t){var i=t.getPlugin("plugin");var n=function(e){Qe(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.player_=t;n.reset();n.handleEncrypted_=n.handleEncrypted_.bind(Ke(n));n.reset=n.reset.bind(Ke(n));n.player_.ready(function(){n.player_.tech_.on("encrypted",n.handleEncrypted_);n.player_.tech_.on("webkitneedkey",n.handleEncrypted_);n.player_.tech_.on("msneedkey",n.handleEncrypted_);n.player_.tech_.on("loadstart",n.reset)},true);return n}var i=t.prototype;i.handleEncrypted_=function e(){this.encryptedSeen_=true};i.encryptedSeen=function e(){return this.encryptedSeen_};i.reset=function e(){this.encryptedSeen_=false};i.dispose=function e(){this.reset();this.player_.tech_.off("encrypted",this.handleEncrypted_);this.player_.tech_.off("webkitneedkey",this.handleEncrypted_);this.player_.tech_.off("msneedkey",this.handleEncrypted_);this.player_.tech_.off("loadstart",this.reset)};return t}(i);var r=t.hooks("beforeerror");if(r.indexOf(nt)===-1){t.hook("beforeerror",nt)}t.registerPlugin("encryptedWatcher",n)};var at={verbose:false,maxSavedSeekEvents:10,debounceTimeout:1e3,playbackRateTolerance:1.5,stableTimeUpdateCount:3,minInterval:1};var st=function e(t){if(t.isDisposed_){return}t.trigger("seek")};var ot=function e(t){var i=function e(i){var n=t.mergeOptions(at,i);var r;var a=false;var s;var o;var l;var u;var d=0;var c=[];var f=0;var p={};var h={};var v=n.verbose?function(){var e;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}return(e=t.log).call.apply(e,[t,"seek-events:"].concat(n))}:function(){};var g=function e(){p.seek=this.seekEvents.last().seekEnd;a=false;v("event seekStart: ",this.seekEvents.last().seekStart);v("event seekEnd: ",this.seekEvents.last().seekEnd)};var m=function e(){v("stable");this.seekEvents.stable=true};var y=function e(){v("unstable");this.seekEvents.stable=false};var _=function e(t){p.seek=this.currentTime();p.clock=t.timeStamp||Date.now();h.seek=p.seek;h.clock=p.clock};var b=Pe.debounce(st,n.debounceTimeout);var S=function e(t){s=this.currentTime();o=t.timeStamp||+new Date;l=s-h.seek;if(o===h.clock||s===p.seek){return}u=Math.abs(l)/(Math.abs(o-h.clock)*.001);if(u/this.playbackRate()>this.seekEvents.playbackRateTolerance){if(Math.abs(s-p.seek)>=this.seekEvents.minInterval){this.trigger("unstable");d=0;if(!a){f=Number(p.seek)}c.push({timeStamp:o,seekStart:f,seekEnd:s,seekInterval:s-f});if(c.length>n.maxSavedSeekEvents){c.shift()}a=true;b(this)}}else{d++;if(d>=this.seekEvents.stableTimeUpdateCount&&!this.seekEvents.stable&&!a){this.trigger("stable")}p.seek=s}h.seek=s;h.clock=o};this.seekEvents={stableTimeUpdateCount:n.stableTimeUpdateCount,playbackRateTolerance:n.playbackRateTolerance,debounceTimeout:n.debounceTimeout,minInterval:n.minInterval,stable:false,enabled:function e(){return r},enable:t.bind(this,function(){if(r){return}r=true;p.seek=0;p.clock=Date.now();h.seek=0;h.clock=p.clock;this.on("seek",g);this.on("stable",m);this.on("unstable",y);this.on(["loadstart","playing","adplaying"],_);this.on(["timeupdate","adtimeupdate"],S)}),disable:t.bind(this,function(){if(!r){return}r=false;this.off("seek",g);this.off("stable",m);this.off("unstable",y);this.off(["loadstart","playing","adplaying"],_);this.off(["timeupdate","adtimeupdate"],S)}),last:function e(){return c[c.length-1]},all:function e(){return c}};this.seekEvents.enable()};var r=t.registerPlugin||t.plugin;i.VERSION=n;r("seekEvents",i)};var lt=new window.Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});var ut=URL.createObjectURL(lt);var dt=["perSourceBehaviors","contextmenu","contextmenuUI","bcAnalytics","errors","catalog","playerInfo","dock","plugin","reloadSourceOnError","playlist","endscreen","proxyTracks","seekEvents","touchActive","urlparams","encryptedWatcher"];var ct=function e(t,i,n){var r=n.settings;var a=n.environment;var o=a.queryString;var l={};var u=Boolean(i.options_.debug);var d={bcAnalytics:{applicationId:r.applicationId,mr:Boolean(window.bc_isManagedRelease),referrer:o.referrer,usage:o.usage,verbose:u},chromecastReceiver:{debug:u},contextmenu:{cancel:false},ima3:{debugContribAds:u},ssai:{debug:u},vr:{debug:u}};i.on("pluginsetup",function(e,n){var r=n.name;if(dt.indexOf(r)!==-1){return}i.trigger({type:"usage",name:r+"!"+t.getPluginVersion(r)})});if(r.contextMenu!==false){var c=r.contextMenu||{};var f=[{label:i.localize("Player Information"),listener:function e(){return i.usingPlugin("playerInfo")&&i.playerInfo.modal.open()}}];if(c.brightcoveBranding!==false){f.push({href:"https://www.brightcove.com/en/why-brightcove?utm_type=player",label:i.localize("About Brightcove")})}d.contextmenuUI={content:f}}var p=function e(n,r){if(r===void 0){r={}}var a=d[n]||{};if(!i.hasPlugin(n)){t.log.error('Plugin "'+n+'" is missing. Please check your player configuration.');return}if(i.usingPlugin(n)){return}var s=t.mergeOptions(a,r);try{i[n](s)}catch(e){t.log.error('Unable to initialize "'+n+'" plugin:',e)}};if(r.usingAdFailover&&r.usingIMAPrerollWithSSAI){t.log.warn("Ad failover is not compatible with SSAI and client-side preroll. "+"Please configure only one. This player will use ad failover behavior.");delete r.usingIMAPrerollWithSSAI}if(r.usingAdFailover){i.trigger({type:"usage",name:"ad-failover"});var h=i.usingAdBlocker.mightBe?r.serverSideAdPlugin:r.clientSideAdPlugin,v=h.name,g=h.options;p(v,g)}else if(r.usingIMAPrerollWithSSAI){if(window.bc.disposedAfterPreroll_){var m=r.serverSideAdPlugin.name;var y=r.serverSideAdPlugin.options;var _=r.clientSideAdPlugin.name;t.deregisterPlugin(_);t.registerPlugin(m,window.bc.ssaiPluginCache_);p(m,y)}else{i.trigger({type:"usage",name:"ssai-with-ima-preroll"});var b=r.clientSideAdPlugin.name;var S=r.clientSideAdPlugin.options;var T=r.serverSideAdPlugin.name;window.bc.ssaiPluginCache_=t.getPlugin("ssai");t.deregisterPlugin(T);p(b,S);var E=i.tagAttributes;i.one(["adend","adtimeout","adserror"],function(e){i.one("playing",function(){var t=i.volume();var n=i.muted();if(e.type==="adend"){if(i.ima3&&i.ima3.adPlayer){t=i.ima3.adPlayer.volume();n=i.ima3.adPlayer.muted()}else{t=i.ima3.player.volume();n=i.ima3.player.muted()}}var r=i.el();var a=r.parentNode;var s=document.createElement("div");s.setAttribute("id","bc-player-placeholder");a.replaceChild(s,r);i.dispose();window.bc.disposedAfterPreroll_=true;var o=document.createElement("video-js");Object.keys(E).forEach(function(e){o.setAttribute(e,E[e])});a.replaceChild(o,s);var l=window.bc(E.id);l.bigPlayButton.hide();l.ready(function(){l.one("playing",function(){window.bc.disposedAfterPreroll_=false});var e=l.play();if(e.then){e.catch(function(){l.bigPlayButton.show()})}l.volume(t);l.muted(n)})})})}}r.plugins.forEach(function(e){var t=e.autoInit,i=e.name,n=e.options,a=n===void 0?{}:n;if(!t){return}var o=r.videoCloud.bumper;if(i==="catalog"&&o&&o.id){var l=o.showControls,u=o.progressBarColor,d=o.preventSeeking;l=l&&Boolean(l)||true;u=u;d=Boolean(d);a.bumper=s(o,{showControls:l,progressBarColor:u,preventSeeking:d})}p(i,a)});var w=r.media,k=r.videoCloud;var I=w&&!!(w.sources||w.length&&w[0].sources);if(k&&k.policyKey&&!I){var A={embedHasPoster:r.embedState.poster,embedHasSources:r.embedState.sources,embedHasTracks:r.embedState.tracks,adConfigId:r.adConfigId,deliveryConfigId:r.deliveryConfigId,bumper:r.videoCloud.bumper};if(k.playlist){i.trigger({type:"usage",name:"catalog-playlist"});A.playlistId=k.playlist}if(k.video){i.trigger({type:"usage",name:"catalog-video"});A.videoId=k.video}if(k.search){i.trigger({type:"usage",name:"catalog-search"});A.search=k.search}if(k.sequence){i.trigger({type:"usage",name:"catalog-sequence"});A.sequence=k.sequence}var C;if(r.usingIMAPrerollWithSSAI&&!window.bc.disposedAfterPreroll_){i.src({src:ut,type:"video/mp4"})}else if(k.autoLoad!==false){C=l.catalogMedia=i.catalog.autoFindAndLoadMedia(A)}if(C&&C.type==="video"){if(/^[\d]+$/.test(C.id)){i.mediainfo.id=C.id}else{i.mediainfo.referenceId=i.mediainfo.reference_id=C.id}}i.on("loadstart",function(){if(i.language()&&i.catalog.getMetadata({lang:i.language()})){i.trigger({type:"usage",name:"variant:"+i.language()})}})}if(i.usingPlugin("bcAnalytics")){var j=function e(){return(new Date).toISOString().split("T")[0]+":"+i.bcAnalytics.client.getSession()};i.ready(function(){Pe.perf.mark("bcInitEnd");Pe.perf.measure("bcInit","bcInitStart","bcInitEnd");if(i.usingPlugin("playerInfo")){i.playerInfo.modal.on("modalfill",function(){var e=j();var t=i.playerInfo.modal.$(".vjs-pi-section--player tbody");if(!e||!t){return}var n=document.createElement("tr");var r=document.createElement("tr");n.innerHTML="<td>"+i.localize("Session ID")+"</td> <td>"+e+"</td>";t.appendChild(n);r.innerHTML="<td>"+i.localize("Player Element ID")+"</td> <td>"+i.id()+"</td>";t.appendChild(r)})}});if(i.usingPlugin("errors")){i.errorDisplay.on("modalfill",function(){var e=j();var n=i.errorDisplay.$(".vjs-errors-content-container");if(!e||!n){return}n.appendChild(t.dom.createEl("div",{className:"vjs-errors-ref-id",innerHTML:"<b>"+i.localize("Session ID:")+"</b> "+e+" "+"<b>"+i.localize("Player Element ID:")+"</b> "+i.id()}))})}}if(i.usingPlugin("playerInfo")){i.on("vjs-contextmenu",function(){if(i.playerInfo.modal){i.playerInfo.modal.close()}})}if(i.hasPlugin("dock")){var P=w&&(w[0]&&w[0].title||w.title)||"";var x=w&&(w[0]&&w[0].description||w.description)||"";var L=function e(){if(i.controls()){var t=i.mediainfo;var n=i.language()||"";var r;if(i.usingPlugin("catalog")){r=i.catalog.getMetadata({lang:n});if(!r){r=i.catalog.getMetadata({lang:n.substring(0,2)})}}i.dock({title:r&&r.name||t&&t.name||P,description:r&&r.description||t&&t.description||x})}};L();i.on(["loadstart","loadedmetadata","languagechange"],L)}return l};var ft=function e(t){var i=t.registerPlugin||t.plugin;i("touchActive",function(){if(!t.browser.TOUCH_ENABLED){return}var e=this;var i=false;var n=function t(){if(!i){e.userActive(false)}};e.one("play",function(){var t=e.options_.inactivityTimeout>0?e.options_.inactivityTimeout:5e3;e.el().className+=" vjs-user-active";e.one(["click","tap"],function(){i=true});e.setTimeout(n,t)})})};var pt={"com.widevine.alpha":"Widevine","com.microsoft.playready":"PlayReady","com.apple.fps":"FairPlay"};var ht={'video/ogg; codecs="theora"':"Ogg",'video/mp4; codecs="avc1.42E01E"':"H.264",'video/mp4; codecs="hvc1"':"HEVC",'video/webm; codecs="vp8, vorbis"':"WebM",'video/webm; codecs="vp9"':"VP9",'application/x-mpegURL; codecs="avc1.42E01E"':"HLS","application/dash+xml":"DASH",'video/mp4; codecs="mp4a.40.2"':"AAC",'video/mp4; codecs="mp4a.6B"':"MP3",'video/mp4; codecs="ac-3"':"Dolby Digital/AC-3",'video/mp4; codecs="mp4a.a6"':"Dolby Digital Plus/EC-3/E-AC-3"};var vt=document.createElement("video");var gt={eme:Object.keys(pt).reduce(function(e,t){e[t]={name:pt[t],persistentState:false,support:false};return e},{support:Boolean(window.navigator.requestMediaKeySystemAccess||window.MSMediaKeys&&window.MSMediaKeys.isTypeSupported||window.WebKitMediaKeys&&window.WebKitMediaKeys.isTypeSupported)}),formats:Object.keys(ht).reduce(function(e,t){var i=ht[t];var n=vt.canPlayType(t);if(n){n=n.charAt(0).toUpperCase()+n.slice(1)}else{n="Not supported"}e[i]=n;return e},{}),mse:"MediaSource"in window};vt=null;if(!window.navigator.requestMediaKeySystemAccess){var mt=window.MSMediaKeys&&window.MSMediaKeys.isTypeSupported||window.WebKitMediaKeys&&window.WebKitMediaKeys.isTypeSupported||function(){return false};window.navigator.requestMediaKeySystemAccess=function(e,t){var i;var n;window.setTimeout(function(){var r=t.some(function(t){var i=[];if(t.audioCapabilities){i=i.concat(t.audioCapabilities)}if(t.videoCapabilities){i=i.concat(t.videoCapabilities)}return i.some(function(t){return!mt(e,t.contentType)})});if(r){n()}else{i()}});return{then:function e(t){i=t;return this},catch:function e(t){n=t;return this}}}}var yt={"com.widevine.alpha":{initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"',robustness:"SW_SECURE_CRYPTO"}]},"com.microsoft.playready":{initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]},"com.apple.fps":{initDataTypes:["sinf"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]}};var _t=function e(t,i){if(i===void 0){i={}}Object.keys(yt).forEach(function(e){var n=JSON.parse(JSON.stringify(yt[e]));if(i.persistentState){n.persistentState=i.persistentState}var r=function i(n){gt.eme[e][t]=false};try{window.navigator.requestMediaKeySystemAccess(e,[n]).then(function(){gt.eme[e][t]=true}).catch(r)}catch(e){r()}})};_t("support");_t("persistentState",{persistentState:"required"});function bt(e){return e.mergeOptions(gt)}var St=Pe.get;var Tt="unknown";var Et=function e(t){var i=t.getComponent("ModalDialog");var n=t.dom;var r={adonly:"Ad-Only",ampSupport:"AMP Support",bcAa:"Adobe Analytics",bcGa:"Google Analytics",bcGtm:"Google Tag Manager",bcPlaylistUi:"Brightcove Playlist UI",bcTealium:"Tealium",chromecastReceiver:"Chromecast Receiver",customEndscreen:"Custom Endscreen",dash:"DASH",eme:"DRM",dvrux:"Live DVRUX",FreeWheelPlugin:"FreeWheel",ima3:"IMA3",kollective:"Kollective",onceux:"OnceUX",pip:"Picture-in-Picture",qualityMenu:"Quality Menu",social:"Social",ssai:"SSAI",thumbnails:"Thumbnails",vr:"VR"};var a=function e(t,i){if(i===void 0){i="vjs-two"}return n.createEl("table",{className:i},{},n.createEl("tbody",{},{},t))};var s=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}var a=i.map(function(e){return n.createEl("td",{},{},String(e))});return n.createEl("tr",{},{},a)};var o=function(e){Qe(i,e);function i(){return e.apply(this,arguments)||this}var o=i.prototype;o.buildCSSClass=function t(){return"vjs-player-info-modal "+e.prototype.buildCSSClass.call(this)};o.dataForPlugins_=function e(){var i=this;return Object.keys(r).filter(t.getPlugin).sort().map(function(e){var n=i.player();var a=t.getPluginVersion(e)||St(n,e+".VERSION",Tt);if(e==="eme"&&a===Tt&&t.drm&&t.drm.VERSION){a=t.drm.VERSION}return{active:n.usingPlugin(e),displayName:r[e],version:a}})};o.dataForSource_=function e(){var t=this.player();var i=t.currentSource()||{};var n=t.tech(true);return{keySystem:n?n.el().keySystem:null,mediainfo:t.mediainfo,tech:t.techName_,type:i.type,url:i.src}};o.dataForVhs_=function e(){var t=this.player();var i=t.tech(true);var n=i?i.vhs:null;if(!n){return null}var r={bandwidth:St(n,"stats.bandwidth",Tt),mediaBytesTransferred:St(n,"stats.mediaBytesTransferred",Tt),mediaTransferDuration:St(n,"stats.mediaTransferDuration",Tt),mediaRequests:St(n,"stats.mediaRequests",Tt),versions:n.version()};var a=St(n,"playlists",{media:function e(){}}).media();if(a){r.rendition={height:St(a,"attributes.RESOLUTION.height",Tt),width:St(a,"attributes.RESOLUTION.width",Tt)}}return r};o.data=function e(){var i=this.player();var r=n.getAttributes(i.el());var a=St(i,"bcinfo.accountId",St(r,"data-account",Tt));var s=St(i,"bcinfo.playerId",St(r,"data-player",Tt));var o=St(i,"bcinfo.embedId",St(r,"data-embed",Tt));var l=St(i,"bcinfo.applicationId",St(r,"data-application-id","-"));var u=St(window,"bc."+s+"_"+o+".VERSION",St(window,"bc.VERSION",Tt));var d=St(window,"bc."+s+"_"+o+".videojs.VERSION",St(window,"videojs.VERSION",Tt));return{capabilities:bt(t),player:{accountId:a,playerId:s,embedId:o,applicationId:l,playerVersion:u,videojsVersion:d,language:i.language()},plugins:this.dataForPlugins_(),source:this.dataForSource_(),vhs:this.dataForVhs_()}};o.contentForPlayer_=function e(t){var i=t.player;var n=[s("Brightcove Player Version",i.playerVersion),s("Video.js Version",i.videojsVersion),s("Account ID",i.accountId),s("Player ID",i.playerId),s("Embed ID",i.embedId),s("Application ID",i.applicationId)];return a(n)};o.contentForPlugins_=function e(t){var i=t.plugins.map(function(e){return s(e.displayName,e.version,e.active?"Yes":"No")});if(!i.length){i.push(n.createEl("tr",{innerHTML:'<td colspan="3">No plugins available.</td>'}))}var r=a(i);var o=n.createEl("thead",{innerHTML:"\n <tr>\n <th>Name</th>\n <th>Version</th>\n <th>Active?</th>\n </tr>\n ".trim()});r.insertBefore(o,r.querySelector("tbody"));return r};o.contentForSource_=function e(t){var i=t.source,n=i.keySystem,r=i.mediainfo,o=i.type;var l=[s("Current Media Type",o),s("DRM Key System",n||"n/a")];if(r){if(r.id){l.push(s("Video ID",r.id))}if(r.name){l.push(s("Video Name",r.name))}}return a(l)};o.contentForVhs_=function e(t){var i=t.vhs;var r=[];if(i){if(Pe.isObj(i.versions)){r.push(n.createEl("tr",{innerHTML:'<td colspan="2"><b>Library Versions</b></td>'}));Object.keys(i.versions).forEach(function(e){r.push(s(e,i.versions[e]))})}r.push(n.createEl("tr",{innerHTML:'<td colspan="2"><b>Statistics</b></td>'}),s("Current Bandwidth",i.bandwidth),s("Media Bytes Transferred",i.mediaBytesTransferred),s("Media Requests",i.mediaRequests),s("Media Transfer Duration",i.mediaTransferDuration));if(i.rendition){r.push(s("Rendition Width",i.rendition.width),s("Rendition Height",i.rendition.height))}}else{r.push(n.createEl("tr",{innerHTML:'<td colspan="2">Using native playback engine.</td>'}))}return a(r)};o.contentForCapabilities_=function e(t){var i=t.capabilities,n=i.eme,r=i.mse;var o=[s("Media Source Extensions",r?"Yes":"No"),s("Encrypted Media Extensions",n.support?"Yes":"No")];Object.keys(n).forEach(function(e){if(e==="support"){return}var t=n[e],i=t.name,r=t.persistentState,a=t.support;o.push(s(i,a?"Yes":"No"));if(a){o.push(s(i+" with persistentState",r?"Yes":"No"))}});return a(o)};o.contentForFormats_=function e(t){var i=t.capabilities.formats;var n=Object.keys(i).map(function(e){return s(e,i[e])});return a(n)};o.content=function e(){var t=this.data();return[n.createEl("div",{className:"vjs-pi-section"},{},[n.createEl("h2",{},{},"Player Information"),this.contentForPlayer_(t),n.createEl("h2",{},{},"Media Information"),this.contentForSource_(t),n.createEl("h2",{},{},"Player Plugins"),this.contentForPlugins_(t)]),n.createEl("div",{className:"vjs-pi-section"},{},[n.createEl("h2",{},{},"Playback Engine"),this.contentForVhs_(t),n.createEl("h2",{},{},"Device Capabilities"),this.contentForCapabilities_(t),n.createEl("h2",{},{},"Device Format Support"),this.contentForFormats_(t)])]};return i}(i);t.registerComponent("PlayerInfoModal",o);return o};var wt=function e(t){Et(t);function i(){var e=this;if(this.playerInfo.modal){this.playerInfo.modal.dispose()}this.playerInfo=function(){i.apply(this,arguments)};this.ready(function(){e.addClass("vjs-player-info");e.playerInfo.modal=e.addChild("playerInfoModal",{fillAlways:true,label:e.localize("Player Information Dialog"),temporary:false});e.playerInfo.modal.on("dispose",function(){delete e.playerInfo})})}t.registerPlugin("playerInfo",i);i.VERSION=n};var kt=function e(t){var i=function e(t,i){if(typeof t.usingPlugin==="function"){return t.usingPlugin(i)}return!!t[i]};var r=function e(t){t.postrollFinished=false;t.postrollTimedOut=false;t.sawNoPostrollEvent=false};var a=function e(t){if(!i(t,"ads")){return false}var n=t.endscreenState_;if(n.sawNoPostrollEvent){return false}return!n.postrollFinished&&!n.postrollTimedOut};var s=function e(t){if(!i(t,"playlist")){return false}var n=t.playlist;var r=n();if(n.autoadvance_.delay!==0||!r.length){return false}return n.repeat()||n.currentItem()!==r.length-1};var o=function e(){var t=this;if(this.endscreenState_){return}var i=this.endscreenState_={};var n=function e(){t.trigger("endscreen")};r(i);this.on("adstart",function(){var e=t.ended();if(t.ads.adType==="postroll"){i.isPostroll=true}i.postrollFinished=!e});this.on("adend",function(){i.postrollFinished=t.ended()});this.on("adtimeout",function(){i.postrollTimedOut=t.ended()});this.on(["endscreen","loadstart"],function(){t.off("adend",n);r(i)});this.on("nopostroll",function(){i.sawNoPostrollEvent=true});this.on("ended",function(){if(s(t)){return}if(a(t)){t.one("adend",function(){if(i.isPostroll){n()}});return}n()})};o.VERSION=n;if(t.registerPlugin){if(!t.getPlugin("endscreen")){t.registerPlugin("endscreen",o)}}else{t.plugin("endscreen",o)}};var It=["audioTracks","textTracks","videoTracks","remoteTextTracks","addTextTrack","addRemoteTextTrack","removeRemoteTextTrack","scrubbing","ended"];var At=["handleKeyDown"];var Ct=function e(t,i){var n=function e(t){return function(e){if(e.isAdPlayerPatched_){return}var i=e.prototype;e.isAdPlayerPatched_=true;Object.defineProperty(i,"fsApi_",{get:function e(){return this.options_&&this.options_.contentPlayer&&this.options_.contentPlayer.fsApi_}});It.forEach(function(e){if(!(e in i)){i[e]=function(){}}});At.forEach(function(e){if(!i.hasOwnProperty(e)){i[e]=function(){}}});Object.defineProperty(t,"AdPlayer",{configurable:true,enumerable:true,get:function t(){return e},set:function e(){}});return e}};var r=function e(i){if(!i){Object.defineProperty(t,"ima3",{configurable:true,enumerable:true,get:function e(){},set:function i(n){e(n);Object.defineProperty(t,"ima3",{value:n})}});return}var r=n(i);if(!i.AdPlayer){Object.defineProperty(i,"AdPlayer",{configurable:true,enumerable:true,get:function e(){},set:r});return}r(i.AdPlayer)};if(t.ima3){r(t.ima3)}else{i.one("beforepluginsetup:ima3",function(){r(t.ima3)})}};var jt="vjs-waiting-for-autoplay";function Pt(e,t,i,n){var r=i.options_;var a=t.settings,s=t.environment;var o=a.accountId,l=a.applicationId,u=a.css,d=a.embedId,c=a.playerId;var f;i.mediainfo={accountId:o,account_id:o};i.bcinfo={accountId:o,applicationId:l,css:u,embedId:d,playerId:c,scriptUrl:s.scriptUrl,scriptBaseUrl:s.scriptBaseUrl};Object.defineProperty(i,"usingAdBlocker",{enumerable:true,value:qe});Object.defineProperty(i,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});Object.defineProperty(i,"getAccountId",{enumerable:true,value:function e(){return n.runtime.settings.accountId}});if(t.settings.allowAccountOverride){Object.defineProperty(i,"setAccountId",{enumerable:true,value:function t(i){if(Pe.isNil(i)){e.log.warn("account ID must be a string or number");return}n.runtime.settings.accountId=i;this.bcinfo.accountId=i;this.mediainfo.accountId=this.mediainfo.account_id=i}})}qe().then(function(e){if(e){i.trigger({type:"usage",name:"using-ad-blocker"})}});i.addClass(a.classNames.player);i.addClass(a.classNames.playerInstance);var p=e.bind(i,i.dimension);i.dimension=function(e,t){if(e==="width"){Ne(a,t,null)}else if(e==="height"){Ne(a,null,t)}return p(e,t)};i.ready(function(){if(!r.autoplay){return}function e(){i.removeClass(jt)}if(!i.currentSrc()&&!f){e()}else{i.any(["autoplay-success","autoplay-failure","error"],e)}});if(a.fullscreenControl===false&&i.controls()){i.on("canplay",function(){if(!i.controlBar){return}var e=i.controlBar.children();if(!e||!e.length){return}for(var t=e.length-1;t>0;t--){if(e[t].hasClass("vjs-menu-button-popup")&&!e[t].hasClass("vjs-hidden")){e[t].addClass("vjs-menu-popup-last-visible");break}}})}if(e.browser.IS_IPHONE){i.on("fullscreenchange",function(){var e=i.$(".vjs-tech");if(e.hasAttribute("controls")){e.removeAttribute("controls")}});if(a.embedState.playsinline&&a.embedState.muted){i.addClass("vjs-iphone")}}if(e.browser.IS_IOS&&a.embedState.muted){i.addClass("vjs-ios")}if(i.controls()){i.one("play",function(){if(!i.controlBar||!i.controls()){return}var e=i.controlBar.children();if(!e||!e.length){return}var t=["Enter","ArrowDown","ArrowUp","Up","Down"," ","Spacebar"];for(var n=0;n<e.length;n++){if(e[n].hasClass("vjs-menu-button-popup")&&!e[n].hasClass("vjs-hidden")){e[n].on("keyup",function(e){if(t.indexOf(e.key)>=0){i.controlBar.addClass("vjs-control-bar-visible")}})}}});if(i.controlBar){var h=i.controlBar.el();var v;var g=function e(){var t=document.activeElement;if(v!==t){v=t;i.controlBar.toggleClass("vjs-focus-within",h.contains(t))}};var m=function e(){h.removeEventListener("focus",g,true);h.removeEventListener("blur",g,true)};h.addEventListener("focus",g,true);h.addEventListener("blur",g,true);i.on("dispose",m);i.controlBar.on("dispose",m)}}Ct(e,i);i.one("beforepluginsetup:ads",function(){var t=i.getChild("controlBar");if(t){t.removeChild("pictureInPictureToggle")}e.getComponent("Component").prototype.fsApi_=i.fsApi_});if(!e.browser.TOUCH_ENABLED){i.addClass("vjs-mouse");if(s.isInBcFrame){e.dom.addClass(document.documentElement,"vjs-mouse")}}else if(e.browser.IS_IPHONE){i.addClass("vjs-native")}i.requestAnimationFrame(function(){var e=document.querySelector(".bc-wrap");i.addClass("vjs-plugins-ready");if(e){e.style.opacity=0}});i.on(["mouseenter","ended","touchend"],function(){i.removeClass("not-hover")});i.on("mouseleave",function(){i.addClass("not-hover");if(!i.controlBar||!i.controlBar.el()){return}if(i.controlBar.hasClass("vjs-control-bar-visible")){i.controlBar.removeClass("vjs-control-bar-visible")}});if(!e.browser.IS_ANY_SAFARI){i.one("loadeddata",function(){if(i.language()!==undefined&&i.catalog&&i.catalog.getMetadata().variants!==undefined){var e=i.language()||"";var t=i.textTracks();if(t){var n=Array.prototype.filter.call(t,function(e){return(e.kind==="captions"||e.kind==="subtitles")&&e.mode==="showing"});var r;var a;if(!n.length){for(a=0;a<t.length;a++){r=t[a];if((r.kind==="captions"||r.kind==="subtitles")&&r.language.toLowerCase()===e.toLowerCase()){r.mode="showing";return}}for(a=0;a<t.length;a++){r=t[a];if((r.kind==="captions"||r.kind==="subtitles")&&r.language.toLowerCase()===e.substring(0,2).toLowerCase()){r.mode="showing";return}}}}}})}var y;var _=function e(t){if(t){i.addClass("vjs-audio-mode")}else{i.removeClass("vjs-audio-mode")}};var b=function e(t){var n=i.getChild("PosterImage").el_.style;var r=function e(){var t=i.getChild("ControlBar");var r=t&&t.currentHeight();n.paddingBottom=r+"px";n.backgroundOrigin="content-box"};if(t){i.one("play",r)}else{i.off("play",r);n.paddingBottom="";n.backgroundOrigin=""}};i.on("loadedmetadata",function(){var e=i.currentSource().type.includes("audio");var t=i.audioPosterMode();var n=i.audioOnlyMode();if(!a.audioPosterMode&&!a.audioOnlyMode&&e&&!y||!t&&!n&&e&&y){i.audioPosterMode(true)}else if(!e&&t&&y){i.audioPosterMode(false)}y=true});i.on("audiopostermodechange",function(){var e=i.audioPosterMode();var t=i.audioOnlyMode();if(e){b(true);_(true)}else if(!t&&!e){b(false);_(false)}});i.on("audioonlymodechange",function(){var e=i.audioPosterMode();var t=i.audioOnlyMode();if(t){var n=i.currentHeight();var r=i.getChild("ControlBar");var a=r&&r.getChild("ProgressControl");var s=a?a.currentHeight():0;_(true);i.height(n+s)}else if(!t&&!e){_(false)}});if(a.videoCloud&&a.videoCloud.bumper){var S=i.getChild("ControlBar");var T=S.getChild("ProgressControl");var E=a.videoCloud.bumper;i.on("bumper-play",function(){if(E.preventSeeking){T.disable()}var e=S.getChild("NextButton");if(e){e.hide()}i.addClass("vjs-bumper-video")});i.on("bumper-ended",function(){if(E.preventSeeking){T.enable()}var e=S.getChild("NextButton");if(e){e.show()}i.removeClass("vjs-bumper-video")})}var w=s.bcShimDestripeTime;if(w!==undefined){if(w>1){i.trigger({type:"usage",name:"sdt-"+(Math.log(w)/Math.LN10).toFixed(1)})}else{i.trigger({type:"usage",name:"sdt-0.0"})}}i.ready(function(){if(i.bcinfo&&i.bcinfo.PLAYER_LOADER||s.brightcovePlayerLoader){i.trigger({type:"usage",name:"player-loader"})}if(i.bcinfo&&i.bcinfo.REACT_PLAYER_LOADER||s.BrightcoveReactPlayerLoader){i.trigger({type:"usage",name:"react-player-loader"})}});if(i.options_.debug){i.log.level("debug");i.log.history.enable()}else{i.log.level("off");i.log.history.disable()}var k=[{name:"proxyTracks",register:it,opts:{debug:i.options_.debug}},{name:"seekEvents",register:ot,opts:{verbose:i.options_.debug}},{name:"touchActive",register:ft},{name:"urlparams",register:Ye,opts:{iframe:s.isInBcFrame,time:a.startTime}},{name:"playerInfo",register:wt},{name:"endscreen",register:kt},{name:"encryptedWatcher",register:rt}];k.forEach(function(t){var n=t.name,r=t.opts,a=t.register;if(!i.hasPlugin(n)){a(e)}if(!i.usingPlugin(n)){i[n](r)}});var I=ct(e,i,t);f=I.catalogMedia;i.on("dispose",function(){i=r.runtime_=null;e.log.history.clear()})}function xt(e,t,i){var n=e.videojs;var r=-1;return function a(s){var o=n.getPlayer(s);if(o){o.trigger({type:"usage",name:"bc-used-as-getter"});return o}r++;var l=e.getRuntime({playerIndex:r});n.hookOnce("beforesetup",function(e,i){i=We(n,l,e,i);if(Pe.isFn(t)){return t(n,l,e,i)}return i});n.hookOnce("setup",function(t){Pt(n,l,t,e);if(Pe.isFn(i)){i(n,l,t)}});return n.apply(void 0,arguments)}}var Lt={accountId:"",adConfigId:"",applicationId:"",playsinline:false,loop:false,muted:false,autoplay:false,crossorigin:false,css:{},plugins:[],debug:false,contextMenu:{},deliveryConfigId:"",embedId:"default",misconfiguredWithMultipleAdPlugins:false,playerId:"default",skin:"luna",usingAdFailover:false,usingIMAPrerollWithSSAI:false,version:"0.0.0",videoCloud:null};var Ot={brightcovePlayerLoader:window.brightcovePlayerLoader,BrightcoveReactPlayerLoader:window.BrightcoveReactPlayerLoader,bcShimDestripeTime:window.bcShimDestripeTime,userAgent:window.navigator.userAgent};var Dt=function(){function e(t,i){if(t===void 0){t={}}if(i===void 0){i={}}var n=e.shared.videojs;if(!n){throw new Error("missing videojs")}this.runtime={environment:n.mergeOptions(Ot,i),settings:n.mergeOptions(Lt,t)};if(this.runtime.settings.misconfiguredWithMultipleAdPlugins){n.log.warn('Brightcove Player "'+this.runtime.settings.playerId+'" is mis-configured with multiple ad plugins.')}this.videojs=n;this.util=Pe;n.bc_=Pe;this.detectRuntimeEnvironment();this.setupGlobalEnv();Pe.perf.mark("bcAdBlockDetectStart");qe().then(function(e){Pe.perf.mark("bcAdBlockDetectEnd");Pe.perf.measure("bcAdBlockDetect","bcAdBlockDetectStart","bcAdBlockDetectEnd")})}var t=e.prototype;t.getRuntime=function e(t){return this.videojs.mergeOptions(this.runtime,{settings:t})};t.getAutoplayConditions=function e(t){if(t===void 0){t="video"}var i=this.runtime.environment;if(!i.autoplay){i.autoplay={}}return De(t,this.videojs).then(function(e){i.autoplay[t]=e;return e})};t.detectRuntimeEnvironment=function e(){var t=this.videojs.dom;var i=this.runtime.environment;var n=t.hasClass(document.documentElement,"bc-iframe");var r=Pe.qs();i.usingRequireJs=Pe.isFn(window.define)&&window.define.amd&&Pe.isFn(window.require&&window.require.toUrl);i.isInAnyFrame=t.isInFrame();i.isInBcFrame=n;i.queryString=n?r.search:{};i.urlHash=n?r.hash:{};this.setScriptUrl();this.setScriptBaseUrl()};t.setScriptUrl=function e(){var t=this.runtime.environment;if(t.isInBcFrame){t.scriptUrl=""}else if(t.usingRequireJs){t.scriptUrl=window.require.toUrl("bc")}else if(document.currentScript){t.scriptUrl=document.currentScript.src}else{var i=document.getElementsByTagName("script");t.scriptUrl=i.length&&i[i.length-1].src||""}};t.setScriptBaseUrl=function e(){var t=this.runtime.environment;if(t.scriptUrl){t.scriptBaseUrl=t.scriptUrl.split("/").slice(0,-1).join("/")}else{t.scriptBaseUrl="."}};t.safeSetGlobal=function e(t,i){if(!Pe.isNil(window[t])){return this.videojs.log.warn("setting window."+t+" would overwrite an existing global, skipping")}window[t]=i};t.setupGlobalEnv=function e(){var t=this;var i=this.videojs;var n=this.runtime.environment;var r=n.queryStringToWindow;if(!r||!n.isInBcFrame){return}var a=i.mergeOptions(n.queryString);if(r.target){this.safeSetGlobal(r.target,a)}if(Array.isArray(r.globals)){r.globals.forEach(function(e){t.safeSetGlobal(e,a[e])})}};t.createInitializer=function e(t,i){var n=this;var r=this.videojs;var a=window,s=a.bc;var o=this.runtime.settings,l=o.embedId,u=o.playerId,d=o.skin,c=o.version;var f=xt(this,t,i);f.SKIN=d;f.VERSION=c;f.videojs=r;f[u+"_"+l]=f;if(s){Object.keys(s).forEach(function(e){var t=s[e];if(typeof t==="function"&&typeof t.videojs==="function"){f[e]=t;delete s[e]}})}Object.defineProperty(f,"usingAdBlocker",{enumerable:true,value:qe});Object.defineProperty(f,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});window.bc=f;return f};e.dedupeVideojs=function t(i,n){var r=i;e.shared.firstVideojs=n||i;if(n&&n.VERSION===i.VERSION){r=n}else if(window.bc){var a=Object.keys(window.bc);for(var s=0;s<a.length;s++){var o=a[s];var l=window.bc[o];if(typeof l==="function"&&typeof l.videojs==="function"){if(l.videojs.VERSION===i.VERSION){r=l.videojs;break}}}}window.videojs=r;e.shared.videojs=r;return r};e.restoreFirstVideojs=function t(){window.videojs=e.shared.firstVideojs};return e}();Dt.defaultSettings=Lt;Dt.shared={};Dt.VERSION=n;return Dt}(videojs);(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof define==="function"&&define.amd?define(t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.videojs=t())})(this,function(){"use strict";var e="7.20.1";var t={};var i=function e(i,n){t[i]=t[i]||[];if(n){t[i]=t[i].concat(n)}return t[i]};var n=function e(t,n){i(t,n)};var r=function e(n,r){var a=i(n).indexOf(r);if(a<=-1){return false}t[n]=t[n].slice();t[n].splice(a,1);return true};var a=function e(t,n){i(t,[].concat(n).map(function(e){var i=function i(){r(t,i);return e.apply(void 0,arguments)};return i}))};var s={prefixed:true};var o=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]];var l=o[0];var u;for(var d=0;d<o.length;d++){if(o[d][1]in document){u=o[d];break}}if(u){for(var c=0;c<u.length;c++){s[l[c]]=u[c]}s.prefixed=u[0]!==l[0]}var f=[];var p=function e(t,i){return function(e,n,r){var a=i.levels[n];var s=new RegExp("^("+a+")$");if(e!=="log"){r.unshift(e.toUpperCase()+":")}r.unshift(t+":");if(f){f.push([].concat(r));var o=f.length-1e3;f.splice(0,o>0?o:0)}if(!window.console){return}var l=window.console[e];if(!l&&e==="debug"){l=window.console.info||window.console.log}if(!l||!a||!s.test(e)){return}l[Array.isArray(r)?"apply":"call"](window.console,r)}};function h(e){var t="info";var i;var n=function e(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++){r[a]=arguments[a]}i("log",t,r)};i=p(e,n);n.createLogger=function(t){return h(e+": "+t)};n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t};n.level=function(e){if(typeof e==="string"){if(!n.levels.hasOwnProperty(e)){throw new Error('"'+e+'" in not a valid log level')}t=e}return t};n.history=function(){return f?[].concat(f):[]};n.history.filter=function(e){return(f||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})};n.history.clear=function(){if(f){f.length=0}};n.history.disable=function(){if(f!==null){f.length=0;f=null}};n.history.enable=function(){if(f===null){f=[]}};n.error=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return i("error",t,n)};n.warn=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return i("warn",t,n)};n.debug=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return i("debug",t,n)};return n}var v=h("VIDEOJS");var g=v.createLogger;var m=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function y(e,t){return t={exports:{}},e(t,t.exports),t.exports}var _=y(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){e[n]=i[n]}}}return e};return t.apply(this,arguments)}e.exports=t});var b=Object.prototype.toString;var S=function e(t){return k(t)?Object.keys(t):[]};function T(e,t){S(e).forEach(function(i){return t(e[i],i)})}function E(e,t,i){if(i===void 0){i=0}return S(e).reduce(function(i,n){return t(i,e[n],n)},i)}function w(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++){i[n-1]=arguments[n]}if(Object.assign){return _.apply(void 0,[e].concat(i))}i.forEach(function(t){if(!t){return}T(t,function(t,i){e[i]=t})});return e}function k(e){return!!e&&typeof e==="object"}function I(e){return k(e)&&b.call(e)==="[object Object]"&&e.constructor===Object}function A(e,t){if(!e||!t){return""}if(typeof window.getComputedStyle==="function"){var i;try{i=window.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}var C=window.navigator&&window.navigator.userAgent||"";var j=/AppleWebKit\/([\d.]+)/i.exec(C);var P=j?parseFloat(j.pop()):null;var x=/iPod/i.test(C);var L=function(){var e=C.match(/OS (\d+)_/i);if(e&&e[1]){return e[1]}return null}();var O=/Android/i.test(C);var D=function(){var e=C.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e){return null}var t=e[1]&&parseFloat(e[1]);var i=e[2]&&parseFloat(e[2]);if(t&&i){return parseFloat(e[1]+"."+e[2])}else if(t){return t}return null}();var R=O&&D<5&&P<537;var N=/Firefox/i.test(C);var M=/Edg/i.test(C);var U=!M&&(/Chrome/i.test(C)||/CriOS/i.test(C));var B=function(){var e=C.match(/(Chrome|CriOS)\/(\d+)/);if(e&&e[2]){return parseFloat(e[2])}return null}();var F=function(){var e=/MSIE\s(\d+)\.\d/.exec(C);var t=e&&parseFloat(e[1]);if(!t&&/Trident\/7.0/i.test(C)&&/rv:11.0/.test(C)){t=11}return t}();var V=/Safari/i.test(C)&&!U&&!O&&!M;var q=/Windows/i.test(C);var H=Boolean(Z()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch));var G=/iPad/i.test(C)||V&&H&&!/iPhone/i.test(C);var z=/iPhone/i.test(C)&&!G;var W=z||G||x;var Y=(V||W)&&!U;var K=Object.freeze({__proto__:null,IS_IPOD:x,IOS_VERSION:L,IS_ANDROID:O,ANDROID_VERSION:D,IS_NATIVE_ANDROID:R,IS_FIREFOX:N,IS_EDGE:M,IS_CHROME:U,CHROME_VERSION:B,IE_VERSION:F,IS_SAFARI:V,IS_WINDOWS:q,TOUCH_ENABLED:H,IS_IPAD:G,IS_IPHONE:z,IS_IOS:W,IS_ANY_SAFARI:Y});function X(e){return typeof e==="string"&&Boolean(e.trim())}function Q(e){if(e.indexOf(" ")>=0){throw new Error("class has illegal whitespace characters")}}function J(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function Z(){return document===window.document}function $(e){return k(e)&&e.nodeType===1}function ee(){try{return window.parent!==window.self}catch(e){return true}}function te(e){return function(t,i){if(!X(t)){return document[e](null)}if(X(i)){i=document.querySelector(i)}var n=$(i)?i:document;return n[e]&&n[e](t)}}function ie(e,t,i,n){if(e===void 0){e="div"}if(t===void 0){t={}}if(i===void 0){i={}}var r=document.createElement(e);Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];if(e.indexOf("aria-")!==-1||e==="role"||e==="type"){v.warn("Setting attributes in the second argument of createEl()\n"+"has been deprecated. Use the third argument instead.\n"+("createEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."));r.setAttribute(e,i)}else if(e==="textContent"){ne(r,i)}else if(r[e]!==i||e==="tabIndex"){r[e]=i}});Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])});if(n){Te(r,n)}return r}function ne(e,t){if(typeof e.textContent==="undefined"){e.innerText=t}else{e.textContent=t}return e}function re(e,t){if(t.firstChild){t.insertBefore(e,t.firstChild)}else{t.appendChild(e)}}function ae(e,t){Q(t);if(e.classList){return e.classList.contains(t)}return J(t).test(e.className)}function se(e,t){if(e.classList){e.classList.add(t)}else if(!ae(e,t)){e.className=(e.className+" "+t).trim()}return e}function oe(e,t){if(!e){v.warn("removeClass was called with an element that doesn't exist");return null}if(e.classList){e.classList.remove(t)}else{Q(t);e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")}return e}function le(e,t,i){var n=ae(e,t);if(typeof i==="function"){i=i(e,t)}if(typeof i!=="boolean"){i=!n}if(i===n){return}if(i){se(e,t)}else{oe(e,t)}return e}function ue(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];if(n===null||typeof n==="undefined"||n===false){e.removeAttribute(i)}else{e.setAttribute(i,n===true?"":n)}})}function de(e){var t={};var i=","+"autoplay,controls,playsinline,loop,muted,default,defaultMuted"+",";if(e&&e.attributes&&e.attributes.length>0){var n=e.attributes;for(var r=n.length-1;r>=0;r--){var a=n[r].name;var s=n[r].value;if(typeof e[a]==="boolean"||i.indexOf(","+a+",")!==-1){s=s!==null?true:false}t[a]=s}}return t}function ce(e,t){return e.getAttribute(t)}function fe(e,t,i){e.setAttribute(t,i)}function pe(e,t){e.removeAttribute(t)}function he(){document.body.focus();document.onselectstart=function(){return false}}function ve(){document.onselectstart=function(){return true}}function ge(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect();var i={};["bottom","height","left","right","top","width"].forEach(function(e){if(t[e]!==undefined){i[e]=t[e]}});if(!i.height){i.height=parseFloat(A(e,"height"))}if(!i.width){i.width=parseFloat(A(e,"width"))}return i}}function me(e){if(!e||e&&!e.offsetParent){return{left:0,top:0,width:0,height:0}}var t=e.offsetWidth;var i=e.offsetHeight;var n=0;var r=0;while(e.offsetParent&&e!==document[s.fullscreenElement]){n+=e.offsetLeft;r+=e.offsetTop;e=e.offsetParent}return{left:n,top:r,width:t,height:i}}function ye(e,t){var i={x:0,y:0};if(W){var n=e;while(n&&n.nodeName.toLowerCase()!=="html"){var r=A(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4];i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12];i.y+=s[13]}n=n.parentNode}}var o={};var l=me(t.target);var u=me(e);var d=u.width;var c=u.height;var f=t.offsetY-(u.top-l.top);var p=t.offsetX-(u.left-l.left);if(t.changedTouches){p=t.changedTouches[0].pageX-u.left;f=t.changedTouches[0].pageY+u.top;if(W){p-=i.x;f-=i.y}}o.y=1-Math.max(0,Math.min(1,f/c));o.x=Math.max(0,Math.min(1,p/d));return o}function _e(e){return k(e)&&e.nodeType===3}function be(e){while(e.firstChild){e.removeChild(e.firstChild)}return e}function Se(e){if(typeof e==="function"){e=e()}return(Array.isArray(e)?e:[e]).map(function(e){if(typeof e==="function"){e=e()}if($(e)||_e(e)){return e}if(typeof e==="string"&&/\S/.test(e)){return document.createTextNode(e)}}).filter(function(e){return e})}function Te(e,t){Se(t).forEach(function(t){return e.appendChild(t)});return e}function Ee(e,t){return Te(be(e),t)}function we(e){if(e.button===undefined&&e.buttons===undefined){return true}if(e.button===0&&e.buttons===undefined){return true}if(e.type==="mouseup"&&e.button===0&&e.buttons===0){return true}if(e.button!==0||e.buttons!==1){return false}return true}var ke=te("querySelector");var Ie=te("querySelectorAll");var Ae=Object.freeze({__proto__:null,isReal:Z,isEl:$,isInFrame:ee,createEl:ie,textContent:ne,prependTo:re,hasClass:ae,addClass:se,removeClass:oe,toggleClass:le,setAttributes:ue,getAttributes:de,getAttribute:ce,setAttribute:fe,removeAttribute:pe,blockTextSelection:he,unblockTextSelection:ve,getBoundingClientRect:ge,findPosition:me,getPointerPosition:ye,isTextNode:_e,emptyEl:be,normalizeContent:Se,appendContent:Te,insertContent:Ee,isSingleLeftClick:we,$:ke,$$:Ie});var Ce=false;var je;var Pe=function e(){if(je.options.autoSetup===false){return}var t=Array.prototype.slice.call(document.getElementsByTagName("video"));var i=Array.prototype.slice.call(document.getElementsByTagName("audio"));var n=Array.prototype.slice.call(document.getElementsByTagName("video-js"));var r=t.concat(i,n);if(r&&r.length>0){for(var a=0,s=r.length;a<s;a++){var o=r[a];if(o&&o.getAttribute){if(o.player===undefined){var l=o.getAttribute("data-setup");if(l!==null){je(o)}}}else{xe(1);break}}}else if(!Ce){xe(1)}};function xe(e,t){if(!Z()){return}if(t){je=t}window.setTimeout(Pe,e)}function Le(){Ce=true;window.removeEventListener("load",Le)}if(Z()){if(document.readyState==="complete"){Le()}else{window.addEventListener("load",Le)}}var Oe=function e(t){var i=document.createElement("style");i.className=t;return i};var De=function e(t,i){if(t.styleSheet){t.styleSheet.cssText=i}else{t.textContent=i}};var Re=3;var Ne=Re;function Me(){return Ne++}var Ue;if(!window.WeakMap){Ue=function(){function e(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now());this.data={}}var t=e.prototype;t.set=function e(t,i){var n=t[this.vdata]||Me();if(!t[this.vdata]){t[this.vdata]=n}this.data[n]=i;return this};t.get=function e(t){var i=t[this.vdata];if(i){return this.data[i]}v("We have no data for this element",t);return undefined};t.has=function e(t){var i=t[this.vdata];return i in this.data};t["delete"]=function e(t){var i=t[this.vdata];if(i){delete this.data[i];delete t[this.vdata]}};return e}()}var Be=window.WeakMap?new WeakMap:new Ue;function Fe(e,t){if(!Be.has(e)){return}var i=Be.get(e);if(i.handlers[t].length===0){delete i.handlers[t];if(e.removeEventListener){e.removeEventListener(t,i.dispatcher,false)}else if(e.detachEvent){e.detachEvent("on"+t,i.dispatcher)}}if(Object.getOwnPropertyNames(i.handlers).length<=0){delete i.handlers;delete i.dispatcher;delete i.disabled}if(Object.getOwnPropertyNames(i).length===0){Be["delete"](e)}}function Ve(e,t,i,n){i.forEach(function(i){e(t,i,n)})}function qe(e){if(e.fixed_){return e}function t(){return true}function i(){return false}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n=e||window.event;e={};for(var r in n){if(r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"){if(!(r==="returnValue"&&n.preventDefault)){e[r]=n[r]}}}if(!e.target){e.target=e.srcElement||document}if(!e.relatedTarget){e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement}e.preventDefault=function(){if(n.preventDefault){n.preventDefault()}e.returnValue=false;n.returnValue=false;e.defaultPrevented=true};e.defaultPrevented=false;e.stopPropagation=function(){if(n.stopPropagation){n.stopPropagation()}e.cancelBubble=true;n.cancelBubble=true;e.isPropagationStopped=t};e.isPropagationStopped=i;e.stopImmediatePropagation=function(){if(n.stopImmediatePropagation){n.stopImmediatePropagation()}e.isImmediatePropagationStopped=t;e.stopPropagation()};e.isImmediatePropagationStopped=i;if(e.clientX!==null&&e.clientX!==undefined){var a=document.documentElement;var s=document.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0);e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode;if(e.button!==null&&e.button!==undefined){e.button=e.button&1?0:e.button&4?1:e.button&2?2:0}}e.fixed_=true;return e}var He;var Ge=function e(){if(typeof He!=="boolean"){He=false;try{var t=Object.defineProperty({},"passive",{get:function e(){He=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(e){}}return He};var ze=["touchstart","touchmove"];function We(e,t,i){if(Array.isArray(t)){return Ve(We,e,t,i)}if(!Be.has(e)){Be.set(e,{})}var n=Be.get(e);if(!n.handlers){n.handlers={}}if(!n.handlers[t]){n.handlers[t]=[]}if(!i.guid){i.guid=Me()}n.handlers[t].push(i);if(!n.dispatcher){n.disabled=false;n.dispatcher=function(t,i){if(n.disabled){return}t=qe(t);var r=n.handlers[t.type];if(r){var a=r.slice(0);for(var s=0,o=a.length;s<o;s++){if(t.isImmediatePropagationStopped()){break}else{try{a[s].call(e,t,i)}catch(e){v.error(e)}}}}}}if(n.handlers[t].length===1){if(e.addEventListener){var r=false;if(Ge()&&ze.indexOf(t)>-1){r={passive:true}}e.addEventListener(t,n.dispatcher,r)}else if(e.attachEvent){e.attachEvent("on"+t,n.dispatcher)}}}function Ye(e,t,i){if(!Be.has(e)){return}var n=Be.get(e);if(!n.handlers){return}if(Array.isArray(t)){return Ve(Ye,e,t,i)}var r=function e(t,i){n.handlers[i]=[];Fe(t,i)};if(t===undefined){for(var a in n.handlers){if(Object.prototype.hasOwnProperty.call(n.handlers||{},a)){r(e,a)}}return}var s=n.handlers[t];if(!s){return}if(!i){r(e,t);return}if(i.guid){for(var o=0;o<s.length;o++){if(s[o].guid===i.guid){s.splice(o--,1)}}}Fe(e,t)}function Ke(e,t,i){var n=Be.has(e)?Be.get(e):{};var r=e.parentNode||e.ownerDocument;if(typeof t==="string"){t={type:t,target:e}}else if(!t.target){t.target=e}t=qe(t);if(n.dispatcher){n.dispatcher.call(e,t,i)}if(r&&!t.isPropagationStopped()&&t.bubbles===true){Ke.call(null,r,t,i)}else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){if(!Be.has(t.target)){Be.set(t.target,{})}var a=Be.get(t.target);if(t.target[t.type]){a.disabled=true;if(typeof t.target[t.type]==="function"){t.target[t.type]()}a.disabled=false}}return!t.defaultPrevented}function Xe(e,t,i){if(Array.isArray(t)){return Ve(Xe,e,t,i)}var n=function n(){Ye(e,t,n);i.apply(this,arguments)};n.guid=i.guid=i.guid||Me();We(e,t,n)}function Qe(e,t,i){var n=function n(){Ye(e,t,n);i.apply(this,arguments)};n.guid=i.guid=i.guid||Me();We(e,t,n)}var Je=Object.freeze({__proto__:null,fixEvent:qe,on:We,off:Ye,trigger:Ke,one:Xe,any:Qe});var Ze=30;var $e=function e(t,i,n){if(!i.guid){i.guid=Me()}var r=i.bind(t);r.guid=n?n+"_"+i.guid:i.guid;return r};var et=function e(t,i){var n=window.performance.now();var r=function e(){var r=window.performance.now();if(r-n>=i){t.apply(void 0,arguments);n=r}};return r};var tt=function e(t,i,n,r){if(r===void 0){r=window}var a;var s=function e(){r.clearTimeout(a);a=null};var o=function e(){var s=this;var o=arguments;var l=function e(){a=null;l=null;if(!n){t.apply(s,o)}};if(!a&&n){t.apply(s,o)}r.clearTimeout(a);a=r.setTimeout(l,i)};o.cancel=s;return o};var it=function e(){};it.prototype.allowedEvents_={};it.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};We(this,e,t);this.addEventListener=i};it.prototype.addEventListener=it.prototype.on;it.prototype.off=function(e,t){Ye(this,e,t)};it.prototype.removeEventListener=it.prototype.off;it.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Xe(this,e,t);this.addEventListener=i};it.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Qe(this,e,t);this.addEventListener=i};it.prototype.trigger=function(e){var t=e.type||e;if(typeof e==="string"){e={type:t}}e=qe(e);if(this.allowedEvents_[t]&&this["on"+t]){this["on"+t](e)}Ke(this,e)};it.prototype.dispatchEvent=it.prototype.trigger;var nt;it.prototype.queueTrigger=function(e){var t=this;if(!nt){nt=new Map}var i=e.type||e;var n=nt.get(this);if(!n){n=new Map;nt.set(this,n)}var r=n.get(i);n["delete"](i);window.clearTimeout(r);var a=window.setTimeout(function(){if(n.size===0){n=null;nt["delete"](t)}t.trigger(e)},0);n.set(i,a)};var rt=function e(t){if(typeof t.name==="function"){return t.name()}if(typeof t.name==="string"){return t.name}if(t.name_){return t.name_}if(t.constructor&&t.constructor.name){return t.constructor.name}return typeof t};var at=function e(t){return t instanceof it||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return typeof t[e]==="function"})};var st=function e(t,i){if(at(t)){i()}else{if(!t.eventedCallbacks){t.eventedCallbacks=[]}t.eventedCallbacks.push(i)}};var ot=function e(t){return typeof t==="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length};var lt=function e(t,i,n){if(!t||!t.nodeName&&!at(t)){throw new Error("Invalid target for "+rt(i)+"#"+n+"; must be a DOM node or evented object.")}};var ut=function e(t,i,n){if(!ot(t)){throw new Error("Invalid event type for "+rt(i)+"#"+n+"; must be a non-empty string or array.")}};var dt=function e(t,i,n){if(typeof t!=="function"){throw new Error("Invalid listener for "+rt(i)+"#"+n+"; must be a function.")}};var ct=function e(t,i,n){var r=i.length<3||i[0]===t||i[0]===t.eventBusEl_;var a;var s;var o;if(r){a=t.eventBusEl_;if(i.length>=3){i.shift()}s=i[0];o=i[1]}else{a=i[0];s=i[1];o=i[2]}lt(a,t,n);ut(s,t,n);dt(o,t,n);o=$e(t,o);return{isTargetingSelf:r,target:a,type:s,listener:o}};var ft=function e(t,i,n,r){lt(t,t,i);if(t.nodeName){Je[i](t,n,r)}else{t[i](n,r)}};var pt={on:function e(){var t=this;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}var a=ct(this,n,"on"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;ft(o,"on",l,u);if(!s){var d=function e(){return t.off(o,l,u)};d.guid=u.guid;var c=function e(){return t.off("dispose",d)};c.guid=u.guid;ft(this,"on","dispose",d);ft(o,"on","dispose",c)}},one:function e(){var t=this;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}var a=ct(this,n,"one"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){ft(o,"one",l,u)}else{var d=function e(){t.off(o,l,e);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}u.apply(null,n)};d.guid=u.guid;ft(o,"one",l,d)}},any:function e(){var t=this;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}var a=ct(this,n,"any"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){ft(o,"any",l,u)}else{var d=function e(){t.off(o,l,e);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++){n[r]=arguments[r]}u.apply(null,n)};d.guid=u.guid;ft(o,"any",l,d)}},off:function e(t,i,n){if(!t||ot(t)){Ye(this.eventBusEl_,t,i)}else{var r=t;var a=i;lt(r,this,"off");ut(a,this,"off");dt(n,this,"off");n=$e(this,n);this.off("dispose",n);if(r.nodeName){Ye(r,a,n);Ye(r,"dispose",n)}else if(at(r)){r.off(a,n);r.off("dispose",n)}}},trigger:function e(t,i){lt(this.eventBusEl_,this,"trigger");var n=t&&typeof t!=="string"?t.type:t;if(!ot(n)){var r="Invalid event type for "+rt(this)+"#trigger; "+"must be a non-empty string or object with a type key that has a non-empty value.";if(t){(this.log||v).error(r)}else{throw new Error(r)}}return Ke(this.eventBusEl_,t,i)}};function ht(e,t){if(t===void 0){t={}}var i=t,n=i.eventBusKey;if(n){if(!e[n].nodeName){throw new Error('The eventBusKey "'+n+'" does not refer to an element.')}e.eventBusEl_=e[n]}else{e.eventBusEl_=ie("span",{className:"vjs-event-bus"})}w(e,pt);if(e.eventedCallbacks){e.eventedCallbacks.forEach(function(e){e()})}e.on("dispose",function(){e.off();[e,e.el_,e.eventBusEl_].forEach(function(e){if(e&&Be.has(e)){Be["delete"](e)}});window.setTimeout(function(){e.eventBusEl_=null},0)});return e}var vt={state:{},setState:function e(t){var i=this;if(typeof t==="function"){t=t()}var n;T(t,function(e,t){if(i.state[t]!==e){n=n||{};n[t]={from:i.state[t],to:e}}i.state[t]=e});if(n&&at(this)){this.trigger({changes:n,type:"statechanged"})}return n}};function gt(e,t){w(e,vt);e.state=w({},e.state,t);if(typeof e.handleStateChanged==="function"&&at(e)){e.on("statechanged",e.handleStateChanged)}return e}var mt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toLowerCase()})};var yt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var _t=function e(t,i){return yt(t)===yt(i)};function bt(){var e={};for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}i.forEach(function(t){if(!t){return}T(t,function(t,i){if(!I(t)){e[i]=t;return}if(!I(e[i])){e[i]={}}e[i]=bt(e[i],t)})});return e}var St=function(){function e(){this.map_={}}var t=e.prototype;t.has=function e(t){return t in this.map_};t["delete"]=function e(t){var i=this.has(t);delete this.map_[t];return i};t.set=function e(t,i){this.map_[t]=i;return this};t.forEach=function e(t,i){for(var n in this.map_){t.call(i,this.map_[n],n,this)}};return e}();var Tt=window.Map?window.Map:St;var Et=function(){function e(){this.set_={}}var t=e.prototype;t.has=function e(t){return t in this.set_};t["delete"]=function e(t){var i=this.has(t);delete this.set_[t];return i};t.add=function e(t){this.set_[t]=1;return this};t.forEach=function e(t,i){for(var n in this.set_){t.call(i,n,n,this)}};return e}();var wt=window.Set?window.Set:Et;var kt=y(function(e,t){function i(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;if(t)e=t}if("number"===typeof e)return s[e];var i=String(e);var a=n[i.toLowerCase()];if(a)return a;var a=r[i.toLowerCase()];if(a)return a;if(i.length===1)return i.charCodeAt(0);return undefined}i.isEventKey=function e(t,i){if(t&&"object"===typeof t){var a=t.which||t.keyCode||t.charCode;if(a===null||a===undefined){return false}if(typeof i==="string"){var s=n[i.toLowerCase()];if(s){return s===a}var s=r[i.toLowerCase()];if(s){return s===a}}else if(typeof i==="number"){return i===a}return false}};t=e.exports=i;var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};var r=t.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++){n[String.fromCharCode(a)]=a-32}for(var a=48;a<58;a++){n[a-48]=a}for(a=1;a<13;a++){n["f"+a]=a+111}for(a=0;a<10;a++){n["numpad "+a]=a+96}var s=t.names=t.title={};for(a in n){s[n[a]]=a}for(var o in r){n[o]=r[o]}});kt.code;kt.codes;kt.aliases;kt.names;kt.title;var It=function(){function e(e,t,i){var n=this;if(!e&&this.play){this.player_=e=this}else{this.player_=e}this.isDisposed_=false;this.parentComponent_=null;this.options_=bt({},this.options_);t=this.options_=bt(this.options_,t);this.id_=t.id||t.el&&t.el.id;if(!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Me()}this.name_=t.name||null;if(t.el){this.el_=t.el}else if(t.createEl!==false){this.el_=this.createEl()}if(t.className&&this.el_){t.className.split(" ").forEach(function(e){return n.addClass(e)})}if(t.evented!==false){ht(this,{eventBusKey:this.el_?"el_":null});this.handleLanguagechange=this.handleLanguagechange.bind(this);this.on(this.player_,"languagechange",this.handleLanguagechange)}gt(this,this.constructor.defaultState);this.children_=[];this.childIndex_={};this.childNameIndex_={};this.setTimeoutIds_=new wt;this.setIntervalIds_=new wt;this.rafIds_=new wt;this.namedRafs_=new Tt;this.clearingTimersOnDispose_=false;if(t.initChildren!==false){this.initChildren()}this.ready(i);if(t.reportTouchActivity!==false){this.enableTouchActivity()}}var t=e.prototype;t.dispose=function e(t){if(t===void 0){t={}}if(this.isDisposed_){return}if(this.readyQueue_){this.readyQueue_.length=0}this.trigger({type:"dispose",bubbles:false});this.isDisposed_=true;if(this.children_){for(var i=this.children_.length-1;i>=0;i--){if(this.children_[i].dispose){this.children_[i].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.parentComponent_=null;if(this.el_){if(this.el_.parentNode){if(t.restoreEl){this.el_.parentNode.replaceChild(t.restoreEl,this.el_)}else{this.el_.parentNode.removeChild(this.el_)}}this.el_=null}this.player_=null};t.isDisposed=function e(){return Boolean(this.isDisposed_)};t.player=function e(){return this.player_};t.options=function e(t){if(!t){return this.options_}this.options_=bt(this.options_,t);return this.options_};t.el=function e(){return this.el_};t.createEl=function e(t,i,n){return ie(t,i,n)};t.localize=function e(t,i,n){if(n===void 0){n=t}var r=this.player_.language&&this.player_.language();var a=this.player_.languages&&this.player_.languages();var s=a&&a[r];var o=r&&r.split("-")[0];var l=a&&a[o];var u=n;if(s&&s[t]){u=s[t]}else if(l&&l[t]){u=l[t]}if(i){u=u.replace(/\{(\d+)\}/g,function(e,t){var n=i[t-1];var r=n;if(typeof n==="undefined"){r=e}return r})}return u};t.handleLanguagechange=function e(){};t.contentEl=function e(){return this.contentEl_||this.el_};t.id=function e(){return this.id_};t.name=function e(){return this.name_};t.children=function e(){return this.children_};t.getChildById=function e(t){return this.childIndex_[t]};t.getChild=function e(t){if(!t){return}return this.childNameIndex_[t]};t.getDescendant=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}i=i.reduce(function(e,t){return e.concat(t)},[]);var r=this;for(var a=0;a<i.length;a++){r=r.getChild(i[a]);if(!r||!r.getChild){return}}return r};t.addChild=function t(i,n,r){if(n===void 0){n={}}if(r===void 0){r=this.children_.length}var a;var s;if(typeof i==="string"){s=yt(i);var o=n.componentClass||s;n.name=s;var l=e.getComponent(o);if(!l){throw new Error("Component "+o+" does not exist")}if(typeof l!=="function"){return null}a=new l(this.player_||this,n)}else{a=i}if(a.parentComponent_){a.parentComponent_.removeChild(a)}this.children_.splice(r,0,a);a.parentComponent_=this;if(typeof a.id==="function"){this.childIndex_[a.id()]=a}s=s||a.name&&yt(a.name());if(s){this.childNameIndex_[s]=a;this.childNameIndex_[mt(s)]=a}if(typeof a.el==="function"&&a.el()){var u=null;if(this.children_[r+1]){if(this.children_[r+1].el_){u=this.children_[r+1].el_}else if($(this.children_[r+1])){u=this.children_[r+1]}}this.contentEl().insertBefore(a.el(),u)}return a};t.removeChild=function e(t){if(typeof t==="string"){t=this.getChild(t)}if(!t||!this.children_){return}var i=false;for(var n=this.children_.length-1;n>=0;n--){if(this.children_[n]===t){i=true;this.children_.splice(n,1);break}}if(!i){return}t.parentComponent_=null;this.childIndex_[t.id()]=null;this.childNameIndex_[yt(t.name())]=null;this.childNameIndex_[mt(t.name())]=null;var r=t.el();if(r&&r.parentNode===this.contentEl()){this.contentEl().removeChild(t.el())}};t.initChildren=function t(){var i=this;var n=this.options_.children;if(n){var r=this.options_;var a=function e(t){var n=t.name;var a=t.opts;if(r[n]!==undefined){a=r[n]}if(a===false){return}if(a===true){a={}}a.playerOptions=i.options_.playerOptions;var s=i.addChild(n,a);if(s){i[n]=s}};var s;var o=e.getComponent("Tech");if(Array.isArray(n)){s=n}else{s=Object.keys(n)}s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){if(typeof t==="string"){return e===t}return e===t.name})})).map(function(e){var t;var r;if(typeof e==="string"){t=e;r=n[t]||i.options_[t]||{}}else{t=e.name;r=e}return{name:t,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||yt(t.name));return i&&!o.isTech(i)}).forEach(a)}};t.buildCSSClass=function e(){return""};t.ready=function e(t,i){if(i===void 0){i=false}if(!t){return}if(!this.isReady_){this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(t);return}if(i){t.call(this)}else{this.setTimeout(t,1)}};t.triggerReady=function e(){this.isReady_=true;this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[];if(e&&e.length>0){e.forEach(function(e){e.call(this)},this)}this.trigger("ready")},1)};t.$=function e(t,i){return ke(t,i||this.contentEl())};t.$$=function e(t,i){return Ie(t,i||this.contentEl())};t.hasClass=function e(t){return ae(this.el_,t)};t.addClass=function e(t){se(this.el_,t)};t.removeClass=function e(t){oe(this.el_,t)};t.toggleClass=function e(t,i){le(this.el_,t,i)};t.show=function e(){this.removeClass("vjs-hidden")};t.hide=function e(){this.addClass("vjs-hidden")};t.lockShowing=function e(){this.addClass("vjs-lock-showing")};t.unlockShowing=function e(){this.removeClass("vjs-lock-showing")};t.getAttribute=function e(t){return ce(this.el_,t)};t.setAttribute=function e(t,i){fe(this.el_,t,i)};t.removeAttribute=function e(t){pe(this.el_,t)};t.width=function e(t,i){return this.dimension("width",t,i)};t.height=function e(t,i){return this.dimension("height",t,i)};t.dimensions=function e(t,i){this.width(t,true);this.height(i)};t.dimension=function e(t,i,n){if(i!==undefined){if(i===null||i!==i){i=0}if((""+i).indexOf("%")!==-1||(""+i).indexOf("px")!==-1){this.el_.style[t]=i}else if(i==="auto"){this.el_.style[t]=""}else{this.el_.style[t]=i+"px"}if(!n){this.trigger("componentresize")}return}if(!this.el_){return 0}var r=this.el_.style[t];var a=r.indexOf("px");if(a!==-1){return parseInt(r.slice(0,a),10)}return parseInt(this.el_["offset"+yt(t)],10)};t.currentDimension=function e(t){var i=0;if(t!=="width"&&t!=="height"){throw new Error("currentDimension only accepts width or height value")}i=A(this.el_,t);i=parseFloat(i);if(i===0||isNaN(i)){var n="offset"+yt(t);i=this.el_[n]}return i};t.currentDimensions=function e(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};t.currentWidth=function e(){return this.currentDimension("width")};t.currentHeight=function e(){return this.currentDimension("height")};t.focus=function e(){this.el_.focus()};t.blur=function e(){this.el_.blur()};t.handleKeyDown=function e(t){if(this.player_){if(!kt.isEventKey(t,"Tab")){t.stopPropagation()}this.player_.handleKeyDown(t)}};t.handleKeyPress=function e(t){this.handleKeyDown(t)};t.emitTapEvents=function e(){var t=0;var i=null;var n=10;var r=200;var a;this.on("touchstart",function(e){if(e.touches.length===1){i={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY};t=window.performance.now();a=true}});this.on("touchmove",function(e){if(e.touches.length>1){a=false}else if(i){var t=e.touches[0].pageX-i.pageX;var r=e.touches[0].pageY-i.pageY;var s=Math.sqrt(t*t+r*r);if(s>n){a=false}}});var s=function e(){a=false};this.on("touchleave",s);this.on("touchcancel",s);this.on("touchend",function(e){i=null;if(a===true){var n=window.performance.now()-t;if(n<r){e.preventDefault();this.trigger("tap")}}})};t.enableTouchActivity=function e(){if(!this.player()||!this.player().reportUserActivity){return}var t=$e(this.player(),this.player().reportUserActivity);var i;this.on("touchstart",function(){t();this.clearInterval(i);i=this.setInterval(t,250)});var n=function e(n){t();this.clearInterval(i)};this.on("touchmove",t);this.on("touchend",n);this.on("touchcancel",n)};t.setTimeout=function e(t,i){var n=this;var r;t=$e(this,t);this.clearTimersOnDispose_();r=window.setTimeout(function(){if(n.setTimeoutIds_.has(r)){n.setTimeoutIds_["delete"](r)}t()},i);this.setTimeoutIds_.add(r);return r};t.clearTimeout=function e(t){if(this.setTimeoutIds_.has(t)){this.setTimeoutIds_["delete"](t);window.clearTimeout(t)}return t};t.setInterval=function e(t,i){t=$e(this,t);this.clearTimersOnDispose_();var n=window.setInterval(t,i);this.setIntervalIds_.add(n);return n};t.clearInterval=function e(t){if(this.setIntervalIds_.has(t)){this.setIntervalIds_["delete"](t);window.clearInterval(t)}return t};t.requestAnimationFrame=function e(t){var i=this;if(!this.supportsRaf_){return this.setTimeout(t,1e3/60)}this.clearTimersOnDispose_();var n;t=$e(this,t);n=window.requestAnimationFrame(function(){if(i.rafIds_.has(n)){i.rafIds_["delete"](n)}t()});this.rafIds_.add(n);return n};t.requestNamedAnimationFrame=function e(t,i){var n=this;if(this.namedRafs_.has(t)){return}this.clearTimersOnDispose_();i=$e(this,i);var r=this.requestAnimationFrame(function(){i();if(n.namedRafs_.has(t)){n.namedRafs_["delete"](t)}});this.namedRafs_.set(t,r);return t};t.cancelNamedAnimationFrame=function e(t){if(!this.namedRafs_.has(t)){return}this.cancelAnimationFrame(this.namedRafs_.get(t));this.namedRafs_["delete"](t)};t.cancelAnimationFrame=function e(t){if(!this.supportsRaf_){return this.clearTimeout(t)}if(this.rafIds_.has(t)){this.rafIds_["delete"](t);window.cancelAnimationFrame(t)}return t};t.clearTimersOnDispose_=function e(){var t=this;if(this.clearingTimersOnDispose_){return}this.clearingTimersOnDispose_=true;this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var i=e[0],n=e[1];t[i].forEach(function(e,i){return t[n](i)})});t.clearingTimersOnDispose_=false})};e.registerComponent=function t(i,n){if(typeof i!=="string"||!i){throw new Error('Illegal component name, "'+i+'"; must be a non-empty string.')}var r=e.getComponent("Tech");var a=r&&r.isTech(n);var s=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!s){var o;if(a){o="techs must be registered using Tech.registerTech()"}else{o="must be a Component subclass"}throw new Error('Illegal component, "'+i+'"; '+o+".")}i=yt(i);if(!e.components_){e.components_={}}var l=e.getComponent("Player");if(i==="Player"&&l&&l.players){var u=l.players;var d=Object.keys(u);if(u&&d.length>0&&d.map(function(e){return u[e]}).every(Boolean)){throw new Error("Can not register Player component after player has been created.")}}e.components_[i]=n;e.components_[mt(i)]=n;return n};e.getComponent=function t(i){if(!i||!e.components_){return}return e.components_[i]};return e}();It.prototype.supportsRaf_=typeof window.requestAnimationFrame==="function"&&typeof window.cancelAnimationFrame==="function";It.registerComponent("Component",It);function At(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var Ct=At;function jt(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var Pt=jt;function xt(e,t,i){if(typeof t!=="number"||t<0||t>i){throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}}function Lt(e,t,i,n){xt(e,n,i.length-1);return i[n][t]}function Ot(e){var t;if(e===undefined||e.length===0){t={length:0,start:function e(){throw new Error("This TimeRanges object is empty")},end:function e(){throw new Error("This TimeRanges object is empty")}}}else{t={length:e.length,start:Lt.bind(null,"start",0,e),end:Lt.bind(null,"end",1,e)}}if(window.Symbol&&window.Symbol.iterator){t[window.Symbol.iterator]=function(){return(e||[]).values()}}return t}function Dt(e,t){if(Array.isArray(e)){return Ot(e)}else if(e===undefined||t===undefined){return Ot()}return Ot([[e,t]])}function Rt(e,t){var i=0;var n;var r;if(!t){return 0}if(!e||!e.length){e=Dt(0,0)}for(var a=0;a<e.length;a++){n=e.start(a);r=e.end(a);if(r>t){r=t}i+=r-n}return i/t}function Nt(e){if(e instanceof Nt){return e}if(typeof e==="number"){this.code=e}else if(typeof e==="string"){this.message=e}else if(k(e)){if(typeof e.code==="number"){this.code=e.code}w(this,e)}if(!this.message){this.message=Nt.defaultMessages[this.code]||""}}Nt.prototype.code=0;Nt.prototype.message="";Nt.prototype.status=null;Nt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Nt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Mt=0;Mt<Nt.errorTypes.length;Mt++){Nt[Nt.errorTypes[Mt]]=Mt;Nt.prototype[Nt.errorTypes[Mt]]=Mt}var Ut=Bt;function Bt(e,t){var i;var n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]}function Ft(e){return e!==undefined&&e!==null&&typeof e.then==="function"}function Vt(e){if(Ft(e)){e.then(null,function(e){})}}var qt=function e(t){var i=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,n){if(t[i]){e[i]=t[i]}return e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})});return i};var Ht=function e(t){var i=t.$$("track");var n=Array.prototype.map.call(i,function(e){return e.track});var r=Array.prototype.map.call(i,function(e){var t=qt(e.track);if(e.src){t.src=e.src}return t});return r.concat(Array.prototype.filter.call(t.textTracks(),function(e){return n.indexOf(e)===-1}).map(qt))};var Gt=function e(t,i){t.forEach(function(e){var t=i.addRemoteTextTrack(e).track;if(!e.src&&e.cues){e.cues.forEach(function(e){return t.addCue(e)})}});return i.textTracks()};var zt={textTracksToJson:Ht,jsonToTextTracks:Gt,trackToJson_:qt};var Wt="vjs-modal-dialog";var Yt=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.handleKeyDown_=function(e){return n.handleKeyDown(e)};n.close_=function(e){return n.close(e)};n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=false;n.closeable(!n.options_.uncloseable);n.content(n.options_.content);n.contentEl_=ie("div",{className:Wt+"-content"},{role:"document"});n.descEl_=ie("p",{className:Wt+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")});ne(n.descEl_,n.description());n.el_.appendChild(n.descEl_);n.el_.appendChild(n.contentEl_);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};i.dispose=function t(){this.contentEl_=null;this.descEl_=null;this.previouslyActiveEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return Wt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)};i.label=function e(){return this.localize(this.options_.label||"Modal Window")};i.description=function e(){var t=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return t};i.open=function e(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!t.paused();if(this.options_.pauseOnOpen&&this.wasPlaying_){t.pause()}this.on("keydown",this.handleKeyDown_);this.hadControls_=t.controls();t.controls(false);this.show();this.conditionalFocus_();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}};i.opened=function e(t){if(typeof t==="boolean"){this[t?"open":"close"]()}return this.opened_};i.close=function e(){if(!this.opened_){return}var t=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_&&this.options_.pauseOnOpen){t.play()}this.off("keydown",this.handleKeyDown_);if(this.hadControls_){t.controls(true)}this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.conditionalBlur_();if(this.options_.temporary){this.dispose()}};i.closeable=function e(t){if(typeof t==="boolean"){var e=this.closeable_=!!t;var i=this.getChild("closeButton");if(e&&!i){var n=this.contentEl_;this.contentEl_=this.el_;i=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=n;this.on(i,"close",this.close_)}if(!e&&i){this.off(i,"close",this.close_);this.removeChild(i);i.dispose()}}return this.closeable_};i.fill=function e(){this.fillWith(this.content())};i.fillWith=function e(t){var i=this.contentEl();var n=i.parentNode;var r=i.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;n.removeChild(i);this.empty();Ee(i,t);this.trigger("modalfill");if(r){n.insertBefore(i,r)}else{n.appendChild(i)}var a=this.getChild("closeButton");if(a){n.appendChild(a.el_)}};i.empty=function e(){this.trigger("beforemodalempty");be(this.contentEl());this.trigger("modalempty")};i.content=function e(t){if(typeof t!=="undefined"){this.content_=t}return this.content_};i.conditionalFocus_=function e(){var t=document.activeElement;var i=this.player_.el_;this.previouslyActiveEl_=null;if(i.contains(t)||i===t){this.previouslyActiveEl_=t;this.focus()}};i.conditionalBlur_=function e(){if(this.previouslyActiveEl_){this.previouslyActiveEl_.focus();this.previouslyActiveEl_=null}};i.handleKeyDown=function e(t){t.stopPropagation();if(kt.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault();this.close();return}if(!kt.isEventKey(t,"Tab")){return}var i=this.focusableEls_();var n=this.el_.querySelector(":focus");var r;for(var a=0;a<i.length;a++){if(n===i[a]){r=a;break}}if(document.activeElement===this.el_){r=0}if(t.shiftKey&&r===0){i[i.length-1].focus();t.preventDefault()}else if(!t.shiftKey&&r===i.length-1){i[0].focus();t.preventDefault()}};i.focusableEls_=function e(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(e){return(e instanceof window.HTMLAnchorElement||e instanceof window.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof window.HTMLIFrameElement||e instanceof window.HTMLObjectElement||e instanceof window.HTMLEmbedElement||e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!==-1||e.hasAttribute("contenteditable")})};return t}(It);Yt.prototype.options_={pauseOnOpen:true,temporary:true};It.registerComponent("ModalDialog",Yt);var Kt=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t=[]}i=e.call(this)||this;i.tracks_=[];Object.defineProperty(Ct(i),"length",{get:function e(){return this.tracks_.length}});for(var n=0;n<t.length;n++){i.addTrack(t[n])}return i}var i=t.prototype;i.addTrack=function e(t){var i=this;var n=this.tracks_.length;if(!(""+n in this)){Object.defineProperty(this,n,{get:function e(){return this.tracks_[n]}})}if(this.tracks_.indexOf(t)===-1){this.tracks_.push(t);this.trigger({track:t,type:"addtrack",target:this})}t.labelchange_=function(){i.trigger({track:t,type:"labelchange",target:i})};if(at(t)){t.addEventListener("labelchange",t.labelchange_)}};i.removeTrack=function e(t){var i;for(var n=0,r=this.length;n<r;n++){if(this[n]===t){i=this[n];if(i.off){i.off()}this.tracks_.splice(n,1);break}}if(!i){return}this.trigger({track:i,type:"removetrack",target:this})};i.getTrackById=function e(t){var i=null;for(var n=0,r=this.length;n<r;n++){var a=this[n];if(a.id===t){i=a;break}}return i};return t}(it);Kt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var Xt in Kt.prototype.allowedEvents_){Kt.prototype["on"+Xt]=null}var Qt=function e(t,i){for(var n=0;n<t.length;n++){if(!Object.keys(t[n]).length||i.id===t[n].id){continue}t[n].enabled=false}};var Jt=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var n=t.length-1;n>=0;n--){if(t[n].enabled){Qt(t,t[n]);break}}i=e.call(this,t)||this;i.changing_=false;return i}var i=t.prototype;i.addTrack=function t(i){var n=this;if(i.enabled){Qt(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.enabledChange_=function(){if(n.changing_){return}n.changing_=true;Qt(n,i);n.changing_=false;n.trigger("change")};i.addEventListener("enabledchange",i.enabledChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.enabledChange_){i.removeEventListener("enabledchange",i.enabledChange_);i.enabledChange_=null}};return t}(Kt);var Zt=function e(t,i){for(var n=0;n<t.length;n++){if(!Object.keys(t[n]).length||i.id===t[n].id){continue}t[n].selected=false}};var $t=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var n=t.length-1;n>=0;n--){if(t[n].selected){Zt(t,t[n]);break}}i=e.call(this,t)||this;i.changing_=false;Object.defineProperty(Ct(i),"selectedIndex",{get:function e(){for(var t=0;t<this.length;t++){if(this[t].selected){return t}}return-1},set:function e(){}});return i}var i=t.prototype;i.addTrack=function t(i){var n=this;if(i.selected){Zt(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.selectedChange_=function(){if(n.changing_){return}n.changing_=true;Zt(n,i);n.changing_=false;n.trigger("change")};i.addEventListener("selectedchange",i.selectedChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.selectedChange_){i.removeEventListener("selectedchange",i.selectedChange_);i.selectedChange_=null}};return t}(Kt);var ei=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.addTrack=function t(i){var n=this;e.prototype.addTrack.call(this,i);if(!this.queueChange_){this.queueChange_=function(){return n.queueTrigger("change")}}if(!this.triggerSelectedlanguagechange){this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}}i.addEventListener("modechange",this.queueChange_);var r=["metadata","chapters"];if(r.indexOf(i.kind)===-1){i.addEventListener("modechange",this.triggerSelectedlanguagechange_)}};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener){if(this.queueChange_){i.removeEventListener("modechange",this.queueChange_)}if(this.selectedlanguagechange_){i.removeEventListener("modechange",this.triggerSelectedlanguagechange_)}}};return t}(Kt);var ti=function(){function e(e){if(e===void 0){e=[]}this.trackElements_=[];Object.defineProperty(this,"length",{get:function e(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++){this.addTrackElement_(e[t])}}var t=e.prototype;t.addTrackElement_=function e(t){var i=this.trackElements_.length;if(!(""+i in this)){Object.defineProperty(this,i,{get:function e(){return this.trackElements_[i]}})}if(this.trackElements_.indexOf(t)===-1){this.trackElements_.push(t)}};t.getTrackElementByTrack_=function e(t){var i;for(var n=0,r=this.trackElements_.length;n<r;n++){if(t===this.trackElements_[n].track){i=this.trackElements_[n];break}}return i};t.removeTrackElement_=function e(t){for(var i=0,n=this.trackElements_.length;i<n;i++){if(t===this.trackElements_[i]){if(this.trackElements_[i].track&&typeof this.trackElements_[i].track.off==="function"){this.trackElements_[i].track.off()}if(typeof this.trackElements_[i].off==="function"){this.trackElements_[i].off()}this.trackElements_.splice(i,1);break}}};return e}();var ii=function(){function e(t){e.prototype.setCues_.call(this,t);Object.defineProperty(this,"length",{get:function e(){return this.length_}})}var t=e.prototype;t.setCues_=function e(t){var i=this.length||0;var n=0;var r=t.length;this.cues_=t;this.length_=t.length;var a=function e(t){if(!(""+t in this)){Object.defineProperty(this,""+t,{get:function e(){return this.cues_[t]}})}};if(i<r){n=i;for(;n<r;n++){a.call(this,n)}}};t.getCueById=function e(t){var i=null;for(var n=0,r=this.length;n<r;n++){var a=this[n];if(a.id===t){i=a;break}}return i};return e}();var ni={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var ri={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var ai={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var si={disabled:"disabled",hidden:"hidden",showing:"showing"};var oi=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var n={id:t.id||"vjs_track_"+Me(),kind:t.kind||"",language:t.language||""};var r=t.label||"";var a=function e(t){Object.defineProperty(Ct(i),t,{get:function e(){return n[t]},set:function e(){}})};for(var s in n){a(s)}Object.defineProperty(Ct(i),"label",{get:function e(){return r},set:function e(t){if(t!==r){r=t;this.trigger("labelchange")}}});return i}return t}(it);var li=function e(t){var i=["protocol","hostname","port","pathname","search","hash","host"];var n=document.createElement("a");n.href=t;var r={};for(var a=0;a<i.length;a++){r[i[a]]=n[i[a]]}if(r.protocol==="http:"){r.host=r.host.replace(/:80$/,"")}if(r.protocol==="https:"){r.host=r.host.replace(/:443$/,"")}if(!r.protocol){r.protocol=window.location.protocol}if(!r.host){r.host=window.location.host}return r};var ui=function e(t){if(!t.match(/^https?:\/\//)){var i=document.createElement("a");i.href=t;t=i.href}return t};var di=function e(t){if(typeof t==="string"){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/;var n=i.exec(t);if(n){return n.pop().toLowerCase()}}return""};var ci=function e(t,i){if(i===void 0){i=window.location}var n=li(t);var r=n.protocol===":"?i.protocol:n.protocol;var a=r+n.host!==i.protocol+i.host;return a};var fi=Object.freeze({__proto__:null,parseUrl:li,getAbsoluteURL:ui,getFileExtension:di,isCrossOrigin:ci});var pi;if(typeof window!=="undefined"){pi=window}else if(typeof m!=="undefined"){pi=m}else if(typeof self!=="undefined"){pi=self}else{pi={}}var hi=pi;var vi=mi;var gi=Object.prototype.toString;function mi(e){if(!e){return false}var t=gi.call(e);return t==="[object Function]"||typeof e==="function"&&t!=="[object RegExp]"||typeof window!=="undefined"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}var yi=function e(t,i){if(i===void 0){i=false}return function(e,n,r){if(e){t(e);return}if(n.statusCode>=400&&n.statusCode<=599){var a=r;if(i){if(hi.TextDecoder){var s=_i(n.headers&&n.headers["content-type"]);try{a=new TextDecoder(s).decode(r)}catch(e){}}else{a=String.fromCharCode.apply(null,new Uint8Array(r))}}t({cause:a});return}t(null,r)}};function _i(e){if(e===void 0){e=""}return e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),n=i[0],r=i[1];if(n.trim()==="charset"){return r.trim()}return e},"utf-8")}var bi=yi;Ai.httpHandler=bi;var Si=function e(t){var i={};if(!t){return i}t.trim().split("\n").forEach(function(e){var t=e.indexOf(":");var n=e.slice(0,t).trim().toLowerCase();var r=e.slice(t+1).trim();if(typeof i[n]==="undefined"){i[n]=r}else if(Array.isArray(i[n])){i[n].push(r)}else{i[n]=[i[n],r]}});return i};var Ti=Ai;var Ei=Ai;Ai.XMLHttpRequest=hi.XMLHttpRequest||Pi;Ai.XDomainRequest="withCredentials"in new Ai.XMLHttpRequest?Ai.XMLHttpRequest:hi.XDomainRequest;wi(["get","put","post","patch","head","delete"],function(e){Ai[e==="delete"?"del":e]=function(t,i,n){i=Ii(t,i,n);i.method=e.toUpperCase();return Ci(i)}});function wi(e,t){for(var i=0;i<e.length;i++){t(e[i])}}function ki(e){for(var t in e){if(e.hasOwnProperty(t))return false}return true}function Ii(e,t,i){var n=e;if(vi(t)){i=t;if(typeof e==="string"){n={uri:e}}}else{n=_({},t,{uri:e})}n.callback=i;return n}function Ai(e,t,i){t=Ii(e,t,i);return Ci(t)}function Ci(e){if(typeof e.callback==="undefined"){throw new Error("callback argument missing")}var t=false;var i=function i(n,r,a){if(!t){t=true;e.callback(n,r,a)}};function n(){if(o.readyState===4){setTimeout(s,0)}}function r(){var e=undefined;if(o.response){e=o.response}else{e=o.responseText||ji(o)}if(v){try{e=JSON.parse(e)}catch(e){}}return e}function a(e){clearTimeout(g);if(!(e instanceof Error)){e=new Error(""+(e||"Unknown XMLHttpRequest Error"))}e.statusCode=0;return i(e,m)}function s(){if(u)return;var t;clearTimeout(g);if(e.useXDR&&o.status===undefined){t=200}else{t=o.status===1223?204:o.status}var n=m;var a=null;if(t!==0){n={body:r(),statusCode:t,method:c,headers:{},url:d,rawRequest:o};if(o.getAllResponseHeaders){n.headers=Si(o.getAllResponseHeaders())}}else{a=new Error("Internal XMLHttpRequest Error")}return i(a,n,n.body)}var o=e.xhr||null;if(!o){if(e.cors||e.useXDR){o=new Ai.XDomainRequest}else{o=new Ai.XMLHttpRequest}}var l;var u;var d=o.url=e.uri||e.url;var c=o.method=e.method||"GET";var f=e.body||e.data;var p=o.headers=e.headers||{};var h=!!e.sync;var v=false;var g;var m={body:undefined,headers:{},statusCode:0,method:c,url:d,rawRequest:o};if("json"in e&&e.json!==false){v=true;p["accept"]||p["Accept"]||(p["Accept"]="application/json");if(c!=="GET"&&c!=="HEAD"){p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json");f=JSON.stringify(e.json===true?f:e.json)}}o.onreadystatechange=n;o.onload=s;o.onerror=a;o.onprogress=function(){};o.onabort=function(){u=true};o.ontimeout=a;o.open(c,d,!h,e.username,e.password);if(!h){o.withCredentials=!!e.withCredentials}if(!h&&e.timeout>0){g=setTimeout(function(){if(u)return;u=true;o.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT";a(e)},e.timeout)}if(o.setRequestHeader){for(l in p){if(p.hasOwnProperty(l)){o.setRequestHeader(l,p[l])}}}else if(e.headers&&!ki(e.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in e){o.responseType=e.responseType}if("beforeSend"in e&&typeof e.beforeSend==="function"){e.beforeSend(o)}o.send(f||null);return o}function ji(e){try{if(e.responseType==="document"){return e.responseXML}var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t){return e.responseXML}}catch(e){}return null}function Pi(){}Ti["default"]=Ei;var xi=function e(t,i){var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());var r=[];n.oncue=function(e){i.addCue(e)};n.onparsingerror=function(e){r.push(e)};n.onflush=function(){i.trigger({type:"loadeddata",target:i})};n.parse(t);if(r.length>0){if(window.console&&window.console.groupCollapsed){window.console.groupCollapsed("Text Track parsing errors for "+i.src)}r.forEach(function(e){return v.error(e)});if(window.console&&window.console.groupEnd){window.console.groupEnd()}}n.flush()};var Li=function e(t,i){var n={uri:t};var r=ci(t);if(r){n.cors=r}var a=i.tech_.crossOrigin()==="use-credentials";if(a){n.withCredentials=a}Ti(n,$e(this,function(e,t,n){if(e){return v.error(e,t)}i.loaded_=true;if(typeof window.WebVTT!=="function"){if(i.tech_){i.tech_.any(["vttjsloaded","vttjserror"],function(e){if(e.type==="vttjserror"){v.error("vttjs failed to load, stopping trying to process "+i.src);return}return xi(n,i)})}}else{xi(n,i)}}))};var Oi=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t={}}if(!t.tech){throw new Error("A tech was not provided.")}var n=bt(t,{kind:ai[t.kind]||"subtitles",language:t.language||t.srclang||""});var r=si[n.mode]||"disabled";var a=n["default"];if(n.kind==="metadata"||n.kind==="chapters"){r="hidden"}i=e.call(this,n)||this;i.tech_=n.tech;i.cues_=[];i.activeCues_=[];i.preload_=i.tech_.preloadTextTracks!==false;var s=new ii(i.cues_);var o=new ii(i.activeCues_);var l=false;i.timeupdateHandler=$e(Ct(i),function(){if(this.tech_.isDisposed()){return}if(!this.tech_.isReady_){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler);return}this.activeCues=this.activeCues;if(l){this.trigger("cuechange");l=false}this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)});var u=function e(){i.stopTracking()};i.tech_.one("dispose",u);if(r!=="disabled"){i.startTracking()}Object.defineProperties(Ct(i),{default:{get:function e(){return a},set:function e(){}},mode:{get:function e(){return r},set:function e(t){if(!si[t]){return}if(r===t){return}r=t;if(!this.preload_&&r!=="disabled"&&this.cues.length===0){Li(this.src,this)}this.stopTracking();if(r!=="disabled"){this.startTracking()}this.trigger("modechange")}},cues:{get:function e(){if(!this.loaded_){return null}return s},set:function e(){}},activeCues:{get:function e(){if(!this.loaded_){return null}if(this.cues.length===0){return o}var t=this.tech_.currentTime();var i=[];for(var n=0,r=this.cues.length;n<r;n++){var a=this.cues[n];if(a.startTime<=t&&a.endTime>=t){i.push(a)}else if(a.startTime===a.endTime&&a.startTime<=t&&a.startTime+.5>=t){i.push(a)}}l=false;if(i.length!==this.activeCues_.length){l=true}else{for(var s=0;s<i.length;s++){if(this.activeCues_.indexOf(i[s])===-1){l=true}}}this.activeCues_=i;o.setCues_(this.activeCues_);return o},set:function e(){}}});if(n.src){i.src=n.src;if(!i.preload_){i.loaded_=true}if(i.preload_||n.kind!=="subtitles"&&n.kind!=="captions"){Li(i.src,Ct(i))}}else{i.loaded_=true}return i}var i=t.prototype;i.startTracking=function e(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)};i.stopTracking=function e(){if(this.rvf_){this.tech_.cancelVideoFrameCallback(this.rvf_);this.rvf_=undefined}};i.addCue=function e(t){var i=t;if(window.vttjs&&!(t instanceof window.vttjs.VTTCue)){i=new window.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(var n in t){if(!(n in i)){i[n]=t[n]}}i.id=t.id;i.originalCue_=t}var r=this.tech_.textTracks();for(var a=0;a<r.length;a++){if(r[a]!==this){r[a].removeCue(i)}}this.cues_.push(i);this.cues.setCues_(this.cues_)};i.removeCue=function e(t){var i=this.cues_.length;while(i--){var n=this.cues_[i];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(i,1);this.cues.setCues_(this.cues_);break}}};return t}(oi);Oi.prototype.allowedEvents_={cuechange:"cuechange"};var Di=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t={}}var n=bt(t,{kind:ri[t.kind]||""});i=e.call(this,n)||this;var r=false;Object.defineProperty(Ct(i),"enabled",{get:function e(){return r},set:function e(t){if(typeof t!=="boolean"||t===r){return}r=t;this.trigger("enabledchange")}});if(n.enabled){i.enabled=n.enabled}i.loaded_=true;return i}return t}(oi);var Ri=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t={}}var n=bt(t,{kind:ni[t.kind]||""});i=e.call(this,n)||this;var r=false;Object.defineProperty(Ct(i),"selected",{get:function e(){return r},set:function e(t){if(typeof t!=="boolean"||t===r){return}r=t;this.trigger("selectedchange")}});if(n.selected){i.selected=n.selected}return i}return t}(oi);var Ni=0;var Mi=1;var Ui=2;var Bi=3;var Fi=function(e){Pt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var n;var r=new Oi(t);i.kind=r.kind;i.src=r.src;i.srclang=r.language;i.label=r.label;i["default"]=r["default"];Object.defineProperties(Ct(i),{readyState:{get:function e(){return n}},track:{get:function e(){return r}}});n=Ni;r.addEventListener("loadeddata",function(){n=Ui;i.trigger({type:"load",target:Ct(i)})});return i}return t}(it);Fi.prototype.allowedEvents_={load:"load"};Fi.NONE=Ni;Fi.LOADING=Mi;Fi.LOADED=Ui;Fi.ERROR=Bi;var Vi={audio:{ListClass:Jt,TrackClass:Di,capitalName:"Audio"},video:{ListClass:$t,TrackClass:Ri,capitalName:"Video"},text:{ListClass:ei,TrackClass:Oi,capitalName:"Text"}};Object.keys(Vi).forEach(function(e){Vi[e].getterName=e+"Tracks";Vi[e].privateName=e+"Tracks_"});var qi={remoteText:{ListClass:ei,TrackClass:Oi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:ti,TrackClass:Fi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}};var Hi=_({},Vi,qi);qi.names=Object.keys(qi);Vi.names=Object.keys(Vi);Hi.names=[].concat(qi.names).concat(Vi.names);var Gi={};function zi(e,t,i,n,r){if(r===void 0){r={}}var a=e.textTracks();r.kind=t;if(i){r.label=i}if(n){r.language=n}r.tech=e;var s=new Hi.text.TrackClass(r);a.addTrack(s);return s}var Wi=function(e){Pt(t,e);function t(t,i){var n;if(t===void 0){t={}}if(i===void 0){i=function e(){}}t.reportTouchActivity=false;n=e.call(this,null,t,i)||this;n.onDurationChange_=function(e){return n.onDurationChange(e)};n.trackProgress_=function(e){return n.trackProgress(e)};n.trackCurrentTime_=function(e){return n.trackCurrentTime(e)};n.stopTrackingCurrentTime_=function(e){return n.stopTrackingCurrentTime(e)};n.disposeSourceHandler_=function(e){return n.disposeSourceHandler(e)};n.queuedHanders_=new Set;n.hasStarted_=false;n.on("playing",function(){this.hasStarted_=true});n.on("loadstart",function(){this.hasStarted_=false});Hi.names.forEach(function(e){var i=Hi[e];if(t&&t[i.getterName]){n[i.privateName]=t[i.getterName]}});if(!n.featuresProgressEvents){n.manualProgressOn()}if(!n.featuresTimeupdateEvents){n.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(e){if(t["native"+e+"Tracks"]===false){n["featuresNative"+e+"Tracks"]=false}});if(t.nativeCaptions===false||t.nativeTextTracks===false){n.featuresNativeTextTracks=false}else if(t.nativeCaptions===true||t.nativeTextTracks===true){n.featuresNativeTextTracks=true}if(!n.featuresNativeTextTracks){n.emulateTextTracks()}n.preloadTextTracks=t.preloadTextTracks!==false;n.autoRemoteTextTracks_=new Hi.text.ListClass;n.initTrackListeners();if(!t.nativeControlsForTouch){n.emitTapEvents()}if(n.constructor){n.name_=n.constructor.name||"Unknown Tech"}return n}var i=t.prototype;i.triggerSourceset=function e(t){var i=this;if(!this.isReady_){this.one("ready",function(){return i.setTimeout(function(){return i.triggerSourceset(t)},1)})}this.trigger({src:t,type:"sourceset"})};i.manualProgressOn=function e(){this.on("durationchange",this.onDurationChange_);this.manualProgress=true;this.one("ready",this.trackProgress_)};i.manualProgressOff=function e(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange_)};i.trackProgress=function e(t){this.stopTrackingProgress();this.progressInterval=this.setInterval($e(this,function(){var e=this.bufferedPercent();if(this.bufferedPercent_!==e){this.trigger("progress")}this.bufferedPercent_=e;if(e===1){this.stopTrackingProgress()}}),500)};i.onDurationChange=function e(t){this.duration_=this.duration()};i.buffered=function e(){return Dt(0,0)};i.bufferedPercent=function e(){return Rt(this.buffered(),this.duration_)};i.stopTrackingProgress=function e(){this.clearInterval(this.progressInterval)};i.manualTimeUpdatesOn=function e(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime_);this.on("pause",this.stopTrackingCurrentTime_)};i.manualTimeUpdatesOff=function e(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime_);this.off("pause",this.stopTrackingCurrentTime_)};i.trackCurrentTime=function e(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};i.stopTrackingCurrentTime=function e(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};i.dispose=function t(){this.clearTracks(Vi.names);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}e.prototype.dispose.call(this)};i.clearTracks=function e(t){var i=this;t=[].concat(t);t.forEach(function(e){var t=i[e+"Tracks"]()||[];var n=t.length;while(n--){var r=t[n];if(e==="text"){i.removeRemoteTextTrack(r)}t.removeTrack(r)}})};i.cleanupAutoTextTracks=function e(){var t=this.autoRemoteTextTracks_||[];var i=t.length;while(i--){var n=t[i];this.removeRemoteTextTrack(n)}};i.reset=function e(){};i.crossOrigin=function e(){};i.setCrossOrigin=function e(){};i.error=function e(t){if(t!==undefined){this.error_=new Nt(t);this.trigger("error")}return this.error_};i.played=function e(){if(this.hasStarted_){return Dt(0,0)}return Dt()};i.play=function e(){};i.setScrubbing=function e(){};i.scrubbing=function e(){};i.setCurrentTime=function e(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};i.initTrackListeners=function e(){var t=this;Vi.names.forEach(function(e){var i=Vi[e];var n=function i(){t.trigger(e+"trackchange")};var r=t[i.getterName]();r.addEventListener("removetrack",n);r.addEventListener("addtrack",n);t.on("dispose",function(){r.removeEventListener("removetrack",n);r.removeEventListener("addtrack",n)})})};i.addWebVttScript_=function e(){var t=this;if(window.WebVTT){return}if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&I(Gi)&&Object.keys(Gi).length>0){this.trigger("vttjsloaded");return}var i=document.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js";i.onload=function(){t.trigger("vttjsloaded")};i.onerror=function(){t.trigger("vttjserror")};this.on("dispose",function(){i.onload=null;i.onerror=null});window.WebVTT=true;this.el().parentNode.appendChild(i)}else{this.ready(this.addWebVttScript_)}};i.emulateTextTracks=function e(){var t=this;var i=this.textTracks();var n=this.remoteTextTracks();var r=function e(t){return i.addTrack(t.track)};var a=function e(t){return i.removeTrack(t.track)};n.on("addtrack",r);n.on("removetrack",a);this.addWebVttScript_();var s=function e(){return t.trigger("texttrackchange")};var o=function e(){s();for(var t=0;t<i.length;t++){var n=i[t];n.removeEventListener("cuechange",s);if(n.mode==="showing"){n.addEventListener("cuechange",s)}}};o();i.addEventListener("change",o);i.addEventListener("addtrack",o);i.addEventListener("removetrack",o);this.on("dispose",function(){n.off("addtrack",r);n.off("removetrack",a);i.removeEventListener("change",o);i.removeEventListener("addtrack",o);i.removeEventListener("removetrack",o);for(var e=0;e<i.length;e++){var t=i[e];t.removeEventListener("cuechange",s)}})};i.addTextTrack=function e(t,i,n){if(!t){throw new Error("TextTrack kind is required but was not provided")}return zi(this,t,i,n)};i.createRemoteTextTrack=function e(t){var i=bt(t,{tech:this});return new qi.remoteTextEl.TrackClass(i)};i.addRemoteTextTrack=function e(t,i){var n=this;if(t===void 0){t={}}var r=this.createRemoteTextTrack(t);if(i!==true&&i!==false){v.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js');i=true}this.remoteTextTrackEls().addTrackElement_(r);this.remoteTextTracks().addTrack(r.track);if(i!==true){this.ready(function(){return n.autoRemoteTextTracks_.addTrack(r.track)})}return r};i.removeRemoteTextTrack=function e(t){var i=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(i);this.remoteTextTracks().removeTrack(t);this.autoRemoteTextTracks_.removeTrack(t)};i.getVideoPlaybackQuality=function e(){return{}};i.requestPictureInPicture=function e(){var t=this.options_.Promise||window.Promise;if(t){return t.reject()}};i.disablePictureInPicture=function e(){return true};i.setDisablePictureInPicture=function e(){};i.requestVideoFrameCallback=function e(t){var i=this;var n=Me();if(this.paused()){this.queuedHanders_.add(n);this.one("playing",function(){if(i.queuedHanders_.has(n)){i.queuedHanders_["delete"](n);t()}})}else{this.requestNamedAnimationFrame(n,t)}return n};i.cancelVideoFrameCallback=function e(t){if(this.queuedHanders_.has(t)){this.queuedHanders_["delete"](t)}else{this.cancelNamedAnimationFrame(t)}};i.setPoster=function e(){};i.playsinline=function e(){};i.setPlaysinline=function e(){};i.overrideNativeAudioTracks=function e(){};i.overrideNativeVideoTracks=function e(){};i.canPlayType=function e(){return""};t.canPlayType=function e(){return""};t.canPlaySource=function e(i,n){return t.canPlayType(i.type)};t.isTech=function e(i){return i.prototype instanceof t||i instanceof t||i===t};t.registerTech=function e(i,n){if(!t.techs_){t.techs_={}}if(!t.isTech(n)){throw new Error("Tech "+i+" must be a Tech")}if(!t.canPlayType){throw new Error("Techs must have a static canPlayType method on them")}if(!t.canPlaySource){throw new Error("Techs must have a static canPlaySource method on them")}i=yt(i);t.techs_[i]=n;t.techs_[mt(i)]=n;if(i!=="Tech"){t.defaultTechOrder_.push(i)}return n};t.getTech=function e(i){if(!i){return}if(t.techs_&&t.techs_[i]){return t.techs_[i]}i=yt(i);if(window&&window.videojs&&window.videojs[i]){v.warn("The "+i+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return window.videojs[i]}};return t}(It);Hi.names.forEach(function(e){var t=Hi[e];Wi.prototype[t.getterName]=function(){this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});Wi.prototype.featuresVolumeControl=true;Wi.prototype.featuresMuteControl=true;Wi.prototype.featuresFullscreenResize=false;Wi.prototype.featuresPlaybackRate=false;Wi.prototype.featuresProgressEvents=false;Wi.prototype.featuresSourceset=false;Wi.prototype.featuresTimeupdateEvents=false;Wi.prototype.featuresNativeTextTracks=false;Wi.prototype.featuresVideoFrameCallback=false;Wi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var n=e.sourceHandlers;if(!n){n=e.sourceHandlers=[]}if(i===undefined){i=n.length}n.splice(i,0,t)};e.canPlayType=function(t){var i=e.sourceHandlers||[];var n;for(var r=0;r<i.length;r++){n=i[r].canPlayType(t);if(n){return n}}return""};e.selectSourceHandler=function(t,i){var n=e.sourceHandlers||[];var r;for(var a=0;a<n.length;a++){r=n[a].canHandleSource(t,i);if(r){return n[a]}}return null};e.canPlaySource=function(t,i){var n=e.selectSourceHandler(t,i);if(n){return n.canHandleSource(t,i)}return""};var t=["seekable","seeking","duration"];t.forEach(function(e){var t=this[e];if(typeof t!=="function"){return}this[e]=function(){if(this.sourceHandler_&&this.sourceHandler_[e]){return this.sourceHandler_[e].apply(this.sourceHandler_,arguments)}return t.apply(this,arguments)}},e.prototype);e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.options_);if(!i){if(e.nativeSourceHandler){i=e.nativeSourceHandler}else{v.error("No source handler found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler_);if(i!==e.nativeSourceHandler){this.currentSource_=t}this.sourceHandler_=i.handleSource(t,this,this.options_);this.one("dispose",this.disposeSourceHandler_)};e.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};It.registerComponent("Tech",Wi);Wi.registerTech("Tech",Wi);Wi.defaultTechOrder_=[];var Yi={};var Ki={};var Xi={};function Qi(e,t){Yi[e]=Yi[e]||[];Yi[e].push(t)}function Ji(e,t,i){e.setTimeout(function(){return dn(t,Yi[t.type],i,e)},1)}function Zi(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function $i(e,t,i){return e.reduceRight(sn(i),t[i]())}function en(e,t,i,n){return t[i](e.reduce(sn(i),n))}function tn(e,t,i,n){if(n===void 0){n=null}var r="call"+yt(i);var a=e.reduce(sn(r),n);var s=a===Xi;var o=s?null:t[i](a);on(e,i,o,s);return o}var nn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1};var rn={setCurrentTime:1,setMuted:1,setVolume:1};var an={play:1,pause:1};function sn(e){return function(t,i){if(t===Xi){return Xi}if(i[e]){return i[e](t)}return t}}function on(e,t,i,n){for(var r=e.length-1;r>=0;r--){var a=e[r];if(a[t]){a[t](n,i)}}}function ln(e){Ki[e.id()]=null}function un(e,t){var i=Ki[e.id()];var n=null;if(i===undefined||i===null){n=t(e);Ki[e.id()]=[[t,n]];return n}for(var r=0;r<i.length;r++){var a=i[r],s=a[0],o=a[1];if(s!==t){continue}n=o}if(n===null){n=t(e);i.push([t,n])}return n}function dn(e,t,i,n,r,a){if(e===void 0){e={}}if(t===void 0){t=[]}if(r===void 0){r=[]}if(a===void 0){a=false}var s=t,o=s[0],l=s.slice(1);if(typeof o==="string"){dn(e,Yi[o],i,n,r,a)}else if(o){var u=un(n,o);if(!u.setSource){r.push(u);return dn(e,l,i,n,r,a)}u.setSource(w({},e),function(t,s){if(t){return dn(e,l,i,n,r,a)}r.push(u);dn(s,e.type===s.type?l:Yi[s.type],i,n,r,a)})}else if(l.length){dn(e,l,i,n,r,a)}else if(a){i(e,r)}else{dn(e,Yi["*"],i,n,r,true)}}var cn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var fn=function e(t){if(t===void 0){t=""}var i=di(t);var n=cn[i.toLowerCase()];return n||""};var pn=function e(t,i){if(!i){return""}if(t.cache_.source.src===i&&t.cache_.source.type){return t.cache_.source.type}var n=t.cache_.sources.filter(function(e){return e.src===i});if(n.length){return n[0].type}var r=t.$$("source");for(var a=0;a<r.length;a++){var s=r[a];if(s.type&&s.src&&s.src===i){return s.type}}return fn(i)};var hn=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t);if(Array.isArray(t)){i=i.concat(t)}else if(k(t)){i.push(t)}});t=i}else if(typeof t==="string"&&t.trim()){t=[vn({src:t})]}else if(k(t)&&typeof t.src==="string"&&t.src&&t.src.trim()){t=[vn(t)]}else{t=[]}return t};function vn(e){if(!e.type){var t=fn(e.src);if(t){e.type=t}}return e}var gn=function(e){Pt(t,e);function t(t,i,n){var r;var a=bt({createEl:false},i);r=e.call(this,t,a,n)||this;if(!i.playerOptions.sources||i.playerOptions.sources.length===0){for(var s=0,o=i.playerOptions.techOrder;s<o.length;s++){var l=yt(o[s]);var u=Wi.getTech(l);if(!l){u=It.getComponent(l)}if(u&&u.isSupported()){t.loadTech_(l);break}}}else{t.src(i.playerOptions.sources)}return r}return t}(It);It.registerComponent("MediaLoader",gn);var mn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;if(n.options_.controlText){n.controlText(n.options_.controlText)}n.handleMouseOver_=function(e){return n.handleMouseOver(e)};n.handleMouseOut_=function(e){return n.handleMouseOut(e)};n.handleClick_=function(e){return n.handleClick(e)};n.handleKeyDown_=function(e){return n.handleKeyDown(e)};n.emitTapEvents();n.enable();return n}var i=t.prototype;i.createEl=function e(t,i,n){if(t===void 0){t="div"}if(i===void 0){i={}}if(n===void 0){n={}}i=w({className:this.buildCSSClass(),tabIndex:0},i);if(t==="button"){v.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead.")}n=w({role:"button"},n);this.tabIndex_=i.tabIndex;var r=ie(t,i,n);r.appendChild(ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":true}));this.createControlTextEl(r);return r};i.dispose=function t(){this.controlTextEl_=null;e.prototype.dispose.call(this)};i.createControlTextEl=function e(t){this.controlTextEl_=ie("span",{className:"vjs-control-text"},{"aria-live":"polite"});if(t){t.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,t);return this.controlTextEl_};i.controlText=function e(t,i){if(i===void 0){i=this.el()}if(t===undefined){return this.controlText_||"Need Text"}var n=this.localize(t);this.controlText_=t;ne(this.controlTextEl_,n);if(!this.nonIconControl&&!this.player_.options_.noUITitleAttributes){i.setAttribute("title",n)}};i.buildCSSClass=function t(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)};i.enable=function e(){if(!this.enabled_){this.enabled_=true;this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.on(["tap","click"],this.handleClick_);this.on("keydown",this.handleKeyDown_)}};i.disable=function e(){this.enabled_=false;this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off("mouseover",this.handleMouseOver_);this.off("mouseout",this.handleMouseOut_);this.off(["tap","click"],this.handleClick_);this.off("keydown",this.handleKeyDown_)};i.handleLanguagechange=function e(){this.controlText(this.controlText_)};i.handleClick=function e(t){if(this.options_.clickHandler){this.options_.clickHandler.call(this,arguments)}};i.handleKeyDown=function t(i){if(kt.isEventKey(i,"Space")||kt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(It);It.registerComponent("ClickableComponent",mn);var yn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update();n.update_=function(e){return n.update(e)};t.on("posterchange",n.update_);return n}var i=t.prototype;i.dispose=function t(){this.player().off("posterchange",this.update_);e.prototype.dispose.call(this)};i.createEl=function e(){var t=ie("div",{className:"vjs-poster",tabIndex:-1});return t};i.update=function e(t){var i=this.player().poster();this.setSrc(i);if(i){this.show()}else{this.hide()}};i.setSrc=function e(t){var i="";if(t){i='url("'+t+'")'}this.el_.style.backgroundImage=i};i.handleClick=function e(t){if(!this.player_.controls()){return}var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;if(this.player_.tech(true)&&!((F||M)&&i)){this.player_.tech(true).focus()}if(this.player_.paused()){Vt(this.player_.play())}else{this.player_.pause()}};return t}(mn);It.registerComponent("PosterImage",yn);var _n="#222";var bn="#ccc";var Sn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Tn(e,t){var i;if(e.length===4){i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}else if(e.length===7){i=e.slice(1)}else{throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.")}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function En(e,t,i){try{e.style[t]=i}catch(e){return}}var wn=function(e){Pt(t,e);function t(t,i,n){var r;r=e.call(this,t,i,n)||this;var a=function e(t){return r.updateDisplay(t)};t.on("loadstart",function(e){return r.toggleDisplay(e)});t.on("texttrackchange",a);t.on("loadedmetadata",function(e){return r.preselectTrack(e)});t.ready($e(Ct(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",a);t.on("playerresize",a);window.addEventListener("orientationchange",a);t.on("dispose",function(){return window.removeEventListener("orientationchange",a)});var e=this.options_.playerOptions.tracks||[];for(var i=0;i<e.length;i++){this.player_.addRemoteTextTrack(e[i],true)}this.preselectTrack()}));return r}var i=t.prototype;i.preselectTrack=function e(){var t={captions:1,subtitles:1};var i=this.player_.textTracks();var n=this.player_.cache_.selectedLanguage;var r;var a;var s;for(var o=0;o<i.length;o++){var l=i[o];if(n&&n.enabled&&n.language&&n.language===l.language&&l.kind in t){if(l.kind===n.kind){s=l}else if(!s){s=l}}else if(n&&!n.enabled){s=null;r=null;a=null}else if(l["default"]){if(l.kind==="descriptions"&&!r){r=l}else if(l.kind in t&&!a){a=l}}}if(s){s.mode="showing"}else if(a){a.mode="showing"}else if(r){r.mode="showing"}};i.toggleDisplay=function e(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})};i.clearDisplay=function e(){if(typeof window.WebVTT==="function"){window.WebVTT.processCues(window,[],this.el_)}};i.updateDisplay=function e(){var t=this.player_.textTracks();var i=this.options_.allowMultipleShowingTracks;this.clearDisplay();if(i){var n=[];for(var r=0;r<t.length;++r){var a=t[r];if(a.mode!=="showing"){continue}n.push(a)}this.updateForTrack(n);return}var s=null;var o=null;var l=t.length;while(l--){var u=t[l];if(u.mode==="showing"){if(u.kind==="descriptions"){s=u}else{o=u}}}if(o){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(o)}else if(s){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(s)}};i.updateDisplayState=function e(t){var i=this.player_.textTrackSettings.getValues();var n=t.activeCues;var r=n.length;while(r--){var a=n[r];if(!a){continue}var s=a.displayState;if(i.color){s.firstChild.style.color=i.color}if(i.textOpacity){En(s.firstChild,"color",Tn(i.color||"#fff",i.textOpacity))}if(i.backgroundColor){s.firstChild.style.backgroundColor=i.backgroundColor}if(i.backgroundOpacity){En(s.firstChild,"backgroundColor",Tn(i.backgroundColor||"#000",i.backgroundOpacity))}if(i.windowColor){if(i.windowOpacity){En(s,"backgroundColor",Tn(i.windowColor,i.windowOpacity))}else{s.style.backgroundColor=i.windowColor}}if(i.edgeStyle){if(i.edgeStyle==="dropshadow"){s.firstChild.style.textShadow="2px 2px 3px "+_n+", 2px 2px 4px "+_n+", 2px 2px 5px "+_n}else if(i.edgeStyle==="raised"){s.firstChild.style.textShadow="1px 1px "+_n+", 2px 2px "+_n+", 3px 3px "+_n}else if(i.edgeStyle==="depressed"){s.firstChild.style.textShadow="1px 1px "+bn+", 0 1px "+bn+", -1px -1px "+_n+", 0 -1px "+_n}else if(i.edgeStyle==="uniform"){s.firstChild.style.textShadow="0 0 4px "+_n+", 0 0 4px "+_n+", 0 0 4px "+_n+", 0 0 4px "+_n}}if(i.fontPercent&&i.fontPercent!==1){var o=window.parseFloat(s.style.fontSize);s.style.fontSize=o*i.fontPercent+"px";s.style.height="auto";s.style.top="auto"}if(i.fontFamily&&i.fontFamily!=="default"){if(i.fontFamily==="small-caps"){s.firstChild.style.fontVariant="small-caps"}else{s.firstChild.style.fontFamily=Sn[i.fontFamily]}}}};i.updateForTrack=function e(t){if(!Array.isArray(t)){t=[t]}if(typeof window.WebVTT!=="function"||t.every(function(e){return!e.activeCues})){return}var i=[];for(var n=0;n<t.length;++n){var r=t[n];for(var a=0;a<r.activeCues.length;++a){i.push(r.activeCues[a])}}window.WebVTT.processCues(window,i,this.el_);for(var s=0;s<t.length;++s){var o=t[s];for(var l=0;l<o.activeCues.length;++l){var u=o.activeCues[l].displayState;se(u,"vjs-text-track-cue");se(u,"vjs-text-track-cue-"+(o.language?o.language:s));if(o.language){fe(u,"lang",o.language)}}if(this.player_.textTrackSettings){this.updateDisplayState(o)}}};return t}(It);It.registerComponent("TextTrackDisplay",wn);var kn=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){var i=this.player_.isAudio();var n=this.localize(i?"Audio Player":"Video Player");var r=ie("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])});var a=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});a.appendChild(r);return a};return t}(It);It.registerComponent("LoadingSpinner",kn);var In=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function e(t,i,n){if(i===void 0){i={}}if(n===void 0){n={}}t="button";i=w({className:this.buildCSSClass()},i);n=w({type:"button"},n);var r=ie(t,i,n);r.appendChild(ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":true}));this.createControlTextEl(r);return r};i.addChild=function e(t,i){if(i===void 0){i={}}var n=this.constructor.name;v.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead.");return It.prototype.addChild.call(this,t,i)};i.enable=function t(){e.prototype.enable.call(this);this.el_.removeAttribute("disabled")};i.disable=function t(){e.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};i.handleKeyDown=function t(i){if(kt.isEventKey(i,"Space")||kt.isEventKey(i,"Enter")){i.stopPropagation();return}e.prototype.handleKeyDown.call(this,i)};return t}(mn);It.registerComponent("Button",In);var An=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.mouseused_=false;n.on("mousedown",function(e){return n.handleMouseDown(e)});return n}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-big-play-button"};i.handleClick=function e(t){var i=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;Vt(i);if(this.player_.tech(true)&&!((F||M)&&n)){this.player_.tech(true).focus()}return}var r=this.player_.getChild("controlBar");var a=r&&r.getChild("playToggle");if(!a){this.player_.tech(true).focus();return}var s=function e(){return a.focus()};if(Ft(i)){i.then(s,function(){})}else{this.setTimeout(s,1)}};i.handleKeyDown=function t(i){this.mouseused_=false;e.prototype.handleKeyDown.call(this,i)};i.handleMouseDown=function e(t){this.mouseused_=true};return t}(In);An.prototype.controlText_="Play Video";It.registerComponent("BigPlayButton",An);var Cn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.controlText(i&&i.controlText||n.localize("Close"));return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){this.trigger({type:"close",bubbles:false})};i.handleKeyDown=function t(i){if(kt.isEventKey(i,"Esc")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(In);It.registerComponent("CloseButton",Cn);var jn=function(e){Pt(t,e);function t(t,i){var n;if(i===void 0){i={}}n=e.call(this,t,i)||this;i.replay=i.replay===undefined||i.replay;n.on(t,"play",function(e){return n.handlePlay(e)});n.on(t,"pause",function(e){return n.handlePause(e)});if(i.replay){n.on(t,"ended",function(e){return n.handleEnded(e)})}return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){if(this.player_.paused()){Vt(this.player_.play())}else{this.player_.pause()}};i.handleSeeked=function e(t){this.removeClass("vjs-ended");if(this.player_.paused()){this.handlePause(t)}else{this.handlePlay(t)}};i.handlePlay=function e(t){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};i.handlePause=function e(t){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};i.handleEnded=function e(t){var i=this;this.removeClass("vjs-playing");this.addClass("vjs-ended");this.controlText("Replay");this.one(this.player_,"seeked",function(e){return i.handleSeeked(e)})};return t}(In);jn.prototype.controlText_="Play";It.registerComponent("PlayToggle",jn);var Pn=function e(t,i){t=t<0?0:t;var n=Math.floor(t%60);var r=Math.floor(t/60%60);var a=Math.floor(t/3600);var s=Math.floor(i/60%60);var o=Math.floor(i/3600);if(isNaN(t)||t===Infinity){a=r=n="-"}a=a>0||o>0?a+":":"";r=((a||s>=10)&&r<10?"0"+r:r)+":";n=n<10?"0"+n:n;return a+r+n};var xn=Pn;function Ln(e){xn=e}function On(){xn=Pn}function Dn(e,t){if(t===void 0){t=e}return xn(e,t)}var Rn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on(t,["timeupdate","ended"],function(e){return n.updateContent(e)});n.updateTextNode_();return n}var i=t.prototype;i.createEl=function t(){var i=this.buildCSSClass();var n=e.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control"});var r=ie("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});n.appendChild(r);this.contentEl_=ie("span",{className:i+"-display"},{"aria-live":"off",role:"presentation"});n.appendChild(this.contentEl_);return n};i.dispose=function t(){this.contentEl_=null;this.textNode_=null;e.prototype.dispose.call(this)};i.updateTextNode_=function e(t){var i=this;if(t===void 0){t=0}t=Dn(t);if(this.formattedTime_===t){return}this.formattedTime_=t;this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(!i.contentEl_){return}var e=i.textNode_;if(e&&i.contentEl_.firstChild!==e){e=null;v.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")}i.textNode_=document.createTextNode(i.formattedTime_);if(!i.textNode_){return}if(e){i.contentEl_.replaceChild(i.textNode_,e)}else{i.contentEl_.appendChild(i.textNode_)}})};i.updateContent=function e(t){};return t}(It);Rn.prototype.labelText_="Time";Rn.prototype.controlText_="Time";It.registerComponent("TimeDisplay",Rn);var Nn=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-current-time"};i.updateContent=function e(t){var i;if(this.player_.ended()){i=this.player_.duration()}else{i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}this.updateTextNode_(i)};return t}(Rn);Nn.prototype.labelText_="Current Time";Nn.prototype.controlText_="Current Time";It.registerComponent("CurrentTimeDisplay",Nn);var Mn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;var r=function e(t){return n.updateContent(t)};n.on(t,"durationchange",r);n.on(t,"loadstart",r);n.on(t,"loadedmetadata",r);return n}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-duration"};i.updateContent=function e(t){var i=this.player_.duration();this.updateTextNode_(i)};return t}(Rn);Mn.prototype.labelText_="Duration";Mn.prototype.controlText_="Duration";It.registerComponent("DurationDisplay",Mn);var Un=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":true});var n=e.prototype.createEl.call(this,"div");var r=e.prototype.createEl.call(this,"span",{textContent:"/"});n.appendChild(r);i.appendChild(n);return i};return t}(It);It.registerComponent("TimeDivider",Un);var Bn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on(t,"durationchange",function(e){return n.updateContent(e)});return n}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-remaining-time"};i.createEl=function t(){var i=e.prototype.createEl.call(this);if(this.options_.displayNegative!==false){i.insertBefore(ie("span",{},{"aria-hidden":true},"-"),this.contentEl_)}return i};i.updateContent=function e(t){if(typeof this.player_.duration()!=="number"){return}var i;if(this.player_.ended()){i=0}else if(this.player_.remainingTimeDisplay){i=this.player_.remainingTimeDisplay()}else{i=this.player_.remainingTime()}this.updateTextNode_(i)};return t}(Rn);Bn.prototype.labelText_="Remaining Time";Bn.prototype.controlText_="Remaining Time";It.registerComponent("RemainingTimeDisplay",Bn);var Fn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.updateShowing();n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)});return n}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=ie("div",{className:"vjs-live-display"},{"aria-live":"off"});this.contentEl_.appendChild(ie("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"}));this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE")));i.appendChild(this.contentEl_);return i};i.dispose=function t(){this.contentEl_=null;e.prototype.dispose.call(this)};i.updateShowing=function e(t){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return t}(It);It.registerComponent("LiveDisplay",Fn);var Vn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.updateLiveEdgeStatus();if(n.player_.liveTracker){n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)};n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)}return n}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});this.textEl_=ie("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"});i.appendChild(this.textEl_);return i};i.updateLiveEdgeStatus=function e(){if(!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()){this.setAttribute("aria-disabled",true);this.addClass("vjs-at-live-edge");this.controlText("Seek to live, currently playing live")}else{this.setAttribute("aria-disabled",false);this.removeClass("vjs-at-live-edge");this.controlText("Seek to live, currently behind live")}};i.handleClick=function e(){this.player_.liveTracker.seekToLiveEdge()};i.dispose=function t(){if(this.player_.liveTracker){this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_)}this.textEl_=null;e.prototype.dispose.call(this)};return t}(In);Vn.prototype.controlText_="Seek to live, currently playing live";It.registerComponent("SeekToLive",Vn);var qn=function e(t,i,n){t=Number(t);return Math.min(n,Math.max(i,isNaN(t)?i:t))};var Hn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.handleMouseDown_=function(e){return n.handleMouseDown(e)};n.handleMouseUp_=function(e){return n.handleMouseUp(e)};n.handleKeyDown_=function(e){return n.handleKeyDown(e)};n.handleClick_=function(e){return n.handleClick(e)};n.handleMouseMove_=function(e){return n.handleMouseMove(e)};n.update_=function(e){return n.update(e)};n.bar=n.getChild(n.options_.barName);n.vertical(!!n.options_.vertical);n.enable();return n}var i=t.prototype;i.enabled=function e(){return this.enabled_};i.enable=function e(){if(this.enabled()){return}this.on("mousedown",this.handleMouseDown_);this.on("touchstart",this.handleMouseDown_);this.on("keydown",this.handleKeyDown_);this.on("click",this.handleClick_);this.on(this.player_,"controlsvisible",this.update);if(this.playerEvent){this.on(this.player_,this.playerEvent,this.update)}this.removeClass("disabled");this.setAttribute("tabindex",0);this.enabled_=true};i.disable=function e(){if(!this.enabled()){return}var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_);this.off("touchstart",this.handleMouseDown_);this.off("keydown",this.handleKeyDown_);this.off("click",this.handleClick_);this.off(this.player_,"controlsvisible",this.update_);this.off(t,"mousemove",this.handleMouseMove_);this.off(t,"mouseup",this.handleMouseUp_);this.off(t,"touchmove",this.handleMouseMove_);this.off(t,"touchend",this.handleMouseUp_);this.removeAttribute("tabindex");this.addClass("disabled");if(this.playerEvent){this.off(this.player_,this.playerEvent,this.update)}this.enabled_=false};i.createEl=function t(i,n,r){if(n===void 0){n={}}if(r===void 0){r={}}n.className=n.className+" vjs-slider";n=w({tabIndex:0},n);r=w({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r);return e.prototype.createEl.call(this,i,n,r)};i.handleMouseDown=function e(t){var i=this.bar.el_.ownerDocument;if(t.type==="mousedown"){t.preventDefault()}if(t.type==="touchstart"&&!U){t.preventDefault()}he();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(i,"mousemove",this.handleMouseMove_);this.on(i,"mouseup",this.handleMouseUp_);this.on(i,"touchmove",this.handleMouseMove_);this.on(i,"touchend",this.handleMouseUp_);this.handleMouseMove(t,true)};i.handleMouseMove=function e(t){};i.handleMouseUp=function e(){var t=this.bar.el_.ownerDocument;ve();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(t,"mousemove",this.handleMouseMove_);this.off(t,"mouseup",this.handleMouseUp_);this.off(t,"touchmove",this.handleMouseMove_);this.off(t,"touchend",this.handleMouseUp_);this.update()};i.update=function e(){var t=this;if(!this.el_||!this.bar){return}var i=this.getProgress();if(i===this.progress_){return i}this.progress_=i;this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(i*100).toFixed(2)+"%"});return i};i.getProgress=function e(){return Number(qn(this.getPercent(),0,1).toFixed(4))};i.calculateDistance=function e(t){var i=ye(this.el_,t);if(this.vertical()){return i.y}return i.x};i.handleKeyDown=function t(i){if(kt.isEventKey(i,"Left")||kt.isEventKey(i,"Down")){i.preventDefault();i.stopPropagation();this.stepBack()}else if(kt.isEventKey(i,"Right")||kt.isEventKey(i,"Up")){i.preventDefault();i.stopPropagation();this.stepForward()}else{e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){t.stopPropagation();t.preventDefault()};i.vertical=function e(t){if(t===undefined){return this.vertical_||false}this.vertical_=!!t;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}};return t}(It);It.registerComponent("Slider",Hn);var Gn=function e(t,i){return qn(t/i*100,0,100).toFixed(2)+"%"};var zn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.partEls_=[];n.on(t,"progress",function(e){return n.update(e)});return n}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});var n=ie("span",{className:"vjs-control-text"});var r=ie("span",{textContent:this.localize("Loaded")});var a=document.createTextNode(": ");this.percentageEl_=ie("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"});i.appendChild(n);n.appendChild(r);n.appendChild(a);n.appendChild(this.percentageEl_);return i};i.dispose=function t(){this.partEls_=null;this.percentageEl_=null;e.prototype.dispose.call(this)};i.update=function e(t){var i=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=i.player_.liveTracker;var t=i.player_.buffered();var n=e&&e.isLive()?e.seekableEnd():i.player_.duration();var r=i.player_.bufferedEnd();var a=i.partEls_;var s=Gn(r,n);if(i.percent_!==s){i.el_.style.width=s;ne(i.percentageEl_,s);i.percent_=s}for(var o=0;o<t.length;o++){var l=t.start(o);var u=t.end(o);var d=a[o];if(!d){d=i.el_.appendChild(ie());a[o]=d}if(d.dataset.start===l&&d.dataset.end===u){continue}d.dataset.start=l;d.dataset.end=u;d.style.left=Gn(l,r);d.style.width=Gn(u-l,r)}for(var c=a.length;c>t.length;c--){i.el_.removeChild(a[c-1])}a.length=t.length})};return t}(It);It.registerComponent("LoadProgressBar",zn);var Wn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update=et($e(Ct(n),n.update),Ze);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})};i.update=function e(t,i,n){var r=me(this.el_);var a=ge(this.player_.el());var s=t.width*i;if(!a||!r){return}var o=t.left-a.left+s;var l=t.width-s+(a.right-t.right);var u=r.width/2;if(o<u){u+=u-o}else if(l<u){u=l}if(u<0){u=0}else if(u>r.width){u=r.width}u=Math.round(u);this.el_.style.right="-"+u+"px";this.write(n)};i.write=function e(t){ne(this.el_,t)};i.updateTime=function e(t,i,n,r){var a=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e;var s=a.player_.duration();if(a.player_.liveTracker&&a.player_.liveTracker.isLive()){var o=a.player_.liveTracker.liveWindow();var l=o-i*o;e=(l<1?"":"-")+Dn(l,o)}else{e=Dn(n,s)}a.update(t,i,e);if(r){r()}})};return t}(It);It.registerComponent("TimeTooltip",Wn);var Yn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update=et($e(Ct(n),n.update),Ze);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})};i.update=function e(t,i){var n=this.getChild("timeTooltip");if(!n){return}var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,i,r)};return t}(It);Yn.prototype.options_={children:[]};if(!W&&!O){Yn.prototype.options_.children.push("timeTooltip")}It.registerComponent("PlayProgressBar",Yn);var Kn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update=et($e(Ct(n),n.update),Ze);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};i.update=function e(t,i){var n=this;var r=i*this.player_.duration();this.getChild("timeTooltip").updateTime(t,i,r,function(){n.el_.style.left=t.width*i+"px"})};return t}(It);Kn.prototype.options_={children:["timeTooltip"]};It.registerComponent("MouseTimeDisplay",Kn);var Xn=5;var Qn=12;var Jn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.setEventHandlers_();return n}var i=t.prototype;i.setEventHandlers_=function e(){var t=this;this.update_=$e(this,this.update);this.update=et(this.update_,Ze);this.on(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.on(this.player_.liveTracker,"liveedgechange",this.update)}this.updateInterval=null;this.enableIntervalHandler_=function(e){return t.enableInterval_(e)};this.disableIntervalHandler_=function(e){return t.disableInterval_(e)};this.on(this.player_,["playing"],this.enableIntervalHandler_);this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_);if("hidden"in document&&"visibilityState"in document){this.on(document,"visibilitychange",this.toggleVisibility_)}};i.toggleVisibility_=function e(t){if(document.visibilityState==="hidden"){this.cancelNamedAnimationFrame("SeekBar#update");this.cancelNamedAnimationFrame("Slider#update");this.disableInterval_(t)}else{if(!this.player_.ended()&&!this.player_.paused()){this.enableInterval_()}this.update()}};i.enableInterval_=function e(){if(this.updateInterval){return}this.updateInterval=this.setInterval(this.update,Ze)};i.disableInterval_=function e(t){if(this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"){return}if(!this.updateInterval){return}this.clearInterval(this.updateInterval);this.updateInterval=null};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})};i.update=function t(i){var n=this;if(document.visibilityState==="hidden"){return}var r=e.prototype.update.call(this);this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_();var t=n.player_.liveTracker;var i=n.player_.duration();if(t&&t.isLive()){i=n.player_.liveTracker.liveCurrentTime()}if(n.percent_!==r){n.el_.setAttribute("aria-valuenow",(r*100).toFixed(2));n.percent_=r}if(n.currentTime_!==e||n.duration_!==i){n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Dn(e,i),Dn(i,i)],"{1} of {2}"));n.currentTime_=e;n.duration_=i}if(n.bar){n.bar.update(ge(n.el()),n.getProgress())}});return r};i.userSeek_=function e(t){if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){this.player_.liveTracker.nextSeekedFromUser()}this.player_.currentTime(t)};i.getCurrentTime_=function e(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()};i.getPercent=function e(){var t=this.getCurrentTime_();var i;var n=this.player_.liveTracker;if(n&&n.isLive()){i=(t-n.seekableStart())/n.liveWindow();if(n.atLiveEdge()){i=1}}else{i=t/this.player_.duration()}return i};i.handleMouseDown=function t(i){if(!we(i)){return}i.stopPropagation();this.videoWasPlaying=!this.player_.paused();this.player_.pause();e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t,i){if(i===void 0){i=false}if(!we(t)){return}if(!i&&!this.player_.scrubbing()){this.player_.scrubbing(true)}var n;var r=this.calculateDistance(t);var a=this.player_.liveTracker;if(!a||!a.isLive()){n=r*this.player_.duration();if(n===this.player_.duration()){n=n-.1}}else{if(r>=.99){a.seekToLiveEdge();return}var s=a.seekableStart();var o=a.liveCurrentTime();n=s+r*a.liveWindow();if(n>=o){n=o}if(n<=s){n=s+.1}if(n===Infinity){return}}this.userSeek_(n)};i.enable=function t(){e.prototype.enable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.show()};i.disable=function t(){e.prototype.disable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.hide()};i.handleMouseUp=function t(i){e.prototype.handleMouseUp.call(this,i);if(i){i.stopPropagation()}this.player_.scrubbing(false);this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:true});if(this.videoWasPlaying){Vt(this.player_.play())}else{this.update_()}};i.stepForward=function e(){this.userSeek_(this.player_.currentTime()+Xn)};i.stepBack=function e(){this.userSeek_(this.player_.currentTime()-Xn)};i.handleAction=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};i.handleKeyDown=function t(i){var n=this.player_.liveTracker;if(kt.isEventKey(i,"Space")||kt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.handleAction(i)}else if(kt.isEventKey(i,"Home")){i.preventDefault();i.stopPropagation();this.userSeek_(0)}else if(kt.isEventKey(i,"End")){i.preventDefault();i.stopPropagation();if(n&&n.isLive()){this.userSeek_(n.liveCurrentTime())}else{this.userSeek_(this.player_.duration())}}else if(/^[0-9]$/.test(kt(i))){i.preventDefault();i.stopPropagation();var r=(kt.codes[kt(i)]-kt.codes["0"])*10/100;if(n&&n.isLive()){this.userSeek_(n.seekableStart()+n.liveWindow()*r)}else{this.userSeek_(this.player_.duration()*r)}}else if(kt.isEventKey(i,"PgDn")){i.preventDefault();i.stopPropagation();this.userSeek_(this.player_.currentTime()-Xn*Qn)}else if(kt.isEventKey(i,"PgUp")){i.preventDefault();i.stopPropagation();this.userSeek_(this.player_.currentTime()+Xn*Qn)}else{e.prototype.handleKeyDown.call(this,i)}};i.dispose=function t(){this.disableInterval_();this.off(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.off(this.player_.liveTracker,"liveedgechange",this.update)}this.off(this.player_,["playing"],this.enableIntervalHandler_);this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_);if("hidden"in document&&"visibilityState"in document){this.off(document,"visibilitychange",this.toggleVisibility_)}e.prototype.dispose.call(this)};return t}(Hn);Jn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};if(!W&&!O){Jn.prototype.options_.children.splice(1,0,"mouseTimeDisplay")}It.registerComponent("SeekBar",Jn);var Zn=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.handleMouseMove=et($e(Ct(n),n.handleMouseMove),Ze);n.throttledHandleMouseSeek=et($e(Ct(n),n.handleMouseSeek),Ze);n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)};n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)};n.enable();return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};i.handleMouseMove=function e(t){var i=this.getChild("seekBar");if(!i){return}var n=i.getChild("playProgressBar");var r=i.getChild("mouseTimeDisplay");if(!n&&!r){return}var a=i.el();var s=me(a);var o=ye(a,t).x;o=qn(o,0,1);if(r){r.update(s,o)}if(n){n.update(s,i.getProgress())}};i.handleMouseSeek=function e(t){var i=this.getChild("seekBar");if(i){i.handleMouseMove(t)}};i.enabled=function e(){return this.enabled_};i.disable=function e(){this.children().forEach(function(e){return e.disable&&e.disable()});if(!this.enabled()){return}this.off(["mousedown","touchstart"],this.handleMouseDownHandler_);this.off(this.el_,"mousemove",this.handleMouseMove);this.removeListenersAddedOnMousedownAndTouchstart();this.addClass("disabled");this.enabled_=false;if(this.player_.scrubbing()){var t=this.getChild("seekBar");this.player_.scrubbing(false);if(t.videoWasPlaying){Vt(this.player_.play())}}};i.enable=function e(){this.children().forEach(function(e){return e.enable&&e.enable()});if(this.enabled()){return}this.on(["mousedown","touchstart"],this.handleMouseDownHandler_);this.on(this.el_,"mousemove",this.handleMouseMove);this.removeClass("disabled");this.enabled_=true};i.removeListenersAddedOnMousedownAndTouchstart=function e(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek);this.off(t,"touchmove",this.throttledHandleMouseSeek);this.off(t,"mouseup",this.handleMouseUpHandler_);this.off(t,"touchend",this.handleMouseUpHandler_)};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;var n=this.getChild("seekBar");if(n){n.handleMouseDown(t)}this.on(i,"mousemove",this.throttledHandleMouseSeek);this.on(i,"touchmove",this.throttledHandleMouseSeek);this.on(i,"mouseup",this.handleMouseUpHandler_);this.on(i,"touchend",this.handleMouseUpHandler_)};i.handleMouseUp=function e(t){var i=this.getChild("seekBar");if(i){i.handleMouseUp(t)}this.removeListenersAddedOnMousedownAndTouchstart()};return t}(It);Zn.prototype.options_={children:["seekBar"]};It.registerComponent("ProgressControl",Zn);var $n=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)});n.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)});n.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){var e=t.currentType().substring(0,5)==="audio";if(e||t.audioPosterMode()||t.audioOnlyMode()){if(t.isInPictureInPicture()){t.exitPictureInPicture()}n.hide()}else{n.show()}});n.disable();return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)};i.handlePictureInPictureEnabledChange=function e(){if(document.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===false){this.enable()}else{this.disable()}};i.handlePictureInPictureChange=function e(t){if(this.player_.isInPictureInPicture()){this.controlText("Exit Picture-in-Picture")}else{this.controlText("Picture-in-Picture")}this.handlePictureInPictureEnabledChange()};i.handleClick=function e(t){if(!this.player_.isInPictureInPicture()){this.player_.requestPictureInPicture()}else{this.player_.exitPictureInPicture()}};return t}(In);$n.prototype.controlText_="Picture-in-Picture";It.registerComponent("PictureInPictureToggle",$n);var er=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on(t,"fullscreenchange",function(e){return n.handleFullscreenChange(e)});if(document[t.fsApi_.fullscreenEnabled]===false){n.disable()}return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)};i.handleFullscreenChange=function e(t){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};i.handleClick=function e(t){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return t}(In);er.prototype.controlText_="Fullscreen";It.registerComponent("FullscreenToggle",er);var tr=function e(t,i){if(i.tech_&&!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var ir=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});i.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"}));return i};return t}(It);It.registerComponent("VolumeLevel",ir);var nr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update=et($e(Ct(n),n.update),Ze);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})};i.update=function e(t,i,n,r){if(!n){var a=ge(this.el_);var s=ge(this.player_.el());var o=t.width*i;if(!s||!a){return}var l=t.left-s.left+o;var u=t.width-o+(s.right-t.right);var d=a.width/2;if(l<d){d+=d-l}else if(u<d){d=u}if(d<0){d=0}else if(d>a.width){d=a.width}this.el_.style.right="-"+d+"px"}this.write(r+"%")};i.write=function e(t){ne(this.el_,t)};i.updateVolume=function e(t,i,n,r,a){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(t,i,n,r.toFixed(0));if(a){a()}})};return t}(It);It.registerComponent("VolumeLevelTooltip",nr);var rr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.update=et($e(Ct(n),n.update),Ze);return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};i.update=function e(t,i,n){var r=this;var a=100*i;this.getChild("volumeLevelTooltip").updateVolume(t,i,n,a,function(){if(n){r.el_.style.bottom=t.height*i+"px"}else{r.el_.style.left=t.width*i+"px"}})};return t}(It);rr.prototype.options_={children:["volumeLevelTooltip"]};It.registerComponent("MouseVolumeLevelDisplay",rr);var ar=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on("slideractive",function(e){return n.updateLastVolume_(e)});n.on(t,"volumechange",function(e){return n.updateARIAAttributes(e)});t.ready(function(){return n.updateARIAAttributes()});return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})};i.handleMouseDown=function t(i){if(!we(i)){return}e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t){var i=this.getChild("mouseVolumeLevelDisplay");if(i){var n=this.el();var r=ge(n);var a=this.vertical();var s=ye(n,t);s=a?s.y:s.x;s=qn(s,0,1);i.update(r,s,a)}if(!we(t)){return}this.checkMuted();this.player_.volume(this.calculateDistance(t))};i.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};i.getPercent=function e(){if(this.player_.muted()){return 0}return this.player_.volume()};i.stepForward=function e(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};i.stepBack=function e(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};i.updateARIAAttributes=function e(t){var i=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",i);this.el_.setAttribute("aria-valuetext",i+"%")};i.volumeAsPercentage_=function e(){return Math.round(this.player_.volume()*100)};i.updateLastVolume_=function e(){var t=this;var i=this.player_.volume();this.one("sliderinactive",function(){if(t.player_.volume()===0){t.player_.lastVolume_(i)}})};return t}(Hn);ar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};if(!W&&!O){ar.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay")}ar.prototype.playerEvent="volumechange";It.registerComponent("VolumeBar",ar);var sr=function(e){Pt(t,e);function t(t,i){var n;if(i===void 0){i={}}i.vertical=i.vertical||false;if(typeof i.volumeBar==="undefined"||I(i.volumeBar)){i.volumeBar=i.volumeBar||{};i.volumeBar.vertical=i.vertical}n=e.call(this,t,i)||this;tr(Ct(n),t);n.throttledHandleMouseMove=et($e(Ct(n),n.handleMouseMove),Ze);n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)};n.on("mousedown",function(e){return n.handleMouseDown(e)});n.on("touchstart",function(e){return n.handleMouseDown(e)});n.on("mousemove",function(e){return n.handleMouseMove(e)});n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active");n.addClass("vjs-slider-active");n.trigger("slideractive")});n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active");n.removeClass("vjs-slider-active");n.trigger("sliderinactive")});return n}var i=t.prototype;i.createEl=function t(){var i="vjs-volume-horizontal";if(this.options_.vertical){i="vjs-volume-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+i})};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;this.on(i,"mousemove",this.throttledHandleMouseMove);this.on(i,"touchmove",this.throttledHandleMouseMove);this.on(i,"mouseup",this.handleMouseUpHandler_);this.on(i,"touchend",this.handleMouseUpHandler_)};i.handleMouseUp=function e(t){var i=this.el_.ownerDocument;this.off(i,"mousemove",this.throttledHandleMouseMove);this.off(i,"touchmove",this.throttledHandleMouseMove);this.off(i,"mouseup",this.handleMouseUpHandler_);this.off(i,"touchend",this.handleMouseUpHandler_)};i.handleMouseMove=function e(t){this.volumeBar.handleMouseMove(t)};return t}(It);sr.prototype.options_={children:["volumeBar"]};It.registerComponent("VolumeControl",sr);var or=function e(t,i){if(i.tech_&&!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var lr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;or(Ct(n),t);n.on(t,["loadstart","volumechange"],function(e){return n.update(e)});return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){var i=this.player_.volume();var n=this.player_.lastVolume_();if(i===0){var r=n<.1?.1:n;this.player_.volume(r);this.player_.muted(false)}else{this.player_.muted(this.player_.muted()?false:true)}};i.update=function e(t){this.updateIcon_();this.updateControlText_()};i.updateIcon_=function e(){var t=this.player_.volume();var i=3;if(W&&this.player_.tech_&&this.player_.tech_.el_){this.player_.muted(this.player_.tech_.el_.muted)}if(t===0||this.player_.muted()){i=0}else if(t<.33){i=1}else if(t<.67){i=2}for(var n=0;n<4;n++){oe(this.el_,"vjs-vol-"+n)}se(this.el_,"vjs-vol-"+i)};i.updateControlText_=function e(){var t=this.player_.muted()||this.player_.volume()===0;var i=t?"Unmute":"Mute";if(this.controlText()!==i){this.controlText(i)}};return t}(In);lr.prototype.controlText_="Mute";It.registerComponent("MuteToggle",lr);var ur=function(e){Pt(t,e);function t(t,i){var n;if(i===void 0){i={}}if(typeof i.inline!=="undefined"){i.inline=i.inline}else{i.inline=true}if(typeof i.volumeControl==="undefined"||I(i.volumeControl)){i.volumeControl=i.volumeControl||{};i.volumeControl.vertical=!i.inline}n=e.call(this,t,i)||this;n.handleKeyPressHandler_=function(e){return n.handleKeyPress(e)};n.on(t,["loadstart"],function(e){return n.volumePanelState_(e)});n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)});n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)});n.on("keydown",function(e){return n.handleKeyPress(e)});n.on("mouseover",function(e){return n.handleMouseOver(e)});n.on("mouseout",function(e){return n.handleMouseOut(e)});n.on(n.volumeControl,["slideractive"],n.sliderActive_);n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_);return n}var i=t.prototype;i.sliderActive_=function e(){this.addClass("vjs-slider-active")};i.sliderInactive_=function e(){this.removeClass("vjs-slider-active")};i.volumePanelState_=function e(){if(this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-hidden")}if(this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-mute-toggle-only")}};i.createEl=function t(){var i="vjs-volume-panel-horizontal";if(!this.options_.inline){i="vjs-volume-panel-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+i})};i.dispose=function t(){this.handleMouseOut();e.prototype.dispose.call(this)};i.handleVolumeControlKeyUp=function e(t){if(kt.isEventKey(t,"Esc")){this.muteToggle.focus()}};i.handleMouseOver=function e(t){this.addClass("vjs-hover");We(document,"keyup",this.handleKeyPressHandler_)};i.handleMouseOut=function e(t){this.removeClass("vjs-hover");Ye(document,"keyup",this.handleKeyPressHandler_)};i.handleKeyPress=function e(t){if(kt.isEventKey(t,"Esc")){this.handleMouseOut()}};return t}(It);ur.prototype.options_={children:["muteToggle","volumeControl"]};It.registerComponent("VolumePanel",ur);var dr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;if(i){n.menuButton_=i.menuButton}n.focusedChild_=-1;n.on("keydown",function(e){return n.handleKeyDown(e)});n.boundHandleBlur_=function(e){return n.handleBlur(e)};n.boundHandleTapClick_=function(e){return n.handleTapClick(e)};return n}var i=t.prototype;i.addEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.on(t,"blur",this.boundHandleBlur_);this.on(t,["tap","click"],this.boundHandleTapClick_)};i.removeEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.off(t,"blur",this.boundHandleBlur_);this.off(t,["tap","click"],this.boundHandleTapClick_)};i.removeChild=function t(i){if(typeof i==="string"){i=this.getChild(i)}this.removeEventListenerForItem(i);e.prototype.removeChild.call(this,i)};i.addItem=function e(t){var i=this.addChild(t);if(i){this.addEventListenerForItem(i)}};i.createEl=function t(){var i=this.options_.contentElType||"ul";this.contentEl_=ie(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});n.appendChild(this.contentEl_);We(n,"click",function(e){e.preventDefault();e.stopImmediatePropagation()});return n};i.dispose=function t(){this.contentEl_=null;this.boundHandleBlur_=null;this.boundHandleTapClick_=null;e.prototype.dispose.call(this)};i.handleBlur=function e(t){var i=t.relatedTarget||document.activeElement;if(!this.children().some(function(e){return e.el()===i})){var n=this.menuButton_;if(n&&n.buttonPressed_&&i!==n.el().firstChild){n.unpressButton()}}};i.handleTapClick=function e(t){if(this.menuButton_){this.menuButton_.unpressButton();var i=this.children();if(!Array.isArray(i)){return}var n=i.filter(function(e){return e.el()===t.target})[0];if(!n){return}if(n.name()!=="CaptionSettingsMenuItem"){this.menuButton_.focus()}}};i.handleKeyDown=function e(t){if(kt.isEventKey(t,"Left")||kt.isEventKey(t,"Down")){t.preventDefault();t.stopPropagation();this.stepForward()}else if(kt.isEventKey(t,"Right")||kt.isEventKey(t,"Up")){t.preventDefault();t.stopPropagation();this.stepBack()}};i.stepForward=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_+1}this.focus(t)};i.stepBack=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_-1}this.focus(t)};i.focus=function e(t){if(t===void 0){t=0}var i=this.children().slice();var n=i.length&&i[0].hasClass("vjs-menu-title");if(n){i.shift()}if(i.length>0){if(t<0){t=0}else if(t>=i.length){t=i.length-1}this.focusedChild_=t;i[t].el_.focus()}};return t}(It);It.registerComponent("Menu",dr);var cr=function(e){Pt(t,e);function t(t,i){var n;if(i===void 0){i={}}n=e.call(this,t,i)||this;n.menuButton_=new In(t,i);n.menuButton_.controlText(n.controlText_);n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=In.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r;n.menuButton_.removeClass("vjs-control");n.addChild(n.menuButton_);n.update();n.enabled_=true;var a=function e(t){return n.handleClick(t)};n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)};n.on(n.menuButton_,"tap",a);n.on(n.menuButton_,"click",a);n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)});n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover");n.menu.show();We(document,"keyup",n.handleMenuKeyUp_)});n.on("mouseleave",function(e){return n.handleMouseLeave(e)});n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)});return n}var i=t.prototype;i.update=function e(){var t=this.createMenu();if(this.menu){this.menu.dispose();this.removeChild(this.menu)}this.menu=t;this.addChild(t);this.buttonPressed_=false;this.menuButton_.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length<=this.hideThreshold_){this.hide();this.menu.contentEl_.removeAttribute("role")}else{this.show();this.menu.contentEl_.setAttribute("role","menu")}};i.createMenu=function e(){var t=new dr(this.player_,{menuButton:this});this.hideThreshold_=0;if(this.options_.title){var i=ie("li",{className:"vjs-menu-title",textContent:yt(this.options_.title),tabIndex:-1});var n=new It(this.player_,{el:i});t.addItem(n)}this.items=this.createItems();if(this.items){for(var r=0;r<this.items.length;r++){t.addItem(this.items[r])}}return t};i.createItems=function e(){};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})};i.buildWrapperCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}var n=In.prototype.buildCSSClass();return"vjs-menu-button "+i+" "+n+" "+e.prototype.buildCSSClass.call(this)};i.buildCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}return"vjs-menu-button "+i+" "+e.prototype.buildCSSClass.call(this)};i.controlText=function e(t,i){if(i===void 0){i=this.menuButton_.el()}return this.menuButton_.controlText(t,i)};i.dispose=function t(){this.handleMouseLeave();e.prototype.dispose.call(this)};i.handleClick=function e(t){if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};i.handleMouseLeave=function e(t){this.removeClass("vjs-hover");Ye(document,"keyup",this.handleMenuKeyUp_)};i.focus=function e(){this.menuButton_.focus()};i.blur=function e(){this.menuButton_.blur()};i.handleKeyDown=function e(t){if(kt.isEventKey(t,"Esc")||kt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!kt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}else if(kt.isEventKey(t,"Up")||kt.isEventKey(t,"Down")){if(!this.buttonPressed_){t.preventDefault();this.pressButton()}}};i.handleMenuKeyUp=function e(t){if(kt.isEventKey(t,"Esc")||kt.isEventKey(t,"Tab")){this.removeClass("vjs-hover")}};i.handleSubmenuKeyPress=function e(t){this.handleSubmenuKeyDown(t)};i.handleSubmenuKeyDown=function e(t){if(kt.isEventKey(t,"Esc")||kt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!kt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}};i.pressButton=function e(){if(this.enabled_){this.buttonPressed_=true;this.menu.show();this.menu.lockShowing();this.menuButton_.el_.setAttribute("aria-expanded","true");if(W&&ee()){return}this.menu.focus()}};i.unpressButton=function e(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.menu.hide();this.menuButton_.el_.setAttribute("aria-expanded","false")}};i.disable=function e(){this.unpressButton();this.enabled_=false;this.addClass("vjs-disabled");this.menuButton_.disable()};i.enable=function e(){this.enabled_=true;this.removeClass("vjs-disabled");this.menuButton_.enable()};return t}(It);It.registerComponent("MenuButton",cr);var fr=function(e){Pt(t,e);function t(t,i){var n;var r=i.tracks;n=e.call(this,t,i)||this;if(n.items.length<=1){n.hide()}if(!r){return Ct(n)}var a=$e(Ct(n),n.update);r.addEventListener("removetrack",a);r.addEventListener("addtrack",a);r.addEventListener("labelchange",a);n.player_.on("ready",a);n.player_.on("dispose",function(){r.removeEventListener("removetrack",a);r.removeEventListener("addtrack",a);r.removeEventListener("labelchange",a)});return n}return t}(cr);It.registerComponent("TrackButton",fr);var pr=["Tab","Esc","Up","Down","Right","Left"];var hr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.selectable=i.selectable;n.isSelected_=i.selected||false;n.multiSelectable=i.multiSelectable;n.selected(n.isSelected_);if(n.selectable){if(n.multiSelectable){n.el_.setAttribute("role","menuitemcheckbox")}else{n.el_.setAttribute("role","menuitemradio")}}else{n.el_.setAttribute("role","menuitem")}return n}var i=t.prototype;i.createEl=function t(i,n,r){this.nonIconControl=true;var a=e.prototype.createEl.call(this,"li",w({className:"vjs-menu-item",tabIndex:-1},n),r);a.replaceChild(ie("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),a.querySelector(".vjs-icon-placeholder"));return a};i.handleKeyDown=function t(i){if(!pr.some(function(e){return kt.isEventKey(i,e)})){e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){this.selected(true)};i.selected=function e(t){if(this.selectable){if(t){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected");this.isSelected_=true}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText("");this.isSelected_=false}}};return t}(mn);It.registerComponent("MenuItem",hr);var vr=function(e){Pt(t,e);function t(t,i){var n;var r=i.track;var a=t.textTracks();i.label=r.label||r.language||"Unknown";i.selected=r.mode==="showing";n=e.call(this,t,i)||this;n.track=r;n.kinds=(i.kinds||[i.kind||n.track.kind]).filter(Boolean);var s=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}n.handleTracksChange.apply(Ct(n),i)};var o=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}n.handleSelectedLanguageChange.apply(Ct(n),i)};t.on(["loadstart","texttrackchange"],s);a.addEventListener("change",s);a.addEventListener("selectedlanguagechange",o);n.on("dispose",function(){t.off(["loadstart","texttrackchange"],s);a.removeEventListener("change",s);a.removeEventListener("selectedlanguagechange",o)});if(a.onchange===undefined){var l;n.on(["tap","click"],function(){if(typeof window.Event!=="object"){try{l=new window.Event("change")}catch(e){}}if(!l){l=document.createEvent("Event");l.initEvent("change",true,true)}a.dispatchEvent(l)})}n.handleTracksChange();return n}var i=t.prototype;i.handleClick=function t(i){var n=this.track;var r=this.player_.textTracks();e.prototype.handleClick.call(this,i);if(!r){return}for(var a=0;a<r.length;a++){var s=r[a];if(this.kinds.indexOf(s.kind)===-1){continue}if(s===n){if(s.mode!=="showing"){s.mode="showing"}}else if(s.mode!=="disabled"){s.mode="disabled"}}};i.handleTracksChange=function e(t){var i=this.track.mode==="showing";if(i!==this.isSelected_){this.selected(i)}};i.handleSelectedLanguageChange=function e(t){if(this.track.mode==="showing"){var i=this.player_.cache_.selectedLanguage;if(i&&i.enabled&&i.language===this.track.language&&i.kind!==this.track.kind){return}this.player_.cache_.selectedLanguage={enabled:true,language:this.track.language,kind:this.track.kind}}};i.dispose=function t(){this.track=null;e.prototype.dispose.call(this)};return t}(hr);It.registerComponent("TextTrackMenuItem",vr);var gr=function(e){Pt(t,e);function t(t,i){i.track={player:t,kind:i.kind,kinds:i.kinds,default:false,mode:"disabled"};if(!i.kinds){i.kinds=[i.kind]}if(i.label){i.track.label=i.label}else{i.track.label=i.kinds.join(" and ")+" off"}i.selectable=true;i.multiSelectable=false;return e.call(this,t,i)||this}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var n=true;for(var r=0,a=i.length;r<a;r++){var s=i[r];if(this.options_.kinds.indexOf(s.kind)>-1&&s.mode==="showing"){n=false;break}}if(n!==this.isSelected_){this.selected(n)}};i.handleSelectedLanguageChange=function e(t){var i=this.player().textTracks();var n=true;for(var r=0,a=i.length;r<a;r++){var s=i[r];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&s.mode==="showing"){n=false;break}}if(n){this.player_.cache_.selectedLanguage={enabled:false}}};return t}(vr);It.registerComponent("OffTextTrackMenuItem",gr);var mr=function(e){Pt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.textTracks();return e.call(this,t,i)||this}var i=t.prototype;i.createItems=function e(t,i){if(t===void 0){t=[]}if(i===void 0){i=vr}var n;if(this.label_){n=this.label_+" off"}t.push(new gr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n}));this.hideThreshold_+=1;var r=this.player_.textTracks();if(!Array.isArray(this.kinds_)){this.kinds_=[this.kind_]}for(var a=0;a<r.length;a++){var s=r[a];if(this.kinds_.indexOf(s.kind)>-1){var o=new i(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:true,multiSelectable:false});o.addClass("vjs-"+s.kind+"-menu-item");t.push(o)}}return t};return t}(fr);It.registerComponent("TextTrackButton",mr);var yr=function(e){Pt(t,e);function t(t,i){var n;var r=i.track;var a=i.cue;var s=t.currentTime();i.selectable=true;i.multiSelectable=false;i.label=a.text;i.selected=a.startTime<=s&&s<a.endTime;n=e.call(this,t,i)||this;n.track=r;n.cue=a;return n}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime)};return t}(hr);It.registerComponent("ChaptersTrackMenuItem",yr);var _r=function(e){Pt(t,e);function t(t,i,n){var r;r=e.call(this,t,i,n)||this;r.selectCurrentItem_=function(){r.items.forEach(function(e){e.selected(r.track_.activeCues[0]===e.cue)})};return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)};i.update=function t(i){if(i&&i.track&&i.track.kind!=="chapters"){return}var n=this.findChaptersTrack();if(n!==this.track_){this.setTrack(n);e.prototype.update.call(this)}else if(!this.items||n&&n.cues&&n.cues.length!==this.items.length){e.prototype.update.call(this)}};i.setTrack=function e(t){if(this.track_===t){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(i){i.removeEventListener("load",this.updateHandler_)}this.track_.removeEventListener("cuechange",this.selectCurrentItem_);this.track_=null}this.track_=t;if(this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(n){n.addEventListener("load",this.updateHandler_)}this.track_.addEventListener("cuechange",this.selectCurrentItem_)}};i.findChaptersTrack=function e(){var t=this.player_.textTracks()||[];for(var i=t.length-1;i>=0;i--){var n=t[i];if(n.kind===this.kind_){return n}}};i.getMenuCaption=function e(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize(yt(this.kind_))};i.createMenu=function t(){this.options_.title=this.getMenuCaption();return e.prototype.createMenu.call(this)};i.createItems=function e(){var t=[];if(!this.track_){return t}var i=this.track_.cues;if(!i){return t}for(var n=0,r=i.length;n<r;n++){var a=i[n];var s=new yr(this.player_,{track:this.track_,cue:a});t.push(s)}return t};return t}(mr);_r.prototype.kind_="chapters";_r.prototype.controlText_="Chapters";It.registerComponent("ChaptersButton",_r);var br=function(e){Pt(t,e);function t(t,i,n){var r;r=e.call(this,t,i,n)||this;var a=t.textTracks();var s=$e(Ct(r),r.handleTracksChange);a.addEventListener("change",s);r.on("dispose",function(){a.removeEventListener("change",s)});return r}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var n=false;for(var r=0,a=i.length;r<a;r++){var s=i[r];if(s.kind!==this.kind_&&s.mode==="showing"){n=true;break}}if(n){this.disable()}else{this.enable()}};i.buildCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(mr);br.prototype.kind_="descriptions";br.prototype.controlText_="Descriptions";It.registerComponent("DescriptionsButton",br);var Sr=function(e){Pt(t,e);function t(t,i,n){return e.call(this,t,i,n)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(mr);Sr.prototype.kind_="subtitles";Sr.prototype.controlText_="Subtitles";It.registerComponent("SubtitlesButton",Sr);var Tr=function(e){Pt(t,e);function t(t,i){var n;i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:false,default:false,mode:"disabled"};i.selectable=false;i.name="CaptionSettingsMenuItem";n=e.call(this,t,i)||this;n.addClass("vjs-texttrack-settings");n.controlText(", opens "+i.kind+" settings dialog");return n}var i=t.prototype;i.handleClick=function e(t){this.player().getChild("textTrackSettings").open()};return t}(vr);It.registerComponent("CaptionSettingsMenuItem",Tr);var Er=function(e){Pt(t,e);function t(t,i,n){return e.call(this,t,i,n)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Tr(this.player_,{kind:this.kind_}));this.hideThreshold_+=1}return e.prototype.createItems.call(this,i)};return t}(mr);Er.prototype.kind_="captions";Er.prototype.controlText_="Captions";It.registerComponent("CaptionsButton",Er);var wr=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(i,n,r){var a=e.prototype.createEl.call(this,i,n,r);var s=a.querySelector(".vjs-menu-item-text");if(this.options_.track.kind==="captions"){s.appendChild(ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":true}));s.appendChild(ie("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))}return a};return t}(vr);It.registerComponent("SubsCapsMenuItem",wr);var kr=function(e){Pt(t,e);function t(t,i){var n;if(i===void 0){i={}}n=e.call(this,t,i)||this;n.label_="subtitles";if(["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1){n.label_="captions"}n.menuButton_.controlText(yt(n.label_));return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Tr(this.player_,{kind:this.label_}));this.hideThreshold_+=1}i=e.prototype.createItems.call(this,i,wr);return i};return t}(mr);kr.prototype.kinds_=["captions","subtitles"];kr.prototype.controlText_="Subtitles";It.registerComponent("SubsCapsButton",kr);var Ir=function(e){Pt(t,e);function t(t,i){var n;var r=i.track;var a=t.audioTracks();i.label=r.label||r.language||"Unknown";i.selected=r.enabled;n=e.call(this,t,i)||this;n.track=r;n.addClass("vjs-"+r.kind+"-menu-item");var s=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}n.handleTracksChange.apply(Ct(n),i)};a.addEventListener("change",s);n.on("dispose",function(){a.removeEventListener("change",s)});return n}var i=t.prototype;i.createEl=function t(i,n,r){var a=e.prototype.createEl.call(this,i,n,r);var s=a.querySelector(".vjs-menu-item-text");if(this.options_.track.kind==="main-desc"){s.appendChild(ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":true}));s.appendChild(ie("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))}return a};i.handleClick=function t(i){e.prototype.handleClick.call(this,i);this.track.enabled=true;if(this.player_.tech_.featuresNativeAudioTracks){var n=this.player_.audioTracks();for(var r=0;r<n.length;r++){var a=n[r];if(a===this.track){continue}a.enabled=a===this.track}}};i.handleTracksChange=function e(t){this.selected(this.track.enabled)};return t}(hr);It.registerComponent("AudioTrackMenuItem",Ir);var Ar=function(e){Pt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.audioTracks();return e.call(this,t,i)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function e(t){if(t===void 0){t=[]}this.hideThreshold_=1;var i=this.player_.audioTracks();for(var n=0;n<i.length;n++){var r=i[n];t.push(new Ir(this.player_,{track:r,selectable:true,multiSelectable:false}))}return t};return t}(fr);Ar.prototype.controlText_="Audio Track";It.registerComponent("AudioTrackButton",Ar);var Cr=function(e){Pt(t,e);function t(t,i){var n;var r=i.rate;var a=parseFloat(r,10);i.label=r;i.selected=a===t.playbackRate();i.selectable=true;i.multiSelectable=false;n=e.call(this,t,i)||this;n.label=r;n.rate=a;n.on(t,"ratechange",function(e){return n.update(e)});return n}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};i.update=function e(t){this.selected(this.player().playbackRate()===this.rate)};return t}(hr);Cr.prototype.contentElType="button";It.registerComponent("PlaybackRateMenuItem",Cr);var jr=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.menuButton_.el_.setAttribute("aria-describedby",n.labelElId_);n.updateVisibility();n.updateLabel();n.on(t,"loadstart",function(e){return n.updateVisibility(e)});n.on(t,"ratechange",function(e){return n.updateLabel(e)});n.on(t,"playbackrateschange",function(e){return n.handlePlaybackRateschange(e)});return n}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this);this.labelElId_="vjs-playback-rate-value-label-"+this.id_;this.labelEl_=ie("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"});i.appendChild(this.labelEl_);return i};i.dispose=function t(){this.labelEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function e(){var t=this.playbackRates();var i=[];for(var n=t.length-1;n>=0;n--){i.push(new Cr(this.player(),{rate:t[n]+"x"}))}return i};i.updateARIAAttributes=function e(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};i.handleClick=function e(t){var i=this.player().playbackRate();var n=this.playbackRates();var r=n.indexOf(i);var a=(r+1)%n.length;this.player().playbackRate(n[a])};i.handlePlaybackRateschange=function e(t){this.update()};i.playbackRates=function e(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]};i.playbackRateSupported=function e(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};i.updateVisibility=function e(t){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};i.updateLabel=function e(t){if(this.playbackRateSupported()){this.labelEl_.textContent=this.player().playbackRate()+"x"}};return t}(cr);jr.prototype.controlText_="Playback Rate";It.registerComponent("PlaybackRateMenuButton",jr);var Pr=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(i,n,r){if(i===void 0){i="div"}if(n===void 0){n={}}if(r===void 0){r={}}if(!n.className){n.className=this.buildCSSClass()}return e.prototype.createEl.call(this,i,n,r)};return t}(It);It.registerComponent("Spacer",Pr);var xr=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})};return t}(Pr);It.registerComponent("CustomControlSpacer",xr);var Lr=function(e){Pt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})};return t}(It);Lr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};if("exitPictureInPicture"in document){Lr.prototype.options_.children.splice(Lr.prototype.options_.children.length-1,0,"pictureInPictureToggle")}It.registerComponent("ControlBar",Lr);var Or=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.on(t,"error",function(e){return n.open(e)});return n}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)};i.content=function e(){var t=this.player().error();return t?this.localize(t.message):""};return t}(Yt);Or.prototype.options_=_({},Yt.prototype.options_,{pauseOnOpen:false,fillAlways:true,temporary:false,uncloseable:true});It.registerComponent("ErrorDisplay",Or);var Dr="vjs-text-track-settings";var Rr=["#000","Black"];var Nr=["#00F","Blue"];var Mr=["#0FF","Cyan"];var Ur=["#0F0","Green"];var Br=["#F0F","Magenta"];var Fr=["#F00","Red"];var Vr=["#FFF","White"];var qr=["#FF0","Yellow"];var Hr=["1","Opaque"];var Gr=["0.5","Semi-Transparent"];var zr=["0","Transparent"];var Wr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Rr,Vr,Fr,Ur,Nr,qr,Br,Mr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Hr,Gr,zr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Vr,Rr,Fr,Ur,Nr,qr,Br,Mr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function e(t){return t==="1.00"?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Hr,Gr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[zr,Gr,Hr]}};Wr.windowColor.options=Wr.backgroundColor.options;function Yr(e,t){if(t){e=t(e)}if(e&&e!=="none"){return e}}function Kr(e,t){var i=e.options[e.options.selectedIndex].value;return Yr(i,t)}function Xr(e,t,i){if(!t){return}for(var n=0;n<e.options.length;n++){if(Yr(e.options[n].value,i)===t){e.selectedIndex=n;break}}}var Qr=function(e){Pt(t,e);function t(t,i){var n;i.temporary=false;n=e.call(this,t,i)||this;n.updateDisplay=n.updateDisplay.bind(Ct(n));n.fill();n.hasBeenOpened_=n.hasBeenFilled_=true;n.endDialog=ie("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")});n.el().appendChild(n.endDialog);n.setDefaults();if(i.persistTextTrackSettings===undefined){n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings}n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings();n.close()});n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults();n.updateDisplay()});T(Wr,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)});if(n.options_.persistTextTrackSettings){n.restoreSettings()}return n}var i=t.prototype;i.dispose=function t(){this.endDialog=null;e.prototype.dispose.call(this)};i.createElSelect_=function e(t,i,n){var r=this;if(i===void 0){i=""}if(n===void 0){n="label"}var a=Wr[t];var s=a.id.replace("%s",this.id_);var o=[i,s].join(" ").trim();return["<"+n+' id="'+s+'" class="'+(n==="label"?"vjs-label":"")+'">',this.localize(a.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(a.options.map(function(e){var t=s+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',r.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")};i.createElFgColor_=function e(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")};i.createElBgColor_=function e(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")};i.createElWinColor_=function e(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")};i.createElColors_=function e(){return ie("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})};i.createElFont_=function e(){return ie("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})};i.createElControls_=function e(){var t=this.localize("restore all settings to the default values");return ie("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})};i.content=function e(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]};i.label=function e(){return this.localize("Caption Settings Dialog")};i.description=function e(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")};i.buildCSSClass=function t(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"};i.getValues=function e(){var t=this;return E(Wr,function(e,i,n){var r=Kr(t.$(i.selector),i.parser);if(r!==undefined){e[n]=r}return e},{})};i.setValues=function e(t){var i=this;T(Wr,function(e,n){Xr(i.$(e.selector),t[n],e.parser)})};i.setDefaults=function e(){var t=this;T(Wr,function(e){var i=e.hasOwnProperty("default")?e["default"]:0;t.$(e.selector).selectedIndex=i})};i.restoreSettings=function e(){var t;try{t=JSON.parse(window.localStorage.getItem(Dr))}catch(e){v.warn(e)}if(t){this.setValues(t)}};i.saveSettings=function e(){if(!this.options_.persistTextTrackSettings){return}var t=this.getValues();try{if(Object.keys(t).length){window.localStorage.setItem(Dr,JSON.stringify(t))}else{window.localStorage.removeItem(Dr)}}catch(e){v.warn(e)}};i.updateDisplay=function e(){var t=this.player_.getChild("textTrackDisplay");if(t){t.updateDisplay()}};i.conditionalBlur_=function e(){this.previouslyActiveEl_=null;var t=this.player_.controlBar;var i=t&&t.subsCapsButton;var n=t&&t.captionsButton;if(i){i.focus()}else if(n){n.focus()}};return t}(Yt);It.registerComponent("TextTrackSettings",Qr);var Jr=function(e){Pt(t,e);function t(t,i){var n;var r=i.ResizeObserver||window.ResizeObserver;if(i.ResizeObserver===null){r=false}var a=bt({createEl:!r,reportTouchActivity:false},i);n=e.call(this,t,a)||this;n.ResizeObserver=i.ResizeObserver||window.ResizeObserver;n.loadListener_=null;n.resizeObserver_=null;n.debouncedHandler_=tt(function(){n.resizeHandler()},100,false,Ct(n));if(r){n.resizeObserver_=new n.ResizeObserver(n.debouncedHandler_);n.resizeObserver_.observe(t.el())}else{n.loadListener_=function(){if(!n.el_||!n.el_.contentWindow){return}var e=n.debouncedHandler_;var t=n.unloadListener_=function(){Ye(this,"resize",e);Ye(this,"unload",t);t=null};We(n.el_.contentWindow,"unload",t);We(n.el_.contentWindow,"resize",e)};n.one("load",n.loadListener_)}return n}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})};i.resizeHandler=function e(){if(!this.player_||!this.player_.trigger){return}this.player_.trigger("playerresize")};i.dispose=function t(){if(this.debouncedHandler_){this.debouncedHandler_.cancel()}if(this.resizeObserver_){if(this.player_.el()){this.resizeObserver_.unobserve(this.player_.el())}this.resizeObserver_.disconnect()}if(this.loadListener_){this.off("load",this.loadListener_)}if(this.el_&&this.el_.contentWindow&&this.unloadListener_){this.unloadListener_.call(this.el_.contentWindow)}this.ResizeObserver=null;this.resizeObserver=null;this.debouncedHandler_=null;this.loadListener_=null;e.prototype.dispose.call(this)};return t}(It);It.registerComponent("ResizeManager",Jr);var Zr={trackingThreshold:20,liveTolerance:15};var $r=function(e){Pt(t,e);function t(t,i){var n;var r=bt(Zr,i,{createEl:false});n=e.call(this,t,r)||this;n.handleVisibilityChange_=function(e){return n.handleVisibilityChange(e)};n.trackLiveHandler_=function(){return n.trackLive_()};n.handlePlay_=function(e){return n.handlePlay(e)};n.handleFirstTimeupdate_=function(e){return n.handleFirstTimeupdate(e)};n.handleSeeked_=function(e){return n.handleSeeked(e)};n.seekToLiveEdge_=function(e){return n.seekToLiveEdge(e)};n.reset_();n.on(n.player_,"durationchange",function(e){return n.handleDurationchange(e)});n.on(n.player_,"canplay",function(){return n.toggleTracking()});if(F&&"hidden"in document&&"visibilityState"in document){n.on(document,"visibilitychange",n.handleVisibilityChange_)}return n}var i=t.prototype;i.handleVisibilityChange=function e(){if(this.player_.duration()!==Infinity){return}if(document.hidden){this.stopTracking()}else{this.startTracking()}};i.trackLive_=function e(){var t=this.player_.seekable();if(!t||!t.length){return}var i=Number(window.performance.now().toFixed(4));var n=this.lastTime_===-1?0:(i-this.lastTime_)/1e3;this.lastTime_=i;this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime();var a=this.player_.currentTime();var s=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-a)>this.options_.liveTolerance;if(!this.timeupdateSeen_||r===Infinity){s=false}if(s!==this.behindLiveEdge_){this.behindLiveEdge_=s;this.trigger("liveedgechange")}};i.handleDurationchange=function e(){this.toggleTracking()};i.toggleTracking=function e(){if(this.player_.duration()===Infinity&&this.liveWindow()>=this.options_.trackingThreshold){if(this.player_.options_.liveui){this.player_.addClass("vjs-liveui")}this.startTracking()}else{this.player_.removeClass("vjs-liveui");this.stopTracking()}};i.startTracking=function e(){if(this.isTracking()){return}if(!this.timeupdateSeen_){this.timeupdateSeen_=this.player_.hasStarted()}this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ze);this.trackLive_();this.on(this.player_,["play","pause"],this.trackLiveHandler_);if(!this.timeupdateSeen_){this.one(this.player_,"play",this.handlePlay_);this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)}else{this.on(this.player_,"seeked",this.handleSeeked_)}};i.handleFirstTimeupdate=function e(){this.timeupdateSeen_=true;this.on(this.player_,"seeked",this.handleSeeked_)};i.handleSeeked=function e(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2;this.nextSeekedFromUser_=false;this.trackLive_()};i.handlePlay=function e(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)};i.reset_=function e(){this.lastTime_=-1;this.pastSeekEnd_=0;this.lastSeekEnd_=-1;this.behindLiveEdge_=true;this.timeupdateSeen_=false;this.seekedBehindLive_=false;this.nextSeekedFromUser_=false;this.clearInterval(this.trackingInterval_);this.trackingInterval_=null;this.off(this.player_,["play","pause"],this.trackLiveHandler_);this.off(this.player_,"seeked",this.handleSeeked_);this.off(this.player_,"play",this.handlePlay_);this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_);this.off(this.player_,"timeupdate",this.seekToLiveEdge_)};i.nextSeekedFromUser=function e(){this.nextSeekedFromUser_=true};i.stopTracking=function e(){if(!this.isTracking()){return}this.reset_();this.trigger("liveedgechange")};i.seekableEnd=function e(){var t=this.player_.seekable();var i=[];var n=t?t.length:0;while(n--){i.push(t.end(n))}return i.length?i.sort()[i.length-1]:Infinity};i.seekableStart=function e(){var t=this.player_.seekable();var i=[];var n=t?t.length:0;while(n--){i.push(t.start(n))}return i.length?i.sort()[0]:0};i.liveWindow=function e(){var t=this.liveCurrentTime();if(t===Infinity){return 0}return t-this.seekableStart()};i.isLive=function e(){return this.isTracking()};i.atLiveEdge=function e(){return!this.behindLiveEdge()};i.liveCurrentTime=function e(){return this.pastSeekEnd()+this.seekableEnd()};i.pastSeekEnd=function e(){var t=this.seekableEnd();if(this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_){this.pastSeekEnd_=0}this.lastSeekEnd_=t;return this.pastSeekEnd_};i.behindLiveEdge=function e(){return this.behindLiveEdge_};i.isTracking=function e(){return typeof this.trackingInterval_==="number"};i.seekToLiveEdge=function e(){this.seekedBehindLive_=false;if(this.atLiveEdge()){return}this.nextSeekedFromUser_=false;this.player_.currentTime(this.liveCurrentTime())};i.dispose=function t(){this.off(document,"visibilitychange",this.handleVisibilityChange_);this.stopTracking();e.prototype.dispose.call(this)};return t}(It);It.registerComponent("LiveTracker",$r);var ea=function e(t){var i=t.el();if(i.hasAttribute("src")){t.triggerSourceset(i.src);return true}var n=t.$$("source");var r=[];var a="";if(!n.length){return false}for(var s=0;s<n.length;s++){var o=n[s].src;if(o&&r.indexOf(o)===-1){r.push(o)}}if(!r.length){return false}if(r.length===1){a=r[0]}t.triggerSourceset(a);return true};var ta=Object.defineProperty({},"innerHTML",{get:function e(){return this.cloneNode(true).innerHTML},set:function e(t){var i=document.createElement(this.nodeName.toLowerCase());i.innerHTML=t;var n=document.createDocumentFragment();while(i.childNodes.length){n.appendChild(i.childNodes[0])}this.innerText="";window.Element.prototype.appendChild.call(this,n);return this.innerHTML}});var ia=function e(t,i){var n={};for(var r=0;r<t.length;r++){n=Object.getOwnPropertyDescriptor(t[r],i);if(n&&n.set&&n.get){break}}n.enumerable=true;n.configurable=true;return n};var na=function e(t){return ia([t.el(),window.HTMLMediaElement.prototype,window.Element.prototype,ta],"innerHTML")};var ra=function e(t){var i=t.el();if(i.resetSourceWatch_){return}var n={};var r=na(t);var a=function e(n){return function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++){r[a]=arguments[a]}var s=n.apply(i,r);ea(t);return s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){if(!i[e]){return}n[e]=i[e];i[e]=a(n[e])});Object.defineProperty(i,"innerHTML",bt(r,{set:a(r.set)}));i.resetSourceWatch_=function(){i.resetSourceWatch_=null;Object.keys(n).forEach(function(e){i[e]=n[e]});Object.defineProperty(i,"innerHTML",r)};t.one("sourceset",i.resetSourceWatch_)};var aa=Object.defineProperty({},"src",{get:function e(){if(this.hasAttribute("src")){return ui(window.Element.prototype.getAttribute.call(this,"src"))}return""},set:function e(t){window.Element.prototype.setAttribute.call(this,"src",t);return t}});var sa=function e(t){return ia([t.el(),window.HTMLMediaElement.prototype,aa],"src")};var oa=function e(t){if(!t.featuresSourceset){return}var i=t.el();if(i.resetSourceset_){return}var n=sa(t);var r=i.setAttribute;var a=i.load;Object.defineProperty(i,"src",bt(n,{set:function e(r){var a=n.set.call(i,r);t.triggerSourceset(i.src);return a}}));i.setAttribute=function(e,n){var a=r.call(i,e,n);if(/src/i.test(e)){t.triggerSourceset(i.src)}return a};i.load=function(){var e=a.call(i);if(!ea(t)){t.triggerSourceset("");ra(t)}return e};if(i.currentSrc){t.triggerSourceset(i.currentSrc)}else if(!ea(t)){ra(t)}i.resetSourceset_=function(){i.resetSourceset_=null;i.load=a;i.setAttribute=r;Object.defineProperty(i,"src",n);if(i.resetSourceWatch_){i.resetSourceWatch_()}}};var la=function e(t,i,n,r){if(r===void 0){r=true}var a=function e(n){return Object.defineProperty(t,i,{value:n,enumerable:true,writable:true})};var s={configurable:true,enumerable:true,get:function e(){var t=n();a(t);return t}};if(r){s.set=a}return Object.defineProperty(t,i,s)};var ua=function(e){Pt(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;var r=t.source;var a=false;if(r&&(n.el_.currentSrc!==r.src||t.tag&&t.tag.initNetworkState_===3)){n.setSource(r)}else{n.handleLateInit_(n.el_)}if(t.enableSourceset){n.setupSourcesetHandling_()}n.isScrubbing_=false;if(n.el_.hasChildNodes()){var s=n.el_.childNodes;var o=s.length;var l=[];while(o--){var u=s[o];var d=u.nodeName.toLowerCase();if(d==="track"){if(!n.featuresNativeTextTracks){l.push(u)}else{n.remoteTextTrackEls().addTrackElement_(u);n.remoteTextTracks().addTrack(u.track);n.textTracks().addTrack(u.track);if(!a&&!n.el_.hasAttribute("crossorigin")&&ci(u.src)){a=true}}}}for(var c=0;c<l.length;c++){n.el_.removeChild(l[c])}}n.proxyNativeTracks_();if(n.featuresNativeTextTracks&&a){v.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n"+"This may prevent text tracks from loading.")}n.restoreMetadataTracksInIOSNativePlayer_();if((H||z||R)&&t.nativeControlsForTouch===true){n.setControls(true)}n.proxyWebkitFullscreen_();n.featuresVideoFrameCallback=n.featuresVideoFrameCallback&&n.el_.tagName==="VIDEO";n.triggerReady();return n}var i=t.prototype;i.dispose=function i(){if(this.el_&&this.el_.resetSourceset_){this.el_.resetSourceset_()}t.disposeMediaElement(this.el_);this.options_=null;e.prototype.dispose.call(this)};i.setupSourcesetHandling_=function e(){oa(this)};i.restoreMetadataTracksInIOSNativePlayer_=function e(){var t=this.textTracks();var i;var n=function e(){i=[];for(var n=0;n<t.length;n++){var r=t[n];if(r.kind==="metadata"){i.push({track:r,storedMode:r.mode})}}};n();t.addEventListener("change",n);this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function e(){for(var n=0;n<i.length;n++){var r=i[n];if(r.track.mode==="disabled"&&r.track.mode!==r.storedMode){r.track.mode=r.storedMode}}t.removeEventListener("change",e)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n);t.removeEventListener("change",r);t.addEventListener("change",r)});this.on("webkitendfullscreen",function(){t.removeEventListener("change",n);t.addEventListener("change",n);t.removeEventListener("change",r)})};i.overrideNative_=function e(t,i){var n=this;if(i!==this["featuresNative"+t+"Tracks"]){return}var r=t.toLowerCase();if(this[r+"TracksListeners_"]){Object.keys(this[r+"TracksListeners_"]).forEach(function(e){var t=n.el()[r+"Tracks"];t.removeEventListener(e,n[r+"TracksListeners_"][e])})}this["featuresNative"+t+"Tracks"]=!i;this[r+"TracksListeners_"]=null;this.proxyNativeTracksForType_(r)};i.overrideNativeAudioTracks=function e(t){this.overrideNative_("Audio",t)};i.overrideNativeVideoTracks=function e(t){this.overrideNative_("Video",t)};i.proxyNativeTracksForType_=function e(t){var i=this;var n=Vi[t];var r=this.el()[n.getterName];var a=this[n.getterName]();if(!this["featuresNative"+n.capitalName+"Tracks"]||!r||!r.addEventListener){return}var s={change:function e(n){var r={type:"change",target:a,currentTarget:a,srcElement:a};a.trigger(r);if(t==="text"){i[qi.remoteText.getterName]().trigger(r)}},addtrack:function e(t){a.addTrack(t.track)},removetrack:function e(t){a.removeTrack(t.track)}};var o=function e(){var t=[];for(var i=0;i<a.length;i++){var n=false;for(var s=0;s<r.length;s++){if(r[s]===a[i]){n=true;break}}if(!n){t.push(a[i])}}while(t.length){a.removeTrack(t.shift())}};this[n.getterName+"Listeners_"]=s;Object.keys(s).forEach(function(e){var t=s[e];r.addEventListener(e,t);i.on("dispose",function(i){return r.removeEventListener(e,t)})});this.on("loadstart",o);this.on("dispose",function(e){return i.off("loadstart",o)})};i.proxyNativeTracks_=function e(){var t=this;Vi.names.forEach(function(e){t.proxyNativeTracksForType_(e)})};i.createEl=function e(){var i=this.options_.tag;if(!i||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(i){var n=i.cloneNode(true);if(i.parentNode){i.parentNode.insertBefore(n,i)}t.disposeMediaElement(i);i=n}else{i=document.createElement("video");var r=this.options_.tag&&de(this.options_.tag);var a=bt({},r);if(!H||this.options_.nativeControlsForTouch!==true){delete a.controls}ue(i,w(a,{id:this.options_.techId,class:"vjs-tech"}))}i.playerId=this.options_.playerId}if(typeof this.options_.preload!=="undefined"){fe(i,"preload",this.options_.preload)}if(this.options_.disablePictureInPicture!==undefined){i.disablePictureInPicture=this.options_.disablePictureInPicture}var s=["loop","muted","playsinline","autoplay"];for(var o=0;o<s.length;o++){var l=s[o];var u=this.options_[l];if(typeof u!=="undefined"){if(u){fe(i,l,l)}else{pe(i,l)}i[l]=u}}return i};i.handleLateInit_=function e(t){if(t.networkState===0||t.networkState===3){return}if(t.readyState===0){var i=false;var n=function e(){i=true};this.on("loadstart",n);var r=function e(){if(!i){this.trigger("loadstart")}};this.on("loadedmetadata",r);this.ready(function(){this.off("loadstart",n);this.off("loadedmetadata",r);if(!i){this.trigger("loadstart")}});return}var a=["loadstart"];a.push("loadedmetadata");if(t.readyState>=2){a.push("loadeddata")}if(t.readyState>=3){a.push("canplay")}if(t.readyState>=4){a.push("canplaythrough")}this.ready(function(){a.forEach(function(e){this.trigger(e)},this)})};i.setScrubbing=function e(t){this.isScrubbing_=t};i.scrubbing=function e(){return this.isScrubbing_};i.setCurrentTime=function e(t){try{if(this.isScrubbing_&&this.el_.fastSeek&&Y){this.el_.fastSeek(t)}else{this.el_.currentTime=t}}catch(e){v(e,"Video is not ready. (Video.js)")}};i.duration=function e(){var t=this;if(this.el_.duration===Infinity&&O&&U&&this.el_.currentTime===0){var i=function e(){if(t.el_.currentTime>0){if(t.el_.duration===Infinity){t.trigger("durationchange")}t.off("timeupdate",e)}};this.on("timeupdate",i);return NaN}return this.el_.duration||NaN};i.width=function e(){return this.el_.offsetWidth};i.height=function e(){return this.el_.offsetHeight};i.proxyWebkitFullscreen_=function e(){var t=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var i=function e(){this.trigger("fullscreenchange",{isFullscreen:false});if(this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()){this.el_.controls=false}};var n=function e(){if("webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"){this.one("webkitendfullscreen",i);this.trigger("fullscreenchange",{isFullscreen:true,nativeIOSFullscreen:true})}};this.on("webkitbeginfullscreen",n);this.on("dispose",function(){t.off("webkitbeginfullscreen",n);t.off("webkitendfullscreen",i)})};i.supportsFullScreen=function e(){if(typeof this.el_.webkitEnterFullScreen==="function"){var t=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t)){return true}}return false};i.enterFullScreen=function e(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA){Vt(this.el_.play());this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0)}else{try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}};i.exitFullScreen=function e(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()};i.requestPictureInPicture=function e(){return this.el_.requestPictureInPicture()};i.requestVideoFrameCallback=function t(i){if(this.featuresVideoFrameCallback){return this.el_.requestVideoFrameCallback(i)}return e.prototype.requestVideoFrameCallback.call(this,i)};i.cancelVideoFrameCallback=function t(i){if(this.featuresVideoFrameCallback){this.el_.cancelVideoFrameCallback(i)}else{e.prototype.cancelVideoFrameCallback.call(this,i)}};i.src=function e(t){if(t===undefined){return this.el_.src}this.setSrc(t)};i.reset=function e(){t.resetMediaElement(this.el_)};i.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};i.setControls=function e(t){this.el_.controls=!!t};i.addTextTrack=function t(i,n,r){if(!this.featuresNativeTextTracks){return e.prototype.addTextTrack.call(this,i,n,r)}return this.el_.addTextTrack(i,n,r)};i.createRemoteTextTrack=function t(i){if(!this.featuresNativeTextTracks){return e.prototype.createRemoteTextTrack.call(this,i)}var n=document.createElement("track");if(i.kind){n.kind=i.kind}if(i.label){n.label=i.label}if(i.language||i.srclang){n.srclang=i.language||i.srclang}if(i["default"]){n["default"]=i["default"]}if(i.id){n.id=i.id}if(i.src){n.src=i.src}return n};i.addRemoteTextTrack=function t(i,n){var r=e.prototype.addRemoteTextTrack.call(this,i,n);if(this.featuresNativeTextTracks){this.el().appendChild(r)}return r};i.removeRemoteTextTrack=function t(i){e.prototype.removeRemoteTextTrack.call(this,i);if(this.featuresNativeTextTracks){var n=this.$$("track");var r=n.length;while(r--){if(i===n[r]||i===n[r].track){this.el().removeChild(n[r])}}}};i.getVideoPlaybackQuality=function e(){if(typeof this.el().getVideoPlaybackQuality==="function"){return this.el().getVideoPlaybackQuality()}var t={};if(typeof this.el().webkitDroppedFrameCount!=="undefined"&&typeof this.el().webkitDecodedFrameCount!=="undefined"){t.droppedVideoFrames=this.el().webkitDroppedFrameCount;t.totalVideoFrames=this.el().webkitDecodedFrameCount}if(window.performance&&typeof window.performance.now==="function"){t.creationTime=window.performance.now()}else if(window.performance&&window.performance.timing&&typeof window.performance.timing.navigationStart==="number"){t.creationTime=window.Date.now()-window.performance.timing.navigationStart}return t};return t}(Wi);la(ua,"TEST_VID",function(){if(!Z()){return}var e=document.createElement("video");var t=document.createElement("track");t.kind="captions";t.srclang="en";t.label="English";e.appendChild(t);return e});ua.isSupported=function(){try{ua.TEST_VID.volume=.5}catch(e){return false}return!!(ua.TEST_VID&&ua.TEST_VID.canPlayType)};ua.canPlayType=function(e){return ua.TEST_VID.canPlayType(e)};ua.canPlaySource=function(e,t){return ua.canPlayType(e.type)};ua.canControlVolume=function(){try{var e=ua.TEST_VID.volume;ua.TEST_VID.volume=e/2+.1;var t=e!==ua.TEST_VID.volume;if(t&&W){window.setTimeout(function(){if(ua&&ua.prototype){ua.prototype.featuresVolumeControl=e!==ua.TEST_VID.volume}});return false}return t}catch(e){return false}};ua.canMuteVolume=function(){try{var e=ua.TEST_VID.muted;ua.TEST_VID.muted=!e;if(ua.TEST_VID.muted){fe(ua.TEST_VID,"muted","muted")}else{pe(ua.TEST_VID,"muted","muted")}return e!==ua.TEST_VID.muted}catch(e){return false}};ua.canControlPlaybackRate=function(){if(O&&U&&B<58){return false}try{var e=ua.TEST_VID.playbackRate;ua.TEST_VID.playbackRate=e/2+.1;return e!==ua.TEST_VID.playbackRate}catch(e){return false}};ua.canOverrideAttributes=function(){try{var e=function e(){};Object.defineProperty(document.createElement("video"),"src",{get:e,set:e});Object.defineProperty(document.createElement("audio"),"src",{get:e,set:e});Object.defineProperty(document.createElement("video"),"innerHTML",{get:e,set:e});Object.defineProperty(document.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return false}return true};ua.supportsNativeTextTracks=function(){return Y||W&&U};ua.supportsNativeVideoTracks=function(){return!!(ua.TEST_VID&&ua.TEST_VID.videoTracks)};ua.supportsNativeAudioTracks=function(){return!!(ua.TEST_VID&&ua.TEST_VID.audioTracks)};ua.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];la(ua.prototype,t,function(){return ua[i]()},true)});ua.prototype.featuresVolumeControl=ua.canControlVolume();ua.prototype.movingMediaElementInDOM=!W;ua.prototype.featuresFullscreenResize=true;ua.prototype.featuresProgressEvents=true;ua.prototype.featuresTimeupdateEvents=true;ua.prototype.featuresVideoFrameCallback=!!(ua.TEST_VID&&ua.TEST_VID.requestVideoFrameCallback);var da;ua.patchCanPlayType=function(){if(D>=4&&!N&&!U){da=ua.TEST_VID&&ua.TEST_VID.constructor.prototype.canPlayType;ua.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;if(e&&t.test(e)){return"maybe"}return da.call(this,e)}}};ua.unpatchCanPlayType=function(){var e=ua.TEST_VID.constructor.prototype.canPlayType;if(da){ua.TEST_VID.constructor.prototype.canPlayType=da}return e};ua.patchCanPlayType();ua.disposeMediaElement=function(e){if(!e){return}if(e.parentNode){e.parentNode.removeChild(e)}while(e.hasChildNodes()){e.removeChild(e.firstChild)}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};ua.resetMediaElement=function(e){if(!e){return}var t=e.querySelectorAll("source");var i=t.length;while(i--){e.removeChild(t[i])}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){ua.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){ua.prototype["set"+yt(e)]=function(t){this.el_[e]=t;if(t){this.el_.setAttribute(e,e)}else{this.el_.removeAttribute(e)}}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){ua.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){ua.prototype["set"+yt(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){ua.prototype[e]=function(){return this.el_[e]()}});Wi.withSourceHandlers(ua);ua.nativeSourceHandler={};ua.nativeSourceHandler.canPlayType=function(e){try{return ua.TEST_VID.canPlayType(e)}catch(e){return""}};ua.nativeSourceHandler.canHandleSource=function(e,t){if(e.type){return ua.nativeSourceHandler.canPlayType(e.type)}else if(e.src){var i=di(e.src);return ua.nativeSourceHandler.canPlayType("video/"+i)}return""};ua.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};ua.nativeSourceHandler.dispose=function(){};ua.registerSourceHandler(ua.nativeSourceHandler);Wi.registerTech("Html5",ua);var ca=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"];var fa={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"};var pa=["tiny","xsmall","small","medium","large","xlarge","huge"];var ha={};pa.forEach(function(e){var t=e.charAt(0)==="x"?"x-"+e.substring(1):e;ha[e]="vjs-layout-"+t});var va={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:Infinity};var ga=function(t){Pt(n,t);function n(i,r,a){var o;i.id=i.id||r.id||"vjs_video_"+Me();r=w(n.getTagSettings(i),r);r.initChildren=false;r.createEl=false;r.evented=false;r.reportTouchActivity=false;if(!r.language){if(typeof i.closest==="function"){var l=i.closest("[lang]");if(l&&l.getAttribute){r.language=l.getAttribute("lang")}}else{var u=i;while(u&&u.nodeType===1){if(de(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}}}o=t.call(this,null,r,a)||this;o.boundDocumentFullscreenChange_=function(e){return o.documentFullscreenChange_(e)};o.boundFullWindowOnEscKey_=function(e){return o.fullWindowOnEscKey(e)};o.boundUpdateStyleEl_=function(e){return o.updateStyleEl_(e)};o.boundApplyInitTime_=function(e){return o.applyInitTime_(e)};o.boundUpdateCurrentBreakpoint_=function(e){return o.updateCurrentBreakpoint_(e)};o.boundHandleTechClick_=function(e){return o.handleTechClick_(e)};o.boundHandleTechDoubleClick_=function(e){return o.handleTechDoubleClick_(e)};o.boundHandleTechTouchStart_=function(e){return o.handleTechTouchStart_(e)};o.boundHandleTechTouchMove_=function(e){return o.handleTechTouchMove_(e)};o.boundHandleTechTouchEnd_=function(e){return o.handleTechTouchEnd_(e)};o.boundHandleTechTap_=function(e){return o.handleTechTap_(e)};o.isFullscreen_=false;o.log=g(o.id_);o.fsApi_=s;o.isPosterFromTech_=false;o.queuedCallbacks_=[];o.isReady_=false;o.hasStarted_=false;o.userActive_=false;o.debugEnabled_=false;o.audioOnlyMode_=false;o.audioPosterMode_=false;o.audioOnlyCache_={playerHeight:null,hiddenChildren:[]};if(!o.options_||!o.options_.techOrder||!o.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}o.tag=i;o.tagAttributes=i&&de(i);o.language(o.options_.language);if(r.languages){var d={};Object.getOwnPropertyNames(r.languages).forEach(function(e){d[e.toLowerCase()]=r.languages[e]});o.languages_=d}else{o.languages_=n.prototype.options_.languages}o.resetCache_();o.poster_=r.poster||"";o.controls_=!!r.controls;i.controls=false;i.removeAttribute("controls");o.changingSrc_=false;o.playCallbacks_=[];o.playTerminatedQueue_=[];if(i.hasAttribute("autoplay")){o.autoplay(true)}else{o.autoplay(o.options_.autoplay)}if(r.plugins){Object.keys(r.plugins).forEach(function(e){if(typeof o[e]!=="function"){throw new Error('plugin "'+e+'" does not exist')}})}o.scrubbing_=false;o.el_=o.createEl();ht(Ct(o),{eventBusKey:"el_"});if(o.fsApi_.requestFullscreen){We(document,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_);o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)}if(o.fluid_){o.on(["playerreset","resize"],o.boundUpdateStyleEl_)}var c=bt(o.options_);if(r.plugins){Object.keys(r.plugins).forEach(function(e){o[e](r.plugins[e])})}if(r.debug){o.debug(true)}o.options_.playerOptions=c;o.middleware_=[];o.playbackRates(r.playbackRates);o.initChildren();o.isAudio(i.nodeName.toLowerCase()==="audio");if(o.controls()){o.addClass("vjs-controls-enabled")}else{o.addClass("vjs-controls-disabled")}o.el_.setAttribute("role","region");if(o.isAudio()){o.el_.setAttribute("aria-label",o.localize("Audio Player"))}else{o.el_.setAttribute("aria-label",o.localize("Video Player"))}if(o.isAudio()){o.addClass("vjs-audio")}if(o.flexNotSupported_()){o.addClass("vjs-no-flex")}if(H){o.addClass("vjs-touch-enabled")}if(!W){o.addClass("vjs-workinghover")}n.players[o.id_]=Ct(o);var f=e.split(".")[0];o.addClass("vjs-v"+f);o.userActive(true);o.reportUserActivity();o.one("play",function(e){return o.listenForUserActivity_(e)});o.on("stageclick",function(e){return o.handleStageClick_(e)});o.on("keydown",function(e){return o.handleKeyDown(e)});o.on("languagechange",function(e){return o.handleLanguagechange(e)});o.breakpoints(o.options_.breakpoints);o.responsive(o.options_.responsive);o.on("ready",function(){o.audioPosterMode(o.options_.audioPosterMode);o.audioOnlyMode(o.options_.audioOnlyMode)});return o}var r=n.prototype;r.dispose=function e(){var i=this;this.trigger("dispose");this.off("dispose");Ye(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_);Ye(document,"keydown",this.boundFullWindowOnEscKey_);if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_);this.styleEl_=null}n.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose();this.isPosterFromTech_=false;this.poster_=""}if(this.playerElIngest_){this.playerElIngest_=null}if(this.tag){this.tag=null}ln(this);Hi.names.forEach(function(e){var t=Hi[e];var n=i[t.getterName]();if(n&&n.off){n.off()}});t.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})};r.createEl=function e(){var i=this.tag;var n;var r=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player");var a=this.tag.tagName.toLowerCase()==="video-js";if(r){n=this.el_=i.parentNode}else if(!a){n=this.el_=t.prototype.createEl.call(this,"div")}var s=de(i);if(a){n=this.el_=i;i=this.tag=document.createElement("video");while(n.children.length){i.appendChild(n.firstChild)}if(!ae(n,"video-js")){se(n,"video-js")}n.appendChild(i);r=this.playerElIngest_=n;Object.keys(n).forEach(function(e){try{i[e]=n[e]}catch(e){}})}i.setAttribute("tabindex","-1");s.tabindex="-1";if(F||U&&q){i.setAttribute("role","application");s.role="application"}i.removeAttribute("width");i.removeAttribute("height");if("width"in s){delete s.width}if("height"in s){delete s.height}Object.getOwnPropertyNames(s).forEach(function(e){if(!(a&&e==="class")){n.setAttribute(e,s[e])}if(a){i.setAttribute(e,s[e])}});i.playerId=i.id;i.id+="_html5_api";i.className="vjs-tech";i.player=n.player=this;this.addClass("vjs-paused");if(window.VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=Oe("vjs-styles-dimensions");var o=ke(".vjs-styles-defaults");var l=ke("head");l.insertBefore(this.styleEl_,o?o.nextSibling:l.firstChild)}this.fill_=false;this.fluid_=false;this.width(this.options_.width);this.height(this.options_.height);this.fill(this.options_.fill);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);var u=i.getElementsByTagName("a");for(var d=0;d<u.length;d++){var c=u.item(d);se(c,"vjs-hidden");c.setAttribute("hidden","hidden")}i.initNetworkState_=i.networkState;if(i.parentNode&&!r){i.parentNode.insertBefore(n,i)}re(i,n);this.children_.unshift(i);this.el_.setAttribute("lang",this.language_);this.el_.setAttribute("translate","no");this.el_=n;return n};r.crossOrigin=function e(t){if(!t){return this.techGet_("crossOrigin")}if(t!=="anonymous"&&t!=="use-credentials"){v.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"');return}this.techCall_("setCrossOrigin",t);return};r.width=function e(t){return this.dimension("width",t)};r.height=function e(t){return this.dimension("height",t)};r.dimension=function e(t,i){var n=t+"_";if(i===undefined){return this[n]||0}if(i===""||i==="auto"){this[n]=undefined;this.updateStyleEl_();return}var r=parseFloat(i);if(isNaN(r)){v.error('Improper value "'+i+'" supplied for for '+t);return}this[n]=r;this.updateStyleEl_()};r.fluid=function e(t){var i=this;if(t===undefined){return!!this.fluid_}this.fluid_=!!t;if(at(this)){this.off(["playerreset","resize"],this.boundUpdateStyleEl_)}if(t){this.addClass("vjs-fluid");this.fill(false);st(this,function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)})}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};r.fill=function e(t){if(t===undefined){return!!this.fill_}this.fill_=!!t;if(t){this.addClass("vjs-fill");this.fluid(false)}else{this.removeClass("vjs-fill")}};r.aspectRatio=function e(t){if(t===undefined){return this.aspectRatio_}if(!/^\d+\:\d+$/.test(t)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=t;this.fluid(true);this.updateStyleEl_()};r.updateStyleEl_=function e(){if(window.VIDEOJS_NO_DYNAMIC_STYLE===true){var t=typeof this.width_==="number"?this.width_:this.options_.width;var i=typeof this.height_==="number"?this.height_:this.options_.height;var n=this.tech_&&this.tech_.el();if(n){if(t>=0){n.width=t}if(i>=0){n.height=i}}return}var r;var a;var s;var o;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){s=this.aspectRatio_}else if(this.videoWidth()>0){s=this.videoWidth()+":"+this.videoHeight()}else{s="16:9"}var l=s.split(":");var u=l[1]/l[0];if(this.width_!==undefined){r=this.width_}else if(this.height_!==undefined){r=this.height_/u}else{r=this.videoWidth()||300}if(this.height_!==undefined){a=this.height_}else{a=r*u}if(/^[^a-zA-Z]/.test(this.id())){o="dimensions-"+this.id()}else{o=this.id()+"-dimensions"}this.addClass(o);De(this.styleEl_,"\n ."+o+" {\n width: "+r+"px;\n height: "+a+"px;\n }\n\n ."+o+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+u*100+"%;\n }\n ")};r.loadTech_=function e(t,i){var n=this;if(this.tech_){this.unloadTech_()}var r=yt(t);var a=t.charAt(0).toLowerCase()+t.slice(1);if(r!=="Html5"&&this.tag){Wi.getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=r;this.isReady_=false;var s=this.autoplay();if(typeof this.autoplay()==="string"||this.autoplay()===true&&this.options_.normalizeAutoplay){s=false}var o={source:i,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||false,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Hi.names.forEach(function(e){var t=Hi[e];o[t.getterName]=n[t.privateName]});w(o,this.options_[r]);w(o,this.options_[a]);w(o,this.options_[t.toLowerCase()]);if(this.tag){o.tag=this.tag}if(i&&i.src===this.cache_.src&&this.cache_.currentTime>0){o.startTime=this.cache_.currentTime}var l=Wi.getTech(t);if(!l){throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'")}this.tech_=new l(o);this.tech_.ready($e(this,this.handleTechReady_),true);zt.jsonToTextTracks(this.textTracksJson_||[],this.tech_);ca.forEach(function(e){n.on(n.tech_,e,function(t){return n["handleTech"+yt(e)+"_"](t)})});Object.keys(fa).forEach(function(e){n.on(n.tech_,e,function(t){if(n.tech_.playbackRate()===0&&n.tech_.seeking()){n.queuedCallbacks_.push({callback:n["handleTech"+fa[e]+"_"].bind(n),event:t});return}n["handleTech"+fa[e]+"_"](t)})});this.on(this.tech_,"loadstart",function(e){return n.handleTechLoadStart_(e)});this.on(this.tech_,"sourceset",function(e){return n.handleTechSourceset_(e)});this.on(this.tech_,"waiting",function(e){return n.handleTechWaiting_(e)});this.on(this.tech_,"ended",function(e){return n.handleTechEnded_(e)});this.on(this.tech_,"seeking",function(e){return n.handleTechSeeking_(e)});this.on(this.tech_,"play",function(e){return n.handleTechPlay_(e)});this.on(this.tech_,"firstplay",function(e){return n.handleTechFirstPlay_(e)});this.on(this.tech_,"pause",function(e){return n.handleTechPause_(e)});this.on(this.tech_,"durationchange",function(e){return n.handleTechDurationChange_(e)});this.on(this.tech_,"fullscreenchange",function(e,t){return n.handleTechFullscreenChange_(e,t)});this.on(this.tech_,"fullscreenerror",function(e,t){return n.handleTechFullscreenError_(e,t)});this.on(this.tech_,"enterpictureinpicture",function(e){return n.handleTechEnterPictureInPicture_(e)});this.on(this.tech_,"leavepictureinpicture",function(e){return n.handleTechLeavePictureInPicture_(e)});this.on(this.tech_,"error",function(e){return n.handleTechError_(e)});this.on(this.tech_,"posterchange",function(e){return n.handleTechPosterChange_(e)});this.on(this.tech_,"textdata",function(e){return n.handleTechTextData_(e)});this.on(this.tech_,"ratechange",function(e){return n.handleTechRateChange_(e)});this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_);this.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(r!=="Html5"||!this.tag)){re(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};r.unloadTech_=function e(){var t=this;Hi.names.forEach(function(e){var i=Hi[e];t[i.privateName]=t[i.getterName]()});this.textTracksJson_=zt.textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false;if(this.isPosterFromTech_){this.poster_="";this.trigger("posterchange")}this.isPosterFromTech_=false};r.tech=function e(t){if(t===undefined){v.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\n"+"See https://github.com/videojs/video.js/issues/2617 for more info.\n")}return this.tech_};r.addTechControlsListeners_=function e(){this.removeTechControlsListeners_();this.on(this.tech_,"click",this.boundHandleTechClick_);this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_);this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_);this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_);this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_);this.on(this.tech_,"tap",this.boundHandleTechTap_)};r.removeTechControlsListeners_=function e(){this.off(this.tech_,"tap",this.boundHandleTechTap_);this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_);this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_);this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_);this.off(this.tech_,"click",this.boundHandleTechClick_);this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)};r.handleTechReady_=function e(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_()};r.handleTechLoadStart_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);this.handleTechDurationChange_();if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}this.manualAutoplay_(this.autoplay()===true&&this.options_.normalizeAutoplay?"play":this.autoplay())};r.manualAutoplay_=function e(t){var i=this;if(!this.tech_||typeof t!=="string"){return}var n=function e(){var t=i.muted();i.muted(true);var n=function e(){i.muted(t)};i.playTerminatedQueue_.push(n);var r=i.play();if(!Ft(r)){return}return r["catch"](function(e){n();throw new Error("Rejection at manualAutoplay. Restoring muted value. "+(e?e:""))})};var r;if(t==="any"&&!this.muted()){r=this.play();if(Ft(r)){r=r["catch"](n)}}else if(t==="muted"&&!this.muted()){r=n()}else{r=this.play()}if(!Ft(r)){return}return r.then(function(){i.trigger({type:"autoplay-success",autoplay:t})})["catch"](function(){i.trigger({type:"autoplay-failure",autoplay:t})})};r.updateSourceCaches_=function e(t){if(t===void 0){t=""}var i=t;var n="";if(typeof i!=="string"){i=t.src;n=t.type}this.cache_.source=this.cache_.source||{};this.cache_.sources=this.cache_.sources||[];if(i&&!n){n=pn(this,i)}this.cache_.source=bt({},t,{src:i,type:n});var r=this.cache_.sources.filter(function(e){return e.src&&e.src===i});var a=[];var s=this.$$("source");var o=[];for(var l=0;l<s.length;l++){var u=de(s[l]);a.push(u);if(u.src&&u.src===i){o.push(u.src)}}if(o.length&&!r.length){this.cache_.sources=a}else if(!r.length){this.cache_.sources=[this.cache_.source]}this.cache_.src=i};r.handleTechSourceset_=function e(t){var i=this;if(!this.changingSrc_){var n=function e(t){return i.updateSourceCaches_(t)};var r=this.currentSource().src;var a=t.src;if(r&&!/^blob:/.test(r)&&/^blob:/.test(a)){if(!this.lastSource_||this.lastSource_.tech!==a&&this.lastSource_.player!==r){n=function e(){}}}n(a);if(!t.src){this.tech_.any(["sourceset","loadstart"],function(e){if(e.type==="sourceset"){return}var t=i.techGet("currentSrc");i.lastSource_.tech=t;i.updateSourceCaches_(t)})}}this.lastSource_={player:this.currentSource().src,tech:t.src};this.trigger({src:t.src,type:"sourceset"})};r.hasStarted=function e(t){if(t===undefined){return this.hasStarted_}if(t===this.hasStarted_){return}this.hasStarted_=t;if(this.hasStarted_){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}};r.handleTechPlay_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};r.handleTechRateChange_=function e(){if(this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0){this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)});this.queuedCallbacks_=[]}this.cache_.lastPlaybackRate=this.tech_.playbackRate();this.trigger("ratechange")};r.handleTechWaiting_=function e(){var t=this;this.addClass("vjs-waiting");this.trigger("waiting");var i=this.currentTime();var n=function e(){if(i!==t.currentTime()){t.removeClass("vjs-waiting");t.off("timeupdate",e)}};this.on("timeupdate",n)};r.handleTechCanPlay_=function e(){this.removeClass("vjs-waiting");this.trigger("canplay")};r.handleTechCanPlayThrough_=function e(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};r.handleTechPlaying_=function e(){this.removeClass("vjs-waiting");this.trigger("playing")};r.handleTechSeeking_=function e(){this.addClass("vjs-seeking");this.trigger("seeking")};r.handleTechSeeked_=function e(){this.removeClass("vjs-seeking");this.removeClass("vjs-ended");this.trigger("seeked")};r.handleTechFirstPlay_=function e(){if(this.options_.starttime){v.warn("Passing the `starttime` option to the player will be deprecated in 6.0");this.currentTime(this.options_.starttime)}this.addClass("vjs-has-started");this.trigger("firstplay")};r.handleTechPause_=function e(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};r.handleTechEnded_=function e(){this.addClass("vjs-ended");this.removeClass("vjs-waiting");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};r.handleTechDurationChange_=function e(){this.duration(this.techGet_("duration"))};r.handleTechClick_=function e(t){if(!this.controls_){return}if(this.options_===undefined||this.options_.userActions===undefined||this.options_.userActions.click===undefined||this.options_.userActions.click!==false){if(this.options_!==undefined&&this.options_.userActions!==undefined&&typeof this.options_.userActions.click==="function"){this.options_.userActions.click.call(this,t)}else if(this.paused()){Vt(this.play())}else{this.pause()}}};r.handleTechDoubleClick_=function e(t){if(!this.controls_){return}var i=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)});if(!i){if(this.options_===undefined||this.options_.userActions===undefined||this.options_.userActions.doubleClick===undefined||this.options_.userActions.doubleClick!==false){if(this.options_!==undefined&&this.options_.userActions!==undefined&&typeof this.options_.userActions.doubleClick==="function"){this.options_.userActions.doubleClick.call(this,t)}else if(this.isFullscreen()){this.exitFullscreen()}else{this.requestFullscreen()}}}};r.handleTechTap_=function e(){this.userActive(!this.userActive())};r.handleTechTouchStart_=function e(){this.userWasActive=this.userActive()};r.handleTechTouchMove_=function e(){if(this.userWasActive){this.reportUserActivity()}};r.handleTechTouchEnd_=function e(t){if(t.cancelable){t.preventDefault()}};r.handleStageClick_=function e(){this.reportUserActivity()};r.toggleFullscreenClass_=function e(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};r.documentFullscreenChange_=function e(t){var i=t.target.player;if(i&&i!==this){return}var n=this.el();var r=document[this.fsApi_.fullscreenElement]===n;if(!r&&n.matches){r=n.matches(":"+this.fsApi_.fullscreen)}else if(!r&&n.msMatchesSelector){r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)}this.isFullscreen(r)};r.handleTechFullscreenChange_=function e(t,i){var n=this;if(i){if(i.nativeIOSFullscreen){this.addClass("vjs-ios-native-fs");this.tech_.one("webkitendfullscreen",function(){n.removeClass("vjs-ios-native-fs")})}this.isFullscreen(i.isFullscreen)}};r.handleTechFullscreenError_=function e(t,i){this.trigger("fullscreenerror",i)};r.togglePictureInPictureClass_=function e(){if(this.isInPictureInPicture()){this.addClass("vjs-picture-in-picture")}else{this.removeClass("vjs-picture-in-picture")}};r.handleTechEnterPictureInPicture_=function e(t){this.isInPictureInPicture(true)};r.handleTechLeavePictureInPicture_=function e(t){this.isInPictureInPicture(false)};r.handleTechError_=function e(){var t=this.tech_.error();this.error(t)};r.handleTechTextData_=function e(){var t=null;if(arguments.length>1){t=arguments[1]}this.trigger("textdata",t)};r.getCache=function e(){return this.cache_};r.resetCache_=function e(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}};r.techCall_=function e(t,i){this.ready(function(){if(t in rn){return en(this.middleware_,this.tech_,t,i)}else if(t in an){return tn(this.middleware_,this.tech_,t,i)}try{if(this.tech_){this.tech_[t](i)}}catch(e){v(e);throw e}},true)};r.techGet_=function e(t){if(!this.tech_||!this.tech_.isReady_){return}if(t in nn){return $i(this.middleware_,this.tech_,t)}else if(t in an){return tn(this.middleware_,this.tech_,t)}try{return this.tech_[t]()}catch(e){if(this.tech_[t]===undefined){v("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e);throw e}if(e.name==="TypeError"){v("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e);this.tech_.isReady_=false;throw e}v(e);throw e}};r.play=function e(){var t=this;var i=this.options_.Promise||window.Promise;if(i){return new i(function(e){t.play_(e)})}return this.play_()};r.play_=function e(t){var i=this;if(t===void 0){t=Vt}this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_){this.off(["ready","loadstart"],this.waitToPlay_);this.waitToPlay_=null}if(!this.isReady_||!n){this.waitToPlay_=function(e){i.play_()};this.one(["ready","loadstart"],this.waitToPlay_);if(!n&&(Y||W)){this.load()}return}var r=this.techGet_("play");if(r===null){this.runPlayTerminatedQueue_()}else{this.runPlayCallbacks_(r)}};r.runPlayTerminatedQueue_=function e(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[];t.forEach(function(e){e()})};r.runPlayCallbacks_=function e(t){var i=this.playCallbacks_.slice(0);this.playCallbacks_=[];this.playTerminatedQueue_=[];i.forEach(function(e){e(t)})};r.pause=function e(){this.techCall_("pause")};r.paused=function e(){return this.techGet_("paused")===false?false:true};r.played=function e(){return this.techGet_("played")||Dt(0,0)};r.scrubbing=function e(t){if(typeof t==="undefined"){return this.scrubbing_}this.scrubbing_=!!t;this.techCall_("setScrubbing",this.scrubbing_);if(t){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}};r.currentTime=function e(t){if(typeof t!=="undefined"){if(t<0){t=0}if(!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t;this.off("canplay",this.boundApplyInitTime_);this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",t);this.cache_.initTime=0;return}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};r.applyInitTime_=function e(){this.currentTime(this.cache_.initTime)};r.duration=function e(t){if(t===undefined){return this.cache_.duration!==undefined?this.cache_.duration:NaN}t=parseFloat(t);if(t<0){t=Infinity}if(t!==this.cache_.duration){this.cache_.duration=t;if(t===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}if(!isNaN(t)){this.trigger("durationchange")}}};r.remainingTime=function e(){return this.duration()-this.currentTime()};r.remainingTimeDisplay=function e(){return Math.floor(this.duration())-Math.floor(this.currentTime())};r.buffered=function e(){var e=this.techGet_("buffered");if(!e||!e.length){e=Dt(0,0)}return e};r.bufferedPercent=function e(){return Rt(this.buffered(),this.duration())};r.bufferedEnd=function e(){var t=this.buffered();var i=this.duration();var n=t.end(t.length-1);if(n>i){n=i}return n};r.volume=function e(t){var i;if(t!==undefined){i=Math.max(0,Math.min(1,parseFloat(t)));this.cache_.volume=i;this.techCall_("setVolume",i);if(i>0){this.lastVolume_(i)}return}i=parseFloat(this.techGet_("volume"));return isNaN(i)?1:i};r.muted=function e(t){if(t!==undefined){this.techCall_("setMuted",t);return}return this.techGet_("muted")||false};r.defaultMuted=function e(t){if(t!==undefined){return this.techCall_("setDefaultMuted",t)}return this.techGet_("defaultMuted")||false};r.lastVolume_=function e(t){if(t!==undefined&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume};r.supportsFullScreen=function e(){return this.techGet_("supportsFullScreen")||false};r.isFullscreen=function e(t){if(t!==undefined){var i=this.isFullscreen_;this.isFullscreen_=Boolean(t);if(this.isFullscreen_!==i&&this.fsApi_.prefixed){this.trigger("fullscreenchange")}this.toggleFullscreenClass_();return}return this.isFullscreen_};r.requestFullscreen=function e(t){var i=this.options_.Promise||window.Promise;if(i){var n=this;return new i(function(e,i){function r(){n.off("fullscreenerror",s);n.off("fullscreenchange",a)}function a(){r();e()}function s(e,t){r();i(t)}n.one("fullscreenchange",a);n.one("fullscreenerror",s);var o=n.requestFullscreenHelper_(t);if(o){o.then(r,r);o.then(e,i)}})}return this.requestFullscreenHelper_()};r.requestFullscreenHelper_=function e(t){var i=this;var n;if(!this.fsApi_.prefixed){n=this.options_.fullscreen&&this.options_.fullscreen.options||{};if(t!==undefined){n=t}}if(this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](n);if(r){r.then(function(){return i.isFullscreen(true)},function(){return i.isFullscreen(false)})}return r}else if(this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow===true){this.techCall_("enterFullScreen")}else{this.enterFullWindow()}};r.exitFullscreen=function e(){var t=this.options_.Promise||window.Promise;if(t){var i=this;return new t(function(e,t){function n(){i.off("fullscreenerror",a);i.off("fullscreenchange",r)}function r(){n();e()}function a(e,i){n();t(i)}i.one("fullscreenchange",r);i.one("fullscreenerror",a);var s=i.exitFullscreenHelper_();if(s){s.then(n,n);s.then(e,t)}})}return this.exitFullscreenHelper_()};r.exitFullscreenHelper_=function e(){var t=this;if(this.fsApi_.requestFullscreen){var i=document[this.fsApi_.exitFullscreen]();if(i){Vt(i.then(function(){return t.isFullscreen(false)}))}return i}else if(this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow===true){this.techCall_("exitFullScreen")}else{this.exitFullWindow()}};r.enterFullWindow=function e(){this.isFullscreen(true);this.isFullWindow=true;this.docOrigOverflow=document.documentElement.style.overflow;We(document,"keydown",this.boundFullWindowOnEscKey_);document.documentElement.style.overflow="hidden";se(document.body,"vjs-full-window");this.trigger("enterFullWindow")};r.fullWindowOnEscKey=function e(t){if(kt.isEventKey(t,"Esc")){if(this.isFullscreen()===true){if(!this.isFullWindow){this.exitFullscreen()}else{this.exitFullWindow()}}}};r.exitFullWindow=function e(){this.isFullscreen(false);this.isFullWindow=false;Ye(document,"keydown",this.boundFullWindowOnEscKey_);document.documentElement.style.overflow=this.docOrigOverflow;oe(document.body,"vjs-full-window");this.trigger("exitFullWindow")};r.disablePictureInPicture=function e(t){if(t===undefined){return this.techGet_("disablePictureInPicture")}this.techCall_("setDisablePictureInPicture",t);this.options_.disablePictureInPicture=t;this.trigger("disablepictureinpicturechanged")};r.isInPictureInPicture=function e(t){if(t!==undefined){this.isInPictureInPicture_=!!t;this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_};r.requestPictureInPicture=function e(){if("pictureInPictureEnabled"in document&&this.disablePictureInPicture()===false){return this.techGet_("requestPictureInPicture")}};r.exitPictureInPicture=function e(){if("pictureInPictureEnabled"in document){return document.exitPictureInPicture()}};r.handleKeyDown=function e(t){var i=this.options_.userActions;if(!i||!i.hotkeys){return}var n=function e(t){var i=t.tagName.toLowerCase();if(t.isContentEditable){return true}var n=["button","checkbox","hidden","radio","reset","submit"];if(i==="input"){return n.indexOf(t.type)===-1}var r=["textarea"];return r.indexOf(i)!==-1};if(n(this.el_.ownerDocument.activeElement)){return}if(typeof i.hotkeys==="function"){i.hotkeys.call(this,t)}else{this.handleHotkeys(t)}};r.handleHotkeys=function e(t){var i=this.options_.userActions?this.options_.userActions.hotkeys:{};var n=i.fullscreenKey,r=n===void 0?function(e){return kt.isEventKey(e,"f")}:n,a=i.muteKey,s=a===void 0?function(e){return kt.isEventKey(e,"m")}:a,o=i.playPauseKey,l=o===void 0?function(e){return kt.isEventKey(e,"k")||kt.isEventKey(e,"Space")}:o;if(r.call(this,t)){t.preventDefault();t.stopPropagation();var u=It.getComponent("FullscreenToggle");if(document[this.fsApi_.fullscreenEnabled]!==false){u.prototype.handleClick.call(this,t)}}else if(s.call(this,t)){t.preventDefault();t.stopPropagation();var d=It.getComponent("MuteToggle");d.prototype.handleClick.call(this,t)}else if(l.call(this,t)){t.preventDefault();t.stopPropagation();var c=It.getComponent("PlayToggle");c.prototype.handleClick.call(this,t)}};r.canPlayType=function e(t){var i;for(var n=0,r=this.options_.techOrder;n<r.length;n++){var a=r[n];var s=Wi.getTech(a);if(!s){s=It.getComponent(a)}if(!s){v.error('The "'+a+'" tech is undefined. Skipped browser support check for that tech.');continue}if(s.isSupported()){i=s.canPlayType(t);if(i){return i}}}return""};r.selectSource=function e(t){var i=this;var n=this.options_.techOrder.map(function(e){return[e,Wi.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];if(i){return i.isSupported()}v.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.');return false});var r=function e(t,i,n){var r;t.some(function(e){return i.some(function(t){r=n(e,t);if(r){return true}})});return r};var a;var s=function e(t){return function(e,i){return t(i,e)}};var o=function e(t,n){var r=t[0],a=t[1];if(a.canPlaySource(n,i.options_[r.toLowerCase()])){return{source:n,tech:r}}};if(this.options_.sourceOrder){a=r(t,n,s(o))}else{a=r(n,t,o)}return a||false};r.handleSrc_=function e(t,i){var n=this;if(typeof t==="undefined"){return this.cache_.src||""}if(this.resetRetryOnError_){this.resetRetryOnError_()}var r=hn(t);if(!r.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}this.changingSrc_=true;if(!i){this.cache_.sources=r}this.updateSourceCaches_(r[0]);Ji(this,r[0],function(e,t){n.middleware_=t;if(!i){n.cache_.sources=r}n.updateSourceCaches_(e);var a=n.src_(e);if(a){if(r.length>1){return n.handleSrc_(r.slice(1))}n.changingSrc_=false;n.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);n.triggerReady();return}Zi(t,n.tech_)});if(this.options_.retryOnError&&r.length>1){var a=function e(){n.error(null);n.handleSrc_(r.slice(1),true)};var s=function e(){n.off("error",a)};this.one("error",a);this.one("playing",s);this.resetRetryOnError_=function(){n.off("error",a);n.off("playing",s)}}};r.src=function e(t){return this.handleSrc_(t,false)};r.src_=function e(t){var i=this;var n=this.selectSource([t]);if(!n){return true}if(!_t(n.tech,this.techName_)){this.changingSrc_=true;this.loadTech_(n.tech,n.source);this.tech_.ready(function(){i.changingSrc_=false});return false}this.ready(function(){if(this.tech_.constructor.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",t)}else{this.techCall_("src",t.src)}this.changingSrc_=false},true);return false};r.load=function e(){this.techCall_("load")};r.reset=function e(){var t=this;var i=this.options_.Promise||window.Promise;if(this.paused()||!i){this.doReset_()}else{var n=this.play();Vt(n.then(function(){return t.doReset_()}))}};r.doReset_=function e(){if(this.tech_){this.tech_.clearTracks("text")}this.resetCache_();this.poster("");this.loadTech_(this.options_.techOrder[0],null);this.techCall_("reset");this.resetControlBarUI_();if(at(this)){this.trigger("playerreset")}};r.resetControlBarUI_=function e(){this.resetProgressBar_();this.resetPlaybackRate_();this.resetVolumeBar_()};r.resetProgressBar_=function e(){this.currentTime(0);var t=this.controlBar||{},i=t.durationDisplay,n=t.remainingTimeDisplay;if(i){i.updateContent()}if(n){n.updateContent()}};r.resetPlaybackRate_=function e(){this.playbackRate(this.defaultPlaybackRate());this.handleTechRateChange_()};r.resetVolumeBar_=function e(){this.volume(1);this.trigger("volumechange")};r.currentSources=function e(){var t=this.currentSource();var i=[];if(Object.keys(t).length!==0){i.push(t)}return this.cache_.sources||i};r.currentSource=function e(){return this.cache_.source||{}};r.currentSrc=function e(){return this.currentSource()&&this.currentSource().src||""};r.currentType=function e(){return this.currentSource()&&this.currentSource().type||""};r.preload=function e(t){if(t!==undefined){this.techCall_("setPreload",t);this.options_.preload=t;return}return this.techGet_("preload")};r.autoplay=function e(t){if(t===undefined){return this.options_.autoplay||false}var i;if(typeof t==="string"&&/(any|play|muted)/.test(t)||t===true&&this.options_.normalizeAutoplay){this.options_.autoplay=t;this.manualAutoplay_(typeof t==="string"?t:"play");i=false}else if(!t){this.options_.autoplay=false}else{this.options_.autoplay=true}i=typeof i==="undefined"?this.options_.autoplay:i;if(this.tech_){this.techCall_("setAutoplay",i)}};r.playsinline=function e(t){if(t!==undefined){this.techCall_("setPlaysinline",t);this.options_.playsinline=t;return this}return this.techGet_("playsinline")};r.loop=function e(t){if(t!==undefined){this.techCall_("setLoop",t);this.options_.loop=t;return}return this.techGet_("loop")};r.poster=function e(t){if(t===undefined){return this.poster_}if(!t){t=""}if(t===this.poster_){return}this.poster_=t;this.techCall_("setPoster",t);this.isPosterFromTech_=false;this.trigger("posterchange")};r.handleTechPosterChange_=function e(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";if(t!==this.poster_){this.poster_=t;this.isPosterFromTech_=true;this.trigger("posterchange")}}};r.controls=function e(t){if(t===undefined){return!!this.controls_}t=!!t;if(this.controls_===t){return}this.controls_=t;if(this.usingNativeControls()){this.techCall_("setControls",t)}if(this.controls_){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}};r.usingNativeControls=function e(t){if(t===undefined){return!!this.usingNativeControls_}t=!!t;if(this.usingNativeControls_===t){return}this.usingNativeControls_=t;if(this.usingNativeControls_){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}};r.error=function e(t){var n=this;if(t===undefined){return this.error_||null}i("beforeerror").forEach(function(e){var i=e(n,t);if(!(k(i)&&!Array.isArray(i)||typeof i==="string"||typeof i==="number"||i===null)){n.log.error("please return a value that MediaError expects in beforeerror hooks");return}t=i});if(this.options_.suppressNotSupportedError&&t&&t.code===4){var r=function e(){this.error(t)};this.options_.suppressNotSupportedError=false;this.any(["click","touchstart"],r);this.one("loadstart",function(){this.off(["click","touchstart"],r)});return}if(t===null){this.error_=t;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return}this.error_=new Nt(t);this.addClass("vjs-error");v.error("(CODE:"+this.error_.code+" "+Nt.errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");i("error").forEach(function(e){return e(n,n.error_)});return};r.reportUserActivity=function e(t){this.userActivity_=true};r.userActive=function e(t){if(t===undefined){return this.userActive_}t=!!t;if(t===this.userActive_){return}this.userActive_=t;if(this.userActive_){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive");return}if(this.tech_){this.tech_.one("mousemove",function(e){e.stopPropagation();e.preventDefault()})}this.userActivity_=false;this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")};r.listenForUserActivity_=function e(){var t;var i;var n;var r=$e(this,this.reportUserActivity);var a=function e(t){if(t.screenX!==i||t.screenY!==n){i=t.screenX;n=t.screenY;r()}};var s=function e(){r();this.clearInterval(t);t=this.setInterval(r,250)};var o=function e(i){r();this.clearInterval(t)};this.on("mousedown",s);this.on("mousemove",a);this.on("mouseup",o);this.on("mouseleave",o);var l=this.getChild("controlBar");if(l&&!W&&!O){l.on("mouseenter",function(e){if(this.player().options_.inactivityTimeout!==0){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout}this.player().options_.inactivityTimeout=0});l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})}this.on("keydown",r);this.on("keyup",r);var u;this.setInterval(function(){if(!this.userActivity_){return}this.userActivity_=false;this.userActive(true);this.clearTimeout(u);var e=this.options_.inactivityTimeout;if(e<=0){return}u=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},e)},250)};r.playbackRate=function e(t){if(t!==undefined){this.techCall_("setPlaybackRate",t);return}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.cache_.lastPlaybackRate||this.techGet_("playbackRate")}return 1};r.defaultPlaybackRate=function e(t){if(t!==undefined){return this.techCall_("setDefaultPlaybackRate",t)}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("defaultPlaybackRate")}return 1};r.isAudio=function e(t){if(t!==undefined){this.isAudio_=!!t;return}return!!this.isAudio_};r.enableAudioOnlyUI_=function e(){var t=this;this.addClass("vjs-audio-only-mode");var i=this.children();var n=this.getChild("ControlBar");var r=n&&n.currentHeight();i.forEach(function(e){if(e===n){return}if(e.el_&&!e.hasClass("vjs-hidden")){e.hide();t.audioOnlyCache_.hiddenChildren.push(e)}});this.audioOnlyCache_.playerHeight=this.currentHeight();this.height(r);this.trigger("audioonlymodechange")};r.disableAudioOnlyUI_=function e(){this.removeClass("vjs-audio-only-mode");this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()});this.height(this.audioOnlyCache_.playerHeight);this.trigger("audioonlymodechange")};r.audioOnlyMode=function e(t){var i=this;if(typeof t!=="boolean"||t===this.audioOnlyMode_){return this.audioOnlyMode_}this.audioOnlyMode_=t;var n=this.options_.Promise||window.Promise;if(n){if(t){var r=[];if(this.isInPictureInPicture()){r.push(this.exitPictureInPicture())}if(this.isFullscreen()){r.push(this.exitFullscreen())}if(this.audioPosterMode()){r.push(this.audioPosterMode(false))}return n.all(r).then(function(){return i.enableAudioOnlyUI_()})}return n.resolve().then(function(){return i.disableAudioOnlyUI_()})}if(t){if(this.isInPictureInPicture()){this.exitPictureInPicture()}if(this.isFullscreen()){this.exitFullscreen()}this.enableAudioOnlyUI_()}else{this.disableAudioOnlyUI_()}};r.enablePosterModeUI_=function e(){var t=this.tech_&&this.tech_;t.hide();this.addClass("vjs-audio-poster-mode");this.trigger("audiopostermodechange")};r.disablePosterModeUI_=function e(){var t=this.tech_&&this.tech_;t.show();this.removeClass("vjs-audio-poster-mode");this.trigger("audiopostermodechange")};r.audioPosterMode=function e(t){var i=this;if(typeof t!=="boolean"||t===this.audioPosterMode_){return this.audioPosterMode_}this.audioPosterMode_=t;var n=this.options_.Promise||window.Promise;if(n){if(t){if(this.audioOnlyMode()){var r=this.audioOnlyMode(false);return r.then(function(){i.enablePosterModeUI_()})}return n.resolve().then(function(){i.enablePosterModeUI_()})}return n.resolve().then(function(){i.disablePosterModeUI_()})}if(t){if(this.audioOnlyMode()){this.audioOnlyMode(false)}this.enablePosterModeUI_();return}this.disablePosterModeUI_()};r.addTextTrack=function e(t,i,n){if(this.tech_){return this.tech_.addTextTrack(t,i,n)}};r.addRemoteTextTrack=function e(t,i){if(this.tech_){return this.tech_.addRemoteTextTrack(t,i)}};r.removeRemoteTextTrack=function e(t){if(t===void 0){t={}}var i=t,n=i.track;if(!n){n=t}if(this.tech_){return this.tech_.removeRemoteTextTrack(n)}};r.getVideoPlaybackQuality=function e(){return this.techGet_("getVideoPlaybackQuality")};r.videoWidth=function e(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};r.videoHeight=function e(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};r.language=function e(t){if(t===undefined){return this.language_}if(this.language_!==String(t).toLowerCase()){this.language_=String(t).toLowerCase();if(at(this)){this.trigger("languagechange")}}};r.languages=function e(){return bt(n.prototype.options_.languages,this.languages_)};r.toJSON=function e(){var t=bt(this.options_);var i=t.tracks;t.tracks=[];for(var n=0;n<i.length;n++){var r=i[n];r=bt(r);r.player=undefined;t.tracks[n]=r}return t};r.createModal=function e(t,i){var n=this;i=i||{};i.content=t||"";var r=new Yt(this,i);this.addChild(r);r.on("dispose",function(){n.removeChild(r)});r.open();return r};r.updateCurrentBreakpoint_=function e(){if(!this.responsive()){return}var t=this.currentBreakpoint();var i=this.currentWidth();for(var n=0;n<pa.length;n++){var r=pa[n];var a=this.breakpoints_[r];if(i<=a){if(t===r){return}if(t){this.removeClass(ha[t])}this.addClass(ha[r]);this.breakpoint_=r;break}}};r.removeCurrentBreakpoint_=function e(){var t=this.currentBreakpointClass();this.breakpoint_="";if(t){this.removeClass(t)}};r.breakpoints=function e(t){if(t===undefined){return w(this.breakpoints_)}this.breakpoint_="";this.breakpoints_=w({},va,t);this.updateCurrentBreakpoint_();return w(this.breakpoints_)};r.responsive=function e(t){if(t===undefined){return this.responsive_}t=Boolean(t);var i=this.responsive_;if(t===i){return}this.responsive_=t;if(t){this.on("playerresize",this.boundUpdateCurrentBreakpoint_);this.updateCurrentBreakpoint_()}else{this.off("playerresize",this.boundUpdateCurrentBreakpoint_);this.removeCurrentBreakpoint_()}return t};r.currentBreakpoint=function e(){return this.breakpoint_};r.currentBreakpointClass=function e(){return ha[this.breakpoint_]||""};r.loadMedia=function e(t,i){var n=this;if(!t||typeof t!=="object"){return}this.reset();this.cache_.media=bt(t);var r=this.cache_.media,a=r.artwork,s=r.poster,o=r.src,l=r.textTracks;if(!a&&s){this.cache_.media.artwork=[{src:s,type:fn(s)}]}if(o){this.src(o)}if(s){this.poster(s)}if(Array.isArray(l)){l.forEach(function(e){return n.addRemoteTextTrack(e,false)})}this.ready(i)};r.getMedia=function e(){if(!this.cache_.media){var t=this.poster();var i=this.currentSources();var n=Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}});var r={src:i,textTracks:n};if(t){r.poster=t;r.artwork=[{src:r.poster,type:fn(r.poster)}]}return r}return bt(this.cache_.media)};n.getTagSettings=function e(t){var i={sources:[],tracks:[]};var n=de(t);var r=n["data-setup"];if(ae(t,"vjs-fill")){n.fill=true}if(ae(t,"vjs-fluid")){n.fluid=true}if(r!==null){var a=Ut(r||"{}"),s=a[0],o=a[1];if(s){v.error(s)}w(n,o)}w(i,n);if(t.hasChildNodes()){var l=t.childNodes;for(var u=0,d=l.length;u<d;u++){var c=l[u];var f=c.nodeName.toLowerCase();if(f==="source"){i.sources.push(de(c))}else if(f==="track"){i.tracks.push(de(c))}}}return i};r.flexNotSupported_=function e(){var t=document.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)};r.debug=function e(t){if(t===undefined){return this.debugEnabled_}if(t){this.trigger("debugon");this.previousLogLevel_=this.log.level;this.log.level("debug");this.debugEnabled_=true}else{this.trigger("debugoff");this.log.level(this.previousLogLevel_);this.previousLogLevel_=undefined;this.debugEnabled_=false}};r.playbackRates=function e(t){if(t===undefined){return this.cache_.playbackRates}if(!Array.isArray(t)){return}if(!t.every(function(e){return typeof e==="number"})){return}this.cache_.playbackRates=t;this.trigger("playbackrateschange")};return n}(It);Hi.names.forEach(function(e){var t=Hi[e];ga.prototype[t.getterName]=function(){if(this.tech_){return this.tech_[t.getterName]()}this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});ga.prototype.crossorigin=ga.prototype.crossOrigin;ga.players={};var ma=window.navigator;ga.prototype.options_={techOrder:Wi.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:false,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ma&&(ma.languages&&ma.languages[0]||ma.userLanguage||ma.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:false,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:false,audioOnlyMode:false,audioPosterMode:false};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ga.prototype[e]=function(){return this.techGet_(e)}});ca.forEach(function(e){ga.prototype["handleTech"+yt(e)+"_"]=function(){return this.trigger(e)}});It.registerComponent("Player",ga);var ya=y(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};return t(i,n)}e.exports=t});function _a(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}var ba=_a;var Sa=y(function(e){function t(i,n,r){if(ba()){e.exports=t=Reflect.construct}else{e.exports=t=function e(t,i,n){var r=[null];r.push.apply(r,i);var a=Function.bind.apply(t,r);var s=new a;if(n)ya(s,n.prototype);return s}}return t.apply(null,arguments)}e.exports=t});var Ta="plugin";var Ea="activePlugins_";var wa={};var ka=function e(t){return wa.hasOwnProperty(t)};var Ia=function e(t){return ka(t)?wa[t]:undefined};var Aa=function e(t,i){t[Ea]=t[Ea]||{};t[Ea][i]=true};var Ca=function e(t,i,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,i);t.trigger(r+":"+i.name,i)};var ja=function e(t,i){var n=function e(){Ca(this,{name:t,plugin:i,instance:null},true);var n=i.apply(this,arguments);Aa(this,t);Ca(this,{name:t,plugin:i,instance:n});return n};Object.keys(i).forEach(function(e){n[e]=i[e]});return n};var Pa=function e(t,i){i.prototype.name=t;return function(){Ca(this,{name:t,plugin:i,instance:null},true);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}var a=Sa(i,[this].concat(n));this[t]=function(){return a};Ca(this,a.getEventHash());return a}};var xa=function(){function e(t){if(this.constructor===e){throw new Error("Plugin must be sub-classed; not directly instantiated.")}this.player=t;if(!this.log){this.log=this.player.log.createLogger(this.name)}ht(this);delete this.trigger;gt(this,this.constructor.defaultState);Aa(t,this.name);this.dispose=this.dispose.bind(this);t.on("dispose",this.dispose)}var t=e.prototype;t.version=function e(){return this.constructor.VERSION};t.getEventHash=function e(t){if(t===void 0){t={}}t.name=this.name;t.plugin=this.constructor;t.instance=this;return t};t.trigger=function e(t,i){if(i===void 0){i={}}return Ke(this.eventBusEl_,t,this.getEventHash(i))};t.handleStateChanged=function e(t){};t.dispose=function e(){var t=this.name,i=this.player;this.trigger("dispose");this.off();i.off("dispose",this.dispose);i[Ea][t]=false;this.player=this.state=null;i[t]=Pa(t,wa[t])};e.isBasic=function t(i){var n=typeof i==="string"?Ia(i):i;return typeof n==="function"&&!e.prototype.isPrototypeOf(n.prototype)};e.registerPlugin=function t(i,n){if(typeof i!=="string"){throw new Error('Illegal plugin name, "'+i+'", must be a string, was '+typeof i+".")}if(ka(i)){v.warn('A plugin named "'+i+'" already exists. You may want to avoid re-registering plugins!')}else if(ga.prototype.hasOwnProperty(i)){throw new Error('Illegal plugin name, "'+i+'", cannot share a name with an existing player method!')}if(typeof n!=="function"){throw new Error('Illegal plugin for "'+i+'", must be a function, was '+typeof n+".")}wa[i]=n;if(i!==Ta){if(e.isBasic(n)){ga.prototype[i]=ja(i,n)}else{ga.prototype[i]=Pa(i,n)}}return n};e.deregisterPlugin=function e(t){if(t===Ta){throw new Error("Cannot de-register base plugin.")}if(ka(t)){delete wa[t];delete ga.prototype[t]}};e.getPlugins=function e(t){if(t===void 0){t=Object.keys(wa)}var i;t.forEach(function(e){var t=Ia(e);if(t){i=i||{};i[e]=t}});return i};e.getPluginVersion=function e(t){var i=Ia(t);return i&&i.VERSION||""};return e}();xa.getPlugin=Ia;xa.BASE_PLUGIN_NAME=Ta;xa.registerPlugin(Ta,xa);ga.prototype.usingPlugin=function(e){return!!this[Ea]&&this[Ea][e]===true};ga.prototype.hasPlugin=function(e){return!!ka(e)};function La(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ya(e,t)}var Oa=La;var Da=function e(t,i){if(i===void 0){i={}}var n=function e(){t.apply(this,arguments)};var r={};if(typeof i==="object"){if(i.constructor!==Object.prototype.constructor){n=i.constructor}r=i}else if(typeof i==="function"){n=i}Oa(n,t);if(t){n.super_=t}for(var a in r){if(r.hasOwnProperty(a)){n.prototype[a]=r[a]}}return n};var Ra=function e(t){return t.indexOf("#")===0?t.slice(1):t};function Na(e,t,n){var r=Na.getPlayer(e);if(r){if(t){v.warn('Player "'+e+'" is already initialised. Options will not be applied.')}if(n){r.ready(n)}return r}var a=typeof e==="string"?ke("#"+Ra(e)):e;if(!$(a)){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(!a.ownerDocument.defaultView||!a.ownerDocument.body.contains(a)){v.warn("The element supplied is not included in the DOM")}t=t||{};if(t.restoreEl===true){t.restoreEl=(a.parentNode&&a.parentNode.hasAttribute("data-vjs-player")?a.parentNode:a).cloneNode(true)}i("beforesetup").forEach(function(e){var i=e(a,bt(t));if(!k(i)||Array.isArray(i)){v.error("please return an object in beforesetup hooks");return}t=bt(t,i)});var s=It.getComponent("Player");r=new s(a,t,n);i("setup").forEach(function(e){return e(r)});return r}Na.hooks_=t;Na.hooks=i;Na.hook=n;Na.hookOnce=a;Na.removeHook=r;if(window.VIDEOJS_NO_DYNAMIC_STYLE!==true&&Z()){var Ma=ke(".vjs-styles-defaults");if(!Ma){Ma=Oe("vjs-styles-defaults");var Ua=ke("head");if(Ua){Ua.insertBefore(Ma,Ua.firstChild)}De(Ma,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}xe(1,Na);Na.VERSION=e;Na.options=ga.prototype.options_;Na.getPlayers=function(){return ga.players};Na.getPlayer=function(e){var t=ga.players;var i;if(typeof e==="string"){var n=Ra(e);var r=t[n];if(r){return r}i=ke("#"+n)}else{i=e}if($(i)){var a=i,s=a.player,o=a.playerId;if(s||t[o]){return s||t[o]}}};Na.getAllPlayers=function(){return Object.keys(ga.players).map(function(e){return ga.players[e]}).filter(Boolean)};Na.players=ga.players;Na.getComponent=It.getComponent;Na.registerComponent=function(e,t){if(Wi.isTech(t)){v.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}It.registerComponent.call(It,e,t)};Na.getTech=Wi.getTech;Na.registerTech=Wi.registerTech;Na.use=Qi;Object.defineProperty(Na,"middleware",{value:{},writeable:false,enumerable:true});Object.defineProperty(Na.middleware,"TERMINATOR",{value:Xi,writeable:false,enumerable:true});Na.browser=K;Na.TOUCH_ENABLED=H;Na.extend=Da;Na.mergeOptions=bt;Na.bind=$e;Na.registerPlugin=xa.registerPlugin;Na.deregisterPlugin=xa.deregisterPlugin;Na.plugin=function(e,t){v.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead");return xa.registerPlugin(e,t)};Na.getPlugins=xa.getPlugins;Na.getPlugin=xa.getPlugin;Na.getPluginVersion=xa.getPluginVersion;Na.addLanguage=function(e,t){var i;e=(""+e).toLowerCase();Na.options.languages=bt(Na.options.languages,(i={},i[e]=t,i));return Na.options.languages[e]};Na.log=v;Na.createLogger=g;Na.createTimeRange=Na.createTimeRanges=Dt;Na.formatTime=Dn;Na.setFormatTime=Ln;Na.resetFormatTime=On;Na.parseUrl=li;Na.isCrossOrigin=ci;Na.EventTarget=it;Na.on=We;Na.one=Xe;Na.off=Ye;Na.trigger=Ke;Na.xhr=Ti;Na.TextTrack=Oi;Na.AudioTrack=Di;Na.VideoTrack=Ri;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Na[e]=function(){v.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead");return Ae[e].apply(null,arguments)}});Na.computedStyle=A;Na.dom=Ae;Na.url=fi;Na.defineLazyProperty=la;Na.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});return Na});var videojs=BrightcovePlayerCore.dedupeVideojs(window.videojs,previousVideojs);var core=new BrightcovePlayerCore({accountId:"5036649783001",adConfigId:"",autoplay:"any",css:{controlBarColor:"rgba(0, 0, 0, 0.45)",controlColor:"#fff",progressColor:"rgb(214, 36, 36)"},embedId:"default",media:{poster:{}},playButton:{position:"center",shape:"circle"},plugins:[{name:"ima3",autoInit:true,options:{debug:false,hardTimeouts:true,ima3SdkSettings:{autoPlayAdBreaks:false,disableCustomPlaybackForIOS10Plus:true,numRedirects:7},original_css_url:"//players.brightcove.net/videojs-ima3/4.2.4/videojs-ima3.css",requestMode:"onload",serverUrl:"",showVpaidControls:true,timeout:15e3,useMediaCuePoints:false,vpaidMode:"INSECURE"}},{name:"perSourceBehaviors",autoInit:true},{name:"contextmenu",autoInit:true},{name:"contextmenuUI",autoInit:true},{name:"bcAnalytics",autoInit:true,options:{accountId:"5036649783001",embedId:"default",platformVersion:"6.66.4",playerId:"wt1SkxgXE",playerName:"WALIA GT - playerTV prod"}},{name:"errors",autoInit:true,options:{}},{name:"catalog",autoInit:true,options:{accountId:"5036649783001",policyKey:"BCpkADawqM1UXGTu2gTATne9oh8jhim5SOtdRQk0RuECtZJwJLNeiwYTEfovMbEEwdyA3OPZPWUZP6tzlcxK6yUlqu4K8IeClPup_SoBPlJ2uMZ86VSbV1TbuKnVbGA8qPphYdHNQh2rRjpq"}},{name:"dock",autoInit:false},{name:"playlist",autoInit:false},{name:"iolApiUtils",autoInit:true},{name:"overlay",autoInit:true},{name:"iol_custom_core_lib",autoInit:true},{name:"scrollIntoViewAds",autoInit:true},{name:"floater",autoInit:true},{name:"performance_tracking",autoInit:true},{name:"unmuteButton",autoInit:true},{name:"iol_bcpl_track_perf",autoInit:true,options:{player_type:"22"}},{name:"related",autoInit:true,options:{source:"url",url:""}},{name:"thumbnails",autoInit:true},{name:"comscore",autoInit:true,options:{c2:"33012141",labelmapping:'ns_st_st="Italiaonline",ns_st_pu="italiaonline.it", ns_st_ep="*null",ns_st_ge="*null"',ns_st_pr:"MediaInfo.title"}}],contextMenu:{},playerId:"wt1SkxgXE",preload:"metadata",videoCloud:{policyKey:"BCpkADawqM1UXGTu2gTATne9oh8jhim5SOtdRQk0RuECtZJwJLNeiwYTEfovMbEEwdyA3OPZPWUZP6tzlcxK6yUlqu4K8IeClPup_SoBPlJ2uMZ86VSbV1TbuKnVbGA8qPphYdHNQh2rRjpq",video:null},skin:"luna",playersCDN:"//players.brightcove.net",responsive:true,liveui:true,controlBar:{volumePanel:{inline:false,vertical:true}},version:"6.66.4"},{});if(!videojs.getTech("flash")){(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof define==="function"&&define.amd?define(["video.js"],t):e.videojsFlash=t(e.videojs)})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="5.4.2";var i="2.2.1";function n(e){e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};e.streamFromParts=function(e,t){return e+"&"+t};e.streamToParts=function(e){var t={connection:"",stream:""};if(!e){return t}var i=e.search(/&(?![\w-]+=)/);var n=void 0;if(i!==-1){n=i+1}else{i=n=e.lastIndexOf("/")+1;if(i===0){i=n=e.length}}t.connection=e.substring(0,i);t.stream=e.substring(n,e.length);return t};e.isStreamingType=function(t){return t in e.streamingFormats};e.RTMP_RE=/^rtmp[set]?:\/\//i;e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)};e.rtmpSourceHandler={};e.rtmpSourceHandler.canPlayType=function(t){if(e.isStreamingType(t)){return"maybe"}return""};e.rtmpSourceHandler.canHandleSource=function(t,i){var n=e.rtmpSourceHandler.canPlayType(t.type);if(n){return n}if(e.isStreamingSrc(t.src)){return"maybe"}return""};e.rtmpSourceHandler.handleSource=function(t,i,n){var r=e.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)};e.registerSourceHandler(e.rtmpSourceHandler);return e}var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var a;if(typeof window!=="undefined"){a=window}else if(typeof r!=="undefined"){a=r}else if(typeof self!=="undefined"){a=self}else{a={}}var s=a;var o=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var l=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t};var u=function(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e};var d=e.getComponent("Tech");var c=e.dom;var f=e.url;var p=e.createTimeRange;var h=e.mergeOptions;var v=s&&s.navigator||{};var g=function(e){l(i,e);function i(t,n){o(this,i);var r=u(this,e.call(this,t,n));if(t.source){r.ready(function(){this.setSource(t.source)},true)}if(t.startTime){r.ready(function(){this.load();this.play();this.currentTime(t.startTime)},true)}s.videojs=s.videojs||{};s.videojs.Flash=s.videojs.Flash||{};s.videojs.Flash.onReady=i.onReady;s.videojs.Flash.onEvent=i.onEvent;s.videojs.Flash.onError=i.onError;r.on("seeked",function(){this.lastSeekTarget_=undefined});return r}i.prototype.createEl=function e(){var n=this.options_;if(!n.swf){n.swf="https://vjs.zencdn.net/swf/"+t+"/video-js.swf"}var r=n.techId;var a=h({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars);var s=h({wmode:"opaque",bgcolor:"#000000"},n.params);var o=h({id:r,name:r,class:"vjs-tech"},n.attributes);this.el_=i.embed(n.swf,a,s,o);this.el_.tech=this;return this.el_};i.prototype.play=function e(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};i.prototype.pause=function e(){this.el_.vjs_pause()};i.prototype.src=function e(t){if(t===undefined){return this.currentSrc()}return this.setSrc(t)};i.prototype.setSrc=function e(t){var i=this;t=f.getAbsoluteURL(t);this.el_.vjs_src(t);if(this.autoplay()){this.setTimeout(function(){return i.play()},0)}};i.prototype.seeking=function e(){return this.lastSeekTarget_!==undefined};i.prototype.setCurrentTime=function t(i){var n=this.seekable();if(n.length){i=i>n.start(0)?i:n.start(0);i=i<n.end(n.length-1)?i:n.end(n.length-1);this.lastSeekTarget_=i;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",i);e.prototype.setCurrentTime.call(this)}};i.prototype.currentTime=function e(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};i.prototype.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};i.prototype.duration=function e(){if(this.readyState()===0){return NaN}var e=this.el_.vjs_getProperty("duration");return e>=0?e:Infinity};i.prototype.load=function e(){this.el_.vjs_load()};i.prototype.poster=function e(){this.el_.vjs_getProperty("poster")};i.prototype.setPoster=function e(){};i.prototype.seekable=function e(){var t=this.duration();if(t===0){return p()}return p(0,t)};i.prototype.buffered=function e(){var t=this.el_.vjs_getProperty("buffered");if(t.length===0){return p()}return p(t[0][0],t[0][1])};i.prototype.supportsFullScreen=function e(){return false};i.prototype.enterFullScreen=function e(){return false};i.prototype.getVideoPlaybackQuality=function e(){var t=this.el_.vjs_getProperty("getVideoPlaybackQuality");if(s.performance&&typeof s.performance.now==="function"){t.creationTime=s.performance.now()}else if(s.performance&&s.performance.timing&&typeof s.performance.timing.navigationStart==="number"){t.creationTime=s.Date.now()-s.performance.timing.navigationStart}return t};return i}(d);var m=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"];var y=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"];var _=g.prototype;function b(e){var t=e.charAt(0).toUpperCase()+e.slice(1);_["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function S(e){_[e]=function(){return this.el_.vjs_getProperty(e)}}for(var T=0;T<m.length;T++){S(m[T]);b(m[T])}for(var E=0;E<y.length;E++){S(y[E])}g.isSupported=function(){if(e.browser.IS_CHROME&&(!e.browser.IS_ANDROID||!e.browser.IS_IOS)||e.browser.IS_SAFARI&&!e.browser.IS_IOS||e.browser.IS_EDGE){return true}return g.version()[0]>=10};d.withSourceHandlers(g);g.nativeSourceHandler={};g.nativeSourceHandler.canPlayType=function(e){if(e in g.formats){return"maybe"}return""};g.nativeSourceHandler.canHandleSource=function(e,t){var i=void 0;function n(e){var t=f.getFileExtension(e);if(t){return"video/"+t}return""}if(!e.type){i=n(e.src)}else{i=e.type.replace(/;.*/,"").toLowerCase()}return g.nativeSourceHandler.canPlayType(i)};g.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};g.nativeSourceHandler.dispose=function(){};g.registerSourceHandler(g.nativeSourceHandler);g.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};g.onReady=function(e){var t=c.$("#"+e);var i=t&&t.tech;if(i&&i.el()){g.checkReady(i)}};g.checkReady=function(e){if(!e.el()){return}if(e.el().vjs_getProperty){e.triggerReady()}else{this.setTimeout(function(){g.checkReady(e)},50)}};g.onEvent=function(e,t){var i=c.$("#"+e).tech;var n=Array.prototype.slice.call(arguments,2);i.setTimeout(function(){i.trigger(t,n)},1)};g.onError=function(e,t){var i=c.$("#"+e).tech;if(t==="srcnotfound"){return i.error(4)}if(typeof t==="string"){i.error("FLASH: "+t)}else{t.origin="flash";i.error(t)}};g.version=function(){var e="0,0,0";try{e=new s.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{if(v.mimeTypes["application/x-shockwave-flash"].enabledPlugin){e=(v.plugins["Shockwave Flash 2.0"]||v.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(e){}}return e.split(",")};g.embed=function(e,t,i,n){var r=g.getEmbedCode(e,t,i,n);var a=c.createEl("div",{innerHTML:r}).childNodes[0];return a};g.getEmbedCode=function(e,t,i,n){var r='<object type="application/x-shockwave-flash" ';var a="";var s="";var o="";if(t){Object.getOwnPropertyNames(t).forEach(function(e){a+=e+"="+t[e]+"&"})}i=h({movie:e,flashvars:a,allowScriptAccess:"always",allowNetworking:"all"},i);Object.getOwnPropertyNames(i).forEach(function(e){s+='<param name="'+e+'" value="'+i[e]+'" />'});n=h({data:e,width:"100%",height:"100%"},n);Object.getOwnPropertyNames(n).forEach(function(e){o+=e+'="'+n[e]+'" '});return""+r+o+">"+s+"</object>"};n(g);if(d.getTech("Flash")){e.log.warn("Not using videojs-flash as it appears to already be registered");e.log.warn("videojs-flash should only be used with video.js@6 and above")}else{e.registerTech("Flash",g)}g.VERSION=i;return g})}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/window"),require("video.js")):typeof define==="function"&&define.amd?define(["exports","global/window","video.js"],t):t(e.videojsFlashlsSourceHandler={},e.window,e.videojs)})(this,function(e,t,i){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;var n=function(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var n;if(!e[t]){return false}n=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(n,1);return n>-1};this.trigger=function(t){var i,n,r,a;i=e[t];if(!i){return}if(arguments.length===2){r=i.length;for(n=0;n<r;++n){i[n].call(this,arguments[1])}}else{a=[];n=arguments.length;for(n=1;n<arguments.length;++n){a.push(arguments[n])}r=i.length;for(n=0;n<r;++n){i[n].apply(this,a)}}};this.dispose=function(){e={}}}};n.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});return e};n.prototype.push=function(e){this.trigger("data",e)};n.prototype.flush=function(e){this.trigger("done",e)};var r=n;var a=4,s=128;var o=function(e){var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;while(t<e.byteLength){if(e[t]===s){break}while(e[t]===255){n+=255;t++}n+=e[t++];while(e[t]===255){r+=255;t++}r+=e[t++];if(!i.payload&&n===a){i.payloadType=n;i.payloadSize=r;i.payload=e.subarray(t,t+r);break}t+=r;n=0;r=0}return i};var l=function(e){if(e.payload[0]!==181){return null}if((e.payload[1]<<8|e.payload[2])!==49){return null}if(String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])!=="GA94"){return null}if(e.payload[7]!==3){return null}return e.payload.subarray(8,e.payload.length-1)};var u=function(e,t){var i=[],n,r,a,s;if(!(t[0]&64)){return i}r=t[0]&31;for(n=0;n<r;n++){a=n*3;s={type:t[a+2]&3,pts:e};if(t[a+2]&4){s.ccData=t[a+3]<<8|t[a+4];i.push(s)}}return i};var d=function(e){var t=e.byteLength,i=[],n=1,r,a;while(n<t-2){if(e[n]===0&&e[n+1]===0&&e[n+2]===3){i.push(n+2);n+=2}else{n++}}if(i.length===0){return e}r=t-i.length;a=new Uint8Array(r);var s=0;for(n=0;n<r;s++,n++){if(s===i[0]){s++;i.shift()}a[n]=e[s]}return a};var c={parseSei:o,parseUserData:l,parseCaptionPackets:u,discardEmulationPreventionBytes:d,USER_DATA_REGISTERED_ITU_T_T35:a};var f=function(){f.prototype.init.call(this);this.captionPackets_=[];this.ccStreams_=[new y(0,0),new y(0,1),new y(1,0),new y(1,1)];this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("done",this.trigger.bind(this,"done"))},this)};f.prototype=new r;f.prototype.push=function(e){var t,i,n;if(e.nalUnitType!=="sei_rbsp"){return}t=c.parseSei(e.escapedRBSP);if(t.payloadType!==c.USER_DATA_REGISTERED_ITU_T_T35){return}i=c.parseUserData(t);if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}n=c.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(n);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};f.prototype.flush=function(){if(!this.captionPackets_.length){this.ccStreams_.forEach(function(e){e.flush()},this);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}},this);this.captionPackets_.length=0;this.ccStreams_.forEach(function(e){e.flush()},this);return};f.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};f.prototype.dispatchCea608Packet=function(e){if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};f.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};f.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};var p={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var h=function(e){if(e===null){return""}e=p[e]||e;return String.fromCharCode(e)};var v=14;var g=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var m=function(){var e=[],t=v+1;while(t--){e.push("")}return e};var y=function(e,t){y.prototype.init.call(this);this.field_=e||0;this.dataChannel_=t||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,n,r,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}n=t>>>8;r=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=m()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=m()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=m()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(n,r)){n=(n&3)<<8;a=h(n|r);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(n,r)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}n=(n&3)<<8;a=h(n|r);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(n,r)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((r&14)===14){this.addFormatting(e.pts,["i"])}if((r&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(n,r)){this.column_+=r&3}else if(this.isPAC(n,r)){var s=g.indexOf(t&7968);if(this.mode_==="rollUp"){this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(r&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(r)){if((r&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(n)){if(r===0){r=null}a=h(n);a+=h(r);this[this.mode_](e.pts,a);this.column_+=a.length}}};y.prototype=new r;y.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){return e.trim()}).join("\n").replace(/^\n+|\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};y.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=m();this.nonDisplayed_=m();this.lastControlCode_=null;this.column_=0;this.row_=v;this.rollUpRows_=2;this.formatting_=[]};y.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};y.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};y.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&(t>=32&&t<=63)};y.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&(t>=32&&t<=47)};y.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&(t>=33&&t<=35)};y.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&(t>=64&&t<=127)};y.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};y.prototype.isNormalChar=function(e){return e>=32&&e<=127};y.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=v;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=m();this.displayed_=m()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};y.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};y.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};y.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};y.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};y.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<v+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};y.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var _={CaptionStream:f,Cea608Stream:y};var b=_.CaptionStream;var S={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var T=function(e,t,i){var n,r="";for(n=t;n<i;n++){r+="%"+("00"+e[n].toString(16)).slice(-2)}return r},E=function(e,t,i){return decodeURIComponent(T(e,t,i))},w=function(e,t,i){return unescape(T(e,t,i))},k=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},I={TXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=E(e.data,1,t);e.value=E(e.data,t+1,e.data.length).replace(/\0*$/,"");break}}e.data=e.value},WXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=E(e.data,1,t);e.url=E(e.data,t+1,e.data.length);break}}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++){if(e.data[t]===0){e.owner=w(e.data,0,t);break}}e.privateData=e.data.subarray(t+1);e.data=e.privateData}},A;A=function(e){var t={debug:!!(e&&e.debug),descriptor:e&&e.descriptor},i=0,n=[],r=0,a;A.prototype.init.call(this);this.dispatchType=S.METADATA_STREAM_TYPE.toString(16);if(t.descriptor){for(a=0;a<t.descriptor.length;a++){this.dispatchType+=("00"+t.descriptor[a].toString(16)).slice(-2)}}this.push=function(e){var a,s,o,l,u,d;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){r=0;n.length=0}if(n.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){if(t.debug){console.log("Skipping unrecognized metadata packet")}return}n.push(e);r+=e.data.byteLength;if(n.length===1){i=k(e.data.subarray(6,10));i+=10}if(r<i){return}a={data:new Uint8Array(i),frames:[],pts:n[0].pts,dts:n[0].dts};for(u=0;u<i;){a.data.set(n[0].data.subarray(0,i-u),u);u+=n[0].data.byteLength;r-=n[0].data.byteLength;n.shift()}s=10;if(a.data[5]&64){s+=4;s+=k(a.data.subarray(10,14));i-=k(a.data.subarray(16,20))}do{o=k(a.data.subarray(s+4,s+8));if(o<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}d=String.fromCharCode(a.data[s],a.data[s+1],a.data[s+2],a.data[s+3]);l={id:d,data:a.data.subarray(s+10,s+o+10)};l.key=l.id;if(I[l.id]){I[l.id](l);if(l.owner==="com.apple.streaming.transportStreamTimestamp"){var c=l.data,f=(c[3]&1)<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;f*=4;f+=c[7]&3;l.timeStamp=f;if(a.pts===undefined&&a.dts===undefined){a.pts=l.timeStamp;a.dts=l.timeStamp}this.trigger("timestamp",l)}}a.frames.push(l);s+=10;s+=o}while(s<i);this.trigger("data",a)}};A.prototype=new r;var C=A;var j=function e(t,i){var n={id:i.index+"",width:i.width,height:i.height,bandwidth:i.bitrate,isEnabled_:true};n.enabled=function(e){if(typeof e==="undefined"){return n.isEnabled_}if(e===n.isEnabled_){return}if(e===true||e===false){n.isEnabled_=e;t()}};return n};var P=function e(t){var i=null;var n=function e(){var n=i.filter(function(e){return e.enabled()});if(n.length===i.length||n.length===0){t.el_.vjs_setProperty("autoLevelCapping",-1);t.el_.vjs_setProperty("level",-1);return}if(n.length===1){t.el_.vjs_setProperty("level",parseInt(n[0].id,10));t.el_.vjs_setProperty("autoLevelCapping",-1);return}var r=n[n.length-1].id;t.el_.vjs_setProperty("autoLevelCapping",parseInt(r,10));t.el_.vjs_setProperty("level",-1)};return function(){if(!i){var e=t.el_.vjs_getProperty("levels");i=e.filter(function(e){return!e.audio}).map(j.bind(null,n))}return i}};var x=function e(t){var i=t.el_.vjs_getProperty("audioTracks");var n=t.audioTracks();var r=null;for(var a=0;a<n.length;a++){if(n[a].enabled){r=n[a].id;break}}if(r===null){return}for(var s=0;s<i.length;s++){if(r===i[s].title){t.el_.vjs_setProperty("audioTrack",s);return}}};var L=function e(t){var n=t.el_.vjs_getProperty("altAudioTracks");var r=t.el_.vjs_getProperty("audioTracks");var a=t.el_.vjs_getProperty("audioTrack");r.forEach(function(e,r){var s=n[e.id];t.audioTracks().addTrack(new i.AudioTrack({id:s.name,enabled:a===r,language:s.lang,default:s.default_track,label:s.name}))})};var O="1.4.8";var D=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){i.log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){i.log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){i.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var R=function e(t,i,n){var r=t.remoteTextTracks()||[];for(var a=0;a<r.length;a++){var s=r[a];if(s.kind===i&&s.label===n){t.removeRemoteTextTrack(s)}}};var N=function e(t){var i=new Uint8Array(t.length);for(var n=0;n<t.length;n++){i[n]=t.charCodeAt(n)}return i};var M=function e(t,i,n){var r;var a;if(!n){return}if(!n.cues){return}r=n.cues.length;while(r--){a=n.cues[r];if(a.startTime<=i&&a.endTime>=t){n.removeCue(a)}}};var U=function e(t,i){if(t.length){M(0,t.start(0),i)}};var B=function e(t,i){var n=-1;for(var r=0;r<t.length;r++){if(t[r].id===i){n=r;break}}t.selectedIndex_=n;t.trigger({selectedIndex:n,type:"change"})};var F=1/30;var V=function e(t,n){var r=[];if(t&&t.length){for(var a=0;a<t.length;a++){if(n(t.start(a),t.end(a))){r.push([t.start(a),t.end(a)])}}}return i.createTimeRanges(r)};var q=function e(t,i){return V(t,function(e,t){return e-F<=i&&t+F>=i})};var H=function(){function e(e,t,n){var r=this;if(t.options_&&t.options_.playerId){var a=i(t.options_.playerId);if(!a.hasOwnProperty("hls")){Object.defineProperty(a,"hls",{get:function e(){i.log.warn("player.hls is deprecated. Use player.tech_.hls instead.");t.trigger({type:"usage",name:"flashls-player-access"});return r}})}}Object.defineProperties(this,{stats:{get:function e(){return this.tech_.el_.vjs_getProperty("stats")}},bandwidth:{get:function e(){return this.tech_.el_.vjs_getProperty("stats").bandwidth}}});this.tech_=t;this.metadataTrack_=null;this.inbandTextTracks_={};this.metadataStream_=new C;this.captionStream_=new b;this.offsetPts=null;this.offsetDts=null;this.onLoadedmetadata_=this.onLoadedmetadata_.bind(this);this.onSeeking_=this.onSeeking_.bind(this);this.onId3updated_=this.onId3updated_.bind(this);this.onCaptionData_=this.onCaptionData_.bind(this);this.onMetadataStreamData_=this.onMetadataStreamData_.bind(this);this.onCaptionStreamData_=this.onCaptionStreamData_.bind(this);this.onLevelSwitch_=this.onLevelSwitch_.bind(this);this.onLevelLoaded_=this.onLevelLoaded_.bind(this);this.onFragmentLoaded_=this.onFragmentLoaded_.bind(this);this.onAudioTrackChanged=this.onAudioTrackChanged.bind(this);this.onPlay_=this.onPlay_.bind(this);this.tech_.on("loadedmetadata",this.onLoadedmetadata_);this.tech_.on("seeking",this.onSeeking_);this.tech_.on("id3updated",this.onId3updated_);this.tech_.on("captiondata",this.onCaptionData_);this.tech_.on("levelswitch",this.onLevelSwitch_);this.tech_.on("levelloaded",this.onLevelLoaded_);this.tech_.on("fragmentloaded",this.onFragmentLoaded_);this.tech_.on("play",this.onPlay_);this.metadataStream_.on("data",this.onMetadataStreamData_);this.captionStream_.on("data",this.onCaptionStreamData_);this.playlists=new i.EventTarget;this.playlists.media=function(){return r.media_()}}var n=e.prototype;n.src=function e(t){if(!t){return}this.tech_.setSrc(t.src)};n.onPlay_=function e(){if(this.tech_.duration()===Infinity){var t=this.seekable();if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};n.seekable=function e(){var t=this.tech_.el_.vjs_getProperty("seekableStart");var n=this.tech_.el_.vjs_getProperty("seekableEnd");if(n===0){return i.createTimeRange()}return i.createTimeRange(t,n)};n.media_=function e(){var t=this.tech_.el_.vjs_getProperty("levels");var i=this.tech_.el_.vjs_getProperty("level");var n;if(t.length){n={resolvedUri:t[i].url,attributes:{BANDWIDTH:t[i].bitrate,RESOLUTION:{width:t[i].width,height:t[i].height}}}}return n};n.onLoadedmetadata_=function e(){var t=this;this.representations=P(this.tech_);var n=i.players[this.tech_.options_.playerId];if(n&&n.qualityLevels){this.qualityLevels_=n.qualityLevels();this.representations().forEach(function(e){t.qualityLevels_.addQualityLevel(e)});B(this.qualityLevels_,this.tech_.el_.vjs_getProperty("level")+"")}L(this.tech_);this.tech_.audioTracks().on("change",this.onAudioTrackChanged)};n.onAudioTrackChanged=function e(){x(this.tech_)};n.onLevelSwitch_=function e(t,i){if(this.qualityLevels_){B(this.qualityLevels_,i[0].levelIndex+"")}this.playlists.trigger("mediachange");this.tech_.trigger({type:"mediachange",bubbles:true})};n.onLevelLoaded_=function e(){this.playlists.trigger("loadedplaylist")};n.onFragmentLoaded_=function e(){this.tech_.trigger("bandwidthupdate");this.captionStream_.flush()};n.onSeeking_=function e(){var t=this;M(0,Infinity,this.metadataTrack_);var i=q(this.tech_.buffered(),this.tech_.currentTime());if(!i.length){Object.keys(this.inbandTextTracks_).forEach(function(e){M(0,Infinity,t.inbandTextTracks_[e])});this.captionStream_.reset()}};n.onId3updated_=function e(i,n){var r=t.atob(n[0]);var a=N(r);var s={type:"timed-metadata",dataAlignmentIndicator:true,data:a};this.metadataStream_.push(s)};n.onMetadataStreamData_=function e(i){var n=this;if(!this.metadataTrack_){this.metadataTrack_=this.tech_.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;this.metadataTrack_.inBandMetadataTrackDispatchType="15"}U(this.tech_.buffered(),this.metadataTrack_);var r=this.tech_.currentTime();i.frames.forEach(function(e){var i=new t.VTTCue(r,r+.1,e.value||e.url||e.data||"");i.frame=e;i.value=e;D(i);n.metadataTrack_.addCue(i)});if(this.metadataTrack_.cues&&this.metadataTrack_.cues.length){var a=this.metadataTrack_.cues;var s=[];var o=this.tech_.duration();if(isNaN(o)||Math.abs(o)===Infinity){o=Number.MAX_VALUE}for(var l=0;l<a.length;l++){s.push(a[l])}s.sort(function(e,t){return e.startTime-t.startTime});for(var u=0;u<s.length-1;u++){if(s[u].endTime!==s[u+1].startTime){s[u].endTime=s[u+1].startTime}}s[s.length-1].endTime=o}};n.onCaptionData_=function e(i,n){var r=this;n[0].forEach(function(e){if(!r.offsetPts){r.offsetPts=e.pos}if(!r.offsetDts){r.offsetDts=e.dts}r.captionStream_.push({pts:(e.pos-r.offsetPts)*9e4,dts:(e.dts-r.offsetDts)*9e4,escapedRBSP:N(t.atob(e.data)),nalUnitType:"sei_rbsp"})})};n.onCaptionStreamData_=function e(i){if(i){if(!this.inbandTextTracks_[i.stream]){R(this.tech_,"captions",i.stream);this.inbandTextTracks_[i.stream]=this.tech_.addRemoteTextTrack({kind:"captions",label:i.stream,id:i.stream},false).track}U(this.tech_.buffered(),this.inbandTextTracks_[i.stream]);this.inbandTextTracks_[i.stream].addCue(new t.VTTCue(i.startPts/9e4,i.endPts/9e4,i.text))}};n.dispose=function e(){this.tech_.off("loadedmetadata",this.onLoadedmetadata_);this.tech_.off("seeked",this.onSeeking_);this.tech_.off("id3updated",this.onId3updated_);this.tech_.off("captiondata",this.onCaptionData_);this.tech_.audioTracks().off("change",this.onAudioTrackChanged);this.tech_.off("levelswitch",this.onLevelSwitch_);this.tech_.off("levelloaded",this.onLevelLoaded_);this.tech_.off("fragmentloaded",this.onFragmentLoaded_);this.tech_.off("play",this.onPlay_);if(this.qualityLevels_){this.qualityLevels_.dispose()}};return e}();var G={};var z=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;G.canPlayType=function(e){return z.test(e)?"maybe":""};G.canHandleSource=function(e,t){return G.canPlayType(e.type)==="maybe"};G.handleSource=function(e,t,i){t.hls=new H(e,t,i);t.hls.src(e);return t.hls};i.getTech("Flash").registerSourceHandler(G,0);G.VERSION=O;e.FlashlsHandler=H;e.default=G;Object.defineProperty(e,"__esModule",{value:true})});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("video.js"),require("@xmldom/xmldom")):typeof define==="function"&&define.amd?define(["exports","video.js","@xmldom/xmldom"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.httpStreaming={},e.videojs,e.window))})(this,function(e,t,i){"use strict";function n(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var r=n(t);function a(e,t,i){return i={path:t,exports:{},require:function(e,t){return s(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function s(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var o=a(function(e){function t(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var l=a(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};e.exports["default"]=e.exports,e.exports.__esModule=true;return t(i,n)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var u=a(function(e){function t(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;l(e,t)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var d=a(function(e,t){(function(t){var i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/;var n=/^([^\/?#]*)([^]*)$/;var r=/(?:\/|^)\.(?=\/)/g;var a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g;var s={buildAbsoluteURL:function e(t,i,r){r=r||{};t=t.trim();i=i.trim();if(!i){if(!r.alwaysNormalize){return t}var a=s.parseURL(t);if(!a){throw new Error("Error trying to parse base URL.")}a.path=s.normalizePath(a.path);return s.buildURLFromParts(a)}var o=s.parseURL(i);if(!o){throw new Error("Error trying to parse relative URL.")}if(o.scheme){if(!r.alwaysNormalize){return i}o.path=s.normalizePath(o.path);return s.buildURLFromParts(o)}var l=s.parseURL(t);if(!l){throw new Error("Error trying to parse base URL.")}if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=n.exec(l.path);l.netLoc=u[1];l.path=u[2]}if(l.netLoc&&!l.path){l.path="/"}var d={scheme:l.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc){d.netLoc=l.netLoc;if(o.path[0]!=="/"){if(!o.path){d.path=l.path;if(!o.params){d.params=l.params;if(!o.query){d.query=l.query}}}else{var c=l.path;var f=c.substring(0,c.lastIndexOf("/")+1)+o.path;d.path=s.normalizePath(f)}}}if(d.path===null){d.path=r.alwaysNormalize?s.normalizePath(o.path):o.path}return s.buildURLFromParts(d)},parseURL:function e(t){var n=i.exec(t);if(!n){return null}return{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}},normalizePath:function e(t){t=t.split("").reverse().join("").replace(r,"");while(t.length!==(t=t.replace(a,"")).length){}return t.split("").reverse().join("")},buildURLFromParts:function e(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};e.exports=s})()});var c="http://example.com";var f=function e(t,i){if(/^[a-z]+:/i.test(i)){return i}if(/^data:/.test(t)){t=window.location&&window.location.href||""}var n=typeof window.URL==="function";var r=/^\/\//.test(t);var a=!window.location&&!/\/\//i.test(t);if(n){t=new window.URL(t,window.location||c)}else if(!/\/\//i.test(t)){t=d.buildAbsoluteURL(window.location&&window.location.href||"",t)}if(n){var s=new URL(i,t);if(a){return s.href.slice(c.length)}else if(r){return s.href.slice(s.protocol.length)}return s.href}return d.buildAbsoluteURL(t,i)};var p=f;var h=function e(t,i,n){if(t&&n&&n.responseURL&&i!==n.responseURL){return n.responseURL}return i};var v=function e(t){if(r["default"].log.debug){return r["default"].log.debug.bind(r["default"],"VHS:",t+" >")}return function(){}};var g=a(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){e[n]=i[n]}}}return e};e.exports["default"]=e.exports,e.exports.__esModule=true;return t.apply(this,arguments)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var m=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var n=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(n,1);return n>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var n=i.length;for(var r=0;r<n;++r){i[r].call(this,arguments[1])}}else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();var y=function e(t){return window.atob?window.atob(t):Buffer.from(t,"base64").toString("binary")};function _(e){var t=y(e);var i=new Uint8Array(t.length);for(var n=0;n<t.length;n++){i[n]=t.charCodeAt(n)}return i}var b=function(e){u(t,e);function t(){var t;t=e.call(this)||this;t.buffer="";return t}var i=t.prototype;i.push=function e(t){var i;this.buffer+=t;i=this.buffer.indexOf("\n");for(;i>-1;i=this.buffer.indexOf("\n")){this.trigger("data",this.buffer.substring(0,i));this.buffer=this.buffer.substring(i+1)}};return t}(m);var S=String.fromCharCode(9);var T=function e(t){var i=/([0-9.]*)?@?([0-9.]*)?/.exec(t||"");var n={};if(i[1]){n.length=parseInt(i[1],10)}if(i[2]){n.offset=parseInt(i[2],10)}return n};var E=function e(){var t="[^=]*";var i='"[^"]*"|[^,]*';var n="(?:"+t+")=(?:"+i+")";return new RegExp("(?:^|,)("+n+")")};var w=function e(t){var i=t.split(E());var n={};var r=i.length;var a;while(r--){if(i[r]===""){continue}a=/([^=]*)=(.*)/.exec(i[r]).slice(1);a[0]=a[0].replace(/^\s+|\s+$/g,"");a[1]=a[1].replace(/^\s+|\s+$/g,"");a[1]=a[1].replace(/^['"](.*)['"]$/g,"$1");n[a[0]]=a[1]}return n};var k=function(e){u(t,e);function t(){var t;t=e.call(this)||this;t.customParsers=[];t.tagMappers=[];return t}var i=t.prototype;i.push=function e(t){var i=this;var n;var r;t=t.trim();if(t.length===0){return}if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}var a=this.tagMappers.reduce(function(e,i){var n=i(t);if(n===t){return e}return e.concat([n])},[t]);a.forEach(function(e){for(var t=0;t<i.customParsers.length;t++){if(i.customParsers[t].call(i,e)){return}}if(e.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:e.slice(1)});return}e=e.replace("\r","");n=/^#EXTM3U/.exec(e);if(n){i.trigger("data",{type:"tag",tagType:"m3u"});return}n=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e);if(n){r={type:"tag",tagType:"inf"};if(n[1]){r.duration=parseFloat(n[1])}if(n[2]){r.title=n[2]}i.trigger("data",r);return}n=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e);if(n){r={type:"tag",tagType:"targetduration"};if(n[1]){r.duration=parseInt(n[1],10)}i.trigger("data",r);return}n=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e);if(n){r={type:"tag",tagType:"version"};if(n[1]){r.version=parseInt(n[1],10)}i.trigger("data",r);return}n=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e);if(n){r={type:"tag",tagType:"media-sequence"};if(n[1]){r.number=parseInt(n[1],10)}i.trigger("data",r);return}n=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e);if(n){r={type:"tag",tagType:"discontinuity-sequence"};if(n[1]){r.number=parseInt(n[1],10)}i.trigger("data",r);return}n=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e);if(n){r={type:"tag",tagType:"playlist-type"};if(n[1]){r.playlistType=n[1]}i.trigger("data",r);return}n=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e);if(n){r=g(T(n[1]),{type:"tag",tagType:"byterange"});i.trigger("data",r);return}n=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e);if(n){r={type:"tag",tagType:"allow-cache"};if(n[1]){r.allowed=!/NO/.test(n[1])}i.trigger("data",r);return}n=/^#EXT-X-MAP:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"map"};if(n[1]){var a=w(n[1]);if(a.URI){r.uri=a.URI}if(a.BYTERANGE){r.byterange=T(a.BYTERANGE)}}i.trigger("data",r);return}n=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"stream-inf"};if(n[1]){r.attributes=w(n[1]);if(r.attributes.RESOLUTION){var s=r.attributes.RESOLUTION.split("x");var o={};if(s[0]){o.width=parseInt(s[0],10)}if(s[1]){o.height=parseInt(s[1],10)}r.attributes.RESOLUTION=o}if(r.attributes.BANDWIDTH){r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)}if(r.attributes["PROGRAM-ID"]){r.attributes["PROGRAM-ID"]=parseInt(r.attributes["PROGRAM-ID"],10)}}i.trigger("data",r);return}n=/^#EXT-X-MEDIA:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"media"};if(n[1]){r.attributes=w(n[1])}i.trigger("data",r);return}n=/^#EXT-X-ENDLIST/.exec(e);if(n){i.trigger("data",{type:"tag",tagType:"endlist"});return}n=/^#EXT-X-DISCONTINUITY/.exec(e);if(n){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}n=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"program-date-time"};if(n[1]){r.dateTimeString=n[1];r.dateTimeObject=new Date(n[1])}i.trigger("data",r);return}n=/^#EXT-X-KEY:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"key"};if(n[1]){r.attributes=w(n[1]);if(r.attributes.IV){if(r.attributes.IV.substring(0,2).toLowerCase()==="0x"){r.attributes.IV=r.attributes.IV.substring(2)}r.attributes.IV=r.attributes.IV.match(/.{8}/g);r.attributes.IV[0]=parseInt(r.attributes.IV[0],16);r.attributes.IV[1]=parseInt(r.attributes.IV[1],16);r.attributes.IV[2]=parseInt(r.attributes.IV[2],16);r.attributes.IV[3]=parseInt(r.attributes.IV[3],16);r.attributes.IV=new Uint32Array(r.attributes.IV)}}i.trigger("data",r);return}n=/^#EXT-X-START:?(.*)$/.exec(e);if(n){r={type:"tag",tagType:"start"};if(n[1]){r.attributes=w(n[1]);r.attributes["TIME-OFFSET"]=parseFloat(r.attributes["TIME-OFFSET"]);r.attributes.PRECISE=/YES/.test(r.attributes.PRECISE)}i.trigger("data",r);return}n=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e);if(n){r={type:"tag",tagType:"cue-out-cont"};if(n[1]){r.data=n[1]}else{r.data=""}i.trigger("data",r);return}n=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e);if(n){r={type:"tag",tagType:"cue-out"};if(n[1]){r.data=n[1]}else{r.data=""}i.trigger("data",r);return}n=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e);if(n){r={type:"tag",tagType:"cue-in"};if(n[1]){r.data=n[1]}else{r.data=""}i.trigger("data",r);return}n=/^#EXT-X-SKIP:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"skip"};r.attributes=w(n[1]);if(r.attributes.hasOwnProperty("SKIPPED-SEGMENTS")){r.attributes["SKIPPED-SEGMENTS"]=parseInt(r.attributes["SKIPPED-SEGMENTS"],10)}if(r.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")){r.attributes["RECENTLY-REMOVED-DATERANGES"]=r.attributes["RECENTLY-REMOVED-DATERANGES"].split(S)}i.trigger("data",r);return}n=/^#EXT-X-PART:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"part"};r.attributes=w(n[1]);["DURATION"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseFloat(r.attributes[e])}});["INDEPENDENT","GAP"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=/YES/.test(r.attributes[e])}});if(r.attributes.hasOwnProperty("BYTERANGE")){r.attributes.byterange=T(r.attributes.BYTERANGE)}i.trigger("data",r);return}n=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"server-control"};r.attributes=w(n[1]);["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseFloat(r.attributes[e])}});["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=/YES/.test(r.attributes[e])}});i.trigger("data",r);return}n=/^#EXT-X-PART-INF:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"part-inf"};r.attributes=w(n[1]);["PART-TARGET"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseFloat(r.attributes[e])}});i.trigger("data",r);return}n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"preload-hint"};r.attributes=w(n[1]);["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseInt(r.attributes[e],10);var t=e==="BYTERANGE-LENGTH"?"length":"offset";r.attributes.byterange=r.attributes.byterange||{};r.attributes.byterange[t]=r.attributes[e];delete r.attributes[e]}});i.trigger("data",r);return}n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e);if(n&&n[1]){r={type:"tag",tagType:"rendition-report"};r.attributes=w(n[1]);["LAST-MSN","LAST-PART"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseInt(r.attributes[e],10)}});i.trigger("data",r);return}i.trigger("data",{type:"tag",data:e.slice(4)})})};i.addParser=function e(t){var i=this;var n=t.expression,r=t.customType,a=t.dataParser,s=t.segment;if(typeof a!=="function"){a=function e(t){return t}}this.customParsers.push(function(e){var t=n.exec(e);if(t){i.trigger("data",{type:"custom",data:a(e),customType:r,segment:s});return true}})};i.addTagMapper=function e(t){var i=t.expression,n=t.map;var r=function e(t){if(i.test(t)){return n(t)}return t};this.tagMappers.push(r)};return t}(m);var I=function e(t){return t.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})};var A=function e(t){var i={};Object.keys(t).forEach(function(e){i[I(e)]=t[e]});return i};var C=function e(t){var i=t.serverControl,n=t.targetDuration,r=t.partTargetDuration;if(!i){return}var a="#EXT-X-SERVER-CONTROL";var s="holdBack";var o="partHoldBack";var l=n&&n*3;var u=r&&r*2;if(n&&!i.hasOwnProperty(s)){i[s]=l;this.trigger("info",{message:a+" defaulting HOLD-BACK to targetDuration * 3 ("+l+")."})}if(l&&i[s]<l){this.trigger("warn",{message:a+" clamping HOLD-BACK ("+i[s]+") to targetDuration * 3 ("+l+")"});i[s]=l}if(r&&!i.hasOwnProperty(o)){i[o]=r*3;this.trigger("info",{message:a+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+i[o]+")."})}if(r&&i[o]<u){this.trigger("warn",{message:a+" clamping PART-HOLD-BACK ("+i[o]+") to partTargetDuration * 2 ("+u+")."});i[o]=u}};var j=function(e){u(t,e);function t(){var t;t=e.call(this)||this;t.lineStream=new b;t.parseStream=new k;t.lineStream.pipe(t.parseStream);var i=o(t);var n=[];var r={};var a;var s;var l=false;var u=function e(){};var d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};var c="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";var f=0;t.manifest={allowCache:true,discontinuityStarts:[],segments:[]};var p=0;var h=0;t.on("end",function(){if(r.uri||!r.parts&&!r.preloadHints){return}if(!r.map&&a){r.map=a}if(!r.key&&s){r.key=s}if(!r.timeline&&typeof f==="number"){r.timeline=f}t.manifest.preloadSegment=r});t.parseStream.on("data",function(e){var t;var o;({tag:function v(){(({version:function t(){if(e.version){this.manifest.version=e.version}},"allow-cache":function t(){this.manifest.allowCache=e.allowed;if(!("allowed"in e)){this.trigger("info",{message:"defaulting allowCache to YES"});this.manifest.allowCache=true}},byterange:function t(){var t={};if("length"in e){r.byterange=t;t.length=e.length;if(!("offset"in e)){e.offset=p}}if("offset"in e){r.byterange=t;t.offset=e.offset}p=t.offset+t.length},endlist:function e(){this.manifest.endList=true},inf:function t(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0;this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0;this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}if(e.duration>0){r.duration=e.duration}if(e.duration===0){r.duration=.01;this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=n},key:function t(){if(!e.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(e.attributes.METHOD==="NONE"){s=null;return}if(!e.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(e.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{};this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes};return}if(e.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{};this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI};return}if(e.attributes.KEYFORMAT===c){var i=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];if(i.indexOf(e.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(e.attributes.METHOD==="SAMPLE-AES-CENC"){this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"})}if(e.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(e.attributes.KEYID&&e.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{};this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:_(e.attributes.URI.split(",")[1])};return}if(!e.attributes.METHOD){this.trigger("warn",{message:"defaulting key method to AES-128"})}s={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI};if(typeof e.attributes.IV!=="undefined"){s.iv=e.attributes.IV}},"media-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});return}this.manifest.discontinuitySequence=e.number;f=e.number},"playlist-type":function t(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});return}this.manifest.playlistType=e.playlistType},map:function t(){a={};if(e.uri){a.uri=e.uri}if(e.byterange){a.byterange=e.byterange}if(s){a.key=s}},"stream-inf":function t(){this.manifest.playlists=n;this.manifest.mediaGroups=this.manifest.mediaGroups||d;if(!e.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}if(!r.attributes){r.attributes={}}g(r.attributes,e.attributes)},media:function i(){this.manifest.mediaGroups=this.manifest.mediaGroups||d;if(!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{};t=n[e.attributes["GROUP-ID"]];o={default:/yes/i.test(e.attributes.DEFAULT)};if(o.default){o.autoselect=true}else{o.autoselect=/yes/i.test(e.attributes.AUTOSELECT)}if(e.attributes.LANGUAGE){o.language=e.attributes.LANGUAGE}if(e.attributes.URI){o.uri=e.attributes.URI}if(e.attributes["INSTREAM-ID"]){o.instreamId=e.attributes["INSTREAM-ID"]}if(e.attributes.CHARACTERISTICS){o.characteristics=e.attributes.CHARACTERISTICS}if(e.attributes.FORCED){o.forced=/yes/i.test(e.attributes.FORCED)}t[e.attributes.NAME]=o},discontinuity:function e(){f+=1;r.discontinuity=true;this.manifest.discontinuityStarts.push(n.length)},"program-date-time":function t(){if(typeof this.manifest.dateTimeString==="undefined"){this.manifest.dateTimeString=e.dateTimeString;this.manifest.dateTimeObject=e.dateTimeObject}r.dateTimeString=e.dateTimeString;r.dateTimeObject=e.dateTimeObject},targetduration:function t(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});return}this.manifest.targetDuration=e.duration;C.call(this,this.manifest)},start:function t(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function t(){r.cueOut=e.data},"cue-out-cont":function t(){r.cueOutCont=e.data},"cue-in":function t(){r.cueIn=e.data},skip:function t(){this.manifest.skip=A(e.attributes);this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function t(){var i=this;l=true;var n=this.manifest.segments.length;var t=A(e.attributes);r.parts=r.parts||[];r.parts.push(t);if(t.byterange){if(!t.byterange.hasOwnProperty("offset")){t.byterange.offset=h}h=t.byterange.offset+t.byterange.length}var a=r.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+a+" for segment #"+n,e.attributes,["URI","DURATION"]);if(this.manifest.renditionReports){this.manifest.renditionReports.forEach(function(e,t){if(!e.hasOwnProperty("lastPart")){i.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+t+" lacks required attribute(s): LAST-PART"})}})}},"server-control":function t(){var i=this.manifest.serverControl=A(e.attributes);if(!i.hasOwnProperty("canBlockReload")){i.canBlockReload=false;this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})}C.call(this,this.manifest);if(i.canSkipDateranges&&!i.hasOwnProperty("canSkipUntil")){this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})}},"preload-hint":function t(){var i=this.manifest.segments.length;var n=A(e.attributes);var a=n.type&&n.type==="PART";r.preloadHints=r.preloadHints||[];r.preloadHints.push(n);if(n.byterange){if(!n.byterange.hasOwnProperty("offset")){n.byterange.offset=a?h:0;if(a){h=n.byterange.offset+n.byterange.length}}}var s=r.preloadHints.length-1;this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+s+" for segment #"+i,e.attributes,["TYPE","URI"]);if(!n.type){return}for(var o=0;o<r.preloadHints.length-1;o++){var l=r.preloadHints[o];if(!l.type){continue}if(l.type===n.type){this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+s+" for segment #"+i+" has the same TYPE "+n.type+" as preload hint #"+o})}}},"rendition-report":function t(){var i=A(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[];this.manifest.renditionReports.push(i);var n=this.manifest.renditionReports.length-1;var r=["LAST-MSN","URI"];if(l){r.push("LAST-PART")}this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,r)},"part-inf":function t(){this.manifest.partInf=A(e.attributes);this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]);if(this.manifest.partInf.partTarget){this.manifest.partTargetDuration=this.manifest.partInf.partTarget}C.call(this,this.manifest)}})[e.tagType]||u).call(i)},uri:function t(){r.uri=e.uri;n.push(r);if(this.manifest.targetDuration&&!("duration"in r)){this.trigger("warn",{message:"defaulting segment duration to the target duration"});r.duration=this.manifest.targetDuration}if(s){r.key=s}r.timeline=f;if(a){r.map=a}h=0;r={}},comment:function e(){},custom:function t(){if(e.segment){r.custom=r.custom||{};r.custom[e.customType]=e.data}else{this.manifest.custom=this.manifest.custom||{};this.manifest.custom[e.customType]=e.data}}})[e.type].call(i)});return t}var i=t.prototype;i.warnOnMissingAttributes_=function e(t,i,n){var r=[];n.forEach(function(e){if(!i.hasOwnProperty(e)){r.push(e)}});if(r.length){this.trigger("warn",{message:t+" lacks required attribute(s): "+r.join(", ")})}};i.push=function e(t){this.lineStream.push(t)};i.end=function e(){this.lineStream.push("\n");this.trigger("end")};i.addParser=function e(t){this.parseStream.addParser(t)};i.addTagMapper=function e(t){this.parseStream.addTagMapper(t)};return t}(m);var P={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/};var x=["video","audio","text"];var L=["Video","Audio","Text"];var O=function e(t){if(!t){return t}return t.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2);var r=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+r})};var D=function e(t){if(t===void 0){t=""}var i=t.split(",");var n=[];i.forEach(function(e){e=e.trim();var t;x.forEach(function(i){var r=P[i].exec(e.toLowerCase());if(!r||r.length<=1){return}t=i;var a=e.substring(0,r[1].length);var s=e.replace(a,"");n.push({type:a,details:s,mediaType:i})});if(!t){n.push({type:e,details:"",mediaType:"unknown"})}});return n};var R=function e(t,i){if(!t.mediaGroups.AUDIO||!i){return null}var n=t.mediaGroups.AUDIO[i];if(!n){return null}for(var r in n){var a=n[r];if(a.default&&a.playlists){return D(a.playlists[0].attributes.CODECS)}}return null};var N=function e(t){if(t===void 0){t=""}return P.audio.test(t.trim().toLowerCase())};var M=function e(t){if(t===void 0){t=""}return P.text.test(t.trim().toLowerCase())};var U=function e(t){if(!t||typeof t!=="string"){return}var i=t.toLowerCase().split(",").map(function(e){return O(e.trim())});var n="video";if(i.length===1&&N(i[0])){n="audio"}else if(i.length===1&&M(i[0])){n="application"}var r="mp4";if(i.every(function(e){return P.mp4.test(e)})){r="mp4"}else if(i.every(function(e){return P.webm.test(e)})){r="webm"}else if(i.every(function(e){return P.ogg.test(e)})){r="ogg"}return n+"/"+r+';codecs="'+t+'"'};var B=function e(t){if(t===void 0){t=""}return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported(U(t))||false};var F=function e(t){if(t===void 0){t=""}return t.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<L.length;t++){var i=L[t];if(P["muxer"+i].test(e)){return true}}return false})};var V="mp4a.40.2";var q="avc1.4d400d";var H=1/30;var G=H*3;var z=function e(t,i){var n=[];var a;if(t&&t.length){for(a=0;a<t.length;a++){if(i(t.start(a),t.end(a))){n.push([t.start(a),t.end(a)])}}}return r["default"].createTimeRanges(n)};var W=function e(t,i){return z(t,function(e,t){return e-G<=i&&t+G>=i})};var Y=function e(t,i){return z(t,function(e){return e-H>=i})};var K=function e(t){if(t.length<2){return r["default"].createTimeRanges()}var i=[];for(var n=1;n<t.length;n++){var a=t.end(n-1);var s=t.start(n);i.push([a,s])}return r["default"].createTimeRanges(i)};var X=function e(t,i){var n=null;var a=null;var s=0;var o=[];var l=[];if(!t||!t.length||!i||!i.length){return r["default"].createTimeRange()}var u=t.length;while(u--){o.push({time:t.start(u),type:"start"});o.push({time:t.end(u),type:"end"})}u=i.length;while(u--){o.push({time:i.start(u),type:"start"});o.push({time:i.end(u),type:"end"})}o.sort(function(e,t){return e.time-t.time});for(u=0;u<o.length;u++){if(o[u].type==="start"){s++;if(s===2){n=o[u].time}}else if(o[u].type==="end"){s--;if(s===1){a=o[u].time}}if(n!==null&&a!==null){l.push([n,a]);n=null;a=null}}return r["default"].createTimeRanges(l)};var Q=function e(t){var i=[];if(!t||!t.length){return""}for(var n=0;n<t.length;n++){i.push(t.start(n)+" => "+t.end(n))}return i.join(", ")};var J=function e(t,i,n){if(n===void 0){n=1}var r=t.length?t.end(t.length-1):0;return(r-i)/n};var Z=function e(t){var i=[];for(var n=0;n<t.length;n++){i.push({start:t.start(n),end:t.end(n)})}return i};var $=function e(t,i){if(t===i){return false}if(!t&&i||!i&&t){return true}if(t.length!==i.length){return true}for(var n=0;n<t.length;n++){if(t.start(n)!==i.start(n)||t.end(n)!==i.end(n)){return true}}return false};var ee=function e(t){if(!t||!t.length||!t.end){return}return t.end(t.length-1)};var te=function e(t,i){var n=0;if(!t||!t.length){return n}for(var r=0;r<t.length;r++){var a=t.start(r);var s=t.end(r);if(i>s){continue}if(i>a&&i<=s){n+=s-i;continue}n+=s-a}return n};var ie=r["default"].createTimeRange;var ne=function e(t,i){if(!i.preload){return i.duration}var n=0;(i.parts||[]).forEach(function(e){n+=e.duration});(i.preloadHints||[]).forEach(function(e){if(e.type==="PART"){n+=t.partTargetDuration}});return n};var re=function e(t){return(t.segments||[]).reduce(function(e,t,i){if(t.parts){t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})})}else{e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null})}return e},[])};var ae=function e(t){var i=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return i&&i.parts||[]};var se=function e(t){var i=t.preloadSegment;if(!i){return}var n=i.parts,r=i.preloadHints;var a=(r||[]).reduce(function(e,t){return e+(t.type==="PART"?1:0)},0);a+=n&&n.length?n.length:0;return a};var oe=function e(t,i){if(i.endList){return 0}if(t&&t.suggestedPresentationDelay){return t.suggestedPresentationDelay}var n=ae(i).length>0;if(n&&i.serverControl&&i.serverControl.partHoldBack){return i.serverControl.partHoldBack}else if(n&&i.partTargetDuration){return i.partTargetDuration*3}else if(i.serverControl&&i.serverControl.holdBack){return i.serverControl.holdBack}else if(i.targetDuration){return i.targetDuration*3}return 0};var le=function e(t,i){var n=0;var r=i-t.mediaSequence;var a=t.segments[r];if(a){if(typeof a.start!=="undefined"){return{result:a.start,precise:true}}if(typeof a.end!=="undefined"){return{result:a.end-a.duration,precise:true}}}while(r--){a=t.segments[r];if(typeof a.end!=="undefined"){return{result:n+a.end,precise:true}}n+=ne(t,a);if(typeof a.start!=="undefined"){return{result:n+a.start,precise:true}}}return{result:n,precise:false}};var ue=function e(t,i){var n=0;var r;var a=i-t.mediaSequence;for(;a<t.segments.length;a++){r=t.segments[a];if(typeof r.start!=="undefined"){return{result:r.start-n,precise:true}}n+=ne(t,r);if(typeof r.end!=="undefined"){return{result:r.end-n,precise:true}}}return{result:-1,precise:false}};var de=function e(t,i,n){if(typeof i==="undefined"){i=t.mediaSequence+t.segments.length}if(i<t.mediaSequence){return 0}var r=le(t,i);if(r.precise){return r.result}var a=ue(t,i);if(a.precise){return a.result}return r.result+n};var ce=function e(t,i,n){if(!t){return 0}if(typeof n!=="number"){n=0}if(typeof i==="undefined"){if(t.totalDuration){return t.totalDuration}if(!t.endList){return window.Infinity}}return de(t,i,n)};var fe=function e(t){var i=t.defaultDuration,n=t.durationList,r=t.startIndex,a=t.endIndex;var s=0;if(r>a){var o=[a,r];r=o[0];a=o[1]}if(r<0){for(var l=r;l<Math.min(0,a);l++){s+=i}r=0}for(var u=r;u<a;u++){s+=n[u].duration}return s};var pe=function e(t,i,n,r){if(!t||!t.segments){return null}if(t.endList){return ce(t)}if(i===null){return null}i=i||0;var a=de(t,t.mediaSequence+t.segments.length,i);if(n){r=typeof r==="number"?r:oe(null,t);a-=r}return Math.max(0,a)};var he=function e(t,i,n){var r=true;var a=i||0;var s=pe(t,i,r,n);if(s===null){return ie()}return ie(a,s)};var ve=function e(t){var i=t.playlist,n=t.currentTime,r=t.startingSegmentIndex,a=t.startingPartIndex,s=t.startTime,o=t.experimentalExactManifestTimings;var l=n-s;var u=re(i);var d=0;for(var c=0;c<u.length;c++){var f=u[c];if(r!==f.segmentIndex){continue}if(typeof a==="number"&&typeof f.partIndex==="number"&&a!==f.partIndex){continue}d=c;break}if(l<0){if(d>0){for(var p=d-1;p>=0;p--){var h=u[p];l+=h.duration;if(o){if(l<0){continue}}else if(l+H<=0){continue}return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:s-fe({defaultDuration:i.targetDuration,durationList:u,startIndex:d,endIndex:p})}}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}if(d<0){for(var v=d;v<0;v++){l-=i.targetDuration;if(l<0){return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}}d=0}for(var g=d;g<u.length;g++){var m=u[g];l-=m.duration;if(o){if(l>0){continue}}else if(l-H>=0){continue}return{partIndex:m.partIndex,segmentIndex:m.segmentIndex,startTime:s+fe({defaultDuration:i.targetDuration,durationList:u,startIndex:d,endIndex:g})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:n}};var ge=function e(t){return t.excludeUntil&&t.excludeUntil>Date.now()};var me=function e(t){return t.excludeUntil&&t.excludeUntil===Infinity};var ye=function e(t){var i=ge(t);return!t.disabled&&!i};var _e=function e(t){return t.disabled};var be=function e(t){for(var i=0;i<t.segments.length;i++){if(t.segments[i].key){return true}}return false};var Se=function e(t,i){return i.attributes&&i.attributes[t]};var Te=function e(t,i,n,r){if(r===void 0){r=0}if(!Se("BANDWIDTH",n)){return NaN}var a=t*n.attributes.BANDWIDTH;return(a-r*8)/i};var Ee=function e(t,i){if(t.playlists.length===1){return true}var n=i.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(function(e){if(!ye(e)){return false}return(e.attributes.BANDWIDTH||0)<n}).length===0};var we=function e(t,i){if(!t&&!i||!t&&i||t&&!i){return false}if(t===i){return true}if(t.id&&i.id&&t.id===i.id){return true}if(t.resolvedUri&&i.resolvedUri&&t.resolvedUri===i.resolvedUri){return true}if(t.uri&&i.uri&&t.uri===i.uri){return true}return false};var ke=function e(t,i){var n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{};var r=false;for(var a in n){for(var s in n[a]){r=i(n[a][s]);if(r){break}}if(r){break}}return!!r};var Ie=function e(t){if(!t||!t.playlists||!t.playlists.length){var i=ke(t,function(e){return e.playlists&&e.playlists.length||e.uri});return i}var n=function e(i){var n=t.playlists[i];var r=n.attributes&&n.attributes.CODECS;if(r&&r.split(",").every(function(e){return N(e)})){return"continue"}var a=ke(t,function(e){return we(n,e)});if(a){return"continue"}return{v:false}};for(var r=0;r<t.playlists.length;r++){var a=n(r);if(a==="continue")continue;if(typeof a==="object")return a.v}return true};var Ae={liveEdgeDelay:oe,duration:ce,seekable:he,getMediaInfoForTime:ve,isEnabled:ye,isDisabled:_e,isBlacklisted:ge,isIncompatible:me,playlistEnd:pe,isAes:be,hasAttribute:Se,estimateSegmentRequestTime:Te,isLowestEnabledRendition:Ee,isAudioOnly:Ie,playlistMatch:we,segmentDurationWithParts:ne};var Ce=r["default"].log;var je=function e(t,i){return t+"-"+i};var Pe=function e(t){var i=t.onwarn,n=t.oninfo,r=t.manifestString,a=t.customTagParsers,s=a===void 0?[]:a,o=t.customTagMappers,l=o===void 0?[]:o,u=t.experimentalLLHLS;var d=new j;if(i){d.on("warn",i)}if(n){d.on("info",n)}s.forEach(function(e){return d.addParser(e)});l.forEach(function(e){return d.addTagMapper(e)});d.push(r);d.end();var c=d.manifest;if(!u){["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){if(c.hasOwnProperty(e)){delete c[e]}});if(c.segments){c.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){if(e.hasOwnProperty(t)){delete e[t]}})})}}if(!c.targetDuration){var f=10;if(c.segments&&c.segments.length){f=c.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)}if(i){i("manifest has no targetDuration defaulting to "+f)}c.targetDuration=f}var p=ae(c);if(p.length&&!c.partTargetDuration){var h=p.reduce(function(e,t){return Math.max(e,t.duration)},0);if(i){i("manifest has no partTargetDuration defaulting to "+h);Ce.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")}c.partTargetDuration=h}return c};var xe=function e(t,i){if(!t.mediaGroups){return}["AUDIO","SUBTITLES"].forEach(function(e){if(!t.mediaGroups[e]){return}for(var n in t.mediaGroups[e]){for(var r in t.mediaGroups[e][n]){var a=t.mediaGroups[e][n][r];i(a,e,n,r)}}})};var Le=function e(t){var i=t.playlist,n=t.uri,r=t.id;i.id=r;i.playlistErrors_=0;if(n){i.uri=n}i.attributes=i.attributes||{}};var Oe=function e(t){var i=t.playlists.length;while(i--){var n=t.playlists[i];Le({playlist:n,id:je(i,n.uri)});n.resolvedUri=p(t.uri,n.uri);t.playlists[n.id]=n;t.playlists[n.uri]=n;if(!n.attributes.BANDWIDTH){Ce.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}};var De=function e(t){xe(t,function(e){if(e.uri){e.resolvedUri=p(t.uri,e.uri)}})};var Re=function e(t,i){var n=je(0,i);var r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:window.location.href,resolvedUri:window.location.href,playlists:[{uri:i,id:n,resolvedUri:i,attributes:{}}]};r.playlists[n]=r.playlists[0];r.playlists[i]=r.playlists[0];return r};var Ne=function e(t,i){t.uri=i;for(var n=0;n<t.playlists.length;n++){if(!t.playlists[n].uri){var r="placeholder-uri-"+n;t.playlists[n].uri=r}}var a=Ie(t);xe(t,function(e,i,n,r){var s="placeholder-uri-"+i+"-"+n+"-"+r;if(!e.playlists||!e.playlists.length){if(a&&i==="AUDIO"&&!e.uri){for(var o=0;o<t.playlists.length;o++){var l=t.playlists[o];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===n){return}}}e.playlists=[g({},e)]}e.playlists.forEach(function(e,i){var n=je(i,s);if(e.uri){e.resolvedUri=e.resolvedUri||p(t.uri,e.uri)}else{e.uri=i===0?s:n;e.resolvedUri=e.uri}e.id=e.id||n;e.attributes=e.attributes||{};t.playlists[e.id]=e;t.playlists[e.uri]=e})});Oe(t);De(t)};var Me=r["default"].mergeOptions,Ue=r["default"].EventTarget;var Be=function e(t,i){if(i.endList||!i.serverControl){return t}var n={};if(i.serverControl.canBlockReload){var r=i.preloadSegment;var a=i.mediaSequence+i.segments.length;if(r){var s=r.parts||[];var o=se(i)-1;if(o>-1&&o!==s.length-1){n._HLS_part=o}if(o>-1||s.length){a--}}n._HLS_msn=a}if(i.serverControl&&i.serverControl.canSkipUntil){n._HLS_skip=i.serverControl.canSkipDateranges?"v2":"YES"}if(Object.keys(n).length){var l=new window.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){if(!n.hasOwnProperty(e)){return}l.searchParams.set(e,n[e])});t=l.toString()}return t};var Fe=function e(t,i){if(!t){return i}var n=Me(t,i);if(t.preloadHints&&!i.preloadHints){delete n.preloadHints}if(t.parts&&!i.parts){delete n.parts}else if(t.parts&&i.parts){for(var r=0;r<i.parts.length;r++){if(t.parts&&t.parts[r]){n.parts[r]=Me(t.parts[r],i.parts[r])}}}if(!t.skipped&&i.skipped){n.skipped=false}if(t.preload&&!i.preload){n.preload=false}return n};var Ve=function e(t,i,n){var r=t.slice();var a=i.slice();n=n||0;var s=[];var o;for(var l=0;l<a.length;l++){var u=r[l+n];var d=a[l];if(u){o=u.map||o;s.push(Fe(u,d))}else{if(o&&!d.map){d.map=o}s.push(d)}}return s};var qe=function e(t,i){if(!t.resolvedUri&&t.uri){t.resolvedUri=p(i,t.uri)}if(t.key&&!t.key.resolvedUri){t.key.resolvedUri=p(i,t.key.uri)}if(t.map&&!t.map.resolvedUri){t.map.resolvedUri=p(i,t.map.uri)}if(t.map&&t.map.key&&!t.map.key.resolvedUri){t.map.key.resolvedUri=p(i,t.map.key.uri)}if(t.parts&&t.parts.length){t.parts.forEach(function(e){if(e.resolvedUri){return}e.resolvedUri=p(i,e.uri)})}if(t.preloadHints&&t.preloadHints.length){t.preloadHints.forEach(function(e){if(e.resolvedUri){return}e.resolvedUri=p(i,e.uri)})}};var He=function e(t){var i=t.segments||[];var n=t.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(var r=0;r<n.preloadHints.length;r++){if(n.preloadHints[r].type==="MAP"){return i}}}n.duration=t.targetDuration;n.preload=true;i.push(n)}return i};var Ge=function e(t,i){return t===i||t.segments&&i.segments&&t.segments.length===i.segments.length&&t.endList===i.endList&&t.mediaSequence===i.mediaSequence&&t.preloadSegment===i.preloadSegment};var ze=function e(t,i,n){if(n===void 0){n=Ge}var r=Me(t,{});var a=r.playlists[i.id];if(!a){return null}if(n(a,i)){return null}i.segments=He(i);var s=Me(a,i);if(s.preloadSegment&&!i.preloadSegment){delete s.preloadSegment}if(a.segments){if(i.skip){i.segments=i.segments||[];for(var o=0;o<i.skip.skippedSegments;o++){i.segments.unshift({skipped:true})}}s.segments=Ve(a.segments,i.segments,i.mediaSequence-a.mediaSequence)}s.segments.forEach(function(e){qe(e,s.resolvedUri)});for(var l=0;l<r.playlists.length;l++){if(r.playlists[l].id===i.id){r.playlists[l]=s}}r.playlists[i.id]=s;r.playlists[i.uri]=s;xe(t,function(e,t,n,r){if(!e.playlists){return}for(var a=0;a<e.playlists.length;a++){if(i.id===e.playlists[a].id){e.playlists[a]=s}}});return r};var We=function e(t,i){var n=t.segments||[];var r=n[n.length-1];var a=r&&r.parts&&r.parts[r.parts.length-1];var s=a&&a.duration||r&&r.duration;if(i&&s){return s*1e3}return(t.partTargetDuration||t.targetDuration||10)*500};var Ye=function(e){u(t,e);function t(t,i,n){var a;if(n===void 0){n={}}a=e.call(this)||this;if(!t){throw new Error("A non-empty playlist URL or object is required")}a.logger_=v("PlaylistLoader");var s=n,l=s.withCredentials,u=l===void 0?false:l,d=s.handleManifestRedirects,c=d===void 0?false:d;a.src=t;a.vhs_=i;a.withCredentials=u;a.handleManifestRedirects=c;var f=i.options_;a.customTagParsers=f&&f.customTagParsers||[];a.customTagMappers=f&&f.customTagMappers||[];a.experimentalLLHLS=f&&f.experimentalLLHLS||false;if(r["default"].browser.IE_VERSION){a.experimentalLLHLS=false}a.state="HAVE_NOTHING";a.handleMediaupdatetimeout_=a.handleMediaupdatetimeout_.bind(o(a));a.on("mediaupdatetimeout",a.handleMediaupdatetimeout_);return a}var i=t.prototype;i.handleMediaupdatetimeout_=function e(){var t=this;if(this.state!=="HAVE_METADATA"){return}var i=this.media();var n=p(this.master.uri,i.uri);if(this.experimentalLLHLS){n=Be(n,i)}this.state="HAVE_CURRENT_METADATA";this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(e,i){if(!t.request){return}if(e){return t.playlistRequestError(t.request,t.media(),"HAVE_METADATA")}t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})})};i.playlistRequestError=function e(t,i,n){var r=i.uri,a=i.id;this.request=null;if(n){this.state=n}this.error={playlist:this.master.playlists[a],status:t.status,message:"HLS playlist request error at URL: "+r+".",responseText:t.responseText,code:t.status>=500?4:2};this.trigger("error")};i.parseManifest_=function e(t){var i=this;var n=t.url,r=t.manifestString;return Pe({onwarn:function e(t){var r=t.message;return i.logger_("m3u8-parser warn for "+n+": "+r)},oninfo:function e(t){var r=t.message;return i.logger_("m3u8-parser info for "+n+": "+r)},manifestString:r,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})};i.haveMetadata=function e(t){var i=t.playlistString,n=t.playlistObject,r=t.url,a=t.id;this.request=null;this.state="HAVE_METADATA";var s=n||this.parseManifest_({url:r,manifestString:i});s.lastRequest=Date.now();Le({playlist:s,uri:r,id:a});var o=ze(this.master,s);this.targetDuration=s.partTargetDuration||s.targetDuration;this.pendingMedia_=null;if(o){this.master=o;this.media_=this.master.playlists[a]}else{this.trigger("playlistunchanged")}this.updateMediaUpdateTimeout_(We(this.media(),!!o));this.trigger("loadedplaylist")};i.dispose=function e(){this.trigger("dispose");this.stopRequest();window.clearTimeout(this.mediaUpdateTimeout);window.clearTimeout(this.finalRenditionTimeout);this.off()};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t,i){var n=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}if(typeof t==="string"){if(!this.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.master.playlists[t]}window.clearTimeout(this.finalRenditionTimeout);if(i){var r=(t.partTargetDuration||t.targetDuration)/2*1e3||5*1e3;this.finalRenditionTimeout=window.setTimeout(this.media.bind(this,t,false),r);return}var a=this.state;var s=!this.media_||t.id!==this.media_.id;var o=this.master.playlists[t.id];if(o&&o.endList||t.endList&&t.segments.length){if(this.request){this.request.onreadystatechange=null;this.request.abort();this.request=null}this.state="HAVE_METADATA";this.media_=t;if(s){this.trigger("mediachanging");if(a==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}}return}this.updateMediaUpdateTimeout_(We(t,true));if(!s){return}this.state="SWITCHING_MEDIA";if(this.request){if(t.resolvedUri===this.request.url){return}this.request.onreadystatechange=null;this.request.abort();this.request=null}if(this.media_){this.trigger("mediachanging")}this.pendingMedia_=t;this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(e,i){if(!n.request){return}t.lastRequest=Date.now();t.resolvedUri=h(n.handleManifestRedirects,t.resolvedUri,i);if(e){return n.playlistRequestError(n.request,t,a)}n.haveMetadata({playlistString:i.responseText,url:t.uri,id:t.id});if(a==="HAVE_MASTER"){n.trigger("loadedmetadata")}else{n.trigger("mediachange")}})};i.pause=function e(){if(this.mediaUpdateTimeout){window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null}this.stopRequest();if(this.state==="HAVE_NOTHING"){this.started=false}if(this.state==="SWITCHING_MEDIA"){if(this.media_){this.state="HAVE_METADATA"}else{this.state="HAVE_MASTER"}}else if(this.state==="HAVE_CURRENT_METADATA"){this.state="HAVE_METADATA"}};i.load=function e(t){var i=this;if(this.mediaUpdateTimeout){window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null}var n=this.media();if(t){var r=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5*1e3;this.mediaUpdateTimeout=window.setTimeout(function(){i.mediaUpdateTimeout=null;i.load()},r);return}if(!this.started){this.start();return}if(n&&!n.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.updateMediaUpdateTimeout_=function e(t){var i=this;if(this.mediaUpdateTimeout){window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null}if(!this.media()||this.media().endList){return}this.mediaUpdateTimeout=window.setTimeout(function(){i.mediaUpdateTimeout=null;i.trigger("mediaupdatetimeout");i.updateMediaUpdateTimeout_(t)},t)};i.start=function e(){var t=this;this.started=true;if(typeof this.src==="object"){if(!this.src.uri){this.src.uri=window.location.href}this.src.resolvedUri=this.src.uri;setTimeout(function(){t.setupInitialPlaylist(t.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,i){if(!t.request){return}t.request=null;if(e){t.error={status:i.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:i.responseText,code:2};if(t.state==="HAVE_NOTHING"){t.started=false}return t.trigger("error")}t.src=h(t.handleManifestRedirects,t.src,i);var n=t.parseManifest_({manifestString:i.responseText,url:t.src});t.setupInitialPlaylist(n)})};i.srcUri=function e(){return typeof this.src==="string"?this.src:this.src.uri};i.setupInitialPlaylist=function e(t){this.state="HAVE_MASTER";if(t.playlists){this.master=t;Ne(this.master,this.srcUri());t.playlists.forEach(function(e){e.segments=He(e);e.segments.forEach(function(t){qe(t,e.resolvedUri)})});this.trigger("loadedplaylist");if(!this.request){this.media(this.master.playlists[0])}return}var i=this.srcUri()||window.location.href;this.master=Re(t,i);this.haveMetadata({playlistObject:t,url:i,id:this.master.playlists[0].id});this.trigger("loadedmetadata")};return t}(Ue);var Ke=r["default"].xhr,Xe=r["default"].mergeOptions;var Qe=function e(t,i,n,r){var a=t.responseType==="arraybuffer"?t.response:t.responseText;if(!i&&a){t.responseTime=Date.now();t.roundTripTime=t.responseTime-t.requestTime;t.bytesReceived=a.byteLength||a.length;if(!t.bandwidth){t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3)}}if(n.headers){t.responseHeaders=n.headers}if(i&&i.code==="ETIMEDOUT"){t.timedout=true}if(!i&&!t.aborted&&n.statusCode!==200&&n.statusCode!==206&&n.statusCode!==0){i=new Error("XHR Failed with a response of: "+(t&&(a||t.responseText)))}r(i,t)};var Je=function e(){var t=function e(t,i){t=Xe({timeout:45e3},t);var n=e.beforeRequest||r["default"].Vhs.xhr.beforeRequest;if(n&&typeof n==="function"){var a=n(t);if(a){t=a}}var s=r["default"].Vhs.xhr.original===true?Ke:r["default"].Vhs.xhr;var o=s(t,function(e,t){return Qe(o,e,t,i)});var l=o.abort;o.abort=function(){o.aborted=true;return l.apply(o,arguments)};o.uri=t.uri;o.requestTime=Date.now();return o};t.original=true;return t};var Ze=function e(t){var i;var n=t.offset;if(typeof t.offset==="bigint"||typeof t.length==="bigint"){i=window.BigInt(t.offset)+window.BigInt(t.length)-window.BigInt(1)}else{i=t.offset+t.length-1}return"bytes="+n+"-"+i};var $e=function e(t){var i={};if(t.byterange){i.Range=Ze(t.byterange)}return i};var et=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;var tt=/^application\/dash\+xml/i;var it=function e(t){if(et.test(t)){return"hls"}if(tt.test(t)){return"dash"}if(t==="application/vnd.videojs.vhs+json"){return"vhs-json"}return null};var nt=function e(t){return t.toString(2).length};var rt=function e(t){return Math.ceil(nt(t)/8)};var at=function e(t){if(ArrayBuffer.isView==="function"){return ArrayBuffer.isView(t)}return t&&t.buffer instanceof ArrayBuffer};var st=function e(t){return at(t)};var ot=function e(t){if(t instanceof Uint8Array){return t}if(!Array.isArray(t)&&!st(t)&&!(t instanceof ArrayBuffer)){if(typeof t!=="number"||typeof t==="number"&&t!==t){t=0}else{t=[t]}}return new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0)};var lt=window.BigInt||Number;var ut=[lt("0x1"),lt("0x100"),lt("0x10000"),lt("0x1000000"),lt("0x100000000"),lt("0x10000000000"),lt("0x1000000000000"),lt("0x100000000000000"),lt("0x10000000000000000")];(function(){var e=new Uint16Array([65484]);var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(t[0]===255){return"big"}if(t[0]===204){return"little"}return"unknown"})();var dt=function e(t,i){var n=i===void 0?{}:i,r=n.signed,a=r===void 0?false:r,s=n.le,o=s===void 0?false:s;t=ot(t);var l=o?"reduce":"reduceRight";var u=t[l]?t[l]:Array.prototype[l];var d=u.call(t,function(e,i,n){var r=o?n:Math.abs(n+1-t.length);return e+lt(i)*ut[r]},lt(0));if(a){var c=ut[t.length]/lt(2)-lt(1);d=lt(d);if(d>c){d-=c;d-=c;d-=lt(2)}}return Number(d)};var ct=function e(t,i){var n=i===void 0?{}:i,r=n.le,a=r===void 0?false:r;if(typeof t!=="bigint"&&typeof t!=="number"||typeof t==="number"&&t!==t){t=0}t=lt(t);var s=rt(t);var o=new Uint8Array(new ArrayBuffer(s));for(var l=0;l<s;l++){var u=a?l:Math.abs(l+1-o.length);o[u]=Number(t/ut[l]<(255));if(t<0){o[u]=Math.abs(~o[u]);o[u]-=l===0?1:2}}return o};var ft=function e(t,i){if(typeof t!=="string"&&t&&typeof t.toString==="function"){t=t.toString()}if(typeof t!=="string"){return new Uint8Array}if(!i){t=unescape(encodeURIComponent(t))}var n=new Uint8Array(t.length);for(var r=0;r<t.length;r++){n[r]=t.charCodeAt(r)}return n};var pt=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}i=i.filter(function(e){return e&&(e.byteLength||e.length)&&typeof e!=="string"});if(i.length<=1){return ot(i[0])}var r=i.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0);var a=new Uint8Array(r);var s=0;i.forEach(function(e){e=ot(e);a.set(e,s);s+=e.byteLength});return a};var ht=function e(t,i,n){var r=n===void 0?{}:n,a=r.offset,s=a===void 0?0:a,o=r.mask,l=o===void 0?[]:o;t=ot(t);i=ot(i);var u=i.every?i.every:Array.prototype.every;return i.length&&t.length-s>=i.length&&u.call(i,function(e,i){var n=l[i]?l[i]&t[s+i]:t[s+i];return e===n})};var vt=function e(t,i){return t.start(i)+"-"+t.end(i)};var gt=function e(t,i){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(i%2?" ":"")};var mt=function e(t){if(t>=32&&t<126){return String.fromCharCode(t)}return"."};var yt=function e(t){var i={};Object.keys(t).forEach(function(e){var n=t[e];if(at(n)){i[e]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}}else{i[e]=n}});return i};var _t=function e(t){var i=t.byterange||{length:Infinity,offset:0};return[i.length,i.offset,t.resolvedUri].join(",")};var bt=function e(t){return t.resolvedUri};var St=function e(t){var i=Array.prototype.slice.call(t);var n=16;var r="";var a;var s;for(var o=0;o<i.length/n;o++){a=i.slice(o*n,o*n+n).map(gt).join("");s=i.slice(o*n,o*n+n).map(mt).join("");r+=a+" "+s+"\n"}return r};var Tt=function e(t){var i=t.bytes;return St(i)};var Et=function e(t){var i="";var n;for(n=0;n<t.length;n++){i+=vt(t,n)+" "}return i};var wt=Object.freeze({__proto__:null,createTransferableMessage:yt,initSegmentId:_t,segmentKeyId:bt,hexDump:St,tagDump:Tt,textRanges:Et});var kt=.25;var It=function e(t,i){if(!i.dateTimeObject){return null}var n=i.videoTimingInfo.transmuxerPrependedSeconds;var r=i.videoTimingInfo.transmuxedPresentationStart;var a=r+n;var s=t-a;return new Date(i.dateTimeObject.getTime()+s*1e3)};var At=function e(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds};var Ct=function e(t,i){var n;try{n=new Date(t)}catch(e){return null}if(!i||!i.segments||i.segments.length===0){return null}var r=i.segments[0];if(n<r.dateTimeObject){return null}for(var a=0;a<i.segments.length-1;a++){r=i.segments[a];var s=i.segments[a+1].dateTimeObject;if(n<s){break}}var o=i.segments[i.segments.length-1];var l=o.dateTimeObject;var u=o.videoTimingInfo?At(o.videoTimingInfo):o.duration+o.duration*kt;var d=new Date(l.getTime()+u*1e3);if(n>d){return null}if(n>l){r=o}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Ae.duration(i,i.mediaSequence+i.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"}};var jt=function e(t,i){if(!i||!i.segments||i.segments.length===0){return null}var n=0;var r;for(var a=0;a<i.segments.length;a++){r=i.segments[a];n=r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationEnd:n+r.duration;if(t<=n){break}}var s=i.segments[i.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t){return null}if(t>n){if(t>n+s.duration*kt){return null}r=s}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:n-r.duration,type:r.videoTimingInfo?"accurate":"estimate"}};var Pt=function e(t,i){var n;var r;try{n=new Date(t);r=new Date(i)}catch(e){}var a=n.getTime();var s=r.getTime();return(s-a)/1e3};var xt=function e(t){if(!t.segments||t.segments.length===0){return false}for(var i=0;i<t.segments.length;i++){var n=t.segments[i];if(!n.dateTimeObject){return false}}return true};var Lt=function e(t){var i=t.playlist,n=t.time,r=n===void 0?undefined:n,a=t.callback;if(!a){throw new Error("getProgramTime: callback must be provided")}if(!i||r===undefined){return a({message:"getProgramTime: playlist and time must be provided"})}var s=jt(r,i);if(!s){return a({message:"valid programTime was not found"})}if(s.type==="estimate"){return a({message:"Accurate programTime could not be determined."+" Please seek to e.seekTime and try again",seekTime:s.estimatedStart})}var o={mediaSeconds:r};var l=It(r,s.segment);if(l){o.programDateTime=l.toISOString()}return a(null,o)};var Ot=function e(t){var i=t.programTime,n=t.playlist,r=t.retryCount,a=r===void 0?2:r,s=t.seekTo,o=t.pauseAfterSeek,l=o===void 0?true:o,u=t.tech,d=t.callback;if(!d){throw new Error("seekToProgramTime: callback must be provided")}if(typeof i==="undefined"||!n||!s){return d({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"})}if(!n.endList&&!u.hasStarted_){return d({message:"player must be playing a live stream to start buffering"})}if(!xt(n)){return d({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri})}var c=Ct(i,n);if(!c){return d({message:i+" was not found in the stream"})}var f=c.segment;var p=Pt(f.dateTimeObject,i);if(c.type==="estimate"){if(a===0){return d({message:i+" is not buffered yet. Try again"})}s(c.estimatedStart+p);u.one("seeked",function(){e({programTime:i,playlist:n,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:d})});return}var h=f.start+p;var v=function e(){return d(null,u.currentTime())};u.one("seeked",v);if(l){u.pause()}s(h)};var Dt=function e(t,i,n){i.forEach(function(e){for(var i in t.mediaGroups[e]){for(var r in t.mediaGroups[e][i]){var a=t.mediaGroups[e][i][r];n(a,e,i,r)}}})};var Rt=function e(t){return!!t&&typeof t==="object"};var Nt=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}return i.reduce(function(t,i){if(typeof i!=="object"){return t}Object.keys(i).forEach(function(n){if(Array.isArray(t[n])&&Array.isArray(i[n])){t[n]=t[n].concat(i[n])}else if(Rt(t[n])&&Rt(i[n])){t[n]=e(t[n],i[n])}else{t[n]=i[n]}});return t},{})};var Mt=function e(t){return Object.keys(t).map(function(e){return t[e]})};var Ut=function e(t,i){var n=[];for(var r=t;r<i;r++){n.push(r)}return n};var Bt=function e(t){return t.reduce(function(e,t){return e.concat(t)},[])};var Ft=function e(t){if(!t.length){return[]}var i=[];for(var n=0;n<t.length;n++){i.push(t[n])}return i};var Vt=function e(t,i){return t.reduce(function(e,t,n){if(t[i]){e.push(n)}return e},[])};var qt=function e(t,i){for(var n=0;n<t.length;n++){if(i(t[n])){return n}}return-1};var Ht=function e(t,i){return Mt(t.reduce(function(e,t){t.forEach(function(t){e[i(t)]=t});return e},{}))};var Gt={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};var zt=function e(t){var i=t.baseUrl,n=i===void 0?"":i,r=t.source,a=r===void 0?"":r,s=t.range,o=s===void 0?"":s,l=t.indexRange,u=l===void 0?"":l;var d={uri:a,resolvedUri:f(n||"",a)};if(o||u){var c=o?o:u;var p=c.split("-");var h=window.BigInt?window.BigInt(p[0]):parseInt(p[0],10);var v=window.BigInt?window.BigInt(p[1]):parseInt(p[1],10);if(h<Number.MAX_SAFE_INTEGER&&typeof h==="bigint"){h=Number(h)}if(v<Number.MAX_SAFE_INTEGER&&typeof v==="bigint"){v=Number(v)}var g;if(typeof v==="bigint"||typeof h==="bigint"){g=window.BigInt(v)-window.BigInt(h)+window.BigInt(1)}else{g=v-h+1}if(typeof g==="bigint"&&g<Number.MAX_SAFE_INTEGER){g=Number(g)}d.byterange={length:g,offset:h}}return d};var Wt=function e(t){var i;if(typeof t.offset==="bigint"||typeof t.length==="bigint"){i=window.BigInt(t.offset)+window.BigInt(t.length)-window.BigInt(1)}else{i=t.offset+t.length-1}return t.offset+"-"+i};var Yt=function e(t){if(t&&typeof t!=="number"){t=parseInt(t,10)}if(isNaN(t)){return null}return t};var Kt={static:function e(t){var i=t.duration,n=t.timescale,r=n===void 0?1:n,a=t.sourceDuration,s=t.periodDuration;var o=Yt(t.endNumber);var l=i/r;if(typeof o==="number"){return{start:0,end:o}}if(typeof s==="number"){return{start:0,end:s/l}}return{start:0,end:a/l}},dynamic:function e(t){var i=t.NOW,n=t.clientOffset,r=t.availabilityStartTime,a=t.timescale,s=a===void 0?1:a,o=t.duration,l=t.periodStart,u=l===void 0?0:l,d=t.minimumUpdatePeriod,c=d===void 0?0:d,f=t.timeShiftBufferDepth,p=f===void 0?Infinity:f;var h=Yt(t.endNumber);var v=(i+n)/1e3;var g=r+u;var m=v+c;var y=m-g;var _=Math.ceil(y*s/o);var b=Math.floor((v-g-p)*s/o);var S=Math.floor((v-g)*s/o);return{start:Math.max(0,b),end:typeof h==="number"?h:Math.min(_,S)}}};var Xt=function e(t){return function(e){var i=t.duration,n=t.timescale,r=n===void 0?1:n,a=t.periodStart,s=t.startNumber,o=s===void 0?1:s;return{number:o+e,duration:i/r,timeline:a,time:e*i}}};var Qt=function e(t){var i=t.type,n=t.duration,r=t.timescale,a=r===void 0?1:r,s=t.periodDuration,o=t.sourceDuration;var l=Kt[i](t),u=l.start,d=l.end;var c=Ut(u,d).map(Xt(t));if(i==="static"){var f=c.length-1;var p=typeof s==="number"?s:o;c[f].duration=p-n/a*f}return c};var Jt=function e(t){var i=t.baseUrl,n=t.initialization,r=n===void 0?{}:n,a=t.sourceDuration,s=t.indexRange,o=s===void 0?"":s,l=t.periodStart,u=t.presentationTime,d=t.number,c=d===void 0?0:d,f=t.duration;if(!i){throw new Error(Gt.NO_BASE_URL)}var p=zt({baseUrl:i,source:r.sourceURL,range:r.range});var h=zt({baseUrl:i,source:i,indexRange:o});h.map=p;if(f){var v=Qt(t);if(v.length){h.duration=v[0].duration;h.timeline=v[0].timeline}}else if(a){h.duration=a;h.timeline=l}h.presentationTime=u||l;h.number=c;return[h]};var Zt=function e(t,i,n){var r=t.sidx.map?t.sidx.map:null;var a=t.sidx.duration;var s=t.timeline||0;var o=t.sidx.byterange;var l=o.offset+o.length;var u=i.timescale;var d=i.references.filter(function(e){return e.referenceType!==1});var c=[];var f=t.endList?"static":"dynamic";var p=t.sidx.timeline;var h=p;var v=t.mediaSequence||0;var g;if(typeof i.firstOffset==="bigint"){g=window.BigInt(l)+i.firstOffset}else{g=l+i.firstOffset}for(var m=0;m<d.length;m++){var y=i.references[m];var _=y.referencedSize;var b=y.subsegmentDuration;var S=void 0;if(typeof g==="bigint"){S=g+window.BigInt(_)-window.BigInt(1)}else{S=g+_-1}var T=g+"-"+S;var E={baseUrl:n,timescale:u,timeline:s,periodStart:p,presentationTime:h,number:v,duration:b,sourceDuration:a,indexRange:T,type:f};var w=Jt(E)[0];if(r){w.map=r}c.push(w);if(typeof g==="bigint"){g+=window.BigInt(_)}else{g+=_}h+=b/u;v++}t.segments=c;return t};var $t=["AUDIO","SUBTITLES"];var ei=1/60;var ti=function e(t){return Ht(t,function(e){var t=e.timeline;return t}).sort(function(e,t){return e.timeline>t.timeline?1:-1})};var ii=function e(t,i){for(var n=0;n<t.length;n++){if(t[n].attributes.NAME===i){return t[n]}}return null};var ni=function e(t){var i=[];Dt(t,$t,function(e,t,n,r){i=i.concat(e.playlists||[])});return i};var ri=function e(t){var i=t.playlist,n=t.mediaSequence;i.mediaSequence=n;i.segments.forEach(function(e,t){e.number=i.mediaSequence+t})};var ai=function e(t){var i=t.oldPlaylists,n=t.newPlaylists,r=t.timelineStarts;n.forEach(function(e){e.discontinuitySequence=qt(r,function(t){var i=t.timeline;return i===e.timeline});var t=ii(i,e.attributes.NAME);if(!t){return}if(e.sidx){return}var n=e.segments[0];var a=qt(t.segments,function(e){return Math.abs(e.presentationTime-n.presentationTime)<ei});if(a===-1){ri({playlist:e,mediaSequence:t.mediaSequence+t.segments.length});e.segments[0].discontinuity=true;e.discontinuityStarts.unshift(0);if(!t.segments.length&&e.timeline>t.timeline||t.segments.length&&e.timeline>t.segments[t.segments.length-1].timeline){e.discontinuitySequence--}return}var s=t.segments[a];if(s.discontinuity&&!n.discontinuity){n.discontinuity=true;e.discontinuityStarts.unshift(0);e.discontinuitySequence--}ri({playlist:e,mediaSequence:t.segments[a].number})})};var si=function e(t){var i=t.oldManifest,n=t.newManifest;var r=i.playlists.concat(ni(i));var a=n.playlists.concat(ni(n));n.timelineStarts=ti([i.timelineStarts,n.timelineStarts]);ai({oldPlaylists:r,newPlaylists:a,timelineStarts:n.timelineStarts});return n};var oi=function e(t){return t&&t.uri+"-"+Wt(t.byterange)};var li=function e(t){var i=Mt(t.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(!e[i]){e[i]=t;e[i].attributes.timelineStarts=[]}else{if(t.segments){var n;if(t.segments[0]){t.segments[0].discontinuity=true}(n=e[i].segments).push.apply(n,t.segments)}if(t.attributes.contentProtection){e[i].attributes.contentProtection=t.attributes.contentProtection}}e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart});return e},{}));return i.map(function(e){e.discontinuityStarts=Vt(e.segments||[],"discontinuity");return e})};var ui=function e(t,i){var n=oi(t.sidx);var r=n&&i[n]&&i[n].sidx;if(r){Zt(t,r,t.sidx.resolvedUri)}return t};var di=function e(t,i){if(i===void 0){i={}}if(!Object.keys(i).length){return t}for(var n in t){t[n]=ui(t[n],i)}return t};var ci=function e(t,i){var n;var r=t.attributes,a=t.segments,s=t.sidx,o=t.mediaSequence,l=t.discontinuitySequence,u=t.discontinuityStarts;var d={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuitySequence:l,discontinuityStarts:u,timelineStarts:r.timelineStarts,mediaSequence:o,segments:a};if(r.contentProtection){d.contentProtection=r.contentProtection}if(s){d.sidx=s}if(i){d.attributes.AUDIO="audio";d.attributes.SUBTITLES="subs"}return d};var fi=function e(t){var i;var n=t.attributes,r=t.segments,a=t.mediaSequence,s=t.discontinuityStarts,o=t.discontinuitySequence;if(typeof r==="undefined"){r=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}];n.duration=n.sourceDuration}var l=(i={NAME:n.id,BANDWIDTH:n.bandwidth},i["PROGRAM-ID"]=1,i);if(n.codecs){l.CODECS=n.codecs}return{attributes:l,uri:"",endList:n.type==="static",timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:s,discontinuitySequence:o,mediaSequence:a,segments:r}};var pi=function e(t,i,n){if(i===void 0){i={}}if(n===void 0){n=false}var r;var a=t.reduce(function(e,t){var a=t.attributes.role&&t.attributes.role.value||"";var s=t.attributes.lang||"";var o=t.attributes.label||"main";if(s&&!t.attributes.label){var l=a?" ("+a+")":"";o=""+t.attributes.lang+l}if(!e[o]){e[o]={language:s,autoselect:true,default:a==="main",playlists:[],uri:""}}var u=ui(ci(t,n),i);e[o].playlists.push(u);if(typeof r==="undefined"&&a==="main"){r=t;r.default=true}return e},{});if(!r){var s=Object.keys(a)[0];a[s].default=true}return a};var hi=function e(t,i){if(i===void 0){i={}}return t.reduce(function(e,t){var n=t.attributes.lang||"text";if(!e[n]){e[n]={language:n,default:false,autoselect:false,playlists:[],uri:""}}e[n].playlists.push(ui(fi(t),i));return e},{})};var vi=function e(t){return t.reduce(function(e,t){if(!t){return e}t.forEach(function(t){var i=t.channel,n=t.language;e[n]={autoselect:false,default:false,instreamId:i,language:n};if(t.hasOwnProperty("aspectRatio")){e[n].aspectRatio=t.aspectRatio}if(t.hasOwnProperty("easyReader")){e[n].easyReader=t.easyReader}if(t.hasOwnProperty("3D")){e[n]["3D"]=t["3D"]}});return e},{})};var gi=function e(t){var i;var n=t.attributes,r=t.segments,a=t.sidx,s=t.discontinuityStarts;var o={attributes:(i={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},i["PROGRAM-ID"]=1,i),uri:"",endList:n.type==="static",timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:s,timelineStarts:n.timelineStarts,segments:r};if(n.contentProtection){o.contentProtection=n.contentProtection}if(a){o.sidx=a}return o};var mi=function e(t){var i=t.attributes;return i.mimeType==="video/mp4"||i.mimeType==="video/webm"||i.contentType==="video"};var yi=function e(t){var i=t.attributes;return i.mimeType==="audio/mp4"||i.mimeType==="audio/webm"||i.contentType==="audio"};var _i=function e(t){var i=t.attributes;return i.mimeType==="text/vtt"||i.contentType==="text"};var bi=function e(t,i){t.forEach(function(e){e.mediaSequence=0;e.discontinuitySequence=qt(i,function(t){var i=t.timeline;return i===e.timeline});if(!e.segments){return}e.segments.forEach(function(e,t){e.number=t})})};var Si=function e(t){if(!t){return[]}return Object.keys(t).reduce(function(e,i){var n=t[i];return e.concat(n.playlists)},[])};var Ti=function e(t){var i;var n=t.dashPlaylists,r=t.locations,a=t.sidxMapping,s=a===void 0?{}:a,o=t.previousManifest;if(!n.length){return{}}var l=n[0].attributes,u=l.sourceDuration,d=l.type,c=l.suggestedPresentationDelay,f=l.minimumUpdatePeriod;var p=li(n.filter(mi)).map(gi);var h=li(n.filter(yi));var v=li(n.filter(_i));var g=n.map(function(e){return e.attributes.captionServices}).filter(Boolean);var m={allowCache:true,discontinuityStarts:[],segments:[],endList:true,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:u,playlists:di(p,s)};if(f>=0){m.minimumUpdatePeriod=f*1e3}if(r){m.locations=r}if(d==="dynamic"){m.suggestedPresentationDelay=c}var y=m.playlists.length===0;var _=h.length?pi(h,s,y):null;var b=v.length?hi(v,s):null;var S=p.concat(Si(_),Si(b));var T=S.map(function(e){var t=e.timelineStarts;return t});m.timelineStarts=ti(T);bi(S,m.timelineStarts);if(_){m.mediaGroups.AUDIO.audio=_}if(b){m.mediaGroups.SUBTITLES.subs=b}if(g.length){m.mediaGroups["CLOSED-CAPTIONS"].cc=vi(g)}if(o){return si({oldManifest:o,newManifest:m})}return m};var Ei=function e(t,i,n){var r=t.NOW,a=t.clientOffset,s=t.availabilityStartTime,o=t.timescale,l=o===void 0?1:o,u=t.periodStart,d=u===void 0?0:u,c=t.minimumUpdatePeriod,f=c===void 0?0:c;var p=(r+a)/1e3;var h=s+d;var v=p+f;var g=v-h;return Math.ceil((g*l-i)/n)};var wi=function e(t,i){var n=t.type,r=t.minimumUpdatePeriod,a=r===void 0?0:r,s=t.media,o=s===void 0?"":s,l=t.sourceDuration,u=t.timescale,d=u===void 0?1:u,c=t.startNumber,f=c===void 0?1:c,p=t.periodStart;var h=[];var v=-1;for(var g=0;g<i.length;g++){var m=i[g];var y=m.d;var _=m.r||0;var b=m.t||0;if(v<0){v=b}if(b&&b>v){v=b}var S=void 0;if(_<0){var T=g+1;if(T===i.length){if(n==="dynamic"&&a>0&&o.indexOf("$Number$")>0){S=Ei(t,v,y)}else{S=(l*d-v)/y}}else{S=(i[T].t-v)/y}}else{S=_+1}var E=f+h.length+S;var w=f+h.length;while(w<E){h.push({number:w,duration:y/d,time:v,timeline:p});v+=y;w++}}return h};var ki=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g;var Ii=function e(t){return function(e,i,n,r){if(e==="$$"){return"$"}if(typeof t[i]==="undefined"){return e}var a=""+t[i];if(i==="RepresentationID"){return a}if(!n){r=1}else{r=parseInt(r,10)}if(a.length>=r){return a}return""+new Array(r-a.length+1).join("0")+a}};var Ai=function e(t,i){return t.replace(ki,Ii(i))};var Ci=function e(t,i){if(!t.duration&&!i){return[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}if(t.duration){return Qt(t)}return wi(t,i)};var ji=function e(t,i){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0};var r=t.initialization,a=r===void 0?{sourceURL:"",range:""}:r;var s=zt({baseUrl:t.baseUrl,source:Ai(a.sourceURL,n),range:a.range});var o=Ci(t,i);return o.map(function(e){n.Number=e.number;n.Time=e.time;var i=Ai(t.media||"",n);var r=t.timescale||1;var a=t.presentationTimeOffset||0;var o=t.periodStart+(e.time-a)/r;var l={uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:f(t.baseUrl||"",i),map:s,number:e.number,presentationTime:o};return l})};var Pi=function e(t,i){var n=t.baseUrl,r=t.initialization,a=r===void 0?{}:r;var s=zt({baseUrl:n,source:a.sourceURL,range:a.range});var o=zt({baseUrl:n,source:i.media,range:i.mediaRange});o.map=s;return o};var xi=function e(t,i){var n=t.duration,r=t.segmentUrls,a=r===void 0?[]:r,s=t.periodStart;if(!n&&!i||n&&i){throw new Error(Gt.SEGMENT_TIME_UNSPECIFIED)}var o=a.map(function(e){return Pi(t,e)});var l;if(n){l=Qt(t)}if(i){l=wi(t,i)}var u=l.map(function(e,i){if(o[i]){var n=o[i];var r=t.timescale||1;var a=t.presentationTimeOffset||0;n.timeline=e.timeline;n.duration=e.duration;n.number=e.number;n.presentationTime=s+(e.time-a)/r;return n}}).filter(function(e){return e});return u};var Li=function e(t){var i=t.attributes,n=t.segmentInfo;var r;var a;if(n.template){a=ji;r=Nt(i,n.template)}else if(n.base){a=Jt;r=Nt(i,n.base)}else if(n.list){a=xi;r=Nt(i,n.list)}var s={attributes:i};if(!a){return s}var o=a(r,n.segmentTimeline);if(r.duration){var l=r,u=l.duration,d=l.timescale,c=d===void 0?1:d;r.duration=u/c}else if(o.length){r.duration=o.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0)}else{r.duration=0}s.attributes=r;s.segments=o;if(n.base&&r.indexRange){s.sidx=o[0];s.segments=[]}return s};var Oi=function e(t){return t.map(Li)};var Di=function e(t,i){return Ft(t.childNodes).filter(function(e){var t=e.tagName;return t===i})};var Ri=function e(t){return t.textContent.trim()};var Ni=function e(t){var i=365*24*60*60;var n=30*24*60*60;var r=24*60*60;var a=60*60;var s=60;var o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/;var l=o.exec(t);if(!l){return 0}var u=l.slice(1),d=u[0],c=u[1],f=u[2],p=u[3],h=u[4],v=u[5];return parseFloat(d||0)*i+parseFloat(c||0)*n+parseFloat(f||0)*r+parseFloat(p||0)*a+parseFloat(h||0)*s+parseFloat(v||0)};var Mi=function e(t){var i=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;if(i.test(t)){t+="Z"}return Date.parse(t)};var Ui={mediaPresentationDuration:function e(t){return Ni(t)},availabilityStartTime:function e(t){return Mi(t)/1e3},minimumUpdatePeriod:function e(t){return Ni(t)},suggestedPresentationDelay:function e(t){return Ni(t)},type:function e(t){return t},timeShiftBufferDepth:function e(t){return Ni(t)},start:function e(t){return Ni(t)},width:function e(t){return parseInt(t,10)},height:function e(t){return parseInt(t,10)},bandwidth:function e(t){return parseInt(t,10)},startNumber:function e(t){return parseInt(t,10)},timescale:function e(t){return parseInt(t,10)},presentationTimeOffset:function e(t){return parseInt(t,10)},duration:function e(t){var i=parseInt(t,10);if(isNaN(i)){return Ni(t)}return i},d:function e(t){return parseInt(t,10)},t:function e(t){return parseInt(t,10)},r:function e(t){return parseInt(t,10)},DEFAULT:function e(t){return t}};var Bi=function e(t){if(!(t&&t.attributes)){return{}}return Ft(t.attributes).reduce(function(e,t){var i=Ui[t.name]||Ui.DEFAULT;e[t.name]=i(t.value);return e},{})};var Fi={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"};var Vi=function e(t,i){if(!i.length){return t}return Bt(t.map(function(e){return i.map(function(t){return f(e,Ri(t))})}))};var qi=function e(t){var i=Di(t,"SegmentTemplate")[0];var n=Di(t,"SegmentList")[0];var r=n&&Di(n,"SegmentURL").map(function(e){return Nt({tag:"SegmentURL"},Bi(e))});var a=Di(t,"SegmentBase")[0];var s=n||i;var o=s&&Di(s,"SegmentTimeline")[0];var l=n||a||i;var u=l&&Di(l,"Initialization")[0];var d=i&&Bi(i);if(d&&u){d.initialization=u&&Bi(u)}else if(d&&d.initialization){d.initialization={sourceURL:d.initialization}}var c={template:d,segmentTimeline:o&&Di(o,"S").map(function(e){return Bi(e)}),list:n&&Nt(Bi(n),{segmentUrls:r,initialization:Bi(u)}),base:a&&Nt(Bi(a),{initialization:Bi(u)})};Object.keys(c).forEach(function(e){if(!c[e]){delete c[e]}});return c};var Hi=function e(t,i,n){return function(e){var r=Di(e,"BaseURL");var a=Vi(i,r);var s=Nt(t,Bi(e));var o=qi(e);return a.map(function(e){return{segmentInfo:Nt(n,o),attributes:Nt(s,{baseUrl:e})}})}};var Gi=function e(t){return t.reduce(function(e,t){var i=Bi(t);if(i.schemeIdUri){i.schemeIdUri=i.schemeIdUri.toLowerCase()}var n=Fi[i.schemeIdUri];if(n){e[n]={attributes:i};var r=Di(t,"cenc:pssh")[0];if(r){var a=Ri(r);e[n].pssh=a&&_(a)}}return e},{})};var zi=function e(t){if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015"){var i=typeof t.value!=="string"?[]:t.value.split(";");return i.map(function(e){var t;var i;i=e;if(/^CC\d=/.test(e)){var n=e.split("=");t=n[0];i=n[1]}else if(/^CC\d$/.test(e)){t=e}return{channel:t,language:i}})}else if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015"){var n=typeof t.value!=="string"?[]:t.value.split(";");return n.map(function(e){var t={channel:undefined,language:undefined,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var i=e.split("="),n=i[0],r=i[1],a=r===void 0?"":r;t.channel=n;t.language=e;a.split(",").forEach(function(e){var i=e.split(":"),n=i[0],r=i[1];if(n==="lang"){t.language=r}else if(n==="er"){t.easyReader=Number(r)}else if(n==="war"){t.aspectRatio=Number(r)}else if(n==="3D"){t["3D"]=Number(r)}})}else{t.language=e}if(t.channel){t.channel="SERVICE"+t.channel}return t})}};var Wi=function e(t,i,n){return function(e){var r=Bi(e);var a=Vi(i,Di(e,"BaseURL"));var s=Di(e,"Role")[0];var o={role:Bi(s)};var l=Nt(t,r,o);var u=Di(e,"Accessibility")[0];var d=zi(Bi(u));if(d){l=Nt(l,{captionServices:d})}var c=Di(e,"Label")[0];if(c&&c.childNodes.length){var f=c.childNodes[0].nodeValue.trim();l=Nt(l,{label:f})}var p=Gi(Di(e,"ContentProtection"));if(Object.keys(p).length){l=Nt(l,{contentProtection:p})}var h=qi(e);var v=Di(e,"Representation");var g=Nt(n,h);return Bt(v.map(Hi(l,a,g)))}};var Yi=function e(t,i){return function(e,n){var r=Vi(i,Di(e.node,"BaseURL"));var a=Nt(t,{periodStart:e.attributes.start});if(typeof e.attributes.duration==="number"){a.periodDuration=e.attributes.duration}var s=Di(e.node,"AdaptationSet");var o=qi(e.node);return Bt(s.map(Wi(a,r,o)))}};var Ki=function e(t){var i=t.attributes,n=t.priorPeriodAttributes,r=t.mpdType;if(typeof i.start==="number"){return i.start}if(n&&typeof n.start==="number"&&typeof n.duration==="number"){return n.start+n.duration}if(!n&&r==="static"){return 0}return null};var Xi=function e(t,i){if(i===void 0){i={}}var n=i,r=n.manifestUri,a=r===void 0?"":r,s=n.NOW,o=s===void 0?Date.now():s,l=n.clientOffset,u=l===void 0?0:l;var d=Di(t,"Period");if(!d.length){throw new Error(Gt.INVALID_NUMBER_OF_PERIOD)}var c=Di(t,"Location");var f=Bi(t);var p=Vi([a],Di(t,"BaseURL"));f.type=f.type||"static";f.sourceDuration=f.mediaPresentationDuration||0;f.NOW=o;f.clientOffset=u;if(c.length){f.locations=c.map(Ri)}var h=[];d.forEach(function(e,t){var i=Bi(e);var n=h[t-1];i.start=Ki({attributes:i,priorPeriodAttributes:n?n.attributes:null,mpdType:f.type});h.push({node:e,attributes:i})});return{locations:f.locations,representationInfo:Bt(h.map(Yi(f,p)))}};var Qi=function e(t){if(t===""){throw new Error(Gt.DASH_EMPTY_MANIFEST)}var n=new i.DOMParser;var r;var a;try{r=n.parseFromString(t,"application/xml");a=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch(e){}if(!a||a&&a.getElementsByTagName("parsererror").length>0){throw new Error(Gt.DASH_INVALID_XML)}return a};var Ji=function e(t){var i=Di(t,"UTCTiming")[0];if(!i){return null}var n=Bi(i);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT";n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Gt.UNSUPPORTED_UTC_TIMING_SCHEME)}return n};var Zi=function e(t,i){if(i===void 0){i={}}var n=Xi(Qi(t),i);var r=Oi(n.representationInfo);return Ti({dashPlaylists:r,locations:n.locations,sidxMapping:i.sidxMapping,previousManifest:i.previousManifest})};var $i=function e(t){return Ji(Qi(t))};var en=Math.pow(2,32);var tn=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength);var n;if(i.getBigUint64){n=i.getBigUint64(0);if(n<Number.MAX_SAFE_INTEGER){return Number(n)}return n}return i.getUint32(0)*en+i.getUint32(4)};var nn={getUint64:tn,MAX_UINT32:en};var rn=nn.getUint64;var an=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},r=12;if(n.version===0){n.earliestPresentationTime=i.getUint32(r);n.firstOffset=i.getUint32(r+4);r+=8}else{n.earliestPresentationTime=rn(t.subarray(r));n.firstOffset=rn(t.subarray(r+8));r+=16}r+=2;var a=i.getUint16(r);r+=2;for(;a>0;r+=12,a--){n.references.push({referenceType:(t[r]&128)>>>7,referencedSize:i.getUint32(r)&2147483647,subsegmentDuration:i.getUint32(r+4),startsWithSap:!!(t[r+8]&128),sapType:(t[r+8]&112)>>>4,sapDeltaTime:i.getUint32(r+8)&268435455})}return n};var sn=an;var on=ot([73,68,51]);var ln=function e(t,i){if(i===void 0){i=0}t=ot(t);var n=t[i+5];var r=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9];var a=(n&16)>>4;if(a){return r+20}return r+10};var un=function e(t,i){if(i===void 0){i=0}t=ot(t);if(t.length-i<10||!ht(t,on,{offset:i})){return i}i+=ln(t,i);return e(t,i)};var dn=function e(t){if(typeof t==="string"){return ft(t)}if(typeof t==="number"){return t}return t};var cn=function e(t){if(!Array.isArray(t)){return[dn(t)]}return t.map(function(e){return dn(e)})};var fn=function e(t,i,n){if(n===void 0){n=false}i=cn(i);t=ot(t);var r=[];if(!i.length){return r}var a=0;while(a<t.length){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0;var o=t.subarray(a+4,a+8);if(s===0){break}var l=a+s;if(l>t.length){if(n){break}l=t.length}var u=t.subarray(a+8,l);if(ht(o,i[0])){if(i.length===1){r.push(u)}else{r.push.apply(r,e(u,i.slice(1),n))}}a=l}return r};var pn={EBML:ot([26,69,223,163]),DocType:ot([66,130]),Segment:ot([24,83,128,103]),SegmentInfo:ot([21,73,169,102]),Tracks:ot([22,84,174,107]),Track:ot([174]),TrackNumber:ot([215]),DefaultDuration:ot([35,227,131]),TrackEntry:ot([174]),TrackType:ot([131]),FlagDefault:ot([136]),CodecID:ot([134]),CodecPrivate:ot([99,162]),VideoTrack:ot([224]),AudioTrack:ot([225]),Cluster:ot([31,67,182,117]),Timestamp:ot([231]),TimestampScale:ot([42,215,177]),BlockGroup:ot([160]),BlockDuration:ot([155]),Block:ot([161]),SimpleBlock:ot([163])};var hn=[128,64,32,16,8,4,2,1];var vn=function e(t){var i=1;for(var n=0;n<hn.length;n++){if(t&hn[n]){break}i++}return i};var gn=function e(t,i,n,r){if(n===void 0){n=true}if(r===void 0){r=false}var a=vn(t[i]);var s=t.subarray(i,i+a);if(n){s=Array.prototype.slice.call(t,i,i+a);s[0]^=hn[a-1]}return{length:a,value:dt(s,{signed:r}),bytes:s}};var mn=function e(t){if(typeof t==="string"){return t.match(/.{1,2}/g).map(function(t){return e(t)})}if(typeof t==="number"){return ct(t)}return t};var yn=function e(t){if(!Array.isArray(t)){return[mn(t)]}return t.map(function(e){return mn(e)})};var _n=function e(t,i,n){if(n>=i.length){return i.length}var r=gn(i,n,false);if(ht(t.bytes,r.bytes)){return n}var a=gn(i,n+r.length);return e(t,i,n+a.length+a.value+r.length)};var bn=function e(t,i){i=yn(i);t=ot(t);var n=[];if(!i.length){return n}var r=0;while(r<t.length){var a=gn(t,r,false);var s=gn(t,r+a.length);var o=r+a.length+s.length;if(s.value===127){s.value=_n(a,t,o);if(s.value!==t.length){s.value-=o}}var l=o+s.value>t.length?t.length:o+s.value;var u=t.subarray(o,l);if(ht(i[0],a.bytes)){if(i.length===1){n.push(u)}else{n=n.concat(e(u,i.slice(1)))}}var d=a.length+s.length+u.length;r+=d}return n};var Sn=ot([0,0,0,1]);var Tn=ot([0,0,1]);var En=ot([0,0,3]);var wn=function e(t){var i=[];var n=1;while(n<t.length-2){if(ht(t.subarray(n,n+3),En)){i.push(n+2);n++}n++}if(i.length===0){return t}var r=t.length-i.length;var a=new Uint8Array(r);var s=0;for(n=0;n<r;s++,n++){if(s===i[0]){s++;i.shift()}a[n]=t[s]}return a};var kn=function e(t,i,n,r){if(r===void 0){r=Infinity}t=ot(t);n=[].concat(n);var a=0;var s;var o=0;while(a<t.length&&(o<r||s)){var l=void 0;if(ht(t.subarray(a),Sn)){l=4}else if(ht(t.subarray(a),Tn)){l=3}if(!l){a++;continue}o++;if(s){return wn(t.subarray(s,a))}var u=void 0;if(i==="h264"){u=t[a+l]&31}else if(i==="h265"){u=t[a+l]>>1&63}if(n.indexOf(u)!==-1){s=a+l}a+=l+(i==="h264"?1:2)}return t.subarray(0,0)};var In=function e(t,i,n){return kn(t,"h264",i,n)};var An=function e(t,i,n){return kn(t,"h265",i,n)};var Cn={webm:ot([119,101,98,109]),matroska:ot([109,97,116,114,111,115,107,97]),flac:ot([102,76,97,67]),ogg:ot([79,103,103,83]),ac3:ot([11,119]),riff:ot([82,73,70,70]),avi:ot([65,86,73]),wav:ot([87,65,86,69]),"3gp":ot([102,116,121,112,51,103]),mp4:ot([102,116,121,112]),fmp4:ot([115,116,121,112]),mov:ot([102,116,121,112,113,116]),moov:ot([109,111,111,118]),moof:ot([109,111,111,102])};var jn={aac:function e(t){var i=un(t);return ht(t,[255,16],{offset:i,mask:[255,22]})},mp3:function e(t){var i=un(t);return ht(t,[255,2],{offset:i,mask:[255,6]})},webm:function e(t){var i=bn(t,[pn.EBML,pn.DocType])[0];return ht(i,Cn.webm)},mkv:function e(t){var i=bn(t,[pn.EBML,pn.DocType])[0];return ht(i,Cn.matroska)},mp4:function e(t){if(jn["3gp"](t)||jn.mov(t)){return false}if(ht(t,Cn.mp4,{offset:4})||ht(t,Cn.fmp4,{offset:4})){return true}if(ht(t,Cn.moof,{offset:4})||ht(t,Cn.moov,{offset:4})){return true}},mov:function e(t){return ht(t,Cn.mov,{offset:4})},"3gp":function e(t){return ht(t,Cn["3gp"],{offset:4})},ac3:function e(t){var i=un(t);return ht(t,Cn.ac3,{offset:i})},ts:function e(t){if(t.length<189&&t.length>=1){return t[0]===71}var i=0;while(i+188<t.length&&i<188){if(t[i]===71&&t[i+188]===71){return true}i+=1}return false},flac:function e(t){var i=un(t);return ht(t,Cn.flac,{offset:i})},ogg:function e(t){return ht(t,Cn.ogg)},avi:function e(t){return ht(t,Cn.riff)&&ht(t,Cn.avi,{offset:8})},wav:function e(t){return ht(t,Cn.riff)&&ht(t,Cn.wav,{offset:8})},h264:function e(t){return In(t,7,3).length},h265:function e(t){return An(t,[32,33],3).length}};var Pn=Object.keys(jn).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);Pn.forEach(function(e){var t=jn[e];jn[e]=function(e){return t(ot(e))}});var xn=jn;var Ln=function e(t){t=ot(t);for(var i=0;i<Pn.length;i++){var n=Pn[i];if(xn[n](t)){return n}}return""};var On=function e(t){return fn(t,["moof"]).length>0};var Dn=function e(t,i){if(t.readyState===4){return i()}return};var Rn=function e(t,i,n){var r=[];var a;var s=false;var o=function e(t,i,r,a){i.abort();s=true;return n(t,i,r,a)};var l=function e(t,i){if(s){return}if(t){return o(t,i,"",r)}var n=i.responseText.substring(r&&r.byteLength||0,i.responseText.length);r=pt(r,ft(n,true));a=a||un(r);if(r.length<10||a&&r.length<a+2){return Dn(i,function(){return o(t,i,"",r)})}var l=Ln(r);if(l==="ts"&&r.length<188){return Dn(i,function(){return o(t,i,"",r)})}if(!l&&r.length<376){return Dn(i,function(){return o(t,i,"",r)})}return o(null,i,l,r)};var u={uri:t,beforeSend:function e(t){t.overrideMimeType("text/plain; charset=x-user-defined");t.addEventListener("progress",function(e){e.total;e.loaded;return Qe(t,null,{statusCode:t.status},l)})}};var d=i(u,function(e,t){return Qe(d,e,t,l)});return d};var Nn=r["default"].EventTarget,Mn=r["default"].mergeOptions;var Un=function e(t,i){if(!Ge(t,i)){return false}if(t.sidx&&i.sidx&&(t.sidx.offset!==i.sidx.offset||t.sidx.length!==i.sidx.length)){return false}else if(!t.sidx&&i.sidx||t.sidx&&!i.sidx){return false}if(t.segments&&!i.segments||!t.segments&&i.segments){return false}if(!t.segments&&!i.segments){return true}for(var n=0;n<t.segments.length;n++){var r=t.segments[n];var a=i.segments[n];if(r.uri!==a.uri){return false}if(!r.byterange&&!a.byterange){continue}var s=r.byterange;var o=a.byterange;if(s&&!o||!s&&o){return false}if(s.offset!==o.offset||s.length!==o.length){return false}}return true};var Bn=function e(t){var i=t.masterXml,n=t.srcUrl,r=t.clientOffset,a=t.sidxMapping,s=t.previousManifest;var o=Zi(i,{manifestUri:n,clientOffset:r,sidxMapping:a,previousManifest:s});Ne(o,n);return o};var Fn=function e(t,i,n){var r=true;var a=Mn(t,{duration:i.duration,minimumUpdatePeriod:i.minimumUpdatePeriod,timelineStarts:i.timelineStarts});for(var s=0;s<i.playlists.length;s++){var o=i.playlists[s];if(o.sidx){var l=oi(o.sidx);if(n&&n[l]&&n[l].sidx){Zt(o,n[l].sidx,o.sidx.resolvedUri)}}var u=ze(a,o,Un);if(u){a=u;r=false}}xe(i,function(e,t,i,n){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id;var o=ze(a,e.playlists[0],Un);if(o){a=o;a.mediaGroups[t][i][n].playlists[0]=a.playlists[s];r=false}}});if(i.minimumUpdatePeriod!==t.minimumUpdatePeriod){r=false}if(r){return null}return a};var Vn=function e(t,i){var n=Boolean(!t.map&&!i.map);var r=n||Boolean(t.map&&i.map&&t.map.byterange.offset===i.map.byterange.offset&&t.map.byterange.length===i.map.byterange.length);return r&&t.uri===i.uri&&t.byterange.offset===i.byterange.offset&&t.byterange.length===i.byterange.length};var qn=function e(t,i){var n={};for(var r in t){var a=t[r];var s=a.sidx;if(s){var o=oi(s);if(!i[o]){break}var l=i[o].sidxInfo;if(Vn(l,s)){n[o]=i[o]}}}return n};var Hn=function e(t,i){var n=qn(t.playlists,i);var r=n;xe(t,function(e,t,n,a){if(e.playlists&&e.playlists.length){var s=e.playlists;r=Mn(r,qn(s,i))}});return r};var Gn=function(e){u(t,e);function t(t,i,n,r){var a;if(n===void 0){n={}}a=e.call(this)||this;a.masterPlaylistLoader_=r||o(a);if(!r){a.isMaster_=true}var s=n,l=s.withCredentials,u=l===void 0?false:l,d=s.handleManifestRedirects,c=d===void 0?false:d;a.vhs_=i;a.withCredentials=u;a.handleManifestRedirects=c;if(!t){throw new Error("A non-empty playlist URL or object is required")}a.on("minimumUpdatePeriod",function(){a.refreshXml_()});a.on("mediaupdatetimeout",function(){a.refreshMedia_(a.media().id)});a.state="HAVE_NOTHING";a.loadedPlaylists_={};a.logger_=v("DashPlaylistLoader");if(a.isMaster_){a.masterPlaylistLoader_.srcUrl=t;a.masterPlaylistLoader_.sidxMapping_={}}else{a.childPlaylist_=t}return a}var i=t.prototype;i.requestErrored_=function e(t,i,n){if(!this.request){return true}this.request=null;if(t){this.error=typeof t==="object"&&!(t instanceof Error)?t:{status:i.status,message:"DASH request error at URL: "+i.uri,response:i.response,code:2};if(n){this.state=n}this.trigger("error");return true}};i.addSidxSegments_=function e(t,i,n){var r=this;var a=t.sidx&&oi(t.sidx);if(!t.sidx||!a||this.masterPlaylistLoader_.sidxMapping_[a]){this.mediaRequest_=window.setTimeout(function(){return n(false)},0);return}var s=h(this.handleManifestRedirects,t.sidx.resolvedUri);var o=function e(s,o){if(r.requestErrored_(s,o,i)){return}var l=r.masterPlaylistLoader_.sidxMapping_;var u;try{u=sn(ot(o.response).subarray(8))}catch(e){r.requestErrored_(e,o,i);return}l[a]={sidxInfo:t.sidx,sidx:u};Zt(t,u,t.sidx.resolvedUri);return n(true)};this.request=Rn(s,this.vhs_.xhr,function(e,i,n,a){if(e){return o(e,i)}if(!n||n!=="mp4"){return o({status:i.status,message:"Unsupported "+(n||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:true,blacklistDuration:Infinity,code:2},i)}var l=t.sidx.byterange,u=l.offset,d=l.length;if(a.length>=d+u){return o(e,{response:a.subarray(u,u+d),status:i.status,uri:i.uri})}r.request=r.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:$e({byterange:t.sidx.byterange})},o)})};i.dispose=function e(){this.trigger("dispose");this.stopRequest();this.loadedPlaylists_={};window.clearTimeout(this.minimumUpdatePeriodTimeout_);window.clearTimeout(this.mediaRequest_);window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null;this.mediaRequest_=null;this.minimumUpdatePeriodTimeout_=null;if(this.masterPlaylistLoader_.createMupOnMedia_){this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_);this.masterPlaylistLoader_.createMupOnMedia_=null}this.off()};i.hasPendingRequest=function e(){return this.request||this.mediaRequest_};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t){var i=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}var n=this.state;if(typeof t==="string"){if(!this.masterPlaylistLoader_.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.masterPlaylistLoader_.master.playlists[t]}var r=!this.media_||t.id!==this.media_.id;if(r&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA";this.media_=t;if(r){this.trigger("mediachanging");this.trigger("mediachange")}return}if(!r){return}if(this.media_){this.trigger("mediachanging")}this.addSidxSegments_(t,n,function(e){i.haveMetadata({startingState:n,playlist:t})})};i.haveMetadata=function e(t){var i=t.startingState,n=t.playlist;this.state="HAVE_METADATA";this.loadedPlaylists_[n.id]=n;this.mediaRequest_=null;this.refreshMedia_(n.id);if(i==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}};i.pause=function e(){if(this.masterPlaylistLoader_.createMupOnMedia_){this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_);this.masterPlaylistLoader_.createMupOnMedia_=null}this.stopRequest();window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null;if(this.isMaster_){window.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_);this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null}if(this.state==="HAVE_NOTHING"){this.started=false}};i.load=function e(t){var i=this;window.clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=null;var n=this.media();if(t){var r=n?n.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=window.setTimeout(function(){return i.load()},r);return}if(!this.started){this.start();return}if(n&&!n.endList){if(this.isMaster_&&!this.minimumUpdatePeriodTimeout_){this.trigger("minimumUpdatePeriod");this.updateMinimumUpdatePeriodTimeout_()}this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.start=function e(){var t=this;this.started=true;if(!this.isMaster_){this.mediaRequest_=window.setTimeout(function(){return t.haveMaster_()},0);return}this.requestMaster_(function(e,i){t.haveMaster_();if(!t.hasPendingRequest()&&!t.media_){t.media(t.masterPlaylistLoader_.master.playlists[0])}})};i.requestMaster_=function e(t){var i=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,n){if(i.requestErrored_(e,n)){if(i.state==="HAVE_NOTHING"){i.started=false}return}var r=n.responseText!==i.masterPlaylistLoader_.masterXml_;i.masterPlaylistLoader_.masterXml_=n.responseText;if(n.responseHeaders&&n.responseHeaders.date){i.masterLoaded_=Date.parse(n.responseHeaders.date)}else{i.masterLoaded_=Date.now()}i.masterPlaylistLoader_.srcUrl=h(i.handleManifestRedirects,i.masterPlaylistLoader_.srcUrl,n);if(r){i.handleMaster_();i.syncClientServerClock_(function(){return t(n,r)});return}return t(n,r)})};i.syncClientServerClock_=function e(t){var i=this;var n=$i(this.masterPlaylistLoader_.masterXml_);if(n===null){this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now();return t()}if(n.method==="DIRECT"){this.masterPlaylistLoader_.clientOffset_=n.value-Date.now();return t()}this.request=this.vhs_.xhr({uri:p(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(e,r){if(!i.request){return}if(e){i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now();return t()}var a;if(n.method==="HEAD"){if(!r.responseHeaders||!r.responseHeaders.date){a=i.masterLoaded_}else{a=Date.parse(r.responseHeaders.date)}}else{a=Date.parse(r.responseText)}i.masterPlaylistLoader_.clientOffset_=a-Date.now();t()})};i.haveMaster_=function e(){this.state="HAVE_MASTER";if(this.isMaster_){this.trigger("loadedplaylist")}else if(!this.media_){this.media(this.childPlaylist_)}};i.handleMaster_=function e(){this.mediaRequest_=null;var t=this.masterPlaylistLoader_.master;var i=Bn({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:t});if(t){i=Fn(t,i,this.masterPlaylistLoader_.sidxMapping_)}this.masterPlaylistLoader_.master=i?i:t;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];if(n&&n!==this.masterPlaylistLoader_.srcUrl){this.masterPlaylistLoader_.srcUrl=n}if(!t||i&&i.minimumUpdatePeriod!==t.minimumUpdatePeriod){this.updateMinimumUpdatePeriodTimeout_()}return Boolean(i)};i.updateMinimumUpdatePeriodTimeout_=function e(){var t=this.masterPlaylistLoader_;if(t.createMupOnMedia_){t.off("loadedmetadata",t.createMupOnMedia_);t.createMupOnMedia_=null}if(t.minimumUpdatePeriodTimeout_){window.clearTimeout(t.minimumUpdatePeriodTimeout_);t.minimumUpdatePeriodTimeout_=null}var i=t.master&&t.master.minimumUpdatePeriod;if(i===0){if(t.media()){i=t.media().targetDuration*1e3}else{t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_;t.one("loadedmetadata",t.createMupOnMedia_)}}if(typeof i!=="number"||i<=0){if(i<0){this.logger_("found invalid minimumUpdatePeriod of "+i+", not setting a timeout")}return}this.createMUPTimeout_(i)};i.createMUPTimeout_=function e(t){var i=this.masterPlaylistLoader_;i.minimumUpdatePeriodTimeout_=window.setTimeout(function(){i.minimumUpdatePeriodTimeout_=null;i.trigger("minimumUpdatePeriod");i.createMUPTimeout_(t)},t)};i.refreshXml_=function e(){var t=this;this.requestMaster_(function(e,i){if(!i){return}if(t.media_){t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]}t.masterPlaylistLoader_.sidxMapping_=Hn(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.sidxMapping_);t.addSidxSegments_(t.media(),t.state,function(e){t.refreshMedia_(t.media().id)})})};i.refreshMedia_=function e(t){var i=this;if(!t){throw new Error("refreshMedia_ must take a media id")}if(this.media_&&this.isMaster_){this.handleMaster_()}var n=this.masterPlaylistLoader_.master.playlists;var r=!this.media_||this.media_!==n[t];if(r){this.media_=n[t]}else{this.trigger("playlistunchanged")}if(!this.mediaUpdateTimeout){var a=function e(){if(i.media().endList){return}i.mediaUpdateTimeout=window.setTimeout(function(){i.trigger("mediaupdatetimeout");e()},We(i.media(),Boolean(r)))};a()}this.trigger("loadedplaylist")};return t}(Nn);var zn={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};var Wn=function e(t){var i=new Uint8Array(new ArrayBuffer(t.length));for(var n=0;n<t.length;n++){i[n]=t.charCodeAt(n)}return i.buffer};var Yn=function e(t){t.on=t.addEventListener;t.off=t.removeEventListener;return t};var Kn=function e(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(e){var i=new BlobBuilder;i.append(t);return URL.createObjectURL(i.getBlob())}};var Xn=function e(t){return function(){var e=Kn(t);var i=Yn(new Worker(e));i.objURL=e;var n=i.terminate;i.on=i.addEventListener;i.off=i.removeEventListener;i.terminate=function(){URL.revokeObjectURL(e);return n.call(this)};return i}};var Qn=function e(t){return"var browserWorkerPolyFill = "+Yn.toString()+";\n"+"browserWorkerPolyFill(self);\n"+t};var Jn=function e(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)};var Zn=Qn(Jn(function(){var e=function e(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var n;if(!e[t]){return false}n=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(n,1);return n>-1};this.trigger=function(t){var i,n,r,a;i=e[t];if(!i){return}if(arguments.length===2){r=i.length;for(n=0;n<r;++n){i[n].call(this,arguments[1])}}else{a=[];n=arguments.length;for(n=1;n<arguments.length;++n){a.push(arguments[n])}r=i.length;for(n=0;n<r;++n){i[n].apply(this,a)}}};this.dispose=function(){e={}}}};e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});this.on("partialdone",function(t){e.partialFlush(t)});this.on("endedtimeline",function(t){e.endTimeline(t)});this.on("reset",function(t){e.reset(t)});return e};e.prototype.push=function(e){this.trigger("data",e)};e.prototype.flush=function(e){this.trigger("done",e)};e.prototype.partialFlush=function(e){this.trigger("partialdone",e)};e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)};e.prototype.reset=function(e){this.trigger("reset",e)};var t=e;var i=Math.pow(2,32);var n=function e(t){var n=new DataView(t.buffer,t.byteOffset,t.byteLength);var r;if(n.getBigUint64){r=n.getBigUint64(0);if(r<Number.MAX_SAFE_INTEGER){return Number(r)}return r}return n.getUint32(0)*i+n.getUint32(4)};var r={getUint64:n,MAX_UINT32:i};var a=r.MAX_UINT32;var s,o,l,u,d,c,f,p,h,v,g,m,y,_,b,S,T,E,w,k,I,A,C,j,P,x,L,O,D,R,N,M,U,B,F,V;(function(){var e;C={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]};if(typeof Uint8Array==="undefined"){return}for(e in C){if(C.hasOwnProperty(e)){C[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]}}j=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);P=new Uint8Array([0,0,0,1]);L=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]);O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);D={video:L,audio:O};M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);N=new Uint8Array([0,0,0,0,0,0,0,0]);U=new Uint8Array([0,0,0,0,0,0,0,0]);B=U;F=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);V=U;R=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])})();s=function e(t){var i=[],n=0,r,a,s;for(r=1;r<arguments.length;r++){i.push(arguments[r])}r=i.length;while(r--){n+=i[r].byteLength}a=new Uint8Array(n+8);s=new DataView(a.buffer,a.byteOffset,a.byteLength);s.setUint32(0,a.byteLength);a.set(t,4);for(r=0,n=8;r<i.length;r++){a.set(i[r],n);n+=i[r].byteLength}return a};o=function e(){return s(C.dinf,s(C.dref,M))};l=function e(t){return s(C.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))};u=function e(){return s(C.ftyp,j,P,j,x)};S=function e(t){return s(C.hdlr,D[t])};d=function e(t){return s(C.mdat,t)};b=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,t.duration&255,85,196,0,0]);if(t.samplerate){i[12]=t.samplerate>>>24&255;i[13]=t.samplerate>>>16&255;i[14]=t.samplerate>>>8&255;i[15]=t.samplerate&255}return s(C.mdhd,i)};_=function e(t){return s(C.mdia,b(t),S(t.type),f(t))};c=function e(t){return s(C.mfhd,new Uint8Array([0,0,0,0,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255]))};f=function e(t){return s(C.minf,t.type==="video"?s(C.vmhd,R):s(C.smhd,N),o(),E(t))};p=function e(t,i){var n=[],r=i.length;while(r--){n[r]=k(i[r])}return s.apply(null,[C.moof,c(t)].concat(n))};h=function e(t){var i=t.length,n=[];while(i--){n[i]=m(t[i])}return s.apply(null,[C.moov,g(4294967295)].concat(n).concat(v(t)))};v=function e(t){var i=t.length,n=[];while(i--){n[i]=I(t[i])}return s.apply(null,[C.mvex].concat(n))};g=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return s(C.mvhd,i)};T=function e(t){var i=t.samples||[],n=new Uint8Array(4+i.length),r,a;for(a=0;a<i.length;a++){r=i[a].flags;n[a+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy}return s(C.sdtp,n)};E=function e(t){return s(C.stbl,w(t),s(C.stts,V),s(C.stsc,B),s(C.stsz,F),s(C.stco,U))};(function(){var e,t;w=function i(n){return s(C.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),n.type==="video"?e(n):t(n))};e=function e(t){var i=t.sps||[],n=t.pps||[],r=[],a=[],o,l;for(o=0;o<i.length;o++){r.push((i[o].byteLength&65280)>>>8);r.push(i[o].byteLength&255);r=r.concat(Array.prototype.slice.call(i[o]))}for(o=0;o<n.length;o++){a.push((n[o].byteLength&65280)>>>8);a.push(n[o].byteLength&255);a=a.concat(Array.prototype.slice.call(n[o]))}l=[C.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(t.width&65280)>>8,t.width&255,(t.height&65280)>>8,t.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s(C.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length],r,[n.length],a))),s(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))];if(t.sarRatio){var u=t.sarRatio[0],d=t.sarRatio[1];l.push(s(C.pasp,new Uint8Array([(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255,(d&4278190080)>>24,(d&16711680)>>16,(d&65280)>>8,d&255])))}return s.apply(null,l)};t=function e(t){return s(C.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(t.channelcount&65280)>>8,t.channelcount&255,(t.samplesize&65280)>>8,t.samplesize&255,0,0,0,0,(t.samplerate&65280)>>8,t.samplerate&255,0,0]),l(t))}})();y=function e(t){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,0,(t.duration&4278190080)>>24,(t.duration&16711680)>>16,(t.duration&65280)>>8,t.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(t.width&65280)>>8,t.width&255,0,0,(t.height&65280)>>8,t.height&255,0,0]);return s(C.tkhd,i)};k=function e(t){var i,n,r,o,l,u,d;i=s(C.tfhd,new Uint8Array([0,0,0,58,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));u=Math.floor(t.baseMediaDecodeTime/a);d=Math.floor(t.baseMediaDecodeTime%a);n=s(C.tfdt,new Uint8Array([1,0,0,0,u>>>24&255,u>>>16&255,u>>>8&255,u&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255]));l=32+20+8+16+8+8;if(t.type==="audio"){r=A(t,l);return s(C.traf,i,n,r)}o=T(t);r=A(t,o.length+l);return s(C.traf,i,n,r,o)};m=function e(t){t.duration=t.duration||4294967295;return s(C.trak,y(t),_(t))};I=function e(t){var i=new Uint8Array([0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);if(t.type!=="video"){i[i.length-1]=0}return s(C.trex,i)};(function(){var e,t,i;i=function e(t,i){var n=0,r=0,a=0,s=0;if(t.length){if(t[0].duration!==undefined){n=1}if(t[0].size!==undefined){r=2}if(t[0].flags!==undefined){a=4}if(t[0].compositionTimeOffset!==undefined){s=8}}return[0,0,n|r|a|s,1,(t.length&4278190080)>>>24,(t.length&16711680)>>>16,(t.length&65280)>>>8,t.length&255,(i&4278190080)>>>24,(i&16711680)>>>16,(i&65280)>>>8,i&255]};t=function e(t,n){var r,a,o,l,u,d;l=t.samples||[];n+=8+12+16*l.length;o=i(l,n);a=new Uint8Array(o.length+l.length*16);a.set(o);r=o.length;for(d=0;d<l.length;d++){u=l[d];a[r++]=(u.duration&4278190080)>>>24;a[r++]=(u.duration&16711680)>>>16;a[r++]=(u.duration&65280)>>>8;a[r++]=u.duration&255;a[r++]=(u.size&4278190080)>>>24;a[r++]=(u.size&16711680)>>>16;a[r++]=(u.size&65280)>>>8;a[r++]=u.size&255;a[r++]=u.flags.isLeading<<2|u.flags.dependsOn;a[r++]=u.flags.isDependedOn<<6|u.flags.hasRedundancy<<4|u.flags.paddingValue<<1|u.flags.isNonSyncSample;a[r++]=u.flags.degradationPriority&240<<8;a[r++]=u.flags.degradationPriority&15;a[r++]=(u.compositionTimeOffset&4278190080)>>>24;a[r++]=(u.compositionTimeOffset&16711680)>>>16;a[r++]=(u.compositionTimeOffset&65280)>>>8;a[r++]=u.compositionTimeOffset&255}return s(C.trun,a)};e=function e(t,n){var r,a,o,l,u,d;l=t.samples||[];n+=8+12+8*l.length;o=i(l,n);r=new Uint8Array(o.length+l.length*8);r.set(o);a=o.length;for(d=0;d<l.length;d++){u=l[d];r[a++]=(u.duration&4278190080)>>>24;r[a++]=(u.duration&16711680)>>>16;r[a++]=(u.duration&65280)>>>8;r[a++]=u.duration&255;r[a++]=(u.size&4278190080)>>>24;r[a++]=(u.size&16711680)>>>16;r[a++]=(u.size&65280)>>>8;r[a++]=u.size&255}return s(C.trun,r)};A=function i(n,r){if(n.type==="audio"){return e(n,r)}return t(n,r)}})();var q={ftyp:u,mdat:d,moof:p,moov:h,initSegment:function e(t){var i=u(),n=h(t),r;r=new Uint8Array(i.byteLength+n.byteLength);r.set(i);r.set(n,i.byteLength);return r}};var H=function e(t){var i,n,r=[],a=[];a.byteLength=0;a.nalCount=0;a.duration=0;r.byteLength=0;for(i=0;i<t.length;i++){n=t[i];if(n.nalUnitType==="access_unit_delimiter_rbsp"){if(r.length){r.duration=n.dts-r.dts;a.byteLength+=r.byteLength;a.nalCount+=r.length;a.duration+=r.duration;a.push(r)}r=[n];r.byteLength=n.data.byteLength;r.pts=n.pts;r.dts=n.dts}else{if(n.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){r.keyFrame=true}r.duration=n.dts-r.dts;r.byteLength+=n.data.byteLength;r.push(n)}}if(a.length&&(!r.duration||r.duration<=0)){r.duration=a[a.length-1].duration}a.byteLength+=r.byteLength;a.nalCount+=r.length;a.duration+=r.duration;a.push(r);return a};var G=function e(t){var i,n,r=[],a=[];r.byteLength=0;r.nalCount=0;r.duration=0;r.pts=t[0].pts;r.dts=t[0].dts;a.byteLength=0;a.nalCount=0;a.duration=0;a.pts=t[0].pts;a.dts=t[0].dts;for(i=0;i<t.length;i++){n=t[i];if(n.keyFrame){if(r.length){a.push(r);a.byteLength+=r.byteLength;a.nalCount+=r.nalCount;a.duration+=r.duration}r=[n];r.nalCount=n.length;r.byteLength=n.byteLength;r.pts=n.pts;r.dts=n.dts;r.duration=n.duration}else{r.duration+=n.duration;r.nalCount+=n.length;r.byteLength+=n.byteLength;r.push(n)}}if(a.length&&r.duration<=0){r.duration=a[a.length-1].duration}a.byteLength+=r.byteLength;a.nalCount+=r.nalCount;a.duration+=r.duration;a.push(r);return a};var z=function e(t){var i;if(!t[0][0].keyFrame&&t.length>1){i=t.shift();t.byteLength-=i.byteLength;t.nalCount-=i.nalCount;t[0][0].dts=i.dts;t[0][0].pts=i.pts;t[0][0].duration+=i.duration}return t};var W=function e(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}};var Y=function e(t,i){var n=W();n.dataOffset=i;n.compositionTimeOffset=t.pts-t.dts;n.duration=t.duration;n.size=4*t.length;n.size+=t.byteLength;if(t.keyFrame){n.flags.dependsOn=2;n.flags.isNonSyncSample=0}return n};var K=function e(t,i){var n,r,a,s,o,l=i||0,u=[];for(n=0;n<t.length;n++){s=t[n];for(r=0;r<s.length;r++){o=s[r];a=Y(o,l);l+=a.size;u.push(a)}}return u};var X=function e(t){var i,n,r,a,s,o,l=0,u=t.byteLength,d=t.nalCount,c=u+4*d,f=new Uint8Array(c),p=new DataView(f.buffer);for(i=0;i<t.length;i++){a=t[i];for(n=0;n<a.length;n++){s=a[n];for(r=0;r<s.length;r++){o=s[r];p.setUint32(l,o.data.byteLength);l+=4;f.set(o.data,l);l+=o.data.byteLength}}}return f};var Q=function e(t,i){var n,r=i||0,a=[];n=Y(t,r);a.push(n);return a};var J=function e(t){var i,n,r=0,a=t.byteLength,s=t.length,o=a+4*s,l=new Uint8Array(o),u=new DataView(l.buffer);for(i=0;i<t.length;i++){n=t[i];u.setUint32(r,n.data.byteLength);r+=4;l.set(n.data,r);r+=n.data.byteLength}return l};var Z={groupNalsIntoFrames:H,groupFramesIntoGops:G,extendFirstKeyFrame:z,generateSampleTable:K,concatenateNalData:X,generateSampleTableForFrame:Q,concatenateNalDataForFrame:J};var $=[33,16,5,32,164,27];var ee=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252];var te=function e(t){var i=[];while(t--){i.push(0)}return i};var ie=function e(t){return Object.keys(t).reduce(function(e,i){e[i]=new Uint8Array(t[i].reduce(function(e,t){return e.concat(t)},[]));return e},{})};var ne;var re=function e(){if(!ne){var t={96000:[$,[227,64],te(154),[56]],88200:[$,[231],te(170),[56]],64000:[$,[248,192],te(240),[56]],48000:[$,[255,192],te(268),[55,148,128],te(54),[112]],44100:[$,[255,192],te(268),[55,163,128],te(84),[112]],32000:[$,[255,192],te(268),[55,234],te(226),[112]],24000:[$,[255,192],te(268),[55,255,128],te(268),[111,112],te(126),[224]],16000:[$,[255,192],te(268),[55,255,128],te(268),[111,255],te(269),[223,108],te(195),[1,192]],12000:[ee,te(268),[3,127,248],te(268),[6,255,240],te(268),[13,255,224],te(268),[27,253,128],te(259),[56]],11025:[ee,te(268),[3,127,248],te(268),[6,255,240],te(268),[13,255,224],te(268),[27,255,192],te(268),[55,175,128],te(108),[112]],8000:[ee,te(268),[3,121,16],te(47),[7]]};ne=ie(t)}return ne};var ae=9e4,se,oe,le,ue,de,ce,fe;se=function e(t){return t*ae};oe=function e(t,i){return t*i};le=function e(t){return t/ae};ue=function e(t,i){return t/i};de=function e(t,i){return se(ue(t,i))};ce=function e(t,i){return oe(le(t),i)};fe=function e(t,i,n){return le(n?t:t-i)};var pe={ONE_SECOND_IN_TS:ae,secondsToVideoTs:se,secondsToAudioTs:oe,videoTsToSeconds:le,audioTsToSeconds:ue,audioTsToVideoTs:de,videoTsToAudioTs:ce,metadataTsToSeconds:fe};var he=function e(t){var i,n,r=0;for(i=0;i<t.length;i++){n=t[i];r+=n.data.byteLength}return r};var ve=function e(t,i,n,r){var a,s=0,o=0,l=0,u=0,d,c,f;if(!i.length){return}a=pe.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate);s=Math.ceil(pe.ONE_SECOND_IN_TS/(t.samplerate/1024));if(n&&r){o=a-Math.max(n,r);l=Math.floor(o/s);u=l*s}if(l<1||u>pe.ONE_SECOND_IN_TS/2){return}d=re()[t.samplerate];if(!d){d=i[0].data}for(c=0;c<l;c++){f=i[0];i.splice(0,0,{data:d,dts:f.dts-s,pts:f.pts-s})}t.baseMediaDecodeTime-=Math.floor(pe.videoTsToAudioTs(u,t.samplerate));return u};var ge=function e(t,i,n){if(i.minSegmentDts>=n){return t}i.minSegmentDts=Infinity;return t.filter(function(e){if(e.dts>=n){i.minSegmentDts=Math.min(i.minSegmentDts,e.dts);i.minSegmentPts=i.minSegmentDts;return true}return false})};var me=function e(t){var i,n,r=[];for(i=0;i<t.length;i++){n=t[i];r.push({size:n.data.byteLength,duration:1024})}return r};var ye=function e(t){var i,n,r=0,a=new Uint8Array(he(t));for(i=0;i<t.length;i++){n=t[i];a.set(n.data,r);r+=n.data.byteLength}return a};var _e={prefixWithSilence:ve,trimAdtsFramesByEarliestDts:ge,generateSampleTable:me,concatenateFrameData:ye};var be=pe.ONE_SECOND_IN_TS;var Se=function e(t,i){if(typeof i.pts==="number"){if(t.timelineStartInfo.pts===undefined){t.timelineStartInfo.pts=i.pts}if(t.minSegmentPts===undefined){t.minSegmentPts=i.pts}else{t.minSegmentPts=Math.min(t.minSegmentPts,i.pts)}if(t.maxSegmentPts===undefined){t.maxSegmentPts=i.pts}else{t.maxSegmentPts=Math.max(t.maxSegmentPts,i.pts)}}if(typeof i.dts==="number"){if(t.timelineStartInfo.dts===undefined){t.timelineStartInfo.dts=i.dts}if(t.minSegmentDts===undefined){t.minSegmentDts=i.dts}else{t.minSegmentDts=Math.min(t.minSegmentDts,i.dts)}if(t.maxSegmentDts===undefined){t.maxSegmentDts=i.dts}else{t.maxSegmentDts=Math.max(t.maxSegmentDts,i.dts)}}};var Te=function e(t){delete t.minSegmentDts;delete t.maxSegmentDts;delete t.minSegmentPts;delete t.maxSegmentPts};var Ee=function e(t,i){var n,r,a=t.minSegmentDts;if(!i){a-=t.timelineStartInfo.dts}n=t.timelineStartInfo.baseMediaDecodeTime;n+=a;n=Math.max(0,n);if(t.type==="audio"){r=t.samplerate/be;n*=r;n=Math.floor(n)}return n};var we={clearDtsInfo:Te,calculateTrackBaseMediaDecodeTime:Ee,collectDtsInfo:Se};var ke=4,Ie=128;var Ae=function e(t){var i=0,n={payloadType:-1,payloadSize:0},r=0,a=0;while(i<t.byteLength){if(t[i]===Ie){break}while(t[i]===255){r+=255;i++}r+=t[i++];while(t[i]===255){a+=255;i++}a+=t[i++];if(!n.payload&&r===ke){var s=String.fromCharCode(t[i+3],t[i+4],t[i+5],t[i+6]);if(s==="GA94"){n.payloadType=r;n.payloadSize=a;n.payload=t.subarray(i,i+a);break}else{n.payload=void 0}}i+=a;r=0;a=0}return n};var Ce=function e(t){if(t.payload[0]!==181){return null}if((t.payload[1]<<8|t.payload[2])!==49){return null}if(String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])!=="GA94"){return null}if(t.payload[7]!==3){return null}return t.payload.subarray(8,t.payload.length-1)};var je=function e(t,i){var n=[],r,a,s,o;if(!(i[0]&64)){return n}a=i[0]&31;for(r=0;r<a;r++){s=r*3;o={type:i[s+2]&3,pts:t};if(i[s+2]&4){o.ccData=i[s+3]<<8|i[s+4];n.push(o)}}return n};var Pe=function e(t){var i=t.byteLength,n=[],r=1,a,s;while(r<i-2){if(t[r]===0&&t[r+1]===0&&t[r+2]===3){n.push(r+2);r+=2}else{r++}}if(n.length===0){return t}a=i-n.length;s=new Uint8Array(a);var o=0;for(r=0;r<a;o++,r++){if(o===n[0]){o++;n.shift()}s[r]=t[o]}return s};var xe={parseSei:Ae,parseUserData:Ce,parseCaptionPackets:je,discardEmulationPreventionBytes:Pe,USER_DATA_REGISTERED_ITU_T_T35:ke};var Le=function e(t){t=t||{};e.prototype.init.call(this);this.parse708captions_=typeof t.parse708captions==="boolean"?t.parse708captions:true;this.captionPackets_=[];this.ccStreams_=[new Ge(0,0),new Ge(0,1),new Ge(1,0),new Ge(1,1)];if(this.parse708captions_){this.cc708Stream_=new Ue({captionServices:t.captionServices})}this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("partialdone",this.trigger.bind(this,"partialdone"));e.on("done",this.trigger.bind(this,"done"))},this);if(this.parse708captions_){this.cc708Stream_.on("data",this.trigger.bind(this,"data"));this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone"));this.cc708Stream_.on("done",this.trigger.bind(this,"done"))}};Le.prototype=new t;Le.prototype.push=function(e){var t,i,n;if(e.nalUnitType!=="sei_rbsp"){return}t=xe.parseSei(e.escapedRBSP);if(!t.payload){return}if(t.payloadType!==xe.USER_DATA_REGISTERED_ITU_T_T35){return}i=xe.parseUserData(t);if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}n=xe.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(n);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};Le.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return e==="flush"?t.flush():t.partialFlush()},this)};Le.prototype.flushStream=function(e){if(!this.captionPackets_.length){this.flushCCStreams(e);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}else{this.dispatchCea708Packet(e)}},this);this.captionPackets_.length=0;this.flushCCStreams(e)};Le.prototype.flush=function(){return this.flushStream("flush")};Le.prototype.partialFlush=function(){return this.flushStream("partialFlush")};Le.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};Le.prototype.dispatchCea608Packet=function(e){if(this.setsTextOrXDSActive(e)){this.activeCea608Channel_[e.type]=null}else if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};Le.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};Le.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};Le.prototype.setsTextOrXDSActive=function(e){return(e.ccData&28928)===256||(e.ccData&30974)===4138||(e.ccData&30974)===6186};Le.prototype.dispatchCea708Packet=function(e){if(this.parse708captions_){this.cc708Stream_.push(e)}};var Oe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600};var De=function e(t){var i=Oe[t]||t;if(t&4096&&t===i){return""}return String.fromCharCode(i)};var Re=function e(t){return 32<=t&&t<=127||160<=t&&t<=255};var Ne=function e(t){this.windowNum=t;this.reset()};Ne.prototype.reset=function(){this.clearText();this.pendingNewLine=false;this.winAttr={};this.penAttr={};this.penLoc={};this.penColor={};this.visible=0;this.rowLock=0;this.columnLock=0;this.priority=0;this.relativePositioning=0;this.anchorVertical=0;this.anchorHorizontal=0;this.anchorPoint=0;this.rowCount=1;this.virtualRowCount=this.rowCount+1;this.columnCount=41;this.windowStyle=0;this.penStyle=0};Ne.prototype.getText=function(){return this.rows.join("\n")};Ne.prototype.clearText=function(){this.rows=[""];this.rowIdx=0};Ne.prototype.newLine=function(e){if(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow==="function"){this.beforeRowOverflow(e)}if(this.rows.length>0){this.rows.push("");this.rowIdx++}while(this.rows.length>this.virtualRowCount){this.rows.shift();this.rowIdx--}};Ne.prototype.isEmpty=function(){if(this.rows.length===0){return true}else if(this.rows.length===1){return this.rows[0]===""}return false};Ne.prototype.addText=function(e){this.rows[this.rowIdx]+=e};Ne.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Me=function e(t,i,n){this.serviceNum=t;this.text="";this.currentWindow=new Ne(-1);this.windows=[];this.stream=n;if(typeof i==="string"){this.createTextDecoder(i)}};Me.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++){this.windows[i]=new Ne(i);if(typeof t==="function"){this.windows[i].beforeRowOverflow=t}}};Me.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};Me.prototype.createTextDecoder=function(e){if(typeof TextDecoder==="undefined"){this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"})}else{try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}}};var Ue=function e(t){t=t||{};e.prototype.init.call(this);var i=this;var n=t.captionServices||{};var r={};var a;Object.keys(n).forEach(function(e){a=n[e];if(/^SERVICE/.test(e)){r[e]=a.encoding}});this.serviceEncodings=r;this.current708Packet=null;this.services={};this.push=function(e){if(e.type===3){i.new708Packet();i.add708Bytes(e)}else{if(i.current708Packet===null){i.new708Packet()}i.add708Bytes(e)}}};Ue.prototype=new t;Ue.prototype.new708Packet=function(){if(this.current708Packet!==null){this.push708Packet()}this.current708Packet={data:[],ptsVals:[]}};Ue.prototype.add708Bytes=function(e){var t=e.ccData;var i=t>>>8;var n=t&255;this.current708Packet.ptsVals.push(e.pts);this.current708Packet.data.push(i);this.current708Packet.data.push(n)};Ue.prototype.push708Packet=function(){var e=this.current708Packet;var t=e.data;var i=null;var n=null;var r=0;var a=t[r++];e.seq=a>>6;e.sizeCode=a&63;for(;r<t.length;r++){a=t[r++];i=a>>5;n=a&31;if(i===7&&n>0){a=t[r++];i=a}this.pushServiceBlock(i,r,n);if(n>0){r+=n-1}}};Ue.prototype.pushServiceBlock=function(e,t,i){var n;var r=t;var a=this.current708Packet.data;var s=this.services[e];if(!s){s=this.initService(e,r)}for(;r<t+i&&r<a.length;r++){n=a[r];if(Re(n)){r=this.handleText(r,s)}else if(n===24){r=this.multiByteCharacter(r,s)}else if(n===16){r=this.extendedCommands(r,s)}else if(128<=n&&n<=135){r=this.setCurrentWindow(r,s)}else if(152<=n&&n<=159){r=this.defineWindow(r,s)}else if(n===136){r=this.clearWindows(r,s)}else if(n===140){r=this.deleteWindows(r,s)}else if(n===137){r=this.displayWindows(r,s)}else if(n===138){r=this.hideWindows(r,s)}else if(n===139){r=this.toggleWindows(r,s)}else if(n===151){r=this.setWindowAttributes(r,s)}else if(n===144){r=this.setPenAttributes(r,s)}else if(n===145){r=this.setPenColor(r,s)}else if(n===146){r=this.setPenLocation(r,s)}else if(n===143){s=this.reset(r,s)}else if(n===8){s.currentWindow.backspace()}else if(n===12){s.currentWindow.clearText()}else if(n===13){s.currentWindow.pendingNewLine=true}else if(n===14){s.currentWindow.clearText()}else if(n===141){r++}else;}};Ue.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data;var n=i[++e];if(Re(n)){e=this.handleText(e,t,{isExtended:true})}return e};Ue.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]};Ue.prototype.initService=function(e,t){var i="SERVICE"+e;var n=this;var i;var r;if(i in this.serviceEncodings){r=this.serviceEncodings[i]}this.services[e]=new Me(e,r,n);this.services[e].init(this.getPts(t),function(t){n.flushDisplayed(t,n.services[e])});return this.services[e]};Ue.prototype.handleText=function(e,t,i){var n=i&&i.isExtended;var r=i&&i.isMultiByte;var a=this.current708Packet.data;var s=n?4096:0;var o=a[e];var l=a[e+1];var u=t.currentWindow;var d;var c;if(t.textDecoder_&&!n){if(r){c=[o,l];e++}else{c=[o]}d=t.textDecoder_.decode(new Uint8Array(c))}else{d=De(s|o)}if(u.pendingNewLine&&!u.isEmpty()){u.newLine(this.getPts(e))}u.pendingNewLine=false;u.addText(d);return e};Ue.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data;var n=i[e+1];var r=i[e+2];if(Re(n)&&Re(r)){e=this.handleText(++e,t,{isMultiByte:true})}return e};Ue.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=n&7;t.setCurrentWindow(r);return e};Ue.prototype.defineWindow=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=n&7;t.setCurrentWindow(r);var a=t.currentWindow;n=i[++e];a.visible=(n&32)>>5;a.rowLock=(n&16)>>4;a.columnLock=(n&8)>>3;a.priority=n&7;n=i[++e];a.relativePositioning=(n&128)>>7;a.anchorVertical=n&127;n=i[++e];a.anchorHorizontal=n;n=i[++e];a.anchorPoint=(n&240)>>4;a.rowCount=n&15;n=i[++e];a.columnCount=n&63;n=i[++e];a.windowStyle=(n&56)>>3;a.penStyle=n&7;a.virtualRowCount=a.rowCount+1;return e};Ue.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=t.currentWindow.winAttr;n=i[++e];r.fillOpacity=(n&192)>>6;r.fillRed=(n&48)>>4;r.fillGreen=(n&12)>>2;r.fillBlue=n&3;n=i[++e];r.borderType=(n&192)>>6;r.borderRed=(n&48)>>4;r.borderGreen=(n&12)>>2;r.borderBlue=n&3;n=i[++e];r.borderType+=(n&128)>>5;r.wordWrap=(n&64)>>6;r.printDirection=(n&48)>>4;r.scrollDirection=(n&12)>>2;r.justify=n&3;n=i[++e];r.effectSpeed=(n&240)>>4;r.effectDirection=(n&12)>>2;r.displayEffect=n&3;return e};Ue.prototype.flushDisplayed=function(e,t){var i=[];for(var n=0;n<8;n++){if(t.windows[n].visible&&!t.windows[n].isEmpty()){i.push(t.windows[n].getText())}}t.endPts=e;t.text=i.join("\n\n");this.pushCaption(t);t.startPts=e};Ue.prototype.pushCaption=function(e){if(e.text!==""){this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum});e.text="";e.startPts=e.endPts}};Ue.prototype.displayWindows=function(e,t){var i=this.current708Packet.data;var n=i[++e];var r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++){if(n&1<<a){t.windows[a].visible=1}}return e};Ue.prototype.hideWindows=function(e,t){var i=this.current708Packet.data;var n=i[++e];var r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++){if(n&1<<a){t.windows[a].visible=0}}return e};Ue.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data;var n=i[++e];var r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++){if(n&1<<a){t.windows[a].visible^=1}}return e};Ue.prototype.clearWindows=function(e,t){var i=this.current708Packet.data;var n=i[++e];var r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++){if(n&1<<a){t.windows[a].clearText()}}return e};Ue.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data;var n=i[++e];var r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++){if(n&1<<a){t.windows[a].reset()}}return e};Ue.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=t.currentWindow.penAttr;n=i[++e];r.textTag=(n&240)>>4;r.offset=(n&12)>>2;r.penSize=n&3;n=i[++e];r.italics=(n&128)>>7;r.underline=(n&64)>>6;r.edgeType=(n&56)>>3;r.fontStyle=n&7;return e};Ue.prototype.setPenColor=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=t.currentWindow.penColor;n=i[++e];r.fgOpacity=(n&192)>>6;r.fgRed=(n&48)>>4;r.fgGreen=(n&12)>>2;r.fgBlue=n&3;n=i[++e];r.bgOpacity=(n&192)>>6;r.bgRed=(n&48)>>4;r.bgGreen=(n&12)>>2;r.bgBlue=n&3;n=i[++e];r.edgeRed=(n&48)>>4;r.edgeGreen=(n&12)>>2;r.edgeBlue=n&3;return e};Ue.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data;var n=i[e];var r=t.currentWindow.penLoc;t.currentWindow.pendingNewLine=true;n=i[++e];r.row=n&15;n=i[++e];r.column=n&63;return e};Ue.prototype.reset=function(e,t){var i=this.getPts(e);this.flushDisplayed(i,t);return this.initService(t.serviceNum,e)};var Be={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var Fe=function e(t){if(t===null){return""}t=Be[t]||t;return String.fromCharCode(t)};var Ve=14;var qe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var He=function e(){var t=[],i=Ve+1;while(i--){t.push("")}return t};var Ge=function e(t,i){e.prototype.init.call(this);this.field_=t||0;this.dataChannel_=i||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,n,r,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}n=t>>>8;r=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=He()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=He()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=He()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(n,r)){n=(n&3)<<8;a=Fe(n|r);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(n,r)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}n=(n&3)<<8;a=Fe(n|r);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(n,r)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((r&14)===14){this.addFormatting(e.pts,["i"])}if((r&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(n,r)){this.column_+=r&3}else if(this.isPAC(n,r)){var s=qe.indexOf(t&7968);if(this.mode_==="rollUp"){if(s-this.rollUpRows_+1<0){s=this.rollUpRows_-1}this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(r&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(r)){if((r&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(n)){if(r===0){r=null}a=Fe(n);a+=Fe(r);this[this.mode_](e.pts,a);this.column_+=a.length}}};Ge.prototype=new t;Ge.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."});return""}},this).join("\n").replace(/^\n+|\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};Ge.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=He();this.nonDisplayed_=He();this.lastControlCode_=null;this.column_=0;this.row_=Ve;this.rollUpRows_=2;this.formatting_=[]};Ge.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};Ge.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};Ge.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63};Ge.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47};Ge.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35};Ge.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127};Ge.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};Ge.prototype.isNormalChar=function(e){return e>=32&&e<=127};Ge.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=Ve;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=He();this.displayed_=He()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};Ge.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};Ge.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};Ge.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};Ge.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};Ge.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<Ve+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};Ge.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var ze={CaptionStream:Le,Cea608Stream:Ge,Cea708Stream:Ue};var We={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var Ye=8589934592;var Ke=4294967296;var Xe="shared";var Qe=function e(t,i){var n=1;if(t>i){n=-1}while(Math.abs(i-t)>Ke){t+=n*Ye}return t};var Je=function e(t){var i,n;e.prototype.init.call(this);this.type_=t||Xe;this.push=function(e){if(this.type_!==Xe&&e.type!==this.type_){return}if(n===undefined){n=e.dts}e.dts=Qe(e.dts,n);e.pts=Qe(e.pts,n);i=e.dts;this.trigger("data",e)};this.flush=function(){n=i;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.discontinuity=function(){n=void 0;i=void 0};this.reset=function(){this.discontinuity();this.trigger("reset")}};Je.prototype=new t;var Ze={TimestampRolloverStream:Je,handleRollover:Qe};var $e=function e(t,i,n){var r,a="";for(r=i;r<n;r++){a+="%"+("00"+t[r].toString(16)).slice(-2)}return a},et=function e(t,i,n){return decodeURIComponent($e(t,i,n))},tt=function e(t,i,n){return unescape($e(t,i,n))},it=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},nt={TXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=et(t.data,1,i);t.value=et(t.data,i+1,t.data.length).replace(/\0*$/,"");break}}t.data=t.value},WXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=et(t.data,1,i);t.url=et(t.data,i+1,t.data.length);break}}},PRIV:function e(t){var i;for(i=0;i<t.data.length;i++){if(t.data[i]===0){t.owner=tt(t.data,0,i);break}}t.privateData=t.data.subarray(i+1);t.data=t.privateData}},rt;rt=function e(t){var i={descriptor:t&&t.descriptor},n=0,r=[],a=0,s;rt.prototype.init.call(this);this.dispatchType=We.METADATA_STREAM_TYPE.toString(16);if(i.descriptor){for(s=0;s<i.descriptor.length;s++){this.dispatchType+=("00"+i.descriptor[s].toString(16)).slice(-2)}}this.push=function(e){var t,i,s,o,l,u;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){a=0;r.length=0}if(r.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}r.push(e);a+=e.data.byteLength;if(r.length===1){n=it(e.data.subarray(6,10));n+=10}if(a<n){return}t={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts};for(l=0;l<n;){t.data.set(r[0].data.subarray(0,n-l),l);l+=r[0].data.byteLength;a-=r[0].data.byteLength;r.shift()}i=10;if(t.data[5]&64){i+=4;i+=it(t.data.subarray(10,14));n-=it(t.data.subarray(16,20))}do{s=it(t.data.subarray(i+4,i+8));if(s<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});return}u=String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]);o={id:u,data:t.data.subarray(i+10,i+s+10)};o.key=o.id;if(nt[o.id]){nt[o.id](o);if(o.owner==="com.apple.streaming.transportStreamTimestamp"){var d=o.data,c=(d[3]&1)<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;c*=4;c+=d[7]&3;o.timeStamp=c;if(t.pts===undefined&&t.dts===undefined){t.pts=o.timeStamp;t.dts=o.timeStamp}this.trigger("timestamp",o)}}t.frames.push(o);i+=10;i+=s}while(i<n);this.trigger("data",t)}};rt.prototype=new t;var at=rt;var st=Ze.TimestampRolloverStream;var ot,lt,ut;var dt=188,ct=71;ot=function e(){var t=new Uint8Array(dt),i=0;ot.prototype.init.call(this);this.push=function(e){var n=0,r=dt,a;if(i){a=new Uint8Array(e.byteLength+i);a.set(t.subarray(0,i));a.set(e,i);i=0}else{a=e}while(r<a.byteLength){if(a[n]===ct&&a[r]===ct){this.trigger("data",a.subarray(n,r));n+=dt;r+=dt;continue}n++;r++}if(n<a.byteLength){t.set(a.subarray(n),0);i=a.byteLength-n}};this.flush=function(){if(i===dt&&t[0]===ct){this.trigger("data",t);i=0}this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.reset=function(){i=0;this.trigger("reset")}};ot.prototype=new t;lt=function e(){var t,i,n,r;lt.prototype.init.call(this);r=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;t=function e(t,r){var a=0;if(r.payloadUnitStartIndicator){a+=t[a]+1}if(r.type==="pat"){i(t.subarray(a),r)}else{n(t.subarray(a),r)}};i=function e(t,i){i.section_number=t[7];i.last_section_number=t[8];r.pmtPid=(t[10]&31)<<8|t[11];i.pmtPid=r.pmtPid};n=function e(t,i){var n,a,s,o;if(!(t[5]&1)){return}r.programMapTable={video:null,audio:null,"timed-metadata":{}};n=(t[1]&15)<<8|t[2];a=3+n-4;s=(t[10]&15)<<8|t[11];o=12+s;while(o<a){var l=t[o];var u=(t[o+1]&31)<<8|t[o+2];if(l===We.H264_STREAM_TYPE&&r.programMapTable.video===null){r.programMapTable.video=u}else if(l===We.ADTS_STREAM_TYPE&&r.programMapTable.audio===null){r.programMapTable.audio=u}else if(l===We.METADATA_STREAM_TYPE){r.programMapTable["timed-metadata"][u]=l}o+=((t[o+3]&15)<<8|t[o+4])+5}i.programMapTable=r.programMapTable};this.push=function(e){var i={},n=4;i.payloadUnitStartIndicator=!!(e[1]&64);i.pid=e[1]&31;i.pid<<=8;i.pid|=e[2];if((e[3]&48)>>>4>1){n+=e[n]+1}if(i.pid===0){i.type="pat";t(e.subarray(n),i);this.trigger("data",i)}else if(i.pid===this.pmtPid){i.type="pmt";t(e.subarray(n),i);this.trigger("data",i);while(this.packetsWaitingForPmt.length){this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}}else if(this.programMapTable===undefined){this.packetsWaitingForPmt.push([e,n,i])}else{this.processPes_(e,n,i)}};this.processPes_=function(e,t,i){if(i.pid===this.programMapTable.video){i.streamType=We.H264_STREAM_TYPE}else if(i.pid===this.programMapTable.audio){i.streamType=We.ADTS_STREAM_TYPE}else{i.streamType=this.programMapTable["timed-metadata"][i.pid]}i.type="pes";i.data=e.subarray(t);this.trigger("data",i)}};lt.prototype=new t;lt.STREAM_TYPES={h264:27,adts:15};ut=function e(){var t=this,i=false,n={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s,o=function e(t,i){var n;var r=t[0]<<16|t[1]<<8|t[2];i.data=new Uint8Array;if(r!==1){return}i.packetLength=6+(t[4]<<8|t[5]);i.dataAlignmentIndicator=(t[6]&4)!==0;n=t[7];if(n&192){i.pts=(t[9]&14)<<27|(t[10]&255)<<20|(t[11]&254)<<12|(t[12]&255)<<5|(t[13]&254)>>>3;i.pts*=4;i.pts+=(t[13]&6)>>>1;i.dts=i.pts;if(n&64){i.dts=(t[14]&14)<<27|(t[15]&255)<<20|(t[16]&254)<<12|(t[17]&255)<<5|(t[18]&254)>>>3;i.dts*=4;i.dts+=(t[18]&6)>>>1}}i.data=t.subarray(9+t[8])},l=function e(i,n,r){var a=new Uint8Array(i.size),s={type:n},l=0,u=0,d=false,c;if(!i.data.length||i.size<9){return}s.trackId=i.data[0].pid;for(l=0;l<i.data.length;l++){c=i.data[l];a.set(c.data,u);u+=c.data.byteLength}o(a,s);d=n==="video"||s.packetLength<=i.size;if(r||d){i.size=0;i.data.length=0}if(d){t.trigger("data",s)}};ut.prototype.init.call(this);this.push=function(e){({pat:function e(){},pes:function t(){var i,s;switch(e.streamType){case We.H264_STREAM_TYPE:i=n;s="video";break;case We.ADTS_STREAM_TYPE:i=r;s="audio";break;case We.METADATA_STREAM_TYPE:i=a;s="timed-metadata";break;default:return}if(e.payloadUnitStartIndicator){l(i,s,true)}i.data.push(e);i.size+=e.data.byteLength},pmt:function n(){var r={type:"metadata",tracks:[]};s=e.programMapTable;if(s.video!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+s.video,codec:"avc",type:"video"})}if(s.audio!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+s.audio,codec:"adts",type:"audio"})}i=true;t.trigger("data",r)}})[e.type]()};this.reset=function(){n.size=0;n.data.length=0;r.size=0;r.data.length=0;this.trigger("reset")};this.flushStreams_=function(){l(n,"video");l(r,"audio");l(a,"timed-metadata")};this.flush=function(){if(!i&&s){var e={type:"metadata",tracks:[]};if(s.video!==null){e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+s.video,codec:"avc",type:"video"})}if(s.audio!==null){e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+s.audio,codec:"adts",type:"audio"})}t.trigger("data",e)}i=false;this.flushStreams_();this.trigger("done")}};ut.prototype=new t;var ft={PAT_PID:0,MP2T_PACKET_LENGTH:dt,TransportPacketStream:ot,TransportParseStream:lt,ElementaryStream:ut,TimestampRolloverStream:st,CaptionStream:ze.CaptionStream,Cea608Stream:ze.Cea608Stream,Cea708Stream:ze.Cea708Stream,MetadataStream:at};for(var pt in We){if(We.hasOwnProperty(pt)){ft[pt]=We[pt]}}var ht=ft;var vt=pe.ONE_SECOND_IN_TS;var gt;var mt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];gt=function e(t){var i,n=0;gt.prototype.init.call(this);this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})};this.push=function(e){var r=0,a,s,o,l,u;if(!t){n=0}if(e.type!=="audio"){return}if(i&&i.length){o=i;i=new Uint8Array(o.byteLength+e.data.byteLength);i.set(o);i.set(e.data,o.byteLength)}else{i=e.data}var d;while(r+7<i.length){if(i[r]!==255||(i[r+1]&246)!==240){if(typeof d!=="number"){d=r}r++;continue}if(typeof d==="number"){this.skipWarn_(d,r);d=null}s=(~i[r+1]&1)*2;a=(i[r+3]&3)<<11|i[r+4]<<3|(i[r+5]&224)>>5;l=((i[r+6]&3)+1)*1024;u=l*vt/mt[(i[r+2]&60)>>>2];if(i.byteLength-r<a){break}this.trigger("data",{pts:e.pts+n*u,dts:e.dts+n*u,sampleCount:l,audioobjecttype:(i[r+2]>>>6&3)+1,channelcount:(i[r+2]&1)<<2|(i[r+3]&192)>>>6,samplerate:mt[(i[r+2]&60)>>>2],samplingfrequencyindex:(i[r+2]&60)>>>2,samplesize:16,data:i.subarray(r+7+s,r+a)});n++;r+=a}if(typeof d==="number"){this.skipWarn_(d,r);d=null}i=i.subarray(r)};this.flush=function(){n=0;this.trigger("done")};this.reset=function(){i=void 0;this.trigger("reset")};this.endTimeline=function(){i=void 0;this.trigger("endedtimeline")}};gt.prototype=new t;var yt=gt;var _t;_t=function e(t){var i=t.byteLength,n=0,r=0;this.length=function(){return 8*i};this.bitsAvailable=function(){return 8*i+r};this.loadWord=function(){var e=t.byteLength-i,a=new Uint8Array(4),s=Math.min(4,i);if(s===0){throw new Error("no bytes available")}a.set(t.subarray(e,e+s));n=new DataView(a.buffer).getUint32(0);r=s*8;i-=s};this.skipBits=function(e){var t;if(r>e){n<<=e;r-=e}else{e-=r;t=Math.floor(e/8);e-=t*8;i-=t;this.loadWord();n<<=e;r-=e}};this.readBits=function(e){var t=Math.min(r,e),a=n>>>32-t;r-=t;if(r>0){n<<=t}else if(i>0){this.loadWord()}t=e-t;if(t>0){return a<<t|this.readBits(t)}return a};this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e){if((n&2147483648>>>e)!==0){n<<=e;r-=e;return e}}this.loadWord();return e+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1};this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();if(1&e){return 1+e>>>1}return-1*(e>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};var bt=_t;var St,Tt;var Et;Tt=function e(){var t=0,i,n;Tt.prototype.init.call(this);this.push=function(e){var r;if(!n){n=e.data}else{r=new Uint8Array(n.byteLength+e.data.byteLength);r.set(n);r.set(e.data,n.byteLength);n=r}var a=n.byteLength;for(;t<a-3;t++){if(n[t+2]===1){i=t+5;break}}while(i<a){switch(n[i]){case 0:if(n[i-1]!==0){i+=2;break}else if(n[i-2]!==0){i++;break}if(t+3!==i-2){this.trigger("data",n.subarray(t+3,i-2))}do{i++}while(n[i]!==1&&i<a);t=i-2;i+=3;break;case 1:if(n[i-1]!==0||n[i-2]!==0){i+=3;break}this.trigger("data",n.subarray(t+3,i-2));t=i-2;i+=3;break;default:i+=3;break}}n=n.subarray(t);i-=t;t=0};this.reset=function(){n=null;t=0;this.trigger("reset")};this.flush=function(){if(n&&n.byteLength>3){this.trigger("data",n.subarray(t+3))}n=null;t=0;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")}};Tt.prototype=new t;Et={100:true,110:true,122:true,244:true,44:true,83:true,86:true,118:true,128:true,138:true,139:true,134:true};St=function e(){var t=new Tt,i,n,r,a,s,o,l;St.prototype.init.call(this);i=this;this.push=function(e){if(e.type!=="video"){return}n=e.trackId;r=e.pts;a=e.dts;t.push(e)};t.on("data",function(e){var t={trackId:n,pts:r,dts:a,data:e,nalUnitTypeCode:e[0]&31};switch(t.nalUnitTypeCode){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp";t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp";t.escapedRBSP=s(e.subarray(1));t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp";break}i.trigger("data",t)});t.on("done",function(){i.trigger("done")});t.on("partialdone",function(){i.trigger("partialdone")});t.on("reset",function(){i.trigger("reset")});t.on("endedtimeline",function(){i.trigger("endedtimeline")});this.flush=function(){t.flush()};this.partialFlush=function(){t.partialFlush()};this.reset=function(){t.reset()};this.endTimeline=function(){t.endTimeline()};l=function e(t,i){var n=8,r=8,a,s;for(a=0;a<t;a++){if(r!==0){s=i.readExpGolomb();r=(n+s+256)%256}n=r===0?n:r}};s=function e(t){var i=t.byteLength,n=[],r=1,a,s;while(r<i-2){if(t[r]===0&&t[r+1]===0&&t[r+2]===3){n.push(r+2);r+=2}else{r++}}if(n.length===0){return t}a=i-n.length;s=new Uint8Array(a);var o=0;for(r=0;r<a;o++,r++){if(o===n[0]){o++;n.shift()}s[r]=t[o]}return s};o=function e(t){var i=0,n=0,r=0,a=0,s,o,u,d,c,f,p,h,v,g,m,y=[1,1],_,b;s=new bt(t);o=s.readUnsignedByte();d=s.readUnsignedByte();u=s.readUnsignedByte();s.skipUnsignedExpGolomb();if(Et[o]){c=s.readUnsignedExpGolomb();if(c===3){s.skipBits(1)}s.skipUnsignedExpGolomb();s.skipUnsignedExpGolomb();s.skipBits(1);if(s.readBoolean()){m=c!==3?8:12;for(b=0;b<m;b++){if(s.readBoolean()){if(b<6){l(16,s)}else{l(64,s)}}}}}s.skipUnsignedExpGolomb();f=s.readUnsignedExpGolomb();if(f===0){s.readUnsignedExpGolomb()}else if(f===1){s.skipBits(1);s.skipExpGolomb();s.skipExpGolomb();p=s.readUnsignedExpGolomb();for(b=0;b<p;b++){s.skipExpGolomb()}}s.skipUnsignedExpGolomb();s.skipBits(1);h=s.readUnsignedExpGolomb();v=s.readUnsignedExpGolomb();g=s.readBits(1);if(g===0){s.skipBits(1)}s.skipBits(1);if(s.readBoolean()){i=s.readUnsignedExpGolomb();n=s.readUnsignedExpGolomb();r=s.readUnsignedExpGolomb();a=s.readUnsignedExpGolomb()}if(s.readBoolean()){if(s.readBoolean()){_=s.readUnsignedByte();switch(_){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:{y=[s.readUnsignedByte()<<8|s.readUnsignedByte(),s.readUnsignedByte()<<8|s.readUnsignedByte()];break}}if(y){y[0]/y[1]}}}return{profileIdc:o,levelIdc:u,profileCompatibility:d,width:(h+1)*16-i*2-n*2,height:(2-g)*(v+1)*16-r*2-a*2,sarRatio:y}}};St.prototype=new t;var wt={H264Stream:St,NalByteStream:Tt};var kt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var It=function e(t,i){var n=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9],r=t[i+5],a=(r&16)>>4;n=n>=0?n:0;if(a){return n+20}return n+10};var At=function e(t,i){if(t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)){return i}i+=It(t,i);return e(t,i)};var Ct=function e(t){var i=At(t,0);return t.length>=i+2&&(t[i]&255)===255&&(t[i+1]&240)===240&&(t[i+1]&22)===16};var jt=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};var Pt=function e(t,i,n){var r,a="";for(r=i;r<n;r++){a+="%"+("00"+t[r].toString(16)).slice(-2)}return a};var xt=function e(t,i,n){return unescape(Pt(t,i,n))};var Lt=function e(t,i){var n=(t[i+5]&224)>>5,r=t[i+4]<<3,a=t[i+3]&3<<11;return a|r|n};var Ot=function e(t,i){if(t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(t[i]&255===255&&(t[i+1]&240)===240){return"audio"}return null};var Dt=function e(t){var i=0;while(i+5<t.length){if(t[i]!==255||(t[i+1]&246)!==240){i++;continue}return kt[(t[i+2]&60)>>>2]}return null};var Rt=function e(t){var i,n,r,a;i=10;if(t[5]&64){i+=4;i+=jt(t.subarray(10,14))}do{n=jt(t.subarray(i+4,i+8));if(n<1){return null}a=String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3]);if(a==="PRIV"){r=t.subarray(i+10,i+n+10);for(var s=0;s<r.byteLength;s++){if(r[s]===0){var o=xt(r,0,s);if(o==="com.apple.streaming.transportStreamTimestamp"){var l=r.subarray(s+1);var u=(l[3]&1)<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4;u+=l[7]&3;return u}break}}}i+=10;i+=n}while(i<t.byteLength);return null};var Nt={isLikelyAacData:Ct,parseId3TagSize:It,parseAdtsSize:Lt,parseType:Ot,parseSampleRate:Dt,parseAacTimestamp:Rt};var Mt;Mt=function e(){var t=new Uint8Array,i=0;Mt.prototype.init.call(this);this.setTimestamp=function(e){i=e};this.push=function(e){var n=0,r=0,a,s,o,l;if(t.length){l=t.length;t=new Uint8Array(e.byteLength+l);t.set(t.subarray(0,l));t.set(e,l)}else{t=e}while(t.length-r>=3){if(t[r]==="I".charCodeAt(0)&&t[r+1]==="D".charCodeAt(0)&&t[r+2]==="3".charCodeAt(0)){if(t.length-r<10){break}n=Nt.parseId3TagSize(t,r);if(r+n>t.length){break}s={type:"timed-metadata",data:t.subarray(r,r+n)};this.trigger("data",s);r+=n;continue}else if((t[r]&255)===255&&(t[r+1]&240)===240){if(t.length-r<7){break}n=Nt.parseAdtsSize(t,r);if(r+n>t.length){break}o={type:"audio",data:t.subarray(r,r+n),pts:i,dts:i};this.trigger("data",o);r+=n;continue}r++}a=t.length-r;if(a>0){t=t.subarray(r)}else{t=new Uint8Array}};this.reset=function(){t=new Uint8Array;this.trigger("reset")};this.endTimeline=function(){t=new Uint8Array;this.trigger("endedtimeline")}};Mt.prototype=new t;var Ut=Mt;var Bt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"];var Ft=Bt;var Vt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"];var qt=Vt;var Ht=wt.H264Stream;var Gt=Nt.isLikelyAacData;var zt=pe.ONE_SECOND_IN_TS;var Wt,Yt,Kt,Xt;var Qt=function e(t,i){i.stream=t;this.trigger("log",i)};var Jt=function e(t,i){var n=Object.keys(i);for(var r=0;r<n.length;r++){var a=n[r];if(a==="headOfPipeline"||!i[a].on){continue}i[a].on("log",Qt.bind(t,a))}};var Zt=function e(t,i){var n;if(t.length!==i.length){return false}for(n=0;n<t.length;n++){if(t[n]!==i[n]){return false}}return true};var $t=function e(t,i,n,r,a,s){var o=n-i,l=r-i,u=a-n;return{start:{dts:t,pts:t+o},end:{dts:t+l,pts:t+u},prependedContentDuration:s,baseMediaDecodeTime:t}};Yt=function e(t,i){var n=[],r,a=0,s=0,o=Infinity;i=i||{};r=i.firstSequenceNumber||0;Yt.prototype.init.call(this);this.push=function(e){we.collectDtsInfo(t,e);if(t){Ft.forEach(function(i){t[i]=e[i]})}n.push(e)};this.setEarliestDts=function(e){a=e};this.setVideoBaseMediaDecodeTime=function(e){o=e};this.setAudioAppendStart=function(e){s=e};this.flush=function(){var e,l,u,d,c,f,p;if(n.length===0){this.trigger("done","AudioSegmentStream");return}e=_e.trimAdtsFramesByEarliestDts(n,t,a);t.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);p=_e.prefixWithSilence(t,e,s,o);t.samples=_e.generateSampleTable(e);u=q.mdat(_e.concatenateFrameData(e));n=[];l=q.moof(r,[t]);d=new Uint8Array(l.byteLength+u.byteLength);r++;d.set(l);d.set(u,l.byteLength);we.clearDtsInfo(t);c=Math.ceil(zt*1024/t.samplerate);if(e.length){f=e.length*c;this.trigger("segmentTimingInfo",$t(pe.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),e[0].dts,e[0].pts,e[0].dts+f,e[0].pts+f,p||0));this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+f})}this.trigger("data",{track:t,boxes:d});this.trigger("done","AudioSegmentStream")};this.reset=function(){we.clearDtsInfo(t);n=[];this.trigger("reset")}};Yt.prototype=new t;Wt=function e(t,i){var n,r=[],a=[],s,o;i=i||{};n=i.firstSequenceNumber||0;Wt.prototype.init.call(this);delete t.minPTS;this.gopCache_=[];this.push=function(e){we.collectDtsInfo(t,e);if(e.nalUnitType==="seq_parameter_set_rbsp"&&!s){s=e.config;t.sps=[e.data];qt.forEach(function(e){t[e]=s[e]},this)}if(e.nalUnitType==="pic_parameter_set_rbsp"&&!o){o=e.data;t.pps=[e.data]}r.push(e)};this.flush=function(){var e,s,o,l,u,d,c=0,f,p;while(r.length){if(r[0].nalUnitType==="access_unit_delimiter_rbsp"){break}r.shift()}if(r.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}e=Z.groupNalsIntoFrames(r);o=Z.groupFramesIntoGops(e);if(!o[0][0].keyFrame){s=this.getGopForFusion_(r[0],t);if(s){c=s.duration;o.unshift(s);o.byteLength+=s.byteLength;o.nalCount+=s.nalCount;o.pts=s.pts;o.dts=s.dts;o.duration+=s.duration}else{o=Z.extendFirstKeyFrame(o)}}if(a.length){var h;if(i.alignGopsAtEnd){h=this.alignGopsAtEnd_(o)}else{h=this.alignGopsAtStart_(o)}if(!h){this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);r=[];this.resetStream_();this.trigger("done","VideoSegmentStream");return}we.clearDtsInfo(t);o=h}we.collectDtsInfo(t,o);t.samples=Z.generateSampleTable(o);u=q.mdat(Z.concatenateNalData(o));t.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}));f=o[0];p=o[o.length-1];this.trigger("segmentTimingInfo",$t(t.baseMediaDecodeTime,f.dts,f.pts,p.dts+p.duration,p.pts+p.duration,c));this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration});this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);r=[];this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime);this.trigger("timelineStartInfo",t.timelineStartInfo);l=q.moof(n,[t]);d=new Uint8Array(l.byteLength+u.byteLength);n++;d.set(l);d.set(u,l.byteLength);this.trigger("data",{track:t,boxes:d});this.resetStream_();this.trigger("done","VideoSegmentStream")};this.reset=function(){this.resetStream_();r=[];this.gopCache_.length=0;a.length=0;this.trigger("reset")};this.resetStream_=function(){we.clearDtsInfo(t);s=undefined;o=undefined};this.getGopForFusion_=function(e){var i=45e3,n=1e4,r=Infinity,a,s,o,l,u;for(u=0;u<this.gopCache_.length;u++){l=this.gopCache_[u];o=l.gop;if(!(t.pps&&Zt(t.pps[0],l.pps[0]))||!(t.sps&&Zt(t.sps[0],l.sps[0]))){continue}if(o.dts<t.timelineStartInfo.dts){continue}a=e.dts-o.dts-o.duration;if(a>=-n&&a<=i){if(!s||r>a){s=l;r=a}}}if(s){return s.gop}return null};this.alignGopsAtStart_=function(e){var t,i,n,r,s,o,l,u;s=e.byteLength;o=e.nalCount;l=e.duration;t=i=0;while(t<a.length&&i<e.length){n=a[t];r=e[i];if(n.pts===r.pts){break}if(r.pts>n.pts){t++;continue}i++;s-=r.byteLength;o-=r.nalCount;l-=r.duration}if(i===0){return e}if(i===e.length){return null}u=e.slice(i);u.byteLength=s;u.duration=l;u.nalCount=o;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsAtEnd_=function(e){var t,i,n,r,s,o;t=a.length-1;i=e.length-1;s=null;o=false;while(t>=0&&i>=0){n=a[t];r=e[i];if(n.pts===r.pts){o=true;break}if(n.pts>r.pts){t--;continue}if(t===a.length-1){s=i}i--}if(!o&&s===null){return null}var l;if(o){l=i}else{l=s}if(l===0){return e}var u=e.slice(l);var d=u.reduce(function(e,t){e.byteLength+=t.byteLength;e.duration+=t.duration;e.nalCount+=t.nalCount;return e},{byteLength:0,duration:0,nalCount:0});u.byteLength=d.byteLength;u.duration=d.duration;u.nalCount=d.nalCount;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsWith=function(e){a=e}};Wt.prototype=new t;Xt=function e(t,i){this.numberOfTracks=0;this.metadataStream=i;t=t||{};if(typeof t.remux!=="undefined"){this.remuxTracks=!!t.remux}else{this.remuxTracks=true}if(typeof t.keepOriginalTimestamps==="boolean"){this.keepOriginalTimestamps=t.keepOriginalTimestamps}else{this.keepOriginalTimestamps=false}this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;Xt.prototype.init.call(this);this.push=function(e){if(e.text){return this.pendingCaptions.push(e)}if(e.frames){return this.pendingMetadata.push(e)}this.pendingTracks.push(e.track);this.pendingBytes+=e.boxes.byteLength;if(e.track.type==="video"){this.videoTrack=e.track;this.pendingBoxes.push(e.boxes)}if(e.track.type==="audio"){this.audioTrack=e.track;this.pendingBoxes.unshift(e.boxes)}}};Xt.prototype=new t;Xt.prototype.flush=function(e){var t=0,i={captions:[],captionStreams:{},metadata:[],info:{}},n,r,a,s=0,o;if(this.pendingTracks.length<this.numberOfTracks){if(e!=="VideoSegmentStream"&&e!=="AudioSegmentStream"){return}else if(this.remuxTracks){return}else if(this.pendingTracks.length===0){this.emittedTracks++;if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}return}}if(this.videoTrack){s=this.videoTrack.timelineStartInfo.pts;qt.forEach(function(e){i.info[e]=this.videoTrack[e]},this)}else if(this.audioTrack){s=this.audioTrack.timelineStartInfo.pts;Ft.forEach(function(e){i.info[e]=this.audioTrack[e]},this)}if(this.videoTrack||this.audioTrack){if(this.pendingTracks.length===1){i.type=this.pendingTracks[0].type}else{i.type="combined"}this.emittedTracks+=this.pendingTracks.length;a=q.initSegment(this.pendingTracks);i.initSegment=new Uint8Array(a.byteLength);i.initSegment.set(a);i.data=new Uint8Array(this.pendingBytes);for(o=0;o<this.pendingBoxes.length;o++){i.data.set(this.pendingBoxes[o],t);t+=this.pendingBoxes[o].byteLength}for(o=0;o<this.pendingCaptions.length;o++){n=this.pendingCaptions[o];n.startTime=pe.metadataTsToSeconds(n.startPts,s,this.keepOriginalTimestamps);n.endTime=pe.metadataTsToSeconds(n.endPts,s,this.keepOriginalTimestamps);i.captionStreams[n.stream]=true;i.captions.push(n)}for(o=0;o<this.pendingMetadata.length;o++){r=this.pendingMetadata[o];r.cueTime=pe.metadataTsToSeconds(r.pts,s,this.keepOriginalTimestamps);i.metadata.push(r)}i.metadata.dispatchType=this.metadataStream.dispatchType;this.pendingTracks.length=0;this.videoTrack=null;this.pendingBoxes.length=0;this.pendingCaptions.length=0;this.pendingBytes=0;this.pendingMetadata.length=0;this.trigger("data",i);for(o=0;o<i.captions.length;o++){n=i.captions[o];this.trigger("caption",n)}for(o=0;o<i.metadata.length;o++){r=i.metadata[o];this.trigger("id3Frame",r)}}if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}};Xt.prototype.setRemux=function(e){this.remuxTracks=e};Kt=function e(t){var i=this,n=true,r,a;Kt.prototype.init.call(this);t=t||{};this.baseMediaDecodeTime=t.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="aac";e.metadataStream=new ht.MetadataStream;e.aacStream=new Ut;e.audioTimestampRolloverStream=new ht.TimestampRolloverStream("audio");e.timedMetadataTimestampRolloverStream=new ht.TimestampRolloverStream("timed-metadata");e.adtsStream=new yt;e.coalesceStream=new Xt(t,e.metadataStream);e.headOfPipeline=e.aacStream;e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream);e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream);e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)});e.aacStream.on("data",function(n){if(n.type!=="timed-metadata"&&n.type!=="audio"||e.audioSegmentStream){return}a=a||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"};e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Yt(a,t);e.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream"));e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream);i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})});e.coalesceStream.on("data",this.trigger.bind(this,"data"));e.coalesceStream.on("done",this.trigger.bind(this,"done"));Jt(this,e)};this.setupTsPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="ts";e.metadataStream=new ht.MetadataStream;e.packetStream=new ht.TransportPacketStream;e.parseStream=new ht.TransportParseStream;e.elementaryStream=new ht.ElementaryStream;e.timestampRolloverStream=new ht.TimestampRolloverStream;e.adtsStream=new yt;e.h264Stream=new Ht;e.captionStream=new ht.CaptionStream(t);e.coalesceStream=new Xt(t,e.metadataStream);e.headOfPipeline=e.packetStream;e.packetStream.pipe(e.parseStream).pipe(e.elementaryStream).pipe(e.timestampRolloverStream);e.timestampRolloverStream.pipe(e.h264Stream);e.timestampRolloverStream.pipe(e.adtsStream);e.timestampRolloverStream.pipe(e.metadataStream).pipe(e.coalesceStream);e.h264Stream.pipe(e.captionStream).pipe(e.coalesceStream);e.elementaryStream.on("data",function(n){var s;if(n.type==="metadata"){s=n.tracks.length;while(s--){if(!r&&n.tracks[s].type==="video"){r=n.tracks[s];r.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}else if(!a&&n.tracks[s].type==="audio"){a=n.tracks[s];a.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}}if(r&&!e.videoSegmentStream){e.coalesceStream.numberOfTracks++;e.videoSegmentStream=new Wt(r,t);e.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream"));e.videoSegmentStream.on("timelineStartInfo",function(n){if(a&&!t.keepOriginalTimestamps){a.timelineStartInfo=n;e.audioSegmentStream.setEarliestDts(n.dts-i.baseMediaDecodeTime)}});e.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo"));e.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo"));e.videoSegmentStream.on("baseMediaDecodeTime",function(t){if(a){e.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}});e.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo"));e.h264Stream.pipe(e.videoSegmentStream).pipe(e.coalesceStream)}if(a&&!e.audioSegmentStream){e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Yt(a,t);e.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream"));e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream)}i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})}});e.coalesceStream.on("data",this.trigger.bind(this,"data"));e.coalesceStream.on("id3Frame",function(t){t.dispatchType=e.metadataStream.dispatchType;i.trigger("id3Frame",t)});e.coalesceStream.on("caption",this.trigger.bind(this,"caption"));e.coalesceStream.on("done",this.trigger.bind(this,"done"));Jt(this,e)};this.setBaseMediaDecodeTime=function(e){var i=this.transmuxPipeline_;if(!t.keepOriginalTimestamps){this.baseMediaDecodeTime=e}if(a){a.timelineStartInfo.dts=undefined;a.timelineStartInfo.pts=undefined;we.clearDtsInfo(a);if(i.audioTimestampRolloverStream){i.audioTimestampRolloverStream.discontinuity()}}if(r){if(i.videoSegmentStream){i.videoSegmentStream.gopCache_=[]}r.timelineStartInfo.dts=undefined;r.timelineStartInfo.pts=undefined;we.clearDtsInfo(r);i.captionStream.reset()}if(i.timestampRolloverStream){i.timestampRolloverStream.discontinuity()}};this.setAudioAppendStart=function(e){if(a){this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)}};this.setRemux=function(e){var i=this.transmuxPipeline_;t.remux=e;if(i&&i.coalesceStream){i.coalesceStream.setRemux(e)}};this.alignGopsWith=function(e){if(r&&this.transmuxPipeline_.videoSegmentStream){this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)}};this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e;t.trigger("log",i)}};this.push=function(e){if(n){var t=Gt(e);if(t&&this.transmuxPipeline_.type!=="aac"){this.setupAacPipeline()}else if(!t&&this.transmuxPipeline_.type!=="ts"){this.setupTsPipeline()}n=false}this.transmuxPipeline_.headOfPipeline.push(e)};this.flush=function(){n=true;this.transmuxPipeline_.headOfPipeline.flush()};this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()};this.reset=function(){if(this.transmuxPipeline_.headOfPipeline){this.transmuxPipeline_.headOfPipeline.reset()}};this.resetCaptions=function(){if(this.transmuxPipeline_.captionStream){this.transmuxPipeline_.captionStream.reset()}}};Kt.prototype=new t;var ei={Transmuxer:Kt,VideoSegmentStream:Wt,AudioSegmentStream:Yt,AUDIO_PROPERTIES:Ft,VIDEO_PROPERTIES:qt,generateSegmentTimingInfo:$t};var ti=function e(t){return t>>>0};var ii=function e(t){return("00"+t.toString(16)).slice(-2)};var ni={toUnsigned:ti,toHexString:ii};var ri=function e(t){var i="";i+=String.fromCharCode(t[0]);i+=String.fromCharCode(t[1]);i+=String.fromCharCode(t[2]);i+=String.fromCharCode(t[3]);return i};var ai=ri;var si=ni.toUnsigned;var oi=function e(t,i){var n=[],r,a,s,o,l;if(!i.length){return null}for(r=0;r<t.byteLength;){a=si(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);s=ai(t.subarray(r+4,r+8));o=a>1?r+a:t.byteLength;if(s===i[0]){if(i.length===1){n.push(t.subarray(r+8,o))}else{l=e(t.subarray(r+8,o),i.slice(1));if(l.length){n=n.concat(l)}}}r=o}return n};var li=oi;var ui=ni.toUnsigned;var di=r.getUint64;var ci=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4))};if(i.version===1){i.baseMediaDecodeTime=di(t.subarray(4))}else{i.baseMediaDecodeTime=ui(t[4]<<24|t[5]<<16|t[6]<<8|t[7])}return i};var fi=ci;var pi=function e(t){return{isLeading:(t[0]&12)>>>2,dependsOn:t[0]&3,isDependedOn:(t[1]&192)>>>6,hasRedundancy:(t[1]&48)>>>4,paddingValue:(t[1]&14)>>>1,isNonSyncSample:t[1]&1,degradationPriority:t[2]<<8|t[3]}};var hi=pi;var vi=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=i.flags[2]&1,a=i.flags[2]&4,s=i.flags[1]&1,o=i.flags[1]&2,l=i.flags[1]&4,u=i.flags[1]&8,d=n.getUint32(4),c=8,f;if(r){i.dataOffset=n.getInt32(c);c+=4}if(a&&d){f={flags:hi(t.subarray(c,c+4))};c+=4;if(s){f.duration=n.getUint32(c);c+=4}if(o){f.size=n.getUint32(c);c+=4}if(u){if(i.version===1){f.compositionTimeOffset=n.getInt32(c)}else{f.compositionTimeOffset=n.getUint32(c)}c+=4}i.samples.push(f);d--}while(d--){f={};if(s){f.duration=n.getUint32(c);c+=4}if(o){f.size=n.getUint32(c);c+=4}if(l){f.flags=hi(t.subarray(c,c+4));c+=4}if(u){if(i.version===1){f.compositionTimeOffset=n.getInt32(c)}else{f.compositionTimeOffset=n.getUint32(c)}c+=4}i.samples.push(f)}return i};var gi=vi;var mi=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},r=n.flags[2]&1,a=n.flags[2]&2,s=n.flags[2]&8,o=n.flags[2]&16,l=n.flags[2]&32,u=n.flags[0]&65536,d=n.flags[0]&131072,c;c=8;if(r){c+=4;n.baseDataOffset=i.getUint32(12);c+=4}if(a){n.sampleDescriptionIndex=i.getUint32(c);c+=4}if(s){n.defaultSampleDuration=i.getUint32(c);c+=4}if(o){n.defaultSampleSize=i.getUint32(c);c+=4}if(l){n.defaultSampleFlags=i.getUint32(c)}if(u){n.durationIsEmpty=true}if(!r&&d){n.baseDataOffsetIsMoof=true}return n};var yi=mi;var _i=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var bi;if(typeof window!=="undefined"){bi=window}else if(typeof _i!=="undefined"){bi=_i}else if(typeof self!=="undefined"){bi=self}else{bi={}}var Si=bi;var Ti=xe.discardEmulationPreventionBytes;var Ei=ze.CaptionStream;var wi=function e(t,i){var n=t;for(var r=0;r<i.length;r++){var a=i[r];if(n<a.size){return a}n-=a.size}return null};var ki=function e(t,i,n){var r=new DataView(t.buffer,t.byteOffset,t.byteLength),a={logs:[],seiNals:[]},s,o,l,u;for(o=0;o+4<t.length;o+=l){l=r.getUint32(o);o+=4;if(l<=0){continue}switch(t[o]&31){case 6:var d=t.subarray(o+1,o+1+l);var c=wi(o,i);s={nalUnitType:"sei_rbsp",size:l,data:d,escapedRBSP:Ti(d),trackId:n};if(c){s.pts=c.pts;s.dts=c.dts;u=c}else if(u){s.pts=u.pts;s.dts=u.dts}else{a.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+o+" for trackId "+n+". See mux.js#223."});break}a.seiNals.push(s);break}}return a};var Ii=function e(t,i,n){var r=i;var a=n.defaultSampleDuration||0;var s=n.defaultSampleSize||0;var o=n.trackId;var l=[];t.forEach(function(e){var t=gi(e);var i=t.samples;i.forEach(function(e){if(e.duration===undefined){e.duration=a}if(e.size===undefined){e.size=s}e.trackId=o;e.dts=r;if(e.compositionTimeOffset===undefined){e.compositionTimeOffset=0}if(typeof r==="bigint"){e.pts=r+Si.BigInt(e.compositionTimeOffset);r+=Si.BigInt(e.duration)}else{e.pts=r+e.compositionTimeOffset;r+=e.duration}});l=l.concat(i)});return l};var Ai=function e(t,i){var n=li(t,["moof","traf"]);var r=li(t,["mdat"]);var a={};var s=[];r.forEach(function(e,t){var i=n[t];s.push({mdat:e,traf:i})});s.forEach(function(e){var t=e.mdat;var n=e.traf;var r=li(n,["tfhd"]);var s=yi(r[0]);var o=s.trackId;var l=li(n,["tfdt"]);var u=l.length>0?fi(l[0]).baseMediaDecodeTime:0;var d=li(n,["trun"]);var c;var f;if(i===o&&d.length>0){c=Ii(d,u,s);f=ki(t,c,o);if(!a[o]){a[o]={seiNals:[],logs:[]}}a[o].seiNals=a[o].seiNals.concat(f.seiNals);a[o].logs=a[o].logs.concat(f.logs)}});return a};var Ci=function e(t,i,n){var r;if(i===null){return null}r=Ai(t,i);var a=r[i]||{};return{seiNals:a.seiNals,logs:a.logs,timescale:n}};var ji=function e(){var t=false;var i;var n;var r;var a;var s;var o;this.isInitialized=function(){return t};this.init=function(e){i=new Ei;t=true;o=e?e.isPartial:false;i.on("data",function(e){e.startTime=e.startPts/a;e.endTime=e.endPts/a;s.captions.push(e);s.captionStreams[e.stream]=true});i.on("log",function(e){s.logs.push(e)})};this.isNewInit=function(e,t){if(e&&e.length===0||t&&typeof t==="object"&&Object.keys(t).length===0){return false}return r!==e[0]||a!==t[r]};this.parse=function(e,t,i){var o;if(!this.isInitialized()){return null}else if(!t||!i){return null}else if(this.isNewInit(t,i)){r=t[0];a=i[r]}else if(r===null||!a){n.push(e);return null}while(n.length>0){var l=n.shift();this.parse(l,t,i)}o=Ci(e,r,a);if(o&&o.logs){s.logs=s.logs.concat(o.logs)}if(o===null||!o.seiNals){if(s.logs.length){return{logs:s.logs,captions:[],captionStreams:[]}}return null}this.pushNals(o.seiNals);this.flushStream();return s};this.pushNals=function(e){if(!this.isInitialized()||!e||e.length===0){return null}e.forEach(function(e){i.push(e)})};this.flushStream=function(){if(!this.isInitialized()){return null}if(!o){i.flush()}else{i.partialFlush()}};this.clearParsedCaptions=function(){s.captions=[];s.captionStreams={};s.logs=[]};this.resetCaptionStream=function(){if(!this.isInitialized()){return null}i.reset()};this.clearAllCaptions=function(){this.clearParsedCaptions();this.resetCaptionStream()};this.reset=function(){n=[];r=null;a=null;if(!s){s={captions:[],captionStreams:{},logs:[]}}else{this.clearParsedCaptions()}this.resetCaptionStream()};this.reset()};var Pi=ji;var xi=ni.toUnsigned;var Li=ni.toHexString;var Oi=r.getUint64;var Di,Ri,Ni,Mi,Ui,Bi;Di=function e(t){var i={},n=li(t,["moov","trak"]);return n.reduce(function(e,t){var i,n,r,a,s;i=li(t,["tkhd"])[0];if(!i){return null}n=i[0];r=n===0?12:20;a=xi(i[r]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]);s=li(t,["mdia","mdhd"])[0];if(!s){return null}n=s[0];r=n===0?12:20;e[a]=xi(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]);return e},i)};Ri=function e(t,i){var n;n=li(i,["moof","traf"]);var r=n.reduce(function(e,i){var n=li(i,["tfhd"])[0];var r=xi(n[4]<<24|n[5]<<16|n[6]<<8|n[7]);var a=t[r]||9e4;var s=li(i,["tfdt"])[0];var o=new DataView(s.buffer,s.byteOffset,s.byteLength);var l;if(s[0]===1){l=Oi(s.subarray(4,12))}else{l=o.getUint32(4)}var u;if(typeof l==="bigint"){u=l/Si.BigInt(a)}else if(typeof l==="number"&&!isNaN(l)){u=l/a}if(u<Number.MAX_SAFE_INTEGER){u=Number(u)}if(u<e){e=u}return e},Infinity);return typeof r==="bigint"||isFinite(r)?r:0};Ni=function e(t,i){var n=li(i,["moof","traf"]);var r=0;var a=0;var s;if(n&&n.length){var o=li(n[0],["tfhd"])[0];var l=li(n[0],["trun"])[0];var u=li(n[0],["tfdt"])[0];if(o){var d=yi(o);s=d.trackId}if(u){var c=fi(u);r=c.baseMediaDecodeTime}if(l){var f=gi(l);if(f.samples&&f.samples.length){a=f.samples[0].compositionTimeOffset||0}}}var p=t[s]||9e4;if(typeof r==="bigint"){a=Si.BigInt(a);p=Si.BigInt(p)}var h=(r+a)/p;if(typeof h==="bigint"&&h<Number.MAX_SAFE_INTEGER){h=Number(h)}return h};Mi=function e(t){var i=li(t,["moov","trak"]);var n=[];i.forEach(function(e){var t=li(e,["mdia","hdlr"]);var i=li(e,["tkhd"]);t.forEach(function(e,t){var r=ai(e.subarray(8,12));var a=i[t];var s;var o;var l;if(r==="vide"){s=new DataView(a.buffer,a.byteOffset,a.byteLength);o=s.getUint8(0);l=o===0?s.getUint32(12):s.getUint32(20);n.push(l)}})});return n};Bi=function e(t){var i=t[0];var n=i===0?12:20;return xi(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])};Ui=function e(t){var i=li(t,["moov","trak"]);var n=[];i.forEach(function(e){var t={};var i=li(e,["tkhd"])[0];var r,a;if(i){r=new DataView(i.buffer,i.byteOffset,i.byteLength);a=r.getUint8(0);t.id=a===0?r.getUint32(12):r.getUint32(20)}var s=li(e,["mdia","hdlr"])[0];if(s){var o=ai(s.subarray(8,12));if(o==="vide"){t.type="video"}else if(o==="soun"){t.type="audio"}else{t.type=o}}var l=li(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);t.codec=ai(u.subarray(4,8));var d=li(u,[t.codec])[0];var c,f;if(d){if(/^[asm]vc[1-9]$/i.test(t.codec)){c=d.subarray(78);f=ai(c.subarray(4,8));if(f==="avcC"&&c.length>11){t.codec+=".";t.codec+=Li(c[9]);t.codec+=Li(c[10]);t.codec+=Li(c[11])}else{t.codec="avc1.4d400d"}}else if(/^mp4[a,v]$/i.test(t.codec)){c=d.subarray(28);f=ai(c.subarray(4,8));if(f==="esds"&&c.length>20&&c[19]!==0){t.codec+="."+Li(c[19]);t.codec+="."+Li(c[20]>>>2&63).replace(/^0/,"")}else{t.codec="mp4a.40.2"}}else{t.codec=t.codec.toLowerCase()}}}var p=li(e,["mdia","mdhd"])[0];if(p){t.timescale=Bi(p)}n.push(t)});return n};var Fi={findBox:li,parseType:ai,timescale:Di,startTime:Ri,compositionStartTime:Ni,videoTrackIds:Mi,tracks:Ui,getTimescaleFromMediaHeader:Bi};var Vi=function e(t){var i=t[1]&31;i<<=8;i|=t[2];return i};var qi=function e(t){return!!(t[1]&64)};var Hi=function e(t){var i=0;if((t[3]&48)>>>4>1){i+=t[4]+1}return i};var Gi=function e(t,i){var n=Vi(t);if(n===0){return"pat"}else if(n===i){return"pmt"}else if(i){return"pes"}return null};var zi=function e(t){var i=qi(t);var n=4+Hi(t);if(i){n+=t[n]+1}return(t[n+10]&31)<<8|t[n+11]};var Wi=function e(t){var i={};var n=qi(t);var r=4+Hi(t);if(n){r+=t[r]+1}if(!(t[r+5]&1)){return}var a,s,o;a=(t[r+1]&15)<<8|t[r+2];s=3+a-4;o=(t[r+10]&15)<<8|t[r+11];var l=12+o;while(l<s){var u=r+l;i[(t[u+1]&31)<<8|t[u+2]]=t[u];l+=((t[u+3]&15)<<8|t[u+4])+5}return i};var Yi=function e(t,i){var n=Vi(t);var r=i[n];switch(r){case We.H264_STREAM_TYPE:return"video";case We.ADTS_STREAM_TYPE:return"audio";case We.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}};var Ki=function e(t){var i=qi(t);if(!i){return null}var n=4+Hi(t);if(n>=t.byteLength){return null}var r=null;var a;a=t[n+7];if(a&192){r={};r.pts=(t[n+9]&14)<<27|(t[n+10]&255)<<20|(t[n+11]&254)<<12|(t[n+12]&255)<<5|(t[n+13]&254)>>>3;r.pts*=4;r.pts+=(t[n+13]&6)>>>1;r.dts=r.pts;if(a&64){r.dts=(t[n+14]&14)<<27|(t[n+15]&255)<<20|(t[n+16]&254)<<12|(t[n+17]&255)<<5|(t[n+18]&254)>>>3;r.dts*=4;r.dts+=(t[n+18]&6)>>>1}}return r};var Xi=function e(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};var Qi=function e(t){var i=4+Hi(t);var n=t.subarray(i);var r=0;var a=0;var s=false;var o;for(;a<n.byteLength-3;a++){if(n[a+2]===1){r=a+5;break}}while(r<n.byteLength){switch(n[r]){case 0:if(n[r-1]!==0){r+=2;break}else if(n[r-2]!==0){r++;break}if(a+3!==r-2){o=Xi(n[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}do{r++}while(n[r]!==1&&r<n.length);a=r-2;r+=3;break;case 1:if(n[r-1]!==0||n[r-2]!==0){r+=3;break}o=Xi(n[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}a=r-2;r+=3;break;default:r+=3;break}}n=n.subarray(a);r-=a;a=0;if(n&&n.byteLength>3){o=Xi(n[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}return s};var Ji={parseType:Gi,parsePat:zi,parsePmt:Wi,parsePayloadUnitStartIndicator:qi,parsePesType:Yi,parsePesTime:Ki,videoPacketContainsKeyFrame:Qi};var Zi=Ze.handleRollover;var $i={};$i.ts=Ji;$i.aac=Nt;var en=pe.ONE_SECOND_IN_TS;var tn=188,nn=71;var rn=function e(t,i){var n=0,r=tn,a,s;while(r<t.byteLength){if(t[n]===nn&&t[r]===nn){a=t.subarray(n,r);s=$i.ts.parseType(a,i.pid);switch(s){case"pat":i.pid=$i.ts.parsePat(a);break;case"pmt":var o=$i.ts.parsePmt(a);i.table=i.table||{};Object.keys(o).forEach(function(e){i.table[e]=o[e]});break}n+=tn;r+=tn;continue}n++;r++}};var an=function e(t,i,n){var r=0,a=tn,s,o,l,u,d;var c=false;while(a<=t.byteLength){if(t[r]===nn&&(t[a]===nn||a===t.byteLength)){s=t.subarray(r,a);o=$i.ts.parseType(s,i.pid);switch(o){case"pes":l=$i.ts.parsePesType(s,i.table);u=$i.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){d=$i.ts.parsePesTime(s);if(d){d.type="audio";n.audio.push(d);c=true}}break}if(c){break}r+=tn;a+=tn;continue}r++;a++}a=t.byteLength;r=a-tn;c=false;while(r>=0){if(t[r]===nn&&(t[a]===nn||a===t.byteLength)){s=t.subarray(r,a);o=$i.ts.parseType(s,i.pid);switch(o){case"pes":l=$i.ts.parsePesType(s,i.table);u=$i.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){d=$i.ts.parsePesTime(s);if(d){d.type="audio";n.audio.push(d);c=true}}break}if(c){break}r-=tn;a-=tn;continue}r--;a--}};var sn=function e(t,i,n){var r=0,a=tn,s,o,l,u,d,c,f,p;var h=false;var v={data:[],size:0};while(a<t.byteLength){if(t[r]===nn&&t[a]===nn){s=t.subarray(r,a);o=$i.ts.parseType(s,i.pid);switch(o){case"pes":l=$i.ts.parsePesType(s,i.table);u=$i.ts.parsePayloadUnitStartIndicator(s);if(l==="video"){if(u&&!h){d=$i.ts.parsePesTime(s);if(d){d.type="video";n.video.push(d);h=true}}if(!n.firstKeyFrame){if(u){if(v.size!==0){c=new Uint8Array(v.size);f=0;while(v.data.length){p=v.data.shift();c.set(p,f);f+=p.byteLength}if($i.ts.videoPacketContainsKeyFrame(c)){var g=$i.ts.parsePesTime(c);if(g){n.firstKeyFrame=g;n.firstKeyFrame.type="video"}else{console.warn("Failed to extract PTS/DTS from PES at first keyframe. "+"This could be an unusual TS segment, or else mux.js did not "+"parse your TS segment correctly. If you know your TS "+"segments do contain PTS/DTS on keyframes please file a bug "+"report! You can try ffprobe to double check for yourself.")}}v.size=0}}v.data.push(s);v.size+=s.byteLength}}break}if(h&&n.firstKeyFrame){break}r+=tn;a+=tn;continue}r++;a++}a=t.byteLength;r=a-tn;h=false;while(r>=0){if(t[r]===nn&&t[a]===nn){s=t.subarray(r,a);o=$i.ts.parseType(s,i.pid);switch(o){case"pes":l=$i.ts.parsePesType(s,i.table);u=$i.ts.parsePayloadUnitStartIndicator(s);if(l==="video"&&u){d=$i.ts.parsePesTime(s);if(d){d.type="video";n.video.push(d);h=true}}break}if(h){break}r-=tn;a-=tn;continue}r--;a--}};var on=function e(t,i){if(t.audio&&t.audio.length){var n=i;if(typeof n==="undefined"||isNaN(n)){n=t.audio[0].dts}t.audio.forEach(function(e){e.dts=Zi(e.dts,n);e.pts=Zi(e.pts,n);e.dtsTime=e.dts/en;e.ptsTime=e.pts/en})}if(t.video&&t.video.length){var r=i;if(typeof r==="undefined"||isNaN(r)){r=t.video[0].dts}t.video.forEach(function(e){e.dts=Zi(e.dts,r);e.pts=Zi(e.pts,r);e.dtsTime=e.dts/en;e.ptsTime=e.pts/en});if(t.firstKeyFrame){var a=t.firstKeyFrame;a.dts=Zi(a.dts,r);a.pts=Zi(a.pts,r);a.dtsTime=a.dts/en;a.ptsTime=a.pts/en}}};var ln=function e(t){var i=false,n=0,r=null,a=null,s=0,o=0,l;while(t.length-o>=3){var u=$i.aac.parseType(t,o);switch(u){case"timed-metadata":if(t.length-o<10){i=true;break}s=$i.aac.parseId3TagSize(t,o);if(s>t.length){i=true;break}if(a===null){l=t.subarray(o,o+s);a=$i.aac.parseAacTimestamp(l)}o+=s;break;case"audio":if(t.length-o<7){i=true;break}s=$i.aac.parseAdtsSize(t,o);if(s>t.length){i=true;break}if(r===null){l=t.subarray(o,o+s);r=$i.aac.parseSampleRate(l)}n++;o+=s;break;default:o++;break}if(i){return null}}if(r===null||a===null){return null}var d=en/r;var c={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+n*1024*d,pts:a+n*1024*d}]};return c};var un=function e(t){var i={pid:null,table:null};var n={};rn(t,i);for(var r in i.table){if(i.table.hasOwnProperty(r)){var a=i.table[r];switch(a){case We.H264_STREAM_TYPE:n.video=[];sn(t,i,n);if(n.video.length===0){delete n.video}break;case We.ADTS_STREAM_TYPE:n.audio=[];an(t,i,n);if(n.audio.length===0){delete n.audio}break}}}return n};var dn=function e(t,i){var n=$i.aac.isLikelyAacData(t);var r;if(n){r=ln(t)}else{r=un(t)}if(!r||!r.audio&&!r.video){return null}on(r,i);return r};var cn={inspect:dn,parseAudioPes_:an};var fn=function e(t,i){i.on("data",function(e){var i=e.initSegment;e.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=e.data;e.data=n.buffer;t.postMessage({action:"data",segment:e,byteOffset:n.byteOffset,byteLength:n.byteLength},[e.data])});i.on("done",function(e){t.postMessage({action:"done"})});i.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})});i.on("videoSegmentTimingInfo",function(e){var i={start:{decode:pe.videoTsToSeconds(e.start.dts),presentation:pe.videoTsToSeconds(e.start.pts)},end:{decode:pe.videoTsToSeconds(e.end.dts),presentation:pe.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=pe.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})});i.on("audioSegmentTimingInfo",function(e){var i={start:{decode:pe.videoTsToSeconds(e.start.dts),presentation:pe.videoTsToSeconds(e.start.pts)},end:{decode:pe.videoTsToSeconds(e.end.dts),presentation:pe.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=pe.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})});i.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})});i.on("caption",function(e){t.postMessage({action:"caption",caption:e})});i.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})});i.on("audioTimingInfo",function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:pe.videoTsToSeconds(e.start),end:pe.videoTsToSeconds(e.end)}})});i.on("videoTimingInfo",function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:pe.videoTsToSeconds(e.start),end:pe.videoTsToSeconds(e.end)}})});i.on("log",function(e){t.postMessage({action:"log",log:e})})};var pn=function(){function e(e,t){this.options=t||{};this.self=e;this.init()}var t=e.prototype;t.init=function e(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=new ei.Transmuxer(this.options);fn(this.self,this.transmuxer)};t.pushMp4Captions=function e(t){if(!this.captionParser){this.captionParser=new Pi;this.captionParser.init()}var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);var n=this.captionParser.parse(i,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:i.buffer},[i.buffer])};t.probeMp4StartTime=function e(t){var i=t.timescales,n=t.data;var r=Fi.startTime(i,n);this.self.postMessage({action:"probeMp4StartTime",startTime:r,data:n},[n.buffer])};t.probeMp4Tracks=function e(t){var i=t.data;var n=Fi.tracks(i);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:i},[i.buffer])};t.probeTs=function e(t){var i=t.data,n=t.baseStartTime;var r=typeof n==="number"&&!isNaN(n)?n*pe.ONE_SECOND_IN_TS:void 0;var a=cn.inspect(i,r);var s=null;if(a){s={hasVideo:a.video&&a.video.length===2||false,hasAudio:a.audio&&a.audio.length===2||false};if(s.hasVideo){s.videoStart=a.video[0].ptsTime}if(s.hasAudio){s.audioStart=a.audio[0].ptsTime}}this.self.postMessage({action:"probeTs",result:s,data:i},[i.buffer])};t.clearAllMp4Captions=function e(){if(this.captionParser){this.captionParser.clearAllCaptions()}};t.clearParsedMp4Captions=function e(){if(this.captionParser){this.captionParser.clearParsedCaptions()}};t.push=function e(t){var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(i)};t.reset=function e(){this.transmuxer.reset()};t.setTimestampOffset=function e(t){var i=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(pe.secondsToVideoTs(i)))};t.setAudioAppendStart=function e(t){this.transmuxer.setAudioAppendStart(Math.ceil(pe.secondsToVideoTs(t.appendStart)))};t.setRemux=function e(t){this.transmuxer.setRemux(t.remux)};t.flush=function e(t){this.transmuxer.flush();self.postMessage({action:"done",type:"transmuxed"})};t.endTimeline=function e(){this.transmuxer.endTimeline();self.postMessage({action:"endedtimeline",type:"transmuxed"})};t.alignGopsWith=function e(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())};return e}();self.onmessage=function(e){if(e.data.action==="init"&&e.data.options){this.messageHandlers=new pn(self,e.data.options);return}if(!this.messageHandlers){this.messageHandlers=new pn(self)}if(e.data&&e.data.action&&e.data.action!=="init"){if(this.messageHandlers[e.data.action]){this.messageHandlers[e.data.action](e.data)}}}}));var $n=Xn(Zn);var er=function e(t,i,n){var r=t.data.segment,a=r.type,s=r.initSegment,o=r.captions,l=r.captionStreams,u=r.metadata,d=r.videoFrameDtsTime,c=r.videoFramePtsTime;i.buffer.push({captions:o,captionStreams:l,metadata:u});var f=t.data.segment.boxes||{data:t.data.segment.data};var p={type:a,data:new Uint8Array(f.data,f.data.byteOffset,f.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};if(typeof d!=="undefined"){p.videoFrameDtsTime=d}if(typeof c!=="undefined"){p.videoFramePtsTime=c}n(p)};var tr=function e(t){var i=t.transmuxedData,n=t.callback;i.buffer=[];n(i)};var ir=function e(t,i){i.gopInfo=t.data.gopInfo};var nr=function e(t){var i=t.transmuxer,n=t.bytes,r=t.audioAppendStart,a=t.gopsToAlignWith,s=t.remux,o=t.onData,l=t.onTrackInfo,u=t.onAudioTimingInfo,d=t.onVideoTimingInfo,c=t.onVideoSegmentTimingInfo,f=t.onAudioSegmentTimingInfo,p=t.onId3,h=t.onCaptions,v=t.onDone,g=t.onEndedTimeline,m=t.onTransmuxerLog,y=t.isEndOfTimeline;var _={buffer:[]};var b=y;var S=function e(n){if(i.currentTransmux!==t){return}if(n.data.action==="data"){er(n,_,o)}if(n.data.action==="trackinfo"){l(n.data.trackInfo)}if(n.data.action==="gopInfo"){ir(n,_)}if(n.data.action==="audioTimingInfo"){u(n.data.audioTimingInfo)}if(n.data.action==="videoTimingInfo"){d(n.data.videoTimingInfo)}if(n.data.action==="videoSegmentTimingInfo"){c(n.data.videoSegmentTimingInfo)}if(n.data.action==="audioSegmentTimingInfo"){f(n.data.audioSegmentTimingInfo)}if(n.data.action==="id3Frame"){p([n.data.id3Frame],n.data.id3Frame.dispatchType)}if(n.data.action==="caption"){h(n.data.caption)}if(n.data.action==="endedtimeline"){b=false;g()}if(n.data.action==="log"){m(n.data.log)}if(n.data.type!=="transmuxed"){return}if(b){return}i.onmessage=null;tr({transmuxedData:_,callback:v});rr(i)};i.onmessage=S;if(r){i.postMessage({action:"setAudioAppendStart",appendStart:r})}if(Array.isArray(a)){i.postMessage({action:"alignGopsWith",gopsToAlignWith:a})}if(typeof s!=="undefined"){i.postMessage({action:"setRemux",remux:s})}if(n.byteLength){var T=n instanceof ArrayBuffer?n:n.buffer;var E=n instanceof ArrayBuffer?0:n.byteOffset;i.postMessage({action:"push",data:T,byteOffset:E,byteLength:n.byteLength},[T])}if(y){i.postMessage({action:"endTimeline"})}i.postMessage({action:"flush"})};var rr=function e(t){t.currentTransmux=null;if(t.transmuxQueue.length){t.currentTransmux=t.transmuxQueue.shift();if(typeof t.currentTransmux==="function"){t.currentTransmux()}else{nr(t.currentTransmux)}}};var ar=function e(t,i){t.postMessage({action:i});rr(t)};var sr=function e(t,i){if(!i.currentTransmux){i.currentTransmux=t;ar(i,t);return}i.transmuxQueue.push(ar.bind(null,i,t))};var or=function e(t){sr("reset",t)};var lr=function e(t){sr("endTimeline",t)};var ur=function e(t){if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t;nr(t);return}t.transmuxer.transmuxQueue.push(t)};var dr=function e(t){var i=new $n;i.currentTransmux=null;i.transmuxQueue=[];var n=i.terminate;i.terminate=function(){i.currentTransmux=null;i.transmuxQueue.length=0;return n.call(i)};i.postMessage({action:"init",options:t});return i};var cr={reset:or,endTimeline:lr,transmux:ur,createTransmuxer:dr};var fr=function e(t){var i=t.transmuxer;var n=t.endAction||t.action;var r=t.callback;var a=g({},t,{endAction:null,transmuxer:null,callback:null});var s=function e(a){if(a.data.action!==n){return}i.removeEventListener("message",e);if(a.data.data){a.data.data=new Uint8Array(a.data.data,t.byteOffset||0,t.byteLength||a.data.data.byteLength);if(t.data){t.data=a.data.data}}r(a.data)};i.addEventListener("message",s);if(t.data){var o=t.data instanceof ArrayBuffer;a.byteOffset=o?0:t.data.byteOffset;a.byteLength=t.data.byteLength;var l=[o?t.data:t.data.buffer];i.postMessage(a,l)}else{i.postMessage(a)}};var pr={FAILURE:2,TIMEOUT:-101,ABORTED:-102};var hr=function e(t){t.forEach(function(e){e.abort()})};var vr=function e(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}};var gr=function e(t){var i=t.target;var n=Date.now()-i.requestTime;var r={bandwidth:Infinity,bytesReceived:0,roundTripTime:n||0};r.bytesReceived=t.loaded;r.bandwidth=Math.floor(r.bytesReceived/r.roundTripTime*8*1e3);return r};var mr=function e(t,i){if(i.timedout){return{status:i.status,message:"HLS request timed-out at URL: "+i.uri,code:pr.TIMEOUT,xhr:i}}if(i.aborted){return{status:i.status,message:"HLS request aborted at URL: "+i.uri,code:pr.ABORTED,xhr:i}}if(t){return{status:i.status,message:"HLS request errored at URL: "+i.uri,code:pr.FAILURE,xhr:i}}if(i.responseType==="arraybuffer"&&i.response.byteLength===0){return{status:i.status,message:"Empty HLS response at URL: "+i.uri,code:pr.FAILURE,xhr:i}}return null};var yr=function e(t,i,n){return function(e,r){var a=r.response;var s=mr(e,r);if(s){return n(s,t)}if(a.byteLength!==16){return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:pr.FAILURE,xhr:r},t)}var o=new DataView(a);var l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(var u=0;u<i.length;u++){i[u].bytes=l}return n(null,t)}};var _r=function e(t,i){var n=Ln(t.map.bytes);if(n!=="mp4"){var r=t.map.resolvedUri||t.map.uri;return i({internal:true,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+r,code:pr.FAILURE})}fr({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function e(n){var r=n.tracks,a=n.data;t.map.bytes=a;r.forEach(function(e){t.map.tracks=t.map.tracks||{};if(t.map.tracks[e.type]){return}t.map.tracks[e.type]=e;if(typeof e.id==="number"&&e.timescale){t.map.timescales=t.map.timescales||{};t.map.timescales[e.id]=e.timescale}});return i(null)}})};var br=function e(t){var i=t.segment,n=t.finishProcessingFn;return function(e,t){var r=mr(e,t);if(r){return n(r,i)}var a=new Uint8Array(t.response);if(i.map.key){i.map.encryptedBytes=a;return n(null,i)}i.map.bytes=a;_r(i,function(e){if(e){e.xhr=t;e.status=t.status;return n(e,i)}n(null,i)})}};var Sr=function e(t){var i=t.segment,n=t.finishProcessingFn,r=t.responseType;return function(e,t){var a=mr(e,t);if(a){return n(a,i)}var s=r==="arraybuffer"||!t.responseText?t.response:Wn(t.responseText.substring(i.lastReachedChar||0));i.stats=vr(t);if(i.key){i.encryptedBytes=new Uint8Array(s)}else{i.bytes=new Uint8Array(s)}return n(null,i)}};var Tr=function e(t){var i=t.segment,n=t.bytes,r=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,d=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,p=t.doneFn,h=t.onTransmuxerLog;var v=i.map&&i.map.tracks||{};var g=Boolean(v.audio&&v.video);var m=a.bind(null,i,"audio","start");var y=a.bind(null,i,"audio","end");var _=a.bind(null,i,"video","start");var b=a.bind(null,i,"video","end");var S=function e(){return ur({bytes:n,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,remux:g,onData:function e(t){t.type=t.type==="combined"?"video":t.type;f(i,t)},onTrackInfo:function e(t){if(r){if(g){t.isMuxed=true}r(i,t)}},onAudioTimingInfo:function e(t){if(m&&typeof t.start!=="undefined"){m(t.start);m=null}if(y&&typeof t.end!=="undefined"){y(t.end)}},onVideoTimingInfo:function e(t){if(_&&typeof t.start!=="undefined"){_(t.start);_=null}if(b&&typeof t.end!=="undefined"){b(t.end)}},onVideoSegmentTimingInfo:function e(t){s(t)},onAudioSegmentTimingInfo:function e(t){o(t)},onId3:function e(t,n){l(i,t,n)},onCaptions:function e(t){u(i,[t])},isEndOfTimeline:d,onEndedTimeline:function e(){c()},onTransmuxerLog:h,onDone:function e(t){if(!p){return}t.type=t.type==="combined"?"video":t.type;p(null,i,t)}})};fr({action:"probeTs",transmuxer:i.transmuxer,data:n,baseStartTime:i.baseStartTime,callback:function e(t){i.bytes=n=t.data;var a=t.result;if(a){r(i,{hasAudio:a.hasAudio,hasVideo:a.hasVideo,isMuxed:g});r=null;if(a.hasAudio&&!g){m(a.audioStart)}if(a.hasVideo){_(a.videoStart)}m=null;_=null}S()}})};var Er=function e(t){var i=t.segment,n=t.bytes,a=t.trackInfoFn,s=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,u=t.id3Fn,d=t.captionsFn,c=t.isEndOfTimeline,f=t.endedTimelineFn,p=t.dataFn,h=t.doneFn,v=t.onTransmuxerLog;var g=new Uint8Array(n);if(On(g)){i.isFmp4=true;var m=i.map.tracks;var y={isFmp4:true,hasVideo:!!m.video,hasAudio:!!m.audio};if(m.audio&&m.audio.codec&&m.audio.codec!=="enca"){y.audioCodec=m.audio.codec}if(m.video&&m.video.codec&&m.video.codec!=="encv"){y.videoCodec=m.video.codec}if(m.video&&m.audio){y.isMuxed=true}a(i,y);var _=function e(t){p(i,{data:g,type:y.hasAudio&&!y.isMuxed?"audio":"video"});if(t&&t.length){d(i,t)}h(null,i,{})};fr({action:"probeMp4StartTime",timescales:i.map.timescales,data:g,transmuxer:i.transmuxer,callback:function e(t){var a=t.data,o=t.startTime;n=a.buffer;i.bytes=g=a;if(y.hasAudio&&!y.isMuxed){s(i,"audio","start",o)}if(y.hasVideo){s(i,"video","start",o)}if(!m.video||!a.byteLength||!i.transmuxer){_();return}fr({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:i.transmuxer,data:g,timescales:i.map.timescales,trackIds:[m.video.id],callback:function e(t){n=t.data.buffer;i.bytes=g=t.data;t.logs.forEach(function(e){v(r["default"].mergeOptions(e,{stream:"mp4CaptionParser"}))});_(t.captions)}})}});return}if(!i.transmuxer){h(null,i,{});return}if(typeof i.container==="undefined"){i.container=Ln(g)}if(i.container!=="ts"&&i.container!=="aac"){a(i,{hasAudio:false,hasVideo:false});h(null,i,{});return}Tr({segment:i,bytes:n,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:d,isEndOfTimeline:c,endedTimelineFn:f,dataFn:p,doneFn:h,onTransmuxerLog:v})};var wr=function e(t,i){var n=t.id,r=t.key,a=t.encryptedBytes,s=t.decryptionWorker;var o=function e(t){if(t.data.source===n){s.removeEventListener("message",e);var r=t.data.decrypted;i(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};s.addEventListener("message",o);var l;if(r.bytes.slice){l=r.bytes.slice()}else{l=new Uint32Array(Array.prototype.slice.call(r.bytes))}s.postMessage(yt({source:n,encrypted:a,key:l,iv:r.iv}),[a.buffer,l.buffer])};var kr=function e(t){var i=t.decryptionWorker,n=t.segment,r=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,d=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,p=t.doneFn,h=t.onTransmuxerLog;wr({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:i},function(e){n.bytes=e;Er({segment:n,bytes:n.bytes,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,isEndOfTimeline:d,endedTimelineFn:c,dataFn:f,doneFn:p,onTransmuxerLog:h})})};var Ir=function e(t){var i=t.activeXhrs,n=t.decryptionWorker,r=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,d=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,p=t.doneFn,h=t.onTransmuxerLog;var v=0;var g=false;return function(e,t){if(g){return}if(e){g=true;hr(i);return p(e,t)}v+=1;if(v===i.length){var m=function e(){if(t.encryptedBytes){return kr({decryptionWorker:n,segment:t,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,isEndOfTimeline:d,endedTimelineFn:c,dataFn:f,doneFn:p,onTransmuxerLog:h})}Er({segment:t,bytes:t.bytes,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,isEndOfTimeline:d,endedTimelineFn:c,dataFn:f,doneFn:p,onTransmuxerLog:h})};t.endOfAllRequests=Date.now();if(t.map&&t.map.encryptedBytes&&!t.map.bytes){return wr({decryptionWorker:n,id:t.requestId+"-init",encryptedBytes:t.map.encryptedBytes,key:t.map.key},function(e){t.map.bytes=e;_r(t,function(e){if(e){hr(i);return p(e,t)}m()})})}m()}}};var Ar=function e(t){var i=t.loadendState,n=t.abortFn;return function(e){var t=e.target;if(t.aborted&&n&&!i.calledAbortFn){n();i.calledAbortFn=true}}};var Cr=function e(t){var i=t.segment,n=t.progressFn;t.trackInfoFn;t.timingInfoFn;t.videoSegmentTimingInfoFn;t.audioSegmentTimingInfoFn;t.id3Fn;t.captionsFn;t.isEndOfTimeline;t.endedTimelineFn;t.dataFn;return function(e){var t=e.target;if(t.aborted){return}i.stats=r["default"].mergeOptions(i.stats,gr(e));if(!i.stats.firstBytesReceivedAt&&i.stats.bytesReceived){i.stats.firstBytesReceivedAt=Date.now()}return n(e,i)}};var jr=function e(t){var i=t.xhr,n=t.xhrOptions,a=t.decryptionWorker,s=t.segment,o=t.abortFn,l=t.progressFn,u=t.trackInfoFn,d=t.timingInfoFn,c=t.videoSegmentTimingInfoFn,f=t.audioSegmentTimingInfoFn,p=t.id3Fn,h=t.captionsFn,v=t.isEndOfTimeline,g=t.endedTimelineFn,m=t.dataFn,y=t.doneFn,_=t.onTransmuxerLog;var b=[];var S=Ir({activeXhrs:b,decryptionWorker:a,trackInfoFn:u,timingInfoFn:d,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:f,id3Fn:p,captionsFn:h,isEndOfTimeline:v,endedTimelineFn:g,dataFn:m,doneFn:y,onTransmuxerLog:_});if(s.key&&!s.key.bytes){var T=[s.key];if(s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri){T.push(s.map.key)}var E=r["default"].mergeOptions(n,{uri:s.key.resolvedUri,responseType:"arraybuffer"});var w=yr(s,T,S);var k=i(E,w);b.push(k)}if(s.map&&!s.map.bytes){var I=s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri);if(I){var A=r["default"].mergeOptions(n,{uri:s.map.key.resolvedUri,responseType:"arraybuffer"});var C=yr(s,[s.map.key],S);var j=i(A,C);b.push(j)}var P=r["default"].mergeOptions(n,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:$e(s.map)});var x=br({segment:s,finishProcessingFn:S});var L=i(P,x);b.push(L)}var O=r["default"].mergeOptions(n,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:$e(s)});var D=Sr({segment:s,finishProcessingFn:S,responseType:O.responseType});var R=i(O,D);R.addEventListener("progress",Cr({segment:s,progressFn:l,trackInfoFn:u,timingInfoFn:d,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:f,id3Fn:p,captionsFn:h,isEndOfTimeline:v,endedTimelineFn:g,dataFn:m}));b.push(R);var N={};b.forEach(function(e){e.addEventListener("loadend",Ar({loadendState:N,abortFn:o}))});return function(){return hr(b)}};var Pr=v("CodecUtils");var xr=function e(t){var i=t.attributes||{};if(i.CODECS){return D(i.CODECS)}};var Lr=function e(t,i){var n=i.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]};var Or=function e(t,i){if(!Lr(t,i)){return true}var n=i.attributes||{};var r=t.mediaGroups.AUDIO[n.AUDIO];for(var a in r){if(!r[a].uri&&!r[a].playlists){return true}}return false};var Dr=function e(t){var i={};t.forEach(function(e){var t=e.mediaType,n=e.type,r=e.details;i[t]=i[t]||[];i[t].push(O(""+n+r))});Object.keys(i).forEach(function(e){if(i[e].length>1){Pr("multiple "+e+" codecs found as attributes: "+i[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.");i[e]=null;return}i[e]=i[e][0]});return i};var Rr=function e(t){var i=0;if(t.audio){i++}if(t.video){i++}return i};var Nr=function e(t,i){var n=i.attributes||{};var r=Dr(xr(i)||[]);if(Lr(t,i)&&!r.audio){if(!Or(t,i)){var a=Dr(R(t,n.AUDIO)||[]);if(a.audio){r.audio=a.audio}}}return r};var Mr=v("PlaylistSelector");var Ur=function e(t){if(!t||!t.playlist){return}var i=t.playlist;return JSON.stringify({id:i.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:i.attributes&&i.attributes.CODECS||""})};var Br=function e(t,i){if(!t){return""}var n=window.getComputedStyle(t);if(!n){return""}return n[i]};var Fr=function e(t,i){var n=t.slice();t.sort(function(e,t){var r=i(e,t);if(r===0){return n.indexOf(e)-n.indexOf(t)}return r})};var Vr=function e(t,i){var n;var r;if(t.attributes.BANDWIDTH){n=t.attributes.BANDWIDTH}n=n||window.Number.MAX_VALUE;if(i.attributes.BANDWIDTH){r=i.attributes.BANDWIDTH}r=r||window.Number.MAX_VALUE;return n-r};var qr=function e(t,i){var n;var r;if(t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width){n=t.attributes.RESOLUTION.width}n=n||window.Number.MAX_VALUE;if(i.attributes.RESOLUTION&&i.attributes.RESOLUTION.width){r=i.attributes.RESOLUTION.width}r=r||window.Number.MAX_VALUE;if(n===r&&t.attributes.BANDWIDTH&&i.attributes.BANDWIDTH){return t.attributes.BANDWIDTH-i.attributes.BANDWIDTH}return n-r};var Hr=function e(t,i,n,r,a,s){if(!t){return}var o={bandwidth:i,width:n,height:r,limitRenditionByPlayerDimensions:a};var l=t.playlists;if(Ae.isAudioOnly(t)){l=s.getAudioTrackPlaylists_();o.audioOnly=true}var u=l.map(function(e){var t;var i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width;var n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;t=e.attributes&&e.attributes.BANDWIDTH;t=t||window.Number.MAX_VALUE;return{bandwidth:t,width:i,height:n,playlist:e}});Fr(u,function(e,t){return e.bandwidth-t.bandwidth});u=u.filter(function(e){return!Ae.isIncompatible(e.playlist)});var d=u.filter(function(e){return Ae.isEnabled(e.playlist)});if(!d.length){d=u.filter(function(e){return!Ae.isDisabled(e.playlist)})}var c=d.filter(function(e){return e.bandwidth*zn.BANDWIDTH_VARIANCE<i});var f=c[c.length-1];var p=c.filter(function(e){return e.bandwidth===f.bandwidth})[0];if(a===false){var h=p||d[0]||u[0];if(h&&h.playlist){var v="sortedPlaylistReps";if(p){v="bandwidthBestRep"}if(d[0]){v="enabledPlaylistReps"}Mr("choosing "+Ur(h)+" using "+v+" with options",o);return h.playlist}Mr("could not choose a playlist with options",o);return null}var g=c.filter(function(e){return e.width&&e.height});Fr(g,function(e,t){return e.width-t.width});var m=g.filter(function(e){return e.width===n&&e.height===r});f=m[m.length-1];var y=m.filter(function(e){return e.bandwidth===f.bandwidth})[0];var _;var b;var S;if(!y){_=g.filter(function(e){return e.width>n||e.height>r});b=_.filter(function(e){return e.width===_[0].width&&e.height===_[0].height});f=b[b.length-1];S=b.filter(function(e){return e.bandwidth===f.bandwidth})[0]}var T;if(s.experimentalLeastPixelDiffSelector){var E=g.map(function(e){e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-r);return e});Fr(E,function(e,t){if(e.pixelDiff===t.pixelDiff){return t.bandwidth-e.bandwidth}return e.pixelDiff-t.pixelDiff});T=E[0]}var w=T||S||y||p||d[0]||u[0];if(w&&w.playlist){var k="sortedPlaylistReps";if(T){k="leastPixelDiffRep"}else if(S){k="resolutionPlusOneRep"}else if(y){k="resolutionBestRep"}else if(p){k="bandwidthBestRep"}else if(d[0]){k="enabledPlaylistReps"}Mr("choosing "+Ur(w)+" using "+k+" with options",o);return w.playlist}Mr("could not choose a playlist with options",o);return null};var Gr=function e(){var t=this.useDevicePixelRatio?window.devicePixelRatio||1:1;return Hr(this.playlists.master,this.systemBandwidth,parseInt(Br(this.tech_.el(),"width"),10)*t,parseInt(Br(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)};var zr=function e(t){var i=-1;var n=-1;if(t<0||t>1){throw new Error("Moving average bandwidth decay must be between 0 and 1.")}return function(){var e=this.useDevicePixelRatio?window.devicePixelRatio||1:1;if(i<0){i=this.systemBandwidth;n=this.systemBandwidth}if(this.systemBandwidth>0&&this.systemBandwidth!==n){i=t*this.systemBandwidth+(1-t)*i;n=this.systemBandwidth}return Hr(this.playlists.master,i,parseInt(Br(this.tech_.el(),"width"),10)*e,parseInt(Br(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}};var Wr=function e(t){var i=t.master,n=t.currentTime,r=t.bandwidth,a=t.duration,s=t.segmentDuration,o=t.timeUntilRebuffer,l=t.currentTimeline,u=t.syncController;var d=i.playlists.filter(function(e){return!Ae.isIncompatible(e)});var c=d.filter(Ae.isEnabled);if(!c.length){c=d.filter(function(e){return!Ae.isDisabled(e)})}var f=c.filter(Ae.hasAttribute.bind(null,"BANDWIDTH"));var p=f.map(function(e){var t=u.getSyncPoint(e,a,l,n);var i=t?1:2;var d=Ae.estimateSegmentRequestTime(s,r,e);var c=d*i-o;return{playlist:e,rebufferingImpact:c}});var h=p.filter(function(e){return e.rebufferingImpact<=0});Fr(h,function(e,t){return Vr(t.playlist,e.playlist)});if(h.length){return h[0]}Fr(p,function(e,t){return e.rebufferingImpact-t.rebufferingImpact});return p[0]||null};var Yr=function e(){var t=this;var i=this.playlists.master.playlists.filter(Ae.isEnabled);Fr(i,function(e,t){return Vr(e,t)});var n=i.filter(function(e){return!!Nr(t.playlists.master,e).video});return n[0]||null};var Kr=function e(t){var i=0;var n;if(t.bytes){n=new Uint8Array(t.bytes);t.segments.forEach(function(e){n.set(e,i);i+=e.byteLength})}return n};var Xr=function e(t,i,n){if(!t[n]){i.trigger({type:"usage",name:"vhs-608"});i.trigger({type:"usage",name:"hls-608"});var r=n;if(/^cc708_/.test(n)){r="SERVICE"+n.split("_")[1]}var a=i.textTracks().getTrackById(r);if(a){t[n]=a}else{var s=i.options_.vhs&&i.options_.vhs.captionServices||{};var o=n;var l=n;var u=false;var d=s[r];if(d){o=d.label;l=d.language;u=d.default}t[n]=i.addRemoteTextTrack({kind:"captions",id:r,default:u,label:o,language:l},false).track}}};var Qr=function e(t){var i=t.inbandTextTracks,n=t.captionArray,r=t.timestampOffset;if(!n){return}var a=window.WebKitDataCue||window.VTTCue;n.forEach(function(e){var t=e.stream;i[t].addCue(new a(e.startTime+r,e.endTime+r,e.text))})};var Jr=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){r["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){r["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){r["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var Zr=function e(t){var i=t.inbandTextTracks,n=t.metadataArray,r=t.timestampOffset,a=t.videoDuration;if(!n){return}var s=window.WebKitDataCue||window.VTTCue;var o=i.metadataTrack_;if(!o){return}n.forEach(function(e){var t=e.cueTime+r;if(typeof t!=="number"||window.isNaN(t)||t<0||!(t<Infinity)){return}e.frames.forEach(function(e){var i=new s(t,t,e.value||e.url||e.data||"");i.frame=e;i.value=e;Jr(i);o.addCue(i)})});if(!o.cues||!o.cues.length){return}var l=o.cues;var u=[];for(var d=0;d<l.length;d++){if(l[d]){u.push(l[d])}}var c=u.reduce(function(e,t){var i=e[t.startTime]||[];i.push(t);e[t.startTime]=i;return e},{});var f=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});f.forEach(function(e,t){var i=c[e];var n=Number(f[t+1])||a;i.forEach(function(e){e.endTime=n})})};var $r=function e(t,i,n){if(t.metadataTrack_){return}t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;t.metadataTrack_.inBandMetadataTrackDispatchType=i};var ea=function e(t,i,n){var r;var a;if(!n){return}if(!n.cues){return}r=n.cues.length;while(r--){a=n.cues[r];if(a.startTime>=t&&a.endTime<=i){n.removeCue(a)}}};var ta=function e(t){var i=t.cues;if(!i){return}for(var n=0;n<i.length;n++){var r=[];var a=0;for(var s=0;s<i.length;s++){if(i[n].startTime===i[s].startTime&&i[n].endTime===i[s].endTime&&i[n].text===i[s].text){a++;if(a>1){r.push(i[s])}}}if(r.length){r.forEach(function(e){return t.removeCue(e)})}}};var ia=9e4,na,ra,aa,sa,oa,la,ua;na=function e(t){return t*ia};ra=function e(t,i){return t*i};aa=function e(t){return t/ia};sa=function e(t,i){return t/i};oa=function e(t,i){return na(sa(t,i))};la=function e(t,i){return ra(aa(t),i)};ua=function e(t,i,n){return aa(n?t:t-i)};var da={ONE_SECOND_IN_TS:ia,secondsToVideoTs:na,secondsToAudioTs:ra,videoTsToSeconds:aa,audioTsToSeconds:sa,audioTsToVideoTs:oa,videoTsToAudioTs:la,metadataTsToSeconds:ua};var ca=function e(t,i,n){if(typeof i==="undefined"||i===null||!t.length){return[]}var r=Math.ceil((i-n+3)*da.ONE_SECOND_IN_TS);var a;for(a=0;a<t.length;a++){if(t[a].pts>r){break}}return t.slice(a)};var fa=function e(t,i,n){if(!i.length){return t}if(n){return i.slice()}var r=i[0].pts;var a=0;for(a;a<t.length;a++){if(t[a].pts>=r){break}}return t.slice(0,a).concat(i)};var pa=function e(t,i,n,r){var a=Math.ceil((i-r)*da.ONE_SECOND_IN_TS);var s=Math.ceil((n-r)*da.ONE_SECOND_IN_TS);var o=t.slice();var l=t.length;while(l--){if(t[l].pts<=s){break}}if(l===-1){return o}var u=l+1;while(u--){if(t[u].pts<=a){break}}u=Math.max(u,0);o.splice(u,l-u+1);return o};var ha=function e(t,i){if(!t&&!i||!t&&i||t&&!i){return false}if(t===i){return true}var n=Object.keys(t).sort();var r=Object.keys(i).sort();if(n.length!==r.length){return false}for(var a=0;a<n.length;a++){var s=n[a];if(s!==r[a]){return false}if(t[s]!==i[s]){return false}}return true};var va=22;var ga=function e(t,i,n){i=i||[];var r=[];var a=0;for(var s=0;s<i.length;s++){var o=i[s];if(t===o.timeline){r.push(s);a+=o.duration;if(a>n){return s}}}if(r.length===0){return 0}return r[r.length-1]};var ma=1;var ya=500;var _a=function e(t){return typeof t==="number"&&isFinite(t)};var ba=1/60;var Sa=function e(t,i,n){if(t!=="main"||!i||!n){return null}if(!n.hasAudio&&!n.hasVideo){return"Neither audio nor video found in segment."}if(i.hasVideo&&!n.hasVideo){return"Only audio found in segment when we expected video."+" We can't switch to audio only from a stream that had video."+" To get rid of this message, please add codec information to the manifest."}if(!i.hasVideo&&n.hasVideo){return"Video found in segment when we expected only audio."+" We can't switch to a stream with video from an audio only stream."+" To get rid of this message, please add codec information to the manifest."}return null};var Ta=function e(t,i,n){var r=i-zn.BACK_BUFFER_LENGTH;if(t.length){r=Math.max(r,t.start(0))}var a=i-n;return Math.min(a,r)};var Ea=function e(t){var i=t.startOfSegment,n=t.duration,r=t.segment,a=t.part,s=t.playlist,o=s.mediaSequence,l=s.id,u=s.segments,d=u===void 0?[]:u,c=t.mediaIndex,f=t.partIndex,p=t.timeline;var h=d.length-1;var v="mediaIndex/partIndex increment";if(t.getMediaInfoForTime){v="getMediaInfoForTime ("+t.getMediaInfoForTime+")"}else if(t.isSyncRequest){v="getSyncSegmentCandidate (isSyncRequest)"}if(t.independent){v+=" with independent "+t.independent}var g=typeof f==="number";var m=t.segment.uri?"segment":"pre-segment";var y=g?se({preloadSegment:r})-1:0;return m+" ["+(o+c)+"/"+(o+h)+"]"+(g?" part ["+f+"/"+y+"]":"")+(" segment start/end ["+r.start+" => "+r.end+"]")+(g?" part start/end ["+a.start+" => "+a.end+"]":"")+(" startOfSegment ["+i+"]")+(" duration ["+n+"]")+(" timeline ["+p+"]")+(" selected by ["+v+"]")+(" playlist ["+l+"]")};var wa=function e(t){return t+"TimingInfo"};var ka=function e(t){var i=t.segmentTimeline,n=t.currentTimeline,r=t.startOfSegment,a=t.buffered,s=t.overrideCheck;if(!s&&i===n){return null}if(i<n){return r}return a.length?a.end(a.length-1):r};var Ia=function e(t){var i=t.timelineChangeController,n=t.currentTimeline,r=t.segmentTimeline,a=t.loaderType,s=t.audioDisabled;if(n===r){return false}if(a==="audio"){var o=i.lastTimelineChange({type:"main"});return!o||o.to!==r}if(a==="main"&&s){var l=i.pendingTimelineChange({type:"audio"});if(l&&l.to===r){return false}return true}return false};var Aa=function e(t){var i=0;["video","audio"].forEach(function(e){var n=t[e+"TimingInfo"];if(!n){return}var r=n.start,a=n.end;var s;if(typeof r==="bigint"||typeof a==="bigint"){s=window.BigInt(a)-window.BigInt(r)}else if(typeof r==="number"&&typeof a==="number"){s=a-r}if(typeof s!=="undefined"&&s>i){i=s}});if(typeof i==="bigint"&&i<Number.MAX_SAFE_INTEGER){i=Number(i)}return i};var Ca=function e(t){var i=t.segmentDuration,n=t.maxDuration;if(!i){return false}return Math.round(i)>n+H};var ja=function e(t,i){if(i!=="hls"){return null}var n=Aa({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!n){return null}var r=t.playlist.targetDuration;var a=Ca({segmentDuration:n,maxDuration:r*2});var s=Ca({segmentDuration:n,maxDuration:r});var o="Segment with index "+t.mediaIndex+" "+("from playlist "+t.playlist.id+" ")+("has a duration of "+n+" ")+("when the reported duration is "+t.duration+" ")+("and the target duration is "+r+". ")+"For HLS content, a duration in excess of the target duration may result in "+"playback issues. See the HLS specification section on EXT-X-TARGETDURATION for "+"more details: "+"https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";if(a||s){return{severity:a?"warn":"info",message:o}}return null};var Pa=function(e){u(t,e);function t(t,i){var n;n=e.call(this)||this;if(!t){throw new TypeError("Initialization settings are required")}if(typeof t.currentTime!=="function"){throw new TypeError("No currentTime getter specified")}if(!t.mediaSource){throw new TypeError("No MediaSource specified")}n.bandwidth=t.bandwidth;n.throughput={rate:0,count:0};n.roundTrip=NaN;n.resetStats_();n.mediaIndex=null;n.partIndex=null;n.hasPlayed_=t.hasPlayed;n.currentTime_=t.currentTime;n.seekable_=t.seekable;n.seeking_=t.seeking;n.duration_=t.duration;n.mediaSource_=t.mediaSource;n.vhs_=t.vhs;n.loaderType_=t.loaderType;n.currentMediaInfo_=void 0;n.startingMediaInfo_=void 0;n.segmentMetadataTrack_=t.segmentMetadataTrack;n.goalBufferLength_=t.goalBufferLength;n.sourceType_=t.sourceType;n.sourceUpdater_=t.sourceUpdater;n.inbandTextTracks_=t.inbandTextTracks;n.state_="INIT";n.timelineChangeController_=t.timelineChangeController;n.shouldSaveSegmentTimingInfo_=true;n.parse708captions_=t.parse708captions;n.useDtsForTimestampOffset_=t.useDtsForTimestampOffset;n.captionServices_=t.captionServices;n.experimentalExactManifestTimings=t.experimentalExactManifestTimings;n.checkBufferTimeout_=null;n.error_=void 0;n.currentTimeline_=-1;n.pendingSegment_=null;n.xhrOptions_=null;n.pendingSegments_=[];n.audioDisabled_=false;n.isPendingTimestampOffset_=false;n.gopBuffer_=[];n.timeMapping_=0;n.safeAppend_=r["default"].browser.IE_VERSION>=11;n.appendInitSegment_={audio:true,video:true};n.playlistOfLastInitSegment_={audio:null,video:null};n.callQueue_=[];n.loadQueue_=[];n.metadataQueue_={id3:[],caption:[]};n.waitingOnRemove_=false;n.quotaExceededErrorRetryTimeout_=null;n.activeInitSegmentId_=null;n.initSegments_={};n.cacheEncryptionKeys_=t.cacheEncryptionKeys;n.keyCache_={};n.decrypter_=t.decrypter;n.syncController_=t.syncController;n.syncPoint_={segmentIndex:0,time:0};n.transmuxer_=n.createTransmuxer_();n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")};n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_);n.mediaSource_.addEventListener("sourceopen",function(){if(!n.isEndOfStream_()){n.ended_=false}});n.fetchAtBuffer_=false;n.logger_=v("SegmentLoader["+n.loaderType_+"]");Object.defineProperty(o(n),"state",{get:function e(){return this.state_},set:function e(t){if(t!==this.state_){this.logger_(this.state_+" -> "+t);this.state_=t;this.trigger("statechange")}}});n.sourceUpdater_.on("ready",function(){if(n.hasEnoughInfoToAppend_()){n.processCallQueue_()}});if(n.loaderType_==="main"){n.timelineChangeController_.on("pendingtimelinechange",function(){if(n.hasEnoughInfoToAppend_()){n.processCallQueue_()}})}if(n.loaderType_==="audio"){n.timelineChangeController_.on("timelinechange",function(){if(n.hasEnoughInfoToLoad_()){n.processLoadQueue_()}if(n.hasEnoughInfoToAppend_()){n.processCallQueue_()}})}return n}var i=t.prototype;i.createTransmuxer_=function e(){return cr.createTransmuxer({remux:false,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:true,parse708captions:this.parse708captions_,captionServices:this.captionServices_})};i.resetStats_=function e(){this.mediaBytesTransferred=0;this.mediaRequests=0;this.mediaRequestsAborted=0;this.mediaRequestsTimedout=0;this.mediaRequestsErrored=0;this.mediaTransferDuration=0;this.mediaSecondsLoaded=0;this.mediaAppends=0};i.dispose=function e(){this.trigger("dispose");this.state="DISPOSED";this.pause();this.abort_();if(this.transmuxer_){this.transmuxer_.terminate()}this.resetStats_();if(this.checkBufferTimeout_){window.clearTimeout(this.checkBufferTimeout_)}if(this.syncController_&&this.triggerSyncInfoUpdate_){this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_)}this.off()};i.setAudio=function e(t){this.audioDisabled_=!t;if(t){this.appendInitSegment_.audio=true}else{this.sourceUpdater_.removeAudio(0,this.duration_())}};i.abort=function e(){if(this.state!=="WAITING"){if(this.pendingSegment_){this.pendingSegment_=null}return}this.abort_();this.state="READY";if(!this.paused()){this.monitorBuffer_()}};i.abort_=function e(){if(this.pendingSegment_&&this.pendingSegment_.abortRequests){this.pendingSegment_.abortRequests()}this.pendingSegment_=null;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.waitingOnRemove_=false;window.clearTimeout(this.quotaExceededErrorRetryTimeout_);this.quotaExceededErrorRetryTimeout_=null};i.checkForAbort_=function e(t){if(this.state==="APPENDING"&&!this.pendingSegment_){this.state="READY";return true}if(!this.pendingSegment_||this.pendingSegment_.requestId!==t){return true}return false};i.error=function e(t){if(typeof t!=="undefined"){this.logger_("error occurred:",t);this.error_=t}this.pendingSegment_=null;return this.error_};i.endOfStream=function e(){this.ended_=true;if(this.transmuxer_){cr.reset(this.transmuxer_)}this.gopBuffer_.length=0;this.pause();this.trigger("ended")};i.buffered_=function e(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t){return r["default"].createTimeRanges()}if(this.loaderType_==="main"){var i=t.hasAudio,n=t.hasVideo,a=t.isMuxed;if(n&&i&&!this.audioDisabled_&&!a){return this.sourceUpdater_.buffered()}if(n){return this.sourceUpdater_.videoBuffered()}}return this.sourceUpdater_.audioBuffered()};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var n=_t(t);var r=this.initSegments_[n];if(i&&!r&&t.bytes){this.initSegments_[n]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}}return r||t};i.segmentKey=function e(t,i){if(i===void 0){i=false}if(!t){return null}var n=bt(t);var r=this.keyCache_[n];if(this.cacheEncryptionKeys_&&i&&!r&&t.bytes){this.keyCache_[n]=r={resolvedUri:t.resolvedUri,bytes:t.bytes}}var a={resolvedUri:(r||t).resolvedUri};if(r){a.bytes=r.bytes}return a};i.couldBeginLoading_=function e(){return this.playlist_&&!this.paused()};i.load=function e(){this.monitorBuffer_();if(!this.playlist_){return}if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"){return}this.state="READY"};i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.playlist=function e(t,i){if(i===void 0){i={}}if(!t){return}var n=this.playlist_;var r=this.pendingSegment_;this.playlist_=t;this.xhrOptions_=i;if(this.state==="INIT"){t.syncInfo={mediaSequence:t.mediaSequence,time:0};if(this.loaderType_==="main"){this.syncController_.setDateTimeMappingForStart(t)}}var a=null;if(n){if(n.id){a=n.id}else if(n.uri){a=n.uri}}this.logger_("playlist update ["+a+" => "+(t.id||t.uri)+"]");this.trigger("syncinfoupdate");if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!n||n.uri!==t.uri){if(this.mediaIndex!==null){if(!t.endList){this.resetLoader()}else{this.resyncLoader()}}this.currentMediaInfo_=void 0;this.trigger("playlistupdate");return}var s=t.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+s+"]");if(this.mediaIndex!==null){this.mediaIndex-=s;if(this.mediaIndex<0){this.mediaIndex=null;this.partIndex=null}else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var l=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists.");this.resetLoader();this.mediaIndex=l}}}if(r){r.mediaIndex-=s;if(r.mediaIndex<0){r.mediaIndex=null;r.partIndex=null}else{if(r.mediaIndex>=0){r.segment=t.segments[r.mediaIndex]}if(r.partIndex>=0&&r.segment.parts){r.part=r.segment.parts[r.partIndex]}}}this.syncController_.saveExpiredSegmentInfo(n,t)};i.pause=function e(){if(this.checkBufferTimeout_){window.clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=null}};i.paused=function e(){return this.checkBufferTimeout_===null};i.resetEverything=function e(t){this.ended_=false;this.appendInitSegment_={audio:true,video:true};this.resetLoader();this.remove(0,Infinity,t);if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"});this.transmuxer_.postMessage({action:"reset"})}};i.resetLoader=function e(){this.fetchAtBuffer_=false;this.resyncLoader()};i.resyncLoader=function e(){if(this.transmuxer_){cr.reset(this.transmuxer_)}this.mediaIndex=null;this.partIndex=null;this.syncPoint_=null;this.isPendingTimestampOffset_=false;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.abort();if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.remove=function e(t,i,n,r){if(n===void 0){n=function e(){}}if(r===void 0){r=false}if(i===Infinity){i=this.duration_()}if(i<=t){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var a=1;var s=function e(){a--;if(a===0){n()}};if(r||!this.audioDisabled_){a++;this.sourceUpdater_.removeAudio(t,i,s)}if(r||this.loaderType_==="main"){this.gopBuffer_=pa(this.gopBuffer_,t,i,this.timeMapping_);a++;this.sourceUpdater_.removeVideo(t,i,s)}for(var o in this.inbandTextTracks_){ea(t,i,this.inbandTextTracks_[o])}ea(t,i,this.segmentMetadataTrack_);s()};i.monitorBuffer_=function e(){if(this.checkBufferTimeout_){window.clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),1)};i.monitorBufferTick_=function e(){if(this.state==="READY"){this.fillBuffer_()}if(this.checkBufferTimeout_){window.clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),ya)};i.fillBuffer_=function e(){if(this.sourceUpdater_.updating()){return}var t=this.chooseNextRequest_();if(!t){return}if(typeof t.timestampOffset==="number"){this.isPendingTimestampOffset_=false;this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})}this.loadSegment_(t)};i.isEndOfStream_=function e(t,i,n){if(t===void 0){t=this.mediaIndex}if(i===void 0){i=this.playlist_}if(n===void 0){n=this.partIndex}if(!i||!this.mediaSource_){return false}var r=typeof t==="number"&&i.segments[t];var a=t+1===i.segments.length;var s=!r||!r.parts||n+1===r.parts.length;return i.endList&&this.mediaSource_.readyState==="open"&&a&&s};i.chooseNextRequest_=function e(){var t=this.buffered_();var i=ee(t)||0;var n=te(t,this.currentTime_());var r=!this.hasPlayed_()&&n>=1;var a=n>=this.goalBufferLength_();var s=this.playlist_.segments;if(!s.length||r||a){return null}this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest){o.mediaIndex=ga(this.currentTimeline_,s,i)}else if(this.mediaIndex!==null){var l=s[this.mediaIndex];var u=typeof this.partIndex==="number"?this.partIndex:-1;o.startOfSegment=l.end?l.end:i;if(l.parts&&l.parts[u+1]){o.mediaIndex=this.mediaIndex;o.partIndex=u+1}else{o.mediaIndex=this.mediaIndex+1}}else{var d=Ae.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?i:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=d.segmentIndex,f=d.startTime,p=d.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+i:"currentTime "+this.currentTime_();o.mediaIndex=c;o.startOfSegment=f;o.partIndex=p}var h=s[o.mediaIndex];var v=h&&typeof o.partIndex==="number"&&h.parts&&h.parts[o.partIndex];if(!h||typeof o.partIndex==="number"&&!v){return null}if(typeof o.partIndex!=="number"&&h.parts){o.partIndex=0;v=h.parts[0]}if(!n&&v&&!v.independent){if(o.partIndex===0){var g=s[o.mediaIndex-1];var m=g.parts&&g.parts.length&&g.parts[g.parts.length-1];if(m&&m.independent){o.mediaIndex-=1;o.partIndex=g.parts.length-1;o.independent="previous segment"}}else if(h.parts[o.partIndex-1].independent){o.partIndex-=1;o.independent="previous part"}}var y=this.mediaSource_&&this.mediaSource_.readyState==="ended";if(o.mediaIndex>=s.length-1&&y&&!this.seeking_()){return null}return this.generateSegmentInfo_(o)};i.generateSegmentInfo_=function e(t){var i=t.independent,n=t.playlist,r=t.mediaIndex,a=t.startOfSegment,s=t.isSyncRequest,o=t.partIndex,l=t.forceTimestampOffset,u=t.getMediaInfoForTime;var d=n.segments[r];var c=typeof o==="number"&&d.parts[o];var f={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||d.resolvedUri,mediaIndex:r,partIndex:c?o:null,isSyncRequest:s,startOfSegment:a,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:c&&c.duration||d.duration,segment:d,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:i};var p=typeof l!=="undefined"?l:this.isPendingTimestampOffset_;f.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:a,buffered:this.buffered_(),overrideCheck:p});var h=ee(this.sourceUpdater_.audioBuffered());if(typeof h==="number"){f.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()}if(this.sourceUpdater_.videoBuffered().length){f.gopsToAlignWith=ca(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)}return f};i.timestampOffsetForSegment_=function e(t){return ka(t)};i.earlyAbortWhenNeeded_=function e(t){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH){return}if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3){return}var i=this.currentTime_();var n=t.bandwidth;var r=this.pendingSegment_.duration;var a=Ae.estimateSegmentRequestTime(r,n,this.playlist_,t.bytesReceived);var s=J(this.buffered_(),i,this.vhs_.tech_.playbackRate())-1;if(a<=s){return}var o=Wr({master:this.vhs_.playlists.master,currentTime:i,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o){return}var l=a-s;var u=l-o.rebufferingImpact;var d=.5;if(s<=H){d=1}if(!o.playlist||o.playlist.uri===this.playlist_.uri||u<d){return}this.bandwidth=o.playlist.attributes.BANDWIDTH*zn.BANDWIDTH_VARIANCE+1;this.trigger("earlyabort")};i.handleAbort_=function e(t){this.logger_("Aborting "+Ea(t));this.mediaRequestsAborted+=1};i.handleProgress_=function e(t,i){this.earlyAbortWhenNeeded_(i.stats);if(this.checkForAbort_(i.requestId)){return}this.trigger("progress")};i.handleTrackInfo_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.checkForIllegalMediaSwitch(i)){return}i=i||{};if(!ha(this.currentMediaInfo_,i)){this.appendInitSegment_={audio:true,video:true};this.startingMediaInfo_=i;this.currentMediaInfo_=i;this.logger_("trackinfo update",i);this.trigger("trackinfo")}if(this.checkForAbort_(t.requestId)){return}this.pendingSegment_.trackInfo=i;if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleTimingInfo_=function e(t,i,n,r){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var a=this.pendingSegment_;var s=wa(i);a[s]=a[s]||{};a[s][n]=r;this.logger_("timinginfo: "+i+" - "+n+" - "+r);if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleCaptions_=function e(t,i){var n=this;this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(i.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}var r=this.pendingSegment_;if(!r.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,i));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();var s={};i.forEach(function(e){s[e.stream]=s[e.stream]||{startTime:Infinity,captions:[],endTime:0};var t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+a);t.endTime=Math.max(t.endTime,e.endTime+a);t.captions.push(e)});Object.keys(s).forEach(function(e){var t=s[e],i=t.startTime,r=t.endTime,o=t.captions;var l=n.inbandTextTracks_;n.logger_("adding cues from "+i+" -> "+r+" for "+e);Xr(l,n.vhs_.tech_,e);ea(i,r,l[e]);Qr({captionArray:o,inbandTextTracks:l,timestampOffset:a})});if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.handleId3_=function e(t,i,n){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var r=this.pendingSegment_;if(!r.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,i,n));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();$r(this.inbandTextTracks_,n,this.vhs_.tech_);Zr({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:a,videoDuration:this.duration_()})};i.processMetadataQueue_=function e(){this.metadataQueue_.id3.forEach(function(e){return e()});this.metadataQueue_.caption.forEach(function(e){return e()});this.metadataQueue_.id3=[];this.metadataQueue_.caption=[]};i.processCallQueue_=function e(){var t=this.callQueue_;this.callQueue_=[];t.forEach(function(e){return e()})};i.processLoadQueue_=function e(){var t=this.loadQueue_;this.loadQueue_=[];t.forEach(function(e){return e()})};i.hasEnoughInfoToLoad_=function e(){if(this.loaderType_!=="audio"){return true}var t=this.pendingSegment_;if(!t){return false}if(!this.getCurrentMediaInfo_()){return true}if(Ia({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.getCurrentMediaInfo_=function e(t){if(t===void 0){t=this.pendingSegment_}return t&&t.trackInfo||this.currentMediaInfo_};i.getMediaInfo_=function e(t){if(t===void 0){t=this.pendingSegment_}return this.getCurrentMediaInfo_(t)||this.startingMediaInfo_};i.hasEnoughInfoToAppend_=function e(){if(!this.sourceUpdater_.ready()){return false}if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_){return false}var t=this.pendingSegment_;var i=this.getCurrentMediaInfo_();if(!t||!i){return false}var n=i.hasAudio,r=i.hasVideo,a=i.isMuxed;if(r&&!t.videoTimingInfo){return false}if(n&&!this.audioDisabled_&&!a&&!t.audioTimingInfo){return false}if(Ia({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.handleData_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,i));return}var n=this.pendingSegment_;this.setTimeMapping_(n.timeline);this.updateMediaSecondsLoaded_(n.part||n.segment);if(this.mediaSource_.readyState==="closed"){return}if(t.map){t.map=this.initSegmentForMap(t.map,true);n.segment.map=t.map}if(t.key){this.segmentKey(t.key,true)}n.isFmp4=t.isFmp4;n.timingInfo=n.timingInfo||{};if(n.isFmp4){this.trigger("fmp4");n.timingInfo.start=n[wa(i.type)].start}else{var r=this.getCurrentMediaInfo_();var a=this.loaderType_==="main"&&r&&r.hasVideo;var s;if(a){s=n.videoTimingInfo.start}n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:s,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}this.updateAppendInitSegmentStatus(n,i.type);this.updateSourceBufferTimestampOffset_(n);if(n.isSyncRequest){this.updateTimingInfoEnd_(n);this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:this.loaderType_==="main"});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}n.hasAppendedData_=true;this.processMetadataQueue_();this.appendData_(n,i)};i.updateAppendInitSegmentStatus=function e(t,i){if(this.loaderType_==="main"&&typeof t.timestampOffset==="number"&&!t.changedTimestampOffset){this.appendInitSegment_={audio:true,video:true}}if(this.playlistOfLastInitSegment_[i]!==t.playlist){this.appendInitSegment_[i]=true}};i.getInitSegmentAndUpdateState_=function e(t){var i=t.type,n=t.initSegment,r=t.map,a=t.playlist;if(r){var s=_t(r);if(this.activeInitSegmentId_===s){return null}n=this.initSegmentForMap(r,true).bytes;this.activeInitSegmentId_=s}if(n&&this.appendInitSegment_[i]){this.playlistOfLastInitSegment_[i]=a;this.appendInitSegment_[i]=false;this.activeInitSegmentId_=null;return n}return null};i.handleQuotaExceededError_=function e(t,i){var n=this;var r=t.segmentInfo,a=t.type,s=t.bytes;var o=this.sourceUpdater_.audioBuffered();var l=this.sourceUpdater_.videoBuffered();if(o.length>1){this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Z(o).join(", "))}if(l.length>1){this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Z(l).join(", "))}var u=o.length?o.start(0):0;var d=o.length?o.end(o.length-1):0;var c=l.length?l.start(0):0;var f=l.length?l.end(l.length-1):0;if(d-u<=ma&&f-c<=ma){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to "+"buffer, triggering an error. "+("Appended byte length: "+s.byteLength+", ")+("audio buffer: "+Z(o).join(", ")+", ")+("video buffer: "+Z(l).join(", ")+", "));this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:Infinity});this.trigger("error");return}this.waitingOnRemove_=true;this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:r,type:a,bytes:s}));var p=this.currentTime_();var h=p-ma;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h);this.remove(0,h,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+ma+"s");n.waitingOnRemove_=false;n.quotaExceededErrorRetryTimeout_=window.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue");n.quotaExceededErrorRetryTimeout_=null;n.processCallQueue_()},ma*1e3)},true)};i.handleAppendError_=function e(t,i){var n=t.segmentInfo,r=t.type,a=t.bytes;if(!i){return}if(i.code===va){this.handleQuotaExceededError_({segmentInfo:n,type:r,bytes:a});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i);this.error(r+" append of "+a.length+"b failed for segment "+("#"+n.mediaIndex+" in playlist "+n.playlist.id));this.trigger("appenderror")};i.appendToSourceBuffer_=function e(t){var i=t.segmentInfo,n=t.type,r=t.initSegment,a=t.data,s=t.bytes;if(!s){var o=[a];var l=a.byteLength;if(r){o.unshift(r);l+=r.byteLength}s=Kr({bytes:l,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:i,type:n,bytes:s},this.handleAppendError_.bind(this,{segmentInfo:i,type:n,bytes:s}))};i.handleSegmentTimingInfo_=function e(t,i,n){if(!this.pendingSegment_||i!==this.pendingSegment_.requestId){return}var r=this.pendingSegment_.segment;var a=t+"TimingInfo";if(!r[a]){r[a]={}}r[a].transmuxerPrependedSeconds=n.prependedContentDuration||0;r[a].transmuxedPresentationStart=n.start.presentation;r[a].transmuxedDecodeStart=n.start.decode;r[a].transmuxedPresentationEnd=n.end.presentation;r[a].transmuxedDecodeEnd=n.end.decode;r[a].baseMediaDecodeTime=n.baseMediaDecodeTime};i.appendData_=function e(t,i){var n=i.type,r=i.data;if(!r||!r.byteLength){return}if(n==="audio"&&this.audioDisabled_){return}var a=this.getInitSegmentAndUpdateState_({type:n,initSegment:i.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:a,data:r})};i.loadSegment_=function e(t){var i=this;this.state="WAITING";this.pendingSegment_=t;this.trimBackBuffer_(t);if(typeof t.timestampOffset==="number"){if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"})}}if(!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var e=g({},t,{forceTimestampOffset:true});g(t,i.generateSegmentInfo_(e));i.isPendingTimestampOffset_=false;i.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)};i.updateTransmuxerAndRequestSegment_=function e(t){var i=this;if(this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)){this.gopBuffer_.length=0;t.gopsToAlignWith=[];this.timeMapping_=0;this.transmuxer_.postMessage({action:"reset"});this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset})}var n=this.createSimplifiedSegmentObj_(t);var r=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex);var a=this.mediaIndex!==null;var s=t.timeline!==this.currentTimeline_&&t.timeline>0;var o=r||a&&s;this.logger_("Requesting "+Ea(t));if(n.map&&!n.map.bytes){this.logger_("going to request init segment.");this.appendInitSegment_={video:true,audio:true}}t.abortRequests=jr({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function e(){i.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function e(n){var r=n.message,a=n.level,s=n.stream;i.logger_(Ea(t)+" logged from transmuxer stream "+s+" as a "+a+": "+r)}})};i.trimBackBuffer_=function e(t){var i=Ta(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);if(i>0){this.remove(0,i)}};i.createSimplifiedSegmentObj_=function e(t){var i=t.segment;var n=t.part;var r={resolvedUri:n?n.resolvedUri:i.resolvedUri,byterange:n?n.byterange:i.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part};var a=t.playlist.segments[t.mediaIndex-1];if(a&&a.timeline===i.timeline){if(a.videoTimingInfo){r.baseStartTime=a.videoTimingInfo.transmuxedDecodeEnd}else if(a.audioTimingInfo){r.baseStartTime=a.audioTimingInfo.transmuxedDecodeEnd}}if(i.key){var s=i.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(i.key);r.key.iv=s}if(i.map){r.map=this.initSegmentForMap(i.map)}return r};i.saveTransferStats_=function e(t){this.mediaRequests+=1;if(t){this.mediaBytesTransferred+=t.bytesReceived;this.mediaTransferDuration+=t.roundTripTime}};i.saveBandwidthRelatedStats_=function e(t,i){this.pendingSegment_.byteLength=i.bytesReceived;if(t<ba){this.logger_("Ignoring segment's bandwidth because its duration of "+t+(" is less than the min to record "+ba));return}this.bandwidth=i.bandwidth;this.roundTrip=i.roundTripTime};i.handleTimeout_=function e(){this.mediaRequestsTimedout+=1;this.bandwidth=1;this.roundTrip=NaN;this.trigger("bandwidthupdate")};i.segmentRequestFinished_=function e(t,i,n){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,i,n));return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){return}if(i.requestId!==this.pendingSegment_.requestId){return}if(t){this.pendingSegment_=null;this.state="READY";if(t.code===pr.ABORTED){return}this.pause();if(t.code===pr.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1;this.error(t);this.trigger("error");return}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,i.stats);r.endOfAllRequests=i.endOfAllRequests;if(n.gopInfo){this.gopBuffer_=fa(this.gopBuffer_,n.gopInfo,this.safeAppend_)}this.state="APPENDING";this.trigger("appending");this.waitForAppendsToComplete_(r)};i.setTimeMapping_=function e(t){var i=this.syncController_.mappingForTimeline(t);if(i!==null){this.timeMapping_=i}};i.updateMediaSecondsLoaded_=function e(t){if(typeof t.start==="number"&&typeof t.end==="number"){this.mediaSecondsLoaded+=t.end-t.start}else{this.mediaSecondsLoaded+=t.duration}};i.shouldUpdateTransmuxerTimestampOffset_=function e(t){if(t===null){return false}if(this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()){return true}if(!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()){return true}return false};i.trueSegmentStart_=function e(t){var i=t.currentStart,n=t.playlist,r=t.mediaIndex,a=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,o=t.useVideoTimingInfo,l=t.videoTimingInfo,u=t.audioTimingInfo;if(typeof i!=="undefined"){return i}if(!o){return u.start}var d=n.segments[r-1];if(r===0||!d||typeof d.start==="undefined"||d.end!==a+s){return a}return l.start};i.waitForAppendsToComplete_=function e(t){var i=this.getCurrentMediaInfo_(t);if(!i){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:Infinity});this.trigger("error");return}var n=i.hasAudio,r=i.hasVideo,a=i.isMuxed;var s=this.loaderType_==="main"&&r;var o=!this.audioDisabled_&&n&&!a;t.waitingOnAppends=0;if(!t.hasAppendedData_){if(!t.timingInfo&&typeof t.timestampOffset==="number"){this.isPendingTimestampOffset_=true}t.timingInfo={start:0};t.waitingOnAppends++;if(!this.isPendingTimestampOffset_){this.updateSourceBufferTimestampOffset_(t);this.processMetadataQueue_()}this.checkAppendsDone_(t);return}if(s){t.waitingOnAppends++}if(o){t.waitingOnAppends++}if(s){this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t))}if(o){this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))}};i.checkAppendsDone_=function e(t){if(this.checkForAbort_(t.requestId)){return}t.waitingOnAppends--;if(t.waitingOnAppends===0){this.handleAppendsDone_()}};i.checkForIllegalMediaSwitch=function e(t){var i=Sa(this.loaderType_,this.getCurrentMediaInfo_(),t);if(i){this.error({message:i,blacklistDuration:Infinity});this.trigger("error");return true}return false};i.updateSourceBufferTimestampOffset_=function e(t){if(t.timestampOffset===null||typeof t.timingInfo.start!=="number"||t.changedTimestampOffset||this.loaderType_!=="main"){return}var i=false;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo});t.changedTimestampOffset=true;if(t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()){this.sourceUpdater_.videoTimestampOffset(t.timestampOffset);i=true}if(t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()){this.sourceUpdater_.audioTimestampOffset(t.timestampOffset);i=true}if(i){this.trigger("timestampoffset")}};i.getSegmentStartTimeForTimestampOffsetCalculation_=function e(t){var i=t.videoTimingInfo,n=t.audioTimingInfo,r=t.timingInfo;if(!this.useDtsForTimestampOffset_){return r.start}if(i&&typeof i.transmuxedDecodeStart==="number"){return i.transmuxedDecodeStart}if(n&&typeof n.transmuxedDecodeStart==="number"){return n.transmuxedDecodeStart}return r.start};i.updateTimingInfoEnd_=function e(t){t.timingInfo=t.timingInfo||{};var i=this.getMediaInfo_();var n=this.loaderType_==="main"&&i&&i.hasVideo;var r=n&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;if(!r){return}t.timingInfo.end=typeof r.end==="number"?r.end:r.start+t.duration};i.handleAppendsDone_=function e(){if(this.pendingSegment_){this.trigger("appendsdone")}if(!this.pendingSegment_){this.state="READY";if(!this.paused()){this.monitorBuffer_()}return}var t=this.pendingSegment_;this.updateTimingInfoEnd_(t);if(this.shouldSaveSegmentTimingInfo_){this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"})}var i=ja(t,this.sourceType_);if(i){if(i.severity==="warn"){r["default"].log.warn(i.message)}else{this.logger_(i.message)}}this.recordThroughput_(t);this.pendingSegment_=null;this.state="READY";if(t.isSyncRequest){this.trigger("syncinfoupdate");if(!t.hasAppendedData_){this.logger_("Throwing away un-appended sync request "+Ea(t));return}}this.logger_("Appended "+Ea(t));this.addSegmentMetadataCue_(t);this.fetchAtBuffer_=true;if(this.currentTimeline_!==t.timeline){this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline});if(this.loaderType_==="main"&&!this.audioDisabled_){this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})}}this.currentTimeline_=t.timeline;this.trigger("syncinfoupdate");var n=t.segment;var a=t.part;var s=n.end&&this.currentTime_()-n.end>t.playlist.targetDuration*3;var o=a&&a.end&&this.currentTime_()-a.end>t.playlist.partTargetDuration*3;if(s||o){this.logger_("bad "+(s?"segment":"part")+" "+Ea(t));this.resetEverything();return}var l=this.mediaIndex!==null;if(l){this.trigger("bandwidthupdate")}this.trigger("progress");this.mediaIndex=t.mediaIndex;this.partIndex=t.partIndex;if(this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)){this.endOfStream()}this.trigger("appended");if(t.hasAppendedData_){this.mediaAppends++}if(!this.paused()){this.monitorBuffer_()}};i.recordThroughput_=function e(t){if(t.duration<ba){this.logger_("Ignoring segment's throughput because its duration of "+t.duration+(" is less than the min to record "+ba));return}var i=this.throughput.rate;var n=Date.now()-t.endOfAllRequests+1;var r=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(r-i)/++this.throughput.count};i.addSegmentMetadataCue_=function e(t){if(!this.segmentMetadataTrack_){return}var i=t.segment;var n=i.start;var r=i.end;if(!_a(n)||!_a(r)){return}ea(n,r,this.segmentMetadataTrack_);var a=window.WebKitDataCue||window.VTTCue;var s={custom:i.custom,dateTimeObject:i.dateTimeObject,dateTimeString:i.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:n,end:r};var o=JSON.stringify(s);var l=new a(n,r,o);l.value=s;this.segmentMetadataTrack_.addCue(l)};return t}(r["default"].EventTarget);function xa(){}var La=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var Oa=["video","audio"];var Da=function e(t,i){var n=i[t+"Buffer"];return n&&n.updating||i.queuePending[t]};var Ra=function e(t,i){for(var n=0;n<i.length;n++){var r=i[n];if(r.type==="mediaSource"){return null}if(r.type===t){return n}}return null};var Na=function e(t,i){if(i.queue.length===0){return}var n=0;var r=i.queue[n];if(r.type==="mediaSource"){if(!i.updating()&&i.mediaSource.readyState!=="closed"){i.queue.shift();r.action(i);if(r.doneFn){r.doneFn()}e("audio",i);e("video",i)}return}if(t==="mediaSource"){return}if(!i.ready()||i.mediaSource.readyState==="closed"||Da(t,i)){return}if(r.type!==t){n=Ra(t,i.queue);if(n===null){return}r=i.queue[n]}i.queue.splice(n,1);i.queuePending[t]=r;r.action(t,i);if(!r.doneFn){i.queuePending[t]=null;e(t,i);return}};var Ma=function e(t,i){var n=i[t+"Buffer"];var r=La(t);if(!n){return}n.removeEventListener("updateend",i["on"+r+"UpdateEnd_"]);n.removeEventListener("error",i["on"+r+"Error_"]);i.codecs[t]=null;i[t+"Buffer"]=null};var Ua=function e(t,i){return t&&i&&Array.prototype.indexOf.call(t.sourceBuffers,i)!==-1};var Ba={appendBuffer:function e(t,i,n){return function(e,r){var a=r[e+"Buffer"];if(!Ua(r.mediaSource,a)){return}r.logger_("Appending segment "+i.mediaIndex+"'s "+t.length+" bytes to "+e+"Buffer");try{a.appendBuffer(t)}catch(t){r.logger_("Error with code "+t.code+" "+(t.code===va?"(QUOTA_EXCEEDED_ERR) ":"")+("when appending segment "+i.mediaIndex+" to "+e+"Buffer"));r.queuePending[e]=null;n(t)}}},remove:function e(t,i){return function(e,n){var r=n[e+"Buffer"];if(!Ua(n.mediaSource,r)){return}n.logger_("Removing "+t+" to "+i+" from "+e+"Buffer");try{r.remove(t,i)}catch(r){n.logger_("Remove "+t+" to "+i+" from "+e+"Buffer failed")}}},timestampOffset:function e(t){return function(e,i){var n=i[e+"Buffer"];if(!Ua(i.mediaSource,n)){return}i.logger_("Setting "+e+"timestampOffset to "+t);n.timestampOffset=t}},callback:function e(t){return function(e,i){t()}},endOfStream:function e(t){return function(e){if(e.mediaSource.readyState!=="open"){return}e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){r["default"].log.warn("Failed to call media source endOfStream",e)}}},duration:function e(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){r["default"].log.warn("Failed to set media source duration",e)}}},abort:function e(){return function(e,t){if(t.mediaSource.readyState!=="open"){return}var i=t[e+"Buffer"];if(!Ua(t.mediaSource,i)){return}t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){r["default"].log.warn("Failed to abort on "+e+"Buffer",t)}}},addSourceBuffer:function e(t,i){return function(e){var n=La(t);var r=U(i);e.logger_("Adding "+t+"Buffer with codec "+i+" to mediaSource");var a=e.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",e["on"+n+"UpdateEnd_"]);a.addEventListener("error",e["on"+n+"Error_"]);e.codecs[t]=i;e[t+"Buffer"]=a}},removeSourceBuffer:function e(t){return function(e){var i=e[t+"Buffer"];Ma(t,e);if(!Ua(e.mediaSource,i)){return}e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(i)}catch(e){r["default"].log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}},changeType:function e(t){return function(e,i){var n=i[e+"Buffer"];var r=U(t);if(!Ua(i.mediaSource,n)){return}if(i.codecs[e]===t){return}i.logger_("changing "+e+"Buffer codec from "+i.codecs[e]+" to "+t);n.changeType(r);i.codecs[e]=t}}};var Fa=function e(t){var i=t.type,n=t.sourceUpdater,r=t.action,a=t.doneFn,s=t.name;n.queue.push({type:i,action:r,doneFn:a,name:s});Na(i,n)};var Va=function e(t,i){return function(e){if(i.queuePending[t]){var n=i.queuePending[t].doneFn;i.queuePending[t]=null;if(n){n(i[t+"Error_"])}}Na(t,i)}};var qa=function(e){u(t,e);function t(t){var i;i=e.call(this)||this;i.mediaSource=t;i.sourceopenListener_=function(){return Na("mediaSource",o(i))};i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_);i.logger_=v("SourceUpdater");i.audioTimestampOffset_=0;i.videoTimestampOffset_=0;i.queue=[];i.queuePending={audio:null,video:null};i.delayedAudioAppendQueue_=[];i.videoAppendQueued_=false;i.codecs={};i.onVideoUpdateEnd_=Va("video",o(i));i.onAudioUpdateEnd_=Va("audio",o(i));i.onVideoError_=function(e){i.videoError_=e};i.onAudioError_=function(e){i.audioError_=e};i.createdSourceBuffers_=false;i.initializedEme_=false;i.triggeredReady_=false;return i}var i=t.prototype;i.initializedEme=function e(){this.initializedEme_=true;this.triggerReady()};i.hasCreatedSourceBuffers=function e(){return this.createdSourceBuffers_};i.hasInitializedAnyEme=function e(){return this.initializedEme_};i.ready=function e(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()};i.createSourceBuffers=function e(t){if(this.hasCreatedSourceBuffers()){return}this.addOrChangeSourceBuffers(t);this.createdSourceBuffers_=true;this.trigger("createdsourcebuffers");this.triggerReady()};i.triggerReady=function e(){if(this.ready()&&!this.triggeredReady_){this.triggeredReady_=true;this.trigger("ready")}};i.addSourceBuffer=function e(t,i){Fa({type:"mediaSource",sourceUpdater:this,action:Ba.addSourceBuffer(t,i),name:"addSourceBuffer"})};i.abort=function e(t){Fa({type:t,sourceUpdater:this,action:Ba.abort(t),name:"abort"})};i.removeSourceBuffer=function e(t){if(!this.canRemoveSourceBuffer()){r["default"].log.error("removeSourceBuffer is not supported!");return}Fa({type:"mediaSource",sourceUpdater:this,action:Ba.removeSourceBuffer(t),name:"removeSourceBuffer"})};i.canRemoveSourceBuffer=function e(){return!r["default"].browser.IE_VERSION&&!r["default"].browser.IS_FIREFOX&&window.MediaSource&&window.MediaSource.prototype&&typeof window.MediaSource.prototype.removeSourceBuffer==="function"};t.canChangeType=function e(){return window.SourceBuffer&&window.SourceBuffer.prototype&&typeof window.SourceBuffer.prototype.changeType==="function"};i.canChangeType=function e(){return this.constructor.canChangeType()};i.changeType=function e(t,i){if(!this.canChangeType()){r["default"].log.error("changeType is not supported!");return}Fa({type:t,sourceUpdater:this,action:Ba.changeType(i),name:"changeType"})};i.addOrChangeSourceBuffers=function e(t){var i=this;if(!t||typeof t!=="object"||Object.keys(t).length===0){throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs")}Object.keys(t).forEach(function(e){var n=t[e];if(!i.hasCreatedSourceBuffers()){return i.addSourceBuffer(e,n)}if(i.canChangeType()){i.changeType(e,n)}})};i.appendBuffer=function e(t,i){var n=this;var r=t.segmentInfo,a=t.type,s=t.bytes;this.processedAppend_=true;if(a==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,i]);this.logger_("delayed audio append of "+s.length+" until video append");return}var o=i;Fa({type:a,sourceUpdater:this,action:Ba.appendBuffer(s,r||{mediaIndex:-1},o),doneFn:i,name:"appendBuffer"});if(a==="video"){this.videoAppendQueued_=true;if(!this.delayedAudioAppendQueue_.length){return}var l=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+l.length+" appendBuffers");this.delayedAudioAppendQueue_.length=0;l.forEach(function(e){n.appendBuffer.apply(n,e)})}};i.audioBuffered=function e(){if(!Ua(this.mediaSource,this.audioBuffer)){return r["default"].createTimeRange()}return this.audioBuffer.buffered?this.audioBuffer.buffered:r["default"].createTimeRange()};i.videoBuffered=function e(){if(!Ua(this.mediaSource,this.videoBuffer)){return r["default"].createTimeRange()}return this.videoBuffer.buffered?this.videoBuffer.buffered:r["default"].createTimeRange()};i.buffered=function e(){var t=Ua(this.mediaSource,this.videoBuffer)?this.videoBuffer:null;var i=Ua(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;if(i&&!t){return this.audioBuffered()}if(t&&!i){return this.videoBuffered()}return X(this.audioBuffered(),this.videoBuffered())};i.setDuration=function e(t,i){if(i===void 0){i=xa}Fa({type:"mediaSource",sourceUpdater:this,action:Ba.duration(t),name:"duration",doneFn:i})};i.endOfStream=function e(t,i){if(t===void 0){t=null}if(i===void 0){i=xa}if(typeof t!=="string"){t=undefined}Fa({type:"mediaSource",sourceUpdater:this,action:Ba.endOfStream(t),name:"endOfStream",doneFn:i})};i.removeAudio=function e(t,i,n){if(n===void 0){n=xa}if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){n();return}Fa({type:"audio",sourceUpdater:this,action:Ba.remove(t,i),doneFn:n,name:"remove"})};i.removeVideo=function e(t,i,n){if(n===void 0){n=xa}if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){n();return}Fa({type:"video",sourceUpdater:this,action:Ba.remove(t,i),doneFn:n,name:"remove"})};i.updating=function e(){if(Da("audio",this)||Da("video",this)){return true}return false};i.audioTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.audioBuffer&&this.audioTimestampOffset_!==t){Fa({type:"audio",sourceUpdater:this,action:Ba.timestampOffset(t),name:"timestampOffset"});this.audioTimestampOffset_=t}return this.audioTimestampOffset_};i.videoTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.videoBuffer&&this.videoTimestampOffset!==t){Fa({type:"video",sourceUpdater:this,action:Ba.timestampOffset(t),name:"timestampOffset"});this.videoTimestampOffset_=t}return this.videoTimestampOffset_};i.audioQueueCallback=function e(t){if(!this.audioBuffer){return}Fa({type:"audio",sourceUpdater:this,action:Ba.callback(t),name:"callback"})};i.videoQueueCallback=function e(t){if(!this.videoBuffer){return}Fa({type:"video",sourceUpdater:this,action:Ba.callback(t),name:"callback"})};i.dispose=function e(){var t=this;this.trigger("dispose");Oa.forEach(function(e){t.abort(e);if(t.canRemoveSourceBuffer()){t.removeSourceBuffer(e)}else{t[e+"QueueCallback"](function(){return Ma(e,t)})}});this.videoAppendQueued_=false;this.delayedAudioAppendQueue_.length=0;if(this.sourceopenListener_){this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_)}this.off()};return t}(r["default"].EventTarget);var Ha=function e(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))};var Ga=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)}));var za=function(e){u(t,e);function t(t,i){var n;if(i===void 0){i={}}n=e.call(this,t,i)||this;n.mediaSource_=null;n.subtitlesTrack_=null;n.loaderType_="subtitle";n.featuresNativeTextTracks_=t.featuresNativeTextTracks;n.shouldSaveSegmentTimingInfo_=false;return n}var i=t.prototype;i.createTransmuxer_=function e(){return null};i.buffered_=function e(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length){return r["default"].createTimeRanges()}var t=this.subtitlesTrack_.cues;var i=t[0].startTime;var n=t[t.length-1].startTime;return r["default"].createTimeRanges([[i,n]])};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var n=_t(t);var r=this.initSegments_[n];if(i&&!r&&t.bytes){var a=Ga.byteLength+t.bytes.byteLength;var s=new Uint8Array(a);s.set(t.bytes);s.set(Ga,t.bytes.byteLength);this.initSegments_[n]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return r||t};i.couldBeginLoading_=function e(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()};i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.track=function e(t){if(typeof t==="undefined"){return this.subtitlesTrack_}this.subtitlesTrack_=t;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}return this.subtitlesTrack_};i.remove=function e(t,i){ea(t,i,this.subtitlesTrack_)};i.fillBuffer_=function e(){var t=this;var i=this.chooseNextRequest_();if(!i){return}if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var n=function e(){t.state="READY";if(!t.paused()){t.monitorBuffer_()}};this.syncController_.one("timestampoffset",n);this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)};i.timestampOffsetForSegment_=function e(){return null};i.chooseNextRequest_=function t(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))};i.skipEmptySegments_=function e(t){while(t&&t.segment.empty){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t};i.stopForError=function e(t){this.error(t);this.state="READY";this.pause();this.trigger("error")};i.segmentRequestFinished_=function e(t,i,n){var r=this;if(!this.subtitlesTrack_){this.state="READY";return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){this.state="READY";this.mediaRequestsAborted+=1;return}if(t){if(t.code===pr.TIMEOUT){this.handleTimeout_()}if(t.code===pr.ABORTED){this.mediaRequestsAborted+=1}else{this.mediaRequestsErrored+=1}this.stopForError(t);return}var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,i.stats);this.state="APPENDING";this.trigger("appending");var s=a.segment;if(s.map){s.map.bytes=i.map.bytes}a.bytes=i.bytes;if(typeof window.WebVTT!=="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o;var l=function e(){r.subtitlesTrack_.tech_.off("vttjsloaded",o);r.stopForError({message:"Error loading vtt.js"});return};o=function e(){r.subtitlesTrack_.tech_.off("vttjserror",l);r.segmentRequestFinished_(t,i,n)};this.state="WAITING_ON_VTTJS";this.subtitlesTrack_.tech_.one("vttjsloaded",o);this.subtitlesTrack_.tech_.one("vttjserror",l);return}s.requested=true;try{this.parseVTTCues_(a)}catch(e){this.stopForError({message:e.message});return}this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_);if(a.cues.length){a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}}else{a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration}}if(a.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}a.byteLength=a.bytes.byteLength;this.mediaSecondsLoaded+=s.duration;a.cues.forEach(function(e){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new window.VTTCue(e.startTime,e.endTime,e.text):e)});ta(this.subtitlesTrack_);this.handleAppendsDone_()};i.handleData_=function e(){};i.updateTimingInfoEnd_=function e(){};i.parseVTTCues_=function e(t){var i;var n=false;if(typeof window.TextDecoder==="function"){i=new window.TextDecoder("utf8")}else{i=window.WebVTT.StringDecoder();n=true}var a=new window.WebVTT.Parser(window,window.vttjs,i);t.cues=[];t.timestampmap={MPEGTS:0,LOCAL:0};a.oncue=t.cues.push.bind(t.cues);a.ontimestampmap=function(e){t.timestampmap=e};a.onparsingerror=function(e){r["default"].log.warn("Error encountered when parsing cues: "+e.message)};if(t.segment.map){var s=t.segment.map.bytes;if(n){s=Ha(s)}a.parse(s)}var o=t.bytes;if(n){o=Ha(o)}a.parse(o);a.flush()};i.updateTimeMapping_=function e(t,i,n){var r=t.segment;if(!i){return}if(!t.cues.length){r.empty=true;return}var a=t.timestampmap;var s=a.MPEGTS/da.ONE_SECOND_IN_TS-a.LOCAL+i.mapping;t.cues.forEach(function(e){e.startTime+=s;e.endTime+=s});if(!n.syncInfo){var o=t.cues[0].startTime;var l=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(o,l-r.duration)}}};return t}(Pa);var Wa=function e(t,i){var n=t.cues;for(var r=0;r<n.length;r++){var a=n[r];if(i>=a.adStartTime&&i<=a.adEndTime){return a}}return null};var Ya=function e(t,i,n){if(n===void 0){n=0}if(!t.segments){return}var r=n;var a;for(var s=0;s<t.segments.length;s++){var o=t.segments[s];if(!a){a=Wa(i,r+o.duration/2)}if(a){if("cueIn"in o){a.endTime=r;a.adEndTime=r;r+=o.duration;a=null;continue}if(r<a.endTime){r+=o.duration;continue}a.endTime+=o.duration}else{if("cueOut"in o){a=new window.VTTCue(r,r+o.duration,o.cueOut);a.adStartTime=r;a.adEndTime=r+parseFloat(o.cueOut);i.addCue(a)}if("cueOutCont"in o){var l=o.cueOutCont.split("/").map(parseFloat),u=l[0],d=l[1];a=new window.VTTCue(r,r+o.duration,"");a.adStartTime=r-u;a.adEndTime=a.adStartTime+d;i.addCue(a)}}r+=o.duration}};var Ka=86400;var Xa=[{name:"VOD",run:function e(t,i,n,r,a){if(n!==Infinity){var s={time:0,segmentIndex:0,partIndex:null};return s}return null}},{name:"ProgramDateTime",run:function e(t,i,n,r,a){if(!Object.keys(t.timelineToDatetimeMappings).length){return null}var s=null;var o=null;var l=re(i);a=a||0;for(var u=0;u<l.length;u++){var d=i.endList||a===0?u:l.length-(u+1);var c=l[d];var f=c.segment;var p=t.timelineToDatetimeMappings[f.timeline];if(!p||!f.dateTimeObject){continue}var h=f.dateTimeObject.getTime()/1e3;var v=h+p;if(f.parts&&typeof c.partIndex==="number"){for(var g=0;g<c.partIndex;g++){v+=f.parts[g].duration}}var m=Math.abs(a-v);if(o!==null&&(m===0||o<m)){break}o=m;s={time:v,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}return s}},{name:"Segment",run:function e(t,i,n,r,a){var s=null;var o=null;a=a||0;var l=re(i);for(var u=0;u<l.length;u++){var d=i.endList||a===0?u:l.length-(u+1);var c=l[d];var f=c.segment;var p=c.part&&c.part.start||f&&f.start;if(f.timeline===r&&typeof p!=="undefined"){var h=Math.abs(a-p);if(o!==null&&o<h){break}if(!s||o===null||o>=h){o=h;s={time:p,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}}return s}},{name:"Discontinuity",run:function e(t,i,n,r,a){var s=null;a=a||0;if(i.discontinuityStarts&&i.discontinuityStarts.length){var o=null;for(var l=0;l<i.discontinuityStarts.length;l++){var u=i.discontinuityStarts[l];var d=i.discontinuitySequence+l+1;var c=t.discontinuities[d];if(c){var f=Math.abs(a-c.time);if(o!==null&&o<f){break}if(!s||o===null||o>=f){o=f;s={time:c.time,segmentIndex:u,partIndex:null}}}}}return s}},{name:"Playlist",run:function e(t,i,n,r,a){if(i.syncInfo){var s={time:i.syncInfo.time,segmentIndex:i.syncInfo.mediaSequence-i.mediaSequence,partIndex:null};return s}return null}}];var Qa=function(e){u(t,e);function t(t){var i;i=e.call(this)||this;i.timelines=[];i.discontinuities=[];i.timelineToDatetimeMappings={};i.logger_=v("SyncController");return i}var i=t.prototype;i.getSyncPoint=function e(t,i,n,r){var a=this.runStrategies_(t,i,n,r);if(!a.length){return null}return this.selectSyncPoint_(a,{key:"time",value:r})};i.getExpiredTime=function e(t,i){if(!t||!t.segments){return null}var n=this.runStrategies_(t,i,t.discontinuitySequence,0);if(!n.length){return null}var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});if(r.segmentIndex>0){r.time*=-1}return Math.abs(r.time+fe({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))};i.runStrategies_=function e(t,i,n,r){var a=[];for(var s=0;s<Xa.length;s++){var o=Xa[s];var l=o.run(this,t,i,n,r);if(l){l.strategy=o.name;a.push({strategy:o.name,syncPoint:l})}}return a};i.selectSyncPoint_=function e(t,i){var n=t[0].syncPoint;var r=Math.abs(t[0].syncPoint[i.key]-i.value);var a=t[0].strategy;for(var s=1;s<t.length;s++){var o=Math.abs(t[s].syncPoint[i.key]-i.value);if(o<r){r=o;n=t[s].syncPoint;a=t[s].strategy}}this.logger_("syncPoint for ["+i.key+": "+i.value+"] chosen with strategy"+(" ["+a+"]: [time:"+n.time+",")+(" segmentIndex:"+n.segmentIndex)+(typeof n.partIndex==="number"?",partIndex:"+n.partIndex:"")+"]");return n};i.saveExpiredSegmentInfo=function e(t,i){var n=i.mediaSequence-t.mediaSequence;if(n>Ka){r["default"].log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");return}for(var a=n-1;a>=0;a--){var s=t.segments[a];if(s&&typeof s.start!=="undefined"){i.syncInfo={mediaSequence:t.mediaSequence+a,time:s.start};this.logger_("playlist refresh sync: [time:"+i.syncInfo.time+","+(" mediaSequence: "+i.syncInfo.mediaSequence+"]"));this.trigger("syncinfoupdate");break}}};i.setDateTimeMappingForStart=function e(t){this.timelineToDatetimeMappings={};if(t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var i=t.segments[0];var n=i.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[i.timeline]=-n}};i.saveSegmentTimingInfo=function e(t){var i=t.segmentInfo,n=t.shouldSaveTimelineMapping;var r=this.calculateSegmentTimeMapping_(i,i.timingInfo,n);var a=i.segment;if(r){this.saveDiscontinuitySyncInfo_(i);if(!i.playlist.syncInfo){i.playlist.syncInfo={mediaSequence:i.playlist.mediaSequence+i.mediaIndex,time:a.start}}}var s=a.dateTimeObject;if(a.discontinuity&&n&&s){this.timelineToDatetimeMappings[a.timeline]=-(s.getTime()/1e3)}};i.timestampOffsetForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].time};i.mappingForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].mapping};i.calculateSegmentTimeMapping_=function e(t,i,n){var r=t.segment;var a=t.part;var s=this.timelines[t.timeline];var o;var l;if(typeof t.timestampOffset==="number"){s={time:t.startOfSegment,mapping:t.startOfSegment-i.start};if(n){this.timelines[t.timeline]=s;this.trigger("timestampoffset");this.logger_("time mapping for timeline "+t.timeline+": "+("[time: "+s.time+"] [mapping: "+s.mapping+"]"))}o=t.startOfSegment;l=i.end+s.mapping}else if(s){o=i.start+s.mapping;l=i.end+s.mapping}else{return false}if(a){a.start=o;a.end=l}if(!r.start||o<r.start){r.start=o}r.end=l;return true};i.saveDiscontinuitySyncInfo_=function e(t){var i=t.playlist;var n=t.segment;if(n.discontinuity){this.discontinuities[n.timeline]={time:n.start,accuracy:0}}else if(i.discontinuityStarts&&i.discontinuityStarts.length){for(var r=0;r<i.discontinuityStarts.length;r++){var a=i.discontinuityStarts[r];var s=i.discontinuitySequence+r+1;var o=a-t.mediaIndex;var l=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>l){var u=void 0;if(o<0){u=n.start-fe({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:t.mediaIndex,endIndex:a})}else{u=n.end+fe({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:t.mediaIndex+1,endIndex:a})}this.discontinuities[s]={time:u,accuracy:l}}}}};i.dispose=function e(){this.trigger("dispose");this.off()};return t}(r["default"].EventTarget);var Ja=function(e){u(t,e);function t(){var t;t=e.call(this)||this;t.pendingTimelineChanges_={};t.lastTimelineChanges_={};return t}var i=t.prototype;i.clearPendingTimelineChange=function e(t){this.pendingTimelineChanges_[t]=null;this.trigger("pendingtimelinechange")};i.pendingTimelineChange=function e(t){var i=t.type,n=t.from,r=t.to;if(typeof n==="number"&&typeof r==="number"){this.pendingTimelineChanges_[i]={type:i,from:n,to:r};this.trigger("pendingtimelinechange")}return this.pendingTimelineChanges_[i]};i.lastTimelineChange=function e(t){var i=t.type,n=t.from,r=t.to;if(typeof n==="number"&&typeof r==="number"){this.lastTimelineChanges_[i]={type:i,from:n,to:r};delete this.pendingTimelineChanges_[i];this.trigger("timelinechange")}return this.lastTimelineChanges_[i]};i.dispose=function e(){this.trigger("dispose");this.pendingTimelineChanges_={};this.lastTimelineChanges_={};this.off()};return t}(r["default"].EventTarget);var Za=Qn(Jn(function(){var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(e,t,n){return n={path:t,exports:{},require:function e(t,r){return i(t,r===undefined||r===null?n.path:r)}},e(n,n.exports),n.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=t(function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function i(e,i,n){if(i)t(e.prototype,i);if(n)t(e,n);return e}e.exports=i;e.exports["default"]=e.exports,e.exports.__esModule=true});var r=t(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};e.exports["default"]=e.exports,e.exports.__esModule=true;return t(i,n)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var a=t(function(e){function t(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;r(e,t)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var s=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var n=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(n,1);return n>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var n=i.length;for(var r=0;r<n;++r){i[r].call(this,arguments[1])}}else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();function o(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var l=function e(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]];var i=t[0];var n=t[1];var r=i[4];var a=n[4];var s;var o;var l;var u=[];var d=[];var c;var f;var p;var h;var v;var g;for(s=0;s<256;s++){d[(u[s]=s<<1^(s>>7)*283)^s]=s}for(o=l=0;!r[o];o^=c||1,l=d[l]||1){h=l^l<<1^l<<2^l<<3^l<<4;h=h>>8^h&255^99;r[o]=h;a[h]=o;p=u[f=u[c=u[o]]];g=p*16843009^f*65537^c*257^o*16843008;v=u[h]*257^h*16843008;for(s=0;s<4;s++){i[s][o]=v=v<<24^v>>>8;n[s][h]=g=g<<24^g>>>8}}for(s=0;s<5;s++){i[s]=i[s].slice(0);n[s]=n[s].slice(0)}return t};var u=null;var d=function(){function e(e){if(!u){u=l()}this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var t;var i;var n;var r=this._tables[0][4];var a=this._tables[1];var s=e.length;var o=1;if(s!==4&&s!==6&&s!==8){throw new Error("Invalid aes key size")}var d=e.slice(0);var c=[];this._key=[d,c];for(t=s;t<4*s+28;t++){n=d[t-1];if(t%s===0||s===8&&t%s===4){n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[n&255];if(t%s===0){n=n<<8^n>>>24^o<<24;o=o<<1^(o>>7)*283}}d[t]=d[t-s]^n}for(i=0;t;i++,t--){n=d[i&3?t:t-4];if(t<=4||i<4){c[i]=n}else{c[i]=a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[n&255]]}}}var t=e.prototype;t.decrypt=function e(t,i,n,r,a,s){var o=this._key[1];var l=t^o[0];var u=r^o[1];var d=n^o[2];var c=i^o[3];var f;var p;var h;var v=o.length/4-2;var g;var m=4;var y=this._tables[1];var _=y[0];var b=y[1];var S=y[2];var T=y[3];var E=y[4];for(g=0;g<v;g++){f=_[l>>>24]^b[u>>16&255]^S[d>>8&255]^T[c&255]^o[m];p=_[u>>>24]^b[d>>16&255]^S[c>>8&255]^T[l&255]^o[m+1];h=_[d>>>24]^b[c>>16&255]^S[l>>8&255]^T[u&255]^o[m+2];c=_[c>>>24]^b[l>>16&255]^S[u>>8&255]^T[d&255]^o[m+3];m+=4;l=f;u=p;d=h}for(g=0;g<4;g++){a[(3&-g)+s]=E[l>>>24]<<24^E[u>>16&255]<<16^E[d>>8&255]<<8^E[c&255]^o[m++];f=l;l=u;u=d;d=c;c=f}};return e}();var c=function(e){a(t,e);function t(){var t;t=e.call(this,s)||this;t.jobs=[];t.delay=1;t.timeout_=null;return t}var i=t.prototype;i.processJob_=function e(){this.jobs.shift()();if(this.jobs.length){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}else{this.timeout_=null}};i.push=function e(t){this.jobs.push(t);if(!this.timeout_){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}};return t}(s);var f=function e(t){return t<<24|(t&65280)<<8|(t&16711680)>>8|t>>>24};var p=function e(t,i,n){var r=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2);var a=new d(Array.prototype.slice.call(i));var s=new Uint8Array(t.byteLength);var o=new Int32Array(s.buffer);var l;var u;var c;var p;var h;var v;var g;var m;var y;l=n[0];u=n[1];c=n[2];p=n[3];for(y=0;y<r.length;y+=4){h=f(r[y]);v=f(r[y+1]);g=f(r[y+2]);m=f(r[y+3]);a.decrypt(h,v,g,m,o,y);o[y]=f(o[y]^l);o[y+1]=f(o[y+1]^u);o[y+2]=f(o[y+2]^c);o[y+3]=f(o[y+3]^p);l=h;u=v;c=g;p=m}return s};var h=function(){function e(t,i,n,r){var a=e.STEP;var s=new Int32Array(t.buffer);var l=new Uint8Array(t.byteLength);var u=0;this.asyncStream_=new c;this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,n,l));for(u=a;u<s.length;u+=a){n=new Uint32Array([f(s[u-4]),f(s[u-3]),f(s[u-2]),f(s[u-1])]);this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,n,l))}this.asyncStream_.push(function(){r(null,o(l))})}var t=e.prototype;t.decryptChunk_=function e(t,i,n,r){return function(){var e=p(t,i,n);r.set(e,t.byteOffset)}};n(e,null,[{key:"STEP",get:function e(){return 32e3}}]);return e}();var v;if(typeof window!=="undefined"){v=window}else if(typeof e!=="undefined"){v=e}else if(typeof self!=="undefined"){v=self}else{v={}}var g=v;var m=function e(t){if(ArrayBuffer.isView==="function"){return ArrayBuffer.isView(t)}return t&&t.buffer instanceof ArrayBuffer};var y=g.BigInt||Number;[y("0x1"),y("0x100"),y("0x10000"),y("0x1000000"),y("0x100000000"),y("0x10000000000"),y("0x1000000000000"),y("0x100000000000000"),y("0x10000000000000000")];(function(){var e=new Uint16Array([65484]);var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(t[0]===255){return"big"}if(t[0]===204){return"little"}return"unknown"})();var _=function e(t){var i={};Object.keys(t).forEach(function(e){var n=t[e];if(m(n)){i[e]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}}else{i[e]=n}});return i};self.onmessage=function(e){var t=e.data;var i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength);var n=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4);var r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new h(i,n,r,function(e,i){self.postMessage(_({source:t.source,decrypted:i}),[i.buffer])})}}));var $a=Xn(Za);var es=function e(t){var i=t.default?"main":"alternative";if(t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0){i="main-desc"}return i};var ts=function e(t,i){t.abort();t.pause();if(i&&i.activePlaylistLoader){i.activePlaylistLoader.pause();i.activePlaylistLoader=null}};var is=function e(t,i){i.activePlaylistLoader=t;t.load()};var ns=function e(t,i){return function(){var e=i.segmentLoaders,n=e[t],r=e.main,a=i.mediaTypes[t];var s=a.activeTrack();var o=a.getActiveGroup();var l=a.activePlaylistLoader;var u=a.lastGroup_;if(o&&u&&o.id===u.id){return}a.lastGroup_=o;a.lastTrack_=s;ts(n,a);if(!o||o.isMasterPlaylist){return}if(!o.playlistLoader){if(l){r.resetEverything()}return}n.resyncLoader();is(o.playlistLoader,a)}};var rs=function e(t,i){return function(){var e=i.segmentLoaders[t],n=i.mediaTypes[t];n.lastGroup_=null;e.abort();e.pause()}};var as=function e(t,i){return function(){var e=i.masterPlaylistLoader,n=i.segmentLoaders,r=n[t],a=n.main,s=i.mediaTypes[t];var o=s.activeTrack();var l=s.getActiveGroup();var u=s.activePlaylistLoader;var d=s.lastTrack_;if(d&&o&&d.id===o.id){return}s.lastGroup_=l;s.lastTrack_=o;ts(r,s);if(!l){return}if(l.isMasterPlaylist){if(!o||!d||o.id===d.id){return}var c=i.vhs.masterPlaylistController_;var f=c.selectPlaylist();if(c.media()===f){return}s.logger_("track change. Switching master audio from "+d.id+" to "+o.id);e.pause();a.resetEverything();c.fastQualityChange_(f);return}if(t==="AUDIO"){if(!l.playlistLoader){a.setAudio(true);a.resetEverything();return}r.setAudio(true);a.setAudio(false)}if(u===l.playlistLoader){is(l.playlistLoader,s);return}if(r.track){r.track(o)}r.resetEverything();is(l.playlistLoader,s)}};var ss={AUDIO:function e(t,i){return function(){var e=i.segmentLoaders[t],n=i.mediaTypes[t],a=i.blacklistCurrentPlaylist;ts(e,n);var s=n.activeTrack();var o=n.activeGroup();var l=(o.filter(function(e){return e.default})[0]||o[0]).id;var u=n.tracks[l];if(s===u){a({message:"Problem encountered loading the default audio track."});return}r["default"].log.warn("Problem encountered loading the alternate audio track."+"Switching back to default.");for(var d in n.tracks){n.tracks[d].enabled=n.tracks[d]===u}n.onTrackChanged()}},SUBTITLES:function e(t,i){return function(){var e=i.segmentLoaders[t],n=i.mediaTypes[t];r["default"].log.warn("Problem encountered loading the subtitle track."+"Disabling subtitle track.");ts(e,n);var a=n.activeTrack();if(a){a.mode="disabled"}n.onTrackChanged()}}};var os={AUDIO:function e(t,i,n){if(!i){return}var r=n.tech,a=n.requestOptions,s=n.segmentLoaders[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);if(!r.paused()||e.endList&&r.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!r.paused()){s.load()}});i.on("error",ss[t](t,n))},SUBTITLES:function e(t,i,n){var r=n.tech,a=n.requestOptions,s=n.segmentLoaders[t],o=n.mediaTypes[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);s.track(o.activeTrack());if(!r.paused()||e.endList&&r.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!r.paused()){s.load()}});i.on("error",ss[t](t,n))}};var ls={AUDIO:function e(t,i){var n=i.vhs,a=i.sourceType,s=i.segmentLoaders[t],o=i.requestOptions,l=i.master.mediaGroups,u=i.mediaTypes[t],d=u.groups,c=u.tracks,f=u.logger_,p=i.masterPlaylistLoader;var h=Ie(p.master);if(!l[t]||Object.keys(l[t]).length===0){l[t]={main:{default:{default:true}}};if(h){l[t].main.default.playlists=p.master.playlists}}for(var v in l[t]){if(!d[v]){d[v]=[]}for(var g in l[t][v]){var m=l[t][v][g];var y=void 0;if(h){f("AUDIO group '"+v+"' label '"+g+"' is a master playlist");m.isMasterPlaylist=true;y=null}else if(a==="vhs-json"&&m.playlists){y=new Ye(m.playlists[0],n,o)}else if(m.resolvedUri){y=new Ye(m.resolvedUri,n,o)}else if(m.playlists&&a==="dash"){y=new Gn(m.playlists[0],n,o,p)}else{y=null}m=r["default"].mergeOptions({id:g,playlistLoader:y},m);os[t](t,m.playlistLoader,i);d[v].push(m);if(typeof c[g]==="undefined"){var _=new r["default"].AudioTrack({id:g,kind:es(m),enabled:false,language:m.language,default:m.default,label:g});c[g]=_}}}s.on("error",ss[t](t,i))},SUBTITLES:function e(t,i){var n=i.tech,a=i.vhs,s=i.sourceType,o=i.segmentLoaders[t],l=i.requestOptions,u=i.master.mediaGroups,d=i.mediaTypes[t],c=d.groups,f=d.tracks,p=i.masterPlaylistLoader;for(var h in u[t]){if(!c[h]){c[h]=[]}for(var v in u[t][h]){if(u[t][h][v].forced){continue}var g=u[t][h][v];var m=void 0;if(s==="hls"){m=new Ye(g.resolvedUri,a,l)}else if(s==="dash"){var y=g.playlists.filter(function(e){return e.excludeUntil!==Infinity});if(!y.length){return}m=new Gn(g.playlists[0],a,l,p)}else if(s==="vhs-json"){m=new Ye(g.playlists?g.playlists[0]:g.resolvedUri,a,l)}g=r["default"].mergeOptions({id:v,playlistLoader:m},g);os[t](t,g.playlistLoader,i);c[h].push(g);if(typeof f[v]==="undefined"){var _=n.addRemoteTextTrack({id:v,kind:"subtitles",default:g.default&&g.autoselect,language:g.language,label:v},false).track;f[v]=_}}}o.on("error",ss[t](t,i))},"CLOSED-CAPTIONS":function e(t,i){var n=i.tech,a=i.master.mediaGroups,s=i.mediaTypes[t],o=s.groups,l=s.tracks;for(var u in a[t]){if(!o[u]){o[u]=[]}for(var d in a[t][u]){var c=a[t][u][d];if(!/^(?:CC|SERVICE)/.test(c.instreamId)){continue}var f=n.options_.vhs&&n.options_.vhs.captionServices||{};var p={label:d,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(f[p.instreamId]){p=r["default"].mergeOptions(p,f[p.instreamId])}if(p.default===undefined){delete p.default}o[u].push(r["default"].mergeOptions({id:d},c));if(typeof l[d]==="undefined"){var h=n.addRemoteTextTrack({id:p.instreamId,kind:"captions",default:p.default,language:p.language,label:p.label},false).track;l[d]=h}}}}};var us=function e(t,i){for(var n=0;n<t.length;n++){if(we(i,t[n])){return true}if(t[n].playlists&&e(t[n].playlists,i)){return true}}return false};var ds=function e(t,i){return function(e){var n=i.masterPlaylistLoader,r=i.mediaTypes[t].groups;var a=n.media();if(!a){return null}var s=null;if(a.attributes[t]){s=r[a.attributes[t]]}var o=Object.keys(r);if(!s){if(t==="AUDIO"&&o.length>1&&Ie(i.master)){for(var l=0;l<o.length;l++){var u=r[o[l]];if(us(u,a)){s=u;break}}}else if(r.main){s=r.main}else if(o.length===1){s=r[o[0]]}}if(typeof e==="undefined"){return s}if(e===null||!s){return null}return s.filter(function(t){return t.id===e.id})[0]||null}};var cs={AUDIO:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var n in e){if(e[n].enabled){return e[n]}}return null}},SUBTITLES:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var n in e){if(e[n].mode==="showing"||e[n].mode==="hidden"){return e[n]}}return null}}};var fs=function e(t,i){var n=i.mediaTypes;return function(){var e=n[t].activeTrack();if(!e){return null}return n[t].activeGroup(e)}};var ps=function e(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){ls[e](e,t)});var i=t.mediaTypes,n=t.masterPlaylistLoader,r=t.tech,a=t.vhs,s=t.segmentLoaders,o=s["AUDIO"],l=s.main;["AUDIO","SUBTITLES"].forEach(function(e){i[e].activeGroup=ds(e,t);i[e].activeTrack=cs[e](e,t);i[e].onGroupChanged=ns(e,t);i[e].onGroupChanging=rs(e,t);i[e].onTrackChanged=as(e,t);i[e].getActiveGroup=fs(e,t)});var u=i.AUDIO.activeGroup();if(u){var d=(u.filter(function(e){return e.default})[0]||u[0]).id;i.AUDIO.tracks[d].enabled=true;i.AUDIO.onGroupChanged();i.AUDIO.onTrackChanged();var c=i.AUDIO.getActiveGroup();if(!c.playlistLoader){l.setAudio(true)}else{l.setAudio(false);o.setAudio(true)}}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanged()})});n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanging()})});var f=function e(){i.AUDIO.onTrackChanged();r.trigger({type:"usage",name:"vhs-audio-change"});r.trigger({type:"usage",name:"hls-audio-change"})};r.audioTracks().addEventListener("change",f);r.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged);a.on("dispose",function(){r.audioTracks().removeEventListener("change",f);r.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)});r.clearTracks("audio");for(var p in i.AUDIO.tracks){r.audioTracks().addTrack(i.AUDIO.tracks[p])}};var hs=function e(){var t={};["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:xa,activeTrack:xa,getActiveGroup:xa,onGroupChanged:xa,onTrackChanged:xa,lastTrack_:null,logger_:v("MediaGroups["+e+"]")}});return t};var vs=60*2;var gs;var ms=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"];var ys=function e(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]};var _s=function e(t){var i=t.currentPlaylist,n=t.buffered,a=t.currentTime,s=t.nextPlaylist,o=t.bufferLowWaterLine,l=t.bufferHighWaterLine,u=t.duration,d=t.experimentalBufferBasedABR,c=t.log;if(!s){r["default"].log.warn("We received no playlist to switch to. Please check your stream.");return false}var f="allowing switch "+(i&&i.id||"null")+" -> "+s.id;if(!i){c(f+" as current playlist is not set");return true}if(s.id===i.id){return false}var p=Boolean(W(n,a).length);if(!i.endList){if(!p&&typeof i.partTargetDuration==="number"){c("not "+f+" as current playlist is live llhls, but currentTime isn't in buffered.");return false}c(f+" as current playlist is live");return true}var h=te(n,a);var v=d?zn.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:zn.MAX_BUFFER_LOW_WATER_LINE;if(u<v){c(f+" as duration < max low water line ("+u+" < "+v+")");return true}var g=s.attributes.BANDWIDTH;var m=i.attributes.BANDWIDTH;if(g<m&&(!d||h<l)){var y=f+" as next bandwidth < current bandwidth ("+g+" < "+m+")";if(d){y+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+l+")"}c(y);return true}if((!d||g>m)&&h>=o){var _=f+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+o+")";if(d){_+=" and next bandwidth > current bandwidth ("+g+" > "+m+")"}c(_);return true}c("not "+f+" as no switching criteria met");return false};var bs=function(e){u(t,e);function t(t){var i;i=e.call(this)||this;var n=t.src,a=t.handleManifestRedirects,s=t.withCredentials,l=t.tech,u=t.bandwidth,d=t.externVhs,c=t.useCueTags,f=t.blacklistDuration,p=t.enableLowInitialPlaylist,h=t.sourceType,g=t.cacheEncryptionKeys,m=t.experimentalBufferBasedABR,y=t.experimentalLeastPixelDiffSelector,_=t.captionServices;if(!n){throw new Error("A non-empty playlist URL or JSON manifest string is required")}var b=t.maxPlaylistRetries;if(b===null||typeof b==="undefined"){b=Infinity}gs=d;i.experimentalBufferBasedABR=Boolean(m);i.experimentalLeastPixelDiffSelector=Boolean(y);i.withCredentials=s;i.tech_=l;i.vhs_=l.vhs;i.sourceType_=h;i.useCueTags_=c;i.blacklistDuration=f;i.maxPlaylistRetries=b;i.enableLowInitialPlaylist=p;if(i.useCueTags_){i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues");i.cueTagsTrack_.inBandMetadataTrackDispatchType=""}i.requestOptions_={withCredentials:s,handleManifestRedirects:a,maxPlaylistRetries:b,timeout:null};i.on("error",i.pauseLoading);i.mediaTypes_=hs();i.mediaSource=new window.MediaSource;i.handleDurationChange_=i.handleDurationChange_.bind(o(i));i.handleSourceOpen_=i.handleSourceOpen_.bind(o(i));i.handleSourceEnded_=i.handleSourceEnded_.bind(o(i));i.mediaSource.addEventListener("durationchange",i.handleDurationChange_);i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_);i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_);i.seekable_=r["default"].createTimeRanges();i.hasPlayed_=false;i.syncController_=new Qa(t);i.segmentMetadataTrack_=l.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},false).track;i.decrypter_=new $a;i.sourceUpdater_=new qa(i.mediaSource);i.inbandTextTracks_={};i.timelineChangeController_=new Ja;var S={vhs:i.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:_,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function e(){return i.seekable()},seeking:function e(){return i.tech_.seeking()},duration:function e(){return i.duration()},hasPlayed:function e(){return i.hasPlayed_},goalBufferLength:function e(){return i.goalBufferLength()},bandwidth:u,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:g,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};i.masterPlaylistLoader_=i.sourceType_==="dash"?new Gn(n,i.vhs_,i.requestOptions_):new Ye(n,i.vhs_,i.requestOptions_);i.setupMasterPlaylistLoaderListeners_();i.mainSegmentLoader_=new Pa(r["default"].mergeOptions(S,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t);i.audioSegmentLoader_=new Pa(r["default"].mergeOptions(S,{loaderType:"audio"}),t);i.subtitleSegmentLoader_=new za(r["default"].mergeOptions(S,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t);i.setupSegmentLoaderListeners_();if(i.experimentalBufferBasedABR){i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()});i.tech_.on("pause",function(){return i.stopABRTimer_()});i.tech_.on("play",function(){return i.startABRTimer_()})}ms.forEach(function(e){i[e+"_"]=ys.bind(o(i),e)});i.logger_=v("MPC");i.triggeredFmp4Usage=false;if(i.tech_.preload()==="none"){i.loadOnPlay_=function(){i.loadOnPlay_=null;i.masterPlaylistLoader_.load()};i.tech_.one("play",i.loadOnPlay_)}else{i.masterPlaylistLoader_.load()}i.timeToLoadedData__=-1;i.mainAppendsToLoadedData__=-1;i.audioAppendsToLoadedData__=-1;var T=i.tech_.preload()==="none"?"play":"loadstart";i.tech_.one(T,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e;i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends;i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})});return i}var i=t.prototype;i.mainAppendsToLoadedData_=function e(){return this.mainAppendsToLoadedData__};i.audioAppendsToLoadedData_=function e(){return this.audioAppendsToLoadedData__};i.appendsToLoadedData_=function e(){var t=this.mainAppendsToLoadedData_();var i=this.audioAppendsToLoadedData_();if(t===-1||i===-1){return-1}return t+i};i.timeToLoadedData_=function e(){return this.timeToLoadedData__};i.checkABR_=function e(){var t=this.selectPlaylist();if(t&&this.shouldSwitchToMedia_(t)){this.switchMedia_(t,"abr")}};i.switchMedia_=function e(t,i,n){var r=this.media();var a=r&&(r.id||r.uri);var s=t.id||t.uri;if(a&&a!==s){this.logger_("switch media "+a+" -> "+s+" from "+i);this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+i})}this.masterPlaylistLoader_.media(t,n)};i.startABRTimer_=function e(){var t=this;this.stopABRTimer_();this.abrTimer_=window.setInterval(function(){return t.checkABR_()},250)};i.stopABRTimer_=function e(){if(this.tech_.scrubbing&&this.tech_.scrubbing()){return}window.clearInterval(this.abrTimer_);this.abrTimer_=null};i.getAudioTrackPlaylists_=function e(){var t=this.master();var i=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO){return i}var n=t.mediaGroups.AUDIO;var r=Object.keys(n);var a;if(Object.keys(this.mediaTypes_.AUDIO.groups).length){a=this.mediaTypes_.AUDIO.activeTrack()}else{var s=n.main||r.length&&n[r[0]];for(var o in s){if(s[o].default){a={label:o};break}}}if(!a){return i}var l=[];for(var u in n){if(n[u][a.label]){var d=n[u][a.label];if(d.playlists&&d.playlists.length){l.push.apply(l,d.playlists)}else if(d.uri){l.push(d)}else if(t.playlists.length){for(var c=0;c<t.playlists.length;c++){var f=t.playlists[c];if(f.attributes&&f.attributes.AUDIO&&f.attributes.AUDIO===u){l.push(f)}}}}}if(!l.length){return i}return l};i.setupMasterPlaylistLoaderListeners_=function e(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(Ee(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}if(e.endList&&t.tech_.preload()!=="none"){t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load()}ps({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)});t.triggerPresenceUsage_(t.master(),e);t.setupFirstPlay();if(!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()){t.trigger("selectedinitialmedia")}else{t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}});this.masterPlaylistLoader_.on("loadedplaylist",function(){if(t.loadOnPlay_){t.tech_.off("play",t.loadOnPlay_)}var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var i;if(t.enableLowInitialPlaylist){i=t.selectInitialPlaylist()}if(!i){i=t.selectPlaylist()}if(!i||!t.shouldSwitchToMedia_(i)){return}t.initialMedia_=i;t.switchMedia_(t.initialMedia_,"initial");var n=t.sourceType_==="vhs-json"&&t.initialMedia_.segments;if(!n){return}e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)});this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort();t.mainSegmentLoader_.pause()});this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(Ee(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load();t.tech_.trigger({type:"mediachange",bubbles:true})});this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();if(e.lastExcludeReason_==="playlist-unchanged"){return}var i=t.stuckAtPlaylistEnd_(e);if(i){t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"});t.tech_.trigger("playliststuck")}});this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})});this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})};i.handleUpdatedMediaPlaylist=function e(t){if(this.useCueTags_){this.updateAdCues_(t)}this.mainSegmentLoader_.playlist(t,this.requestOptions_);this.updateDuration(!t.endList);if(!this.tech_.paused()){this.mainSegmentLoader_.load();if(this.audioSegmentLoader_){this.audioSegmentLoader_.load()}}};i.triggerPresenceUsage_=function e(t,i){var n=t.mediaGroups||{};var r=true;var a=Object.keys(n.AUDIO);for(var s in n.AUDIO){for(var o in n.AUDIO[s]){var l=n.AUDIO[s][o];if(!l.uri){r=false}}}if(r){this.tech_.trigger({type:"usage",name:"vhs-demuxed"});this.tech_.trigger({type:"usage",name:"hls-demuxed"})}if(Object.keys(n.SUBTITLES).length){this.tech_.trigger({type:"usage",name:"vhs-webvtt"});this.tech_.trigger({type:"usage",name:"hls-webvtt"})}if(gs.Playlist.isAes(i)){this.tech_.trigger({type:"usage",name:"vhs-aes"});this.tech_.trigger({type:"usage",name:"hls-aes"})}if(a.length&&Object.keys(n.AUDIO[a[0]]).length>1){this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"});this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})}if(this.useCueTags_){this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"});this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}};i.shouldSwitchToMedia_=function e(t){var i=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_;var n=this.tech_.currentTime();var r=this.bufferLowWaterLine();var a=this.bufferHighWaterLine();var s=this.tech_.buffered();return _s({buffered:s,currentTime:n,currentPlaylist:i,nextPlaylist:t,bufferLowWaterLine:r,bufferHighWaterLine:a,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})};i.setupSegmentLoaderListeners_=function e(){var t=this;if(!this.experimentalBufferBasedABR){this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();if(t.shouldSwitchToMedia_(e)){t.switchMedia_(e,"bandwidthupdate")}t.tech_.trigger("bandwidthupdate")});this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})}this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"});t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})});this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended");t.onEndOfStream()});this.mainSegmentLoader_.on("earlyabort",function(e){if(t.experimentalBufferBasedABR){return}t.delegateLoaders_("all",["abort"]);t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the "+"request without rebuffering."},vs)});var i=function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers()){return t.tryToCreateSourceBuffers_()}var i=t.getCodecsOrExclude_();if(!i){return}t.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",i);this.audioSegmentLoader_.on("trackinfo",i);this.mainSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended");t.onEndOfStream()})};i.mediaSecondsLoaded_=function e(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)};i.load=function e(){this.mainSegmentLoader_.load();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.load()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.load()}};i.smoothQualityChange_=function e(t){if(t===void 0){t=this.selectPlaylist()}this.fastQualityChange_(t)};i.fastQualityChange_=function e(t){var i=this;if(t===void 0){t=this.selectPlaylist()}if(t===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality");this.mainSegmentLoader_.resetEverything(function(){if(r["default"].browser.IE_VERSION||r["default"].browser.IS_EDGE){i.tech_.setCurrentTime(i.tech_.currentTime()+.04)}else{i.tech_.setCurrentTime(i.tech_.currentTime())}})};i.play=function e(){if(this.setupFirstPlay()){return}if(this.tech_.ended()){this.tech_.setCurrentTime(0)}if(this.hasPlayed_){this.load()}var t=this.tech_.seekable();if(this.tech_.duration()===Infinity){if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};i.setupFirstPlay=function e(){var t=this;var i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_){return false}if(!i.endList){var n=this.seekable();if(!n.length){return false}if(r["default"].browser.IE_VERSION&&this.tech_.readyState()===0){this.tech_.one("loadedmetadata",function(){t.trigger("firstplay");t.tech_.setCurrentTime(n.end(0));t.hasPlayed_=true});return false}this.trigger("firstplay");this.tech_.setCurrentTime(n.end(0))}this.hasPlayed_=true;this.load();return true};i.handleSourceOpen_=function e(){this.tryToCreateSourceBuffers_();if(this.tech_.autoplay()){var t=this.tech_.play();if(typeof t!=="undefined"&&typeof t.then==="function"){t.then(null,function(e){})}}this.trigger("sourceopen")};i.handleSourceEnded_=function e(){if(!this.inbandTextTracks_.metadataTrack_){return}var t=this.inbandTextTracks_.metadataTrack_.cues;if(!t||!t.length){return}var i=this.duration();t[t.length-1].endTime=isNaN(i)||Math.abs(i)===Infinity?Number.MAX_VALUE:i};i.handleDurationChange_=function e(){this.tech_.trigger("durationchange")};i.onEndOfStream=function e(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var i=this.mainSegmentLoader_.getCurrentMediaInfo_();if(!i||i.hasVideo){t=t&&this.audioSegmentLoader_.ended_}else{t=this.audioSegmentLoader_.ended_}}if(!t){return}this.stopABRTimer_();this.sourceUpdater_.endOfStream()};i.stuckAtPlaylistEnd_=function e(t){var i=this.seekable();if(!i.length){return false}var n=this.syncController_.getExpiredTime(t,this.duration());if(n===null){return false}var r=gs.Playlist.playlistEnd(t,n);var a=this.tech_.currentTime();var s=this.tech_.buffered();if(!s.length){return r-a<=G}var o=s.end(s.length-1);return o-a<=G&&r-o<=G};i.blacklistCurrentPlaylist=function e(t,i){if(t===void 0){t={}}var n=t.playlist||this.masterPlaylistLoader_.media();i=i||t.blacklistDuration||this.blacklistDuration;if(!n){this.error=t;if(this.mediaSource.readyState!=="open"){this.trigger("error")}else{this.sourceUpdater_.endOfStream("network")}return}n.playlistErrors_++;var a=this.masterPlaylistLoader_.master.playlists;var s=a.filter(ye);var o=s.length===1&&s[0]===n;if(a.length===1&&i!==Infinity){r["default"].log.warn("Problem encountered with playlist "+n.id+". "+"Trying again since it is the only playlist.");this.tech_.trigger("retryplaylist");return this.masterPlaylistLoader_.load(o)}if(o){var l=false;a.forEach(function(e){if(e===n){return}var t=e.excludeUntil;if(typeof t!=="undefined"&&t!==Infinity){l=true;delete e.excludeUntil}});if(l){r["default"].log.warn("Removing other playlists from the exclusion list because the last "+"rendition is about to be excluded.");this.tech_.trigger("retryplaylist")}}var u;if(n.playlistErrors_>this.maxPlaylistRetries){u=Infinity}else{u=Date.now()+i*1e3}n.excludeUntil=u;if(t.reason){n.lastExcludeReason_=t.reason}this.tech_.trigger("blacklistplaylist");this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"});this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var d=this.selectPlaylist();if(!d){this.error="Playback cannot continue. No available working or supported playlists.";this.trigger("error");return}var c=t.internal?this.logger_:r["default"].log.warn;var f=t.message?" "+t.message:"";c((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+(f+" Switching to playlist "+d.id+"."));if(d.attributes.AUDIO!==n.attributes.AUDIO){this.delegateLoaders_("audio",["abort","pause"])}if(d.attributes.SUBTITLES!==n.attributes.SUBTITLES){this.delegateLoaders_("subtitle",["abort","pause"])}this.delegateLoaders_("main",["abort","pause"]);var p=d.targetDuration/2*1e3||5*1e3;var h=typeof d.lastRequest==="number"&&Date.now()-d.lastRequest<=p;return this.switchMedia_(d,"exclude",o||h)};i.pauseLoading=function e(){this.delegateLoaders_("all",["abort","pause"]);this.stopABRTimer_()};i.delegateLoaders_=function e(t,i){var n=this;var r=[];var a=t==="all";if(a||t==="main"){r.push(this.masterPlaylistLoader_)}var s=[];if(a||t==="audio"){s.push("AUDIO")}if(a||t==="subtitle"){s.push("CLOSED-CAPTIONS");s.push("SUBTITLES")}s.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;if(t){r.push(t)}});["main","audio","subtitle"].forEach(function(e){var i=n[e+"SegmentLoader_"];if(i&&(t===e||t==="all")){r.push(i)}});r.forEach(function(e){return i.forEach(function(t){if(typeof e[t]==="function"){e[t]()}})})};i.setCurrentTime=function e(t){var i=W(this.tech_.buffered(),t);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())){return 0}if(!this.masterPlaylistLoader_.media().segments){return 0}if(i&&i.length){return t}this.mainSegmentLoader_.resetEverything();this.mainSegmentLoader_.abort();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.resetEverything();this.audioSegmentLoader_.abort()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.resetEverything();this.subtitleSegmentLoader_.abort()}this.load()};i.duration=function e(){if(!this.masterPlaylistLoader_){return 0}var t=this.masterPlaylistLoader_.media();if(!t){return 0}if(!t.endList){return Infinity}if(this.mediaSource){return this.mediaSource.duration}return gs.Playlist.duration(t)};i.seekable=function e(){return this.seekable_};i.onSyncInfoUpdate_=function e(){var t;if(!this.masterPlaylistLoader_){return}var i=this.masterPlaylistLoader_.media();if(!i){return}var n=this.syncController_.getExpiredTime(i,this.duration());if(n===null){return}var a=this.masterPlaylistLoader_.master;var s=gs.Playlist.seekable(i,n,gs.Playlist.liveEdgeDelay(a,i));if(s.length===0){return}if(this.mediaTypes_.AUDIO.activePlaylistLoader){i=this.mediaTypes_.AUDIO.activePlaylistLoader.media();n=this.syncController_.getExpiredTime(i,this.duration());if(n===null){return}t=gs.Playlist.seekable(i,n,gs.Playlist.liveEdgeDelay(a,i));if(t.length===0){return}}var o;var l;if(this.seekable_&&this.seekable_.length){o=this.seekable_.end(0);l=this.seekable_.start(0)}if(!t){this.seekable_=s}else if(t.start(0)>s.end(0)||s.start(0)>t.end(0)){this.seekable_=s}else{this.seekable_=r["default"].createTimeRanges([[t.start(0)>s.start(0)?t.start(0):s.start(0),t.end(0)<s.end(0)?t.end(0):s.end(0)]])}if(this.seekable_&&this.seekable_.length){if(this.seekable_.end(0)===o&&this.seekable_.start(0)===l){return}}this.logger_("seekable updated ["+Q(this.seekable_)+"]");this.tech_.trigger("seekablechanged")};i.updateDuration=function e(t){if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_);this.updateDuration_=null}if(this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t);this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){var i=this.seekable();if(!i.length){return}if(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1)){this.sourceUpdater_.setDuration(i.end(i.length-1))}return}var n=this.tech_.buffered();var r=gs.Playlist.duration(this.masterPlaylistLoader_.media());if(n.length>0){r=Math.max(r,n.end(n.length-1))}if(this.mediaSource.duration!==r){this.sourceUpdater_.setDuration(r)}};i.dispose=function e(){var t=this;this.trigger("dispose");this.decrypter_.terminate();this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();if(this.loadOnPlay_){this.tech_.off("play",this.loadOnPlay_)}["AUDIO","SUBTITLES"].forEach(function(e){var i=t.mediaTypes_[e].groups;for(var n in i){i[n].forEach(function(e){if(e.playlistLoader){e.playlistLoader.dispose()}})}});this.audioSegmentLoader_.dispose();this.subtitleSegmentLoader_.dispose();this.sourceUpdater_.dispose();this.timelineChangeController_.dispose();this.stopABRTimer_();if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_)}this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_);this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_);this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_);this.off()};i.master=function e(){return this.masterPlaylistLoader_.master};i.media=function e(){return this.masterPlaylistLoader_.media()||this.initialMedia_};i.areMediaTypesKnown_=function e(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader;var i=!!this.mainSegmentLoader_.getCurrentMediaInfo_();var n=!t?true:!!this.audioSegmentLoader_.getCurrentMediaInfo_();if(!i||!n){return false}return true};i.getCodecsOrExclude_=function e(){var t=this;var i={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};i.video=i.main;var n=Nr(this.master(),this.media());var r={};var a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo){r.video=n.video||i.main.videoCodec||q}if(i.main.isMuxed){r.video+=","+(n.audio||i.main.audioCodec||V)}if(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||a){r.audio=n.audio||i.main.audioCodec||i.audio.audioCodec||V;i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4}if(!r.audio&&!r.video){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:Infinity});return}var s=function e(t,i){return t?B(i):F(i)};var o={};var l;["video","audio"].forEach(function(e){if(r.hasOwnProperty(e)&&!s(i[e].isFmp4,r[e])){var t=i[e].isFmp4?"browser":"muxer";o[t]=o[t]||[];o[t].push(r[e]);if(e==="audio"){l=t}}});if(a&&l&&this.media().attributes.AUDIO){var u=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){var i=e.attributes&&e.attributes.AUDIO;if(i===u&&e!==t.media()){e.excludeUntil=Infinity}});this.logger_("excluding audio group "+u+" as "+l+' does not support codec(s): "'+r.audio+'"')}if(Object.keys(o).length){var d=Object.keys(o).reduce(function(e,t){if(e){e+=", "}e+=t+' does not support codec(s): "'+o[t].join(",")+'"';return e},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:true,message:d,blacklistDuration:Infinity});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];["video","audio"].forEach(function(e){var i=(D(t.sourceUpdater_.codecs[e]||"")[0]||{}).type;var n=(D(r[e]||"")[0]||{}).type;if(i&&n&&i.toLowerCase()!==n.toLowerCase()){c.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+r[e]+'"')}});if(c.length){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+c.join(", ")+".",blacklistDuration:Infinity,internal:true});return}}return r};i.tryToCreateSourceBuffers_=function e(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()){return}if(!this.areMediaTypesKnown_()){return}var t=this.getCodecsOrExclude_();if(!t){return}this.sourceUpdater_.createSourceBuffers(t);var i=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)};i.excludeUnsupportedVariants_=function e(){var t=this;var i=this.master().playlists;var n=[];Object.keys(i).forEach(function(e){var r=i[e];if(n.indexOf(r.id)!==-1){return}n.push(r.id);var a=Nr(t.master,r);var s=[];if(a.audio&&!F(a.audio)&&!B(a.audio)){s.push("audio codec "+a.audio)}if(a.video&&!F(a.video)&&!B(a.video)){s.push("video codec "+a.video)}if(a.text&&a.text==="stpp.ttml.im1t"){s.push("text codec "+a.text)}if(s.length){r.excludeUntil=Infinity;t.logger_("excluding "+r.id+" for unsupported: "+s.join(", "))}})};i.excludeIncompatibleVariants_=function e(t){var i=this;var n=[];var r=this.master().playlists;var a=Dr(D(t));var s=Rr(a);var o=a.video&&D(a.video)[0]||null;var l=a.audio&&D(a.audio)[0]||null;Object.keys(r).forEach(function(e){var t=r[e];if(n.indexOf(t.id)!==-1||t.excludeUntil===Infinity){return}n.push(t.id);var a=[];var u=Nr(i.masterPlaylistLoader_.master,t);var d=Rr(u);if(!u.audio&&!u.video){return}if(d!==s){a.push('codec count "'+d+'" !== "'+s+'"')}if(!i.sourceUpdater_.canChangeType()){var c=u.video&&D(u.video)[0]||null;var f=u.audio&&D(u.audio)[0]||null;if(c&&o&&c.type.toLowerCase()!==o.type.toLowerCase()){a.push('video codec "'+c.type+'" !== "'+o.type+'"')}if(f&&l&&f.type.toLowerCase()!==l.type.toLowerCase()){a.push('audio codec "'+f.type+'" !== "'+l.type+'"')}}if(a.length){t.excludeUntil=Infinity;i.logger_("blacklisting "+t.id+": "+a.join(" && "))}})};i.updateAdCues_=function e(t){var i=0;var n=this.seekable();if(n.length){i=n.start(0)}Ya(t,this.cueTagsTrack_,i)};i.goalBufferLength=function e(){var t=this.tech_.currentTime();var i=zn.GOAL_BUFFER_LENGTH;var n=zn.GOAL_BUFFER_LENGTH_RATE;var r=Math.max(i,zn.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+t*n,r)};i.bufferLowWaterLine=function e(){var t=this.tech_.currentTime();var i=zn.BUFFER_LOW_WATER_LINE;var n=zn.BUFFER_LOW_WATER_LINE_RATE;var r=Math.max(i,zn.MAX_BUFFER_LOW_WATER_LINE);var a=Math.max(i,zn.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+t*n,this.experimentalBufferBasedABR?a:r)};i.bufferHighWaterLine=function e(){return zn.BUFFER_HIGH_WATER_LINE};return t}(r["default"].EventTarget);var Ss=function e(t,i,n){return function(e){var r=t.master.playlists[i];var a=me(r);var s=ye(r);if(typeof e==="undefined"){return s}if(e){delete r.disabled}else{r.disabled=true}if(e!==s&&!a){n();if(e){t.trigger("renditionenabled")}else{t.trigger("renditiondisabled")}}return e}};var Ts=function e(t,i,n){var r=t.masterPlaylistController_,a=t.options_.smoothQualityChange;var s=a?"smooth":"fast";var o=r[s+"QualityChange_"].bind(r);if(i.attributes){var l=i.attributes.RESOLUTION;this.width=l&&l.width;this.height=l&&l.height;this.bandwidth=i.attributes.BANDWIDTH}this.codecs=Nr(r.master(),i);this.playlist=i;this.id=n;this.enabled=Ss(t.playlists,i.id,o)};var Es=function e(t){t.representations=function(){var e=t.masterPlaylistController_.master();var i=Ie(e)?t.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;if(!i){return[]}return i.filter(function(e){return!me(e)}).map(function(e,i){return new Ts(t,e,e.id)})}};var ws=["seeking","seeked","pause","playing","error"];var ks=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController;this.tech_=e.tech;this.seekable=e.seekable;this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow;this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta;this.media=e.media;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;this.logger_=v("PlaybackWatcher");this.logger_("initialize");var i=function e(){return t.monitorCurrentTime_()};var n=function e(){return t.monitorCurrentTime_()};var r=function e(){return t.techWaiting_()};var a=function e(){return t.cancelTimer_()};var s=this.masterPlaylistController_;var o=["main","subtitle","audio"];var l={};o.forEach(function(e){l[e]={reset:function i(){return t.resetSegmentDownloads_(e)},updateend:function i(){return t.checkSegmentDownloads_(e)}};s[e+"SegmentLoader_"].on("appendsdone",l[e].updateend);s[e+"SegmentLoader_"].on("playlistupdate",l[e].reset);t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function e(i){["main","audio"].forEach(function(e){s[e+"SegmentLoader_"][i]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){if(t.fixesBadSeeks_()){t.consecutiveUpdates=0;t.lastRecordedTime=t.tech_.currentTime();u("off")}};this.clearSeekingAppendCheck_=function(){return u("off")};this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_();u("on")};this.tech_.on("seeked",this.clearSeekingAppendCheck_);this.tech_.on("seeking",this.watchForBadSeeking_);this.tech_.on("waiting",r);this.tech_.on(ws,a);this.tech_.on("canplay",n);this.tech_.one("play",i);this.dispose=function(){t.clearSeekingAppendCheck_();t.logger_("dispose");t.tech_.off("waiting",r);t.tech_.off(ws,a);t.tech_.off("canplay",n);t.tech_.off("play",i);t.tech_.off("seeking",t.watchForBadSeeking_);t.tech_.off("seeked",t.clearSeekingAppendCheck_);o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",l[e].updateend);s[e+"SegmentLoader_"].off("playlistupdate",l[e].reset);t.tech_.off(["seeked","seeking"],l[e].reset)});if(t.checkCurrentTimeTimeout_){window.clearTimeout(t.checkCurrentTimeTimeout_)}t.cancelTimer_()}}var t=e.prototype;t.monitorCurrentTime_=function e(){this.checkCurrentTime_();if(this.checkCurrentTimeTimeout_){window.clearTimeout(this.checkCurrentTimeTimeout_)}this.checkCurrentTimeTimeout_=window.setTimeout(this.monitorCurrentTime_.bind(this),250)};t.resetSegmentDownloads_=function e(t){var i=this.masterPlaylistController_[t+"SegmentLoader_"];if(this[t+"StalledDownloads_"]>0){this.logger_("resetting possible stalled download count for "+t+" loader")}this[t+"StalledDownloads_"]=0;this[t+"Buffered_"]=i.buffered_()};t.checkSegmentDownloads_=function e(t){var i=this.masterPlaylistController_;var n=i[t+"SegmentLoader_"];var r=n.buffered_();var a=$(this[t+"Buffered_"],r);this[t+"Buffered_"]=r;if(a){this.resetSegmentDownloads_(t);return}this[t+"StalledDownloads_"]++;this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Z(r)});if(this[t+"StalledDownloads_"]<10){return}this.logger_(t+" loader stalled download exclusion");this.resetSegmentDownloads_(t);this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"});if(t==="subtitle"){return}i.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},Infinity)};t.checkCurrentTime_=function e(){if(this.tech_.paused()||this.tech_.seeking()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();if(this.lastRecordedTime===t&&(!i.length||t+G>=i.end(i.length-1))){return this.techWaiting_()}if(this.consecutiveUpdates>=5&&t===this.lastRecordedTime){this.consecutiveUpdates++;this.waiting_()}else if(t===this.lastRecordedTime){this.consecutiveUpdates++}else{this.consecutiveUpdates=0;this.lastRecordedTime=t}};t.cancelTimer_=function e(){this.consecutiveUpdates=0;if(this.timer_){this.logger_("cancelTimer_");clearTimeout(this.timer_)}this.timer_=null};t.fixesBadSeeks_=function e(){var t=this.tech_.seeking();if(!t){return false}var i=this.seekable();var n=this.tech_.currentTime();var r=this.afterSeekableWindow_(i,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow);var a;if(r){var s=i.end(i.length-1);a=s}if(this.beforeSeekableWindow_(i,n)){var o=i.start(0);a=o+(o===i.end(0)?0:G)}if(typeof a!=="undefined"){this.logger_("Trying to seek outside of seekable at time "+n+" with "+("seekable range "+Q(i)+". Seeking to ")+(a+"."));this.tech_.setCurrentTime(a);return true}var l=this.masterPlaylistController_.sourceUpdater_;var u=this.tech_.buffered();var d=l.audioBuffer?l.audioBuffered():null;var c=l.videoBuffer?l.videoBuffered():null;var f=this.media();var p=f.partTargetDuration?f.partTargetDuration:(f.targetDuration-H)*2;var h=[d,c];for(var v=0;v<h.length;v++){if(!h[v]){continue}var g=te(h[v],n);if(g<p){return false}}var m=Y(u,n);if(m.length===0){return false}a=m.start(0)+G;this.logger_("Buffered region starts ("+m.start(0)+") "+(" just beyond seek point ("+n+"). Seeking to "+a+"."));this.tech_.setCurrentTime(a);return true};t.waiting_=function e(){if(this.techWaiting_()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();var n=W(i,t);if(n.length&&t+3<=n.end(0)){this.cancelTimer_();this.tech_.setCurrentTime(t);this.logger_("Stopped at "+t+" while inside a buffered region "+("["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time.");this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}};t.techWaiting_=function e(){var t=this.seekable();var i=this.tech_.currentTime();if(this.tech_.seeking()||this.timer_!==null){return true}if(this.beforeSeekableWindow_(t,i)){var n=t.end(t.length-1);this.logger_("Fell out of live window at time "+i+". Seeking to "+("live point (seekable end) "+n));this.cancelTimer_();this.tech_.setCurrentTime(n);this.tech_.trigger({type:"usage",name:"vhs-live-resync"});this.tech_.trigger({type:"usage",name:"hls-live-resync"});return true}var r=this.tech_.vhs.masterPlaylistController_.sourceUpdater_;var a=this.tech_.buffered();var s=this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:i});if(s){this.cancelTimer_();this.tech_.setCurrentTime(i);this.tech_.trigger({type:"usage",name:"vhs-video-underflow"});this.tech_.trigger({type:"usage",name:"hls-video-underflow"});return true}var o=Y(a,i);if(o.length>0){var l=o.start(0)-i;this.logger_("Stopped at "+i+", setting timer for "+l+", seeking "+("to "+o.start(0)));this.cancelTimer_();this.timer_=setTimeout(this.skipTheGap_.bind(this),l*1e3,i);return true}return false};t.afterSeekableWindow_=function e(t,i,n,r){if(r===void 0){r=false}if(!t.length){return false}var a=t.end(t.length-1)+G;var s=!n.endList;if(s&&r){a=t.end(t.length-1)+n.targetDuration*3}if(i>a){return true}return false};t.beforeSeekableWindow_=function e(t,i){if(t.length&&t.start(0)>0&&i<t.start(0)-this.liveRangeSafeTimeDelta){return true}return false};t.videoUnderflow_=function e(t){var i=t.videoBuffered,n=t.audioBuffered,r=t.currentTime;if(!i){return}var a;if(i.length&&n.length){var s=W(i,r-3);var o=W(i,r);var l=W(n,r);if(l.length&&!o.length&&s.length){a={start:s.end(0),end:l.end(0)}}}else{var u=Y(i,r);if(!u.length){a=this.gapFromVideoUnderflow_(i,r)}}if(a){this.logger_("Encountered a gap in video from "+a.start+" to "+a.end+". "+("Seeking to current time "+r));return true}return false};t.skipTheGap_=function e(t){var i=this.tech_.buffered();var n=this.tech_.currentTime();var r=Y(i,n);this.cancelTimer_();if(r.length===0||n!==t){return}this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",r.start(0));this.tech_.setCurrentTime(r.start(0)+H);this.tech_.trigger({type:"usage",name:"vhs-gap-skip"});this.tech_.trigger({type:"usage",name:"hls-gap-skip"})};t.gapFromVideoUnderflow_=function e(t,i){var n=K(t);for(var r=0;r<n.length;r++){var a=n.start(r);var s=n.end(r);if(i-a<4&&i-a>2){return{start:a,end:s}}}return null};return e}();var Is={errorInterval:30,getSource:function e(t){var i=this.tech({IWillNotUseThisInPlugins:true});var n=i.currentSource_||this.currentSource();return t(n)}};var As=function e(t,i){var n=0;var a=0;var s=r["default"].mergeOptions(Is,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"});t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var o=function e(){if(a){t.currentTime(a)}};var l=function e(i){if(i===null||i===undefined){return}a=t.duration()!==Infinity&&t.currentTime()||0;t.one("loadedmetadata",o);t.src(i);t.trigger({type:"usage",name:"vhs-error-reload"});t.trigger({type:"usage",name:"hls-error-reload"});t.play()};var u=function e(){if(Date.now()-n<s.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!s.getSource||typeof s.getSource!=="function"){r["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}n=Date.now();return s.getSource.call(t,l)};var d=function e(){t.off("loadedmetadata",o);t.off("error",u);t.off("dispose",e)};var c=function i(n){d();e(t,n)};t.on("error",u);t.on("dispose",d);t.reloadSourceOnError=c};var Cs=function e(t){As(this,t)};var js="2.14.2";var Ps="6.0.1";var xs="0.21.1";var Ls="4.7.1";var Os="3.1.3";var Ds={PlaylistLoader:Ye,Playlist:Ae,utils:wt,STANDARD_PLAYLIST_SELECTOR:Gr,INITIAL_PLAYLIST_SELECTOR:Yr,lastBandwidthSelector:Gr,movingAverageBandwidthSelector:zr,comparePlaylistBandwidth:Vr,comparePlaylistResolution:qr,xhr:Je()};Object.keys(zn).forEach(function(e){Object.defineProperty(Ds,e,{get:function t(){r["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");return zn[e]},set:function t(i){r["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");if(typeof i!=="number"||i<0){r["default"].log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}zn[e]=i}})});var Rs="videojs-vhs";var Ns=function e(t,i){var n=i.media();var r=-1;for(var a=0;a<t.length;a++){if(t[a].id===n.id){r=a;break}}t.selectedIndex_=r;t.trigger({selectedIndex:r,type:"change"})};var Ms=function e(t,i){i.representations().forEach(function(e){t.addQualityLevel(e)});Ns(t,i.playlists)};Ds.canPlaySource=function(){return r["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};var Us=function e(t,i,n){if(!t){return t}var a={};if(i&&i.attributes&&i.attributes.CODECS){a=Dr(D(i.attributes.CODECS))}if(n&&n.attributes&&n.attributes.CODECS){a.audio=n.attributes.CODECS}var s=U(a.video);var o=U(a.audio);var l={};for(var u in t){l[u]={};if(o){l[u].audioContentType=o}if(s){l[u].videoContentType=s}if(i.contentProtection&&i.contentProtection[u]&&i.contentProtection[u].pssh){l[u].pssh=i.contentProtection[u].pssh}if(typeof t[u]==="string"){l[u].url=t[u]}}return r["default"].mergeOptions(t,l)};var Bs=function e(t,i){return t.reduce(function(e,t){if(!t.contentProtection){return e}var n=i.reduce(function(e,i){var n=t.contentProtection[i];if(n&&n.pssh){e[i]={pssh:n.pssh}}return e},{});if(Object.keys(n).length){e.push(n)}return e},[])};var Fs=function e(t){var i=t.player,n=t.sourceKeySystems,r=t.audioMedia,a=t.mainPlaylists;if(!i.eme.initializeMediaKeys){return Promise.resolve()}var s=r?a.concat([r]):a;var o=Bs(s,Object.keys(n));var l=[];var u=[];o.forEach(function(e){u.push(new Promise(function(e,t){i.tech_.one("keysessioncreated",e)}));l.push(new Promise(function(t,n){i.eme.initializeMediaKeys({keySystems:e},function(e){if(e){n(e);return}t()})}))});return Promise.race([Promise.all(l),Promise.race(u)])};var Vs=function e(t){var i=t.player,n=t.sourceKeySystems,a=t.media,s=t.audioMedia;var o=Us(n,a,s);if(!o){return false}i.currentSource().keySystems=o;if(o&&!i.eme){r["default"].log.warn("DRM encrypted source cannot be decrypted without a DRM plugin");return false}return true};var qs=function e(){if(!window.localStorage){return null}var t=window.localStorage.getItem(Rs);if(!t){return null}try{return JSON.parse(t)}catch(e){return null}};var Hs=function e(t){if(!window.localStorage){return false}var i=qs();i=i?r["default"].mergeOptions(i,t):t;try{window.localStorage.setItem(Rs,JSON.stringify(i))}catch(e){return false}return i};var Gs=function e(t){if(t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0){return JSON.parse(t.substring(t.indexOf(",")+1))}return t};Ds.supportsNativeHls=function(){if(!document||!document.createElement){return false}var e=document.createElement("video");if(!r["default"].getTech("Html5").isSupported()){return false}var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}();Ds.supportsNativeDash=function(){if(!document||!document.createElement||!r["default"].getTech("Html5").isSupported()){return false}return/maybe|probably/i.test(document.createElement("video").canPlayType("application/dash+xml"))}();Ds.supportsTypeNatively=function(e){if(e==="hls"){return Ds.supportsNativeHls}if(e==="dash"){return Ds.supportsNativeDash}return false};Ds.isSupported=function(){return r["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};var zs=r["default"].getComponent("Component");var Ws=function(e){u(t,e);function t(t,i,n){var a;a=e.call(this,i,r["default"].mergeOptions(n.hls,n.vhs))||this;if(n.hls&&Object.keys(n.hls).length){r["default"].log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object.")}if(typeof n.initialBandwidth==="number"){a.options_.bandwidth=n.initialBandwidth}a.logger_=v("VhsHandler");if(i.options_&&i.options_.playerId){var s=r["default"](i.options_.playerId);if(!s.hasOwnProperty("hls")){Object.defineProperty(s,"hls",{get:function e(){r["default"].log.warn("player.hls is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"hls-player-access"});return o(a)},configurable:true})}if(!s.hasOwnProperty("vhs")){Object.defineProperty(s,"vhs",{get:function e(){r["default"].log.warn("player.vhs is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"vhs-player-access"});return o(a)},configurable:true})}if(!s.hasOwnProperty("dash")){Object.defineProperty(s,"dash",{get:function e(){r["default"].log.warn("player.dash is deprecated. Use player.tech().vhs instead.");return o(a)},configurable:true})}a.player_=s}a.tech_=i;a.source_=t;a.stats={};a.ignoreNextSeekingEvent_=false;a.setOptions_();if(a.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks){i.overrideNativeAudioTracks(true);i.overrideNativeVideoTracks(true)}else if(a.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks)){throw new Error("Overriding native HLS requires emulated tracks. "+"See https://git.io/vMpjB")}a.on(document,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;if(t&&t.contains(a.tech_.el())){a.masterPlaylistController_.fastQualityChange_()}else{a.masterPlaylistController_.checkABR_()}});a.on(a.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=false;return}this.setCurrentTime(this.tech_.currentTime())});a.on(a.tech_,"error",function(){if(this.tech_.error()&&this.masterPlaylistController_){this.masterPlaylistController_.pauseLoading()}});a.on(a.tech_,"play",a.play);return a}var i=t.prototype;i.setOptions_=function e(){var t=this;this.options_.withCredentials=this.options_.withCredentials||false;this.options_.handleManifestRedirects=this.options_.handleManifestRedirects===false?false:true;this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions===false?false:true;this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||false;this.options_.smoothQualityChange=this.options_.smoothQualityChange||false;this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage!=="undefined"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||false;this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||false;this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||false;this.options_.customTagParsers=this.options_.customTagParsers||[];this.options_.customTagMappers=this.options_.customTagMappers||[];this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||false;if(typeof this.options_.blacklistDuration!=="number"){this.options_.blacklistDuration=5*60}if(typeof this.options_.bandwidth!=="number"){if(this.options_.useBandwidthFromLocalStorage){var i=qs();if(i&&i.bandwidth){this.options_.bandwidth=i.bandwidth;this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})}if(i&&i.throughput){this.options_.throughput=i.throughput;this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"})}}}if(typeof this.options_.bandwidth!=="number"){this.options_.bandwidth=zn.INITIAL_BANDWIDTH}this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===zn.INITIAL_BANDWIDTH;["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(e){if(typeof t.source_[e]!=="undefined"){t.options_[e]=t.source_[e]}});this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions;this.useDevicePixelRatio=this.options_.useDevicePixelRatio};i.src=function e(t,i){var n=this;if(!t){return}this.setOptions_();this.options_.src=Gs(this.source_.src);this.options_.tech=this.tech_;this.options_.externVhs=Ds;this.options_.sourceType=it(i);this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)};if(this.options_.smoothQualityChange){r["default"].log.warn("smoothQualityChange is deprecated and will be removed in the next major version")}this.masterPlaylistController_=new bs(this.options_);var a=r["default"].mergeOptions({liveRangeSafeTimeDelta:G},this.options_,{seekable:function e(){return n.seekable()},media:function e(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ks(a);this.masterPlaylistController_.on("error",function(){var e=r["default"].players[n.tech_.options_.playerId];var t=n.masterPlaylistController_.error;if(typeof t==="object"&&!t.code){t.code=3}else if(typeof t==="string"){t={message:t,code:3}}e.error(t)});var s=this.options_.experimentalBufferBasedABR?Ds.movingAverageBandwidthSelector(.55):Ds.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this);this.masterPlaylistController_.selectInitialPlaylist=Ds.INITIAL_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function e(){return this.masterPlaylistController_.selectPlaylist},set:function e(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function e(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function e(){var t=this.masterPlaylistController_.mainSegmentLoader_.bandwidth;var i=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;var n=1e7;if(this.options_.useNetworkInformationApi&&i){var r=i.downlink*1e3*1e3;if(r>=n&&t>=n){t=Math.max(t,r)}else{t=r}}return t},set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function e(){var t=1/(this.bandwidth||1);var i;if(this.throughput>0){i=1/this.throughput}else{i=0}var n=Math.floor(1/(t+i));return n},set:function e(){r["default"].log.error('The "systemBandwidth" property is read-only')}}});if(this.options_.bandwidth){this.bandwidth=this.options_.bandwidth}if(this.options_.throughput){this.throughput=this.options_.throughput}Object.defineProperties(this.stats,{bandwidth:{get:function e(){return n.bandwidth||0},enumerable:true},mediaRequests:{get:function e(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:true},mediaRequestsAborted:{get:function e(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:true},mediaRequestsTimedout:{get:function e(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:true},mediaRequestsErrored:{get:function e(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:true},mediaTransferDuration:{get:function e(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:true},mediaBytesTransferred:{get:function e(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:true},mediaSecondsLoaded:{get:function e(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:true},mediaAppends:{get:function e(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:true},mainAppendsToLoadedData:{get:function e(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:true},audioAppendsToLoadedData:{get:function e(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:true},appendsToLoadedData:{get:function e(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:true},timeToLoadedData:{get:function e(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:true},buffered:{get:function e(){return Z(n.tech_.buffered())},enumerable:true},currentTime:{get:function e(){return n.tech_.currentTime()},enumerable:true},currentSource:{get:function e(){return n.tech_.currentSource_},enumerable:true},currentTech:{get:function e(){return n.tech_.name_},enumerable:true},duration:{get:function e(){return n.tech_.duration()},enumerable:true},master:{get:function e(){return n.playlists.master},enumerable:true},playerDimensions:{get:function e(){return n.tech_.currentDimensions()},enumerable:true},seekable:{get:function e(){return Z(n.tech_.seekable())},enumerable:true},timestamp:{get:function e(){return Date.now()},enumerable:true},videoPlaybackQuality:{get:function e(){return n.tech_.getVideoPlaybackQuality()},enumerable:true}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.tech_.on("bandwidthupdate",function(){if(n.options_.useBandwidthFromLocalStorage){Hs({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}});this.masterPlaylistController_.on("selectedinitialmedia",function(){Es(n)});this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=true});this.setupQualityLevels_();if(!this.tech_.el()){return}this.mediaSourceUrl_=window.URL.createObjectURL(this.masterPlaylistController_.mediaSource);this.tech_.src(this.mediaSourceUrl_)};i.createKeySessions_=function e(){var t=this;var i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation");Fs({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:i&&i.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session");t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e);t.player_.error({message:"Failed to initialize media keys for EME",code:3})})};i.handleWaitingForKey_=function e(){this.logger_("waitingforkey fired, attempting to create any new key sessions");this.createKeySessions_()};i.setupEme_=function e(){var t=this;var i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;var n=Vs({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:i&&i.media()});this.player_.tech_.on("keystatuschange",function(e){if(e.status==="output-restricted"){t.masterPlaylistController_.blacklistCurrentPlaylist({playlist:t.masterPlaylistController_.media(),message:"DRM keystatus changed to "+e.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:Infinity})}});this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this);this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_);if(r["default"].browser.IE_VERSION===11||!n){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()};i.setupQualityLevels_=function e(){var t=this;var i=r["default"].players[this.tech_.options_.playerId];if(!i||!i.qualityLevels||this.qualityLevels_){return}this.qualityLevels_=i.qualityLevels();this.masterPlaylistController_.on("selectedinitialmedia",function(){Ms(t.qualityLevels_,t)});this.playlists.on("mediachange",function(){Ns(t.qualityLevels_,t.playlists)})};t.version=function e(){return{"@videojs/http-streaming":js,"mux.js":Ps,"mpd-parser":xs,"m3u8-parser":Ls,"aes-decrypter":Os}};i.version=function e(){return this.constructor.version()};i.canChangeType=function e(){return qa.canChangeType()};i.play=function e(){this.masterPlaylistController_.play()};i.setCurrentTime=function e(t){this.masterPlaylistController_.setCurrentTime(t)};i.duration=function e(){return this.masterPlaylistController_.duration()};i.seekable=function e(){return this.masterPlaylistController_.seekable()};i.dispose=function t(){if(this.playbackWatcher_){this.playbackWatcher_.dispose()}if(this.masterPlaylistController_){this.masterPlaylistController_.dispose()}if(this.qualityLevels_){this.qualityLevels_.dispose()}if(this.player_){delete this.player_.vhs;delete this.player_.dash;delete this.player_.hls}if(this.tech_&&this.tech_.vhs){delete this.tech_.vhs}if(this.tech_){delete this.tech_.hls}if(this.mediaSourceUrl_&&window.URL.revokeObjectURL){window.URL.revokeObjectURL(this.mediaSourceUrl_);this.mediaSourceUrl_=null}if(this.tech_){this.tech_.off("waitingforkey",this.handleWaitingForKey_)}e.prototype.dispose.call(this)};i.convertToProgramTime=function e(t,i){return Lt({playlist:this.masterPlaylistController_.media(),time:t,callback:i})};i.seekToProgramTime=function e(t,i,n,r){if(n===void 0){n=true}if(r===void 0){r=2}return Ot({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})};return t}(zs);var Ys={name:"videojs-http-streaming",VERSION:js,canHandleSource:function e(t,i){if(i===void 0){i={}}var n=r["default"].mergeOptions(r["default"].options,i);return Ys.canPlayType(t.type,n)},handleSource:function e(t,i,n){if(n===void 0){n={}}var a=r["default"].mergeOptions(r["default"].options,n);i.vhs=new Ws(t,i,a);if(!r["default"].hasOwnProperty("hls")){Object.defineProperty(i,"hls",{get:function e(){r["default"].log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead.");return i.vhs},configurable:true})}i.vhs.xhr=Je();i.vhs.src(t.src,t.type);return i.vhs},canPlayType:function e(t,i){if(i===void 0){i={}}var n=r["default"].mergeOptions(r["default"].options,i),a=n.vhs;a=a===void 0?{}:a;var s=a.overrideNative,o=s===void 0?!r["default"].browser.IS_ANY_SAFARI:s,l=n.hls;l=l===void 0?{}:l;var u=l.overrideNative,d=u===void 0?false:u;var c=it(t);var f=c&&(!Ds.supportsTypeNatively(c)||d||o);return f?"maybe":""}};var Ks=function e(){return B("avc1.4d400d,mp4a.40.2")};if(Ks()){r["default"].getTech("Html5").registerSourceHandler(Ys,0)}r["default"].VhsHandler=Ws;Object.defineProperty(r["default"],"HlsHandler",{get:function e(){r["default"].log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead.");return Ws},configurable:true});r["default"].VhsSourceHandler=Ys;Object.defineProperty(r["default"],"HlsSourceHandler",{get:function e(){r["default"].log.warn("videojs.HlsSourceHandler is deprecated. "+"Use videojs.VhsSourceHandler instead.");return Ys},configurable:true});r["default"].Vhs=Ds;Object.defineProperty(r["default"],"Hls",{get:function e(){r["default"].log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead.");return Ds},configurable:true});if(!r["default"].use){r["default"].registerComponent("Hls",Ds);r["default"].registerComponent("Vhs",Ds)}r["default"].options.vhs=r["default"].options.vhs||{};r["default"].options.hls=r["default"].options.hls||{};if(!r["default"].getPlugin||!r["default"].getPlugin("reloadSourceOnError")){var Xs=r["default"].registerPlugin||r["default"].plugin;Xs("reloadSourceOnError",Cs)}e.LOCAL_STORAGE_KEY=Rs;e.Vhs=Ds;e.VhsHandler=Ws;e.VhsSourceHandler=Ys;e.emeKeySystems=Us;e.expandDataUri=Gs;e.getAllPsshKeySystemsOptions=Bs;e.setupEmeOptions=Vs;e.simpleTypeFromSourceType=it;e.waitForKeySessionCreation=Fs;Object.defineProperty(e,"__esModule",{value:true})});(function(){if(videojs.getPlugin("perSourceBehaviors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof define==="function"&&define.amd?define(["video.js"],t):e.videojsPerSourceBehaviors=t(e.videojs)})(typeof self!=="undefined"?self:this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.1.0";var i=e.getTech("Html5");var n=e.registerPlugin||e.plugin;var r=["abort","emptied","loadstart","play"];var a=["abort","emptied"];var s=["ad-playback","ads-ready?","postroll?","preroll?"];var o=function e(t){return s.indexOf(t)>-1};var l=function e(t){return t.usingPlugin("ads")&&typeof t.ads.inAdBreak==="function"};var u=function e(t,i){if(!t.usingPlugin("ads")){return false}if(l(t)){return t.ads.isInAdMode()&&i.type!=="loadstart"}return o(t.ads.state)};var d=function n(){var s=this;var o=[];var l;var d=false;var c;var f=true;var p=function t(i){return function(t,n){var r=this;if(this.perSourceBehaviors.disabled()){return}var a=arguments.length===2;var s=this.currentSrc();var l=[t];var u=e.bind(a?this:t,arguments[arguments.length-1]);var d=function e(){var t=r.currentSrc()!==s;if(r.perSourceBehaviors.disabled()){return}if(t||i){r.off.apply(r,l)}if(!t){u.apply(void 0,arguments)}};d.guid=u.guid;if(!a){l.push(n)}l.push(d);o.push(l);return this.on.apply(this,l)}};this.perSourceBehaviors={disable:e.bind(this,function e(){this.clearTimeout(c);c=null;d=true;return d}),disabled:function e(){return d},enable:function e(){d=false;return d},enabled:function e(){return!d},isSrcStable:function e(){return f},VERSION:t};this.onPerSrc=p();this.onePerSrc=p(true);this.on("dispose",function(){o.length=0});this.on(r,function(e){if(s.perSourceBehaviors.disabled()||c||u(s,e)){return}if(f&&a.indexOf(e.type)>-1){f=false;s.trigger("sourceunstable")}var t=[];var n=function e(i){return t.push({time:Date.now(),event:i})};n(e);s.on(i.Events,n);c=s.setTimeout(function(){var e=s.currentSrc();f=true;c=null;s.off(i.Events,n);if(e&&e!==l){o.forEach(function(e){return s.off.apply(s,e)});o.length=0;s.trigger("sourcechanged",{interimEvents:t,from:l,to:e});l=e}},1)})};d.VERSION=t;n("perSourceBehaviors",d);return d})})();(function(){if(videojs.getPlugin("contextmenu")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof define==="function"&&define.amd?define(["video.js"],t):e.videojsContextmenu=t(e.videojs)})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.0.2";var i=e.registerPlugin||e.plugin;var n={cancel:true,sensitivity:10,wait:500,disabled:false};var r="vjs-contextmenu";function a(e,t){if(e.contextmenu.options.disabled){return e}var i={target:e,type:r};["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(e){i[e]=t[e]});return e.trigger(i)}function s(e){var t=this.contextmenu.current;if(!t){return}var i=this.contextmenu.options.wait;if(e.type==="touchend"&&Number(new Date)-t.time>=i){a(this,e)}this.contextmenu.current=null}function o(e){var t=this.contextmenu.current;if(!t){return}var i=e.touches[0];var n=this.contextmenu.options.sensitivity;if(i.screenX-t.screenX>n||i.screenY-t.screenY>n){this.contextmenu.current=null}}function l(e){if(this.contextmenu.current){return}var t=e.touches[0];this.contextmenu.current={screenX:t.screenX,screenY:t.screenY,time:Number(new Date)}}function u(e){if(this.contextmenu.options.cancel&&!this.contextmenu.options.disabled){e.preventDefault()}a(this,e);this.off(["touchcancel","touchend"],s);this.off("touchmove",o);this.off("touchstart",l)}function d(t){var i=this;this.contextmenu.options=e.mergeOptions(n,t);this.contextmenu.VERSION="__VERSION__";this.on("contextmenu",u);this.on(["touchcancel","touchend"],s);this.on("touchmove",o);this.on("touchstart",l);this.ready(function(){return i.addClass(r)})}i("contextmenu",d);d.VERSION=t;return d})})();(function(){if(videojs.getPlugin("contextmenuUI")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document"),require("global/window")):typeof define==="function"&&define.amd?define(["video.js","global/document","global/window"],t):e.videojsContextmenuUi=t(e.videojs,e.document,e.window)})(this,function(e,t,i){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function r(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var a=e.getComponent("MenuItem");var s=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.handleClick=function t(n){var r=this;e.prototype.handleClick.call(this);this.options_.listener();i.setTimeout(function(){r.player().contextmenuUI.menu.dispose()},1)};return t}(a);var o=e.getComponent("Menu");var l=e.dom||e;var u=function(t){n(a,t);function a(n,a){var o;o=t.call(this,n,a)||this;o.dispose=e.bind(r(o),o.dispose);a.content.forEach(function(t){var r=function e(){};if(typeof t.listener==="function"){r=t.listener}else if(typeof t.href==="string"){r=function e(){return i.open(t.href)}}o.addItem(new s(n,{label:t.label,listener:e.bind(n,r)}))});return o}var o=a.prototype;o.createEl=function e(){var i=t.prototype.createEl.call(this);l.addClass(i,"vjs-contextmenu-ui-menu");i.style.left=this.options_.position.left+"px";i.style.top=this.options_.position.top+"px";return i};return a}(o);function d(e){var n;if(e.getBoundingClientRect&&e.parentNode){n=e.getBoundingClientRect()}if(!n){return{left:0,top:0}}var r=t.documentElement;var a=t.body;var s=r.clientLeft||a.clientLeft||0;var o=i.pageXOffset||a.scrollLeft;var l=n.left+o-s;var u=r.clientTop||a.clientTop||0;var d=i.pageYOffset||a.scrollTop;var c=n.top+d-u;return{left:Math.round(l),top:Math.round(c)}}function c(e,t){var i={};var n=d(e);var r=e.offsetWidth;var a=e.offsetHeight;var s=n.top;var o=n.left;var l=t.pageY;var u=t.pageX;if(t.changedTouches){u=t.changedTouches[0].pageX;l=t.changedTouches[0].pageY}i.y=Math.max(0,Math.min(1,(s-l+a)/a));i.x=Math.max(0,Math.min(1,(u-o)/r));return i}var f="5.2.0";function p(e){return e.hasOwnProperty("contextmenuUI")&&e.contextmenuUI.hasOwnProperty("menu")&&e.contextmenuUI.menu.el()}function h(e){var t=e.tagName.toLowerCase();return t==="input"||t==="textarea"}function v(e,t){return{left:Math.round(t.width*e.x),top:Math.round(t.height-t.height*e.y)}}function g(i){var n=this;if(p(this)){this.contextmenuUI.menu.dispose();return}if(this.contextmenuUI.options_.excludeElements(i.target)){return}var r=c(this.el(),i);var a=this.el().getBoundingClientRect();var s=v(r,a);var o=e.browser.IS_FIREFOX?t.documentElement:t;i.preventDefault();var l=this.contextmenuUI.menu=new u(this,{content:this.contextmenuUI.content,position:s});this.contextmenuUI.closeMenu=function(){e.log.warn("player.contextmenuUI.closeMenu() is deprecated, please use player.contextmenuUI.menu.dispose() instead!");l.dispose()};l.on("dispose",function(){e.off(o,["click","tap"],l.dispose);n.removeChild(l);delete n.contextmenuUI.menu});this.addChild(l);var d=l.el_.getBoundingClientRect();var f=t.body.getBoundingClientRect();if(this.contextmenuUI.keepInside||d.right>f.width||d.bottom>f.height){l.el_.style.left=Math.floor(Math.min(s.left,this.player_.currentWidth()-l.currentWidth()))+"px";l.el_.style.top=Math.floor(Math.min(s.top,this.player_.currentHeight()-l.currentHeight()))+"px"}e.on(o,["click","tap"],l.dispose)}function m(t){var i=this;var n={keepInside:true,excludeElements:h};t=e.mergeOptions(n,t);if(!Array.isArray(t.content)){throw new Error('"content" required')}if(p(this)){this.contextmenuUI.menu.dispose();this.off("contextmenu",this.contextmenuUI.onContextMenu);delete this.contextmenuUI}var r=this.contextmenuUI=function(){m.apply(this,arguments)};r.onContextMenu=e.bind(this,g);r.content=t.content;r.keepInside=t.keepInside;r.options_=t;r.VERSION=f;this.on("contextmenu",r.onContextMenu);this.ready(function(){return i.addClass("vjs-contextmenu-ui")})}e.registerPlugin("contextmenuUI",m);m.VERSION=f;return m})})();(function(){if(videojs.getPlugin("bcAnalytics")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("@brightcove/loscore")):typeof define==="function"&&define.amd?define(["video.js","@brightcove/loscore"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.videojsBcAnalytics=t(e.videojs,e.videojs.bc_))})(this,function(e,t){"use strict";function i(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var n=i(e);var r=i(t);var a=function(e,t,i){if(i===void 0){i={}}t.forEach(function(t){if(e[t]!==undefined){i[t]=e[t]}});return i};var s=function e(t,i){if(i===void 0){i=[]}var a={};Object.keys(t).forEach(function(s){var o=t[s];i.push(s);if(r["default"].isObj(o)){a=n["default"].mergeOptions(a,e(o,i))}else{a[i.join(".")]=o}i.pop()});return a};var o=function e(t){return t.charAt(0).toUpperCase()+t.slice(1)};var l=function e(t,i){return t+"x"+i};var u={memory:["jsHeapSizeLimit","usedJSHeapSize","totalJSHeapSize"],navigation:["redirectCount","type","directedMigration"],timing:["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]};var d={bitrate:"bitrates",event:"events"};var c=function(){function e(){this.data_={bitrates:{bitrates:[],playlists:[],rendered:[],throughput:[]},events:[],mr:0,performance:{},content:{},player:{dimensions:[],pixelratio:[],screendimensions:[]},frames:{}}}var t=e.prototype;t.keys=function e(){return Object.keys(this.data_)};t.append=function e(t){t=d.hasOwnProperty(t)?d[t]:t;if(!this.data_.hasOwnProperty(t)){throw new Error('"'+t+'" is not a known QosBuffer key')}for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}this["append"+o(t)+"_"].apply(this,n)};t.flush=function e(){var t=this;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++){a[s]=arguments[s]}if(!a.length){a=this.keys()}for(var l=0;l<a.length;l++){if(!this.data_.hasOwnProperty(a[l])){throw new Error('"'+a[l]+'" is not a known QosBuffer key')}}var u=a.map(function(e){return t["flush"+o(e)+"_"]()});var d=n["default"].mergeOptions.apply(n["default"],u);var c=r["default"].qs().stringify(d).length;if(c>3e3&&d["qos.bitrates"]){d["qos.bitrates"]=JSON.stringify({bitrates:[],playlists:[],rendered:[],throughput:[]})}return d};t.appendBitrates_=function e(t){var i=this;if(typeof t.playlists!=="undefined"){this.data_.bitrates.playlists.push([Date.now(),t.bitrates,t.playlists]);delete t.bitrates;delete t.playlists}Object.keys(t).forEach(function(e){i.data_.bitrates[e].push([Date.now(),t[e]])})};t.appendMr_=function e(t){this.data_.mr=t?1:null};t.appendPerformance_=function e(t){var i=this;var n=window.performance;if(r["default"].isNil(n)){return}Object.keys(u).forEach(function(e){if(!r["default"].isNil(n[e])){i.data_.performance[e]=a(n[e],u[e])}});if(r["default"].isFn(n.measure)){["bcParse","bcInit"].forEach(function(e){n.getEntriesByName(e,"measure").forEach(function(t){i.data_.performance[e]=t.duration})})}if(this.data_.performance.navigation){this.data_.performance.navigation.directedMigration=t?r["default"].qs().parse(t).directedMigration==="true":false}};t.appendFrames_=function e(t){this.data_.frames={dropped:t.droppedVideoFrames,corrupted:t.corruptedVideoFrames,total:t.totalVideoFrames}};t.appendPlayer_=function e(t,i){if(i===void 0){i=Date.now()}this.data_.player.dimensions.push([i,l(t.width,t.height),l(t.computedWidth,t.computedHeight)]);this.data_.player.pixelratio.push([i,window.devicePixelRatio]);this.data_.player.screendimensions.push([i,l(window.screen.width,window.screen.height)])};t.appendEvents_=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}this.data_.events.push({type:i.join("."),time:Date.now()})};t.appendContent_=function e(t){this.data_.content={sourceMimeType:t.sourceMimeType}};t.flushBitrates_=function e(){var t=this.data_.bitrates;var i={};if(t.bitrates.length||t.playlists.length||t.rendered.length||t.throughput.length){i["qos.bitrates"]=JSON.stringify(t)}t.bitrates.length=0;t.playlists.length=0;t.rendered.length=0;t.throughput.length=0;return i};t.flushEvents_=function e(){var t=this.data_.events;var i={};t.forEach(function(e){var t=e.time,n=e.type;var r="qos.events."+n;if(Array.isArray(i[r])){i[r].push(t)}else if(i.hasOwnProperty(r)){i[r]=[i[r],t]}else{i[r]=t}});Object.keys(i).forEach(function(e){if(Array.isArray(i[e])){i[e]=JSON.stringify(i[e])}});t.length=0;return i};t.flushMr_=function e(){return{"qos.mr":this.data_.mr}};t.flushFrames_=function e(){var t=s(this.data_.frames,["qos","frames"]);this.data_.frames={};return t};t.flushPerformance_=function e(){return s(this.data_.performance,["qos","performance"])};t.flushPlayer_=function e(){var t=this.data_.player;var i={};Object.keys(t).forEach(function(e){var n=t[e];if(n.length){i["qos.player."+e]=JSON.stringify(n);n.length=0}});return i};t.flushContent_=function e(){return s(this.data_.content,["qos","content"])};return e}();var f=["ad-playback","ads-ready?","postroll?","preroll?"];var p=function e(t){return t.usingPlugin("ads")?t.ads.state:undefined};var h=function e(t){return t.usingPlugin("ads")&&!!t.adonly};var v=function e(t){return f.indexOf(t)>-1};var g=function e(t){return t.usingPlugin("ads")&&r["default"].isFn(t.ads.inAdBreak)};var m=function e(t){if(!t.usingPlugin("ads")){return false}if(h(t)){return true}if(g(t)){return t.ads.isInAdMode()}return v(t.ads.state)};var y=function e(t){if(!t.usingPlugin("ads")){return false}return t.ads.isContentResuming()};var _=function e(t,i){if(g(i)&&t&&t.type==="loadstart"){return true}return!m(i)};var b=function e(t){var i={};if(t.ima3){var n=t.ima3.currentAdEventInfo;i.plugin="ima3";if(r["default"].isFn(t.ima3)){return i}i.pluginVersion=t.ima3.VERSION||t.ima3.version;i.adTech=t.ima3.adTech;i.requestMode=t.ima3.settings.requestMode;i.timeout=t.ima3.settings.timeout;if(n){a(n,["adType","adPodLength","adPodId","creativeFormat","creativeLength","creativeId","creativeIndex","advertiserName","wrapperCreativeIds","dealId","adId","adTitle","adSystem","creativeAdId"],i);var s=n.creativeIndex;if(s&&s.length){i.firstPlayedAdIndex=s[0]}i.startedInAdPod=n.started;i.completedInAdPod=n.completed}}else if(t.FreeWheelPlugin){i.plugin="freewheel";if(r["default"].isFn(t.FreeWheelPlugin)){return i}i.pluginVersion=t.FreeWheelPlugin.VERSION||t.FreeWheelPlugin.getVersion()}return i};var S=function e(t){t.adBreakIndex=null;t.hasAdBreakStarted=false;t["ads-request"]=null;t["ads-response-received"]=null;t["ads-loading"]=[];t["ads-ad-started"]=[];t["ads-ad-ended"]=[]};var T=function e(){var t={};S(t);return t};var E=function e(t,i,n){var r=t.currentAdSequence_;var a=["ads-loading","ads-ad-started","ads-ad-ended"];if(i==="ads-request"){S(r)}else if(i==="adstart"||i==="ads-loading"){if(!r.hasAdBreakStarted){if(r.adBreakIndex===null){r.adBreakIndex=0}else{r.adBreakIndex++}r.hasAdBreakStarted=true;a.forEach(function(e){r[e].push([])})}}else if(i==="adend"){r.hasAdBreakStarted=false}if(a.indexOf(i)>-1){r[i][r.adBreakIndex].push(n)}else if(i==="ads-request"||i==="ads-response-received"){r[i]=n}};var w=["progress","seeking","suspend","timeupdate"];var k=["seek","stable","unstable"];var I=["adend","adscanceled","adserror","adskip","adsready","adstart","adtimeout","contentplayback","contentupdate","nopostroll","nopreroll","readyforpreroll"];var A=[].concat(n["default"].getTech("Html5").Events);var C=A.filter(function(e){return w.indexOf(e)===-1});var j=["ads-request","ads-response-received","adstart","ads-loading","ads-ad-started","ads-ad-ended","adend"];var P=["ad_hard_timeout","ad_mode_begin","ad_mode_complete","ad_timeout","catalog_request","catalog_request_error","catalog_response","error","play_request","player_init","player_load","video_complete","video_engagement","video_impression","video_view"];var x="sendBeacon"in window.navigator;var L=window,O=L.Set;var D="lbu";var R=4e3;var N=new O;["account","domain","event","player"].forEach(function(e){return N.add(e)});var M=new O;["account","destination","domain","dropped_frames","error_code","event","feature","file_size_bytes","forward_buffer_seconds","load_time_ms","measured_bps","platform","platform_version","player","player_height","player_name","player_width","range","rebuffering_count","rebuffering_seconds","rendition_height","rendition_indicated_bps","rendition_mime_type","rendition_width","response_time_ms","session","start_time_ms","source","time","video","video_duration","video_name","video_seconds_viewed"].forEach(function(e){return M.add(e)});var U=function e(t,i){return Math.floor(t)+".."+(Math.floor(i)-1)};var B=function e(t){var i=2166136261;var n=i;for(var r=0;r<t.length;++r){n^=t.charCodeAt(r);n*=16777619}return n>>>0};var F=function e(t,i,n,r){var a="players.brightcove.com/"+t+"/"+i+"_"+n;if(r){a+="/"+r}return a};var V=function e(t,i){var n=r["default"].qs();Object.keys(i).forEach(function(e){if(r["default"].isNil(i[e])){delete i[e]}});var a=t+"?"+n.stringify(i);if(a.length<=R){return a}Object.keys(i).forEach(function(e){if(!M.has(e)){delete i[e]}});i.usage=D;a=t+"?"+n.stringify(i);return a};var q=function e(t,i,n,r,a){var s=i-t;if(a!==undefined&&a<i){s-=a-t}else if(n!==undefined&&r!==undefined){if(n<t){n=t}if(r>i){r=i}s-=r-n}return s};var H=function e(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++){r[a-1]=arguments[a]}var s=n["default"].mergeOptions.apply(n["default"],[t.params||{}].concat(r));delete t.params;return s};var G=function e(t,i){var n=t.mediainfo;var a=n&&n.duration||t.duration();if(n){if(i.video===undefined){i.video=n.id}if(i.video_name===undefined){i.video_name=n.name}if(i.reference_id===undefined){i.reference_id=n.referenceId}if(i.custom_fields===undefined){i.custom_fields=n.customFields}if(i.video_data===undefined){i.video_data=n}if(i.video_ads_supported===undefined){i.video_ads_supported=n.economics==="AD_SUPPORTED"}if(i.tags===undefined){i.tags=n.tags}}if(r["default"].isNum(a)&&i.video_duration===undefined){i.video_duration=Math.floor(a);if(i.video_duration<1||i.video_duration===Infinity){i.video_duration=null}}i.media_url=t.currentSrc();return i};var z=function e(t,i){var n=t.preload();if(typeof n!=="string"){n=t.el().getAttribute("preload")}if(typeof n==="string"&&n.length===0){n="auto"}if(n){i.preload=n}};var W=function(){function e(e,t,i,r){if(r===void 0){r={}}this.baseUrl_=i;this.logger_=r.logger;this.history_=t;this.currentAdSequence_=T();this.player_=e;this.metrics_=[];this.metricsUnsent_=[];this.playerId=r.playerId;this.embedId=r.embedId;this.applicationId=r.applicationId;this.eventCount_=0;this.streamCount_=-1;this.hashUser_=true;this.playerUrl_=null;this.user(r.user||null);this.device(r.device||null);var a=e.options_&&e.options_.runtime_||{};var s=a.environment&&a.environment.queryString||{};if(r.requiresConsent){if(typeof window.BC_ANALYTICS_CONSENT==="boolean"){this.setConsent(window.BC_ANALYTICS_CONSENT,{silent:true});this.disableSetConsent()}else if(s.hasOwnProperty("analyticsConsent")||e.el().hasAttribute("data-analytics-consent")){this.setConsent(true,{silent:true});this.disableSetConsent()}else{this.setConsent(false,{silent:true})}}else{this.setConsent(true,{silent:true});this.disableSetConsent()}if(r.corpCommsApp){n["default"].log.warn("The `corpCommsApp` option is deprecated. Please use `application` instead.")}this.application(r.application||r.corpCommsApp||null);this.defaultParams_={domain:"videocloud",platform:"video-js",session:""};for(var o=0;o<3;o++){this.defaultParams_.session+=(Math.random()*4294967295>>>0).toString(16)}this.qos=new c(this);this.resetTimesOf()}var t=e.prototype;t.logger=function e(){if(this.logger_);};t.metrics=function e(){return this.metrics_.map(n["default"].mergeOptions)};t.resetTimesOf=function e(){this.timeOfImpression=null;this.timeOfView=null};t.defaultParams=function e(t){if(t){if(t.player){this.playerUrl_=t.player}t=r["default"].isFn(t)?t():t;this.defaultParams_=n["default"].mergeOptions(this.defaultParams_,t)}return this.defaultParams_};t.getSession=function e(){return this.defaultParams_.session};t.user=function e(t){if(t===null||r["default"].isNonEmptyStr(t)||r["default"].isNum(t)){this.user_=t;this.hashUser_=true}return this.user_};t.setUser=function e(t){if(this.player_.usingPlugin("chinaMetrics")){return n["default"].log.warn("setUser is disabled when using China Delivery")}if(t===null||r["default"].isNonEmptyStr(t)||r["default"].isNum(t)){this.user_=t;this.hashUser_=false}else{n["default"].log.warn("No user id set. User id must be a non-empty string or a number.")}};t.getUser=function e(){return this.user_};t.setConsent=function e(t,i){if(i===void 0){i={}}if(typeof t==="boolean"&&this.consent_!==t){this.consent_=t;if(!i.silent){this.player_.trigger({consent:t,type:"analytics_consent_changed"})}}};t.disableSetConsent=function e(){Object.defineProperty(this,"setConsent",{value:function e(){},configurable:false,enumerable:true,writable:false})};t.getConsent=function e(){return this.consent_};t.application=function e(t){if(t===null||r["default"].isNonEmptyStr(t)||r["default"].isNum(t)){this.application_=t}return this.application_};t.corpCommsApp=function e(t){if(t===null||r["default"].isNonEmptyStr(t)||r["default"].isNum(t)){this.application_=t;n["default"].log.warn("The corpCommsApp() method is deprecated. Please use application() instead.")}return this.application_};t.device=function e(t){if(t===null||r["default"].isNonEmptyStr(t)||r["default"].isNum(t)){this.device_=t}return this.device_};t.player=function e(t){if(t===null||r["default"].isNonEmptyStr(t)){this.defaultParams_.player=t;this.playerUrl_=t}return this.playerUrl_||this.defaultParams_.player};t.send=function e(t,i){var a;if(t===void 0){t={}}if(i===void 0){i={}}var s=null;if(this.user()){if(this.hashUser_){t.user=B(this.user())}else{t.user=this.user()}}if(this.application()){t.application=this.application();t.user=this.user()||this.device()}if(r["default"].isNil(t.time)){t.time=Date.now()}t.autoplay=this.player_.autoplay();i.qos=Array.isArray(i.qos)?i.qos:[];i.qos.push("mr");t=n["default"].mergeOptions(this.defaultParams_,t,(a=this.qos).flush.apply(a,i.qos));t.seq=""+this.eventCount_;if(P.indexOf(t.event)>-1){this.eventCount_++}if("streamCount"in i){t.seq+="_"+i.streamCount}if(typeof this.player_.getAccountId==="function"){var o=this.player_.getAccountId();t.account=o;t.player=this.playerUrl_||F(o,this.playerId,this.embedId,this.applicationId)}N.forEach(function(e){if(r["default"].isNil(t[e])){throw new Error('the "'+e+'" param is required')}});s=this.sendRequest_(t,i);this.metrics_.push(t);this.player_.trigger({params:t,type:"analytics_request"});this.player_.trigger({params:t,type:"analytics_request_"+t.event});return s};t.sendRequest_=function e(t,i){if(this.getConsent()){var n=V(this.baseUrl_,t);if(P.indexOf(t.event)>-1){if(i.useSendBeaconOnly){if(x){window.navigator.sendBeacon(n)}else{return null}}else{var r=document.createElement("img");r.src=n}}return{params:t,url:n}}this.metricsUnsent_.push({params:t,options:i});return null};t.sendAllUnsent=function e(){var t=this;var i=this.metricsUnsent_.slice();this.metricsUnsent_=[];return i.map(function(e){var i=e.params,n=e.options;return t.sendRequest_(i,n)})};t.sendCatalog_=function e(t,i){if(i===void 0){i={}}var n=i,r=n.error,a=n.xhr;if(r&&a){r.status=a.status}if(r){t.error=JSON.stringify(r)}return this.send(t,i)};t.sendVideoImpression=function e(t){if(t===void 0){t={}}var i=H(t,{event:"video_impression"});var a=b(this.player_);if(Object.keys(a).length>0){i.web_ad_info=JSON.stringify(a)}var s=r["default"].isNonEmptyStr(this.player_.currentSrc());if(!s||this.timeOfImpression){return null}if(n["default"].bc_.isNonEmptyStr(this.player_.currentType())){this.qos.append("content",{sourceMimeType:this.player_.currentType()});t.qos=t.qos||["content"]}this.streamCount_++;t.streamCount=this.streamCount_;G(this.player_,i);z(this.player_,i);var o=this.send(i,t);if(o){this.timeOfImpression=Number(o.params.time)}return o};t.sendVideoView=function e(t){if(t===void 0){t={}}var i=H(t,{event:"video_view"});var n=r["default"].isNonEmptyStr(this.player_.currentSrc());if(!n||this.timeOfView||!this.timeOfImpression){return null}var a=this.history_;var s=a.first("canplay");var o=a.first("loadstart");var l=a.first("play");if(s){i.load_time_ms=s-this.timeOfImpression}i.start_time_ms=q(l||o,i.time,a.first("adstart",true),a.first("adend",true),a.first("adtimeout",true));G(this.player_,i);if(this.player_.usingPlugin("pluginDev")){i.feature="iris"}t.streamCount=this.streamCount_;var u=this.send(i,t);if(u){this.timeOfView=Number(u.params.time)}return u};t.sendVideoEngagement=function e(t,i,n){if(n===void 0){n={}}var a=H(n,{event:"video_engagement"});var s=i.buffered,o=i.duration,l=i.playbackEndTime,u=i.height,d=i.mediainfo,c=i.playbackRate,f=i.rebufferingCount,p=i.rendition,h=i.playbackStartTime,v=i.rangeStart,g=i.rangeEnd,m=i.stats,y=i.width;var _=l-h;n.qos=n.qos||["bitrates","events","player","frames"];t.length=t.end-t.start;a.player_height=u;a.player_width=y;a.video_duration=o;if(d){a.video=d.id;a.video_name=d.name}if(p){a.rendition_url=p.url;a.rendition_indicated_bps=p.indicatedBPS;a.rendition_mime_type=p.mimeType;a.rendition_height=p.height;a.rendition_width=p.width}if(m){if(!r["default"].isNil(m.mediaRequests)){a.media_requests=m.mediaRequests}if(!r["default"].isNil(m.mediaTransferDuration)){a.media_transfer_duration=m.mediaTransferDuration}if(!r["default"].isNil(m.mediaBytesTransferred)){a.media_bytes_transferred=m.mediaBytesTransferred}if(!r["default"].isNil(m.bandwidth)){a.measured_bps=m.bandwidth}if(!r["default"].isNil(m.mediaSecondsLoaded)){a.media_seconds_loaded=m.mediaSecondsLoaded}}var b=_/c*1e3;var S=t.end-t.start;var T=100;var E=Math.floor((S-b)/T)*T/1e3;if(f>0){a.rebuffering_count=f}if(E>0){a.rebuffering_seconds=E}if(s){var w=0;for(var k=0;k<s.length;k++){var I=s.start(k);var A=s.end(k);if(l>=I&&l<=A){w=A-l;break}}a.forward_buffer_seconds=w}if(_<1&&!a.rebuffering_seconds){return null}var C=this.history_.filter(function(e){return e.name==="licenserequestattempted"&&e.time>=t.start&&e.time<t.end});if(C.length){a.license_request_attempts=C.length}G(this.player_,a);n.streamCount=this.streamCount_;if(a.video_duration===Infinity){a.video_seconds_viewed=Math.round(_);delete a.video_duration}else if(_>=1){a["qos.derived_range"]=U(h,l);a.range=v+".."+g}return this.send(a,n)};t.sendVideoComplete=function e(t){if(t===void 0){t={}}var i=H(t,{event:"video_complete"});G(this.player_,i);t.streamCount=this.streamCount_;return this.send(i,t)};t.sendError=function e(t){if(t===void 0){t={}}var i=this.player_.error();if(!i){return null}var n=H(t,{event:"error"});var a=r["default"].isFn(this.player_.errors)&&r["default"].isFn(this.player_.errors.getAll)&&this.player_.errors.getAll()||{unknown:{type:"MEDIA_ERR_UNKNOWN"}};if(i&&a.hasOwnProperty(String(i.code))){n.error_code=a[String(i.code)].type}else if(i.type!==undefined){n.error_code=i.type}else{n.error_code=a.unknown.type}G(this.player_,n);t.streamCount=this.streamCount_;return this.send(n,t)};t.sendCatalogRequest=function e(t,i){if(i===void 0){i={}}var n=H(i,{event:"catalog_request",url:t});return this.sendCatalog_(n,i)};t.sendCatalogRequestError=function e(t,i){if(i===void 0){i={}}var n=H(i,{event:"catalog_request_error",url:t});if(i.error){i.error=a(i.error,["code","message","type"])}return this.sendCatalog_(n,i)};t.sendCatalogResponse=function e(t,i){if(i===void 0){i={}}var n=H(i,{event:"catalog_response",url:t});n.time=Date.now();n.response_time_ms=n.time-this.history_.last("catalog_request");return this.sendCatalog_(n,i)};t.triggerAdError=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"ad_error"})),t)};t.triggerAdEnd=function e(t){if(t===void 0){t={}}var i=b(this.player_);var n=this.currentAdSequence_["ads-ad-started"];var r=this.currentAdSequence_.adBreakIndex;if(i.plugin!==undefined){if(i.adType==="preroll"&&n.length>0&&n[0].length>0){var a=this.history_.first("play",true);i.prerollDelay=n[0][0]-a;i.firstPlayInSession=a}i.adsRequest=this.currentAdSequence_["ads-request"];i.adsResponseReceived=this.currentAdSequence_["ads-response-received"];i.adsLoading=this.currentAdSequence_["ads-loading"][r];i.adsAdStarted=this.currentAdSequence_["ads-ad-started"][r];i.adsAdEnded=this.currentAdSequence_["ads-ad-ended"][r]}else{i.plugin="unknown"}var s={event:"ad_end",web_ad_info:JSON.stringify(i)};t.streamCount=this.streamCount_;return this.send(G(this.player_,H(t,s)),t)};t.sendAdEnd=function e(t){if(t===void 0){t={}}return this.triggerAdEnd(t)};t.sendAdHardTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(G(this.player_,H(t,{event:"ad_hard_timeout"})),t)};t.sendAdModeBegin=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"ad_mode_begin"})),t)};t.sendAdModeComplete=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"ad_mode_complete"})),t)};t.triggerAdStart=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(G(this.player_,H(t,{event:"ad_start"})),t)};t.sendAdStart=function e(t){if(t===void 0){t={}}return this.triggerAdStart(t)};t.sendAdTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(G(this.player_,H(t,{event:"ad_timeout"})),t)};t.triggerFullscreenEnabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"fullscreen_enabled"})),t)};t.triggerFullscreenDisabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"fullscreen_disabled"})),t)};t.triggerShareOverlay=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"share_overlay"})),t)};t.triggerShareSocialClicked=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"share_social_clicked"})),t)};t.triggerShareLinkCopied=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"share_link_copied"})),t)};t.triggerShareEmbedCopied=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"share_embed_copied"})),t)};t.triggerEnterPIP=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"pip_enabled"})),t)};t.triggerLeavePIP=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"pip_disabled"})),t)};t.triggerMuteEnabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"mute_enabled"})),t)};t.triggerMuteDisabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"mute_disabled"})),t)};t.triggerVolumeChange=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"volume_change"})),t)};t.triggerVideoPause=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"video_pause"})),t)};t.triggerVideoResume=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"video_resume"})),t)};t.triggerTextTrackEnabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"text_track_enabled"})),t)};t.triggerTextTrackDisabled=function e(t){if(t===void 0){t={}}return this.send(G(this.player_,H(t,{event:"text_track_disabled"})),t)};t.sendPlayRequest=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(G(this.player_,H(t,{event:"play_request"})),t)};t.sendPlayerInit=function e(t){if(t===void 0){t={}}return this.send(H(t,{event:"player_init"}),t)};t.sendPlayerLoad=function e(t){if(t===void 0){t={}}return this.send(H(t,{event:"player_load"}),t)};return e}();var Y=function(e){var t=e.bcAnalyticsLogger&&e.bcAnalyticsLogger();var i=function e(){return t&&t.add.apply(t,arguments)};return i};function K(e,t,i){return i={path:t,exports:{},require:function(e,t){return X(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function X(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Q=K(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};e.exports["default"]=e.exports,e.exports.__esModule=true;return t(i,n)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var J=K(function(e){function t(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;Q(e,t)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var Z=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var $=function e(t){return t.map(function(e){return Math.floor(e)}).reduce(function(e,t){var i=e[e.length-1];if(t!==i){e.push(t)}return e},[])};var ee=function e(t){return t.reduce(function(e,t){var i=e[e.length-1];if(i){if(i.end+1===t){i.end=t}else{e.push({start:t,end:t})}}else{e.push({start:t,end:t})}return e},[])};var te=function e(t){return t.map(function(e){var t=e.start,i=e.end;var n=i-t;if(n>0){return{start:t,end:i-1,remainder:i}}return{start:t,end:i,remainder:i}})};var ie=function e(t){var i=[];var n=t.shift()||{},r=n.start,a=n.end,s=n.remainder;while(Z(r)&&Z(a)&&Z(s)&&r===a&&r===s){var o=t.shift()||{};r=o.start;a=o.end;s=o.remainder}if(t.length===0){i.push(s)}for(var l=0;l<t.length;l++){var u=t[l],d=u.start,c=u.end,f=u.remainder;for(var p=d;p<=(f||c);p++){i.push(p)}}return{start:r,end:a,remainders:i,ranges:t.length}};var ne=function e(t){return ie(te(ee($(t))))};var re=1;function ae(){return re++}var se=[];var oe=function e(t,i,n,r,a){if(a===void 0){a=true}var s=[].concat(n).sort();if(i!=="removeEventListener"){t.off(s,r)}else{s.forEach(function(e){t.removeEventListener(e,r)})}if(!a){return}var o=se.length;var l=function e(){var i=se[o];if(i.context===t&&(i.fn.guid===r.guid||i.fn===r)&&s.every(function(e,t){return i.events[t]})){se.splice(o,1);return"break"}};while(o--){var u=l();if(u==="break")break}};var le=function e(){var t=se.length;while(t--){var i=se.shift(),n=i.context,r=i.mode,a=i.events,s=i.fn;var o="off";if(r==="addEventListener"){o="removeEventListener"}oe(n,o,a,s,false)}};var ue=function e(t,i,n,r){var a=[].concat(n).sort();var s={events:a,fn:r,mode:i,context:t};if(i==="one"||i==="onePerSrc"){s.fn=function(){var e="off";if(s.mode==="addEventListener"){e="removeEventListener"}oe(s.context,e,s.events,s.fn);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}return r.apply(this,i)};if(!r.guid){r.guid=ae()}s.fn.guid=r.guid}se.push(s);if(i==="addEventListener"){s.events.forEach(function(e){s.context.addEventListener(e,s.fn)})}else{s.context[s.mode](s.events,s.fn)}};var de=function e(){var t=se.slice(0);le();t.forEach(function(e){var t=e.context,i=e.mode,n=e.events,r=e.fn;ue(t,i,n,r)})};var ce=1e4;var fe=function e(t){return Boolean(t.onceux&&t.onceux.currentTime&&t.onceux.timeline)};var pe=function(e){J(t,e);function t(t,i){var n;n=e.call(this)||this;n.player_=t;n.logger_=i;n.stateBySrc_={};n.lastStateRecord_=0;n.disposed_=false;return n}var i=t.prototype;i.logger=function e(){};i.stateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}if(!this.stateBySrc_.hasOwnProperty(t)){this.stateBySrc_[t]={buffered:null,duration:0,end:0,height:0,mediainfo:null,playbackRate:1,rebufferingCount:0,src:t,start:0,width:0,playbackStartTime:0,playbackEndTime:0,stats:null,rendition:null,videoPlaybackQuality:null,times:[]}}var i=this.player_.tech_&&this.player_.tech_.vhs;this.stateBySrc_[t].stats=i&&i.stats||null;return this.stateBySrc_[t]};i.clearStateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}delete this.stateBySrc_[t]};i.recordState=function e(){var t=this.player_;var i=this.stateBySrc();i.mediainfo=t.mediainfo;i.playbackEndTime=t.currentTime();i.times.push(i.playbackEndTime);if(fe(t)){i.duration=t.onceux.timeline.contentDuration}else{i.duration=t.duration()}i.buffered=t.buffered();i.playbackRate=t.playbackRate()};i.isTracking=function e(){return!!this.timerId_};i.start=function e(t){var i=this;if(t===void 0){t={}}if(this.disposed_){return}var n=t;n.reason;var r=n.src;if(!r){r=this.player_.currentSrc()}var a=this.stateBySrc(r);a.playbackStartTime=a.playbackEndTime=this.player_.currentTime();if(fe(this.player_)){a.duration=this.player_.onceux.timeline.contentDuration}else{a.duration=this.player_.duration()}a.rebufferingCount=0;this.player_.clearTimeout(this.timerId_);this.timerCreatedAt_=Date.now();this.timerId_=this.player_.setTimeout(function(){return i.stop({src:r,reason:"engagement timer fired"})},ce);return this};i.prepareState_=function e(t){var i=this.player_;var r=this.stateBySrc(t);r.height=Math.round(i.currentHeight());r.width=Math.round(i.currentWidth());var a=i.tech_&&i.tech_.vhs;if(a&&a.playlists&&a.playlists.media()){var s=a.playlists.media();var o=r.rendition={url:s.resolvedUri,mimeType:i.currentType()};if(s.attributes){o.indicatedBPS=s.attributes.BANDWIDTH;if(s.attributes.RESOLUTION){o.height=s.attributes.RESOLUTION.height;o.width=s.attributes.RESOLUTION.width}}}r.videoPlaybackQuality=i.getVideoPlaybackQuality();if(r.mediainfo){var l={};Object.keys(r.mediainfo).forEach(function(e){if(!/_/.test(e)){l[e]=r.mediainfo[e]}});r.mediainfo=l}r.times.push(i.currentTime());var u=ne(r.times),d=u.start,c=u.end,f=u.remainders,p=u.ranges;r.times=f;return n["default"].mergeOptions({rangeExtras:p,rangeStart:d,rangeEnd:c},r)};i.stop=function e(t){var i=this;if(t===void 0){t={}}if(!t.src){t.src=this.player_.currentSrc()}if(this.isTracking()){this.player_.clearTimeout(this.timerId_);this.timerId_=null;var n=this.stateBySrc(t.src);var r=(n.duration-n.playbackEndTime)*1e3;if(!this.player_.ended()&&r>0&&r<1500){this.timerId_=true;ue(this.player_,"one","ended",function(){i.recordState();i.stop({reason:"content ended after we delayed the engager"})});return this}t.state=this.prepareState_(t.src);t.period=t.period||{};t.period.start=t.period.start||this.timerCreatedAt_;t.period.end=t.period.end||Date.now();this.trigger({type:"engagement",engagement:t})}return this};i.dispose=function e(){this.disposed_=true;this.stop({ignoreAdState:true,reason:"player disposed"});this.off();return this};return t}(n["default"].EventTarget);var he=["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"];var ve=["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"];var ge=function(){function e(e){this.logger_=e;this.events_=[]}var t=e.prototype;t.add=function e(t,i,r){if(i===void 0){i=Date.now()}var a=n["default"].mergeOptions(r,{name:t,time:i});this.events_.push(a);return i};t.record=function e(t,i){var n=Date.now();this.add(t,n,{adState:p(i),isInAdState:m(i),networkState:he[i.networkState()],readyState:ve[i.readyState()]});return n};t.reset=function e(){this.events_.length=0};t.filter=function e(t){if(!r["default"].isFn(t)){return this.events_.filter(function(e){return e.name===t})}return this.events_.filter(t)};t.map=function e(t){return this.events_.map(t)};t.names=function e(){return this.map(function(e){return e.name})};t.first=function e(t,i){for(var n=0;n<this.events_.length;n++){var r=this.events_[n];if(!i&&r.isInAdState){continue}if(r.name===t){return r.time}}};t.last=function e(t,i){var n=this.events_.length;while(n--){var r=this.events_[n];if(!i&&r.isInAdState){continue}if(r.name===t){return r.time}}};return e}();var me=function(){function e(){this.log_={}}var t=e.prototype;t.put=function e(t){this.log_[t]=true};t.peek=function e(){return Object.keys(this.log_)};t.flush=function e(){var t=Object.keys(this.log_);this.log_={};return t};return e}();var ye="3.18.2";var _e={production:"https://metrics.brightcove.com/v2/tracker",qa:"https://metrics.juju.qa.brightcove.com/v2/tracker",staging:"https://metrics.juju.staging.brightcove.com/v2/tracker"};var be=function e(t,i,n){Object.keys(n).forEach(function(e){i[e]=String(i[e]||"");if(e==="accountId"&&!r["default"].isNonEmptyStr(i[e])){i[e]=String(i.account||"")}if(!r["default"].isNonEmptyStr(i[e])){i[e]=t.getAttribute("data-"+n[e])||""}});return i};var Se=function e(t,i){var n=be(t.el(),i,{accountId:"account",applicationId:"application-id",embedId:"embed",playerId:"player",playerName:"name",usage:"usage"}),a=n.accountId,s=n.applicationId,o=n.embedId,l=n.playerId;if(!r["default"].isNonEmptyStr(i.player)){if(window.location.hostname==="players.api.brightcove.com"){i.player="players.api.brightcove.com/"+l+"_"+o;return}i.player=F(a,l,o);if(s){i.player+="/"+s}}if(s){if(r["default"].isNonEmptyStr(i.playerName)){i.playerName+=" - "+s}else{i.playerName=s}}};var Te=function e(t){return{computedHeight:t.currentHeight(),computedWidth:t.currentWidth(),height:t.height(),width:t.width()}};var Ee=function e(t){if(typeof t==="boolean"){n["default"].log.warn("The __iframe__ option should only be used in tests!");return t}try{return window.parent!==window.self}catch(e){return true}};var we=function e(t){var i=this;if(t===void 0){t={}}var a=false;var s=false;var o={};t=n["default"].mergeOptions(t);t.env=_e.hasOwnProperty(t.env)?t.env:"production";Se(this,t);var l=Y(this);var u=new pe(this,l);var d=new ge(l);var c=new me;var f=r["default"].isNonEmptyStr(t.usage)?t.usage.split(","):[];f.forEach(function(e){c.put(e)});var v=new W(this,d,r["default"].isNonEmptyStr(t.analyticsUrl)?t.analyticsUrl:_e[t.env],{logger:l,user:t.user,corpCommsApp:t.corpCommsApp,application:t.application,device:t.device,playerId:t.playerId,embedId:t.embedId,applicationId:t.applicationId,requiresConsent:t.requiresConsent});v.defaultParams(function(){var e={account:t.accountId||null,destination:window.location.href,platform_version:t.platformVersion,player:t.player,player_name:t.playerName,source:document.referrer};if(Ee(t.__iframe__)){e.destination=document.referrer;if(r["default"].isNonEmptyStr(t.referrer)){e.source=t.referrer}else{try{e.source=window.parent.document.referrer}catch(t){e.source=null}}}return e});ue(this,"on","pluginsetup:ads",de);this.bcAnalytics={client:v,engager:u,history:d,settings:t,VERSION:ye};ue(this,"on","usage",function(e){if(!e.name){return n["default"].log.warn("Ignored usage event without a `name` parameter")}c.put(e.name)});var b=function e(){c.put("pagehide");u.stop({fromUnload:true,ignoreAdState:true,reason:"pagehide called"})};ue(window,"addEventListener","pagehide",b);var S=function e(t){if(!t.usingPlugin("bcAirplay")){return false}if(t.isConnectingToAirplay){t.isConnectingToAirplay=false;return true}};var T=function e(t){if(!_(t,i)){return}var n=d.first("loadstart",g(i));var r=d.first("play");var a=d.last("playing");if(t&&t.type==="playing"&&d.last("pause")){v.triggerVideoResume()}if((r||a)&&!u.isTracking()&&!i.paused()){u.start({period:{start:r||a},reason:"workflow detected that it is playing"})}if(v.timeOfImpression&&v.timeOfView){return}o.workflow=o.workflow||i.setTimeout(function(){o.workflow=null;n=d.first("loadstart",g(i));r=d.first("play");a=d.last("playing");if((n||r)&&!v.timeOfImpression){v.sendVideoImpression({params:{time:Math.min(n||Infinity,r||Infinity)}})}if(n&&a&&!v.timeOfView){v.sendVideoView({params:{time:a}})}},1)};u.on("engagement",function(e){var t=e.engagement,n=t.fromUnload,r=t.ignoreAdState,a=t.period,s=t.restartAlways,o=t.state;var l=m(i);var d={useSendBeaconOnly:n,params:{time:a.end}};if(o.rangeExtras>=2){c.put("disco-engmnt")}var f=c.peek();if(f&&f.length){d.params.usage=f.map(window.encodeURIComponent).sort().join(",")}if(!l||r){v.qos.append("frames",o.videoPlaybackQuality);var p=v.sendVideoEngagement(a,o,d);if(s||p&&!i.paused()){if(l){return}c.flush();u.start({reason:"sent engagement and still playing"})}}});ue(this,"on","dispose",function(){le();c.put("disposed");u.dispose()});ue(this,"on",C.concat(I,k).concat("sourceunstable"),function(e){d.record(e.type,i)});ue(this,"on",C.concat("ads-ad-started"),function(e){v.qos.append("event",m(i)?"ad":"content",e.type)});ue(this,"on",["loadedmetadata","resize"],function(){v.qos.append("player",Te(i))});ue(this,"on","fullscreenchange",function(){var e=Date.now();o.fullscreen=i.setTimeout(function(){o.fullscreen=null;if(i.isFullscreen()){v.triggerFullscreenEnabled()}else{v.triggerFullscreenDisabled()}v.qos.append("player",Te(i),e)},500)});ue(this,"on","mediachange",function(){if(i.tech_.vhs){var e=i.tech_.vhs.playlists.media();v.qos.append("bitrate",{bitrates:i.tech_.vhs.bandwidth,playlists:e&&e.attributes&&e.attributes.BANDWIDTH})}});ue(this,"on","ratechange",function(){var e=i.playbackRate().toFixed(2);c.put("pr:"+e)});ue(this,"on","pipactive",function(){v.triggerEnterPIP()});ue(this,"on","pipinactive",function(){v.triggerLeavePIP()});ue(this,"on","texttrackchange",function(e){var t=i.textTracks();if(d.last(e.type)){var n=d.filter(e.type);var r=n[n.length-1].text_track_index;v.triggerTextTrackDisabled({params:{text_track_kind:t[r].kind,text_track_language:t[r].language}})}for(var a=0;a<t.length;a++){if(t[a].mode==="showing"){d.add(e.type,new Date,{text_track_index:a});v.triggerTextTrackEnabled({params:{text_track_kind:t[a].kind,text_track_language:t[a].language}});break}}});if(this.controlBar&&this.controlBar.volumePanel&&this.controlBar.volumePanel.muteToggle){ue(this.controlBar.volumePanel.muteToggle,"on","click",function(){if(i.muted()){v.triggerMuteEnabled()}else{v.triggerMuteDisabled()}})}ue(this,"on","volumechange",function(){if(!i.muted()){v.triggerVolumeChange({params:{volume:i.volume()}})}});ue(this,"on","ready",function(){ue(i.tech_,"on","usage",function(e){if(!e.name){return n["default"].log.warn("Ignored usage event without a `name` parameter")}c.put(e.name)});ue(i.tech_,"on","bandwidthupdate",function(){v.qos.append("bitrate",{bitrates:i.tech_.vhs.bandwidth,throughput:Math.round(i.tech_.vhs.throughput)})});ue(i.tech_,"on","liveresync",function(){i.trigger({type:"usage",name:"hls-live-resync"})});ue(i.tech_,"on","videounderflow",function(){i.trigger({type:"usage",name:"hls-video-underflow"})});ue(i.tech_,"on","licenserequestattempted",function(){d.add("licenserequestattempted")});ue(i,"on","loadedmetadata",function(){var e=i.textTracks();for(var t=0;t<e.length;t++){if(e[t].label==="segment-metadata"){(function(){var n=e[t];var r=void 0;ue(n,"addEventListener","cuechange",function(){var e=n.activeCues[0];if(e){var t=i.tech_.vhs.playlists.master.playlists[e.value.playlist];if(r!==t.uri){if(t.attributes&&t.attributes.BANDWIDTH){v.qos.append("bitrate",{rendered:t.attributes.BANDWIDTH})}if(r!==undefined){u.stop({reason:"rendition on screen changed",restartAlways:true})}}r=t.uri}})})()}}if(i.usingPlugin("social")){ue(i.socialButton,"on","click",function(){v.triggerShareOverlay()});ue(i.socialOverlay,"on","click",function(e){if(e.target.classList.contains("vjs-social-share-link")){v.triggerShareSocialClicked({params:{share_network:e.target.getAttribute("title").toLowerCase()}})}});ue(i.socialOverlay,"on","copy",function(e){if(e.target.parentElement.classList.contains("vjs-social-direct-link")){v.triggerShareLinkCopied({params:{link_url:i.socialOverlay.getDirectLink()}})}else if(e.target.parentElement.classList.contains("vjs-social-embed-code")){v.triggerShareEmbedCopied({params:{embed_code:i.socialOverlay.getEmbedCode()}})}})}})});ue(this,"on","waiting",function(e){if(!s&&!m(i)){u.stateBySrc().rebufferingCount++}});ue(this,"on","sourcechanged",function(e,t){var n=t.interimEvents;n[0].event;var r=function e(){if(!s&&!m(i)){u.recordState()}};if(t.from){u.stop({reason:"changing sources",period:{end:n[0].time},ignoreAdState:true,src:t.from});u.clearStateBySrc(t.from)}a=false;s=false;v.resetTimesOf();d.reset();n.forEach(function(e){return d.add(e.event.type,e.time)});T();ue(i,"onPerSrc","timeupdate",r);ue(i,"onePerSrc","sourceunstable",function(){if(p(i)==="content-resuming"){return}var e=i.currentSrc();u.stop({ignoreAdState:true,reason:"sourceunstable",src:e});if(!m(i)){oe(i,"off","timeupdate",r)}});ue(i,"onPerSrc",["loadstart","play","playing"],T);ue(i,"onPerSrc",["pause","ratechange"],function(e){if(e.type==="pause"){d.record(e.type,i);v.triggerVideoPause()}if(!s&&!m(i)&&!i.ended()){u.stop({reason:'saw "'+e.type+'"'});if(i.paused()){ue(i,"onePerSrc","playing",function(){u.start({reason:"playback began after a pause"})})}else if(e.type==="ratechange"){o.ratechange=i.setTimeout(function(){o.ratechange=null;u.start({reason:"the playback rate changed"})},1)}}});ue(i,"onPerSrc","unstable",function(){if(!s&&!m(i)){s=true;u.stop({reason:"seeking"})}});ue(i,"onPerSrc","seek",function(){if(s&&!m(i)){s=false;u.start({reason:"stopped seeking"})}});ue(i,"onePerSrc","adstart",function(){if(!h(i)){v.sendVideoImpression({params:{time:d.last("adstart",true)-100}})}});ue(i,"onPerSrc","adstart",function(){a=i.ended();u.stop({ignoreAdState:true,period:{end:d.last("adstart",true)},reason:"saw adstart"})});ue(i,"onePerSrc","adend",function(){if(!i.paused()&&!i.ended()){T()}});ue(i,"onPerSrc","adend",function(){if(!a){u.start({reason:'saw "adend"'})}});ue(i,"onePerSrc","ended",function(){u.stop({reason:"end of content"});v.sendVideoComplete()})});ue(this,"on","catalog_request",function(e){d.record(e.type,i);v.sendCatalogRequest(e.url)});ue(this,"on","catalog_request_error",function(e){d.record(e.type,i);v.sendCatalogRequestError(e.url,{error:e.error,xhr:e.response})});ue(this,"on","catalog_response",function(e){d.record(e.type,i);v.sendCatalogResponse(e.url,{xhr:e.response})});ue(this,"on","play",function(e){if(y(i)||S(i)){return}var t={params:{time:Date.now()}};if(i.perSourceBehaviors.isSrcStable()){v.sendPlayRequest(t)}else{ue(i,"one","sourcechanged",function(){v.sendPlayRequest(t)})}});ue(this,"on","error",function(){if(!m(i)){v.sendError()}});ue(this,"on","adstart",function(e){v.sendAdModeBegin();v.triggerAdStart();o.perSrcDisable=i.setTimeout(function(){o.perSrcDisable=null;i.perSourceBehaviors.disable()},1)});ue(this,"on","adend",function(e){v.triggerAdEnd();v.sendAdModeComplete();if(o.perSrcDisable){i.clearTimeout(o.perSrcDisable)}else{i.perSourceBehaviors.enable()}});ue(this,"on","adserror",function(e){v.triggerAdError({params:{ad_error:e.errorCode}})});ue(this,"on","adtimeout",function(){v.sendAdTimeout()});ue(this,"on","ad-hard-timeout",function(){v.sendAdHardTimeout()});ue(this,"on",j,function(e){E(v,e.type,Date.now())});v.qos.append("mr",t.mr);if(r["default"].isFn(t.beforeFirstBeacon)){t.beforeFirstBeacon(this)}v.sendPlayerInit();v.sendError();ue(this,"on","ready",function(){v.defaultParams({feature:h(i)?"adonly":null,autoplay:i.autoplay(),ads_enabled:i.ads!==undefined});v.qos.append("performance",(window.location.href||"").split("?")[1]);v.qos.append("player",Te(i));if("hidden"in document&&"visibilityState"in document){if(document.hidden){i.trigger({type:"usage",name:"document-hidden"})}var e=function e(){i.trigger({type:"usage",name:"document-"+document.visibilityState})};ue(document,"addEventListener","visibilitychange",e)}if(document.querySelector(".bc-iframe")){i.trigger({type:"usage",name:"iframe-embed"})}else{i.trigger({type:"usage",name:"inpage-embed"})}v.sendPlayerLoad({qos:v.qos.keys(),params:{usage:c.flush()}})})};we.VERSION=ye;if(n["default"].registerPlugin){n["default"].registerPlugin("bcAnalytics",we)}else{n["default"].plugin("bcAnalytics",we)}return we})})();(function(){if(videojs.getPlugin("errors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document")):typeof define==="function"&&define.amd?define(["video.js","global/document"],t):(e=e||self,e.videojsErrors=t(e.videojs,e.document))})(this,function(e,t){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var i="4.5.0";var n=e.getComponent("Flash");var r=!e.browser.IS_IPHONE;var a=e.registerPlugin||e.plugin;var s={header:"",code:"",message:"",timeout:45*1e3,backgroundTimeout:300*1e3,dismiss:r,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"},FLASHLS_ERR_CROSS_DOMAIN:{headline:"The video could not be loaded: crossdomain access denied."}}};var o=function r(a,o){var l;var u;var d;var c=[];var f=function t(i){o.errors=e.mergeOptions(o.errors,i);Object.keys(o.errors).forEach(function(e){var t=o.errors[e];if(!t.type){t.type=e}})};f();var p=function e(){if(a.error()&&a.error().code===-2){a.error(null)}a.clearTimeout(u);a.clearTimeout(l);if(d){d=false;a.removeClass("vjs-waiting")}var i=[Infinity,-1];var n=function e(t,i){return t.indexOf(i)!==-1};if(t.visibilityState==="hidden"&&(a.muted()||n(i,o.backgroundTimeout))||t.visibilityState==="visible"&&n(i,o.timeout)){return}u=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}d=true;a.addClass("vjs-waiting")},1e3);l=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},t.visibilityState==="hidden"?o.backgroundTimeout:o.timeout)};var h=function e(){var t;while(c.length){t=c.shift();a.off(t[0],t[1])}a.clearTimeout(l);a.clearTimeout(u)};var v=function e(t,i){var n=function e(){if(!a.error()){var t=a.$(".vjs-tech");if(t&&t.type==="application/x-shockwave-flash"&&!t.vjs_getProperty){a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});return}if(a.paused()){return p()}if(a.ended()){return p()}}i.call(this)};a.on(t,n);c.push([t,n])};var g=function e(){var i=0;h();p();v(["timeupdate","adtimeupdate"],function(){var e=a.currentTime();if(e!==i){i=e;p()}});a.off(t,"visibilitychange",e);a.on(t,"visibilitychange",e)};var m=function e(){if(!a.currentSrc()){a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};var y=function i(){var r="";var s=a.error();var l=t.createElement("div");var u="";if(!s){return}a.off(t,"visibilitychange",g);s=e.mergeOptions(s,o.errors[s.code||s.type||0]);if(s.message){r='<div class="vjs-errors-details">'+a.localize("Technical details")+'\n : <div class="vjs-errors-message">'+a.localize(s.message)+"</div>\n </div>"}if(s.code===4&&n&&!n.isSupported()){var d=a.localize("If you are using an older browser please try upgrading or installing Flash.");r+='<span class="vjs-errors-flashmessage">'+d+"</span>"}var c=a.getChild("errorDisplay");l.className="vjs-errors-dialog";l.id="vjs-errors-dialog";u='<div class="vjs-errors-content-container">\n <h2 class="vjs-errors-headline">'+this.localize(s.headline)+'</h2>\n <div class="vjs-errors-code"><b>'+this.localize("Error Code")+":</b> "+(s.type||s.code)+"</div>\n "+r+"\n </div>";var f=c.closeable(!("dismiss"in s)||s.dismiss);if(f){u+='<div class="vjs-errors-ok-button-container">\n <button class="vjs-errors-ok-button">'+this.localize("OK")+"</button>\n </div>";l.innerHTML=u;c.fillWith(l);c.contentEl().firstChild.appendChild(c.getChild("closeButton").el());var p=c.el().querySelector(".vjs-errors-ok-button");a.on(p,"click",function(){c.close()})}else{l.innerHTML=u;c.fillWith(l)}if(a.currentWidth()<=600||a.currentHeight()<=250){c.addClass("vjs-xs")}c.one("modalclose",function(){return a.error(null)})};var _=function e(){h();a.removeClass("vjs-errors");a.off("play",g);a.off(t,"visibilitychange",g);a.off("play",m);a.off("dispose",e);a.off(["aderror","error"],y)};var b=function t(i){_();r(a,e.mergeOptions(s,i))};b.extend=function(e){return f(e)};b.getAll=function(){return e.mergeOptions(o.errors)};b.timeout=function(e){if(typeof e==="undefined"){return o.timeout}if(e!==o.timeout){o.timeout=e;if(!a.paused()){g()}}};b.backgroundTimeout=function(e){if(typeof e==="undefined"){return o.backgroundTimeout}if(e!==o.backgroundTimeout){o.backgroundTimeout=e;if(!a.paused()){g()}}};b.disableProgress=function(){};a.on("play",g);a.on("play",m);a.on("dispose",_);a.on(["aderror","contenterror","error"],y);a.ready(function(){a.addClass("vjs-errors")});if(!a.paused()){g()}b.VERSION=i;a.errors=b};var l=function t(i){o(this,e.mergeOptions(s,i))};["extend","getAll"].forEach(function(t){l[t]=function(){e.log.warn("The errors."+t+"() method is not available until the plugin has been initialized!")}});l.VERSION=i;a("errors",l);return l})})();(function(){if(videojs.getPlugin("catalog")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("video.js"),require("@brightcove/loscore")):typeof define==="function"&&define.amd?define(["exports","video.js","@brightcove/loscore"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.videojsBcCatalog={},e.videojs,e.videojs.bc_))})(this,function(e,t,i){"use strict";function n(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var r=n(t);var a=n(i);var s="3.45.2";var o="video";var l="playlist";var u="search";var d="lazySequence";var c="related";var f=[{attr:"data-video-id",query:"videoId",config:"videoId",type:o},{attr:"data-playlist-id",query:"playlistId",config:"playlistId",type:l},{attr:"data-catalog-search",query:"catalogSearch",config:"search",type:u},{attr:"data-catalog-sequence",query:"catalogSequence",config:"sequence",type:d}];var p=function e(t,i,n){for(var r=0;r<f.length;r++){var a=f[r];var s=a[t];if(i[s]){var o={id:i[s],type:a.type};if(o.type===l){o.playlistVideoId=n}return o}}};var h=function e(t,i,n){var s=i.options_;var o=Boolean(i.el().ownerDocument.querySelector(".bc-iframe"));var l=a["default"].qs();n=n?l.parse(n):l.search;f.concat({query:"playlistVideoId"}).forEach(function(e){var t=e.query;if(Array.isArray(n[t])){n[t]=n[t].pop()}});if(f.filter(function(e){return!!t[e.config]}).length>1||f.filter(function(e){return!!s[e.attr]}).length>1){i.error({headline:"Bad Request: Multiple catalog media queries provided. Please only provide one",type:"PLAYER_ERR_CONFLICTING_DATA",code:-3,message:"Too many catalog media parameters were provided in this player. "+"Please use only one of the following: videoId, playlistId, catalogSequence, or catalogSearch."});return}var c=o&&p("query",n,n.playlistVideoId)||p("attr",s,s["data-playlist-video-id"]||n.playlistVideoId)||p("config",t,n.playlistVideoId||t.playlistVideoId);if(!c){return}if(typeof c.id==="string"&&(c.type===u||c.type===d)){var h=c.id;try{c.id=JSON.parse(h)}catch(e){if(c.type===d){r["default"].log.error("sequence must be valid JSON or an object",e);return}}if(!a["default"].isObj(c.id)&&!Array.isArray(c.id)){c.id=h}}["adConfigId","deliveryConfigId","bumper"].forEach(function(e){var i=e==="bumper"?t[e]&&t[e].id:t[e];if(!a["default"].isNonEmptyStr(i)){return}if(a["default"].isObj(c.id)){c.id[e]=i}else if(Array.isArray(c.id)){c.id.forEach(function(t){t[e]=i})}else{c[e]=t[e]}});return c};var v={VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND:{headline:"The Video Cloud account was not found."},VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND:{headline:"The Video Cloud resource was not found."},VIDEO_CLOUD_ERR_NOT_PLAYABLE:{headline:"The Video Cloud video is not playable."},VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND:{headline:"The Video Cloud SSAI ad config id was not found."},VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND:{headline:"The Video Cloud video was not found."},VIDEO_CLOUD_ERR_DUPLICATE_PARAMETERS:{headline:"Invalid Request: Duplicate Parameter",message:"The same parameter name was provided more than once in the request."},VIDEO_CLOUD_ERR_TOKEN_REQUIRED:{headline:"Access Denied: Missing Token",message:"Video cannot be played without a token."},VIDEO_CLOUD_ERR_TOKEN_INVALID:{headline:"Access Denied: Invalid Token",message:"Video cannot be played without a valid token."},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"Playback Denied: Domain Restricted",message:"Video is not playable on this domain."},PLAYER_ERR_IP_RESTRICTED:{headline:"Playback Denied: IP",message:"Your IP address does not have access to this video."},PLAYER_ERR_GEO_RESTRICTED:{headline:"Playback Denied: Location",message:"Video is unavailable from your current location."},PLAYER_ERR_OFFER_RESTRICTED:{headline:"Playback Denied: Offer Restricted",message:"Video is not playable with your entitlements."},PLAYER_ERR_TAG_RESTRICTED:{headline:"Playback Denied: Tags",message:"Video does not have tags required for playback."},PLAYER_ERR_ACCOUNT_ID:{headline:"Playback Denied: Account ID",message:"Account ID missing or invalid."},PLAYER_ERR_DEVICE_RESTRICTED:{headline:"Playback Denied: Device",message:"Device does not have access to this resource."},VIDEO_CLOUD_ERR_VIDEO_NOT_PLAYABLE:{headline:"Playback Denied: Unavailable",message:"Video is not currently available for playback."},VIDEO_CLOUD_ERR_PLAYLIST_NOT_PLAYABLE:{headline:"Playback Denied: Unavailable",message:"Playlist is not currently available for playback."},VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_CREATE:{code:"DENIED_BY_STREAM_LIMIT_CREATE",headline:"Stream Limiting: New Viewers",message:"Limited stream has reached the maximum number of viewers."},VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_RENEW:{code:"DENIED_BY_STREAM_LIMIT_RENEW",headline:"Stream Limiting: Existing Viewers",message:"Limited stream is already being watched by the maximum number of viewers."},VIDEO_CLOUD_DENIED_BY_STREAM_LIMITING:{code:"DENIED_BY_STREAM_LIMITING",headline:"Stream Limiting: New Viewers",message:"Limited stream has reached the maximum number of viewers."},VIDEO_CLOUD_DENIED_BY_DEVICE_LIMITING:{code:"DENIED_BY_DEVICE_LIMITING",headline:"Device Limiting: New Viewers",message:"Maximum number of streams has been reached on this device."},VIDEO_CLOUD_ERR_PLAYLIST_NOT_FOUND:{headline:"Playlist Unavailable: Not Found",message:"Playlist cannot be found."},VIDEO_CLOUD_ERR_METHOD_NOT_ALLOWED:{headline:"API: Method not allowed."},VIDEO_CLOUD_ERR_SERVER:{headline:"Server: Internal server error",message:"An internal server error prevented playback."},VIDEO_CLOUD_ERR_VIDEO_RETRIEVE_FAILURE:{headline:"Server Error: Video",message:"Video unavailable."},VIDEO_CLOUD_ERR_ACCOUNT_RETRIEVE_FAILURE:{headline:"Server Error: Account",message:"Account unavailable."},VIDEO_CLOUD_ERR_VIDEO_URLS_RETRIEVE_FAILURE:{headline:"Server Error: Video URLs",message:"Stream URLs unavailable."},VIDEO_CLOUD_ERR_PLAYLIST_RETRIEVE_FAILURE:{headline:"Server Error: Playlist",message:"Video playlist unavailable."},VIDEO_CLOUD_ERR_PLAYBACK_RIGHT_RETRIEVE_FAILURE:{headline:"Server Error: Playback Rights",message:"Entitlements unavailable."},VIDEO_CLOUD_ERR_PLAYLIST_VIDEOS_RETRIEVE_FAILURE:{headline:"Server Error: Playlist Videos",message:"Playlist videos unavailable."},VIDEO_CLOUD_ERR_LICENSE_RETRIEVE_FAILURE:{headline:"Server Error: License",message:"Stream license unavailable."},VIDEO_CLOUD_ERR_OFFERS_RETRIEVE_FAILURE:{headline:"Server Error: Offers",message:"Stream offers unavailable."},VIDEO_CLOUD_ERR_RIGHTS_RETRIEVE_FAILURE:{headline:"Server Error: Rights",message:"Stream rights unavailable."},VIDEO_CLOUD_ERR_SERVICE_UNAVAILABLE:{headline:"Server Error: Unavailable",message:"The server is currently unavailable. Please try again later."},VIDEO_CLOUD_ERR_SERVICE_TIMEOUT:{headline:"Server Error: Timeout",message:"Recevied a timeout from the server. Please try again later."},GSC_ERR_DENIED_BY_CONCURRENCY_LIMITING:{headline:"Session Limiting: New Sessions",message:"Maximum number of sessions have been reached for this video",dismiss:false},GSC_TOKEN_REQUIRED:{headline:"Invalid Request: JWT is required",message:"Please provide a valid token",dismiss:false},GSC_INVALID_TOKEN:{headline:"Invalid Request: Invalid JWT",message:"Please provide a valid token",dismiss:false},GSC_MISSING_FIELD_ACCOUNT_ID:{headline:"Invalid Request: AccountID is required",message:"Please provide required information",dismiss:false},GSC_MISSING_FIELD_UID:{headline:"Invalid Request: UID in JWT is required",message:"Please provide required information",dismiss:false},GSC_MISSING_FIELD_SESSION_ID:{headline:"Invalid Request: SID in JWT is required",message:"Please provide required information",dismiss:false},GSC_MISSING_FIELD_CLIMIT:{headline:"Invalid Request: CLIMIT in JWT is required",message:"Please provide required information",dismiss:false},GSC_MISSING_FIELD_VIDEO_ID:{headline:"Invalid Request: videoId is required",message:"Please provide required information",dismiss:false},GSC_SESSION_STOPPED:{headline:"Stream Limiting: Session stopped",message:"Stream session no longer available",dismiss:false},GSC_SESSION_EXPIRED:{headline:"Stream Limiting: Session expired",message:"Stream session no longer available",dismiss:false},GSC_PLAYBACK_RESTRICTIONS:{headline:"Playback Restrictions: Not Met",message:"Playback restrictions requirements have not been met",dismiss:false},GSC_SESSION_NOT_FOUND:{headline:"Not found",message:"Playback session not found",dismiss:false},GSC_VIDEO_NOT_FOUND:{headline:"Not found",message:"Video cannot be found or does not exist",dismiss:false}};var g=function e(t,i){var n=t.error();if(i===null&&n&&(n.headline===v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_CREATE.headline||n.headline===v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_RENEW.headline||n.headline===v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMITING.headline||n.headline===v.VIDEO_CLOUD_DENIED_BY_DEVICE_LIMITING.headline||n.headline===v.GSC_ERR_DENIED_BY_CONCURRENCY_LIMITING.headline)){return n}if(i&&i.code===5&&/Denied by stream limiting \(create\)/.test(i.cause)){return v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_CREATE}if(i&&i.code===5&&/Denied by stream limiting \(renew\)/.test(i.cause)){return v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_RENEW}if(i&&i.code===5&&/Denied by stream limiting/.test(i.cause)){return v.VIDEO_CLOUD_DENIED_BY_STREAM_LIMITING}if(i&&i.code===5&&/Denied by device limiting: [1-9] devices in use/.test(i.cause)){return v.VIDEO_CLOUD_DENIED_BY_DEVICE_LIMITING}return i};var m=function e(t){var i=function e(){return t.errors.extend(v)};var n=a["default"].isFn(t.usingPlugin)?t.usingPlugin("errors"):a["default"].isFn(t.errors)&&a["default"].isFn(t.errors.extend);if(!n){t.on("pluginsetup:errors",i);t.on("dispose",function(){t.off("pluginsetup:errors",i)});return}i()};var y={400:{AD_CONFIG_NOT_FOUND:"VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND",DUPLICATE_PARAMETERS:"VIDEO_CLOUD_ERR_DUPLICATE_PARAMETERS"},401:{TOKEN_REQUIRED:"VIDEO_CLOUD_ERR_TOKEN_REQUIRED",TOKEN_VALIDATION:"VIDEO_CLOUD_ERR_TOKEN_INVALID"},403:{ACCESS_DENIED:{DOMAIN:"PLAYER_ERR_DOMAIN_RESTRICTED",CLIENT_IP:"PLAYER_ERR_IP_RESTRICTED",CLIENT_GEO:"PLAYER_ERR_GEO_RESTRICTED",OFFERS:"PLAYER_ERR_OFFER_RESTRICTED",TAGS:"PLAYER_ERR_TAG_RESTRICTED",ACCOUNT_ID:"PLAYER_ERR_ACCOUNT_ID",DEVICE:"PLAYER_ERR_DEVICE_RESTRICTED"},VIDEO_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_VIDEO_NOT_PLAYABLE",PLAYLIST_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_PLAYLIST_NOT_PLAYABLE",DENIED_BY_STREAM_LIMITING_CREATE:"VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_CREATE",DENIED_BY_STREAM_LIMITING_RENEW:"VIDEO_CLOUD_DENIED_BY_STREAM_LIMIT_RENEW",DENIED_BY_STREAM_LIMITING:"VIDEO_CLOUD_DENIED_BY_STREAM_LIMITING",DENIED_BY_DEVICE_LIMITING:"VIDEO_CLOUD_DENIED_BY_DEVICE_LIMITING"},404:{ACCOUNT_NOT_FOUND:"VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND",RESOURCE_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND",VIDEO_NOT_FOUND:"VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND",PLAYLIST_NOT_FOUND:"VIDEO_CLOUD_ERR_PLAYLIST_NOT_FOUND"},405:{METHOD_NOT_ALLOWED:"VIDEO_CLOUD_ERR_METHOD_NOT_ALLOWED"},500:{SERVER_ERROR:"VIDEO_CLOUD_ERR_SERVER"},502:{VIDEO_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_VIDEO_RETRIEVE_FAILURE",VIDEO_URLS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_VIDEO_URLS_RETRIEVE_FAILURE",PLAYLIST_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_PLAYLIST_RETRIEVE_FAILURE",PLAYLIST_VIDEOS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_PLAYLIST_VIDEOS_RETRIEVE_FAILURE",ACCOUNT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_ACCOUNT_RETRIEVE_FAILURE",PLAYBACK_RIGHT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_PLAYBACK_RIGHT_RETRIEVE_FAILURE",LICENSE_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_LICENSE_RETRIEVE_FAILURE",OFFERS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_OFFERS_RETRIEVE_FAILURE",RIGHTS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_RIGHTS_RETRIEVE_FAILURE"},503:{SERVICE_UNAVAILABLE:"VIDEO_CLOUD_ERR_SERVICE_UNAVAILABLE"},504:{SERVER_TIMEOUT:"VIDEO_CLOUD_ERR_SERVICE_TIMEOUT"}};var _=function e(t,i){var n=i.shift();if(a["default"].isNonEmptyStr(t[n])){return t[n]}if(!n||!t[n]){return"unknown"}return e(t[n],i)};var b=function e(t,i){i=Array.isArray(i)?i[0]:i||{};return{code:_(y,[t,i.error_code,i.error_subcode])}};var S=function e(t,i,n){if(n.embedHasPoster){t.poster=i.options_.poster}if(n.embedHasSources){t.sources=i.options_.sources}if(n.embedHasTracks){t.textTracks=i.options_.tracks}if(t.textTracks&&t.textTracks.length>0&&r["default"].browser.IS_ANY_SAFARI){i.$(".vjs-tech").setAttribute("crossorigin","anonymous")}return t};var T=function e(t,i){return function(e,n){if(e){e.data=n;t.catalog.error=e;t.error(b(e.status,n));return t.trigger("bc-catalog-error")}t.ready(function(){return t.catalog.load(i(n))})}};var E=function e(t,i,n){if(t===o){return T(i,function(e){return S(e,i,n)})}return T(i,function(e){var a=S({},i,n);if(Array.isArray(e.videos)){var s=e.videos[0]||{};e.videos[0]=r["default"].mergeOptions(s,a,{rawItem:s})}else{e.videos=[a]}if(n.playlistVideoId&&t===l){for(var o=0;o<e.length;o++){if(e[o].id===n.playlistVideoId||"ref:"+e[o].referenceId===n.playlistVideoId){e.startingIndex=o;break}}}return e})};var w=function e(){return Number.MAX_SAFE_INTEGER||Math.pow(2,53)-2};var k=function e(t,i){var n=t.cuePoints;var r=n[i];var a;for(i++;i<n.length;i++){if(n[i].time>r.time){a=n[i];break}}var s=isFinite(t.duration)?t.duration:w();r.startTime=r.time;if(a&&a.time<s){r.endTime=a.time}else{r.endTime=s}return r};var I=function e(t){var i=t.remoteTextTracks();if(i){var n=i.length;while(n--){t.removeRemoteTextTrack(i[n])}}var r=t.textTracks();if(r){var a=r.length;while(a--){var s=r[a];if(s.kind==="metadata"&&s.cues){var o=s.cues.length;while(o--){s.removeCue(s.cues[o])}}s.mode="disabled"}}};var A=function e(t,i){I(t);if(!i.cuePoints){return}var n=t.mediaCuePointsTrack();var r=window.VTTCue||window.vttjs&&window.vttjs.VTTCue||window.TextTrackCue;for(var a=0;a<i.cuePoints.length;a++){var s=i.cuePoints[a];var o=new r(s.startTime,s.endTime,s.type);o.originalCuePoint=s;n.addCue(o)}n.mode="hidden"};var C=function e(t,i,n){var r=0;for(;r<t.length;r++){if(i(t[r])){return t[r]}}return n};function j(e){var t=j.windowLocationProtocol();var i=function e(i){return i.src&&i.src.indexOf(t)===0};if(e&&e.length&&e.length>0){return C(e,i,e[0]).src}}j.windowLocationProtocol=function(){return window.location.protocol};var P=function e(t,i){return"https://"+t+".api."+(i?i+".":"")+"brightcove.com/playback/v1/"};var x={production:{papi:P("edge"),epa:P("edge-auth")},qa:{papi:P("edge","qa"),epa:P("edge-auth","qa")},staging:{papi:P("edge","staging"),epa:P("edge-auth","staging")}};var L=function e(t){return window.encodeURIComponent(t)};var O=function e(t){return typeof t==="string"&&/^BCpk/.test(t)};var D=function e(t){var i={ad_config_id:"adConfigId",config_id:"deliveryConfigId"};var n=["ad_config_id","config_id","tveToken"];if(t.type!==o){n.push("limit");n.push("offset")}if(t.type===u){n.push("q");n.push("sort")}var r={};n.forEach(function(e){var n=i[e]||e;if(t[n]){r[e]=t[n]}});var s=a["default"].qs().stringify(r);return s?"?"+s:""};var R=function e(t,i){var n=i.env,r=i.type;if(!n){n="production"}var s;if(a["default"].isNonEmptyStr(i.baseUrl)){s=i.baseUrl}else if(O(i.policyKey)){s=x[n].papi}else{s=x[n].epa}if(s.slice(-1)==="/"){s=s.slice(0,-1)}var o;o=s+"/accounts/"+L(t)+"/"+(r===l?"playlists":"videos");if(r!==u){o+="/"+L(i.id)}if(r===c){o+="/related"}o+=D(i);return o};var N=function e(t,i,n,s){if(s===void 0){s=function e(){}}var d=n.deliveryConfigId,f=n.adConfigId,p=n.id,h=n.bcovAuthToken,v=n.policyKey,g=n.q,m=n.type;if(!i||!m){return s(new Error("accountId and type are required"))}if(m===u&&!g){return s(new Error("q is required when performing a search"))}else if(m!==u&&!p){return s(new Error("id is required when getting a video or playlist"))}var y=R(i,n);var _=function e(n,r){t.trigger(a["default"].assign({type:"catalog_"+n,accountId:i,deliveryConfigId:d,adConfigId:f,playlistId:m===l?p:undefined,related:m===c?p:undefined,search:m===u?g:undefined,url:y,videoId:m===o?p:undefined},r))};var b=function e(t,i,n){return _("request_error",{error:t,response:i,body:n})};_("request");var S={};if(O(v)){S.Accept="application/json;pk="+v}else if(h){S.Authorization="Bearer "+h}var T=r["default"].xhr({headers:S,json:true,url:y},function(e,t,i){if(e){b(e,T,i);return s(e,i)}if(T.status>=400){b(new Error("Request Failed"),T,i);return s(T,i)}_("response",{response:T});s(null,i)});var E=T.onabort.bind(T);T.onabort=function(){var e=new Error("Request Aborted");E();b(e,T,null);return s(e,null)};return T};var M=function e(){var t=window.GestureEvent;return!!(t&&window.WebKitMediaKeys&&window.WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4"))};var U=function e(){return r["default"].browser.IS_EDGE&&/Chrome/i.test(window.navigator.userAgent)};var B=function e(){return window.navigator.requestMediaKeySystemAccess&&!r["default"].browser.IS_IOS&&(r["default"].browser.IS_FIREFOX||r["default"].browser.IS_CHROME||U())};var F=function e(t){return window.SourceBuffer&&window.SourceBuffer.prototype&&typeof window.SourceBuffer.prototype.changeType==="function"};var V=function e(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L60.90"')};var q=function e(t){return t==="application/vnd.apple.mpegurl"||t==="application/x-mpegURL"};var H=function e(t){var i=t&&t.encryption&&t.encryption.method;if(typeof i==="string"){return i.toLowerCase()==="aes-128"}var n=r["default"].parseUrl(t.src);return n.hostname.indexOf("boltdns.net")!==-1&&n.pathname.indexOf("/aes128/")!==-1};var G=function e(t){return t.isSecureContext||!/^http:/.test(t.location.href)};var z;var W=function e(){if(z!==undefined){return z}var t=document.createElement("video");var i=r["default"].options.hls&&r["default"].options.hls.overrideNative;if(t&&t.canPlayType){z=!i&&/probably|maybe/i.test(t.canPlayType("application/vnd.apple.mpegurl"))}else{z=false}return z};var Y={isSafariWithFairplaySupport:M,isChromiumEdge:U,isBrowserWithWidevineSupport:B,isHlsType:q,isCodecSwitchingSupported:F,isHEVCSupported:V,isEncryptedHls:H,preferHttps:G,isNativeHlsSupported:W};var K="https://fps.brightcove.com/v1/application_certificate";var X="com.apple.fps.1_0";var Q=function e(t){return window.btoa(String.fromCharCode.apply(null,t))};var J=function e(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))};var Z=function e(t){var i=t.source,n=t.publisherId,r=t.applicationId;var a=i.key_systems[X].certificate_url;if(a){return a}if(r&&n){return K+"/"+n+"/"+r}return null};var $=function e(t,i){var n=Z({source:t.source,publisherId:t.publisherId,applicationId:t.applicationId});r["default"].xhr({uri:n,responseType:"arraybuffer"},r["default"].xhr.httpHandler(function(e,t){if(e){i(e);return}i(null,new Uint8Array(t))}))};var ee=function e(t,i){if(typeof i==="string"){return i.split("//")[1]}return J(i).split("//")[1]};var te=function e(t,i){return function(e,n,a,s){var o=n.split("&").filter(function(e){return/^renditionType/.test(e)})[0]||"";var l=o.split("=")[1];var u={"Content-Type":"application/json",Accept:"application/octet-stream"};if(e.emeHeaders&&e.emeHeaders["BCOV-Auth"]){u["BCOV-Auth"]=e.emeHeaders["BCOV-Auth"]}if(l&&i){t=i[l]}r["default"].xhr({uri:t,method:"POST",responseType:"arraybuffer",json:{publisher_id:e.publisherId,application_id:e.applicationId,key_id:n.split("/")[3],server_playback_context:Q(a)},headers:u},r["default"].xhr.httpHandler(s,true))}};var ie={getCertificateUri:Z,getCertificate:$,getContentId:ee,createGetLicenseFunc:te,base64EncodeUint8Array:Q,FAIRPLAY_KEY_SYSTEM:X};var ne=function e(t){if(t===void 0){t=[]}return t.filter(function(e){return e.keySystems&&e.keySystems[ie.FAIRPLAY_KEY_SYSTEM]})};var re=function e(t,i,n){var r=ne(i);if(!r.length||!t.eme){n();return}var a=t.eme.options||{};var s=0;var o=[];var l={};var u=function e(t){var i=r[t];var u=ie.getCertificateUri({source:i,publisherId:a.publisherId,applicationId:a.applicationId});if(!u){return"continue"}if(l[u]){l[u].push(i);return"continue"}s++;l[u]=[i];i.keySystems[ie.FAIRPLAY_KEY_SYSTEM].getCertificate({source:i,publisherId:a.publisherId,applicationId:a.applicationId},function(e,t){if(e){o.push({message:"Unable to resolve FairPlay certificate",error:e})}else{var i=l[u];for(var r=0;r<i.length;r++){var a=i[r];a.keySystems[ie.FAIRPLAY_KEY_SYSTEM].getCertificate=function(e,i){i(null,t)}}}s--;if(!s){if(o.length){n(o);return}n()}})};for(var d=0;d<r.length;d++){var c=u(d);if(c==="continue")continue}};var ae=function e(t){if(!Y.isHlsType(t.type)||!t.key_systems||!t.key_systems[ie.FAIRPLAY_KEY_SYSTEM]){return null}var i=t.key_systems[ie.FAIRPLAY_KEY_SYSTEM];var n=i.key_request_url;var r={};r[ie.FAIRPLAY_KEY_SYSTEM]={getCertificate:ie.getCertificate,getLicense:ie.createGetLicenseFunc(n,i.key_request_urls),getContentId:ie.getContentId};return r};var se=function e(t){return ae(t)};var oe={getKeySystemOptions:se,getFairPlaySources:ne,resolveFairPlayCertificates:re};var le=function e(t,i){i=i||t&&t.mediainfo||{};return t&&t.hasPlugin&&t.hasPlugin("vr")&&i&&i.projection};var ue=50*1024*1024;var de=3*1024*1024;var ce=.5*1024*1024;var fe={http:{nativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},noNativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},preferMp4:{http:{"application/vnd.apple.mpegurl":3,"video/mp4":1,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":4,"video/mp4":2,"application/dash+xml":6}}},https:{nativeHls:{http:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":1,"video/mp4":4,"application/dash+xml":3}},noNativeHls:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":1,"video/mp4":3,"application/dash+xml":2}},preferMp4:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":2,"video/mp4":1,"application/dash+xml":3}}},codecs:{switching:{hevc:{combined:1,hevc:2,avc:3},nohevc:{combined:5,hevc:6,avc:4}},noswitching:{hevc:{combined:3,hevc:5,avc:2},nohevc:{combined:4,hevc:6,avc:1}}}};var pe={1:3,2:3.2,3:4.2,4:5,5:6,6:7,7:8};var he=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&Y.isSafariWithFairplaySupport()&&t.eme&&t.eme.options};var ve=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&Y.isBrowserWithWidevineSupport()&&t.eme&&t.eme.options};var ge=function e(t,i,n,a){if(!i.src){return 9999}if(i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&(i.key_systems["com.apple.fps.1_0"]&&!he(n,i)||i.key_systems["com.widevine.alpha"]&&!ve(n,i))){return 9999}if(i.profiles&&i.profiles.match(/hbbtv/i)){return 9999}if(r["default"].browser.IS_IOS&&i.type==="application/vnd.apple.mpegurl"&&pe[i.ext_x_version]>parseFloat(r["default"].browser.IOS_VERSION)){return 9999}t=t[/^[^:]*/.exec(i.src)];if(!t){return 9999}var s=t[i.type]||9999;var o=i.codecs&&i.codecs.indexOf("avc1")!==-1;var l=i.codecs&&i.codecs.indexOf("hvc1")!==-1;var u=o&&l;var d;if(u){d=a.combined}else if(l){d=a.hevc}else{d=a.avc}i.priority=s;return s+d};var me=function e(t,i,n,a,s){var o=ye.preferHttps()?fe.https:fe.http;var l;if(le(t,i)){l=ue}else if(r["default"].browser.IS_IOS||r["default"].browser.IS_ANDROID){l=ce}else{l=de}if(ye.preferMp4(t,i)){o=o.preferMp4}else if(ye.supportsNativeHls()){o=o.nativeHls}else{o=o.noNativeHls}var u=ge(o,a,t,n)-ge(o,s,t,n);var d=a.type==="application/vnd.apple.mpegurl"&&a.codecs&&a.ext_x_version||s.type==="application/vnd.apple.mpegurl"&&s.codecs&&s.ext_x_version;var c=a.codecs&&s.codecs?false:true;if(d&&c){u=a.priority-s.priority}delete a.priority;delete s.priority;if(u){return u}if(a.type==="video/mp4"&&s.type==="video/mp4"){if(a.avg_bitrate&&s.avg_bitrate){return Math.abs(a.avg_bitrate-l)-Math.abs(s.avg_bitrate-l)}if(a.avg_bitrate||s.avg_bitrate){u=a.avg_bitrate?-1:1}}if(a.type==="application/vnd.apple.mpegurl"&&s.type==="application/vnd.apple.mpegurl"){if(a.ext_x_version&&s.ext_x_version){return s.ext_x_version-a.ext_x_version}if(a.ext_x_version||s.ext_x_version){u=a.ext_x_version?-1:1}}return u};function ye(e,t,i){if(i===void 0){i={}}var n=t.sources||[];var s=[];var o=i,l=o.bcovAuthToken,u=o.policyKey,d=o.watermarkingToken,c=o.allowPlayreadyInChromiumEdge;var f=!!l&&u===null;if(l&&!a["default"].isNonEmptyStr(l)){r["default"].log.error("The bcovAuthToken catalog property must be a string");l=null}if(d&&!a["default"].isNonEmptyStr(d)){r["default"].log.error("The watermarking token catalog property must be a string");d=null}for(var p=0;p<n.length;p++){var h=n[p];if(h.key_systems&&h.key_systems["com.microsoft.playready"]&&Y.isChromiumEdge()&&(f&&typeof c==="undefined"||c===false)){if(Object.keys(h.key_systems).length>1){delete h.key_systems["com.microsoft.playready"]}else{n.splice(p,1);p--;continue}}if(l&&h.key_systems){h.emeHeaders={"BCOV-Auth":l}}if(d){h.src=h.src.replace("{WMT}",d)}if(h.src&&h.container==="MP4"){h.type="video/mp4"}else if(h.src&&(h.container==="M2TS"||Y.isHlsType(h.type))){h.type="application/vnd.apple.mpegurl";if(he(e,h)){h.keySystems=oe.getKeySystemOptions(h)}if(Y.isEncryptedHls(h)&&l){if(h.vmap&&e.hasPlugin("ssai")){h.bcovAuthToken=l}else{var v=r["default"].parseUrl(h.src);var g="bcov_auth="+l;if(!v.search){g="?"+g}else if(!(v.search[v.search.length-1]==="&")){g="&"+g}h.src+=g}}}s.push(h)}var m=ye.supportsSwitchingCodecs(e)?"switching":"noswitching";var y=ye.supportsHEVC()?"hevc":"nohevc";var _=fe.codecs[m][y];return s.sort(me.bind(null,e,t,_))}ye.supportsNativeHls=function(){return Y.isNativeHlsSupported()};ye.preferHttps=function(){return Y.preferHttps(window)};ye.supportsHEVC=function(){return Y.isHEVCSupported()};ye.supportsSwitchingCodecs=function(e){return Y.isCodecSwitchingSupported(e)};ye.preferMp4=function(e,t){return r["default"].browser.IS_ANDROID&&r["default"].browser.ANDROID_VERSION<5||le(e,t)};var _e=function(){function e(){this.defaults_={}}var t=e.prototype;t.normalize=function e(t,i,n){var r=a["default"].assign({},this.defaults_);if(t&&!a["default"].isObj(t)){r.id=t}else{a["default"].assign(r,t);if(a["default"].isObj(t.id)){a["default"].assign(r,t.id);if(!t.id.hasOwnProperty("id")){delete r.id}}}if(typeof i==="string"){r.type=i}if(r.type===u){if(!r.q){r.q=r.id}delete r.id}if(typeof t.deliveryConfigId==="string"){r.deliveryConfigId=t.deliveryConfigId}if(typeof n==="string"){r.adConfigId=n}if((r.type===l||r.type===u)&&r.limit===undefined){r.limit="100"}return r};t.setDefaults=function e(t){if(t===null){this.defaults_={}}else{a["default"].assign(this.defaults_,t)}};t.getDefault=function e(t){return a["default"].isObj(this.defaults_)&&this.defaults_[t]||undefined};t.getDefaults=function e(){return a["default"].isObj(this.defaults_)&&a["default"].assign({},this.defaults_)||{}};return e}();function be(e,t,i){return i={path:t,exports:{},require:function(e,t){return Se(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function Se(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Te=be(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){e[n]=i[n]}}}return e};e.exports["default"]=e.exports,e.exports.__esModule=true;return t.apply(this,arguments)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});function Ee(e){var t=e.options_.runtime_.settings;var i=t.videoCloud&&t.videoCloud.bumper;var n=false;var r;return{setSource:function t(a,s){var o=e.playlist().length>0;var l=o&&e.playlist.currentItem()>-1?e.playlist()[e.playlist.currentItem()]:e.mediainfo;var u=i&&(i.id===l.id||i.id==="ref:"+l.referenceId);var d=e.bcPlaylistUi&&e.bcPlaylistUi().options.autoadvance;var c=l.id;var f=l.manifestExpiresAt;var p=function t(){var i=e.paused();e.catalog.get({id:c,type:"video"}).then(function(t){e.catalog.load(t);if(o){l.manifestExpiresAt=t.manifestExpiresAt;l.sources.forEach(function(e,i){e.src=t.sources[i].src})}e.one("canplay",function(){if(!i){e.play()}})}).catch(function(t){e.log.warn(t)})};if(Date.now()>f){p();return}e.one("play",function(){if(Date.now()>f){p();return}});var h=function t(){e.one("play",function(){return e.trigger("bumper-play")});e.one("ended",function(){e.trigger("bumper-ended");n=true})};var v=function t(){e.one("bumper-ended",function(){e.bigPlayButton.hide();e.posterImage.hide();if(r){r.poster="";e.catalog.load(r);if(d){e.playlist.autoadvance(d)}}})};if(i){if(u);else{r=o?l:r||e.mediainfo}if(!n&&!u){e.catalog.get({id:i.id,type:"video"}).then(function(t){t.economics="FREE";t.poster=r.poster;t.name=r.name;t.description=r.description;e.catalog.bumper_=Te(i,{video:t});e.catalog.load(t)})}else if(!n&&u){h();v()}else if(n&&!u){e.on("canplay",function(){e.play();if(o){n=false}})}}s(null,a)}}}var we={production:"https://edge-gsc.api.brightcove.com",staging:"https://edge-gsc.api.staging.brightcove.com",qa:"https://edge-gsc.api.qa.brightcove.com"};var ke={maxRetry:3,intervalRetry:6e4,interval:null};var Ie={MAX_CONCURRENCY:"MAX_CONCURRENCY",TOKEN_REQUIRED:"TOKEN_REQUIRED",INVALID_TOKEN:"INVALID_TOKEN",ACCOUNT_ID:"ACCOUNT_ID",UID:"UID",SESSION_ID:"SESSION_ID",CLIMIT:"CLIMIT",VIDEO_ID:"VIDEO_ID",SESSION_STOPPED:"SESSION_STOPPED",SESSION_EXPIRED:"SESSION_EXPIRED",PLAYBACK_RESTRICTIONS:"PLAYBACK_RESTRICTIONS",TOKEN_VALIDATION:"TOKEN_VALIDATION",SESSION_NOT_FOUND:"SESSION_NOT_FOUND",VIDEO_NOT_FOUND:"VIDEO_NOT_FOUND"};var Ae=function e(t,i){if(!i){i="production"}return we[i]+"/api/v1/accounts/"+t+"/sessions"};var Ce=function e(t){var i=t.statusCode,n=t.body;var a=null;if(i<400||i>499){return a}var s=n.error;var o=s.sub_code||s.code;switch(o){case Ie.MAX_CONCURRENCY:a={code:"GSC_ERR_DENIED_BY_CONCURRENCY_LIMITING"};r["default"].log.error("GSC heartbeat max concurrency limit.",t);break;case Ie.TOKEN_REQUIRED:a={code:"GSC_TOKEN_REQUIRED"};r["default"].log.error("GSC JWT is required.",t);break;case Ie.INVALID_TOKEN:a={code:"GSC_INVALID_TOKEN"};r["default"].log.error("GSC JWT is required.",t);break;case Ie.ACCOUNT_ID:a={code:"GSC_MISSING_FIELD_ACCOUNT_ID"};r["default"].log.error("GSC AccountID is required.",t);break;case Ie.UID:a={code:"GSC_MISSING_FIELD_UID"};r["default"].log.error("GSC UID is required in JWT.",t);break;case Ie.SESSION_ID:a={code:"GSC_MISSING_FIELD_SESSION_ID"};r["default"].log.error("GSC SID is required in JWT.",t);break;case Ie.CLIMIT:a={code:"GSC_MISSING_FIELD_CLIMIT"};r["default"].log.error("GSC CLIMIT is required in JWT.",t);break;case Ie.VIDEO_ID:a={code:"GSC_MISSING_FIELD_VIDEO_ID"};r["default"].log.error("GSC videoId is required.",t);break;case Ie.SESSION_STOPPED:a={code:"GSC_SESSION_STOPPED"};r["default"].log.error("GSC session stopped.",t);break;case Ie.SESSION_EXPIRED:a={code:"GSC_SESSION_EXPIRED"};r["default"].log.error("GSC session expired.",t);break;case Ie.PLAYBACK_RESTRICTIONS:a={code:"GSC_PLAYBACK_RESTRICTIONS"};r["default"].log.error("GSC playback restrictions not met.",t);break;case Ie.SESSION_NOT_FOUND:a={code:"GSC_SESSION_NOT_FOUND"};r["default"].log.error("GSC session not found.",t);break;case Ie.VIDEO_NOT_FOUND:a={code:"GSC_VIDEO_NOT_FOUND"};r["default"].log.error("GSC video not found",t);break}return a};var je=function(){function e(e,t){var i=this;if(t===void 0){t={}}this.player=e;this.timerId=null;this.interval=null;this.sid=null;this.retryCount=0;this.options=r["default"].mergeOptions(ke,t);this.player.on("ended",function(){return i.stop()});this.player.one("play",function(){return i.init()})}var t=e.prototype;t.init=function e(){this.onTimerTick()};t.onTimerTick=function e(){var t=this;this.send(function(e){var i=e.statusCode,n=e.body;if(i>=500){t.player.log.error("GSC Heartbeat failed to contact server");t.retry();return}if(i===204){t.player.log.warn("Stream Concurrency feature has not been enabled for this account");return}var r=Ce(e);if(r){return t.terminatePlayback(r)}t.interval=n.heartbeat_interval;if(!t.timerId){t.timerId=t.player.setInterval(function(){return t.onTimerTick()},t.interval);t.retryCount=0}t.sid=n.sid})};t.terminatePlayback=function e(t){var i=this;this.player.one("playerreset",function(){return i.player.error(t)});this.player.reset()};t.retry=function e(){var t=this;var i=this.options,n=i.maxRetry,r=i.intervalRetry;if(this.retryCount>=n){this.terminatePlayback({code:"GSC_SESSION_STOPPED"});return}this.clear();this.retryCount++;this.player.setTimeout(function(){return t.onTimerTick()},r)};t.send=function e(t){var i=this;var n=this.player.catalog;var a=n.getCatalogParamDefault_("accountId");var s=n.getCatalogParamDefault_("bcovAuthToken");var o=n.getCatalogParamDefault_("env");var l={Authorization:"Bearer "+s};var u={url:Ae(a,o),method:"POST",json:true,headers:l,body:{video:this.player.mediainfo?this.player.mediainfo.id||"":""}};r["default"].xhr(u,function(e,n){if(e){r["default"].log.error("GSC Heartbeat failed to perform request.",e);i.retry();return}t(n)})};t.clear=function e(){if(!this.timerId){return}this.player.clearInterval(this.timerId);this.timerId=null;this.interval=null;this.sid=null};t.stop=function e(t){var i=this;if(t===void 0){t=null}this.isCasting=t;r["default"].log.debug("GSC: about to stop and clear heartbeat");var n=this.player.catalog;var a=n.getCatalogParamDefault_("accountId");var s=n.getCatalogParamDefault_("bcovAuthToken");var o=n.getCatalogParamDefault_("env");var l=Ae(a,o);var u={Authorization:"Bearer "+s};var d={url:l,method:"DELETE",json:true,headers:u};this.clear();r["default"].xhr(d,function(e,n,a){if(e){r["default"].log.error("GSC failed request for stop session.",e)}var s=Ce(n);if(s){i.player.error(s)}if(!t){i.player.one("play",function(){return i.init()})}})};t.getSessionId=function e(){return this.sid||""};return e}();var Pe=/([A-Za-z0-9])_([A-Za-z0-9])/g;var xe=function e(t){return t.replace(Pe,function(e,t,i){return t+i.toUpperCase()})};var Le=function e(t){var i=r["default"].mergeOptions(t);Object.keys(i).filter(function(e){return e.match(Pe)}).forEach(function(e){i[xe(e)]=i[e]});return i};var Oe=function e(t,i){if(!i){return}t.mediainfo=Le(i);var n=Boolean(t.el().ownerDocument.querySelector(".bc-iframe"));var r=t.mediainfo.name;if(n&&r){document.title=r}};var De=function e(t,i){if(!i){return}t.playlistinfo=Le(i);delete t.playlistinfo.videos};var Re=function e(t,i){return(t.type==="application/vnd.apple.mpegurl"||t.type==="application/dash+xml")&&i.toLowerCase()==="html5"};var Ne=function e(t,i){if(!i){return t}var n=t;if(i.preferMp4){n=t.filter(function(e){return e.container&&e.container.toLowerCase()==="mp4"});if(Array.isArray(i.preferMp4)){var r=i.preferMp4,s=r[0],o=r[1];n=n.sort(function(e,t){var i=e.hasOwnProperty(s)?e[s]:null;var n=t.hasOwnProperty(s)?t[s]:null;if(i===null||n===null||!a["default"].isNum(i)||!a["default"].isNum(n)){return 0}if(a["default"].isNonEmptyStr(o)&&o.toLowerCase()==="asc"){return i-n}return n-i})}}return n};function Me(e){var t=this;var i=function i(n){if(n&&n.accountId){t.trigger({type:"usage",name:"catalog-get-account-id"});return n.accountId}if(typeof t.getAccountId==="function"){return t.getAccountId()}return e.accountId||t.options_["data-account"]};var n=new _e;var s={};var c;var f={policyKey:t.options_["data-policy-key"],bcovAuthToken:t.options_["data-bcov-auth-token"],watermarkingToken:t.options_["data-watermarking-token"]};var p=Object.keys(f).reduce(function(e,t){if(f[t]){e[t]=f[t]}return e},{});["adConfigId","allowPlayreadyInChromiumEdge","baseUrl","bcovAuthToken","deliveryConfigId","env","policyKey","sourceSelectionRules","watermarkingToken"].forEach(function(t){if(e.hasOwnProperty(t)){p[t]=e[t]}});var v=null;if(e.streamConcurrency){v=new je(t,e)}n.setDefaults(p);r["default"].hook("beforeerror",g);m(t);t.on("loadstart",function(){if(!a["default"].isFn(t.playlist)||!t.playlist()||!t.playlist().length){return}Oe(t,t.playlist()[t.playlist.indexOf(t.currentSrc())])});t.on("dispose",function(){return I(t)});var y=function e(i,n){var a=oe.getFairPlaySources(i);if(!a.length){n();return}oe.resolveFairPlayCertificates(t,a,function(e){if(e){r["default"].log("Unable to resolve FairPlay certificates",e)}n()})};var _=function e(i){if(!t.hasPlugin||!t.hasPlugin("ssai")||!i){return i}return i.map(function(e){if(e.vmap){e.type=r["default"].getPlugin("ssai").MIME_TYPE;e.originalHlsSource=e.src;e.src=e.vmap}return e})};var S=function e(t){if(!t.variants){return t}var i=t.name,n=t.description,a=t.longDescription,s=t.customFields;var o=null;var l={name:i,description:n,longDescription:a,language:o};l.customFields=r["default"].mergeOptions(s);var u=t.variants.map(Le);t.variants=[].concat(u,[l]);return t};var T=function e(t){if(!t){return}if(Array.isArray(t)){c=t.map(function(e){return S(Le(e))})}else{c=S(Le(t))}};var w=function e(t,i){if(!t||!t.variants){return r["default"].mergeOptions(t)}var n;if(i){i=i.toLowerCase()}for(var a=0;a<t.variants.length;a++){if(t.variants[a].language===null){n=t.variants[a]}if(t.variants[a].language&&t.variants[a].language.toLowerCase()===i){n=t.variants[a];break}}return r["default"].mergeOptions(t,n)};var C=function e(i){var n=function e(){var n=false;Oe(t,i);T(i);if(le(t)){var a=t.el().querySelector("video");a.setAttribute("crossorigin","anonymous")}t.el().setAttribute("data-video-id",i.id);if(window.bc&&!window.bc.disposedAfterPreroll_){t.poster(i.poster)}if(i.sources){for(var s=0;s<i.sources.length;s++){if(i.sources[s].vmap!==undefined){n=true;break}}}if(n&&t.onceux!==undefined){t.onceux.loadSourcesFromCatalog(i.sources)}else{if(n){i.sources=_(i.sources)}t.src(i.sources)}A(t,i);if(i.textTracks){var o=new RegExp("^"+window.location.protocol);var l=new RegExp("^https:");var u=null;var d=null;for(var c=0;c<i.textTracks.length;c++){var f=i.textTracks[c];if(f.label==="thumbnails"){if(t.usingPlugin("thumbnails")&&f.width<=480){if(o.test(f.src)){u=f}else if(l.test(f.src)){d=f}}}else{t.addRemoteTextTrack(f)}}var p=u||d;if(p){t.addRemoteTextTrack({src:p.src,label:"thumbnails",kind:"metadata",mode:"hidden"},false)}if(i.textTracks.length>0&&r["default"].browser.IS_ANY_SAFARI||r["default"].browser.IS_IOS){t.crossOrigin("anonymous")}}};y(i.sources,n)};var P=function e(i){var n=function e(){t.on("beforeplaylistitem",function(e,i){return A(t,i)});t.on("playlistchange",function(){return T(t.playlist())});for(var n=0;n<i.length;n++){i[n].sources=_(i[n].sources);var r=i[n].textTracks;if(r&&r.length>0){i[n].textTracks=r.filter(function(e){return e.label!=="thumbnails"})}}var a=i.startingIndex||0;T(i);Oe(t,i[a]);De(t,t.catalog.data);if(le(t)){var s=t.el().querySelector("video");s.setAttribute("crossorigin","anonymous")}t.playlist(i,a)};var r=i.filter(function(e){return e.sources}).reduce(function(e,t){return e.concat(t.sources)},[]);y(r,n)};var x=function i(n,r){if(r===void 0){r={}}var a;var s=Le(n);if(s.sources){s.rawSources_=s.sources;s.sources=(e.getSources||ye)(t,s,r);if(r.sourceSelectionRules){s.sources=Ne(s.sources,r.sourceSelectionRules)}a=t.selectSource(s.sources)}if(s.posterSources){s.poster=j(s.posterSources)}if(s.thumbnailSources){s.thumbnail=j(s.thumbnailSources)}if(s.textTracks){var o=a&&Re(a.source,a.tech);s.textTracks=s.textTracks.filter(function(e){return!(o&&e.in_band_metadata_track_dispatch_type!==undefined)}).map(function(e){if(e.sources){e.src=j(e.sources)}return e})}if(s.duration){s.duration=s.duration*.001}if(s.cuePoints){for(var l=0;l<s.cuePoints.length;l++){k(s,l)}}if(s.manifestUrlTtl){s.manifestExpiresAt=Date.now()+s.manifestUrlTtl*1e3}return s};t.catalog={transformCatalogError:b,transformVideoResponse:x,mediaCuePointsTrack:function e(){if(!t.catalog.mediaCuePointsTrack.hasWarned_){r["default"].log.warn("player.catalog.mediaCuePointsTrack() is deprecated, please use player.mediaCuePointsTrack() instead!");t.catalog.mediaCuePointsTrack.hasWarned_=true}return t.mediaCuePointsTrack()},get:function e(l,d){l=n.normalize(l);if(t.catalog.tveToken){l.tveToken=t.catalog.tveToken}s=l;t.catalog.loading++;var c;var f=new a["default"].Promise(function(e,n){c=N(t,i(l),l,function(i,a){t.catalog.loading--;if(l.type===u&&a&&(!a.videos||!a.videos.length)){i=new Error("No videos returned from search")}if(i){i.data=a;t.catalog.error=i;return n(i)}if(!a){return e(null)}t.catalog.data=r["default"].mergeOptions({},a);if(l.adConfigId){t.catalog.data.adConfigId=l.adConfigId}var s=["allowPlayreadyInChromiumEdge","bcovAuthToken","policyKey","sourceSelectionRules"].reduce(function(e,t){if(l.hasOwnProperty(t)){e[t]=l[t]}return e},{});if(l.watermarkingToken){s.watermarkingToken=l.watermarkingToken}if(l.type===o){t.catalog.sources=a.sources;t.catalog.poster=a.poster;return e(x(a,s))}var d=a.videos.filter(function(e){return!e.hasOwnProperty("errors")}).map(function(e){return x(e,s)});if(d.length){return e(d)}return n(new Error("No videos returned from playlist"))})});if(!a["default"].isFn(d)){return f}f.then(function(e){d(null,e)}).catch(function(e){d(e,e.data)});return c},getVideo:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(n.normalize(t,o,r),i)},getSequence:function e(i,a,s){var o=this;if(a===void 0){a=function e(){}}if(!Array.isArray(i)){i=[i]}i=i.filter(function(e){if(!/^(search|video|playlist)$/i.test(e.type)){r["default"].log.error("invalid sequence type, please use search, video, or playlist. for:",e);return false}return true});if(!i.length){a(new Error("No valid sequences"),null);return}var l=i.length;var u=new Array(i.length);return i.map(function(e,d){return o.get(n.normalize(e,e.type,s),function(n,s){l--;if(n){r["default"].log.error("failed to request sequence",e);r["default"].log.error("with error",n)}else if(s){if(!Array.isArray(s)){s=[s]}u[d]=s}if(l===0){t.catalog.data=u;var o=u.reduce(function(e,t){return t&&e.concat(t)},[]);if(!o.length){a(new Error("No data was loaded for the sequence "+JSON.stringify(i),null))}else{a(null,o)}}},s)})},getLazySequence:function e(i,n,r){var a=this;if(n===void 0){n=function e(){}}if(!Array.isArray(i)){i=[i]}var s=function e(t){return a.getSequence(i.shift(),function(n,r){if((n||!r)&&i&&i.length){return e(t)}t(n,r)},r)};var o=function e(){if(!i.length){t.off("playlistitem",e);return}var n=t.playlist;var r=n.currentIndex&&n.currentIndex()||n.currentItem&&n.currentItem()||0;var a=n.lastIndex&&n.lastIndex()||n().length-1||0;if(r!==a){return}s(function(e,i){if(e||!i){return}t.playlist(t.playlist().concat(i),r)})};t.on("playlistitem",o);return s(n)},getSearch:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(n.normalize(t,u,r),i)},getPlaylist:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(n.normalize(t,l,r),i)},load:function e(t){if(Array.isArray(t)){P(t)}else{C(t)}},autoFindAndLoadMedia:function e(i){var r=h(i,t);if(!r){return}i.playlistVideoId=r.playlistVideoId;var a=E(r.type,t,i);if(r.type===d){this.getLazySequence(r.id,a)}else{this.get(n.normalize(r),a)}return r},setBcovAuthToken:function e(t){if(t!==null&&!a["default"].isNonEmptyStr(t)){r["default"].log.warn("Authorization Token must be a valid string or null");return}n.setDefaults({bcovAuthToken:t})},setPolicyKey:function e(t){if(t!==null&&!a["default"].isNonEmptyStr(t)){r["default"].log.warn("Policy key must be a valid string or null");return}n.setDefaults({policyKey:t})},setWatermarkingToken:function e(t){if(t!==null&&!a["default"].isNonEmptyStr(t)){r["default"].log.warn("Watermarking token must be a valid string or null");return}n.setDefaults({watermarkingToken:t})},getWatermarkingToken:function e(){return n.getDefault("watermarkingToken")},getCatalogParamDefault_:function e(t){if(t==="accountId"){return i()}return n.getDefault(t)},getLastParams:function e(){return r["default"].mergeOptions(s)},getLastData:function e(){return r["default"].mergeOptions(t.catalog.data)},getMetadata:function e(i){var n=i?i:{},a=n.type,s=n.lang;if(!c){r["default"].log.debug("getMetadata() called with no cached metadata");return a===l?[]:{}}var o=t.usingPlugin("playlist")?t.playlist():[];if(a===l&&o.length){return c.map(function(e){return w(e,s)})}if(o.length&&Array.isArray(c)){var u=t.playlist.indexOf(t.currentSrc());if(u===-1){return{}}return w(c[u],s)}return w(c,s)},getHeartbeat:function e(){return v},bumper:function e(){return this.bumper_||null},loading:0}}r["default"].use("*",Ee);r["default"].registerPlugin("catalog",Me);Me.VERSION=s;e.applySourceSelectionRules=Ne;e.default=Me;Object.defineProperty(e,"__esModule",{value:true})})})();(function(){if(videojs.getPlugin("dock")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/document"),require("video.js")):typeof define==="function"&&define.amd?define(["exports","global/document","video.js"],t):t(e.videojsDock={},e.document,e.videojs)})(this,function(e,t,i){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=1;var a=function e(){return r++};var s="2.2.0";var o=i.dom||i;var l=i.registerPlugin||i.plugin;var u=i.getComponent("Component");var d=function(e){n(i,e);function i(t,i){var n;n=e.call(this,t,i)||this;var r=t.$(".vjs-tech");r.setAttribute("aria-labelledby",n.title.id);r.setAttribute("aria-describedby",n.description.id);return n}var r=i.prototype;r.createEl=function t(){var i=o.createEl("div",{className:"vjs-dock-title",title:this.options_.title,innerHTML:this.options_.title},{id:"vjs-dock-title-"+a()});var n=o.createEl("div",{className:"vjs-dock-description",title:this.options_.description,innerHTML:this.options_.description},{id:"vjs-dock-description-"+a()});var r=e.prototype.createEl.call(this,"div",{className:"vjs-dock-text"});this.title=i;this.description=n;r.appendChild(i);r.appendChild(n);return r};r.update=function e(i,n){this.title.innerHTML="";this.description.innerHTML="";this.title.appendChild(t.createTextNode(i));this.description.appendChild(t.createTextNode(n))};return i}(u);var c=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-dock-shelf"})};return t}(u);i.registerComponent("Title",d);i.registerComponent("Shelf",c);var f=function e(t){var i=this;var n=t||{};var r={title:{title:n.title||"",description:n.description||""}};var a=this.title;var s=this.shelf;this.addClass("vjs-dock");this.ready(function(){var e=i.children().indexOf(i.getChild("bigPlayButton"));var t=e>0?e-1:null;if(!s){s=i.shelf=i.addChild("shelf",r,t)}if(!a){a=i.title=i.addChild("title",r.title,t)}else{a.update(r.title.title,r.title.description)}i.one(a,"dispose",function(){this.title=null});i.one(s,"dispose",function(){this.shelf=null});var n=a.title;var o=a.description;var l=n.id;var u=o.id;if(l&&n.textContent){i.setAttribute("aria-labelledby",i.id()+" "+l)}if(u&&o.textContent){i.setAttribute("aria-describedby",u)}},true)};f.VERSION=s;l("dock",f);e.Title=d;e.Shelf=c;e.default=f;Object.defineProperty(e,"__esModule",{value:true})})})();(function(){if(videojs.getPlugin("playlist")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof define==="function"&&define.amd?define(["video.js"],t):(e=e||self,e.videojsPlaylist=t(e.videojs))})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var i=function e(t){var i=t.playlist.autoadvance_;if(i.timeout){t.clearTimeout(i.timeout)}if(i.trigger){t.off("ended",i.trigger)}i.timeout=null;i.trigger=null};var n=function e(n,r){i(n);if(!t(r)){n.playlist.autoadvance_.delay=null;return}n.playlist.autoadvance_.delay=r;n.playlist.autoadvance_.trigger=function(){var t=function t(){return e(n,r)};n.one("play",t);n.playlist.autoadvance_.timeout=n.setTimeout(function(){i(n);n.off("play",t);n.playlist.next()},r*1e3)};n.one("ended",n.playlist.autoadvance_.trigger)};var r=function e(t){var i=t.remoteTextTracks();var n=i&&i.length||0;while(n--){t.removeRemoteTextTrack(i[n])}};var a=function e(t,i){var a=!t.paused()||t.ended();t.trigger("beforeplaylistitem",i.originalValue||i);if(i.playlistItemId_){t.playlist.currentPlaylistItemId_=i.playlistItemId_}t.poster(i.poster||"");t.src(i.sources);r(t);t.ready(function(){(i.textTracks||[]).forEach(t.addRemoteTextTrack.bind(t));t.trigger("playlistitem",i.originalValue||i);if(a){var e=t.play();if(typeof e!=="undefined"&&typeof e.then==="function"){e.then(null,function(e){})}}n(t,t.playlist.autoadvance_.delay)});return t};var s=function e(t){return!!t&&typeof t==="object"};var o=function e(t){var i=[];var n;t.forEach(function(e){if(!s(e)){n=Object(e);n.originalValue=e}else{n=e}i.push(n)});return i};var l=function e(t){var i=1;t.forEach(function(e){e.playlistItemId_=i++})};var u=function e(t,i){for(var n=0;n<t.length;n++){if(t[n].playlistItemId_===i){return n}}return-1};var d=function e(t,i){var n=t;var r=i;if(typeof t==="object"){n=t.src}if(typeof i==="object"){r=i.src}if(/^\/\//.test(n)){r=r.slice(r.indexOf("//"))}if(/^\/\//.test(r)){n=n.slice(n.indexOf("//"))}return n===r};var c=function e(t,i){for(var n=0;n<t.length;n++){var r=t[n].sources;if(Array.isArray(r)){for(var a=0;a<r.length;a++){var s=r[a];if(s&&d(s,i)){return n}}}}return-1};var f=function e(t){var i=-1;var n=t.length-1;while(++i<t.length){var r=i+Math.floor(Math.random()*(n-i+1));var a=t[r];t[r]=t[i];t[i]=a}return t};function p(t,r,d){if(d===void 0){d=0}var p=null;var h=false;var v=t.playlist=function(e,i){if(i===void 0){i=0}if(h){throw new Error("do not call playlist() during a playlist change")}if(Array.isArray(e)){var n=Array.isArray(p)?p.slice():null;var r=e.slice();p=r.slice();if(p.filter(function(e){return s(e)}).length!==p.length){p=o(p)}l(p);h=true;t.trigger({type:"duringplaylistchange",nextIndex:i,nextPlaylist:r,previousIndex:v.currentIndex_,previousPlaylist:n||[]});h=false;if(i!==-1){v.currentItem(i)}if(n){t.setTimeout(function(){t.trigger("playlistchange")},0)}}return p.map(function(e){return e.originalValue||e}).slice()};t.on("loadstart",function(){if(v.currentItem()===-1){i(t)}});v.currentIndex_=-1;v.player_=t;v.autoadvance_={};v.repeat_=false;v.currentPlaylistItemId_=null;v.currentItem=function(e){if(h){return v.currentIndex_}if(typeof e==="number"&&v.currentIndex_!==e&&e>=0&&e<p.length){v.currentIndex_=e;a(v.player_,p[v.currentIndex_]);return v.currentIndex_}var t=v.player_.currentSrc()||"";if(v.currentPlaylistItemId_){var i=u(p,v.currentPlaylistItemId_);var n=p[i];if(n&&Array.isArray(n.sources)&&c([n],t)>-1){v.currentIndex_=i;return v.currentIndex_}v.currentPlaylistItemId_=null}v.currentIndex_=v.indexOf(t);return v.currentIndex_};v.contains=function(e){return v.indexOf(e)!==-1};v.indexOf=function(e){if(typeof e==="string"){return c(p,e)}var t=Array.isArray(e)?e:e.sources;for(var i=0;i<t.length;i++){var n=t[i];if(typeof n==="string"){return c(p,n)}else if(n.src){return c(p,n.src)}}return-1};v.currentIndex=function(){return v.currentItem()};v.lastIndex=function(){return p.length-1};v.nextIndex=function(){var e=v.currentItem();if(e===-1){return-1}var t=v.lastIndex();if(v.repeat_&&e===t){return 0}return Math.min(e+1,t)};v.previousIndex=function(){var e=v.currentItem();if(e===-1){return-1}if(v.repeat_&&e===0){return v.lastIndex()}return Math.max(e-1,0)};v.first=function(){if(h){return}var e=v.currentItem(0);if(p.length){return p[e].originalValue||p[e]}v.currentIndex_=-1};v.last=function(){if(h){return}var e=v.currentItem(v.lastIndex());if(p.length){return p[e].originalValue||p[e]}v.currentIndex_=-1};v.next=function(){if(h){return}var e=v.nextIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return p[t].originalValue||p[t]}};v.previous=function(){if(h){return}var e=v.previousIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return p[t].originalValue||p[t]}};v.autoadvance=function(e){n(v.player_,e)};v.repeat=function(t){if(t===undefined){return v.repeat_}if(typeof t!=="boolean"){e.log.error("videojs-playlist: Invalid value for repeat",t);return}v.repeat_=!!t;return v.repeat_};v.sort=function(e){if(!p.length){return}p.sort(e);if(h){return}t.trigger("playlistsorted")};v.reverse=function(){if(!p.length){return}p.reverse();if(h){return}t.trigger("playlistsorted")};v.shuffle=function(e){var i=e===void 0?{}:e,n=i.rest;var r=0;var a=p;if(n){r=v.currentIndex_+1;a=p.slice(r)}if(a.length<=1){return}f(a);if(n){var s;(s=p).splice.apply(s,[r,a.length].concat(a))}if(h){return}t.trigger("playlistsorted")};if(Array.isArray(r)){v(r.slice(),d)}else{p=[]}return v}var h="4.3.1";var v=e.registerPlugin||e.plugin;var g=function e(t,i){p(this,t,i)};v("playlist",g);g.VERSION=h;return g})})();(function(){if(videojs.getPlugin("ima3")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(require("video.js"),require("global/window"),require("global/document")):typeof define==="function"&&define.amd?define(["video.js","global/window","global/document"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.videojs,e.window,e.document))})(this,function(e,t,i){"use strict";function n(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var r=n(e);var a=n(t);var s=n(i);var o="6.9.0";function l(e){return{disableNextSnapshotRestore:false,_contentEnding:false,_contentHasEnded:false,_hasThereBeenALoadStartDuringPlayerLife:false,_hasThereBeenALoadedData:false,_hasThereBeenALoadedMetaData:false,_inLinearAdMode:false,_shouldBlockPlay:false,_playBlocked:false,_playRequested:false,adType:null,VERSION:o,reset:function t(){e.ads.disableNextSnapshotRestore=false;e.ads._contentEnding=false;e.ads._contentHasEnded=false;e.ads.snapshot=null;e.ads.adType=null;e.ads._hasThereBeenALoadedData=false;e.ads._hasThereBeenALoadedMetaData=false;e.ads._cancelledPlay=false;e.ads._shouldBlockPlay=false;e.ads._playBlocked=false;e.ads.nopreroll_=false;e.ads.nopostroll_=false;e.ads._playRequested=false},startLinearAdMode:function t(){e.ads._state.startLinearAdMode()},endLinearAdMode:function t(){e.ads._state.endLinearAdMode()},skipLinearAdMode:function t(){e.ads._state.skipLinearAdMode()},stitchedAds:function e(t){if(t!==undefined){r["default"].log.warn("Using player.ads.stitchedAds() as a setter is deprecated, "+"it should be set as an option upon initialization of contrib-ads.");this.settings.stitchedAds=!!t}return this.settings.stitchedAds},videoElementRecycled:function t(){if(e.ads.shouldPlayContentBehindAd(e)){return false}if(!this.snapshot){throw new Error("You cannot use videoElementRecycled while there is no snapshot.")}var i=e.tech_.src()!==this.snapshot.src;var n=e.currentSrc()!==this.snapshot.currentSrc;return i||n},isLive:function t(i){if(i===void 0){i=e}if(typeof i.ads.settings.contentIsLive==="boolean"){return i.ads.settings.contentIsLive}else if(i.duration()===Infinity){return true}else if(r["default"].browser.IOS_VERSION==="8"&&i.duration()===0){return true}return false},shouldPlayContentBehindAd:function t(i){if(i===void 0){i=e}if(!i){throw new Error("shouldPlayContentBehindAd requires a player as a param")}else if(!i.ads.settings.liveCuePoints){return false}else{return!r["default"].browser.IS_IOS&&!r["default"].browser.IS_ANDROID&&i.duration()===Infinity}},shouldTakeSnapshots:function t(i){if(i===void 0){i=e}return!this.shouldPlayContentBehindAd(i)&&!this.stitchedAds()},isInAdMode:function e(){return this._state.isAdState()},isWaitingForAdBreak:function e(){return this._state.isWaitingForAdBreak()},isContentResuming:function e(){return this._state.isContentResuming()},isAdPlaying:function e(){return this._state.inAdBreak()},inAdBreak:function e(){return this._state.inAdBreak()},removeNativePoster:function t(){var i=e.$(".vjs-tech");if(i){i.removeAttribute("poster")}},debug:function e(){if(this.settings.debug){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}if(i.length===1&&typeof i[0]==="string"){r["default"].log("ADS: "+i[0])}else{r["default"].log.apply(r["default"],["ADS:"].concat(i))}}}}}var u=function e(t,i){i.isImmediatePropagationStopped=function(){return true};i.cancelBubble=true;i.isPropagationStopped=function(){return true}};var d=function e(t,i,n){u(t,n);t.trigger({type:i+n.type,originalEvent:n})};var c=function e(t,i){if(t.ads.isInAdMode()){if(t.ads.isContentResuming()){if(t.ads._contentEnding){d(t,"content",i)}}else{d(t,"ad",i)}}};var f=function e(t,i){if(t.ads.isInAdMode()){if(t.ads.isContentResuming()){u(t,i);t.trigger("resumeended")}else{d(t,"ad",i)}}else if(!t.ads._contentHasEnded&&!t.ads.stitchedAds()){d(t,"content",i);t.trigger("readyforpostroll")}};var p=function e(t,i){if(i.type==="loadstart"&&!t.ads._hasThereBeenALoadStartDuringPlayerLife||i.type==="loadeddata"&&!t.ads._hasThereBeenALoadedData||i.type==="loadedmetadata"&&!t.ads._hasThereBeenALoadedMetaData){return}else if(t.ads.inAdBreak()){d(t,"ad",i)}else if(t.currentSrc()!==t.ads.contentSrc){return}else{d(t,"content",i)}};var h=function e(t,i){if(t.ads.inAdBreak()){d(t,"ad",i)}else if(t.ads.isContentResuming()){d(t,"content",i)}};function v(e){if(e.type==="playing"){c(this,e)}else if(e.type==="ended"){f(this,e)}else if(e.type==="loadstart"||e.type==="loadeddata"||e.type==="loadedmetadata"){p(this,e)}else if(e.type==="play"){h(this,e)}else if(this.ads.isInAdMode()){if(this.ads.isContentResuming()){d(this,"content",e)}else{d(this,"ad",e)}}}function g(e){e.ads.contentSrc=e.currentSrc();e.ads._seenInitialLoadstart=false;var t=function t(){if(!e.ads.inAdBreak()){var i=e.currentSrc();if(i!==e.ads.contentSrc){if(e.ads._seenInitialLoadstart){e.trigger({type:"contentchanged"})}e.trigger({type:"contentupdate",oldValue:e.ads.contentSrc,newValue:i});e.ads.contentSrc=i}e.ads._seenInitialLoadstart=true}};e.on("loadstart",t)}var m={};var y=function e(t){if(r["default"].dom.isInFrame()&&typeof a["default"].__tcfapi!=="function"){var i=a["default"];var n;var s={};while(i){try{if(i.frames.__tcfapiLocator){n=i;break}}catch(e){}if(i===a["default"].top){break}i=i.parent}if(!n){return}a["default"].__tcfapi=function(e,t,i,r){var a=Math.random()+"";var o={__tcfapiCall:{command:e,parameter:r,version:t,callId:a}};s[a]=i;n.postMessage(o,"*")};a["default"].addEventListener("message",function(e){var t={};try{t=typeof e.data==="string"?JSON.parse(e.data):e.data}catch(e){}var i=t.__tcfapiReturn;if(i){if(typeof s[i.callId]==="function"){s[i.callId](i.returnValue,i.success);s[i.callId]=null}}},false)}};var _=function e(){y();if(typeof a["default"].__tcfapi==="function"){a["default"].__tcfapi("addEventListener",2,function(e,t){if(t){m=e}})}};var b=function e(t,i){if(i){return encodeURIComponent(t)}return t};var S=function e(t,i,n){if(t&&t[n]){var r=t[n];var a=Object.keys(r);for(var s=0;s<a.length;s++){var o="{mediainfo."+n+"."+a[s]+"}";i[o]=r[a[s]]}}};function T(e,t,i){var n=this;var o={};e=e.replace(/{([^}=]+)=([^}]+)}/g,function(e,t,i){o["{"+t+"}"]=i;return"{"+t+"}"});if(t===undefined){t=false}var l={};if(i!==undefined){l=i}l["{player.id}"]=this.options_["data-player"]||this.id_;l["{player.height}"]=this.currentHeight();l["{player.width}"]=this.currentWidth();l["{mediainfo.id}"]=this.mediainfo?this.mediainfo.id:"";l["{mediainfo.name}"]=this.mediainfo?this.mediainfo.name:"";l["{mediainfo.duration}"]=this.mediainfo?this.mediainfo.duration:"";l["{player.duration}"]=this.duration();l["{player.pageUrl}"]=r["default"].dom.isInFrame()?s["default"].referrer:a["default"].location.href;l["{playlistinfo.id}"]=this.playlistinfo?this.playlistinfo.id:"";l["{playlistinfo.name}"]=this.playlistinfo?this.playlistinfo.name:"";l["{timestamp}"]=(new Date).getTime();l["{document.referrer}"]=s["default"].referrer;l["{window.location.href}"]=a["default"].location.href;l["{random}"]=Math.floor(Math.random()*1e12);["description","tags","reference_id","ad_keys"].forEach(function(e){if(n.mediainfo&&n.mediainfo[e]){l["{mediainfo."+e+"}"]=n.mediainfo[e]}else if(o["{mediainfo."+e+"}"]){l["{mediainfo."+e+"}"]=o["{mediainfo."+e+"}"]}else{l["{mediainfo."+e+"}"]=""}});S(this.mediainfo,l,"custom_fields");S(this.mediainfo,l,"customFields");Object.keys(m).forEach(function(e){l["{tcf."+e+"}"]=m[e]});l["{tcf.gdprAppliesInt}"]=m.gdprApplies?1:0;for(var u in l){e=e.split(u).join(b(l[u],t))}e=e.replace(/{pageVariable\.([^}]+)}/g,function(e,i){var n;var s=a["default"];var l=i.split(".");for(var u=0;u<l.length;u++){if(u===l.length-1){n=s[l[u]]}else{s=s[l[u]]}}var d=typeof n;if(n===null){return"null"}else if(n===undefined){if(o["{pageVariable."+i+"}"]){return o["{pageVariable."+i+"}"]}r["default"].log.warn('Page variable "'+i+'" not found');return""}else if(d!=="string"&&d!=="number"&&d!=="boolean"){r["default"].log.warn('Page variable "'+i+'" is not a supported type');return""}return b(String(n),t)});for(var d in o){e=e.replace(d,o[d])}return e}var E={};E.processMetadataTracks=function(e,t){var i=e.textTracks();var n=function i(n){if(n.kind==="metadata"){e.ads.cueTextTracks.setMetadataTrackMode(n);t(e,n)}};for(var r=0;r<i.length;r++){n(i[r])}i.addEventListener("addtrack",function(e){n(e.track)})};E.setMetadataTrackMode=function(e){return};E.getSupportedAdCue=function(e,t){return t};E.isSupportedAdCue=function(e,t){return true};E.getCueId=function(e,t){return t.id};var w=function e(t,i){return i!==undefined&&t.ads.includedCues[i]};var k=function e(t,i){if(i!==undefined&&i!==""){t.ads.includedCues[i]=true}};E.processAdTrack=function(e,t,i,n){e.ads.includedCues={};for(var a=0;a<t.length;a++){var s=t[a];var o=this.getSupportedAdCue(e,s);if(!this.isSupportedAdCue(e,s)){r["default"].log.warn("Skipping as this is not a supported ad cue.",s);return}var l=this.getCueId(e,s);var u=s.startTime;if(w(e,l)){r["default"].log("Skipping ad already seen with ID "+l);return}if(n){n(e,o,l,u)}i(e,o,l,u);k(e,l)}};function I(e,t){if(t){r["default"].log("Using cancelContentPlay to block content playback")}e.on("play",A)}function A(){if(this.ads._shouldBlockPlay===false){return}if(!this.paused()){this.ads.debug("Playback was canceled by cancelContentPlay");this.pause()}this.ads._cancelledPlay=true}var C={};var j=r["default"];C.isMiddlewareMediatorSupported=function(){if(j.browser.IS_IOS||j.browser.IS_ANDROID){return false}else if(j.use&&j.middleware&&j.middleware.TERMINATOR){return true}return false};C.playMiddleware=function(e){return{setSource:function e(t,i){i(null,t)},callPlay:function t(){if(e.ads&&e.ads._shouldBlockPlay===true){e.ads.debug("Using playMiddleware to block content playback");e.ads._playBlocked=true;return j.middleware.TERMINATOR}},play:function t(i,n){if(e.ads&&e.ads._playBlocked&&i){e.ads.debug("Play call to Tech was terminated.");e.trigger("play");e.addClass("vjs-has-started");e.ads._playBlocked=false}else if(n&&n.catch){n.catch(function(t){if(t.name==="NotAllowedError"&&!r["default"].browser.IS_SAFARI){e.trigger("pause")}})}}}};C.testHook=function(e){j=e};var P=C.playMiddleware,x=C.isMiddlewareMediatorSupported;var L=function e(){if(r["default"].getPlugin){return Boolean(r["default"].getPlugin("ads"))}var t=r["default"].getComponent("Player");return Boolean(t&&t.prototype.ads)};function O(e){if(L()){return false}var t=r["default"].registerPlugin||r["default"].plugin;t("ads",e);if(x()&&!r["default"].usingContribAdsMiddleware_){r["default"].use("*",P);r["default"].usingContribAdsMiddleware_=true;r["default"].log.debug("Play middleware has been registered with videojs")}return true}var D=function(){function e(){}e.getState=function t(i){if(!i){return}if(e.states_&&e.states_[i]){return e.states_[i]}};e.registerState=function t(i,n){if(typeof i!=="string"||!i){throw new Error('Illegal state name, "'+i+'"; must be a non-empty string.')}if(!e.states_){e.states_={}}e.states_[i]=n;return n};return e}();var R=function(){e._getName=function e(){return"Anonymous State"};function e(e){this.player=e}var t=e.prototype;t.transitionTo=function e(t){var i=this.player;this.cleanup(i);var n=new t(i);i.ads._state=n;i.ads.debug(this.constructor._getName()+" -> "+n.constructor._getName());for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++){a[s-1]=arguments[s]}n.init.apply(n,[i].concat(a))};t.init=function e(){};t.cleanup=function e(){};t.onPlay=function e(){};t.onPlaying=function e(){};t.onEnded=function e(){};t.onAdEnded=function e(){};t.onAdsReady=function e(){r["default"].log.warn("Unexpected adsready event")};t.onAdsError=function e(){};t.onAdsCanceled=function e(){};t.onAdTimeout=function e(){};t.onAdStarted=function e(){};t.onContentChanged=function e(){};t.onContentResumed=function e(){};t.onReadyForPostroll=function e(){r["default"].log.warn("Unexpected readyforpostroll event")};t.onNoPreroll=function e(){};t.onNoPostroll=function e(){};t.startLinearAdMode=function e(){r["default"].log.warn("Unexpected startLinearAdMode invocation "+"(State via "+this.constructor._getName()+")")};t.endLinearAdMode=function e(){r["default"].log.warn("Unexpected endLinearAdMode invocation "+"(State via "+this.constructor._getName()+")")};t.skipLinearAdMode=function e(){r["default"].log.warn("Unexpected skipLinearAdMode invocation "+"(State via "+this.constructor._getName()+")")};t.isAdState=function e(){throw new Error("isAdState unimplemented for "+this.constructor._getName())};t.isWaitingForAdBreak=function e(){return false};t.isContentResuming=function e(){return false};t.inAdBreak=function e(){return false};t.handleEvent=function e(t){var i=this.player;if(t==="play"){this.onPlay(i)}else if(t==="adsready"){this.onAdsReady(i)}else if(t==="adserror"){this.onAdsError(i)}else if(t==="adscanceled"){this.onAdsCanceled(i)}else if(t==="adtimeout"){this.onAdTimeout(i)}else if(t==="ads-ad-started"){this.onAdStarted(i)}else if(t==="contentchanged"){this.onContentChanged(i)}else if(t==="contentresumed"){this.onContentResumed(i)}else if(t==="readyforpostroll"){this.onReadyForPostroll(i)}else if(t==="playing"){this.onPlaying(i)}else if(t==="ended"){this.onEnded(i)}else if(t==="nopreroll"){this.onNoPreroll(i)}else if(t==="nopostroll"){this.onNoPostroll(i)}else if(t==="adended"){this.onAdEnded(i)}};return e}();D.registerState("State",R);function N(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var M=function(e){N(t,e);function t(t){var i;i=e.call(this,t)||this;i.contentResuming=false;i.waitingForAdBreak=false;return i}var i=t.prototype;i.isAdState=function e(){return true};i.onPlaying=function e(){var t=D.getState("ContentPlayback");if(this.contentResuming){this.transitionTo(t)}};i.onContentResumed=function e(){var t=D.getState("ContentPlayback");if(this.contentResuming){this.transitionTo(t)}};i.isWaitingForAdBreak=function e(){return this.waitingForAdBreak};i.isContentResuming=function e(){return this.contentResuming};i.inAdBreak=function e(){return this.player.ads._inLinearAdMode===true};return t}(R);D.registerState("AdState",M);var U=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.isAdState=function e(){return false};i.onContentChanged=function e(t){var i=D.getState("BeforePreroll");var n=D.getState("Preroll");t.ads.debug("Received contentchanged event (ContentState)");if(t.paused()){this.transitionTo(i)}else{this.transitionTo(n,false);t.pause();t.ads._pausedOnContentupdate=true}};return t}(R);D.registerState("ContentState",U);var B=D.getState("ContentState");var F=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"AdsDone"};var i=t.prototype;i.init=function e(t){t.ads._contentHasEnded=true;t.trigger("ended")};i.startLinearAdMode=function e(){r["default"].log.warn("Unexpected startLinearAdMode invocation (AdsDone)")};return t}(B);D.registerState("AdsDone",F);var V;function q(e){var t;if(r["default"].browser.IS_IOS&&e.ads.isLive(e)){if(e.seekable().length>0){t=e.currentTime()-e.seekable().end(0)}else{t=e.currentTime()}}else{t=e.currentTime()}var i=e.$(".vjs-tech");var n=e.textTracks?e.textTracks():[];var a=[];var s={ended:e.ended(),currentSrc:e.currentSrc(),sources:e.currentSources(),src:e.tech_.src(),currentTime:t,type:e.currentType()};if(i){s.style=i.getAttribute("style")}for(var o=0;o<n.length;o++){var l=n[o];a.push({track:l,mode:l.mode});l.mode="disabled"}s.suppressedTracks=a;return s}function H(e,t){var i=e.ads.snapshot;if(t===undefined){t=function e(){}}if(e.ads.disableNextSnapshotRestore===true){e.ads.disableNextSnapshotRestore=false;delete e.ads.snapshot;t();return}var n=e.$(".vjs-tech");var a=20;var s=i.suppressedTracks;var o;var l=function e(){for(var t=0;t<s.length;t++){o=s[t];o.track.mode=o.mode}};var u=function t(){var n;if(r["default"].browser.IS_IOS&&e.ads.isLive(e)){if(i.currentTime<0){if(e.seekable().length>0){n=e.seekable().end(0)+i.currentTime}else{n=e.currentTime()}e.currentTime(n)}if(e.paused()){var a=e.play();if(a&&a.catch){a.catch(function(e){r["default"].log.warn("Play promise rejected in IOS snapshot resume",e)})}}}else if(i.ended){e.currentTime(e.duration())}else{e.currentTime(i.currentTime);var s=e.play();if(s&&s.catch){s.catch(function(e){r["default"].log.warn("Play promise rejected in snapshot resume",e)})}}if(e.ads.shouldRemoveAutoplay_){e.autoplay(false);e.ads.shouldRemoveAutoplay_=false}};var d=function t(){e.off("contentcanplay",t);if(V){e.clearTimeout(V)}n=e.el().querySelector(".vjs-tech");if(n.readyState>1){return u()}if(n.seekable===undefined){return u()}if(n.seekable.length>0){return u()}if(a--){e.setTimeout(t,50)}else{try{u()}catch(e){r["default"].log.warn("Failed to resume the content after an advertisement",e)}}};if("style"in i){n.setAttribute("style",i.style||"")}if(e.ads.videoElementRecycled()){e.one("resumeended",function(){delete e.ads.snapshot;t()});e.one("contentloadedmetadata",l);if(r["default"].browser.IS_IOS&&!e.autoplay()){e.autoplay(true);e.ads.shouldRemoveAutoplay_=true}e.src(i.sources);e.one("contentcanplay",d);V=e.setTimeout(d,2e3)}else{l();if(!e.ended()){var c=e.play();if(c&&c.catch){c.catch(function(e){r["default"].log.warn("Play promise rejected in snapshot restore",e)})}}delete e.ads.snapshot;t()}}function G(e){e.ads.debug("Starting ad break");e.ads._inLinearAdMode=true;e.trigger("adstart");if(e.ads.shouldTakeSnapshots()){e.ads.snapshot=q(e)}if(e.ads.shouldPlayContentBehindAd(e)){e.ads.preAdVolume_=e.volume();e.volume(0)}e.addClass("vjs-ad-playing");if(e.hasClass("vjs-live")){e.removeClass("vjs-live")}e.ads.removeNativePoster()}function z(e,t){e.ads.debug("Ending ad break");if(t===undefined){t=function e(){}}e.ads.adType=null;e.ads._inLinearAdMode=false;e.trigger("adend");e.removeClass("vjs-ad-playing");if(e.ads.isLive(e)){e.addClass("vjs-live")}if(e.ads.shouldTakeSnapshots()){H(e,t)}else{e.volume(e.ads.preAdVolume_);t()}}var W={start:G,end:z};var Y=D.getState("AdState");var K=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"Preroll"};var i=t.prototype;i.init=function e(t,i,n){this.waitingForAdBreak=true;t.addClass("vjs-ad-loading");if(n||t.ads.nopreroll_){return this.resumeAfterNoPreroll(t)}var r=t.ads.settings.timeout;if(typeof t.ads.settings.prerollTimeout==="number"){r=t.ads.settings.prerollTimeout}this._timeout=t.setTimeout(function(){t.trigger("adtimeout")},r);if(i){this.handleAdsReady()}else{this.adsReady=false}};i.onAdsReady=function e(t){if(!t.ads.inAdBreak()){t.ads.debug("Received adsready event (Preroll)");this.handleAdsReady()}else{r["default"].log.warn("Unexpected adsready event (Preroll)")}};i.handleAdsReady=function e(){this.adsReady=true;this.readyForPreroll()};i.afterLoadStart=function e(t){var i=this.player;if(i.ads._hasThereBeenALoadStartDuringPlayerLife){t()}else{i.ads.debug("Waiting for loadstart...");i.one("loadstart",function(){i.ads.debug("Received loadstart event");t()})}};i.noPreroll=function e(){var t=this;this.afterLoadStart(function(){t.player.ads.debug("Skipping prerolls due to nopreroll event (Preroll)");t.resumeAfterNoPreroll(t.player)})};i.readyForPreroll=function e(){var t=this.player;this.afterLoadStart(function(){t.ads.debug("Triggered readyforpreroll event (Preroll)");t.trigger("readyforpreroll")})};i.onAdsCanceled=function e(t){var i=this;t.ads.debug("adscanceled (Preroll)");this.afterLoadStart(function(){i.resumeAfterNoPreroll(t)})};i.onAdsError=function e(t){var i=this;r["default"].log("adserror (Preroll)");if(this.inAdBreak()){t.ads.endLinearAdMode()}else{this.afterLoadStart(function(){i.resumeAfterNoPreroll(t)})}};i.startLinearAdMode=function e(){var t=this.player;if(this.adsReady&&!t.ads.inAdBreak()&&!this.isContentResuming()){this.clearTimeout(t);t.ads.adType="preroll";this.waitingForAdBreak=false;W.start(t);t.ads._shouldBlockPlay=false}else{r["default"].log.warn("Unexpected startLinearAdMode invocation (Preroll)")}};i.onAdStarted=function e(t){t.removeClass("vjs-ad-loading")};i.endLinearAdMode=function e(){var t=this.player;if(this.inAdBreak()){t.removeClass("vjs-ad-loading");t.addClass("vjs-ad-content-resuming");this.contentResuming=true;W.end(t)}};i.skipLinearAdMode=function e(){var t=this;var i=this.player;if(i.ads.inAdBreak()||this.isContentResuming()){r["default"].log.warn("Unexpected skipLinearAdMode invocation")}else{this.afterLoadStart(function(){i.trigger("adskip");i.ads.debug("skipLinearAdMode (Preroll)");t.resumeAfterNoPreroll(i)})}};i.onAdTimeout=function e(t){var i=this;this.afterLoadStart(function(){t.ads.debug("adtimeout (Preroll)");i.resumeAfterNoPreroll(t)})};i.onNoPreroll=function e(t){if(t.ads.inAdBreak()||this.isContentResuming()){r["default"].log.warn("Unexpected nopreroll event (Preroll)")}else{this.noPreroll()}};i.resumeAfterNoPreroll=function e(t){this.contentResuming=true;t.ads._shouldBlockPlay=false;this.cleanupPartial(t);if(t.ads._playRequested||t.ads._pausedOnContentupdate){if(t.paused()){t.ads.debug("resumeAfterNoPreroll: attempting to resume playback (Preroll)");var i=t.play();if(i&&i.then){i.then(null,function(e){})}}else{t.ads.debug("resumeAfterNoPreroll: already playing (Preroll)");t.trigger("play");t.trigger("playing")}}};i.cleanup=function e(t){if(!t.ads._hasThereBeenALoadStartDuringPlayerLife){r["default"].log.warn("Leaving Preroll state before loadstart event can cause issues.")}this.cleanupPartial(t)};i.cleanupPartial=function e(t){t.removeClass("vjs-ad-loading");t.removeClass("vjs-ad-content-resuming");this.clearTimeout(t)};i.clearTimeout=function e(t){t.clearTimeout(this._timeout);this._timeout=null};return t}(Y);D.registerState("Preroll",K);var X=D.getState("ContentState");var Q=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"BeforePreroll"};var i=t.prototype;i.init=function e(t){this.adsReady=false;this.shouldResumeToContent=false;t.ads._shouldBlockPlay=t.ads.settings.allowVjsAutoplay?!t.autoplay():true};i.onAdsReady=function e(t){t.ads.debug("Received adsready event (BeforePreroll)");this.adsReady=true};i.onPlay=function e(t){var i=D.getState("Preroll");t.ads.debug("Received play event (BeforePreroll)");this.transitionTo(i,this.adsReady,this.shouldResumeToContent)};i.onAdsCanceled=function e(t){t.ads.debug("adscanceled (BeforePreroll)");this.shouldResumeToContent=true};i.onAdsError=function e(){this.player.ads.debug("adserror (BeforePreroll)");this.shouldResumeToContent=true};i.onNoPreroll=function e(){this.player.ads.debug("Skipping prerolls due to nopreroll event (BeforePreroll)");this.shouldResumeToContent=true};i.skipLinearAdMode=function e(){var t=this.player;t.trigger("adskip");t.ads.debug("skipLinearAdMode (BeforePreroll)");this.shouldResumeToContent=true};i.onContentChanged=function e(){this.init(this.player)};return t}(X);D.registerState("BeforePreroll",Q);var J=D.getState("AdState");var Z=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"Midroll"};var i=t.prototype;i.init=function e(t){t.ads.adType="midroll";W.start(t);t.addClass("vjs-ad-loading")};i.onAdStarted=function e(t){t.removeClass("vjs-ad-loading")};i.endLinearAdMode=function e(){var t=this.player;if(this.inAdBreak()){this.contentResuming=true;t.addClass("vjs-ad-content-resuming");t.removeClass("vjs-ad-loading");W.end(t)}};i.onAdsError=function e(t){if(this.inAdBreak()){t.ads.endLinearAdMode()}};i.cleanup=function e(t){t.removeClass("vjs-ad-loading");t.removeClass("vjs-ad-content-resuming")};return t}(J);D.registerState("Midroll",Z);var $=D.getState("AdState");var ee=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"Postroll"};var i=t.prototype;i.init=function e(t){this.waitingForAdBreak=true;t.ads._contentEnding=true;if(!t.ads.nopostroll_){t.addClass("vjs-ad-loading");var i=t.ads.settings.timeout;if(typeof t.ads.settings.postrollTimeout==="number"){i=t.ads.settings.postrollTimeout}this._postrollTimeout=t.setTimeout(function(){t.trigger("adtimeout")},i)}else{this.resumeContent(t);var n=D.getState("AdsDone");this.transitionTo(n)}};i.startLinearAdMode=function e(){var t=this.player;if(!t.ads.inAdBreak()&&!this.isContentResuming()){t.ads.adType="postroll";t.clearTimeout(this._postrollTimeout);this.waitingForAdBreak=false;W.start(t)}else{r["default"].log.warn("Unexpected startLinearAdMode invocation (Postroll)")}};i.onAdStarted=function e(t){t.removeClass("vjs-ad-loading")};i.endLinearAdMode=function e(){var t=this;var i=this.player;var n=D.getState("AdsDone");if(this.inAdBreak()){i.removeClass("vjs-ad-loading");this.resumeContent(i);W.end(i,function(){t.transitionTo(n)})}};i.skipLinearAdMode=function e(){var t=this.player;if(t.ads.inAdBreak()||this.isContentResuming()){r["default"].log.warn("Unexpected skipLinearAdMode invocation")}else{t.ads.debug("Postroll abort (skipLinearAdMode)");t.trigger("adskip");this.abort(t)}};i.onAdTimeout=function e(t){t.ads.debug("Postroll abort (adtimeout)");this.abort(t)};i.onAdsError=function e(t){t.ads.debug("Postroll abort (adserror)");if(t.ads.inAdBreak()){t.ads.endLinearAdMode()}else{this.abort(t)}};i.onContentChanged=function e(t){if(this.isContentResuming()){var i=D.getState("BeforePreroll");this.transitionTo(i)}else if(!this.inAdBreak()){var n=D.getState("Preroll");this.transitionTo(n)}};i.onNoPostroll=function e(t){if(!this.isContentResuming()&&!this.inAdBreak()){this.abort(t)}else{r["default"].log.warn("Unexpected nopostroll event (Postroll)")}};i.resumeContent=function e(t){this.contentResuming=true;t.addClass("vjs-ad-content-resuming")};i.abort=function e(t){var i=D.getState("AdsDone");this.resumeContent(t);t.removeClass("vjs-ad-loading");this.transitionTo(i)};i.cleanup=function e(t){t.removeClass("vjs-ad-content-resuming");t.clearTimeout(this._postrollTimeout);t.ads._contentEnding=false};return t}($);D.registerState("Postroll",ee);var te=D.getState("ContentState");var ie=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"ContentPlayback"};var i=t.prototype;i.init=function e(t){t.ads._shouldBlockPlay=false};i.onAdsReady=function e(t){t.ads.debug("Received adsready event (ContentPlayback)");if(!t.ads.nopreroll_){t.ads.debug("Triggered readyforpreroll event (ContentPlayback)");t.trigger("readyforpreroll")}};i.onReadyForPostroll=function e(t){var i=D.getState("Postroll");t.ads.debug("Received readyforpostroll event");this.transitionTo(i)};i.startLinearAdMode=function e(){var t=D.getState("Midroll");this.transitionTo(t)};return t}(te);D.registerState("ContentPlayback",ie);var ne=D.getState("ContentState");var re=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"StitchedContentPlayback"};var i=t.prototype;i.init=function e(){this.player.ads._shouldBlockPlay=false};i.onContentChanged=function e(){this.player.ads.debug("Received contentchanged event ("+this.constructor._getName()+")")};i.startLinearAdMode=function e(){var t=D.getState("StitchedAdRoll");this.transitionTo(t)};return t}(ne);D.registerState("StitchedContentPlayback",re);var ae=D.getState("AdState");var se=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}t._getName=function e(){return"StitchedAdRoll"};var i=t.prototype;i.init=function e(){this.waitingForAdBreak=false;this.contentResuming=false;this.player.ads.adType="stitched";W.start(this.player)};i.onPlaying=function e(){};i.onContentResumed=function e(){};i.onAdEnded=function e(){this.endLinearAdMode();this.player.trigger("ended")};i.endLinearAdMode=function e(){var t=D.getState("StitchedContentPlayback");W.end(this.player);this.transitionTo(t)};return t}(ae);D.registerState("StitchedAdRoll",se);var oe=C.isMiddlewareMediatorSupported;var le=r["default"].getTech("Html5").Events;var ue={timeout:5e3,prerollTimeout:undefined,postrollTimeout:undefined,debug:false,stitchedAds:false,contentIsLive:undefined,liveCuePoints:true,allowVjsAutoplay:r["default"].options.normalizeAutoplay||false};var de=function e(t){var i=this;var n=r["default"].mergeOptions(ue,t);var a=[];le.concat(["firstplay","loadedalldata"]).forEach(function(e){if(a.indexOf(e)===-1){a.push(e)}});i.on(a,v);if(!oe()){I(i,n.debug)}i.setTimeout(function(){if(!i.ads._hasThereBeenALoadStartDuringPlayerLife&&i.src()!==""){r["default"].log.error("videojs-contrib-ads has not seen a loadstart event 5 seconds "+"after being initialized, but a source is present. This indicates that "+"videojs-contrib-ads was initialized too late. It must be initialized "+"immediately after video.js in the same tick. As a result, some ads will not "+"play and some media events will be incorrect. For more information, see "+"http://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html")}},5e3);i.on("ended",function(){if(!i.hasClass("vjs-has-started")){i.addClass("vjs-has-started")}});i.on("contenttimeupdate",function(){i.removeClass("vjs-waiting")});i.on(["addurationchange","adcanplay"],function(){if(i.ads.settings.stitchedAds){return}if(i.hasStarted()){return}if(i.ads.snapshot&&i.currentSrc()===i.ads.snapshot.currentSrc){return}if(!i.ads.inAdBreak()){return}var e=i.play();if(e&&e.catch){e.catch(function(e){r["default"].log.warn("Play promise rejected when playing ad",e)})}});i.on("nopreroll",function(){i.ads.debug("Received nopreroll event");i.ads.nopreroll_=true});i.on("nopostroll",function(){i.ads.debug("Received nopostroll event");i.ads.nopostroll_=true});i.on("playing",function(){i.ads._cancelledPlay=false;i.ads._pausedOnContentupdate=false});i.on("play",function(){i.ads._playRequested=true});i.one("loadstart",function(){i.ads._hasThereBeenALoadStartDuringPlayerLife=true});i.on("loadeddata",function(){i.ads._hasThereBeenALoadedData=true});i.on("loadedmetadata",function(){i.ads._hasThereBeenALoadedMetaData=true});i.ads=l(i);i.ads.settings=n;n.stitchedAds=!!n.stitchedAds;if(n.stitchedAds){i.ads._state=new(D.getState("StitchedContentPlayback"))(i)}else{i.ads._state=new(D.getState("BeforePreroll"))(i)}i.ads._state.init(i);i.ads.cueTextTracks=E;i.ads.adMacroReplacement=T.bind(i);g(i);i.on("contentchanged",i.ads.reset);var s=function e(){return!i.ads.shouldPlayContentBehindAd(i)&&i.ads.inAdBreak()&&i.tech_.featuresNativeTextTracks&&r["default"].browser.IS_IOS&&!Array.isArray(i.textTracks())};var o=function e(){var t=i.textTracks();if(s()){for(var n=0;n<t.length;n++){var r=t[n];if(r.mode==="showing"){r.mode="disabled"}}}};i.ready(function(){i.textTracks().addEventListener("change",o)});i.on(["play","playing","ended","adsready","adscanceled","adskip","adserror","adtimeout","adended","ads-ad-started","contentchanged","dispose","contentresumed","readyforpostroll","nopreroll","nopostroll"],function(e){i.ads._state.handleEvent(e.type)});i.on("dispose",function(){i.ads.reset();i.textTracks().removeEventListener("change",o)});_();i.ads.listenToTcf=_};de.VERSION=o;O(de);var ce="1.0.1";var fe=r["default"].registerPlugin||r["default"].plugin;var pe=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var i=this;var n=void 0;var a=void 0;var s=0;var o=false;this.contribAds6Shim={VERSION:ce};i.ads.state=n=a="content-set";Object.defineProperty(i.ads,"state",{get:function e(){if(t.warnOnGetState===true||typeof t.warnOnGetState==="number"&&s<t.warnOnGetState){r["default"].log.warn("player.ads.state is deprecated. Please use the public "+"methods provided by videojs-contrib-ads 6 instead: "+"https://github.com/videojs/videojs-contrib-ads#public-methods");s++}if(t.stateUsageEvent&&!o){i.trigger({type:"usage",name:"contrib-ads-state-access"});o=true}return a},set:function e(i){if(i===a){return}n=a;a=i;if(t.debug){r["default"].log("CA6Shim: "+n+" -> "+a)}}});i.on("contentchanged",function(){if(i.paused()){i.ads.state="content-set"}else{i.ads.state="ads-ready?"}});i.on("play",function(){if(a==="content-set"){i.ads.state="ads-ready?"}else if(a==="ads-ready"){i.ads.state="preroll?"}});i.on("adsready",function(){if(a==="content-set"){i.ads.state="ads-ready"}else if(a==="ads-ready?"){i.ads.state="preroll?"}});i.on(["adserror","adtimeout","adskip"],function(){if(a==="ads-ready?"||a==="preroll?"){i.ads.state="content-playback"}});i.on("adstart",function(){i.ads.state="ad-playback"});i.on("adend",function(){i.ads.state="content-resuming"});i.on("playing",function(){if(a!=="content-playback"){i.trigger("contentplayback");if(t.debug){r["default"].log("CA6Shim: Triggered contentplayback")}}i.ads.state="content-playback"});i.on("contentended",function(){if(a==="content-playback"){i.ads.state="postroll?"}});i.on("ended",function(){i.ads.state="content-playback"})};fe("contribAds6Shim",pe);var he;var ve=function e(t,i){var n=i.cues;var r=i.label;var a=i.inBandMetadataTrackDispatchType;var s=i.kind;if(s!=="metadata"){return}if(r==="media-cues"){return true}else if(a&&s==="metadata"){return true}else if(n&&n.length){return t.ima3.cueState_.cueModule.isSupportedAdCue(t,n[0])}return true};var ge=function e(t){var i;if(t&&!t.value||t.value.key!=="TXXX"){return null}try{i=JSON.parse(t.value.data)}catch(e){r["default"].log.error("ERROR: Parsing JSON. Please confirm that JSON is valid.",e.message);return null}if(!i.name){return null}var n=i.name.toLowerCase();if(n!=="adcue"&&n!=="adcancel"){return null}return i};var me=function e(t,i){if(i&&i.text&&i.text.toLowerCase()==="ad"){return true}else if(i&&i.name&&i.name.toLowerCase()==="adcue"){return true}return false};var ye=function e(t,i,n){var r=Math.abs(n-t.duration());var a=Math.abs(n-t.currentTime());var s;if(n===0){if(!t.ima3.cueState_.prerollPlayed){t.ima3.cueState_.prerollPlayed=true;t.ads.adType="preroll"}else{return}}if(r<=1){if(!t.ima3.cueState_.postrollPlayed){t.ima3.cueState_.postrollPlayed=true}else{return}}if(a>=1){return}if(!t.ima3.settings.useMediaCuePoints&&i.serverUrl){s=i.serverUrl}else{s=t.ima3.settings.serverUrl}s=t.ima3.adMacroReplacement(s);if(i.duration){if(/\?/.test(s)){s+="&breaklength="+i.duration}else{s+="?breaklength="+i.duration}}if(t.ima3.isReady_){t.ima3.log("Oncue ad request at "+n+" seconds");t.ima3.adrequest(s)}};var _e=function e(t,i,n,r,a){if(r===0&&t.ima3.cueState_.prerollPlayed){return}else if(a<=1&&t.ima3.cueState_.postrollPlayed){return}ye(t,i,r);t.ima3.cueState_.usedActiveCues[n]=true};var be=function e(t,i,n,r,a){if(r!==0||t.currentTime()!==0){return}else if(t.ima3.cueState_.prerollPlayed||t.ima3.cueState_.prerollHandledEarly){return}if(t.paused()&&!t.ads._playRequested){t.ima3.cueState_.prerollHandledEarly=true;t.ima3.oneUnlessContentUpdate_("play",function(){_e(t,i,n,r,a)})}else if(t.ads.isInAdMode()&&!t.ads.isContentResuming()&&t.ads._playRequested){_e(t,i,n,r,a)}};var Se=function e(t){var i=t.mediainfo?Math.max(t.duration(),t.mediainfo.duration):t.duration();return i};var Te=function e(t,i,n,r){var a=Se(t);var s=Math.abs(r-a);if(t.ads.isAdPlaying()&&me(t,i)){return}else if(!n){t.ima3.log.error("The cue does not have an ID and cannot be used",i);return}else if(t.ima3.cueState_.usedActiveCues[n]){return}else if(i.name&&i.name.toLowerCase()==="adcancel"){return}if(r===0){be(t,i,n,r,s)}else if(s<=1&&!t.ima3.cueState_.postrollHandled){t.ima3.cueState_.postrollHandled=true;t.ima3.oneUnlessContentUpdate_("contentended",function(){_e(t,i,n,r,s)})}else if(t.ima3.isReady_&&!t.ads.isInAdMode()){_e(t,i,n,r,s)}};var Ee=function e(t,i,n,r){if(!t.ima3.settings.useMediaCuePoints&&i.name==="adCancel"&&t.ima3.adsManager&&!t.ima3.cueState_.usedActiveCues[n]){t.ima3.cueState_.usedActiveCues[n]=true;t.ima3.adsManager.stop();t.ima3.log("Cancelling oncue ad at "+r+" seconds")}};var we=function e(t){return function(){var e=this.activeCues;if(t.scrubbing()){return}if(e&&e.length){var i=e[e.length-1];var n=[i];if(!ve(t,this)){this.removeEventListener("cuechange",t.ima3.cueState_.adCueChangeHandler);return}t.ima3.cueState_.cueModule.processAdTrack(t,n,Te,Ee)}}};var ke=function e(t,i){var n=i.cues;var r;var a;if(!ve(t,i)){return}if(n&&n.length!==undefined){for(var s=0;s<n.length;s++){var o=t.mediainfo?Math.max(t.duration(),t.mediainfo.duration):t.duration();if(Math.abs(n[s].startTime-o)<=1){r=n[s]}else if(n[s].startTime===0){a=n[s]}}if(!a&&i.label==="media-cues"){t.trigger("nopreroll")}else if(a){var l=t.ima3.cueState_.cueModule.getSupportedAdCue(t,a);var u=t.ima3.cueState_.cueModule.getCueId(t,a);var d=a.startTime;var c=Math.abs(d-Se(t));be(t,l,u,d,c)}if(!r&&i.label==="media-cues"){t.trigger("nopostroll")}}i.addEventListener("cuechange",t.ima3.cueState_.adCueChangeHandler)};var Ie=function e(t,i){t.ima3.cueState_={cueModule:i,adCueChangeHandler:we(t),usedActiveCues:{},prerollHandledEarly:false,prerollPlayed:false,postrollHandled:false,postrollPlayed:false}};var Ae=function e(t,i){Ie(t,i);t.ima3.cueState_.cueModule.setMetadataTrackMode=function(e){e.mode="hidden"};t.ima3.cueState_.cueModule.getCueId=function(e,t){var i=e.ima3.cueState_.cueModule.getSupportedAdCue(e,t);if(!i){return null}return i.id};t.ima3.cueState_.cueModule.isSupportedAdCue=function(e,t){return e.ima3.cueState_.cueModule.getSupportedAdCue(e,t)!==null};t.ima3.cueState_.cueModule.getSupportedAdCue=function(e,t){if(e.ima3.settings.requestMode==="oncue"&&!e.ima3.settings.useMediaCuePoints){return ge(t)}return null};t.ima3.cueState_.cueModule.processMetadataTracks(t,ke)};var Ce=function e(t,i){if(!i.useMediaCuePoints){t.on("loadedmetadata",function(){t.trigger("nopreroll");he.liveCuePointHandler(t,t.ads.cueTextTracks)})}t.trigger("adsready");t.on("contentchanged",function(){t.trigger("adsready")})};he={init:Ce,liveCuePointHandler:Ae};var je=he;var Pe="6.9.0";function xe(e){var t=false;var i=false;var n=null;var a=null;var s=function t(){e.tech(true).trigger("durationchange");e.trigger("timeupdate");e.trigger("progress")};e.on("ima3-started",function(){e.removeClass("vjs-ima3-paused");e.trigger("play");t=false;if(e.ads.inAdBreak()&&!e.ads.videoElementRecycled()){n=e.volume();a=e.muted()}});e.on("ads-ad-started",function(){i=true;if(typeof a==="boolean"&&a){e.muted(a)}else if(typeof n==="number"){e.volume(n)}s()});e.on("ima3-resumed",function(){e.removeClass("vjs-ima3-paused");e.trigger("play");t=false});e.on("ima3-paused",function(){e.addClass("vjs-ima3-paused");e.trigger("pause");t=true});e.on(["ima3-complete","ima3-content-resume-requested"],function(){i=false;s()});var o=function t(n){return function(t){if(e.usingPlugin("ima3")&&e.ads.isAdPlaying()&&e.ima3.adsManager&&i){return n(t)}return t}};return{currentTime:o(function(){var t=e.duration();if(typeof t!=="number"||!e.ima3.adsManager){return 0}var i=e.ima3.adsManager.getRemainingTime();if(typeof i!=="number"||i<=0||i>t){return 0}return t-i}),duration:o(function(){var t=e.ima3.currentAd;if(!t){return 0}var i=t.getDuration();return i>0?i:0}),buffered:o(function(t){var i=[];var n=e.duration();for(var a=0;a<t.length;a++){var s=t.start(a);var o=t.end(a);if(s>n){continue}else if(o>n){i.push([s,n])}else{i.push([s,o])}}return r["default"].createTimeRanges(i)}),callPause:o(function(){t=true;e.ima3.adsManager.pause();e.trigger("pause");return r["default"].middleware.TERMINATOR}),paused:o(function(){return t}),callPlay:o(function(){t=false;e.ima3.adsManager.resume();e.trigger("play");return r["default"].middleware.TERMINATOR}),setVolume:o(function(t){e.ima3.adsManager.setVolume(t);e.ima3.volume=t;e.trigger("volumechange");return t}),volume:o(function(){return e.ima3.adsManager.getVolume()||e.ima3.volume}),setMuted:o(function(t){e.ima3.adsManager.setVolume(t?0:e.ima3.volume||1);return t}),muted:o(function(){return e.ima3.adsManager.getVolume()===0}),ended:o(function(){return false})}}function Le(e){if(typeof e!=="string"){return}var t=e.match(/^([\d]+)\.([\d]+)\.([\d]+)/);if(!t){return}return[Number(t[1]),Number(t[2]),Number(t[3])]}var Oe=Le(Pe);function De(e,t){var i=Le(e);var n=t?Le(t):Oe;if(!n||!i){return false}if(i[0]!==n[0]){return false}if(i[1]<n[1]){return false}if(i[1]>n[1]){return true}return i[2]>=n[2]}function Re(e){if(r["default"].getPlugin){return r["default"].getPlugin(e)}return r["default"].getComponent("Player").prototype[e]}function Ne(e){if(Re("ima3")){return false}var t=Re("ads");if(!De(t.VERSION)){r["default"].log.error('The IMA plugin depends on contrib-ads version "'+Oe+'", but it saw version "'+t.VERSION+'". This is not a compatible configuration. The IMA plugin will attempt to continue initializing, but this problem should be addressed. If you are using ad failover, please select compatible versions of the SSAI and IMA plugins.')}r["default"].use("*",xe);var i=r["default"].registerPlugin||r["default"].plugin;i("ima3",e);return true}var Me;function Ue(e,t){if(typeof getComputedStyle==="function"){return a["default"].getComputedStyle(e)[t]}return e.currentStyle[t]}function Be(e){var t=parseInt(Me.computedStyle(e.el(),"width"),10);var i=parseInt(Me.computedStyle(e.el(),"height"),10);return{width:t,height:i}}function Fe(e){if(+e<0){r["default"].log.error("duration "+e+" can't be a negative number");return"00:00:00.000"}if(+e>=86400){r["default"].log.error("duration "+e+" can't be over 24h");return"00:00:00.000"}var t=e*1e3;var i=parseInt(t%1e3,10);var n=parseInt(t/1e3%60,10);var a=parseInt(t/(1e3*60)%60,10);var s=parseInt(t/(1e3*60*60)%24,10);s=s<10?"0"+s:s;a=a<10?"0"+a:a;n=n<10?"0"+n:n;if(i<10){i="00"+i}else if(i<100){i="0"+i}return s+":"+a+":"+n+"."+i}function Ve(e){if(e.ima3.adsManager){e.ima3.log("[util.destroyAdsManager] Call AdsManager.destroy.");e.ima3.adsManager.destroy();e.ima3.adsManager=null}if(e.ima3.managerCleanup){e.ima3.managerCleanup();e.ima3.managerCleanup=null}}function qe(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i){if(i.hasOwnProperty(n)){e[n]=i[n]}}}return e}function He(e,t){var i=s["default"].createElement("script");var n=s["default"].querySelector("head");i.async=true;i.charset="utf-8";i.src=e;i.onload=function(){return t(null)};i.onerror=function(e){t(e);i.parentNode.removeChild(i);i=null};n.insertBefore(i,n.firstChild)}var Ge=function e(t){return typeof t.mediainfo==="object"&&t.mediainfo.economics==="FREE"};var ze=function e(t){if(t!==undefined){return t.getContentType()==="application/javascript"}throw new Error("Cannot check if the current ad is a VPAID when there is no ad.")};var We=function e(t){return!!(t&&t.getCuePoints().length===0)};var Ye=function e(t){return!!(t&&t.getCuePoints().length!==0)};var Ke=function e(t){return We(t)||t.getCuePoints().indexOf(0)>=0};var Xe=function e(t){return t.getCuePoints().indexOf(-1)>=0};var Qe=function e(t){return t.requestMode==="oncue"&&!t.useMediaCuePoints};var Je=function e(t){return t.requestMode==="oncue"&&t.useMediaCuePoints};var Ze=function e(t){return t&&typeof t==="object"&&typeof t.trigger==="function"};Me={computedStyle:Ue,getPlayerDimensions:Be,secondsToTime:Fe,destroyAdsManager:Ve,extend:qe,loadScript:He,isEconomicsFree:Ge,isVpaid:ze,isVast:We,isVmap:Ye,includesPreroll:Ke,includesPostroll:Xe,usingLiveAdCuepoints:Qe,usingMediaCuepoints:Je,usingAutoAdvance:Ze};var $e=Me;var et;var tt=function e(t,i){var n=r["default"].ima3.extend;n(i,{linearAdSlotWidth:t.width,linearAdSlotHeight:t.height,nonLinearAdSlotWidth:t.width,nonLinearAdSlotHeight:t.height})};var it=function e(t,i,n){if(t.ima3.isReady_){i.adsResponse=n}else{t.ima3.oneUnlessContentUpdate_("ima3-ready",function(){i.adsResponse=n})}};var nt=function e(t,i,n){var r=t.ima3.settings.requestMode;var s=t.ima3.settings.useMediaCuePoints;var o=a["default"].google.ima;if(!o||o&&!o.AdsRequest){throw new Error("An ad request was made before the plugin is ready")}t.ima3.log("[adsRequest] Create ima.AdsRequest.");var l=new o.AdsRequest;et._addPlayerDimensions($e.getPlayerDimensions(t),l);if(r!=="oncue"||!s||!n){l.adTagUrl=i}else{et._addVmap(t,l,n)}t.ima3.adsRequest=l;var u=function e(i){var n=t.ima3.settings.omidAccessModeRules||{};i.omidAccessModeRules=t.ima3.adsRequest.omidAccessModeRules||{};for(var r in n){i.omidAccessModeRules[o.OmidAccessMode[r]]=n[r].map(function(e){return new RegExp(e)})}};var d=function e(i){var n=!!(i&&i.type==="autoplay-success");l.setAdWillAutoPlay(n);l.setAdWillPlayMuted(t.muted());u(l);t.trigger({type:"ads-before-request",adsRequest:l});t.ima3.adsLoader.requestAds(l);t.trigger("ads-request")};if(t.ima3._contentchangedSeen){var c=t.autoplay()?"autoplay-success":"autoplay-failure";d({type:c})}else if(t.autoplay()===false){d()}else if(t.ima3._autoplayResultEvent){d(t.ima3._autoplayResultEvent)}else{t.any(["autoplay-success","autoplay-failure"],d)}};var rt=function e(t){t.trigger("nopreroll");t.trigger("nopostroll")};var at=function e(t){var i=t.ima3.settings.requestMode;return i!=="onload"&&i!=="onplay"};var st=function e(t){return t.ima3.lastSrc_===t.currentSrc()};var ot=function e(t){t.trigger("adscanceled");t.trigger("nopreroll");t.trigger("nopostroll")};var lt=function e(t,i,n){var r=t.ima3.settings.requestMode;var a;if(i!==undefined&&i!==null){a=t.ima3.adMacroReplacement(i)}if(r!=="oncue"&&!a){et._handleMissingAdTagUrl(t);return}et._adsRequest(t,a,n)};var ut=function e(t,i){if($e.isEconomicsFree(t)){et._handleEconomicsFree(t);return}et._afterServerUrlFunctionCheck(t,i)};var dt=function e(t,i,n){var r=t.ima3.settings.useMediaCuePoints;if($e.isEconomicsFree(t)){et._handleEconomicsFree(t);return}if(!r){i=i||t.ima3.settings.serverUrl}if(!r&&typeof i==="function"){i(function(e){et._handleServerUrlFunctionResponse(t,e)})}else{et._afterServerUrlFunctionCheck(t,i,n)}};var ct=function e(t){var i=t.ima3.settings.requestMode;var n=t.ima3.settings.useMediaCuePoints;return(i==="onplay"||i==="oncue"&&n)&&!t.ima3._playSeen&&t.paused()&&!t.ads._pausedOnContentupdate};var ft=function e(t,i,n){if($e.isEconomicsFree(t)){et._handleEconomicsFree(t);return}t.ima3._requestAdsOnPlay=function(){et._afterPlay(t,i,n)};t.one("play",t.ima3._requestAdsOnPlay)};var pt=function e(t,i,n){t.ima3.log("[requestAds] Beginning ad request process.");if(et._isRepeatForSource(t)&&!et._isRepeatForSourceAllowed(t)){t.ima3.log("Cancelling repeat adsRequest for "+t.currentSrc());return}if(et._shouldWaitUntilPlay(t)){et._waitUntilPlay(t,i,n)}else{et._afterPlay(t,i,n)}};et={_addPlayerDimensions:tt,_addVmap:it,_adsRequest:nt,_handleEconomicsFree:rt,_isRepeatForSourceAllowed:at,_isRepeatForSource:st,_handleMissingAdTagUrl:ot,_afterServerUrlFunctionCheck:lt,_handleServerUrlFunctionResponse:ut,_afterPlay:dt,_shouldWaitUntilPlay:ct,_waitUntilPlay:ft,requestAds:pt};var ht=et;var vt=function e(t){t.trigger("nopreroll");t.trigger("nopostroll")};var gt=function e(t,i){if(!i.ima3.isReady_){i.ima3.log.error("Cannot make an ad request when the plugin is not ready. Skipping ad...");return}if(i.ads._state.constructor._getName()==="AdsDone"){i.ima3.log("On demand adRequest cannot occur when player.ads is in AdsDone state.");return}if(i.mediainfo&&i.mediainfo.economics==="FREE"){i.ima3.log("On demand adRequest attempted on video with advertising disabled.");return}if(!t){i.ima3.log("On demand adRequest attempted without an adTagUrl.");return}i.ima3.log("Clearing any previous VAST ad data and triggering ondemand adrequest.");i.ads.startLinearAdMode();Ve(i);ht.requestAds(i,t);i.addClass("ima3-ad-loading")};var mt={initSource:vt,onDemandAdRequest:gt};var yt={0:"PREROLL","-1":"POSTROLL"};var _t=function e(t,i,n){if(n===""){return}if(!t.currentAdEventInfo[i]){t.currentAdEventInfo[i]=[n]}else{t.currentAdEventInfo[i].push(n)}};var bt=function e(t,i){if(i===undefined){return}var n=t.ima3;n.currentAdEventInfo.adPodId=t.ads.pod.id;n.currentAdEventInfo.adPodLength=t.ads.pod.size;n.currentAdEventInfo.adType=t.ads.adType;_t(n,"adId",t.ads.ad.id);_t(n,"creativeLength",t.ads.ad.duration);_t(n,"creativeIndex",t.ads.ad.index);_t(n,"creativeId",i.getCreativeId());_t(n,"creativeAdId",i.getCreativeAdId());_t(n,"creativeFormat",i.getContentType());_t(n,"creativeUrl",i.getMediaUrl());_t(n,"surveyUrl",i.getSurveyUrl());_t(n,"adTitle",i.getTitle());_t(n,"wrapperCreativeIds",i.getWrapperCreativeIds());_t(n,"advertiserName",i.getAdvertiserName());_t(n,"dealId",i.getDealId());_t(n,"adSystem",i.getAdSystem());_t(n,"wrapperAdSystems",i.getWrapperAdSystems())};var St=function e(t,i){if(t.ima3.currentAd!==undefined){t.ads.ad.id=t.ima3.currentAd.getAdId();t.ads.ad.duration=t.ima3.currentAd.getDuration();t.ads.ad.currentTime=t.ima3.adsManager?t.ima3.currentAd.getDuration()-t.ima3.adsManager.getRemainingTime():t.ima3.currentAd.getDuration();t.ads.ad.timeOffset=t.ima3.currentAd.getAdPodInfo().getTimeOffset();t.ads.ad.index=t.ima3.currentAd.getAdPodInfo().getAdPosition()-1;t.ads.ad.type=yt[t.ima3.currentAd.getAdPodInfo().getTimeOffset()]||"MIDROLL";t.ads.pod.id=t.ima3.currentAd.getAdPodInfo().getPodIndex();t.ads.pod.size=t.ima3.currentAd.getAdPodInfo().getTotalAds();if(i==="ima3-started"){bt(t,t.ima3.currentAd);_t(t.ima3,"started",t.ads.ad.index)}}if(i==="ima3-complete"){_t(t.ima3,"completed",t.ads.ad.index)}};var Tt=function e(t,i,n){var r={};var a=i||"";if(t.bcinfo){r["{player.url}"]=t.bcinfo.scriptUrl}if(n&&n.metadata&&i.indexOf("{mediainfo.ad_keys}")!==-1){var s=encodeURIComponent(n.metadata);a=i.replace("{mediainfo.ad_keys}",s)}return t.ads.adMacroReplacement(a,true,r)};var Et="4.2.4";var wt=function e(t,i){var n=t.el().querySelector(".vjs-big-play-button");t.el().insertBefore(i,n)};var kt=function e(t,i,n){t.ima3.oneHandlers_.push({type:i,handler:n});t.one(i,n)};var It=function e(t,i){t.ima3.adsRenderingSettings_=i;if(t.ima3.adsManager){t.ima3.adsManager.updateAdsRenderingSettings(i)}};var At=function e(t,i){var n=t.el().querySelector(".vjs-tech");var r=t.log.createLogger("IMA3");var a={readyQueue_:[],isReady_:false,player:t,tech:n,settings:i,ready:function e(i){if(i){if(t.ima3.isReady_){i.call(t)}else{if(t.ima3.readyQueue_===undefined){t.ima3.readyQueue_=[]}t.ima3.readyQueue_.push(i)}}return t.ima3},adMacroReplacement:function e(i){return Tt(t,i)},insertAdContainer:function e(i){wt(t,i)},currentAdEventInfo:{},addToCurrentAdEventInfo:function e(i,n){_t(t,i,n)},setAdsRenderingSettings:function e(i){It(t,i)},log:r,toggleLogger:function e(t){if(t){r.level("debug");r.history.enable()}else{r.level("warn");r.history.disable()}},oneHandlers_:[],oneUnlessContentUpdate_:function e(i,n){kt(t,i,n)},isVpaid:function e(){return ze(t.ima3.currentAd)},version:Et,VERSION:Et};t.on("contentupdate",function(){var e=t.ima3.oneHandlers_;for(var i=0;i<e.length;i++){var n=e[i];t.off(n.type,n.handler)}t.ima3.oneHandlers_=[]});t.on("ima3-ready",function(){t.ima3.isReady_=true;for(var e=0;e<t.ima3.readyQueue_.length;e++){t.ima3.readyQueue_[e].call(t)}t.ima3.readyQueue_=[]});a.toggleLogger(i.debug);t.on("debugon",function(){return t.ima3.toggleLogger(true)});t.on("debugoff",function(){return t.ima3.toggleLogger(false)});return a};function Ct(e){var t=e.mediainfo;var i=e.ima3.settings.serverUrl;if(t&&t.economics==="AD_SUPPORTED"&&t.cuePoints.length>0&&t.cuePoints.some(function(e){return e.type==="AD"})){var n='<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n';for(var r=0;r<t.cuePoints.length;r++){if(t.cuePoints[r].type==="AD"){if(t.cuePoints[r].time<1){n+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="'+t.cuePoints[r].name+'">\n'}else if(t.duration-t.cuePoints[r].time<1){n+='<vmap:AdBreak timeOffset="end" breakType="linear" breakId="'+t.cuePoints[r].name+'">\n'}else{n+='<vmap:AdBreak timeOffset="'+Fe(t.cuePoints[r].time)+'" breakType="linear" breakId="'+t.cuePoints[r].name+'">\n'}var a=Tt(e,i,t.cuePoints[r]);n+=' <vmap:AdSource id="'+t.cuePoints[r].id+'" allowMultipleAds="true" followRedirects="true">\n'+'<vmap:AdTagURI templateType="vast3">\n'+"<![CDATA["+a+"]]>\n"+"</vmap:AdTagURI>\n"+"</vmap:AdSource>\n"+"</vmap:AdBreak>\n"}}n+="</vmap:VMAP>";return n}return null}var jt={"ima3-click":"ads-click","ima3-started":"ads-ad-started","ima3-complete":"ads-ad-ended","ima3-first-quartile":"ads-first-quartile","ima3-midpoint":"ads-midpoint","ima3-third-quartile":"ads-third-quartile","ima3-volume-changed":"ads-volumechange","ima3-paused":"ads-pause","ima3-resumed":"ads-play","ima3-skipped":"ads-ad-skipped","ima3-all-ads-completed":"ads-allpods-completed","ads-request":"ads-request","ads-pod-ended":"ads-pod-ended","ads-pod-started":"ads-pod-started","ads-load":"ads-load"};var Pt=function e(t,i,n,r){var a=function e(n){t.trigger({type:r,emitter:i,originalEvent:n});St(t,r);var a=jt[r];if(a){var s={type:a};if(a==="ads-ad-started"||a==="ads-ad-ended"){s.indexInBreak=t.ads.ad.index}t.trigger(s)}};i.addEventListener(n,a,false);return a};var xt=function e(t,i,n){var r={};var a=i.ima3._eventMapping.eventTypes;if(n===undefined){n=Pt}for(var s in a){r[s]=n(i,t,s,a[s])}return function(){for(var e in r){t.removeEventListener(e,r[e])}}};var Lt=function e(t){return"ima3-"+t.toLowerCase().replace(/_/g,"-")};var Ot=function e(t){t._eventMapping={};t.settings.eventMap=jt;var i=a["default"].google.ima;var n={};var r=["AdErrorEvent","AdEvent","AdsManagerLoadedEvent"];var s=r.length;while(s--){if(!i[r[s]]||!i[r[s]].Type){continue}var o=i[r[s]].Type;for(var l in o){if(o.hasOwnProperty(l)){n[o[l]]=Lt(l)}}}t._eventMapping.eventTypes=n};var Dt=function e(t,i,n,r,a,s){var o=Be(t);return function(){if(i===n.ViewMode.FULLSCREEN){t.ima3.adsManager.resize(t.el().offsetWidth,t.el().offsetHeight,i)}else{t.ima3.adsManager.resize(o.width,o.height,i)}if(o.width===a&&o.height===s){return}if(r>=0){setTimeout(e(t,i,n,r-1,o.width,o.height),1e3)}}};var Rt=function e(t){var i=t.textTracks();for(var n=0;n<i.length;n++){if(i[n].kind==="metadata"&&i[n].mode==="disabled"){i[n].mode="hidden"}}};var Nt=function e(t){t.on("fullscreenchange",function(e){var i=a["default"].google.ima;if(r["default"].IS_ANY_SAFARI){Rt(t)}var n=t.hasClass("vjs-fullscreen");if(!t.ima3||!t.ima3.adsManager){return}var s=n?i.ViewMode.FULLSCREEN:i.ViewMode.NORMAL;var o=Be(t);if(s===i.ViewMode.FULLSCREEN){t.ima3.adsManager.resize(t.el().offsetWidth,t.el().offsetHeight,s)}else{t.ima3.adsManager.resize(o.width,o.height,s)}setTimeout(Dt(t,s,i,3,o.width,o.height),1e3)});t.on("playerresize",function(){if(t.ima3.adsManager){var e=Be(t);t.ima3.adsManager.resize(e.width,e.height,a["default"].google.ima.ViewMode.NORMAL)}})};var Mt={_enableMetadataTextTracks:Rt,init:Nt};var Ut=function e(t){var i=["ima3-ads-manager-loaded","ima3-ready","ima3-loaded","ima3-impression","ima3-viewable-impression","ima3-started","ima3-first-quartile","ima3-midpoint","ima3-third-quartile","ima3-skippable-state-changed","ima3-complete","ima3-all-ads-completed","ima3-ad-error","ima3-click","ima3-paused","ima3-resumed","ima3-content-pause-requested","ima3-content-resume-requested","ima3-skip","ima3-user-closed","ima3-linear-changed","ima3-ad-buffering","ima3-ad-metadata","ima3-interaction"];t.ima3.log("[onPluginInit]");t.on("analytics_request",function(e){t.ima3.log("[onPluginInit.player.on] analytics_request: "+e.params.event+" event triggered.")});t.on(i,function(e){t.ima3.log("[onPluginInit.player.on] IMA SDK Event "+e.type+" received.")});t.on("adstart",function(e){t.ima3.log("[onPluginInit.player.on] adstart: Received adstart event.");if(!t.ads.shouldPlayContentBehindAd(t)){t.ima3.log("[onPluginInit.player.on] adstart: Pause player if not LIVE and playing content behind ad.");t.pause()}t.hasStarted(true);t.ima3.currentAdEventInfo={};if(t.ima3.settings.requestmode!=="oncue"&&t.duration()===Infinity){t.trigger({type:"usage",name:"ima3-live-preroll"})}});t.on("adend",function(){t.ima3.log("[onPluginInit.player.on] adend: Received adend event.");if(t.duration()===Infinity){t.trigger("playing")}})};var Bt=function e(t){if(t.ima3&&t.ima3.adsManager&&t.ima3.adsManager.skip){t.ima3.adsManager.skip()}t.ima3.log("[postrollAdtimeoutHandler] Call util.destroyAdsManager.");$e.destroyAdsManager(t);t.trigger("ad-hard-timeout");t.ima3.log("ima3-hard-timeout")};var Ft=function e(t,i){var n=t.AdError.ErrorCode;for(var r in n){if(n.hasOwnProperty(r)){if(!r.match("COMPANION|NONLINEAR|OVERLAY")&&i.getErrorCode()===n[r]&&i.getType()==="adLoadError"){return true}}}return false};var Vt=function e(t){var i=t.ima3.adsManager;if($e.isVast(i)){t.ima3.log("[hardTimeout] Call util.destroyAdsManager for VAST ads.");$e.destroyAdsManager(t);t.trigger("ad-hard-timeout");t.ima3.log("ima3-hard-timeout")}else if($e.isVmap(i)&&$e.includesPreroll(i)){t.ima3.log("[hardTimeout] Call adsManager.discardAdBreak for VMAP.");t.ima3.adsManager.discardAdBreak();t.trigger("ad-hard-timeout");t.ima3.log("ima3-hard-timeout")}};var qt=function e(t){if(t.ima3.adDisplayContainer&&!t.ima3.adDisplayContainer.initialized){t.ima3.log("[initializeAdDisplayContainer] Call adDisplayContainer.initialize().");t.ima3.adDisplayContainer.initialize();t.ima3.adDisplayContainer.initialized=true}};var Ht=function e(t){var i=a["default"].google.ima;var n=$e.getPlayerDimensions(t);t.ima3.log("[startAdsManager]");try{if(t.muted()){t.ima3.adsManager.setVolume(0)}qt(t);t.trigger("ads-load");t.ima3.log("[startAdsManager] trigger ads-load.");t.ima3.log("[startAdsManager] Call AdsManager.init().");t.ima3.adsManager.init(n.width,n.height,i.ViewMode.NORMAL);t.ima3.log("[startAdsManager] Call AdsManager.start().");t.ima3.adsManager.start()}catch(e){t.ima3.log("[startAdsManager] adError caught, trigger adserror.");t.ima3.log.warn("Error starting ads manager",e);t.trigger("adserror")}};var Gt=function e(t){t.ima3.adsManager.discardAdBreak();t.ima3.adsManager.skip();t.ima3.managerCleanup=null;if(t.ads.inAdBreak()){t.ads.endLinearAdMode()}};var zt=function e(t,i,n,r,a){t.ima3.log("[handleContentChanged]");setTimeout(function(){n=t.currentSrc();t.ima3.log("[handleContentChanged] Call util.destroyAdsManager on contentchanged event.");$e.destroyAdsManager(t);t.ima3._checkedForAdManagerStart=false;t.ima3.lastSrc_=t.ima3.currentSrc_;t.ima3.currentSrc_=t.currentSrc();if($e.isEconomicsFree(t)){t.trigger("adscanceled");t.trigger("nopreroll");t.trigger("nopostroll");return}if(i.requestMode==="ondemand"){mt.initSource(t);return}if(n&&n!==""&&i.requestMode!=="ondemand"&&!$e.usingLiveAdCuepoints(i)){if($e.usingMediaCuepoints(i)){t.ima3.log("[handleContentChanged] Call mediaCuePoints.createMediaCuepointVmap to check current video cue point data and refresh ad VMAP");r.vmap=Ct(t)}t.ima3.log("[handleContentChanged] "+(r.vmap?"Call adRequest.requestAds":"No adRequestData.vmap data available, making adRequest.requestAds call")+" with adRequestData.vmap =",r.vmap);a.requestAds(t,null,r.vmap)}},0)};var Wt=function e(t,i,n){t.ima3.log("[handleMediaCuepoints]");if(t.ima3._loadstartSeen&&t.ima3.settings.serverUrl&&t.mediainfo){t.ima3.log("[handleMediaCuepoints] Call createMediaCuepointVmap to set adRequestData.vmap if loadstart was previously seen.");n.vmap=Ct(t)}else{t.ima3.oneUnlessContentUpdate_("loadstart",function(){t.ima3.log("[handleMediaCuepoints.oneUnlessContentUpdate.player.on] loadstart: Received loadstart event.");setTimeout(function(){if(!t.ima3.settings.serverUrl){t.ima3.log.error("[handleMediaCuepoints.oneUnlessContentUpdate_] IMA3 serverUrl isnt provided.")}else{t.ima3.log("[handleMediaCuepoints.oneUnlessContentUpdate_] Call createMediaCuepointVmap to set adRequestData.vmap.");n.vmap=Ct(t)}},0)})}};var Yt=function e(t,i,n){t.ima3.log("[handleWaitForLoadstart]");if(i.requestMode!=="ondemand"&&!$e.usingLiveAdCuepoints(i)){var r=function e(){if(t.mediainfo&&t.mediainfo.economics==="FREE"){t.trigger("adscanceled");t.trigger("nopreroll");t.trigger("nopostroll")}else{t.ima3.log("[handleWaitForLoadstart] Call adsRequest.requestAds with adRequestData.vmap after loadstart.");ht.requestAds(t,null,n.vmap)}};if(t.ima3._loadstartSeen){t.ima3.log("[handleWaitForLoadstart] Call afterLoadStart if loadstart was seen.");r()}else{t.one("loadstart",function(){t.ima3.log("[handleWaitForLoadstart.player.on] loadstart: Received loadstart event.");setTimeout(function(){t.ima3.log("[handleWaitForLoadstart.setTimeout] Call afterLoadStart on loadstart event.");r()},0)})}}};var Kt=function e(t,i){if(i.ima3SdkSettings){for(var n in i.ima3SdkSettings){var a="set"+n.charAt(0).toUpperCase()+n.slice(1);if(typeof t.settings[a]==="function"){t.settings[a](i.ima3SdkSettings[n])}else{r["default"].log.warn('Invalid ima3SdkSetting: "'+n+'"')}}}};var Xt=function e(t,i,n){var s=a["default"].google.ima;var o={};t.trigger({type:"ima3-ready",imaSdk:i.requestMode==="ondemand"?s:null});t.ima3.log("[onSdkLoad]");Ot(t.ima3);Kt(s,i);if(i.vpaidMode){if(typeof s.ImaSdkSettings.VpaidMode[i.vpaidMode]==="number"){s.settings.setVpaidMode(s.ImaSdkSettings.VpaidMode[i.vpaidMode])}else{throw new Error('Invalid VPAID Mode: "'+i.vpaidMode+'"')}}var l=t.el().querySelector(".vjs-tech");t.ima3.log("[onSdkLoad] Create ima.adDisplayContainer.");t.ima3.adDisplayContainer=new s.AdDisplayContainer(n,l,i.clickTrackingElement);t.ima3.adDisplayContainer.initialized=false;var u="click";if(r["default"].browser.IS_IOS||r["default"].browser.IS_ANDROID){u="touchend"}t.one(u,function(){qt(t)});t.ima3.log("[onSdkLoad] Create ima.AdsLoader.");t.ima3.adsLoader=new s.AdsLoader(t.ima3.adDisplayContainer);if(t.ima3.adsLoader){var d=t.ima3.adsLoader.getVersion();t.ima3.log("[onSdkLoad] IMA SDK Version: "+d)}var c=t.ima3.adsLoader.getSettings();c.setPlayerVersion(t.ima3.version);c.setPlayerType("brightcove/player-html5");t.ima3.loaderCleanup=xt(t.ima3.adsLoader,t);var f=t.currentSrc();if($e.usingMediaCuepoints(i)){Wt(t,i,o)}Yt(t,i,o);t.ima3.currentSrc_=t.currentSrc();t.on("dispose",function(){t.ima3.log("[onSdkLoad.player.on] dispose: Call destroyAdsManager.");$e.destroyAdsManager(t);r["default"]._ima3sawDispose=true});t.on("contentchanged",function(){t.ima3.log("[onSdkLoad.player.on] contentchanged: Call handleContentChanged.");zt(t,i,f,o,ht)});var p=function e(){Bt(t)};t.on("contentended",function(){t.ima3.log("[onSdkLoad.player.on] contentended: Call adsLoader.contentComplete.");t.one("adtimeout",p);t.ima3.adsLoader.contentComplete()});t.on("contentupdate",function(){t.off("adtimeout",p);t.ima3.log("[onSdkLoad.player.on] contentupdate: Call adsLoader.contentComplete.");t.ima3.adsLoader.contentComplete()});t.on(["contentupdate","adend","ima3-ready"],function(){t.ads.ad={};t.ads.pod={}});t.ima3.el=n};var Qt=function e(){if(r["default"].use&&!r["default"]._imaMiddlewareSetup){r["default"].log.debug("Setting up IMA middleware");r["default"].use("*",function(e){return{setSource:function t(i,n){if(e&&e.ads&&typeof e.ads.inAdBreak==="function"&&e.ads.inAdBreak()){e.ima3.adsManager.discardAdBreak();e.ads.disableNextSnapshotRestore=true;e.ads.endLinearAdMode();e.trigger("contentresumed");var r=e.play();if(r&&r.catch){r.catch(function(){})}}n(null,i)}}});r["default"]._imaMiddlewareSetup=true}};var Jt=function e(t){var i=t.ima3.adsManager.getCuePoints();var n=i&&i.length>0;var r=t.ima3.adsRequest&&t.ima3.adsRequest.adsResponse?true:false;return $e.usingMediaCuepoints(t.ima3.settings)&&n&&!r};var Zt=function e(t,i){t.ima3.log("[onAdsManagerLoaded]");if(t.ima3.managerCleanup){t.ima3.log("[onAdsManagerLoaded] Call destroyAdsManager.");$e.destroyAdsManager(t)}var n={currentTime:t.currentTime(),duration:t.duration()};t.on("timeupdate",function(){n.currentTime=t.currentTime()});var r=i.originalEvent.getAdsManager(n,t.ima3.adsRenderingSettings_);t.ima3.adsManager=r;t.trigger("ads-response-received");var a=t.ima3.settings;if(Jt(t)){Gt(t);t.ima3.log.error("Cancelling VMAP ad because the"+"ad server cannot return a vmap when using cuepoints");return}t.ima3.managerCleanup=xt(r,t);if(a.requestMode==="ondemand"||a.requestMode==="oncue"){t.ima3.log("[onAdsManagerLoaded] Call startAdsManager if requestMode equals ondemand or oncue.");Ht(t)}else{t.trigger("adsready")}if(a.requestMode!=="oncue"){if(!$e.includesPreroll(r)){t.trigger("nopreroll")}if(!$e.includesPostroll(r)){t.trigger("nopostroll")}}};var $t=function e(t,i){t.ima3.log("[onContentPauseRequested]");if(i.requestMode!=="ondemand"&&!$e.usingLiveAdCuepoints(i)){t.ima3.log("[onContentPauseRequested] Call startLinearAdMode if requestmode not ondemand or not usingLiveAdCuepoints.");t.ads.startLinearAdMode()}if(r["default"]._ima3sawDispose&&!r["default"]._ima3adAfterDispose){t.trigger({type:"usage",name:"ima3-ad-after-dispose"});r["default"]._ima3adAfterDispose=true}};var ei=function e(t){t.ima3.log("[onContentResumeRequested]");if(t.ads.inAdBreak()){t.ima3.log("[onContentResumeRequested] Call endLinearAdMode if inAdBreak.");t.ads.endLinearAdMode();t.removeClass("ima3-ad-loading");t.removeClass("vjs-vpaid-playing");t.trigger("ads-pod-ended")}else{t.ima3.log("[onContentResumeRequested] Call skipLinearAdMode if not inAdBreak.");t.ads.skipLinearAdMode()}};var ti=function e(t){var i=t.getAdPodInfo();return{id:t.getAdId(),adPodInfo:{adPosition:i.getAdPosition(),isBumper:i.getIsBumper(),maxDuration:i.getMaxDuration(),podIndex:i.getPodIndex(),timeOffset:i.getTimeOffset(),totalAds:i.getTotalAds()},adSystem:t.getAdSystem(),advertiserName:t.getAdvertiserName(),apiFramework:t.getApiFramework(),contentType:t.getContentType(),creativeAdId:t.getCreativeAdId(),creativeId:t.getCreativeId(),dealId:t.getDealId(),description:t.getDescription(),duration:t.getDuration(),height:t.getHeight(),width:t.getWidth(),isLinear:t.isLinear(),mediaUrl:t.getMediaUrl(),minSuggestedDuration:t.getMinSuggestedDuration(),skippable:t.isSkippable(),skipTimeOffSet:t.getSkipTimeOffset(),surveyUrl:t.getSurveyUrl(),title:t.getTitle(),universalAdIdRegistry:t.getUniversalAdIdRegistry(),universalAdIds:t.getUniversalAdIds().map(function(e){return{universalAdRegistry:e.getAdIdRegistry(),universalAdIdValue:e.getAdIdValue()}}),universalAdIdValue:t.getUniversalAdIdValue(),vastMediaBitrate:t.getVastMediaBitrate(),vastMediaHeight:t.getVastMediaHeight(),vastMediaWidth:t.getVastMediaWidth(),wrapperAdIds:t.getWrapperAdIds(),wrapperAdSystems:t.getWrapperAdSystems(),wrapperCreativeIds:t.getWrapperCreativeIds()}};var ii=function e(t){var i="Non-fatal error occurred";if(t){var n=t.getErrorCode();var r=t.getMessage();if(n){i+=": AdError "+n}if(r){i+=": "+r}}return i};var ni=function e(t,i){var n=s["default"].createElement("div");n.className="vjs-ima3-ad-container";t.ima3.insertAdContainer(n);t.ima3.adrequest=function(e){mt.onDemandAdRequest(e||i.serverUrl,t)};t.on("ima3-content-pause-requested",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-content-pause-requested: Received ON_CONTENT_PAUSE_REQUESTED event.");$t(t,i)});t.on("ima3-content-resume-requested",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-content-resume-requested: Received ON_CONTENT_RESUME_REQUESTED event.");ei(t)});Mt.init(t);t.on("ima3-started",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-started: Received STARTED event indicating ad has initiated playback.");t.removeClass("ima3-ad-loading");t.ima3.log("ima3-started");t.ima3.currentAd=e.originalEvent.getAd()});t.on("ima3-log",function(e){var i=e.originalEvent.getAdData().adError;t.ima3.log("ima3-log:",ii(i))});t.on("ima3-ad-error",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-ad-error: Received AD_ERROR event.");var i={};var n;if(e.originalEvent){i=e.originalEvent.getError();n=i.getErrorCode();t.ima3.log("ima3-ad-error",i.toString());if(Ft(a["default"].google.ima,i)&&t.ima3.settings.requestMode==="onload"||t.ima3.settings.requestMode==="onplay"){t.trigger("nopostroll")}}t.removeClass("ima3-ad-loading");t.trigger({type:"adserror",errorCode:n})});if(i.hardTimeouts){t.on("adtimeout",function(){t.ima3.log("[onPlayerReady.player.on] adtimeout: Received adtimeout event");if(t.ima3.adsManager){Vt(t)}else{var e=function e(){Vt(t)};t.one("ima3-ads-manager-loaded",e);t.one(["adstart","contentupdate","dispose"],function(i){t.off("ima3-ads-manager-loaded",e)})}})}t.on("ima3-loaded",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-loaded: Received LOADED event indicating ad has loaded.");var i=e.originalEvent.getAd();t.ima3.log("[onPlayerReady.player.on] ima3-loaded: Ad",ti(i));t.trigger("ads-loading");t.removeClass("ima3-ad-loading");if(i&&!i.isLinear()){t.addClass("vjs-ima3-overlay");t.ima3.log("[onPlayerReady.player.on] ima3-sdk-loaded: Call startLinearAdMode.");t.ads.startLinearAdMode();t.ima3.log("[onPlayerReady.player.on] imad-sdk-loaded: Call endLinearAdMode.");t.ads.endLinearAdMode()}});t.on("ima3-complete",function(e){t.ima3.log("[onPlayerReady.player.on] ima3-complete: Received COMPLETED event.");var i=e.originalEvent.getAd();t.ima3.log("ima3-complete");delete t.ima3.currentAd;if(i){if(!i.isLinear()){t.removeClass("vjs-ima3-overlay")}else{t.addClass("ima3-ad-loading")}}});t.on(["readyforpreroll","playing"],function(e){t.ima3.log("[onPlayerReady.player.on] "+e.type+": Received "+e.type+" event");if(r["default"].browser.IS_ANY_SAFARI&&typeof t.autoplay()==="string"&&e.type==="playing"&&!t.ima3._checkedForAdManagerStart&&!t.ima3.adsManager){return}if(t.ima3._checkedForAdManagerStart){return}t.ima3._checkedForAdManagerStart=true;if(t.ima3.adsManager&&!$e.usingLiveAdCuepoints(i)&&i.requestMode!=="ondemand"&&!$e.isEconomicsFree(t)){t.ima3.log("[onPlayerReady.player.on] "+e.type+": Call startAdsManager for onload or onplay requestmodes.");Ht(t)}});t.on("adserror",function(){t.ima3.log("[onPlayerReady.player.on] adserror: Received ADS_ERROR event.");t.ima3.log("[onPlayerReady.player.on] adserror: Call destroyAdsManager");$e.destroyAdsManager(t)});t.on("adscanceled",function(){t.ima3.log("[onPlayerReady.player.on] adscanceled: Received ADS_CANCELED event.");t.ima3.log("[onPlayerReady.player.on] adscanceled: Call destroyAdsManager.");$e.destroyAdsManager(t)});t.on("ima3-ads-manager-loaded",function(e){t.ima3.log("[onPlayerReady.player.on] ima-ads-manager-loaded: Received LOADED event.");Zt(t,e)});Qt();if(a["default"].google&&a["default"].google.ima){Xt(t,i,n)}else{$e.loadScript(i.sdkurl,function(e){if(e){return t.trigger({type:"adserror",error:e})}Xt(t,i,n)})}};var ri={_isAdLoadError:Ft,_initializeAdDisplayContainer:qt,_cancelVmapAd:Gt,_applyGlobalSettings:Kt,_shouldCancelVmap:Jt,_onContentPauseRequested:$t,_onContentResumeRequested:ei,_getMessageForAdError:ii,onPluginInit:Ut,onPlayerReady:ni,createMediaCuepointVmap:Ct};var ai=/^(file|data):/.test(a["default"].location.protocol)?"http:":"";var si={sdkurl:ai+"//imasdk.googleapis.com/js/sdkloader/ima3.js",serverUrl:ai+"//pubads.g.doubleclick.net/gampad/ads?sz=400x300&iu=%2F6062%2Fiab_vast_samples&ciu_szs=300x250%2C728x90&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]&cust_params=iab_vast_samples%3Dlinear",timeout:4e3,requestMode:"onload",hardTimeouts:true,showVpaidControls:false,debug:false};var oi=function e(t,i){if(i===void 0){i={}}var n=qe({},si,i);t.ima3.defaults=si;if(i.useMediaCuePoints&&i.requestMode!=="oncue"){throw new Error('useMediaCuePoints must be used with requestMode "oncue" rather than the currently set '+i.requestMode)}if(n.requestMode==="onplay"&&t.autoplay()){n.requestMode="onload"}if(n.timeout){n.prerollTimeout=n.postrollTimeout=n.timeout}if(n.contribAdsPrerollTimeout){n.prerollTimeout=n.contribAdsPrerollTimeout}if(n.contribAdsPostrollTimeout){n.postrollTimeout=n.contribAdsPostrollTimeout}if(typeof t.debug==="function"&&t.debug()){n.debug=true}if(n.debug&&!i.hasOwnProperty("sdkurl")){n.sdkurl=ai+"//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"}n.liveCuePoints=n.requestMode==="oncue";return n};r["default"].ima3={extend:qe};var li=function e(t){t.ima3._loadstartSeen=false;t.ima3._playSeen=false;t.ima3._adsErrorSeen=false;t.ima3._autoplayResultEvent=undefined;if(t.ima3._requestAdsOnPlay!==undefined){t.off("play",t.ima3._requestAdsOnPlay)}};var ui=function e(t){var i=this;var n=oi(this,t);if(t&&t.hasOwnProperty("asyncAutoplaySupport")){r["default"].log.warn("Brightcove IMA3: The asyncAutoplaySupport option no longer has any effect. We recommend removing it.")}if(this.autoplay()!==false){n.allowVjsAutoplay=true;this.addClass("vjs-ima3-not-playing-yet");this.any(["autoplay-success","autoplay-failure"],function(e){if(e.type==="autoplay-success"&&!i.ima3._adsErrorSeen){i.pause()}i.removeClass("vjs-ima3-not-playing-yet");i.ima3._autoplayResultEvent=e});if(!r["default"].browser.IS_IOS&&!r["default"].browser.IS_ANDROID){this.addClass("vjs-ima3-autoplay")}}if(!n.showVpaidControls){this.addClass("vjs-vpaid-controls-disabled")}this.addClass("vjs-ad-controls");this.on("ima3-content-pause-requested",function(e){i.addClass("ima3-ad-loading");i.trigger("ads-pod-started");if(e.originalEvent.getAd().getContentType()==="application/javascript"){i.addClass("vjs-vpaid-playing")}});this.on(["ima3-complete","ima3-ad-error","ima3-content-resume-requested"],function(e){var t=i.getChild("ControlBar");var n=t.getChild("ProgressControl");var r=n.getChild("SeekBar");var a=r.getChild("PlayProgressBar");t.removeClass("vjs-ad-control-bar");if(!a.hasClass("vjs-play-progress-resetting")){a.addClass("vjs-play-progress-resetting")}a.el().style.width="0"});this.on("ima3-started",function(e){var t=i.getChild("ControlBar");var n=t.getChild("ProgressControl");var r=n.getChild("SeekBar");var a=r.getChild("PlayProgressBar");a.el().style.width="0";if(!t.hasClass("vjs-ad-control-bar")){t.addClass("vjs-ad-control-bar")}a.removeClass("vjs-play-progress-resetting")});this.on("ima3-ad-progress",function(){i.trigger("timeupdate")});this.on("adserror",function(){i.ima3._adsErrorSeen=true});this.on(["dispose","contentchanged"],function(){li(i)});this.on("loadstart",function(){i.ima3._loadstartSeen=true});this.on("play",function(){i.ima3._playSeen=true});this.on("contentchanged",function(){i.pause();i.ads.settings.allowVjsAutoplay=false;i.ima3._contentchangedSeen=true;if(Ze(i.playlist.autoadvance_)){i.one("adsready",function(){i.ima3.log("[onAdsReady.player.on] Autoadvance setting detected, calling play() to initiate playback after BeforePreroll state");i.play()})}});this.ads(n);this.ads.ad={};this.ads.pod={id:undefined,size:undefined};this.contribAds6Shim(r["default"].mergeOptions({},n.contribAds6Shim||{}));if(n.requestMode==="oncue"){je.init(this,n)}else if(n.requestMode==="ondemand"){mt.initSource(this)}this.ima3=At(this,n);ri.onPluginInit(this);this.ready(function(){var e=r["default"].getTech("Html5");if(e&&e.isSupported()){ri.onPlayerReady(i,n);i.addClass("vjs-ima3-html5")}else{throw new Error("Html5 is not available on this platform.")}},true)};ui.version=Et;ui.VERSION=Et;Ne(ui)})})();(function(){if(videojs.getPlugin("iolApiUtils")){return}if("undefined"===typeof IOL){IOL={}}IOL.Video={};if("undefined"===typeof IOL.VideoPlayerLoader){IOL.VideoPlayerLoader={}}IOL.Video.Utils={iolVideoDebug:false,printToConsole:function(e,t=""){if(IOL.Video.Utils.iolVideoDebug===true&&window["console"]&&console["log"]){var i=new Date;if(typeof e==="object"&&!Array.isArray(e)&&e!==null){e=JSON.stringify(e)}console.log("xxx "+i+": "+e.toUpperCase()+" - ON FILE - "+t)}},triggerEvent:function(e,t,i){if("string"!==typeof e||"undefined"===typeof document.createEvent){return false}var n;if(!i&&("function"===typeof CustomEvent||"object"===typeof CustomEvent)){try{n=new CustomEvent(e,{bubbles:true,cancelable:true,detail:t})}catch(i){n=document.createEvent("CustomEvent");n.initCustomEvent(e,true,true,t)}}else{n=document.createEvent("Event");n.initEvent(e,true,true)}IOL.Video.Utils.printToConsole("EVENTO TRIGGERATO: "+e,"iol-api-utils.js");return window.document.dispatchEvent(n)},log:function(){var e=IOL.objectExtend({level:"log",prefix:undefined},arguments[arguments.length-1]);if("undefined"===typeof console){return}try{e.prefix?console[e.level](e.prefix,arguments):console[e.level](arguments)}catch(e){}},mergeOptions:videojs.mergeOptions?videojs.mergeOptions:videojs.util.mergeOptions,escape:"function"===typeof encodeURIComponent?encodeURIComponent:escape};videojs.registerPlugin("iolApiUtils",function(e){if("undefined"!==typeof e){IOL.options=e}var t=" 2.2.10",i=this,n=undefined,r={iam:{async:true,baseUrl:"//www.iolam.it/js/iam2.0.js"},ima3:{}};var a={viewTolerance:.5,adv:{active:true,hidePlayButton:false},autoplay:true,muted:false,exitButton:false,enableNielsen:true,nextVideoThumb:{active:true},endScreen:{active:true,related:"categoria",autoAdvanceTimeout:3,brandDefault:"IOL",class:"iol-custom-related"},floating:{active:true,on:"player-load",closable:true,floatUp:true,ratioInPage:"56.25",ratioFloating:"56.25"},fixPlayer:{active:true,closeButton:true,closeAfter:0,onScrollUp:false},iam:{active:false,ns:undefined},logo:{active:true,name:"IOL",data:{NOL:{img:'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1360.63 907.09" style="enable-background:new 0 0 1360.63 907.09;" xml:space="preserve"> <style type="text/css"> .st0{fill:#595A5C;} .st1{fill:#208ECE;} .st2{fill:#FFFFFF;} </style> <rect x="281.68" y="233.68" class="st0" width="791.73" height="483.24"/> <g> <polygon class="st1" points="841.6,849.27 288.11,849.27 524.72,58.7 1079.1,58.7 \t"/> </g> <path class="st2" d="M509.95,642.61V308.08h86.96l160.6,204.53V308.08h86.51v334.52h-86.51l-160.6-204.53v204.53H509.95z"/></svg>',link:"https://advertising.newsonline.it"},BUON:{img:'<svg version="1.1" id="BUONISSIMO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#040506;} \t.st2{fill:#E73636;} </style> <path id="Tracciato_37" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <path id="Tracciato_38" class="st1" d="M40.1,9.9c-0.4-1.2-1.1-2.3-2-3.2c-0.9-0.9-2-1.5-3.3-1.8c-1.2-0.3-2.5-0.3-3.7,0 \tc-0.9,0.2-1.7,0.6-2.4,1.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.8-0.6-1.6-1-2.5-1.3c-1.8-0.5-3.6-0.3-5.3,0.4 \tc-0.7,0.3-1.4,0.8-2,1.4c-0.6,0.6-1.2,1.3-1.5,2.1c0,0.1-0.1,0.2-0.3,0.2c0,0-0.1,0-0.1,0c-0.2-0.1-0.4-0.1-0.6-0.2 \tc-0.4-0.1-0.9-0.1-1.3-0.1c-0.2,0-0.4,0-0.6,0c-0.2,0-0.3,0-0.5,0.1s-0.3,0.1-0.5,0.1c-0.5,0.1-1.1,0.3-1.6,0.5 \tc-0.4,0.2-0.7,0.4-1.1,0.6c-1.1,0.8-1.9,1.8-2.4,3c-0.5,1.2-0.7,2.6-0.6,3.9c0.1,1.3,0.6,2.6,1.4,3.7c0.8,1.1,1.8,2,3,2.5 \tc0.6,0.3,1.2,0.5,1.9,0.6c0.4,0.1,0.8,0.1,1.3,0.1c0.2,0,0.5,0,0.7,0c0.8-0.1,1.7-0.3,2.4-0.7c0,0,0.1,0,0.1-0.1l0.8,1.9 \tc0.2,0.5,0.4,1,0.6,1.5c0.1,0.3,0.5,0.6,0.9,0.6c0.2,0,0.5-0.1,0.6-0.3c0.1-0.1,0.2-0.2,0.4-0.3s0.3-0.2,0.4-0.3 \tc0.2-0.2,0.5-0.4,0.8-0.6c0.5-0.4,1.1-0.8,1.7-1.1c0.2-0.1,0.3-0.2,0.5-0.2c0.4-0.2,0.9-0.4,1.3-0.5c0.6-0.2,1.3-0.3,1.9-0.3 \tc0.2,0,0.3,0,0.5,0c0.5,0,1,0,1.4,0.1c0.3,0.1,0.6,0.2,0.8,0.3c0.2,0.1,0.4,0.2,0.5,0.4c0.1,0.1,0.1,0.3,0.1,0.5c0,0.1,0,0.1,0,0.2 \tl-0.1,0.2c0,0.1-0.1,0.2-0.2,0.4c-0.4,0.6-0.9,1.1-1.3,1.6l-0.5,0.6l0.8-0.1c0.4,0,0.7-0.2,1.1-0.3c0,0,0.1,0,0.1-0.1 \tc0.2-0.1,0.4-0.2,0.6-0.4c0.2-0.1,0.3-0.3,0.5-0.5c0.3-0.4,0.5-0.8,0.6-1.3c0.1-0.3,0.1-0.5,0-0.8c0-0.3-0.1-0.6-0.3-0.8 \tc-0.3-0.4-0.7-0.8-1.1-1c-0.4-0.2-0.8-0.4-1.2-0.5c-0.6-0.2-1.3-0.2-2-0.2c-0.1,0-0.3,0-0.4,0c-1.4,0.1-2.8,0.4-4.1,1 \tc-0.1,0.1-0.2,0.1-0.4,0.2c-0.7,0.3-1.3,0.7-1.9,1.2c-0.3,0.2-0.5,0.4-0.8,0.6l-1.3-3.3c-0.2-0.5-0.7-0.7-1.2-0.5 \tc-0.1,0-0.2,0.1-0.2,0.1c-0.8,0.6-1.7,0.9-2.6,1c-0.2,0-0.3,0-0.5,0c-0.8,0-1.6-0.2-2.3-0.5c-0.9-0.4-1.7-1.1-2.2-1.9 \tc-0.6-0.8-0.9-1.8-1-2.7c-0.1-1,0-2,0.4-2.9c0.4-0.9,1-1.6,1.8-2.2c0.3-0.2,0.5-0.3,0.8-0.5c0.1-0.1,0.3-0.1,0.4-0.2 \tc0.1,0,0.2-0.1,0.3-0.1s0.2-0.1,0.3-0.1c0.1,0,0.2,0,0.4-0.1s0.2,0,0.4,0c0.1,0,0.3,0,0.5,0c0.8,0,1.6,0.2,2.3,0.5l0.1,0 \tc0.1,0.1,0.3,0.1,0.4,0.1c0.4,0,0.8-0.3,0.9-0.7l0-0.1C18.8,9.6,19.3,8.7,20,8c0.7-0.7,1.6-1.2,2.5-1.4c0.5-0.1,0.9-0.2,1.4-0.2 \tc0.5,0,1,0.1,1.5,0.2c1,0.3,1.9,0.8,2.6,1.5c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.5-0.1,0.6-0.3c0.6-0.7,1.5-1.2,2.4-1.4 \tc0.9-0.3,1.9-0.3,2.8-0.1c0.9,0.2,1.8,0.7,2.5,1.4c1.5,1.4,2.2,3.4,1.9,5.4c-0.2,1-0.5,1.9-1.2,2.7c-0.5,0.7-1.2,1.2-2,1.6 \tc-0.1,0.1-0.2,0.1-0.3,0.1c-0.7,0.3-1.4,0.4-2.1,0.4c-0.3,0-0.5,0-0.8-0.1l-0.8-0.1c0,0-0.3,3.1,0.2,3.6s0.9,0.4,0.9,0.4l0.2-2.3 \tc0-0.1,0-0.2,0.1-0.2c0.1-0.1,0.1-0.1,0.2-0.1h0.2c0.8,0,1.6-0.1,2.3-0.4c0.2-0.1,0.4-0.2,0.6-0.3c0.9-0.4,1.7-1,2.3-1.8 \tc0.8-1,1.3-2.1,1.5-3.3C40.6,12.4,40.5,11.1,40.1,9.9"/> <path id="Tracciato_39" class="st2" d="M29.2,16.3c-0.3,0.1-1.6,1.1-1.9,1.2c-0.3,0.1-0.5,0.2-0.8,0.3c-0.5,0.2-1.1,0.3-1.7,0.4 \tc-0.6,0.1-1.3,0.1-1.9,0c-0.7-0.1-1.5-0.2-2.2-0.4c0.9,0.7,1.8,1.3,2.8,1.7c0.7,0.2,1.4,0.2,2.1,0.2c0.6-0.1,1.1-0.3,1.6-0.6 \tc0,0,0.1-0.1,0.1-0.1C28.4,18.3,29,17.4,29.2,16.3"/> </svg>',link:"https://www.buonissimo.it"},DL:{img:'<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" \t viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#B90E8F;} </style> <path id="Rettangolo_60" class="st0" d="M4,0h40c2.2,0,4,1.8,4,4v24c0,2.2-1.8,4-4,4H4c-2.2,0-4-1.8-4-4V4C0,1.8,1.8,0,4,0z"/> <path id="Tracciato_18" class="st1" d="M11,23.6V8h5.1c1.1,0,2.2,0.2,3.2,0.6c0.9,0.4,1.7,0.9,2.3,1.7c0.6,0.7,1.1,1.6,1.4,2.5 \tc0.3,1,0.5,2,0.5,3c0,1.1-0.2,2.2-0.5,3.2c-0.3,0.9-0.8,1.7-1.5,2.5c-0.6,0.7-1.4,1.2-2.3,1.6c-1,0.4-2,0.6-3,0.6H11z M22.7,15.8 \tc0-1-0.1-1.9-0.4-2.8c-0.3-0.8-0.7-1.6-1.3-2.2c-0.6-0.6-1.3-1.1-2.1-1.5C18,8.9,17,8.7,16.1,8.7h-4.3v14.2h4.3c1,0,2-0.2,2.9-0.5 \tc0.8-0.3,1.5-0.8,2.1-1.5c0.6-0.7,1-1.4,1.2-2.3C22.5,17.7,22.7,16.7,22.7,15.8"/> <path id="Tracciato_19" class="st1" d="M25.6,8v15.6h10.8v-2.2h-8.4V8H25.6z"/> </svg> ',link:"https://dilei.it"},LIB:{img:'<svg version="1.1" id="LIBERO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#003E72;} \t.st2{fill:#FFFFFF;} \t.st3{fill:#83AD30;} </style> <path id="Tracciato_977" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <circle id="cerchio" class="st1" cx="24" cy="16" r="12"/> <path id="Tracciato_6" d="M25.6,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8c-0.3,0-0.5,0.2-0.5,0.5v9 \tc0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C26,20.7,25.8,20.5,25.6,20.5C25.6,20.5,25.6,20.5,25.6,20.5 \t"/> <path id="Tracciato_7" d="M29.3,19.4c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5C30.8,20,30.1,19.4,29.3,19.4"/> <path id="Tracciato_6-2" class="st2" d="M25.5,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8 \tc-0.3,0-0.5,0.2-0.5,0.5v9c0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C25.9,20.6,25.7,20.5,25.5,20.5 \tC25.5,20.5,25.5,20.5,25.5,20.5"/> <path id="Tracciato_7-2" class="st3" d="M29.2,19.3c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5 \tC30.6,20,30,19.3,29.2,19.3"/> </svg> ',link:"https://www.libero.it"},TEC:{img:'<svg version="1.1" id="LIBERO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#003E72;} \t.st2{fill:#FFFFFF;} \t.st3{fill:#83AD30;} </style> <path id="Tracciato_977" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <circle id="cerchio" class="st1" cx="24" cy="16" r="12"/> <path id="Tracciato_6" d="M25.6,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8c-0.3,0-0.5,0.2-0.5,0.5v9 \tc0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C26,20.7,25.8,20.5,25.6,20.5C25.6,20.5,25.6,20.5,25.6,20.5 \t"/> <path id="Tracciato_7" d="M29.3,19.4c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5C30.8,20,30.1,19.4,29.3,19.4"/> <path id="Tracciato_6-2" class="st2" d="M25.5,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8 \tc-0.3,0-0.5,0.2-0.5,0.5v9c0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C25.9,20.6,25.7,20.5,25.5,20.5 \tC25.5,20.5,25.5,20.5,25.5,20.5"/> <path id="Tracciato_7-2" class="st3" d="M29.2,19.3c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5 \tC30.6,20,30,19.3,29.2,19.3"/> </svg> ',link:"https://tecnologia.libero.it"},SUP:{img:'<svg version="1.1" id="Supereva" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" \t viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#ABAAAA;} \t.st2{fill:#5EAF32;} \t.st3{fill:#CB3717;} \t.st4{fill:#F7C900;} \t.st5{fill:#6DC4D7;} </style> <path id="Tracciato_68" class="st0" d="M44,0H4C1.8,0,0,1.8,0,4v24c0,1,0.4,1.9,1,2.6c4.2-4.3,9-7.9,14.3-10.8 \tc-4,3.3-7.1,7.5-9.3,12.2h38c2.2,0,4-1.8,4-4V4C48,1.8,46.2,0,44,0"/> <path id="Tracciato_69" class="st1" d="M15.3,19.8C10,22.7,5.2,26.3,1,30.6C1.7,31.5,2.8,32,4,32h1.9C8.1,27.3,11.3,23.1,15.3,19.8" \t/> <path id="Tracciato_71" class="st2" d="M17.3,23.6l6.4-2.9l-1.9-2L17.3,23.6z"/> <path id="Tracciato_72" class="st3" d="M17.3,23.6l4.5-4.9L38.9,7.2l-20.4,8.1L17.3,23.6z"/> <path id="Tracciato_73" class="st4" d="M18.5,15.3l20.4-8.1l-26.6,2L18.5,15.3z"/> <path id="Tracciato_74" class="st5" d="M26.8,24L38.9,7.2L21.8,18.7L26.8,24z"/> </svg> ',link:"https://www.supereva.it"},MAG:{img:'<svg version="1.1" id="LIBERO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#003E72;} \t.st2{fill:#FFFFFF;} \t.st3{fill:#83AD30;} </style> <path id="Tracciato_977" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <circle id="cerchio" class="st1" cx="24" cy="16" r="12"/> <path id="Tracciato_6" d="M25.6,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8c-0.3,0-0.5,0.2-0.5,0.5v9 \tc0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C26,20.7,25.8,20.5,25.6,20.5C25.6,20.5,25.6,20.5,25.6,20.5 \t"/> <path id="Tracciato_7" d="M29.3,19.4c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5C30.8,20,30.1,19.4,29.3,19.4"/> <path id="Tracciato_6-2" class="st2" d="M25.5,20.5h-3.2c-1.7,0-1.8-0.4-1.8-1.5v-9c0-0.3-0.2-0.5-0.5-0.5h-0.8 \tc-0.3,0-0.5,0.2-0.5,0.5v9c0,2.9,1.9,3.3,3.7,3.3c1.1,0,2.2,0,3.3-0.2c0.2,0,0.3-0.2,0.3-0.4v-0.8C25.9,20.6,25.7,20.5,25.5,20.5 \tC25.5,20.5,25.5,20.5,25.5,20.5"/> <path id="Tracciato_7-2" class="st3" d="M29.2,19.3c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5c0.8,0,1.5-0.7,1.5-1.5 \tC30.6,20,30,19.3,29.2,19.3"/> </svg> ',link:"https://www.libero.it/magazine"},QF:{img:'<svg version="1.1" id="QUIFINANZA_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#464342;} \t.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;} \t.st3{fill:#FFFFFF;} </style> <path id="Tracciato_43" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <path id="Tracciato_44" class="st1" d="M24,4.5c-6.4,0-11.5,5.1-11.5,11.5S17.6,27.5,24,27.5S35.5,22.4,35.5,16 \tC35.5,9.7,30.3,4.5,24,4.5"/> <path id="Tracciato_45" class="st2" d="M17.4,18.1c0.7,0.8,1.9,1,2.7,0.4c0.1-0.1,0.2-0.2,0.3-0.3c0.5-0.7,0.7-1.5,0.6-2.4 \tc0.1-0.8-0.2-1.7-0.6-2.4c-0.4-0.5-0.9-0.7-1.5-0.7c-0.6,0-1.2,0.3-1.5,0.8c-0.5,0.7-0.7,1.5-0.6,2.4C16.7,16.6,16.9,17.4,17.4,18.1 \t M16.7,13.1c1.3-1.2,3.3-1.2,4.6,0c0.7,0.7,1.1,1.6,1,2.6c0,0.8-0.2,1.5-0.7,2.2c-0.5,0.7-1.2,1.1-2,1.2c0.4,0.6,0.9,1,1.5,1.3 \tc0.4,0.2,0.9,0.3,1.3,0.3v0.2H22c-0.5,0-1,0-1.5-0.1c-0.4-0.1-0.8-0.2-1.1-0.4c-0.4-0.2-0.7-0.4-1-0.7c-0.2-0.2-0.3-0.3-0.5-0.5 \tL17.8,19c-0.5-0.2-0.9-0.5-1.3-0.9c-0.6-0.7-0.9-1.5-0.9-2.4C15.6,14.8,16,13.8,16.7,13.1"/> <path id="Tracciato_46" class="st3" d="M21.8,22.3c0.5,0,0.9-0.1,1.3-0.4c0.2-0.4,0.3-0.9,0.3-1.4v-7.8c0.1-0.4,0-0.9-0.3-1.2 \tc-0.4-0.3-0.8-0.4-1.3-0.4v-0.3h9.6l0.1,2.6h-0.5c0-0.6-0.3-1.2-0.7-1.6c-0.6-0.3-1.3-0.4-2-0.3h-2.5c-0.2,0-0.3,0-0.5,0.1 \tc-0.1,0.1-0.1,0.3-0.1,0.5v4h2.6c0.5,0.1,1-0.1,1.5-0.3c0.3-0.4,0.5-0.9,0.5-1.4h0.4v4.1h-0.4c-0.1-0.5-0.2-1-0.5-1.4 \tc-0.4-0.3-0.9-0.4-1.5-0.3h-2.6v3.9c-0.1,0.4,0,0.9,0.3,1.3c0.4,0.2,0.9,0.4,1.3,0.4v0.3h-5V22.3z"/> </svg> ',link:"https://quifinanza.it"},SV:{img:'<svg version="1.1" id="SIVIAGGIA_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#A5A74A;} \t.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#0099FF;} \t.st3{fill:#FFFFFF;} \t.st4{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;} </style> <path id="Tracciato_21" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32" \t/> <path id="Tracciato_22" class="st1" d="M22.2,26.6l5.5,1.9h-6.3L22.2,26.6z"/> <path id="Tracciato_23" class="st1" d="M16.9,23.1v4.6c0,0.4,0.4,0.8,0.8,0.8h1.8l1.1-3.2C19.3,24.5,17.9,23.7,16.9,23.1"/> <path id="Tracciato_24" class="st1" d="M29.3,23.7c-1,1-2,1.9-2.8,2.7l5.2,2.1h2.2c0.4,0,0.8-0.4,0.8-0.8v-4.4L29.3,23.7z"/> <path id="Tracciato_25" class="st1" d="M34.2,16.4c-0.4,1.4-1,2.6-1.8,3.8c-0.3,0.5-0.8,1-1.2,1.5l3.6-0.3v-4.2 \tC34.7,16.9,34.5,16.6,34.2,16.4"/> <path id="Tracciato_26" class="st2" d="M31.1,19.5c-1.9,2.3-4,4.4-6.2,6.4c-2.6-1.3-5.1-2.7-7.5-4.2c-4.4-3.2-5.3-9.4-2.1-13.8 \tc0,0,0,0,0,0c3.2-4.4,9.7-5.8,14.1-2.5S34.3,15.1,31.1,19.5"/> <path id="Tracciato_27" class="st3" d="M24.6,10.1c-0.2,0.4-0.8,0.6-1.5,0.1c-0.7-0.5-1.5-0.8-2.3-0.8c-1.4,0-2,0.7-1.8,1.7 \tc0.2,1.7,1.9,1.5,4,2.1c2.2,0.6,3.2,1.5,3.3,3.2c0.2,3.1-2.6,4-5,3.5s-2.4-0.8-3.1-1.4s-1.3-1.5-0.6-2.2c0.3-0.2,0.8-0.3,1.6,0.4 \tc0.7,0.6,1.5,1,2.4,1.1c2.2,0.2,2.7-0.5,2.3-1.5c-0.6-1.5-3.4-1.8-4.1-2s-2.4-1-2.7-2.2c-0.5-1.4,0-3,1.3-3.8c1.3-0.8,2.9-1,4.3-0.3 \tC24.2,8.8,24.9,9.5,24.6,10.1"/> <path id="Tracciato_28" class="st3" d="M27.9,11.7c0.4,0,0.8,0.4,0.8,0.8c0,1.1,0.1,2.2,0.4,3.2c0.4,1.6,0.9,2.4,0.6,3.2 \tc-0.2,0.4-0.6,0.7-1,0.6c-1.1-0.2-1-0.8-1.2-2c-0.3-1.4-0.5-2.9-0.5-4.4C26.9,12,27.3,11.7,27.9,11.7"/> <path id="Tracciato_29" class="st4" d="M28.5,10.6c-0.4,0.1-0.9,0.3-1.3,0.3c-0.2-0.4-0.4-0.8-0.5-1.2c-0.2-0.8,0.2-1.7,1-2 \tc0.7-0.3,1.5,0,1.8,0.7c0,0,0,0.1,0.1,0.1C29.7,9.4,29.3,10.2,28.5,10.6"/> </svg>',link:"https://siviaggia.it"},IOL:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://www.virgilio.it"},VID:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://www.virgilio.it/video/"},SPO:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://sport.virgilio.it"},NOT:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://notizie.virgilio.it"},SAP:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://sapere.virgilio.it"},INI:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://initalia.virgilio.it"},MOT:{img:'<svg version="1.1" id="VIRGILIO_chiaro" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" \t y="0px" viewBox="0 0 48 32" style="enable-background:new 0 0 48 32;" xml:space="preserve"> <style type="text/css"> \t.st0{fill:#F8F8F8;} \t.st1{fill:#050506;} \t.st2{fill:#DC5034;} </style> <path id="Tracciato_5" class="st0" d="M44,32H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h40c2.2,0,4,1.8,4,4v24C48,30.2,46.2,32,44,32"/> <path id="Tracciato_6" class="st1" d="M29.4,5.4H26c-0.9,0-1.1,0.3-1.4,1l-4.3,13.3L15.9,6.5c-0.3-0.8-0.5-1-1.3-1H11 \tc-0.6,0-0.8,0.5-0.6,0.9l6.9,19.2c0.4,0.8,0.6,1,1.3,1h3.1c0.7,0,0.9-0.1,1.3-1l6.9-19.2C30.1,5.9,30,5.4,29.4,5.4"/> <path id="Tracciato_7" class="st2" d="M37.7,16.3v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,17.3,37.7,17.1,37.7,16.3"/> <path id="Tracciato_8" class="st1" d="M37.7,25.6v-4.2c0-0.8-0.4-0.9-0.9-0.9h-3.4c-0.6,0-0.9,0.2-0.9,0.9v4.2 \tc0,0.8,0.4,0.9,0.9,0.9h3.4C37.3,26.5,37.7,26.4,37.7,25.6"/> </svg> ',link:"https://www.virgilio.it/motori/"}}},cta:{active:false},videoGallery:{active:false}};i.iolStatus=undefined;IOL.Video.Utils.printToConsole("[iolApiUtils] plugin version:"+t,"iol-api-utils.js");i.iolGetPlayerConfig=function(){if("undefined"===typeof n){var e={};IOL.Video.Utils.printToConsole("TRY TO GET PLAYER CONFIG","iol-api-utils.js");if("undefined"!==typeof i.el().dataset.iolConfig&&""!==i.el().dataset.iolConfig){try{IOL.Video.Utils.printToConsole("PLAYER CONFIG TROVATO","iol-api-utils.js");e=JSON.parse(i.el().dataset.iolConfig)}catch(e){IOL.Video.Utils.printToConsole("ERRORE NELLA CONFIG")}}IOL.Video.Utils.printToConsole("MERGE PLAYER CONFIG CON I PARAMETRI DI DEFAULT","iol-api-utils.js");n=videojs.mergeOptions?videojs.mergeOptions(a,e):videojs.util.mergeOptions(a,e)}return n};i.iolGetPlayerConfig();if(true===n.iam.active&&"undefined"!==typeof n.iam.ns&&"undefined"===typeof window.IOL.adv&&null===document.getElementById("iol-walia-iam")){(function(e,t){t=e.createElement("script");t.async=r.iam.async;t.src=r.iam.baseUrl+"?ns="+IOL.Video.Utils.escape(n.iam.ns);t.id="iol-walia-iam";e.head.appendChild(t)})(document)}i.getRelatedInfo=function(e){IOL.Video.Utils.printToConsole("GET RELATED VIDEO INFO","iol-api-utils.js");e=IOL.Video.Utils.mergeOptions({video_id:undefined},e);var t;if("undefined"!==typeof IOL.Videoplayer){IOL.Video.Utils.printToConsole("related_videos Contains the playlist for LiberoTV and VerticaliTV (this object is filled in iolPlayerLoader.js".toUpperCase(),"iol-api-utils.js");t=IOL.Videoplayer.iolPlaylist}else{IOL.Video.Utils.printToConsole("related_videos Contains the related video playlist generated in endscreen plugin (window.IOL_related_videos is deprecated)".toUpperCase(),"iol-api-utils.js");t=window.IOL_related_videos||i.iolRelatedVideos}if("undefined"===typeof e.video_id||"undefined"===typeof t||!Array.isArray(t)||!t.length){return{}}for(var n=0,r=t.length;n<r;n++){if(e.video_id==t[n].id){return{video_id:t[n].id,title:t[n].name,description:t[n].description,url:t[n].link,brand:t[n].brand,category:t[n].categories,image:t[n].poster,keywords:t[n].keywords,tags:t[n].tags,duration:t[n].duration,published_time:t[n].published_time,video_views:t[n].video_views,author:t[n].author,author_label:t[n].author_label,author_link:t[n].author_link,fb_tot:t[n].fb_tot}}}return{}};i.iolPause=function(e){e=IOL.Video.Utils.mergeOptions({skipViewability:false},e);i.iolSkipViewability=e.skipViewability;i.pause()};IOL.Video.API={};IOL.Video.API.Player={status:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}return{status:videojs.players[e.dom_id].iolStatus}},play:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined,video_id:undefined,adv_mode:true,publisher:undefined,category:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}IOL.VideoPlayerLoader.videoPublisher=e.publisher;IOL.VideoPlayerLoader.videoCat=e.category;IOL.Video.Utils.printToConsole("TRY TO PLAY VIDEO: RESTORE VIEWABILITY","iol-api-utils.js");i.iolSkipViewability=false;if("undefined"===typeof e.video_id){IOL.Video.Utils.printToConsole("RESTORE CURRENT VIDEO","iol-api-utils.js");if(e.adv_mode&&"adv"===t){videojs.players[e.dom_id].ima3.adPlayer.play()}else{videojs.players[e.dom_id].play()}IOL.Video.Utils.printToConsole("TRIGGER SCROLL TO FORCE VIEWABILITY CHECK","iol-api-utils.js");IOL.Video.Utils.triggerEvent("scroll")}else{IOL.Video.Utils.printToConsole("CALL GET VIDEO","iol-api-utils.js");videojs.players[e.dom_id].catalog.getVideo(e.video_id,function(t,i){if(i){videojs.players[e.dom_id].catalog.load(i)}})}return true},play_clickToPlay:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined,video_id:undefined,adv_mode:true,publisher:undefined,category:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}IOL.VideoPlayerLoader.videoPublisher=e.publisher;IOL.VideoPlayerLoader.videoCat=e.category;IOL.Video.Utils.printToConsole("TRY TO PLAY VIDEO: RESTORE VIEWABILITY","iol-api-utils.js");if("undefined"===typeof e.video_id){IOL.Video.Utils.printToConsole("RESTORE CURRENT VIDEO","iol-api-utils.js");if(e.adv_mode&&"adv"===t){videojs.players[e.dom_id].ima3.adPlayer.play()}else{videojs.players[e.dom_id].play()}IOL.Video.Utils.printToConsole("TRIGGER SCROLL TO FORCE VIEWABILITY CHECK","iol-api-utils.js");IOL.Video.Utils.triggerEvent("scroll")}else{IOL.Video.Utils.printToConsole("CALL GET VIDEO","iol-api-utils.js");IOL.Video.Utils.printToConsole("#################");console.log(e.video_id);console.log(videojs.players[e.dom_id].mediainfo.id);if(e.video_id==videojs.players[e.dom_id].mediainfo.id){IOL.Video.Utils.printToConsole("FORSE FUNZIONO");if(videojs.players[e.dom_id].paused()){IOL.Video.Utils.printToConsole("SONO IN PAUSA; MI AVVIO");videojs.players[e.dom_id].play()}else{IOL.Video.Utils.printToConsole("STO ANDANDO, MI PAUSO");videojs.players[e.dom_id].pause()}}else{videojs.players[e.dom_id].catalog.getVideo(e.video_id,function(t,i){if(i){IOL.Video.Utils.printToConsole("DENTRO IF VIDEO");videojs.players[e.dom_id].catalog.load(i);videojs.players[e.dom_id].play()}})}}return true},playAdv:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}IOL.Video.Utils.printToConsole("TRY RESUME ADV","iol-api-utils.js");if("adv"===t){videojs.players[e.dom_id].ima3.adPlayer.play();return true}return false},stopAdv:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}IOL.Video.Utils.printToConsole("TRY TO STOP ADV","iol-api-utils.js");if("adv"===t){videojs.players[e.dom_id].ima3.adPlayer.pause();return true}return false},stop:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined,skip_viewability:true,adv_mode:true},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}if(e.adv_mode&&"adv"===t){IOL.Video.Utils.printToConsole("IF ADV, STOP ADV","iol-api-utils.js");videojs.players[e.dom_id].ima3.adPlayer.pause()}else{IOL.Video.Utils.printToConsole("STOP VIDEO AND PUT IT ON PAUSE","iol-api-utils.js");videojs.players[e.dom_id].iolPause({skipViewability:e.skip_viewability,stopAdv:e.adv_mode});videojs.players[e.dom_id].trigger("sendStopToSdk")}return true},destroy:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined},e);var t=IOL.Video.API.Player.check({dom_id:e.dom_id});if(false===t){return false}IOL.Video.Utils.triggerEvent("iol_player_video_removePlayer");IOL.Video.Utils.printToConsole("DESTROY PLAYER","iol-api-utils.js");videojs.players[e.dom_id].muted(true);videojs.players[e.dom_id].dispose();IOL.VideoPlayerLoader={};return false},check:function(e){e=IOL.Video.Utils.mergeOptions({dom_id:undefined},e);if("undefined"===typeof e.dom_id){return false}if("undefined"===typeof videojs.players[e.dom_id]){IOL.Video.Utils.printToConsole("REQUESTED PLAYER NOT FOUND","iol-api-utils.js");return false}if(videojs.players[e.dom_id].ads.isInAdMode()){IOL.Video.Utils.printToConsole("ADV PLAYER FOUND","iol-api-utils.js");return"adv"}IOL.Video.Utils.printToConsole("VIDEO PLAYER FOUND","iol-api-utils.js");return"video"}};i.ready(function(){i.iolStatus="ready";IOL.Video.Utils.printToConsole("IOL-API-UTILS.JS PLAYER READY","iol-api-utils.js");var e=null;if("undefined"!==typeof IOL.VideoPlayerLoader){if(typeof IOL.VideoPlayerLoader.playTimeAtSecond!=="undefined")e=IOL.VideoPlayerLoader.playTimeAtSecond}if(e!=null&&!isNaN(e))i.currentTime(e);IOL.Video.Utils.triggerEvent("iol-walia-ready",{dom_id:i.id()},false);i.one("playing",function(){i.on("loadedmetadata",function(){var e=i.getRelatedInfo({video_id:i.mediainfo.id})||{};IOL.Video.Utils.printToConsole("Trigger 'iol-walia-next' event, when another video is loaded. Next video can be loaded after an end of current video or when user clicks on pause screen related videos menu".toUpperCase(),"iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-next",{dom_id:i.id(),video_id:e.video_id,title:e.title,description:e.description,url:e.url,brand:e.brand,category:e.category,image:e.image,keywords:e.keywords,tags:e.tags,duration:e.duration,published_time:e.published_time,video_views:e.video_views,author:e.author,author_label:e.author_label,author_link:e.author_link,fb_tot:e.fb_tot},false)})});i.one("play",function(){i.iolStatus="play";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN PLAY","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-play",{dom_id:i.id(),video_id:i.mediainfo.id},false)});i.on("playing",function(){i.iolStatus="resumed";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN RESUMED","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-resumed",{dom_id:i.id(),video_id:i.mediainfo.id},false)});i.on("pause",function(){i.iolStatus="stop";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN STOP","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-stop",{dom_id:i.id(),video_id:i.mediainfo.id,position:i.currentTime()*1e3},false)});i.on("ended",function(){i.iolStatus="end";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN ENDED","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-end",{dom_id:i.id(),video_id:i.mediainfo.id,video_gallery:n.videoGallery.active},false)});i.on("ads-play",function(){i.iolStatus="adv-play";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN ADV-PLAY","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-adv-play",{dom_id:i.id()},false)});i.on("ads-pause",function(){i.iolStatus="adv-stop";IOL.Video.Utils.printToConsole("UPDATE PLAYER STATUS IN ADV-STOP","iol-api-utils.js");IOL.Video.Utils.triggerEvent("iol-walia-adv-stop",{dom_id:i.id()},false)})})})})();(function(){if(videojs.getPlugin("overlay")){return}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js"),require("global/window")):"function"==typeof define&&define.amd?define(["video.js","global/window"],t):e.videojsOverlay=t(e.videojs,e.window)}(this,function(e,t){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var n={align:"top-left",class:"",content:"This overlay will show up while the video is playing",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[{start:"playing",end:"paused"}]},r=e.getComponent("Component"),a=e.dom||e,s=e.registerPlugin||e.plugin,o=function(e){return"number"==typeof e&&e==e},l=function(e){return"string"==typeof e&&/^\S+$/.test(e)},u=function(n){var r,s;function u(e,t){var r;return r=n.call(this,e,t)||this,["start","end"].forEach(function(e){var t=r.options_[e];if(o(t))r[e+"Event_"]="timeupdate";else if(l(t))r[e+"Event_"]=t;else if("start"===e)throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(e){r[e]=function(t){return u.prototype[e].call(i(i(r)),t)}}),"timeupdate"===r.startEvent_&&r.on(e,"timeupdate",r.rewindListener_),r.debug('created, listening to "'+r.startEvent_+'" for "start" and "'+(r.endEvent_||"nothing")+'" for "end"'),r.hide(),r}s=n,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var d=u.prototype;return d.createEl=function(){var e=this.options_,i=e.content,n=e.showBackground?"vjs-overlay-background":"vjs-overlay-no-background",r=a.createEl("div",{className:"\n vjs-overlay\n vjs-overlay-"+e.align+"\n "+e.class+"\n "+n+"\n vjs-hidden\n "});return"string"==typeof i?r.innerHTML=i:i instanceof t.DocumentFragment?r.appendChild(i):a.appendContent(r,i),r},d.debug=function(){if(this.options_.debug){for(var t=e.log,i=t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.hasOwnProperty(r[0])&&"function"==typeof t[r[0]]&&(i=t[r.shift()]),i.apply(void 0,["overlay#"+this.id()+": "].concat(r))}},d.hide=function(){return n.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.on(this.player(),this.startEvent_,this.startListener_),this},d.shouldHide_=function(e,t){var i=this.options_.end;return o(i)?e>=i:i===t},d.show=function(){return n.prototype.show.call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},d.shouldShow_=function(e,t){var i=this.options_.start,n=this.options_.end;return o(i)?o(n)?e>=i&&e<n:this.hasShownSinceSeek_?Math.floor(e)===i:(this.hasShownSinceSeek_=!0,e>=i):i===t},d.startListener_=function(e){var t=this.player().currentTime();this.shouldShow_(t,e.type)&&this.show()},d.endListener_=function(e){var t=this.player().currentTime();this.shouldHide_(t,e.type)&&this.hide()},d.rewindListener_=function(e){var t=this.player().currentTime(),i=this.previousTime_,n=this.options_.start,r=this.options_.end;t<i&&(this.debug("rewind detected"),o(r)&&!this.shouldShow_(t)?(this.debug("hiding; "+r+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):l(r)&&t<n&&(this.debug("hiding; show point ("+n+") is before now ("+t+") and end point ("+r+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=t},u}(r);e.registerComponent("Overlay",u);var d=function(t){var i=this,r=e.mergeOptions(n,t);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(e){i.removeChild(e),i.controlBar&&i.controlBar.removeChild(e),e.dispose()});var a=r.overlays;delete r.overlays,this.overlays_=a.map(function(t){var n=e.mergeOptions(r,t),a="string"==typeof n.attachToControlBar||!0===n.attachToControlBar;if(!i.controls()||!i.controlBar)return i.addChild("overlay",n);if(a&&-1!==n.align.indexOf("bottom")){var s=i.controlBar.children()[0];if(void 0!==i.controlBar.getChild(n.attachToControlBar)&&(s=i.controlBar.getChild(n.attachToControlBar)),s){var o=i.controlBar.children().indexOf(s);return i.controlBar.addChild("overlay",n,o)}}var l=i.addChild("overlay",n);return i.el().insertBefore(l.el(),i.controlBar.el()),l})};return d.VERSION="2.1.5",s("overlay",d),d})})();(function(){if(videojs.getPlugin("iol_custom_core_lib")){return}(function(e,t,i){var n=function(){var n=this;var r="iol_custom_core_lib";var a="iol_adv_msg_container_"+n.id();var s="iol-adv-remaining-time_"+n.id();var o="iol-adv-position_"+n.id();var l="iol-video-thumb_"+n.id();var u="iol-next-video-thumb_"+n.id();var d="iol-cta-info-btn_"+n.id();var c="iol-cta-title-container_"+n.id();var f="iol-big-pause-button_"+n.id();var p="iol-scrubbing-tips_"+n.id();var h="iol-fast-forward-icon_"+n.id();var g="iol-rewind-icon_"+n.id();var m="iol-tap-overlay-sx_"+n.id();var y="iol-tap-overlay-dx_"+n.id();var _=0;var b=5e3;var S=8e3;var T=3e5;var E=.5;var w;var k={};var I="onload";var A="https://pubads.g.doubleclick.net/gampad/ads?iu=/5180/virgilio/video/noiam&description_url=https://video.virgilio.it&env=vp&impl=s&correlator=&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640x480&unviewed_position_start=1";var C=IOL.show_debug?IOL.show_debug:false;var j=false;var P=i.browser.IS_ANDROID;var x=i.browser.IS_IOS;var L=[];var O;var D;var R=470;var N={};var M=15;var U="";var B=250;var F={};var V=false;var q=0;var H=1;var G=1;var z=1;var W=1;var Y=n.el_.querySelector(".vjs-text-track-display");if("undefined"!==typeof IOL.Videoplayer){_=IOL.Videoplayer.playlistConf[IOL.Videoplayer.settings.playlistType].indexFirstVideo}w=n.iolGetPlayerConfig();if("undefined"!==typeof n.el_.dataset.iolVideoId){var K=n.el_.dataset.iolVideoId}if("viewport"===w.floating.on||false===w.autoplay){I="onplay"}if(true===w.logo.active){var X="logo_container_"+n.id()}IOL.Video.Utils.printToConsole("iol_custom_core_lib version: 2.0.11",r);var Q=function(){if("function"===typeof n.integral){if("undefined"!==typeof e.IOL.adv){U=e.IOL.adv.getAdUnitPath("advideo","");n.integral({anId:"928968",campId:"640x480",chanId:U})}}};if("undefined"!==typeof e.IOL.adv&&"undefined"!==typeof e.IOL.adv.hasConsent){if(false===e.IOL.adv.hasConsent()){b=T}}else{n.trigger("iam_undef_for_consent")}var J=function(t){IOL.Video.Utils.printToConsole("START WINDOW.IOL.ADV.GETVIDEOADS ",r);n.trigger("iol-event-track",{type:"iam_adserverurl_request_"+z});z++;var i="";var a="";var s={clientCustomParams:true,args:{cat:"",f:"appendOptionalCustomParams"}};var o=function(e){var i="off";IOL.Video.Utils.printToConsole("DISPLAY PREROLL: iam return the adServerUrl: "+e.adServerUrl,r);n.trigger("iol-event-track",{type:"iam_adserverurl_response_"+W});if(n.muted()===false)i="on";n.trigger("iol-event-track",{type:"iol_gam_audio_"+i+"_"+W});W++;e.adServerUrl=e.adServerUrl.replace("__CLIENTCUSTOMPARAMS__","audio%3D"+i);if(true===w.advfree){e.adServerUrl=A;n.trigger("iol_no_adv")}t(e.adServerUrl)};var l=function(){var e="";if("undefined"!==typeof n.mediainfo){if("undefined"!==typeof n.mediainfo.custom_fields){if("undefined"!==typeof n.mediainfo.custom_fields.publisher){e=n.mediainfo.custom_fields.publisher}}}return e};var u=function(){var e="";if("undefined"!==typeof n.mediainfo){if("undefined"!==typeof n.mediainfo.custom_fields){if("undefined"!==typeof n.mediainfo.custom_fields.categoria){e=n.mediainfo.custom_fields.categoria}}}return e};if("undefined"!==typeof e.IOL.adv){try{IOL.Video.Utils.printToConsole("IAM is defined",r);if("undefined"!==typeof IOL.VideoPlayerLoader.videoPublisher){i=IOL.VideoPlayerLoader.videoPublisher}else{i=l()}if("undefined"!==typeof IOL.VideoPlayerLoader.videoCat){a=IOL.VideoPlayerLoader.videoCat}else{a=u()}s.args.cat=a;IOL.Video.Utils.printToConsole("VALUE OF (VIDEOPLAYERLOADER) PUBLISHER: "+IOL.VideoPlayerLoader.videoPublisher+" VALUE OF CATEGORY: "+IOL.VideoPlayerLoader.videoCat);IOL.Video.Utils.printToConsole("VALUE OF (VALORI EFFETTIVI) PUBLISHER: "+i+" VALUE OF CATEGORY: "+a);e.IOL.adv.getVideoAds(i,function(e){o(e)},s)}catch(e){}}else{var d=new Promise(function(t,i){var n=20;var a=0;setTimeout(function i(){if("undefined"!==typeof e.IOL.adv){IOL.Video.Utils.printToConsole("PROMISE CHECK IAM. IAM is defined for the first video iter = "+a,r);t("ok")}else{if(a<=n){IOL.Video.Utils.printToConsole("PROMISE CHECK IAM. IAM is not defined iter = "+a,r);a++;setTimeout(i,100)}else{IOL.Video.Utils.printToConsole("PROMISE CHECK IAM. IAM is not defined after timeout for the first video iter = "+a,r);t("timeout")}}},50)});d.then(function(n){IOL.Video.Utils.printToConsole("PROMISE IAM RESOLVED. resolve - "+n,r);if("undefined"!==typeof IOL.VideoPlayerLoader.videoPublisher){i=IOL.VideoPlayerLoader.videoPublisher}else{i=l()}if("undefined"!==typeof IOL.VideoPlayerLoader.videoCat){a=IOL.VideoPlayerLoader.videoCat}else{a=u()}s.args.cat=a;if(n==="ok"){IOL.Video.Utils.printToConsole("VALUE OF PUBLISHER: "+i);IOL.Video.Utils.printToConsole("VALUE OF CATEGORY: "+a);try{e.IOL.adv.getVideoAds(i,function(e){o(e)},s)}catch(e){}}else if(n==="timeout"){IOL.Video.Utils.printToConsole("IAM TIMEOUT call dfp with a default AdServerUrl",r);t(A)}else{IOL.Video.Utils.printToConsole("Promise return msg != ok and != timeout - this case should not be happens!",r)}})}IOL.Video.Utils.printToConsole("waiting for timeout ....................")};n.ready(function(){IOL.Video.Utils.printToConsole("====> PLAYER READY",r);n.on("ads-before-request",e=>{const{adsRequest:t}=e;t.omidAccessModeRules={};t.omidAccessModeRules[google.ima.OmidVerificationVendor.OTHER]=google.ima.OmidAccessMode.FULL;IOL.Video.Utils.printToConsole("inside ads-before-reuqest",r)});var a=t.getElementsByClassName("vjs-fullscreen-control")[0];if(x){a.parentNode.removeChild(a)}var s=function(){n.off("adend",s);n.off("ima3-ad-error",s);n.off("ima3error",s);n.off("ima3-log",s);n.off("adtimeout",s);n.off("iol_no_adv",s);n.ima3.settings.serverUrl="";if("undefined"!==typeof K){n.catalog.get({type:"video",id:K}).then(e=>{e.poster=n.poster(n.options()["data-poster"]);n.catalog.load(e);IOL.Video.Utils.printToConsole("**** Loading Video: "+v.id,"iol_custom_core");K=undefined})}else{IOL.Video.Utils.printToConsole("ERROR: VideoID not available");setTimeout(function(){n.trigger("error_videoid")},1e3)}};n.ima3.settings.serverUrl=J;if(IOL.VideoPlayerLoader.adonly){n.one("adend",s);n.one("ima3-ad-error",s);n.one("ima3error",s);n.one("ima3-log",s);n.one("adtimeout",s);n.one("iol_no_adv",s);n.one("manual-click-next-video",function(){if(n.ima3.settings.serverUrl==""){n.ima3.settings.serverUrl=J}})}else{if("undefined"!==typeof K){n.catalog.get({type:"video",id:K}).then(e=>{e.poster=n.poster(n.options()["data-poster"]);n.catalog.load(e);IOL.Video.Utils.printToConsole("**** Loading Video: "+v.id,"iol_custom_core");K=undefined})}else{IOL.Video.Utils.printToConsole("ERROR: VideoID not available");setTimeout(function(){n.trigger("error_videoid")},1e3)}}Q();if("undefined"!==typeof n.responsive){n.responsive(false)}n.ima3.setAdsRenderingSettings({loadVideoTimeout:S});if(true===w.adv.hidePlayButton){n.addClass("iol-hide-ad-play-button")}n.volume(E);if(undefined!==IOL.Videoplayer){if(IOL.Videoplayer.settings.volume>0){n.volume(IOL.Videoplayer.settings.volume)}else if(true===w.muted||0===IOL.Videoplayer.settings.volume){n.muted(true)}}else if(true===w.muted){IOL.Video.Utils.printToConsole("SETUP PER AUTOPLAY OR MANUAL PLAY AND IF THE PLAYER MUST BE START MUTED","handle_scroll_into_view_ads.js");n.muted(true)}else{}if(true===w.logo.active){se()}Se();Pe();Te();n.on("loadstart",pe);if(P||x){Ae();xe();Le();Oe()}if(true===w.cta.active){if(!(P||x)){n.on("loadstart",function(){N={};ne();L=n.mediainfo.cue_points;var e=n.textTracks()[0];if("undefined"!==typeof L&&null!=L&&L.length!==0){n.one("loadedmetadata",function(){Z();ee();ie()});n.one("playing",function(){var e=L[0].metadata.split(";");if(null!==e&&e.length>=2){N.durationCTA=e[0]||M;N.textCTA=be(e[1]);N.urlCTA=e[2];if("undefined"!==N.textCTA||"undefined"!==N.urlCTA){N.hrefCTA='<a class= "cta-title-link" href="'+N.urlCTA+'" target="_blank">'+N.textCTA+"</a>";t.getElementsByClassName("iol-placeholder-cta-label")[0].innerHTML=N.hrefCTA;$()}}else{ee()}});e.oncuechange=function(){if(e.activeCues[0]!==undefined){O=_e(L,"time",e.activeCues[0].startTime);me(O[0])}}}})}}n.one("loadedmetadata",function(){if(n.currentWidth()<R){n.addClass("iol-player-small")}n.on("playerresize",function(){if(n.currentWidth()<R){n.addClass("iol-player-small")}else{n.removeClass("iol-player-small")}})});function o(){if(n.currentTime()>n.mediainfo.duration-3){n.off("timeupdate",o);he()}}if(P||x){n.one("timeupdate",Ue)}if(true===w.logo.active){n.one("loadedmetadata",le)}n.on("loadedmetadata",function(){pe();n.on("timeupdate",o)});n.one("ads-ad-started",Se);n.on("ads-ad-started",ue);n.on("adend",function(){k={}});if(P||x){n.controlBar.progressControl.seekBar.on("touchstart",function(){Ce();n.addClass("iol-scrubbing-tips-showing");n.one("playing",function(){je();n.removeClass("iol-scrubbing-tips-showing")})})}n.on("ads-ad-started",re);n.on("ads-ad-started",ce);if(true===w.cta.active){if(!(P||x)){n.on("ads-ad-started",function(){ee();ie()});n.on("ended",ne);n.on("playerresize",function(){if(n.currentWidth()<R){n.addClass("iol-cta-player-small")}else{n.removeClass("iol-cta-player-small")}})}}if(!IOL.VideoPlayerLoader.adonly){n.on("ads-ad-started",function(){if(!(P||x)&&n.currentWidth()>=B){if(false===k.isSkippable){if(k.totalNumAds>1&&k.CurrentAdPos==2||k.totalNumAds==1&&k.CurrentAdPos==1){F.poster=n.mediainfo.thumbnail;F.title=n.mediainfo.name;F.duration=i.formatTime(n.mediainfo.duration);fe(F,false,"Il video inizierà a breve")}}}})}n.on("playerresize",function(){if(n.currentWidth()<B){pe()}});n.on("manual-pause",function(){V=true;Ee();setTimeout(function(){we();if(!(P||x)){if(typeof n.relatedModal!=="undefined"){if(!n.relatedModal.hasClass("related-small")){n.trigger("show-related-on-pause")}if(n.relatedModal.relatedList.items===undefined){n.trigger("iol-endscreen-error")}}}},300)});n.one("play",function(){IOL.Video.Utils.printToConsole("ADTIMEOUT START PLAY EVENT RECEIVED","iol_custom_core_lib");n.trigger("iol-event-track",{type:"adtimeout_start_"+G});G++});n.on("manual-play",function(){V=false;ke();setTimeout(function(){Ie()},300)});n.on("playerresize",function(){if(!(P||x)){if(true===V){if(n.currentWidth()<=R){if(!n.ended()){n.trigger("hide-related")}}else{n.trigger("show-related-on-pause")}}}});if(P||x){var l;Y.style.pointerEvents="auto";Y.addEventListener("click",function(e){if(n.el_.classList.contains("vjs-touch-enabled")){clearTimeout(l);q++;if(q===2){q=0;e.preventDefault();if(.66*n.currentWidth()<e.offsetX){n.currentTime(n.currentTime()+10>n.duration()?n.duration():n.currentTime()+10);De();setTimeout(function(){Re()},500)}else if(e.offsetX<.33*n.currentWidth()){n.currentTime(n.currentTime()-10<0?0:n.currentTime()-10);Ne();setTimeout(function(){Me()},500)}}l=setTimeout(function(){q=0},300)}})}n.on("adend",pe);n.on("ended",pe);n.on("adend",ae);n.on("ended",ge);if(typeof n.overlay!=="undefined"){n.overlay({overlays:[{start:"timeoutError",end:"clearErrors",content:"<p><strong>;) Ops!</strong>Sei rimasto inattivo per troppo tempo.<br><a href='#' onclick='reloadpage()'>Clicca qui per ricaricare il video.</a></p>"},{start:"genericError",end:"clearErrors",content:"<p><strong>;) Ops!</strong>Si \xe8 verificato un errore.<br><a href='#' onclick='reloadpage()'>Clicca qui per ricaricare il video.</a></p>"}]})}n.on(["aderror","error"],function(e){var t=n.error().code;if(t=="-2"||t=="2"){n.trigger("timeoutError")}else{n.trigger("genericError")}});reloadpage=function(){if(e.location!==e.parent.location){e.top.location.reload(true)}else{e.location.reload(true)}};var u=function(e){n=null};e.addEventListener("iol_player_video_removePlayer",u)});if(IOL.VideoPlayerLoader.adonly){n.src("https://i.plug.it/iplug/js/lib/iol/video/v2/common/media/tiny.mp4")}if(P){e.addEventListener("orientationchange",function(){if(null!==n){IOL.Video.Utils.printToConsole("WINDOW ORIENTATION CHANGED. window orientation is now "+e.orientation,r);if(e.orientation===90||e.orientation===-90){IOL.Video.Utils.printToConsole("FIXED PLAYER IS DISABLED",r);n.trigger("disable-fixed-player");if(!n.isFullscreen()){IOL.Video.Utils.printToConsole("PLAYER REQUEST FULL SCREEN",r);n.requestFullscreen()}}else{if(n.isFullscreen()){IOL.Video.Utils.printToConsole("PLAYER EXIT FROM FULLSCREEN",r);n.exitFullscreen()}n.trigger("enable-fixed-player")}}})}var Z=function(){var r=n.el();var a=t.createElement("button");a.setAttribute("class","iol-btn-info");a.setAttribute("id",d);var s=t.createElement("span");s.setAttribute("aria-hidden","true");s.setAttribute("class","vjs-icon-placeholder");var o=t.createElement("span");o.setAttribute("class","vjs-control-text");o.textContent="info-card";a.appendChild(s);a.appendChild(o);i.dom.addClass(a,"vjs-control");i.dom.addClass(a,"vjs-button");i.dom.addClass(a,"iol-btn-info-showing");var l=t.createElement("div");var u=t.createElement("div");var f=t.createElement("div");var p=t.createElement("span");l.setAttribute("class","iol-container-cta-title");l.setAttribute("id",c);u.setAttribute("class","iol-container-cta-box");f.setAttribute("class","iol-container-cta-text");p.setAttribute("class","iol-placeholder-cta-label");f.appendChild(p);l.appendChild(u);l.appendChild(f);r.appendChild(a);r.appendChild(l);a.addEventListener("click",function(){if(!n.hasClass("iol-cta-title-shown")){D=e.setTimeout(ye,M*1e3);te()}});l.addEventListener("click",function(e){var t={};t.title=e.target.innerText||e.target.innerHTML||"";t.link=e.target.href||"";n.trigger({type:"cta-button-click",options:t})})};var $=function(){if(n.hasClass("iol-cta-info-hidden")){n.removeClass("iol-cta-info-hidden")}};var ee=function(){n.addClass("iol-cta-info-hidden")};var te=function(){if(n.hasClass("iol-cta-title-hidden")){n.removeClass("iol-cta-title-hidden")}n.addClass("iol-cta-title-shown")};var ie=function(){n.addClass("iol-cta-title-hidden");if(n.hasClass("iol-cta-title-shown")){n.removeClass("iol-cta-title-shown")}};var ne=function(){var e=t.getElementById(d);var i=t.getElementById(c);if("undefined"!==typeof e&&e!==null){n.el().removeChild(e)}if("undefined"!==typeof i&&i!==null){n.el().removeChild(i)}};var re=function(){var e=t.getElementById(a);if(e==null){if("undefined"!==typeof n.ima3.adPlayer){n.ima3.adPlayer.on("timeupdate",de)}else{n.on("adtimeupdate",de)}var i=t.createElement("div");var r=t.createElement("span");var l=t.createElement("span");i.setAttribute("id",a);i.setAttribute("class","iol-adv-msg-container");r.setAttribute("id",o);l.setAttribute("id",s);r.innerHTML=k.CurrentAdPos+" "+"di"+" "+k.totalNumAds+" ";l.innerHTML="- "+k.remainingTime;i.innerHTML="Pubblicità"+" ";i.appendChild(r);i.appendChild(l);n.el().appendChild(i)}};var ae=function(){var e=t.getElementById(a);if("undefined"!==typeof e&&e!==null){if("undefined"!==typeof n.ima3.adPlayer){n.ima3.adPlayer.off("timeupdate",de)}else{n.off("adtimeupdate",de)}n.el().removeChild(e)}};var se=function(){var e=t.createElement("div");e.setAttribute("id",X);var i=t.createElement("a");i.setAttribute("target","_blank");i.setAttribute("rel","noopener");if(w.logo.data[w.logo.name]!==undefined){i.setAttribute("href",w.logo.data[w.logo.name].link);i.innerHTML=w.logo.data[w.logo.name].img}else{i.setAttribute("href",w.logo.data["IOL"].link);i.innerHTML=w.logo.data["IOL"].img}e.appendChild(i);e.setAttribute("class","logo-iol-player");n.controlBar.el().appendChild(e)};var oe=function(){var e=t.getElementById(X);if("undefined"!==typeof e){e.style.display="none"}};var le=function(){var e=t.getElementById(X);if("undefined"!==typeof e){e.style.display="block"}};var ue=function(){if("undefined"!==typeof n.ima3.currentAd){var e=n.ima3.currentAd;k.CurrentAdPos=e.getAdPodInfo().getAdPosition();k.totalNumAds=e.getAdPodInfo().getTotalAds();k.isSkippable=e.isSkippable()}if("undefined"!==typeof n.ima3.adPlayer){k.duration=n.ima3.adPlayer.duration();var t=n.ima3.adPlayer.remainingTimeDisplay()}else{k.duration=n.duration();var t=n.remainingTime()}k.remainingTime=i.formatTime(t);return k};var de=function(){var e=t.getElementById(s);var r="";if("undefined"!==typeof n.ima3.adPlayer){r=n.ima3.adPlayer.remainingTimeDisplay()}else{r=n.remainingTime()}k.remainingTime=i.formatTime(r);if("undefined"!==typeof e&&null!==e){e.innerHTML="- "+k.remainingTime}};var ce=function(){var e=t.getElementById(o);if("undefined"!==typeof e&&null!==e){e.innerHTML=k.CurrentAdPos+" "+"di"+" "+k.totalNumAds+" "}};var fe=function(e,i,r){var a=t.getElementById(l);if(null===a){var s=t.createElement("div");s.setAttribute("id",l);s.setAttribute("class","iol-video-thumb-Container-outer");var o=t.createElement("div");o.setAttribute("class","iol-thumb-text");o.innerHTML=r;var d=t.createElement("div");d.setAttribute("class","iol-thumb-duration");d.innerHTML=e.duration;var c=t.createElement("div");c.setAttribute("class","iol-thumb-container");var f=t.createElement("img");f.setAttribute("id",u);f.setAttribute("src",e.poster);if(i===true){f.setAttribute("style","cursor: pointer")}var p=t.createElement("div");p.setAttribute("class","iol-thumb-title");p.innerHTML=e.title;c.appendChild(f);s.appendChild(o);s.appendChild(d);s.appendChild(c);s.appendChild(p);n.el().appendChild(s)}};var pe=function(){var e=t.getElementById(l);if("undefined"!==typeof e&&null!==e){n.el().removeChild(e)}};var he=function(){var e=0;var r=0;if(true===w.endScreen.active&&true===w.nextVideoThumb.active){if("undefined"!==typeof n.relatedModal.relatedList&&"undefined"!==typeof n.relatedModal.relatedList.items){r=n.relatedModal.relatedList.items.length;if(r!=0){F.poster=n.relatedModal.relatedList.items[_].item_.poster;F.title=n.relatedModal.relatedList.items[_].item_.name;F.duration=i.formatTime(n.relatedModal.relatedList.items[_].item_.duration);fe(F,true,"Successivo");var a=t.getElementById(u);a.addEventListener("click",function(){var e=n.relatedModal.relatedList.items.length;if(e!=0){var t=n.relatedModal.relatedList.items[_].item_.id;pe();if(!n.ended()){n.trigger("current-video-ended")}if(IOL.VideoPlayerLoader.adonly){if(n.ima3.settings.serverUrl==""){n.ima3.settings.serverUrl=J}}n.catalog.getVideo(t,function(t,i){if(i){n.catalog.load(i);_=(_+1)%e;var r=n.el().querySelector(".vjs-big-play-button");r.style.display="none";n.trigger("manual-click-next-video")}})}})}}}};var ve;var ge=function(){if(true===w.endScreen.active){if("undefined"!==typeof n.relatedModal.relatedList&&"undefined"!==typeof n.relatedModal.relatedList.items){if(0!=w.endScreen.autoAdvanceTimeout){IOL.Video.Utils.printToConsole("===> adv RefreshSlot",r);setTimeout(function(){var e=n.relatedModal.relatedList.items.length;if(e!=0){ve=n.relatedModal.relatedList.items[_].item_.id;IOL.VideoPlayerLoader.videoPublisher=n.relatedModal.relatedList.items[_].item_.publisher;IOL.VideoPlayerLoader.videoCat=n.relatedModal.relatedList.items[_].item_.categories;if(n.paused()&&n.iolStatus==="end"){if(IOL.VideoPlayerLoader.adonly){if(n.ima3.settings.serverUrl==""){n.ima3.settings.serverUrl=J}}n.catalog.getVideo(ve,function(t,i){if(i){n.catalog.load(i);_=(_+1)%e;var r=n.el().querySelector(".vjs-big-play-button");r.style.display="none";n.trigger("auto-next-video")}})}}},w.endScreen.autoAdvanceTimeout*1e3)}}}else if("undefined"!==typeof IOL.Videoplayer){if(IOL.Videoplayer.iolPlaylist.length>0){_=(_+1)%IOL.Videoplayer.iolPlaylist.length;ve=IOL.Videoplayer.iolPlaylist[_].id;if(n.paused()&&n.iolStatus==="end"){if(IOL.VideoPlayerLoader.adonly){if(n.ima3.settings.serverUrl==""){n.ima3.settings.serverUrl=J}}n.catalog.getVideo(ve,function(e,t){if(t){n.catalog.load(t);var i=n.el().querySelector(".vjs-big-play-button");i.style.display="none";n.trigger("auto-next-video")}})}}}};var me=function(i){var n=i.metadata.split(";");var r;if(null!==n&&n.length>=2){N.durationCTA=n[0];N.textCTA=be(n[1]);N.urlCTA=n[2];if("undefined"!==N.textCTA||"undefined"!==N.textCTA){N.hrefCTA='<a class= "cta-title-link" href="'+N.urlCTA+'" target="_blank">'+N.textCTA+"</a>";r;r=Number(N.durationCTA)*1e3;D=e.setTimeout(ye,r);t.getElementsByClassName("iol-placeholder-cta-label")[0].innerHTML=N.hrefCTA;$();te()}else{ie()}}else{ee()}};var ye=function(){e.clearTimeout(D);ie()};var _e=function(e,t,i){var n,r=e.length,a=false,s=[];for(n=0;n<r;n++){if(e[n][t]===i){a=true;s.push(e[n])}}return s};var be=function(e){return e[0].toUpperCase()+e.slice(1)};var Se=function(){var e=t.createElement("span");e.className="iol-volume-dot";if("undefined"!==typeof n.ima3.adPlayer){if(true===n.ads.isInAdMode()){n.ima3.adControlBar.volumePanel.volumeControl.volumeBar.volumeLevel.el().appendChild(e)}}else{n.controlBar.volumePanel.volumeControl.volumeBar.volumeLevel.el().appendChild(e)}};var Te=function(){var e=t.createElement("button");e.id=f;e.className="iol-big-pause-button";e.setAttribute("title","Pause Video");e.setAttribute("style","display:none");e.innerHTML='<span class="vjs-icon-placeholder"></span>';n.el().appendChild(e)};var Ee=function(){var e=t.getElementById(f);e.style.display="block"};var we=function(){var e=t.getElementById(f);e.style.display="none"};var ke=function(){var e=t.getElementsByClassName("vjs-big-play-button")[0];e.style.display="block"};var Ie=function(){var e=t.getElementsByClassName("vjs-big-play-button")[0];e.style.display="none"};var Ae=function(){var e=t.createElement("div");var i=t.createElement("span");var r=t.createElement("span");var a=t.createElement("span");e.id=p;e.className="iol-scrubbing-tips";i.className="iol-scrubbing-arrow";r.className="iol-scrubbing-arrow";e.style.display="none";a.className="iol-scrubbing-tips-text";i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11"><path data-name="Icon material-fast-forward" d="M16 11 8.229 5.5 16 0ZM7.771 0v11L0 5.5Z" fill="#f0f0f0"/></svg>';r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11"><path data-name="Icon material-fast-forward" d="m0 11 7.771-5.5L0 0ZM8.229 0v11L16 5.5Z" fill="#f0f0f0"/></svg></span>';a.innerHTML="Tocca due volte a sinistra o a destra per andare indietro o avanti di 10 secondi";e.appendChild(i);e.appendChild(a);e.appendChild(r);n.el().appendChild(e)};var Ce=function(){var e=t.getElementById(p);if(e!==null){e.style.display="block"}};var je=function(){var e=t.getElementById(p);if(e!==null){e.style.display="none"}};var Pe=function(){var e=t.createElement("div");e.className="iol-video-overlay";n.el().appendChild(e)};var xe=function(){var e=t.createElement("div");e.id=m;e.className="iol-tap-overlay-sx vjs-hidden";var i=t.createElement("div");i.id=y;i.className="iol-tap-overlay-dx vjs-hidden";n.el().appendChild(i);n.el().appendChild(e)};var Le=function(){var e=t.createElement("div");var i=t.createElement("span");var r=t.createElement("span");e.id=h;e.className="iol-double-tap-dx vjs-hidden";i.className="iol-double-tap-arrow";r.className="iol-double-tap-text";r.innerHTML="10 secondi";i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11"><path data-name="Icon material-fast-forward" d="m0 11 7.771-5.5L0 0ZM8.229 0v11L16 5.5Z" fill="#f0f0f0"/></svg>';e.appendChild(i);e.appendChild(r);n.el().appendChild(e)};var Oe=function(){var e=t.createElement("div");var i=t.createElement("span");var r=t.createElement("span");e.id=g;e.className="iol-double-tap-sx vjs-hidden";i.className="iol-double-tap-arrow";r.className="iol-double-tap-text";r.innerHTML="10 secondi";i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11"><path data-name="Icon material-fast-forward" d="M16 11 8.229 5.5 16 0ZM7.771 0v11L0 5.5Z" fill="#f0f0f0"/></svg>';e.appendChild(i);e.appendChild(r);n.el().appendChild(e)};var De=function(){var e=t.getElementById(y);var n=t.getElementById(h);if(e!==null){i.dom.removeClass(e,"vjs-hidden")}if(n!==null){i.dom.removeClass(n,"vjs-hidden")}};var Re=function(){var e=t.getElementById(y);var n=t.getElementById(h);if(e!==null){i.dom.addClass(e,"vjs-hidden")}if(n!==null){i.dom.addClass(n,"vjs-hidden")}};var Ne=function(){var e=t.getElementById(m);var n=t.getElementById(g);if(e!==null){i.dom.removeClass(e,"vjs-hidden")}if(n!==null){i.dom.removeClass(n,"vjs-hidden")}};var Me=function(){var e=t.getElementById(m);var n=t.getElementById(g);if(e!==null){i.dom.addClass(e,"vjs-hidden")}if(n!==null){i.dom.addClass(n,"vjs-hidden")}};var Ue=function(){var e=t.createElement("span");e.className="iol-mobile-play-progress-indicator";var i=n.controlBar.progressControl.el_.querySelector(".vjs-play-progress");if(i!==null){i.appendChild(e)}}};i.registerPlugin("iol_custom_core_lib",n)})(window,document,videojs)})();(function(){if(videojs.getPlugin("scrollIntoViewAds")){return}videojs.registerPlugin("scrollIntoViewAds",function(){IOL.Video.Utils.printToConsole("scrollIntoViewAds plugin version: 2.3.25","handle_scroll_into_view_ads.js");var e=this,t=0,i;var n={};var r={status:null,position:null,event:null};var a=0;var s=false;var o;var l=false;var u=false;var d=true;var c=false;var f=true;var p=false;var h=e.id()+"-";var v={};var g;var m=videojs.browser;var y=true;var _=true;var b=videojs.browser.IS_ANDROID;var S=videojs.browser.IS_IOS;if("undefined"!==typeof IOL.Videoplayer){e.iolSkipViewability=IOL.Videoplayer.playlistConf[IOL.Videoplayer.settings.playlistType].skipCheckViewport;IOL.Video.Utils.printToConsole("Dentro IF della prova: "+e.iolSkipViewability,"handle_scroll_into_view_ads.js")}else{e.iolSkipViewability=false}IOL.Video.Utils.printToConsole("FUORI DA IF/ELSE: "+e.iolSkipViewability,"handle_scroll_into_view_ads.js");var T=[];n.EventDispatcher=function(){};n.EventDispatcher.prototype={dispatch:function(e,t){var i;if(typeof t==="undefined")t={event:e,time:getCurrentTime()};var n=/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent);if(n){i=document.createEvent("CustomEvent");i.initCustomEvent(e,false,true,t)}else i=new CustomEvent(e,{detail:t});IOL.Video.Utils.printToConsole("EVENT "+e+" DISPATCHED","handle_scroll_into_view_ads.js");document.dispatchEvent(i)}};n.EventDispatcher.prototype.constructor=n.EventDispatcher;g=e.iolGetPlayerConfig();e.ready(function(){d=g.autoplay;IOL.Video.Utils.printToConsole("PLAYER IS READY","handle_scroll_into_view_ads.js");if(b||S){IOL.Video.Utils.printToConsole("###### SONO SU MOBILE","handle_scroll_into_view_ads.js");a=1}else{e.on("autoplay-success",function(){a=1});e.one("autoplay-failure",function(){a=1;e.muted(true);e.trigger("iol-autoplay-failure")});e.on("ads-ad-started",function(){if(!window.document.hasFocus()){setTimeout(()=>{l=false;u=true;e.pause();o=true},1e3)}});e.on("play",function(){if(!window.document.hasFocus()){setTimeout(()=>{l=false;u=true;e.pause();o=true},1e3)}})}if(window.document.hasFocus()){IOL.Video.Utils.printToConsole("PAGE IS IN FOCUS, ISBLURRED = FALSE","handle_scroll_into_view_ads.js");s=false}else{IOL.Video.Utils.printToConsole("PAGE IS NOT IN FOCUS, ISBLURRED = TRUE","handle_scroll_into_view_ads.js");s=true}e.on("loadstart",function(){IOL.Video.Utils.printToConsole("LOADSTART: RESET FLAGS FOR EACH NEXT VIDEO LOADED","handle_scroll_into_view_ads.js");l=false;u=false;c=false});e.one("loadedmetadata",function(){try{IOL.Video.Utils.printToConsole("loadedmetadata event: get the player container and inizialize scroll listener".toUpperCase(),"handle_scroll_into_view_ads.js");if("undefined"!==typeof e.el().parentElement.parentElement.parentElement.id){i="#"+e.el().parentElement.parentElement.parentElement.id}else{i="#iol_player_container"}}catch(e){}var n=function(){return j()};var r=[];r["height"]=n;new O(i,t,r)});e.on("loadedmetadata",function(){if(r.status!=="in"&&r.status!=="half-in"&&!e.iolSkipViewability||s===true){IOL.Video.Utils.printToConsole("loadedmetadata event: player is not in viewport. firstFloat="+y,"handle_scroll_into_view_ads.js");setTimeout(function(){if(y===false){IOL.Video.Utils.printToConsole("loadedmetadata event: player is not in viewport but for user scroll then we pause it. firstFloat="+y,"handle_scroll_into_view_ads.js");L()}else{IOL.Video.Utils.printToConsole("loadedmetadata event: player is not in viewport at the page load and it start in floating mode then we don't pause it. firstFloat="+y,"handle_scroll_into_view_ads.js")}IOL.Video.Utils.printToConsole("loadedmetadata event: player not in viewport. can float ".toUpperCase(),"handle_scroll_into_view_ads.js");e.trigger("can-float")},50)}else{y=false;IOL.Video.Utils.printToConsole("loadedmetadata event: player in viewport ".toUpperCase(),"handle_scroll_into_view_ads.js")}e.one(["ads-ad-started","playing"],k)});e.on("ads-ad-started",A);e.on("adend",C);e.controlBar.playToggle.on(["click","tap"],I);e.tech_.on("click",I);e.on("ima3-click",function(){IOL.Video.Utils.printToConsole("IMA3 ON CLICK EVENT","handle_scroll_into_view_ads.js");if("undefined"!==typeof e.ima3.adPlayer){e.ima3.adPlayer.pause()}else{e.pause()}});e.on("ended",function(){IOL.Video.Utils.printToConsole("PAUSE ADS ON IMA3-AREA CLICK","handle_scroll_into_view_ads.js");o=true;e.one("playing",function(){o=false})});e.one("playing",function(){o=false;f=false});e.on("pause",function(){p=false;e.one("waiting",function(){p=true});var t=e.currentTime();setTimeout(function(){if(t===e.currentTime()){IOL.Video.Utils.printToConsole("@@@@@@@@@@@@@@@@");IOL.Video.Utils.printToConsole("ENDED: "+e.ended());IOL.Video.Utils.printToConsole("IOLStatus: "+e.iolStatus);IOL.Video.Utils.printToConsole("Waiting: "+p);IOL.Video.Utils.printToConsole("Autopause: "+u);if(e.iolStatus!=="end"&&!p){IOL.Video.Utils.printToConsole("@@@@@@@@@@@@@ SONO ENTRATO NELL IF QUINDI NON STATUSEND");if(!u){if(false===e.ads.isInAdMode()){IOL.Video.Utils.printToConsole("TRIGGER MANUAL PAUSE","handle_scroll_into_view_ads_no_autoplay_ima3_v4_andrea.js");e.trigger("manual-pause");e.one("play",function(){p=false;IOL.Video.Utils.printToConsole("TRIGGER MANUAL PLAY","handle_scroll_into_view_ads_no_autoplay_ima3_v4_andrea.js");e.trigger("manual-play")})}}}}},200)});if(videojs.getAllPlayers().length>1){e.on("handle-pause",L);E()}if(false===g.autoplay){e.one("ended",function(){e.autoplay=function(){return true}})}});var E=function(){if(videojs.getAllPlayers().length===1){return}for(x=0;x<Object.keys(videojs.players).length;x++){var e=Object.keys(videojs.players)[x];videojs(e).ready(function(){myPlayer=this;myPlayer.on(["play","ads-play"],w);T.push(myPlayer)})}};var w=function(e){if(videojs.getAllPlayers().length===1){return}var t=e.target.id;for(var i=0;i<T.length;i++){if(T[i].id()!==t){videojs(T[i].id()).trigger("handle-pause")}}};var k=function(){IOL.Video.Utils.printToConsole("CHECK POSITION ON FIRST PLAY AND CHECK IF VIDEO CAN PLAY OR NOT","handle_scroll_into_view_ads.js");if(_===true){if(e.hasClass("vjs-floater-floating")){e.trigger("start-in-floating")}_=false}if(e.iolSkipViewability){if(true===s||!window.document.hasFocus()){setTimeout(function(){L()},50)}else{IOL.Video.Utils.printToConsole("Case PlayerTv - not blur and in focus, playing")}}else{if(e.hasClass("vjs-floater-floating")){if(true===s||!window.document.hasFocus()){setTimeout(function(){L()},50)}else{IOL.Video.Utils.printToConsole("The player is in floating, playing")}}else{if(r.status!=="in"&&r.status!=="half-in"||s===true||!window.document.hasFocus()){IOL.Video.Utils.printToConsole("The player is in not floating, not in viewport or not in blur or hasn't focus, pause");setTimeout(function(){L();IOL.Video.Utils.triggerEvent("checkViewportOnStart")},50)}else{IOL.Video.Utils.printToConsole("The player is in not floating, playing")}}}};var I=function(){if(true===e.ads.isInAdMode()&&"undefined"!==typeof e.ima3.adPlayer){l=e.ima3.adPlayer.paused()}else{l=e.paused()}if(l){}};var A=function(){c=true;if("undefined"!==typeof e.ima3.adPlayer){e.ima3.adControlBar.playToggle.on(["click","tap"],I)}};var C=function(){c=false;if("undefined"!==typeof e.ima3.adPlayer){e.ima3.adControlBar.playToggle.off(["click","tap"],I)}};var j=function(){if(typeof e!=="undefined")try{return e.currentHeight()}catch(e){}else{try{playerContainer=document.getElementById(i);return playerContainer.offsetHeight}catch(e){}}};var P=function(){if(null!==e){e.ready(function(){IOL.Video.Utils.printToConsole("###### DENTRO HANDLEPLAY");if(!(true===f&&false===e.hasStarted())){if(true===e.ads.isInAdMode()&&"undefined"!==typeof e.ima3.adPlayer){if(e.ima3.adPlayer.paused()&&!l&&c){IOL.Video.Utils.printToConsole("###### DENTRO IF HANDLEPLAY");e.ima3.adPlayer.play();l=false;u=false;o=false;IOL.Video.Utils.printToConsole("PLAY THE PREROLL","handle_scroll_into_view_ads.js")}}else{if(e.paused()&&!e.ended()&&!l){e.play();l=false;u=false;o=false;IOL.Video.Utils.printToConsole("PLAY THE VIDEO","handle_scroll_into_view_ads.js")}}}})}};var L=function(){if(null!==e){e.ready(function(){IOL.Video.Utils.printToConsole("###### DENTRO HANDLEPAUSE");IOL.Video.Utils.printToConsole("ADMODE: "+e.ads.isInAdMode());IOL.Video.Utils.printToConsole("Player PAUSE: "+e.paused());IOL.Video.Utils.printToConsole("Player Ended: "+e.ended());IOL.Video.Utils.printToConsole("IOOLSTATUS: "+e.iolStatus);IOL.Video.Utils.printToConsole("MANUALPAUSE: "+l);IOL.Video.Utils.printToConsole("ADPLAYING: "+c);if(true===e.ads.isInAdMode()&&"undefined"!==typeof e.ima3.adPlayer){if(!e.ima3.adPlayer.paused()&&!l&&c){e.ima3.adPlayer.pause();l=false;u=true;o=true;IOL.Video.Utils.printToConsole("VIDEO IS PAUSED","handle_scroll_into_view_ads.js")}}else{if(!e.paused()&&!e.ended()&&!l){if(a===1){l=false;u=true;e.pause();o=true}else{var t=setInterval(()=>{if(a===1){l=false;u=true;e.pause();o=true;clearInterval(t)}},200)}IOL.Video.Utils.printToConsole("VIDEO IS PAUSED","handle_scroll_into_view_ads.js")}else if(true===m.IS_ANY_SAFARI&&(r.status==="in"||r.status==="half-in"||r.status==="less-half-in")&&!o&&s&&!l&&!e.ended()){}}})}};var O=function(e,t,i){try{this.hooks=i;var r=this;r.dispatcher=new n.EventDispatcher;if(typeof t!="undefined"){r.timeout=t}else{r.timeout=1}if(document.querySelectorAll(e).length===1){r.domElement=document.querySelector(e)}else{throw"No element or too many elements with the selector used."}r.setUpListener()}catch(e){IOL.Video.Utils.printToConsole("Error "+e,"handle_scroll_into_view_ads.js")}};O.prototype.isOutTop=function(){return this.offsetTop+this.elementHeight<=this.scrolled};O.prototype.isOutBottom=function(){return this.offsetTop>this.scrolled+this.screenHeight};O.prototype.isAlmostInTop=function(){return this.offsetTop+this.half>=this.scrolled&&this.offsetTop<this.scrolled};O.prototype.isAlmostInBottom=function(){return this.offsetTop+this.half<=this.scrolled+this.screenHeight&&this.offsetTop+this.half>this.scrolled+this.screenHeight-this.half};O.prototype.isIn=function(){return this.offsetTop>=this.scrolled&&this.scrolled+this.screenHeight>=this.offsetTop+this.elementHeight};O.prototype.isInTop=function(){return this.offsetTop+this.elementHeight>this.scrolled&&this.offsetTop+this.half<this.scrolled};O.prototype.isInBottom=function(){return this.offsetTop+this.half>=this.scrolled+this.screenHeight&&this.offsetTop<this.scrolled+this.screenHeight};O.prototype.getHeight=function(){this.elementHeight=this.hooks["height"].apply(this,[]);return this.elementHeight};O.prototype.updateVariables=function(){var e=this;var t=e.domElement.getBoundingClientRect();e.offsetTop=t.top+(window.pageYOffset||document.documentElement.scrollTop);e.screenHeight=window.innerHeight;e.elementHeight=e.domElement.offsetWidth*9/16;e.half=Math.round(e.elementHeight/2);e.scrolled=window.pageYOffset;IOL.Video.Utils.printToConsole("offsetTop:"+e.offsetTop+" screenHeight:"+e.screenHeight+" elementHeight:"+e.elementHeight+" half:"+e.half+" scrolled:"+e.scrolled)};O.prototype.getPosition=function(e){var t=this;t.updateVariables();switch(true){case t.isAlmostInTop():r.status="half-in";r.position="top";break;case t.isAlmostInBottom():r.status="half-in";r.position="bottom";break;case t.isIn():r.status="in";r.position="center";break;case t.isInBottom():r.status="less-half-in";r.position="bottom";break;case t.isInTop():r.status="less-half-in";r.position="top";break;case t.isOutTop():r.status="out";r.position="top";break;case t.isOutBottom():r.status="out";r.position="bottom";break;default:r.status=null;r.position=null}if(typeof v.status!=="undefined"){if(v.status!==r.status){}}v.status=r.status;v.position=r.position;IOL.Video.Utils.printToConsole("calling_function: "+e+" resp.status= "+r.status+" resp.position= "+r.position);return{status:r.status,position:r.position,event:r.event||""}};O.prototype.setUpListener=function(){var t=this;t.eventToBeDispatched=null;if(!e.iolSkipViewability){var i=t.getPosition("setUpListener");IOL.Video.Utils.printToConsole("PLAYER Walia: STAMPO RESP: "+i)}else{var n="in";var r="center";var a="";var i={status:n,position:r,event:a};IOL.Video.Utils.printToConsole("PLAYERTV: STAMPO RESP:"+i)}var o=function(e){if(typeof t.previousState==="undefined"){t.previousState=e.status}if(t.previousState!==e.status||e.event=="focus"){if(t.timeout&&(e.status==="half-in"||e.status==="in")){t.previousState=e.status;clearTimeout(t.eventToBeDispatched);t.eventToBeDispatched=setTimeout(function(){IOL.Video.Utils.printToConsole("HANDLE EVENTS "+e.event+" STATUS:"+e.status,"handle_scroll_into_view_ads.js");t.dispatcher.dispatch(h+e.event+"-"+e.status,e)},t.timeout)}else{IOL.Video.Utils.printToConsole("HANDLE EVENTS "+e.event+" STATUS:"+e.status,"handle_scroll_into_view_ads.js");t.previousState=e.status;clearTimeout(t.eventToBeDispatched);t.dispatcher.dispatch(h+e.event+"-"+e.status,e)}}};var l=function(e){var i=t.getPosition("scroll");i.event="scroll";o(i)};i.event="init";t.previousState=i.status;t.dispatcher.dispatch(h+i.event+"-"+i.status,i);if(!e.iolSkipViewability){window.addEventListener("checkViewportOnStart",function(e){var i=t.getPosition("checkViewportOnStart");t.previousState="";i.event="scroll";o(i)});window.addEventListener("scroll",l);var u=function(e){IOL.Video.Utils.printToConsole("##### DENTRO HANDLEBUR","handle_scroll_into_view_ads.js");if(e.isTrusted&&window.document.activeElement.tagName!="IFRAME"){var i=t.getPosition("handleBlur");i.event="blur";s=true;t.dispatcher.dispatch(h+i.event,i);o(i)}else{IOL.Video.Utils.printToConsole("WARNING! False Event Blur generated from Preroll IFRAME:".toUpperCase(),"handle_scroll_into_view_ads.js")}};var d=function(e){var i=t.getPosition("handleFocus");i.event="focus";s=false;o(i)}}else{IOL.Video.Utils.printToConsole(i);var u=function(e){if(e.isTrusted&&window.document.activeElement.tagName!="IFRAME"){i.event="blur";s=true;t.dispatcher.dispatch(h+i.event,i);o(i)}else{IOL.Video.Utils.printToConsole("WARNING! False Event Blur generated from Preroll IFRAME:".toUpperCase(),"handle_scroll_into_view_ads.js")}};var d=function(t){if("undefined"!==typeof IOL.Videoplayer){if("undefined"!==typeof IOL.Videoplayer.noFocus){if(IOL.Videoplayer.noFocus===1){IOL.Videoplayer.noFocus=0;e.trigger("refresh_ev")}}}i.event="focus";s=false;o(i)}}window.addEventListener("blur",u);window.addEventListener("focus",d);window.addEventListener("iol-menu-btn-click",function(e){L()});window.addEventListener("iol-close-btn-click",function(e){P()});var c=function(t){IOL.Video.Utils.printToConsole("REMOVE ALL LISTENER ".toUpperCase(),"handle_scroll_into_view_ads.js");window.removeEventListener("blur",u);window.removeEventListener("iol_player-blur",L);window.removeEventListener("iol_player-scroll-out",L);window.removeEventListener("iol_player-init-less-half-in",L);window.removeEventListener("iol_player-focus-in",P);window.removeEventListener("focus",d);window.removeEventListener("scroll",l);window.removeEventListener("iol_player_video_removePlayer",c);e=null};window.addEventListener("iol_player_video_removePlayer",c)};var D=function(e,t,i){var n=t.split(" ");for(var r=0,a=n.length;r<a;r++){e.addEventListener(n[r],i)}};var R=[h+"focus-in",h+"focus-half-in",h+"init-in",h+"init-half-in",h+"scroll-half-in",h+"scroll-in"];D(window.document,R.join(" "),function(){P()});var N=[h+"scroll-out",h+"blur"];D(window.document,N.join(" "),function(){IOL.Video.Utils.printToConsole("Received 'scroll-out' - 'blur' event".toUpperCase(),"handle_scroll_into_view_ads.js");L()});var M=[h+"init-less-half-in"];D(window.document,M.join(" "),function(){IOL.Video.Utils.printToConsole("WARNING! Received 'init-less-half-in' event".toUpperCase(),"handle_scroll_into_view_ads.js")})})})();(function(){if(videojs.getPlugin("floater")){return}(function(e,t,i){var n=function(r){var a=i.browser.IS_ANDROID;var s=i.browser.IS_IOS;var o=this;var l;var u;var d={viewTolerance:.5};var c;var f;var p;var h;var v;var g=true;var m=false;var y=false;var _=i.getComponent("CloseButton");var b;if("undefined"!==typeof IOL.Videoplayer){o.iolSkipViewability=IOL.Videoplayer.playlistConf[IOL.Videoplayer.settings.playlistType].skipCheckViewport;IOL.Video.Utils.printToConsole("Dentro IF della prova: "+o.iolSkipViewability,"handle_scroll_into_view_ads.js")}else{o.iolSkipViewability=false}try{if(typeof o.el().parentElement.parentElement.parentElement.id!="undefined"){u=o.el().parentElement.parentElement.parentElement.id}else{u="iol_player_container"}}catch(e){i.log.warn("element not found")}l=t.getElementById(u);var S=/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent);o.ready(function(){f=o.iolGetPlayerConfig();i.registerComponent("FloaterRestoreButton",T);o.restoreButton=o.addChild("floaterRestoreButton");if(o.iolSkipViewability){o.on(["playing","ad-end"],function(){o.restoreButton.show()});o.on(["ads-ad-start","ended","playlistitem"],function(){o.restoreButton.hide()});o.on("destroy-playertv",function(){E("iol_player_video_removePlayer");elem=t.getElementById("iol_player_container");o.dispose();elem.style.display="none";elem=t.getElementById("IOLPlayerPlaceholder");elem.style.display="none"});return}o.one("loadedmetadata",function(){i.log("videojs.getAllPlayers().length: "+i.getAllPlayers().length);if(i.getAllPlayers().length=="1"){if(f.floating.on==="viewport"||f.autoplay===false){g=false}i.log("plugin floating player version: 1.1.12");c=i.mergeOptions?i.mergeOptions(d,r):i.util.mergeOptions(d,r);posterHeight=o.currentHeight();o.one(["ads-ad-started","playing"],function(){g=true;y=true;o.restoreButton.hide();E("scroll")});b=o.poster();k()}else{return}})});var T=i.extend(_,{constructor:function(e,t){_.call(this,e,t);this.controlText("Chiudi");this.hide()},buildCSSClass:function(){return"vjs-floater-close-button "+_.prototype.buildCSSClass.call(this)},handleClick:function(){y=false;o.trigger("handle-unfloat");o.floater.dismissed=true;o.trigger("handle-undock");m=true;o.trigger("destroy-playertv");E("scroll")}});var E=function(i){if(S){var n=t.createEvent("CustomEvent");n.initCustomEvent(i,false,true,i+"triggered");e.dispatchEvent(n)}else{e.dispatchEvent(new Event(i))}};var w=function(){var e=t.body.clientWidth;if(768>e){return 1}else if(768<=e&&1024>e){return 2}else if(1024<=e){return 3}};var k=function(){if(!(a||s)){A()}else if((a||s)&&w()>=3){A()}else{C()}};var I=function(i){var n=i.getBoundingClientRect();var r=n.height*c.viewTolerance;var a=n.width*c.viewTolerance;var s;if(false===p){s=n.top>=0-r&&n.left>=0-a&&n.right<=(e.innerWidth+a||t.documentElement.clientWidth+a)}else{s=n.top>=0-r&&n.left>=0-a&&n.bottom<=(e.innerHeight+r||t.documentElement.clientHeight+r)&&n.right<=(e.innerWidth+a||t.documentElement.clientWidth+a)}return s};var A=function(){if(false===f.floating.active){return}o.floater={dismissed:false,isFloating:false};p=f.floating.floatUp;if(l!=null){v=l.cloneNode(false);i.dom.addClass(v,"vjs-floater-placeholder");v.setAttribute("id","tmp-container-on-float");v.style.backgroundSize="contain";v.style.height=posterHeight+"px";v.style.backgroundImage="url("+b+")";l.parentElement.insertBefore(v,l)}o.on("loadedmetadata",function(){b=o.poster();v.style.backgroundImage="url("+b+")";if(o.restoreButton){o.restoreButton.hide()}});o.one("can-float",function(){IOL.Video.Utils.printToConsole("checking if can activate floating".toUpperCase(),"iol_float_player.js");if(true===p&&f.floating.on!=="viewport"){t();setTimeout(function(){E("scroll")},10)}});o.on(["playing","ad-end"],function(){if(o.floater.isFloating){o.restoreButton.show()}else{o.restoreButton.hide()}});o.on(["ads-ad-start","ended","playlistitem"],function(){o.restoreButton.hide()});o.on("handle-unfloat",function(){r()});o.on("playerresize",function(){if(typeof o.relatedModal!=="undefined"){if(o.currentWidth()<470){o.relatedModal.addClass("related-small")}else{o.relatedModal.removeClass("related-small")}}});var t=function(){if(o.hasClass("vjs-floater-floating")){if(I(v)){r()}}else if(!I(o.el())&&!o.floater.dismissed&&g){a()}};var n=function(){if(true===o.ads.isInAdMode()&&"undefined"!==typeof o.ima3.adsManager){o.ima3.adsManager.resize(o.currentWidth(),o.currentHeight(),google.ima.ViewMode.NORMAL)}};var r=function(){if("undefined"!==typeof f.floating.ratioInPage){o.el().parentElement.style.paddingTop=f.floating.ratioInPage+"%"}else{o.el().parentElement.style.paddingTop="56.25%"}v.style.display="none";i.dom.removeClass(l,"vjs-floater-parent");o.removeClass("vjs-floater-floating");o.restoreButton.hide();o.floater.isFloating=false;n()};var a=function(){o.floater.isFloating=true;v.style.display="block";if("undefined"!==typeof f.floating.ratioFloating){o.el().parentElement.style.paddingTop=f.floating.ratioFloating+"%"}else{o.el().parentElement.style.paddingTop="56.25%"}i.dom.addClass(l,"vjs-floater-parent");o.addClass("vjs-floater-floating");if("content-playback"===o.ads.state&&!o.ended()){o.restoreButton.show()}else{o.restoreButton.hide()}n()};if(e.addEventListener){e.addEventListener("scroll",t,false);e.addEventListener("resize",t,false);e.addEventListener("resize",n,false)}else if(e.attachEvent){e.attachEvent("onscroll",t);e.attachEvent("onresize",t);e.attachEvent("onresize",n)}var s=function(i){IOL.Video.Utils.printToConsole("REMOVE ALL LISTENER FLOAT".toUpperCase(),"iol_float_player.js");e.removeEventListener("scroll",t);e.removeEventListener("resize",t);e.removeEventListener("resize",n);e.removeEventListener("iol_player_video_removePlayer",s)};e.addEventListener("iol_player_video_removePlayer",s)};var C=function(){if(false===f.fixPlayer.active){return}o.floater={dismissed:true};c.viewTolerance=.1;p=f.fixPlayer.onScrollUp;if(l!=null){v=l.cloneNode(false);i.dom.addClass(v,"vjs-floater-placeholder");v.setAttribute("id","tmp-container-on-float");v.style.height=posterHeight+"px";v.style.backgroundImage="url("+b+")";l.parentElement.insertBefore(v,l)}o.on("loadedmetadata",function(){b=o.poster();v.style.backgroundImage="url("+b+")"});o.one("can-float",function(){IOL.Video.Utils.printToConsole("checking if can activate docking".toUpperCase(),"iol_float_player.js");if(true===p&&f.floating.on!=="viewport"){a();setTimeout(function(){E("scroll")},10)}});o.on("handle-undock",function(){r()});o.on("enable-fixed-player",function(){m=false;a()});o.on("disable-fixed-player",function(){r();m=true});o.on(["playing","ad-end"],function(){if(o.hasClass("vjs-fix-player-mobile")){o.restoreButton.show()}else{o.restoreButton.hide()}});o.on(["ads-ad-start","ended","playlistitem"],function(){o.restoreButton.hide()});var t=function(){v.style.display="block";i.dom.addClass(l,"vjs-top-parent-mobile");o.addClass("vjs-fix-player-mobile");if("content-playback"===o.ads.state&&!o.ended()){o.restoreButton.show()}else{o.restoreButton.hide()}if(f.fixPlayer.closeAfter>0){if(y){s()}else{o.one(["ads-ad-started","playing"],s)}}};var r=function(){v.style.display="none";i.dom.removeClass(l,"vjs-top-parent-mobile");o.removeClass("vjs-fix-player-mobile");o.restoreButton.hide()};var a=function(){if(null!==o){if(o.hasClass("vjs-fix-player-mobile")){if(I(v)){r()}}else if(!I(o.el())&&!m){t()}}};var s=function(){setTimeout(function(){m=true;r()},f.fixPlayer.closeAfter*1e3)};var u=function(){if(w()>=3){v.style.display="none";i.dom.removeClass(l,"vjs-top-parent-mobile");A()}};if(e.addEventListener){e.addEventListener("scroll",a,false)}else if(e.attachEvent){e.attachEvent("onscroll",a)}var d=function(t){IOL.Video.Utils.printToConsole("REMOVE ALL LISTENER".toUpperCase(),"iol_float_player.js");e.removeEventListener("scroll",a);e.removeEventListener("iol_player_video_removePlayer",d);o=null};e.addEventListener("iol_player_video_removePlayer",d);return n.dismissed}};i.registerPlugin("floater",n)})(window,document,videojs)})();(function(){if(videojs.getPlugin("performance_tracking")){return}(function(e,t,i){var n=function(t){i.log("plugin iolPerformanceTracker version: 1.2.1");var n=i.browser;var r=n.IS_ANDROID;var a=n.IS_IOS;var s=false;var o=false;var l=false;var u;var c=true;var f=true;if(true){var p=this;var h="nlsnInstance_"+p.id();var v={enableNielsen:true};var g;var m=false;var y=function(){var t="";if(e!=e.top){try{t=parent.window.location.referrer}catch(e){i.log.warn("Inside secure Iframe, Cannot find domain!")}}else{t=e.location.host}i.log("---- domain:"+t);return t};var _=function(t){let i=e.location.href;i=i.replace("https://","");i=i.replace("http://","");let n=i;i=i.split("/");if(i.length>=t){n="";for(let e=0;e<t;e++){n+=i[e];if(e<t-1)n+="/"}}return n};var b=function(){var e=y();if(e=="www.libero.it"){e=_(2)}if(e=="www.virgilio.it"){e=_(2)}var t="";if(e!=""){switch(e){case"www.libero.it/magazine":t="PCD8938AE-0A97-4EA6-BD3E-370F4C965F45";m=false;break;case"notizie-articoli.pp.virgilio.it":case"notizie-articoli-pp.virgilio.it":case"notizie-articoli.virgilio.it":t="T6104F2D5-D775-47F4-AE1D-67DCA28DFCEB";break;case"notizie.virgilio.it":t="P6104F2D5-D775-47F4-AE1D-67DCA28DFCEB";m=false;break;case"www.pp.supereva.it":case"www-pp.supereva.it":case"www.st.supereva.it":t="T3F0636E8-4AEF-4FD1-AD08-5A41C1A06A3B";break;case"www.supereva.it":t="P3F0636E8-4AEF-4FD1-AD08-5A41C1A06A3B";m=false;break;case"stvip.dilei.it":t="T9E4F8711-49C5-46AA-A6A8-779EF56CB504";break;case"dilei.it":case"www.virgilio.it/oroscopo":t="P9E4F8711-49C5-46AA-A6A8-779EF56CB504";m=false;break;case"stvip.siviaggia.it":t="T746C52B0-2199-48A8-9C62-3AF93E360D6B";break;case"siviaggia.it":t="P746C52B0-2199-48A8-9C62-3AF93E360D6B";m=false;break;case"stvip.quifinanza.it":t="T38D2F858-5602-4391-9758-A2071CA0F4C5";break;case"quifinanza.it":t="P38D2F858-5602-4391-9758-A2071CA0F4C5";m=false;break;case"hpdev.virgilio.it/motori":t="T1A9E2A75-15D6-4165-A8F9-FE6D917FBE12";break;case"www.virgilio.it/motori":t="P1A9E2A75-15D6-4165-A8F9-FE6D917FBE12";m=false;break;case"sport-pp.virgilio.it":case"sport.st.virgilio.it":t="TB88AEC68-DF67-49E2-8BB9-7A55CB2A9110";break;case"sport.virgilio.it":t="PB88AEC68-DF67-49E2-8BB9-7A55CB2A9110";m=false;break;case"tecnologia-pp.libero.it":t="T62FDE92B-C512-4048-A381-ABED0E429038";break;case"tecnologia.libero.it":case"gaming.libero.it":t="P62FDE92B-C512-4048-A381-ABED0E429038";m=false;break;case"initalia-pp.virgilio.it":t="TE33BDF73-5D5B-4AD2-A330-8CBC58D8AB03";break;case"initalia.virgilio.it":t="P14488CFC-B948-4E5F-9B12-3E8CE8FA067B";m=false;break;case"video-pp.virgilio.it":t="TDCB4C860-787C-4640-BF16-8CADFDBA2A2E";break;case"www.virgilio.it/video":t="PDCB4C860-787C-4640-BF16-8CADFDBA2A2E";m=false;break;case"www.st.buonissimo.org":case"www-pp.buonissimo.org":case"www.st.buonissimo.it":case"www-pp.buonissimo.it":t="TD96D6E6D-12E8-4073-A6C6-A15B268A3A5A";break;case"www.buonissimo.org":case"www.buonissimo.it":t="PD96D6E6D-12E8-4073-A6C6-A15B268A3A5A";m=false;break;case"www.lettera43.it":t="P346CCDC9-03B1-4DAD-8037-D6BB8C61A57E";m=false;break;case"www.pensieriparole.it":t="P364A2E5B-560B-421A-B054-79A2E28DCD43";m=false;break;case"www.tuttoandroid.net":t="P15AC4054-183F-45CC-910F-9671BAF591BD";m=false;break;case"www.laleggepertutti.it":t="P337FACA4-D7F0-4891-AF97-89D7E501CEAB";m=false;break;case"www.dimmicosacerchi.it":case"casa.dimmicosacerchi.it":case"beauty.dimmicosacerchi.it":case"ricette.dimmicosacerchi.it":case"shopping.dimmicosacerchi.it":t="P0966E56C-4765-4BCE-A0D2-3C718BB39162";m=false;break;case"www.thesocialpost.it":t="PC08AE416-736F-4027-B4E6-38E8CAA90438";m=false;break;case"www.notizie.it":t="P0969D239-A089-4C12-949F-72D01803B053";m=false;break;case"staging.notizie.it":t="P0969D239-A089-4C12-949F-72D01803B053";break;case"www.donnemagazine.it":t="P93FF3C2A-1BEE-4C41-8592-7397303EA7B7";m=false;break;case"staging.donnemagazine.it":t="P93FF3C2A-1BEE-4C41-8592-7397303EA7B7";break;case"www.tuobenessere.it":t="P49945B0D-9CB5-442E-86BB-3073DA0BCDB0";m=false;break;case"staging.tuobenessere.it":t="P49945B0D-9CB5-442E-86BB-3073DA0BCDB0";break;case"www.foodblog.it":t="P4BD443C2-E76D-4062-89BF-BFD77C27C133";m=false;break;case"staging.foodblog.it":t="P4BD443C2-E76D-4062-89BF-BFD77C27C133";break;case"www.askanews.it":t="P7138AE18-E4DD-4356-827E-FE6EAFAB9DFA";m=false;break;case"www.ilsussidiario.net":t="P95FAE520-C3E1-44D0-8957-C41D2851912B";m=false;break;case"www.firstonline.info":case"tech.firstonline.info":t="PB588A8E2-16E4-465E-B610-715A1B80394F";m=false;break;case"staging.investimentimagazine.it":t="PE20425F2-D9A9-4530-9351-E8BB672BB169";break;case"www.investimentimagazine.it":t="PE20425F2-D9A9-4530-9351-E8BB672BB169";m=false;break;case"www.linkiesta.it":t="P5018545B-031A-4531-81E5-F30EC2663E49";m=false;break;case"www.s.globalist.it":case"www.globalist.it":t="PB9535887-B4B2-4BE0-BD56-B5ABB7E1A1F3";m=false;break;case"newsmondo.it":case"www.toro.it":case"notizie-inter.it":case"dolciveloci.it":case"notiziemilan.it":case"notiziemusica.it":t="P785B2BFA-8CEF-4455-810F-F34744456F7A";m=false;break;case"i.plug.it":case"local.plug.it":case"local.iplug.it":t="TDCB4C860-787C-4640-BF16-8CADFDBA2A2E";break;case"www.libero.it":case"www.libero.it/":t="PAC2DC043-332C-4332-980E-6C63F8415F6B";m=false;break;case"www.virgilio.it":case"www.virgilio.it/":t="PC4545A60-92AB-4000-8848-EC4A6FCA15D6";m=false;break}}return t};var S=b();if(S!=""){!function(e,t){e[t]=e[t]||{nlsQ:function(i,n,r,a,s,o){return s=e.document,a=s.createElement("script"),a.async=1,a.src=("http:"===e.location.protocol?"http:":"https:")+"//cdn-gl.imrworldwide.com/conf/"+i+".js#name="+n+"&ns="+t,o=s.getElementsByTagName("script")[0],o.parentNode.insertBefore(a,o),e[n]=e[n]||{g:r,ggPM:function(t,i,r,a,s){(e[n].q=e[n].q||[]).push([t,i,r,a,s])}},e[n]}}}(e,"NOLBUNDLE");if(m){var T=NOLBUNDLE.nlsQ(S,h,{nol_sdkDebug:"debug"})}else{var T=NOLBUNDLE.nlsQ(S,h)}setTimeout(function(){if(T.initialized==true)E},30);function E(){var e=true;if(typeof T.getOptOutStatus==="function"){e=T.getOptOutStatus()}if(e==true){i.log("OptOut - Current Status : true - Nielsen SDK measuring is disabled")}if(e==false){i.log("OptOut - Current Status : false - Nielsen SDK measuring is active")}}var w=function(){if(null!==p){if(l){return}else{l=true;var e=L(p.currentTime());T.ggPM("end",e);i.log("######handleBeforePageUnload")}}};e.addEventListener("beforeunload",function(e){w()});e.addEventListener("pagehide",function(e){w()});var k=function(t){IOL.Video.Utils.printToConsole("REMOVE ALL LISTENER FLOAT".toUpperCase(),"iol_performance_tracker.js");e.removeEventListener("beforeunload",w);e.removeEventListener("pagehide",w);e.removeEventListener("iol_player_video_removePlayer",k);p=null}}p.ready(function(){g=i.mergeOptions?i.mergeOptions(v,t):i.util.mergeOptions(v,t);e.addEventListener("iol_player_video_removePlayer",k);if(S!=""){p.controlBar.playToggle.on(["click","tap"],function(){A()});p.tech().on("click",function(){A()});p.on("loadstart",function(){u=true;s=false;o=false;c=true;f=true});p.on("loadedmetadata",function(){p.one("playing",function(){D("content-started");u=false})});p.on("timeupdate",function(){if(!s&&!p.paused()&&!l&&c){x("timeupdate")}});p.one("playing",function(){p.on("pause",function(){var e=p.currentTime();setTimeout(function(){if(e===p.currentTime()){if(!p.ended()&&f){f=false;c=false;p.trigger("sendStopToSdk")}}},1e3)})});p.on("sendStopToSdk",function(){var e=L(p.currentTime());j("stop",e);p.one("playing",function(){if(false===u){D("content-started");f=true;c=true}})});p.on("current-video-ended",function(){if(o===false){o=true;x("content-ended")}});p.on("ended",function(){if(false===o){o=true;x("content-ended")}});p.on("ended",function(){var e=p.el().querySelector(".vjs-related .vjs-poster")||p.el().querySelector(".vjs-icon-replay");var t="click";if(e!==null){if(a||r||n.TOUCH_ENABLED){t="touchstart"}e.addEventListener(t,I);p.one("playing",function(){e.removeEventListener(t,I)})}});p.on("ended",function(){var e=p.el().querySelector(".vjs-play-control");var t="click";if(e!==null){if(a||r||n.TOUCH_ENABLED){t="touchstart"}if(e.title=="Replay"){e.addEventListener(t,I);p.one("playing",function(){e.removeEventListener(t,I)})}}})}});var I=function(){D("content-started");s=false;o=false;c=true;f=true};var A=function(){if(true===p.ads.isInAdMode()&&"undefined"!==typeof p.ima3.adPlayer){s=p.ima3.adPlayer.paused()}else{s=p.paused()}};var C=function(e,t){if(e==="content"){if(t=="content-loaded"||t=="content-started"){var i,n;if(typeof p.mediainfo.publishedAt!="undefined"){var r=Date.parse(p.mediainfo.publishedAt);i=O(r)}n=p.mediainfo.name;if(typeof p.mediainfo.customFields!="undefined"){if(typeof p.mediainfo.customFields.title_short_bob!="undefined"){if(typeof p.mediainfo.custom_fields.title_short_bob!=""){n=p.mediainfo.customFields.title_short_bob}}}var a=JSON.stringify(L(p.mediainfo.duration));var s={type:"content",assetid:p.mediainfo.id,program:R(n,100),title:R(n,100),length:a,airdate:i,isfullepisode:"y",adloadtype:"2"}}else if(t=="content-ended"){var o=L(p.currentTime());var s=o}}else if(e==="preroll"){var s={assetid:"",type:"",program:"",title:"",length:"",mediaURL:"",adloadtype:""}}return s};var j=function(e,t){T.ggPM(e,t)};var P=0;var x=function(e){if(e==="timeupdate"){var t=L(p.currentTime());if(t!=P){P=t;j("setPlayheadPosition",t)}}else if(e==="adv-started"){var t=L(p.ads.ad.currentTime);j("setPlayheadPosition",t)}else if(e==="content-ended"){var t=L(p.currentTime());j("end",t)}};var L=function(e){return e>0?Math.floor(e):Math.ceil(e)};var O=function(e){d=new Date(e);var t=[d.getUTCFullYear(),d.getUTCMonth()+1,d.getUTCDate()];var i=[d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds()];var n=3;while(n){--n;if(t[n]<10)t[n]="0"+t[n];if(i[n]<10)i[n]="0"+i[n]}return t.join("")+" "+i.join(":")};var D=function(e){var t="";var i="";switch(e){case"adv-started":t="loadMetadata";i="preroll";break;case"content-loaded":t="loadMetadata";i="content";break;case"content-started":t="loadMetadata";i="content";break;case"content-ended":t="stop";i="content";break}var n=C(i,e);j(t,n)};var R=function(e,t){if(typeof e!="undefined"){return e.length<t?e:e.substring(0,t).replace(/\w{3}$/gi,"...")}}}};i.registerPlugin("performance_tracking",n)})(window,document,videojs)})();(function(){if(videojs.getPlugin("unmuteButton")){return}videojs.registerPlugin("unmuteButton",function(){var e=this,t=.5;var i="btn-unmute-id-"+e.id();e.ready(function(){videojs.log("Plugin unmuteButton version: 1.0.2");e.one("loadedmetadata",function(){n()});e.on("loadedmetadata",function(){e.one(["ads-ad-started","ended"],a);e.one("playing",function(){if(e.muted()){r();e.one("volumechange",function(){if(!e.muted()){a()}})}else{a()}})})});var n=function(){var n=e.el();var r=document.createElement("button");r.classList.add("iol-btn-inner");r.setAttribute("class","btn-unmute");r.setAttribute("id",i);r.setAttribute("style","display: none");var s=document.createElement("span");s.setAttribute("aria-hidden","true");s.setAttribute("class","vjs-icon-placeholder");var o=document.createElement("span");o.setAttribute("class","vjs-control-text");o.textContent="Audio";r.appendChild(s);r.appendChild(o);r.insertAdjacentText("beforeend","RIATTIVA L'AUDIO");videojs.dom.addClass(r,"vjs-mute-control");videojs.dom.addClass(r,"vjs-vol-0");n.appendChild(r);r.addEventListener("click",function(){e.trigger("click-audio-button");e.muted(false);e.volume(t);a()})};var r=function(){var e=document.getElementById(i);if(typeof e!=="undefined"){e.style.display="block"}};var a=function(){var e=document.getElementById(i);if(typeof e!=="undefined")e.style.display="none"}})})();(function(){if(videojs.getPlugin("iol_bcpl_track_perf")){return}var e;if("undefined"!==typeof IOL){if("undefined"!==typeof IOL){if("undefined"!==typeof IOL.VideoPlayerLoader){if("undefined"!==typeof IOL.VideoPlayerLoader.player_type){e=IOL.VideoPlayerLoader.player_type}}}}videojs.registerPlugin("iol_bcpl_track_perf",function(t){var i=this;var n="0";var r=0;var a=1;var s=1;var o=1;var l=1;var u=1e3;var d=1e3;var c=1e3;var f=1e3;var p=false;var h=false;var v="";var g="";var m="";var y="";function _(e,t=""){if(h){var i=new Date;if(typeof e==="object"&&!Array.isArray(e)&&e!==null){e=JSON.stringify(e)}console.log("xxx "+i+" : "+e.toUpperCase()+" - ON FILE - "+t)}}if("undefined"!==typeof e){n=e}else{if(t.player_type=="19"||t.player_type=="20"||t.player_type=="21"||t.player_type=="22"||t.player_type=="24"||t.player_type=="25"||t.player_type=="26"||t.player_type=="27"){n=t.player_type}}var b=false;(function(e){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))b=true})(navigator.userAgent||navigator.vendor||window.opera);var S=function(){var e={};var t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,n){e[i]=n});return e};var T=S();_("iol_bcpl_track_perf version: 1.6.9".toUpperCase(),"iol_bcpl_track_perf.js");var E=function(e){var t="";if(window!=window.top){try{if(e=="host"){t=parent.window.location.host;if(t=="www.virgilio.it"||t=="www.libero.it"){var i=parent.window.location.pathname;var n=i.split("/");if(n[1]!=""){var r=n[1];t=t+"%2F"+r}}}else if(e=="href"){t=parent.window.location.pathname}}catch(e){}}else{try{if(e=="host"){t=window.location.host;if(t=="www.virgilio.it"||t=="www.libero.it"){var i=window.location.pathname;var n=i.split("/");if(n[1]!=""){var r=n[1];t=t+"%2F"+r}}}else if(e=="href"){t=window.location.pathname}}catch(e){}}_("REQUESTED DOMAIN:"+t,"iol_bcpl_track_perf.js");return t};var w=function(e){var t="";if("undefined"!==typeof T.descurl){try{var i=decodeURIComponent(T.descurl);var n=new URL(i);if(e==="host"){t=n.hostname;if(t=="www.virgilio.it"||t=="www.libero.it"){var r=n.pathname;var a=r.split("/");if(a[1]!=""){var s=a[1];t=t+"%2F"+s}}}else if(e==="href"){t=n.pathname}}catch(e){_("ERROR ON GETTING AMP DOMAIN".toUpperCase(),"iol_bcpl_track_perf.js")}_("GET AMP DOMAIN:"+t,"iol_bcpl_track_perf.js");return t}};if(n==="24"||n==="26"){_("IF IS AMP, PLAYER_TYPE="+n,"iol_bcpl_track_perf.js");g=w("host");v=w("href")}else{_("IF IS NOT AMP, PLAYER_TYPE="+n,"iol_bcpl_track_perf.js");g=E("host");v=E("href")}var k=function(e,t,i,n,r,a){if(!!window.performance){var s=Date.now()-window.performance.timing.fetchStart;var o="640";if(typeof b!==undefined){if(b){o="300"}}var l="https://evnt.iol.it/v2?&pgnf="+g+","+i+","+g+","+r+","+a+","+t+","+o+",,,,0,"+n+","+e+","+s+"&nc=";_("CALL EVENT SERVER FOR EVENT "+e+", URL="+l,"iol_bcpl_track_perf.js");var u=new Image;u.src=l+(new Date).getTime()}};var I=function(e,t){k(e,n,"",t,v,m)};var A=function(e){k(e,n,"","","",m)};var C=function(e,t){k(e,n,"","",t,m)};var j=true;i.one("bc-catalog-error",function(){var e=this,t;if(e.catalog.error!==undefined){t=e.catalog.error.data[0];I("player-catalog-error",t.error_code)}});i.on("iol-event-track",function(e,t){if(o<c){k(t.type,n,"","","","")}});i.ready(function(){_("PLAYER IS READY","iol_bcpl_track_perf.js");isBlack=0;i.on("error_videoid",function(){k("error_load_firstVideo",n,"","","","")});i.one("iol-autoplay-failure",function(){k("iol_autoplay_failure",n,"","","","")});if(j){k("player_ready",n,"","","","");i.on("iol-endscreen-error",function(){k("endscreen-error",n,"","","","")});i.on("click-audio-button",function(){k("iol_player_click-on-unmuteButton",n,"","","","")});var e=function(){if(o<c){k("ads-request_"+o,n,"","","","");o++}};var t=function(){var e="off";if(i.muted()===false)e="on";if(a<u){k("preroll_"+a,n,"","","",m);k("iol_preroll_audio_"+e+"_"+a,n,"","","",m);a++}};var h=function(){m="nd";r="nd";if(s<d){try{var e=bc.VERSION;r=i.tech(true).vhs.playlists.media().attributes.RESOLUTION.width}catch(e){}if(typeof i.mediainfo.id!=="undefined"){m=i.mediainfo.id}if(m==="nd"||isBlack===1){k("video_blackVideo",n,r,"","",m);isBlack=0}else{k("video_"+s,n,"","","",m);s++}}i.off("timeupdate",h)};var g=function(){i.one("timeupdate",h)};var y=function(){m="nd";r="nd";if(l<f){try{var e=bc.VERSION;r=i.tech(true).vhs.playlists.media().attributes.RESOLUTION.width}catch(e){}if(typeof i.mediainfo.id!=="undefined"){m=i.mediainfo.id}if(m==="nd"){k("loadedmetadata_blackVideo",n,r,"","",m);isBlack=1}else{k("loadedmetadata_"+l,n,r,"","",m);l++}}};var b=function(e){k(e,n,"","","","")};var S=function(e,t){k(e,n,"",t.originalEvent.getError().getErrorCode().toString(),"","")};var T=function(e,t){k(e,n,"",t,"","")};var E=function(){try{_("player.ima3.currentAd.getAdId() = "+i.ima3.currentAd.getAdId(),"iol_bcpl_track_perf.js")}catch(e){_("player.ima3.currentAd.getAdId() = noAdId"+i.ima3.currentAd.getAdId(),"iol_bcpl_track_perf.js")}};var w=function(){k("play-audio-on",n,"","",v,"")};var P=function(){k("play-audio-off",n,"","","","")};i.on("ads-request",e);i.on("loadedmetadata",y);i.on("ima3-ad-error",function(e){S("ima3-ad-error",e)});i.on("ima3error",function(){b("ima3error")});i.on("ima3-hardtimeout",function(){b("ima3-hardtimeout")});i.on("adtimeout",function(){b("adtimeout")});i.on("iam_undef_for_consent",function(){b("iam_undef_for_consent")});i.one("refresh_ev",function(){k("iol_ipl_bc_createOnRefresh",n,"","","","")});i.on("ima3-log",function(e){var t="undefined";try{t=e.originalEvent.getAdData().adError.getErrorCode().toString()}catch(e){}T("ima3-log",t)});i.on("ads-ad-started",t);i.on("loadedmetadata",g);i.one(["ads-ad-started","playing"],function(){if(!p){var e=i.ads.isInAdMode()&&"undefined"!==typeof i.ima3.adPlayer?i.ima3.adPlayer.muted():i.muted();if(false===e){w()}else{P()}p=true}});i.on("error",function(){I("player-error",i.error().code)});i.on("manual-click-next-video",function(){A("manual-click-next-video")});i.on("auto-next-video",function(){A("auto-next-video")});i.on("start-in-floating",function(){A("start-in-floating")});i.on("cta-button-click",function(e){C(e.type,encodeURIComponent(encodeURIComponent(e.options.link)))})}})})})();(function(){if(videojs.getPlugin("related")){return}(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.videojsRelated=e()}})(function(){var e,t,i;return function(){function e(t,i,n){function r(s,o){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[s]={exports:{}};t[s][0].call(d.exports,function(e){var i=t[s][1][e];return r(i||e)},d,d.exports,e,t,i,n)}return i[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}return e}()({1:[function(e,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:true});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,i,n){if(i)e(t.prototype,i);if(n)e(t,n);return t}}();var a=function e(t,i,n){var r=true;e:while(r){var a=t,s=i,o=n;r=false;if(a===null)a=Function.prototype;var l=Object.getOwnPropertyDescriptor(a,s);if(l===undefined){var u=Object.getPrototypeOf(a);if(u===null){return undefined}else{t=u;i=s;n=o;r=true;l=u=undefined;continue e}}else if("value"in l){return l.value}else{var d=l.get;if(d===undefined){return undefined}return d.call(o)}}};function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=e("global/document");var d=s(u);var c=typeof window!=="undefined"?window["videojs"]:typeof n!=="undefined"?n["videojs"]:null;var f=s(c);var p=e("./replace-url-macros.js");var h=s(p);var v=f["default"].getComponent("ClickableComponent");var g=f["default"].dom||f["default"];var m=function(e){l(t,e);function t(e,i){var n=this;o(this,t);if(!i){throw new Error("No item")}a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e);this.item_=i;this.$(".video-name").textContent=this.item_.name||this.localize("Untitled");this.$(".video-duration").textContent=videojs.formatTime(this.item_.duration);if(this.item_.description&&this.item_.description!==""&&this.item_.description!==this.item_.name){this.$(".video-description").textContent=this.item_.description}else{g.addClass(this.$(".video-description"),"vjs-hidden")}if(window.location.protocol==="https:"&&this.item_.poster.substr(0,6)!=="https:"){IOL.VideoPlayerLoader.videoPublisher=this.item_.publisher;IOL.VideoPlayerLoader.videoCat=this.item_.categories;e.catalog.getVideo(this.item_.id,function(t,i){if(t&&e.related.options().debug){f["default"].warn("Failed to get video")}n.el_.style.backgroundImage="url("+i.poster+")";n.mediaAPI=false})}else{IOL.VideoPlayerLoader.videoPublisher=this.item_.publisher;IOL.VideoPlayerLoader.videoCat=this.item_.categories;this.el_.style.backgroundImage="url("+i.poster+")"}}r(t,[{key:"createEl",value:function e(){var t=d["default"].createElement("li");var i=d["default"].createElement("cite");var n=d["default"].createElement("duration");var r=d["default"].createElement("p");var a=d["default"].createElement("cat");t.className="vjs-playlist-item";i.className="video-name";n.className="video-duration";r.className="video-description";a.className="video-categories";t.appendChild(a);t.appendChild(n);t.appendChild(i);t.appendChild(r);return t}},{key:"handleClick",value:function e(){var t=this;var i=this.player_.related.options().link;var n=window;var r=function e(){try{return window.self!==window.top}catch(e){return true}};if(r()){n=window.parent}if(i){if(i.field){var a=i.field.split(".");if(this.item_[a[0]]&&this.item_[a[0]][a[1]]){n.location.href=this.item_[a[0]][a[1]];return}}if(i.url){n.location.href=(0,h["default"])(i.url,this.item_);return}}if(!this.player_.ended()){this.player_.trigger("current-video-ended")}this.player_.one("loadstart",function(){this.play();this.player_.trigger("manual-click-next-video")});if(!this.item_.playbackAPI){IOL.VideoPlayerLoader.videoPublisher=this.item_.publisher;IOL.VideoPlayerLoader.videoCat=this.item_.categories;this.player_.catalog.getVideo(this.item_.id,function(e,i){if(e){f["default"].log.warn(e)}if(i){t.player_.catalog.load(i)}});return}this.player_.catalog.load(this.item_)}}]);return t}(v);i["default"]=m;t.exports=i["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./replace-url-macros.js":4,"global/document":7}],2:[function(e,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:true});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,i,n){if(i)e(t.prototype,i);if(n)e(t,n);return t}}();var a=function e(t,i,n){var r=true;e:while(r){var a=t,s=i,o=n;r=false;if(a===null)a=Function.prototype;var l=Object.getOwnPropertyDescriptor(a,s);if(l===undefined){var u=Object.getPrototypeOf(a);if(u===null){return undefined}else{t=u;i=s;n=o;r=true;l=u=undefined;continue e}}else if("value"in l){return l.value}else{var d=l.get;if(d===undefined){return undefined}return d.call(o)}}};function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=e("global/document");var d=s(u);var c=typeof window!=="undefined"?window["videojs"]:typeof n!=="undefined"?n["videojs"]:null;var f=s(c);var p=e("./related-item.js");var h=s(p);var v=f["default"].getComponent("Component");var g=function(e){l(t,e);function t(e,i){o(this,t);i.el=d["default"].createElement("ol");i.el.className="vjs-related-list";a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,i);this.items=[];if(i.list){this.update(i.list)}}r(t,[{key:"update",value:function e(t){var i=this.player_.iolGetPlayerConfig().endScreen.class==="iol-custom-related"?4:6;var n;for(var r=0;r<this.items.length;r++){this.removeChild(this.items[r])}this.items=[];if(t&&t.length>0){for(var r=0,n=0;n<i;r++){if(t[r].id===this.player_.mediainfo.id){continue}var a=new h["default"](this.player_,t[r]);this.items.push(a);this.addChild(a);n++}}}}]);return t}(v);i["default"]=g;t.exports=i["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./related-item.js":1,"global/document":7}],3:[function(e,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:true});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,i,n){if(i)e(t.prototype,i);if(n)e(t,n);return t}}();var a=function e(t,i,n){var r=true;e:while(r){var a=t,s=i,o=n;r=false;if(a===null)a=Function.prototype;var l=Object.getOwnPropertyDescriptor(a,s);if(l===undefined){var u=Object.getPrototypeOf(a);if(u===null){return undefined}else{t=u;i=s;n=o;r=true;l=u=undefined;continue e}}else if("value"in l){return l.value}else{var d=l.get;if(d===undefined){return undefined}return d.call(o)}}};function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=typeof window!=="undefined"?window["videojs"]:typeof n!=="undefined"?n["videojs"]:null;var d=s(u);var c=e("./related-list.js");var f=s(c);var p=e("./replay-poster.js");var h=s(p);var v=d["default"].getComponent("ModalDialog");var g=function(e){l(t,e);function t(e,i){var n=this;var r=document.createElement("span");r.className="iol-related-dialog-title";r.id="iol-related-dialog-title-id";var s=document.createElement("div");s.className="iol-related-list-wrapper";var l=document.createElement("button");l.className="iol-related-close-btn vjs-close-button vjs-control vjs-button";l.setAttribute("aria-label","Close Modal Dialog");l.setAttribute("type","button");l.setAttribute("aria-disabled","false");var u=document.createElement("span");u.className="vjs-icon-placeholder";u.setAttribute("aria-hidden","true");l.appendChild(u);l.addEventListener("click",function(){n.close()});o(this,t);a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,i);this.relatedList=new f["default"](e,{});s.appendChild(l);s.appendChild(this.relatedList.el());this.contentEl_.appendChild(r);this.contentEl_.appendChild(s);this.smallCount=i.smallCount||1;this.smallWidth=i.smallWidth||470;this.on(e,["ended","show-related-on-pause"],this.open);this.on(this.player(),["loadstart","play","hide-related"],function(){n.close()})}var i=false;r(t,[{key:"fill",value:function e(t){if(t){if(i){t.sort(function(){return.5-Math.random()})}i=true;this.relatedList.update(t)}}},{key:"open",value:function e(){if(this.relatedList.items===undefined){this.player().trigger("empty-related-error")}if(this.relatedList.items.length<this.smallCount||this.player().currentWidth()<this.smallWidth){this.addClass("related-small")}else{this.removeClass("related-small")}var i=document.getElementById("iol-related-dialog-title-id");if(null!==i){if(undefined===i){this.player().trigger("iol-endscreen-error")}i.innerHTML=this.player().mediainfo.name}if(this.player().iolGetPlayerConfig().endScreen.class==="iol-custom-related"){this.addClass("iol-custom-related")}setTimeout(function(){this.player().removeClass("vjs-controls-disabled")}.bind(this),200);this.player().addClass("vjs-related-showing");a(Object.getPrototypeOf(t.prototype),"open",this).call(this)}},{key:"replayVideoInfo",value:function e(){var t=document.getElementById("vjs-poster-id-"+this.player_.id());if(document.querySelector("#replay-title-id-"+this.player_.id())==null){var i=document.createElement("div");i.className="replay-title";i.id="replay-title-id-"+this.player_.id();i.innerHTML=this.player_.mediainfo.name;var n=document.createElement("div");n.className="replay-duration";n.innerHTML=videojs.formatTime(this.player_.mediainfo.duration);if("undefined"!==typeof this.player_.relatedModal.relatedList.iolRelatedCategory&&this.player_.iolGetPlayerConfig().endScreen.class==="iol-custom-related"){var r=document.createElement("div");r.className="replay-category";r.innerHTML=this.player_.relatedModal.relatedList.iolRelatedCategory;t.appendChild(r)}t.appendChild(i);t.appendChild(n)}else{if("undefined"!==typeof this.player_.relatedModal.relatedList.iolRelatedCategory&&this.player_.iolGetPlayerConfig().endScreen.class==="iol-custom-related"){var a=document.getElementsByClassName("replay-category");a[0].innerHTML=this.player_.relatedModal.relatedList.iolRelatedCategory}var s=document.getElementsByClassName("replay-title");var o=document.getElementsByClassName("replay-duration");s[0].innerHTML=this.player_.mediainfo.name;o[0].innerHTML=videojs.formatTime(this.player_.mediainfo.duration)}}},{key:"close",value:function e(){a(Object.getPrototypeOf(t.prototype),"close",this).call(this);this.player().removeClass("vjs-related-showing")}},{key:"buildCSSClass",value:function e(){return"vjs-related "+a(Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}}]);return t}(v);d["default"].registerComponent("RelatedModal",g);i["default"]=g;t.exports=i["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./related-list.js":2,"./replay-poster.js":5}],4:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function e(t,i){var n=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var r={"{timestamp}":(new Date).getTime(),"{document.referrer}":document.referrer,"{window.location.href}":window.location.href};for(var a in n){r["{"+a+"}"]=n[a]}if(i){var s=i.tags||[];var o=i.customFields||i.custom_fields||{};for(var l in i){if(typeof i[l]==="string"||typeof i[l]==="number"){r["{mediainfo."+l+"}"]=i[l]}}r["{mediainfo.tags}"]=s.join();for(var l in o){r["{customFields."+l+"}"]=o[l]}}for(var l in r){t=t.replace(l,r[l])}return t};i["default"]=n;t.exports=i["default"]},{}],5:[function(e,t,i){(function(e){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,i,n){if(i)e(t.prototype,i);if(n)e(t,n);return t}}();var r=function e(t,i,n){var r=true;e:while(r){var a=t,s=i,o=n;r=false;if(a===null)a=Function.prototype;var l=Object.getOwnPropertyDescriptor(a,s);if(l===undefined){var u=Object.getPrototypeOf(a);if(u===null){return undefined}else{t=u;i=s;n=o;r=true;l=u=undefined;continue e}}else if("value"in l){return l.value}else{var d=l.get;if(d===undefined){return undefined}return d.call(o)}}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function o(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=typeof window!=="undefined"?window["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var u=a(l);var d=u["default"].getComponent("PosterImage");var c=function(e){o(t,e);function t(){s(this,t);r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}n(t,[{key:"handleClick",value:function e(t){this.player_.play()}}]);return t}(d);i["default"]=c;t.exports=i["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],6:[function(e,t,i){},{}],7:[function(e,t,i){(function(i){var n=typeof i!=="undefined"?i:typeof window!=="undefined"?window:{};var r=e("min-document");if(typeof document!=="undefined"){t.exports=document}else{var a=n["__GLOBAL_DOCUMENT_CACHE@4"];if(!a){a=n["__GLOBAL_DOCUMENT_CACHE@4"]=r}t.exports=a}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"min-document":6}],8:[function(e,t,i){(function(e){"use strict";if(e.fetch){return}function t(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function i(e){if(typeof e!=="string"){e=String(e)}return e}function n(e){this.map={};if(e instanceof n){e.forEach(function(e,t){this.append(t,e)},this)}else if(e){Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}}n.prototype.append=function(e,n){e=t(e);n=i(n);var r=this.map[e];if(!r){r=[];this.map[e]=r}r.push(n)};n.prototype["delete"]=function(e){delete this.map[t(e)]};n.prototype.get=function(e){var i=this.map[t(e)];return i?i[0]:null};n.prototype.getAll=function(e){return this.map[t(e)]||[]};n.prototype.has=function(e){return this.map.hasOwnProperty(t(e))};n.prototype.set=function(e,n){this.map[t(e)]=[i(n)]};n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(i){this.map[i].forEach(function(n){e.call(t,n,i,this)},this)},this)};function r(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function a(e){return new Promise(function(t,i){e.onload=function(){t(e.result)};e.onerror=function(){i(e.error)}})}function s(e){var t=new FileReader;t.readAsArrayBuffer(e);return a(t)}function o(e){var t=new FileReader;t.readAsText(e);return a(t)}var l={blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function u(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(typeof e==="string"){this._bodyText=e}else if(l.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(l.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(!e){this._bodyText=""}else if(l.arrayBuffer&&ArrayBuffer.prototype.isPrototypeOf(e)){}else{throw new Error("unsupported BodyInit type")}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}}};if(l.blob){this.blob=function(){var e=r(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){return this.blob().then(s)};this.text=function(){var e=r(this);if(e){return e}if(this._bodyBlob){return o(this._bodyBlob)}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}}}else{this.text=function(){var e=r(this);return e?e:Promise.resolve(this._bodyText)}}if(l.formData){this.formData=function(){return this.text().then(p)}}this.json=function(){return this.text().then(JSON.parse)};return this}var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(e){var t=e.toUpperCase();return d.indexOf(t)>-1?t:e}function f(e,t){t=t||{};var i=t.body;if(f.prototype.isPrototypeOf(e)){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new n(e.headers)}this.method=e.method;this.mode=e.mode;if(!i){i=e._bodyInit;e.bodyUsed=true}}else{this.url=e}this.credentials=t.credentials||this.credentials||"omit";if(t.headers||!this.headers){this.headers=new n(t.headers)}this.method=c(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&i){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(i)}f.prototype.clone=function(){return new f(this)};function p(e){var t=new FormData;e.trim().split("&").forEach(function(e){if(e){var i=e.split("=");var n=i.shift().replace(/\+/g," ");var r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}});return t}function h(e){var t=new n;var i=(e.getAllResponseHeaders()||"").trim().split("\n");i.forEach(function(e){var i=e.trim().split(":");var n=i.shift().trim();var r=i.join(":").trim();t.append(n,r)});return t}u.call(f.prototype);function v(e,t){if(!t){t={}}this.type="default";this.status=t.status;this.ok=this.status>=200&&this.status<300;this.statusText=t.statusText;this.headers=t.headers instanceof n?t.headers:new n(t.headers);this.url=t.url||"";this._initBody(e)}u.call(v.prototype);v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})};v.error=function(){var e=new v(null,{status:0,statusText:""});e.type="error";return e};var g=[301,302,303,307,308];v.redirect=function(e,t){if(g.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new v(null,{status:t,headers:{location:e}})};e.Headers=n;e.Request=f;e.Response=v;e.fetch=function(e,t){return new Promise(function(i,n){var r;if(f.prototype.isPrototypeOf(e)&&!t){r=e}else{r=new f(e,t)}var a=new XMLHttpRequest;function s(){if("responseURL"in a){return a.responseURL}if(/^X-Request-URL:/m.test(a.getAllResponseHeaders())){return a.getResponseHeader("X-Request-URL")}return}a.onload=function(){var e=a.status===1223?204:a.status;if(e<100||e>599){n(new TypeError("Network request failed"));return}var t={status:e,statusText:a.statusText,headers:h(a),url:s()};var r="response"in a?a.response:a.responseText;i(new v(r,t))};a.onerror=function(){n(new TypeError("Network request failed"))};a.ontimeout=function(){n(new TypeError("Network request failed"))};a.open(r.method,r.url,true);if(r.credentials==="include"){a.withCredentials=true}if("responseType"in a&&l.blob){a.responseType="blob"}r.headers.forEach(function(e,t){a.setRequestHeader(t,e)});a.send(typeof r._bodyInit==="undefined"?null:r._bodyInit)})};e.fetch.polyfill=true})(typeof self!=="undefined"?self:this)},{}],9:[function(e,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:true});function r(e){return e&&e.__esModule?e:{default:e}}var a=typeof window!=="undefined"?window["videojs"]:typeof n!=="undefined"?n["videojs"]:null;var s=r(a);var o=e("./related-modal");var l=r(o);var u=e("./replace-url-macros.js");var d=r(u);e("whatwg-fetch");var c={limit:9,debug:true};var f;var p=s["default"].registerPlugin||s["default"].plugin;var h=function e(t,i){t.related={options:function e(){return i},VERSION:"1.0.0"};var n=new l["default"](t,{label:t.localize("End card with related videos"),content:"",temporary:false,uncloseable:true});var r=undefined;var a=undefined;var o="https://cnt.iol.it/video/v1/es";t.on("loadedmetadata",function(){if(t.mediainfo&&t.mediainfo.id&&a!==t.mediainfo.id){a=t.mediainfo.id;r()}});r=function(){var e=f.logo.name;var r="";f.endScreen.catType="categoria";if(t.mediainfo.accountId==="6249462458001"){f.endScreen.catType="cat_mktp"}var l=f.endScreen.catType;switch(i.source){case"related":s["default"].log.warn("The related videos API is unavailable.");break;case"url":if(t.mediainfo.customFields&&"undefined"!==typeof t.mediainfo.customFields[l]&&t.mediainfo.customFields[l]!==""){t.relatedModal.relatedList.iolRelatedCategory=t.mediainfo.customFields[l].replace(/^_/,"")}else{t.relatedModal.relatedList.iolRelatedCategory=""}if("undefined"!==typeof t.iolRelatedVideos){n.fill(t.iolRelatedVideos);return}i.backupUrl=o+"?aid="+t.mediainfo.accountId+"&p=brightcove";if(f.endScreen.related=="categoria"){if(e==="VID"){if(typeof t.mediainfo.customFields[l]!=="undefined"){r=t.mediainfo.customFields[l].replace(/^_/,"")}if(r==="faidate"){r="fai da te"}if(r==="news"){r="notizie"}if(r==="kids-bambini"){r="bambini"}if(r==="kids-ragazzi"){r="ragazzi"}if(r==="vip"){r="spettacoli e vip"}if(r==="informazioni-utili"){r="buono a sapersi"}if(r==="accadde-oggi"){r="fatti"}if(r!==""){i.url=o+"?st=cmsvideo&t="+r+"&p=brightcove"}else{i.url=o+"?st=cmsvideo"+"&aid="+t.mediainfo.accountId+"&p=brightcove"}}else{if(t.mediainfo.accountId==="6249462458001"){if(typeof t.mediainfo.customFields.cat_mktp!=="undefined"){r=t.mediainfo.customFields.cat_mktp}}else if(typeof t.mediainfo.customFields[l]!=="undefined"){r=t.mediainfo.customFields[l].replace(/^_/,"")}if(r==="FAI DA TE"){r="faidate"}if(r!==""){i.url=o+"?aid="+t.mediainfo.accountId+"&t="+r+"&p=brightcove"}else{i.url=i.backupUrl}}}else if(f.endScreen.related=="brand"){if(typeof t.mediainfo.custom_fields.publisher!=="undefined"){r=t.mediainfo.customFields.publisher}else{r=f.endScreen.brandDefault}if(r!==""){i.url=o+"?aid="+t.mediainfo.accountId+"&pu="+r+"&p=brightcove"}else{i.url=i.backupUrl}}else if(f.endScreen.related=="semantic"){if(typeof a!=="undefined"){r=a}if(r!==""){i.url=o+"?id="+r+"&aid="+t.mediainfo.accountId+"&p=brightcove"}else{i.url=i.backupUrl}}if(i.url!==""&&f.logo.name==="LIB"){if("undefined"!==typeof t.mediainfo.custom_fields.videosite){if(t.mediainfo.custom_fields.videosite==="libero.it"){i.url+="&vs=libero.it"}}}if("undefined"!==typeof i.custom_url){i.url=i.custom_url}var u=function(e){fetch(e).then(function(e){if(!e.ok){throw Error(e.statusText)}return e}).then(function(e){return e.json()}).then(function(e){if(e&&e.length>=5){t.iolRelatedVideos=e;n.fill(e)}else{console.warn("Insufficient related data ... Calling backup API");t.trigger("iol-get-related-data-error")}}).catch(function(e){console.warn("Endscreen API Error:",e);t.trigger("iol-get-related-data-error")})};u(i.url);t.one("iol-get-related-data-error",function(){u(i.backupUrl)});break;case"playlist":var d=i.playlistId;if(i.playlistField&&t.mediainfo){var c=i.playlistField.split(".");var p=t.mediainfo[c[0]][c[1]];if(p){d=p}}if(t.mediainfo.customFields&&"undefined"!==typeof t.mediainfo.customFields[l]&&t.mediainfo.customFields[l]!==""){t.relatedModal.relatedList.iolRelatedCategory=t.mediainfo.customFields[l].replace(/^_/,"")}else{t.relatedModal.relatedList.iolRelatedCategory=""}if(d){t.catalog.getPlaylist(d,function(e,t){if(e&&i.debug){s["default"].log.warn(e)}else{for(var r in t){t[r].playbackAPI=true}n.fill(t)}})}else if(i.debug){s["default"].log.warn("No playlist supplied")}break}};t.relatedModal=n;t.addChild(n);if(s["default"].browser.IS_IOS){t.on("ended",function(){if(t.isFullscreen()){t.exitFullscreen()}})}};var v=function e(t){var i=this;this.ready(function(){f=i.iolGetPlayerConfig();if(!f.endScreen.active){return}console.log("===============> Endscreen plugin version: 6.4.2");h(i,s["default"].mergeOptions(c,t))})};p("related",v);v.VERSION="1.0.0";i["default"]=v;t.exports=i["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./related-modal":3,"./replace-url-macros.js":4,"whatwg-fetch":8}]},{},[9])(9)})})();(function(){if(videojs.getPlugin("thumbnails")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("global/window"),require("global/document"),require("video.js")):typeof define==="function"&&define.amd?define(["global/window","global/document","video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.videojsThumbnails=t(e.window,e.document,e.videojs))})(this,function(e,t,i){"use strict";function n(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var r=n(e);var a=n(t);var s=n(i);function o(e,t,i){return i={path:t,exports:{},require:function(e,t){return l(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function l(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var u=o(function(e){function t(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var d=o(function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};e.exports["default"]=e.exports,e.exports.__esModule=true;return t(i,n)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var c=o(function(e){function t(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;d(e,t)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true});var f=s["default"].getComponent("Component");var p=function(e){c(t,e);function t(t,i){var n;n=e.call(this,t,i)||this;n.isImageLoading_=false;return n}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-thumbnail-display"});this.imageEl_=s["default"].dom.createEl("img",{className:"vjs-thumbnail-image",style:"display: none;"});i.appendChild(this.imageEl_);return i};i.setThumbnailImage=function e(t){var i=this;if(!t||this.isImageLoading_){return}this.imageEl_.onload=function(){i.isImageLoading_=false;if(!i.imageEl_.naturalWidth||!i.imageEl_.naturalHeight){i.imageEl_.style.display="none";return}var e=i.imageEl_.naturalWidth/i.imageEl_.naturalHeight;i.el_.style.height=Math.round(150/e)+"px";if(i.imageEl_.style.display==="none"){i.imageEl_.style.display="block"}};this.imageEl_.onerror=function(){i.isImageLoading_=false;i.imageEl_.style.display="none"};this.imageEl_.src=t;this.isImageLoading_=true};i.updatePosition=function e(t){var i=s["default"].dom.getBoundingClientRect(this.el_);var n=i.width/2;var r=this.player_.getChild("ControlBar");if(!r){return}var a=r.getChild("ProgressControl");if(!a){return}var o=a.getChild("seekBar");if(!o){return}var l=s["default"].dom.getBoundingClientRect(o.el());var u=l.width*t;var d=o.getChild("MouseTimeDisplay");if(!d){return}var c=s["default"].dom.getBoundingClientRect(d.el());var f=s["default"].dom.getBoundingClientRect(this.player_.el());if(c.left+n>=f.right-5){this.el_.style.left=f.width-i.width-2+"px";return}else if(c.right-n<=f.left+5){this.el_.style.left="2px";return}this.el_.style.left=u-Math.round(n)+"px"};return t}(f);f.registerComponent("ThumbnailDisplay",p);var h="1.2.4";var v=s["default"].getPlugin("plugin");var g=30;var m=function e(t,i){var n=r["default"].performance.now();var a=function e(){var a=r["default"].performance.now();if(a-n>=i){t.apply(void 0,arguments);n=a}};return a};var y={};var _=function(e){c(t,e);function t(t,i){var n;n=e.call(this,t)||this;n.options=s["default"].mergeOptions(y,i);n.metadataTrackEl_=null;n.thumbnailComponent_=null;n.currentThumbnail_=null;n.throttledHandleMouseMove=m(n.handleMouseMove.bind(u(n)),30);n.player.ready(function(){n.player.addClass("vjs-thumbnails");var e=n.player.textTracks();e.addEventListener("removetrack",function(){if(!n.player){return}if(!n.metadataTrackEl_){return}for(var t=0;t<e.length;t++){if(e[t].label==="thumbnails"){return}}if(n.thumbnailComponent_){n.thumbnailComponent_.dispose()}n.thumbnailComponent_=null;n.metadataTrackEl_=null;n.currentThumbnail_=null;var i=n.player.getChild("ControlBar");if(!i){return}var r=i.getChild("ProgressControl");if(!r){return}var a=r.getChild("seekBar");if(a){a.removeChild("ThumbnailDisplay")}var s=r.el();n.off(s,"mousemove",n.throttledHandleMouseMove)});e.addEventListener("addtrack",function(){if(n.metadataTrackEl_){return}n.metadataTrackEl_=n.getThumbnailsTrackEl();if(!n.metadataTrackEl_){return}n.metadataTrackEl_.track.mode="hidden";n.metadataTrackEl_.addEventListener("load",function(){if(!(n.metadataTrackEl_.track.cues&&n.metadataTrackEl_.track.cues.length)){s["default"].log.warn("Unable to parse cues out of thumbnail vtt file.");return}if(s["default"].browser.IS_IOS||s["default"].browser.IS_ANDROID){return}var e=n.player.options_.runtime_.settings;var t=e.videoCloud&&e.videoCloud.bumper;var i=n.player.mediainfo;if(t&&(t.id===i.id||t.id==="ref:"+i.referenceId)){return}if(n.player.hasClass("vjs-ssai-enabled")){n.adjustCueTimingForSSAI(n.metadataTrackEl_.track.cues)}var r=function e(){n.filterThumbnailsBasedOnPlayerWidth(n.metadataTrackEl_.track);n.preloadThumbnailImages(n.metadataTrackEl_.track.cues);n.setupThumbnailScrubbing()};if(n.player.readyState()>=1){r()}else{n.player.one("loadedmetadata",r)}})})});return n}var i=t.prototype;i.filterThumbnailsBasedOnPlayerWidth=function e(t){var i=this.player.currentWidth()||640;var n=Math.round(i/g)||1;var r=Math.floor(t.cues.length/n)-1;if(r<1){return}for(var a=0;a<t.cues.length;a++){var s=r;while(s>0){if(t.cues.length>n&&t.cues[a+1]){t.removeCue(t.cues[a+1])}s--}}for(var o=0;o<t.cues.length-1;o++){t.cues[o].endTime=t.cues[o+1].startTime}t.cues[t.cues.length-1].endTime=this.player.usingPlugin("ssai")&&this.player.hasClass("vjs-ssai-enabled")?this.player.ssai().contentDuration():this.player.duration()};i.preloadThumbnailImages=function e(t){for(var i=0;i<t.length;i++){var n=a["default"].createElement("link");n.rel="prefetch";n.as="image";n.href=t[i].text;a["default"].head.appendChild(n)}};i.adjustCueTimingForSSAI=function e(t){if(t[0].startTime!==0){var i=t[0].endTime*1e3-t[0].startTime*1e3;t[0].startTime=0;t[0].endTime=i/1e3}for(var n=1;n<t.length;n++){var r=t[n].endTime*1e3-t[n].startTime*1e3;t[n].startTime=t[n-1].endTime;t[n].endTime=(t[n].startTime*1e3+r)/1e3}};i.getThumbnailsTrackEl=function e(){var t=this.player.remoteTextTrackEls();for(var i=0;i<t.length;i++){var n=t[i].track;if(n.kind==="metadata"&&n.label==="thumbnails"){return t[i]}}};i.setupThumbnailScrubbing=function e(){var t=this.player.getChild("ControlBar");if(!t){return}var i=t.getChild("ProgressControl");if(!i){return}var n=i.getChild("seekBar");if(!n){return}var r=n.getChild("ThumbnailDisplay");if(!r){this.thumbnailComponent_=n.addChild("ThumbnailDisplay")}var a=i.el();this.on(a,"mousemove",this.throttledHandleMouseMove)};i.handleMouseMove=function e(t){if(this.player.usingPlugin("ads")&&this.player.ads.isInAdMode()){return}var i=this.player.getChild("ControlBar");if(!i){return}var n=i.getChild("ProgressControl");if(!n){return}var r=n.el();var a=s["default"].dom.getPointerPosition(r,t).x;this.updateThumbnailImageAndPosition(a)};i.updateThumbnailImageAndPosition=function e(t){var i=t*this.player.duration();if(this.metadataTrackEl_.track.mode==="disabled"){this.metadataTrackEl_.track.mode="hidden"}if(this.metadataTrackEl_.track.cues){for(var n=0;n<this.metadataTrackEl_.track.cues.length;n++){var r=this.metadataTrackEl_.track.cues[n];if(i>=r.startTime&&i<=r.endTime&&r.text!==this.currentThumbnail_){this.thumbnailComponent_.setThumbnailImage(r.text);this.currentThumbnail_=r.text;break}}this.thumbnailComponent_.updatePosition(t)}};return t}(v);_.defaultState={};_.VERSION=h;s["default"].registerPlugin("thumbnails",_);return _})})();(function(){if(videojs.getPlugin("comscore")){return}!function(e,t){"use strict";"function"==typeof define&&define.amd?(t(e.ns_=e.ns_||{}),define([],function(){return e.ns_})):"object"==typeof module&&module.exports?module.exports=t({}):t(e.ns_=e.ns_||{})}(this,function(e){"use strict";e.ns_=e;var t=t||{};t.indexOf=function(e,t){var i=-1;return this.forEach(t,function(t,n){t==e&&(i=n)}),i},t.forEach=function(e,t,i){try{if("function"==typeof t)if(i="undefined"!=typeof i?i:null,"number"!=typeof e.length||"undefined"==typeof e[0]){var n="undefined"!=typeof e.__proto__;for(var r in e)e.hasOwnProperty(r)&&(!n||n&&"undefined"==typeof e.__proto__[r])&&"function"!=typeof e[r]&&t.call(i,e[r],r)}else for(var a=0,s=e.length;a<s;a++)t.call(i,e[a],a)}catch(e){}};var t=t||{};t.parseBoolean=function(e,t){return t=t||!1,e?"0"!=e:t},t.parseInteger=function(e,t){return null==e||isNaN(e)?t||0:parseInt(e)},t.parseLong=function(e,t){var i=Number(e);return null==e||isNaN(i)?t||0:i},t.toString=function(e){if("undefined"==typeof e)return"undefined";if("string"==typeof e)return e;if(e instanceof Array)return e.join(",");var t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+":"+e[i]+";");return t||e.toString()};var t=t||{};t.filter=function(e,t){var i={};for(var n in t)t.hasOwnProperty(n)&&e(t[n])&&(i[n]=t[n]);return i},t.extend=function(e){var t,i=arguments.length;e=e||{};for(var n=1;n<i;n++)if(t=arguments[n])for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e};var t=t||{};t.cloneObject=function(e){if(null==e||"object"!=typeof e)return e;var t=function(){function e(){}function t(t){return"object"==typeof t?(e.prototype=t,new e):t}function i(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}function n(){this.copiedObjects=[];var e=this;this.recursiveDeepCopy=function(t){return e.deepCopy(t)},this.depth=0}function r(e,t){var i=new n;return t&&(i.maxDepth=t),i.deepCopy(e)}function a(e){return"undefined"!=typeof window&&window&&window.Node?e instanceof Node:"undefined"!=typeof document&&e===document||"number"==typeof e.nodeType&&e.attributes&&e.childNodes&&e.cloneNode}var s=[];return i.prototype={constructor:i,canCopy:function(){return!1},create:function(e){},populate:function(e,t,i){}},n.prototype={constructor:n,maxDepth:256,cacheResult:function(e,t){this.copiedObjects.push([e,t])},getCachedResult:function(e){for(var t=this.copiedObjects,i=t.length,n=0;n<i;n++)if(t[n][0]===e)return t[n][1]},deepCopy:function(e){if(null===e)return null;if("object"!=typeof e)return e;var t=this.getCachedResult(e);if(t)return t;for(var i=0;i<s.length;i++){var n=s[i];if(n.canCopy(e))return this.applyDeepCopier(n,e)}throw new Error("Unable to clone the following object "+e)},applyDeepCopier:function(e,t){var i=e.create(t);if(this.cacheResult(t,i),this.depth++,this.depth>this.maxDepth)throw new Error("Maximum recursion depth exceeded.");return e.populate(this.recursiveDeepCopy,t,i),this.depth--,i}},r.DeepCopier=i,r.deepCopiers=s,r.register=function(e){e instanceof i||(e=new i(e)),s.unshift(e)},r.register({canCopy:function(){return!0},create:function(e){return e instanceof e.constructor?t(e.constructor.prototype):{}},populate:function(e,t,i){for(var n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}}),r.register({canCopy:function(e){return e instanceof Array},create:function(e){return new e.constructor},populate:function(e,t,i){for(var n=0;n<t.length;n++)i.push(e(t[n]));return i}}),r.register({canCopy:function(e){return e instanceof Date},create:function(e){return new Date(e)}}),r.register({canCopy:function(e){return a(e)},create:function(e){return"undefined"!=typeof document&&e===document?document:e.cloneNode(!1)},populate:function(e,t,i){if("undefined"!=typeof document&&t===document)return document;if(t.childNodes&&t.childNodes.length)for(var n=0;n<t.childNodes.length;n++){var r=e(t.childNodes[n]);i.appendChild(r)}}}),{deepCopy:r}}();return t.deepCopy(e)};var t=t||{};t.getNamespace=function(){return e.ns_||e},t.uid=function(){var e=1;return function(){return+new Date+"_"+e++}}(),t.isEmpty=function(e){return void 0===e||null===e||""===e||e instanceof Array&&0===e.length},t.isNotEmpty=function(e){return!this.isEmpty(e)},t.safeGet=function(e,t){return t=this.exists(t)?t:"",this.exists(e)?e:t},t.isTrue=function(e){return"undefined"!=typeof e&&("string"==typeof e?(e=e.toLowerCase(),"true"===e||"1"===e||"on"===e):!!e)},t.regionMatches=function(e,t,i,n,r){if(t<0||n<0||t+r>e.length||n+r>i.length)return!1;for(;--r>=0;){var a=e.charAt(t++),s=i.charAt(n++);if(a!=s)return!1}return!0},t.exists=function(e){return"undefined"!=typeof e&&null!=e},!function(){var e=[],i=!1,n=!0,r=1e3;t.onSystemClockJump=function(t,a){e.push(t),i||(i=!0,r=a||r,n=+new Date,setInterval(function(){var t=n+r,i=+new Date;n=i;var a=i-t;if(Math.abs(a)>r)for(var s=0;s<e.length;++s)e[s](a>0)},r))}}();var t=t||{};t.hasPageVisibilityAPISupport=function(){if("undefined"==typeof document)return!1;var e=!1;return"undefined"!=typeof document.hidden?e=!0:"undefined"!=typeof document.mozHidden?e=!0:"undefined"!=typeof document.msHidden?e=!0:"undefined"!=typeof document.webkitHidden&&(e=!0),function(){return e}}(),t.getPageVisibilityAPI=function(){if("undefined"==typeof document)return null;var e,t,i;"undefined"!=typeof document.hidden?(e="hidden",t="visibilitychange",i="visibilityState"):"undefined"!=typeof document.mozHidden?(e="mozHidden",t="mozvisibilitychange",i="mozVisibilityState"):"undefined"!=typeof document.msHidden?(e="msHidden",t="msvisibilitychange",i="msVisibilityState"):"undefined"!=typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange",i="webkitVisibilityState");var n={hidden:e,visibilityChange:t,state:i};return function(){return n}}(),t.isTabInBackground=function(){if("undefined"==typeof document)return null;var e=t.getPageVisibilityAPI();return function(){return document[e.hidden]}}(),t.getBrowserName=function(){if(!navigator)return"";var e,t,i=navigator.userAgent||"",n=navigator.appName||"";return(t=i.indexOf("Opera"))!=-1||(t=i.indexOf("OPR/"))!=-1?n="Opera":(t=i.indexOf("Android"))!=-1?n="Android":(t=i.indexOf("Chrome"))!=-1?n="Chrome":(t=i.indexOf("Safari"))!=-1?n="Safari":(t=i.indexOf("Firefox"))!=-1?n="Firefox":(t=i.indexOf("IEMobile"))!=-1?n="Internet Explorer Mobile":"Microsoft Internet Explorer"==n||"Netscape"==n?n="Internet Explorer":(e=i.lastIndexOf(" ")+1)<(t=i.lastIndexOf("/"))?(n=i.substring(e,t),n.toLowerCase()==n.toUpperCase()&&(n=navigator.appName)):n="unknown",n},t.getBrowserFullVersion=function(){if(!navigator)return"";var e,t,i,n,r=navigator.userAgent||"",a=navigator.appName||"",s=navigator.appVersion?""+parseFloat(navigator.appVersion):"";return(t=r.indexOf("Opera"))!=-1?(s=r.substring(t+6),(t=r.indexOf("Version"))!=-1&&(s=r.substring(t+8))):(t=r.indexOf("OPR/"))!=-1?s=r.substring(t+4):(t=r.indexOf("Android"))!=-1?s=r.substring(t+11):(t=r.indexOf("Chrome"))!=-1?s=r.substring(t+7):(t=r.indexOf("Safari"))!=-1?(s=r.substring(t+7),(t=r.indexOf("Version"))!=-1&&(s=r.substring(t+8))):(t=r.indexOf("Firefox"))!=-1?s=r.substring(t+8):"Microsoft Internet Explorer"==a?(n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),null!=n.exec(r)&&(s=parseFloat(RegExp.$1))):"Netscape"==a?(n=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!=n.exec(r)&&(s=parseFloat(RegExp.$1))):s=r.lastIndexOf(" ")+1<(t=r.lastIndexOf("/"))?r.substring(t+1):"unknown",s=s.toString(),(i=s.indexOf(";"))!=-1&&(s=s.substring(0,i)),(i=s.indexOf(" "))!=-1&&(s=s.substring(0,i)),(i=s.indexOf(")"))!=-1&&(s=s.substring(0,i)),e=parseInt(""+s,10),isNaN(e)&&(s=""+parseFloat(navigator.appVersion)),s},t.browserAcceptsLargeURLs=function(){return"undefined"==typeof window||(null!==window.ActiveXObject,!0)},t.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},t.isWebSecure=function(){return"undefined"!=typeof document&&null!=document&&"s"===document.location.href.charAt(4)};var i=function(){var e=1e4;return function(t,i){function n(e){e=e||[];var i=[o,+new Date];return t&&i.push(t),e=Array.prototype.slice.call(e),i=i.concat(e)}function r(e){var t,n,r;if("boolean"==typeof i||!i)return!!i;if(r=e.join(" "),i instanceof Array&&i.length>0){for(t=0;t<i.length;++t)if(n=i[t],n instanceof RegExp&&n.test(r))return!0;return!1}if("object"==typeof i){var a=!1;if(i.hide instanceof Array)for(t=0;t<i.hide.length;++t)if(n=i.hide[t],n instanceof RegExp&&n.test(r)){a=!0;break}if(i.show instanceof Array)for(t=0;t<i.show.length;++t)if(n=i.show[t],n instanceof RegExp&&n.test(r))return!0;return!a&&!i.show}return!0}function a(t){var n=l.length;(n>e||i&&i.max&&n>i.max)&&(l=l.slice(-Math.floor(i.max/2)),l.push("Previous logs: "+n)),l.push(t)}var s=this,o="comScore",l=[];s.log=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.log&&r(e)&&console.log.apply(console,e)},s.warn=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.warn&&r(e)&&console.warn.apply(console,e)},s.error=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.error&&r(e)&&console.error.apply(console,e)},s.apiCall=function(e){for(var t=["API call to:",e],i=1;i<arguments.length;++i)t.push("arg"+i+":",arguments[i]);this.log.apply(this,t)},s.infoLog=function(){var e=["Trace log:"];e.push.apply(e,Array.prototype.slice.call(arguments)),this.log.apply(this,e)},s.deprecation=function(e,t){var i=["Deprecated API:",e,"is deprecated and will be eventually removed."];t&&i.push("Use",t,"instead."),this.warn.apply(this,i)},s.getLogHistory=function(){return l}}}();return e.StreamingAnalytics=e.StreamingAnalytics||function(){var e=function(){var e="cs_";return function(){var i="undefined"!=typeof localStorage?localStorage:null;t.extend(this,{get:function(t){return i&&i.getItem(e+t)},set:function(t,n){i&&i.setItem(e+t,n)},has:function(t){return i&&i.getItem(e+t)},remove:function(t){i&&i.removeItem(e+t)},clear:function(){for(var t=0;i&&t<i.length;++t){var n=i.key(t);n.substr(0,e.length)===e&&i.removeItem(n)}}})}}(),n=function(e,t){if("undefined"==typeof Image)return void("function"==typeof setTimeout?t&&setTimeout(t,0):t&&t());var i=new Image;i.onload=function(){t&&t(200),i=null},i.onerror=function(){t&&t(),i=null},i.src=e},r=function(e,t,i){"function"==typeof setTimeout?i&&setTimeout(function(){i(200)},0):i&&i(200)},a=function(){return{dir:function(){return null},append:function(e,t,i){},write:function(e,t,i){},deleteFile:function(){return!1},read:function(){return null}}}(),s=function(){return{PLATFORM:"generic",httpGet:n,httpPost:r,Storage:e,IO:a,onDataFetch:function(e){e()},getCrossPublisherId:function(){return null},getAppName:function(){return o.UNKNOWN_VALUE},getAppVersion:function(){return o.UNKNOWN_VALUE},getVisitorId:function(){return+new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return o.UNKNOWN_VALUE},getPlatformVersion:function(){return o.UNKNOWN_VALUE},getPlatformName:function(){return"js"},getRuntimeName:function(){return o.UNKNOWN_VALUE},getRuntimeVersion:function(){return o.UNKNOWN_VALUE},getDisplayResolution:function(){return o.UNKNOWN_RESOLUTION},getApplicationResolution:function(){return o.UNKNOWN_RESOLUTION},getLanguage:function(){return o.UNKNOWN_VALUE},getPackageName:function(){return null},isConnectionAvailable:function(){return!0},isCompatible:function(){return!0},autoSelect:function(){},setPlatformAPI:function(){},isCrossPublisherIdChanged:function(){return!1},setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)},getDeviceArchitecture:function(){return o.UNKNOWN_VALUE},getConnectionType:function(){return o.UNKNOWN_VALUE},getDeviceJailBrokenFlag:function(){return o.UNKNOWN_VALUE},isConnectionSecure:function(){return!1},processMeasurementLabels:function(){}}}(),o={UNKNOWN_VALUE:"unknown",UNKNOWN_RESOLUTION:"0x0"};t.jsonObjectToStringDictionary=function(e){var t={};for(var i in e){var n=e[i];null===n||void 0===n?t[i]=n:t[i]=e[i]+""}return t},t.getKeys=function(e,t){var i,n=[];for(i in e)t&&!t.test(i)||!e.hasOwnProperty(i)||(n[n.length]=i);return n},t.fixEventTime=function(e){if(e.ns_ts)return parseInt(e.ns_ts);var t=+new Date;return e.ns_ts=t+"",t},t.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},t.addNewPlaybackInterval=function(e,i,n,r){var a={};if(!(n>=i))return t.cloneObject(e);if(a.start=i,a.end=n,0==e.length)return e.push(a),t.cloneObject(e);var s;for(s=0;s<e.length;s++)if(a.start>=e[s].start&&a.end<=e[s].end)return t.cloneObject(e);var o,l=!1;for(o=0;o<e.length;o++)if(o+1===e.length&&a.start>=e[o].start||a.start>=e[o].start&&a.start<e[o+1].start){e.splice(o+1,0,a),l=!0;break}l||e.splice(0,0,a);var u=[e[0]];for(s=1;s<e.length;s++)u[u.length-1].end+r<e[s].start?u.push(e[s]):u[u.length-1].end<e[s].end&&(u[u.length-1].end=e[s].end);return t.cloneObject(u)},t.stateToString=function(e){var t=O.InternalStates;for(var i in t)if(t.hasOwnProperty(i)&&t[i]==e)return i};var l=function(){var e=["play","pause","pause-on-buffering","end","buffer","buffer-stop","keep-alive","hb","custom","load","start","skstart","adskip","cta","error","trans","drmfa","drmap","drmde","bitrt","playrt","volume","window","audio","video","subs","cdn"];return{PLAY:0,PAUSE:1,PAUSE_ON_BUFFERING:2,END:3,BUFFER:4,BUFFER_STOP:5,KEEPALIVE:6,HEARTBEAT:7,CUSTOM:8,LOAD:9,ENGAGE:10,SEEK_START:11,AD_SKIP:12,CTA:13,ERROR:14,TRANSFER:15,DRM_FAILED:16,DRM_APPROVED:17,DRM_DENIED:18,BIT_RATE:19,PLAYBACK_RATE:20,VOLUME:21,WINDOW_STATE:22,AUDIO:23,VIDEO:24,SUBS:25,CDN:26,toString:function(t){return e[t]}}}(),u=function(){return{IDLE:0,PLAYBACK_NOT_STARTED:1,PLAYING:2,PAUSED:3,BUFFERING_BEFORE_PLAYBACK:4,BUFFERING_DURING_PLAYBACK:5,BUFFERING_DURING_SEEKING:6,BUFFERING_DURING_PAUSE:7,SEEKING_BEFORE_PLAYBACK:8,SEEKING_DURING_PLAYBACK:9,SEEKING_DURING_BUFFERING:10,SEEKING_DURING_PAUSE:11,PAUSED_DURING_BUFFERING:12}}(),d=function(){var e=["c","s","r"];return{SINGLE_CLIP:0,SEGMENTED:1,REDUCED:2,toString:function(t){return e[t]}}}(),c={STREAMINGANALYTICS_VERSION:"6.1.0.170130",MODEL_VERSION:"5.8",LOG_NAMESPACE:"STA",DEFAULT_PLAYERNAME:"js_api",DEFAULT_HEARTBEAT_INTERVAL:[{playingtime:6e4,interval:1e4},{playingtime:null,interval:6e4}],DEFAULT_KEEP_ALIVE_INTERVAL:12e5,DEFAULT_PAUSED_ON_BUFFERING_INTERVAL:500,C1_VALUE:"19",C10_VALUE:"js",NS_AP_C12M_VALUE:"1",NS_NC_VALUE:"1",PAGE_NAME_LABEL:"name",RESTRICTED_URL_LENGTH_LIMIT:2048,URL_LENGTH_LIMIT:4096,THROTTLING_DELAY:500,INTERVAL_MERGE_TOLERANCE:500,SYSTEM_CLOCK_JUMP_DETECTION_DEFAULT_INTERVAL:1e3,SYSTEM_CLOCK_JUMP_DETECTION_MINIMUM_INTERVAL:500,DEFAULT_ASSET_PLAYBACK_RATE:100,STANDARD_METADATA_LABELS:["ns_st_st","ns_st_ci","ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_ty","ns_st_ct","ns_st_li","ns_st_ad","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pu","c3","c4","c6"],LABELS_ORDER:["c1","c2","ca2","cb2","cc2","cd2","ns_site","ca_ns_site","cb_ns_site","cc_ns_site","cd_ns_site","ns_vsite","ca_ns_vsite","cb_ns_vsite","cc_ns_vsite","cd_ns_vsite","ns_alias","ca_ns_alias","cb_ns_alias","cc_ns_alias","cd_ns_alias","ns_ap_an","ca_ns_ap_an","cb_ns_ap_an","cc_ns_ap_an","cd_ns_ap_an","ns_ap_pn","ns_ap_pv","c12","ca12","cb12","cc12","cd12","ns_ak","ns_ap_hw","name","ns_ap_ni","ns_ap_ec","ns_ap_ev","ns_ap_device","ns_ap_id","ns_ap_csf","ns_ap_bi","ns_ap_pfm","ns_ap_pfv","ns_ap_ver","ca_ns_ap_ver","cb_ns_ap_ver","cc_ns_ap_ver","cd_ns_ap_ver","ns_ap_sv","ns_ap_cv","ns_ap_smv","ns_type","ca_ns_type","cb_ns_type","cc_ns_type","cd_ns_type","ns_radio","ns_nc","cs_partner","cs_xcid","cs_impid","ns_ap_ui","ca_ns_ap_ui","cb_ns_ap_ui","cc_ns_ap_ui","cd_ns_ap_ui","ns_ap_gs","ns_st_sv","ns_st_pv","ns_st_smv","ns_st_it","ns_st_id","ns_st_ec","ns_st_sp","ns_st_sc","ns_st_psq","ns_st_asq","ns_st_sq","ns_st_ppc","ns_st_apc","ns_st_spc","ns_st_cn","ns_st_ev","ns_st_po","ns_st_cl","ns_st_el","ns_st_sl","ns_st_pb","ns_st_hc","ns_st_mp","ca_ns_st_mp","cb_ns_st_mp","cc_ns_st_mp","cd_ns_st_mp","ns_st_mv","ca_ns_st_mv","cb_ns_st_mv","cc_ns_st_mv","cd_ns_st_mv","ns_st_pn","ns_st_tp","ns_st_ad","ns_st_li","ns_st_ci","ns_st_si","ns_st_pt","ns_st_dpt","ns_st_ipt","ns_st_et","ns_st_det","ns_st_upc","ns_st_dupc","ns_st_iupc","ns_st_upa","ns_st_dupa","ns_st_iupa","ns_st_lpc","ns_st_dlpc","ns_st_lpa","ns_st_dlpa","ns_st_pa","ns_st_ie","ns_ap_jb","ns_ap_et","ns_ap_res","ns_ap_sd","ns_ap_po","ns_ap_ot","ns_ap_c12m","cs_c12u","ca_cs_c12u","cb_cs_c12u","cc_cs_c12u","cd_cs_c12u","ns_ap_install","ns_ap_updated","ns_ap_lastrun","ns_ap_cs","ns_ap_runs","ns_ap_usage","ns_ap_fg","ns_ap_ft","ns_ap_dft","ns_ap_bt","ns_ap_dbt","ns_ap_dit","ns_ap_as","ns_ap_das","ns_ap_it","ns_ap_uc","ns_ap_aus","ns_ap_daus","ns_ap_us","ns_ap_dus","ns_ap_ut","ns_ap_oc","ns_ap_uxc","ns_ap_uxs","ns_ap_lang","ns_ap_ar","ns_ap_miss","ns_ts","ns_ap_cfg","ns_st_ca","ns_st_cp","ns_st_er","ca_ns_st_er","cb_ns_st_er","cc_ns_st_er","cd_ns_st_er","ns_st_pe","ns_st_ui","ca_ns_st_ui","cb_ns_st_ui","cc_ns_st_ui","cd_ns_st_ui","ns_st_bc","ns_st_dbc","ns_st_bt","ns_st_dbt","ns_st_bp","ns_st_lt","ns_st_skc","ns_st_dskc","ns_st_ska","ns_st_dska","ns_st_skd","ns_st_skt","ns_st_dskt","ns_st_pc","ns_st_dpc","ns_st_pp","ns_st_br","ns_st_pbr","ns_st_rt","ns_st_prt","ns_st_ub","ns_st_vo","ns_st_pvo","ns_st_ws","ns_st_pws","ns_st_ki","ns_st_rp","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pl","ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_sr","ns_st_ty","ns_st_ct","ns_st_cs","ns_st_ge","ns_st_st","ns_st_stc","ns_st_ce","ns_st_ia","ns_st_dt","ns_st_ddt","ns_st_tdt","ns_st_tm","ns_st_dtm","ns_st_ttm","ns_st_de","ns_st_pu","ns_st_ti","ns_st_cu","ns_st_fee","ns_st_ft","ns_st_at","ns_st_pat","ns_st_vt","ns_st_pvt","ns_st_tt","ns_st_ptt","ns_st_cdn","ns_st_pcdn","ns_st_ami","ns_st_amt","ns_st_ams","ns_ap_i1","ns_ap_i2","ns_ap_i3","ns_ap_i4","ns_ap_i5","ns_ap_i6","ns_ap_referrer","ns_clid","ns_campaign","ns_source","ns_mchannel","ns_linkname","ns_fee","gclid","utm_campaign","utm_source","utm_medium","utm_term","utm_content","ns_ecommerce","ns_ec_sv","ns_client_id","ns_order_id","ns_ec_cur","ns_orderline_id","ns_orderlines","ns_prod_id","ns_qty","ns_prod_price","ns_prod_grp","ns_brand","ns_shop","ns_category","category","ns_c","ns_search_term","ns_search_result","ns_m_exp","ns_m_chs","c3","ca3","cb3","cc3","cd3","c4","ca4","cb4","cc4","cd4","c5","ca5","cb5","cc5","cd5","c6","ca6","cb6","cc6","cd6","c10","c11","c13","c14","c15","c16","c7","c8","c9","ns_ap_er","ns_st_amc"]},f=function(){function e(){function e(){a={},a.ns_st_cl="0",a.ns_st_pn="1",a.ns_st_tp="0",a.ns_st_cn="1",a.ns_st_skd="0",a.ns_st_ci="0",a.c3="*null",a.c4="*null",a.c6="*null",a.ns_st_st="*null",a.ns_st_pu="*null",a.ns_st_pr="*null",a.ns_st_ep="*null",a.ns_st_sn="*null",a.ns_st_en="*null",a.ns_st_ct="*null",s={},r=!1,n=!1,i=o.UNKNOWN_VALUE,l=!0,u=0,d=NaN,v=0,p=0,f=NaN,g=0,m=NaN,_=0,y=0,h=0,T=NaN,b=[],S=[],E=0,w=0,k=0,I=0,A=0,C=0,j=0,P=NaN,x=0,L=0,O=0,D=!1,R=NaN,B=!1,U=0,q=0,N=0,M=0,F=0,V=0,H=0,G=0,z=0,W=0,Y=0,K=0,X=0,Q=0,J=0,Z=!1,$=c.DEFAULT_ASSET_PLAYBACK_RATE}var i,n,r,a,s,l,u,d,f,p,h,v,g,m,y,_,b,S,T,E,w,k,I,A,C,j,P,x,L,O,D,R,N,M,U,B,F,V,q,H,G,z,W,Y,K,X,Q,J,Z,$,ee=this,te=c.INTERVAL_MERGE_TOLERANCE;t.extend(this,{getHash:function(){return i},setHash:function(e){i=e},setPlaybackIntervalMergeTolerance:function(e){te=e},getPlaybackIntervalMergeTolerance:function(){return te},setInternalLabel:function(e,t){a[e]=t},getInternalLabel:function(e){return a[e]},hasInternalLabel:function(e){return null!=a[e]},setLabels:function(e){e&&t.extend(s,e)},getLabels:function(){return s},setLabel:function(e,t){s[e]=t},getLabel:function(e){return s[e]},hasLabel:function(e){return e in s},getClipNumber:function(){return parseInt(ee.getInternalLabel("ns_st_cn"))},setClipNumber:function(e){ee.setInternalLabel("ns_st_cn",e+"")},getPartNumber:function(){return ee.hasLabel("ns_st_pn")?parseInt(ee.getLabel("ns_st_pn")):parseInt(ee.getInternalLabel("ns_st_pn"))},createLabels:function(e,i){var n=e||{},o=t.isEmpty(n.ns_st_pt)?ee.getPlaybackTime():parseInt(n.ns_st_pt);n.ns_st_pt=o+(isNaN(d)?0:i-d)+"",n.ns_st_dpt=o+(isNaN(d)?0:i-d)-p+"",n.ns_st_ipt=o+(isNaN(d)?0:i-d)-h+"";var l=t.isEmpty(n.ns_st_et)?ee.getElapsedTime():parseInt(n.ns_st_et);n.ns_st_et=l+(isNaN(m)?0:i-m)+"",n.ns_st_det=l+(isNaN(m)?0:i-m)-y+"";var u=t.isEmpty(n.ns_st_bt)?ee.getBufferingTime():parseInt(n.ns_st_bt);n.ns_st_bt=u+"",n.ns_st_dbt=u+(isNaN(P)?0:i-P)-x+"";for(var c,f=parseInt(n.ns_st_po),v=t.addNewPlaybackInterval(t.cloneObject(ee.getSegmentPlaybackIntervals()),$<0?f:T,$<0?T:f,te),g=t.addNewPlaybackInterval(t.cloneObject(ee.getAssetPlaybackIntervals()),$<0?f:T,$<0?T:f,te),_=0,b=0,S=0;S<v.length;S++)c=Math.abs(v[S].end-v[S].start),_+=c,c>b&&(b=c);var j=0,L=0;for(S=0,c;S<g.length;S++)c=Math.abs(g[S].end-g[S].start),j+=c,c>L&&(L=c);n.ns_st_upc=_+"",n.ns_st_dupc=_-E+"",n.ns_st_iupc=_-w+"",_>w?n.ns_st_iupc=_-w+"":n.ns_st_iupc="0",n.ns_st_lpc=b+"",n.ns_st_dlpc=b-k+"",n.ns_st_upa=j+"",n.ns_st_dupa=j-I+"",j>A?n.ns_st_iupa=j-A+"":n.ns_st_iupa="0",n.ns_st_lpa=L+"",n.ns_st_dlpa=L-C+"";var D=t.isEmpty(n.ns_st_pc)?ee.getPauses():parseInt(n.ns_st_pc);n.ns_st_pc=D+"",n.ns_st_dpc=D-G+"";var R=t.isEmpty(n.ns_st_skc)?ee.getSeeks():parseInt(n.ns_st_skc);n.ns_st_skc=R+"",n.ns_st_dskc=R-W+"";var N=t.isEmpty(n.ns_st_bc)?ee.getBuffers():parseInt(n.ns_st_bc);n.ns_st_bc=N+"",n.ns_st_dbc=N-O+"";var U=t.isEmpty(n.ns_st_skt)?ee.getSeekingTime():parseInt(n.ns_st_skt);n.ns_st_skt=U+"",n.ns_st_dskt=U-M+"";var B=t.isEmpty(n.ns_st_ska)?ee.getSeekingAmount():parseInt(n.ns_st_ska);return n.ns_st_ska=B+"",n.ns_st_dska=B-V+"",r&&(n.ns_st_spc=Y+"",n.ns_st_apc=K+"",n.ns_st_sq=X+"",n.ns_st_asq=Q+""),r||0!=J?n.ns_st_sc=J+"":n.ns_st_sc="1",n.ns_st_rt=$+"",t.extend(n,a,s),n},updateDeltaLabels:function(e){p=parseInt(e.ns_st_pt),y=parseInt(e.ns_st_et),x=parseInt(e.ns_st_bt),E=parseInt(e.ns_st_upc),k=parseInt(e.ns_st_lpc),I=parseInt(e.ns_st_upa),C=parseInt(e.ns_st_lpa),G=parseInt(e.ns_st_pc),W=parseInt(e.ns_st_skc),O=parseInt(e.ns_st_bc),M=parseInt(e.ns_st_skt),V=parseInt(e.ns_st_ska),ee.setSeekingDirection(0)},updateIndependentLabels:function(e){h=parseInt(e.ns_st_pt),w=parseInt(e.ns_st_upc),A=parseInt(e.ns_st_upa)},getVideoTrack:function(){return ee.getInternalLabel("ns_st_vt")},setVideoTrack:function(e){ee.setInternalLabel("ns_st_vt",e+"")},getAudioTrack:function(){return ee.getInternalLabel("ns_st_at")},setAudioTrack:function(e){ee.setInternalLabel("ns_st_at",e+"")},getSubtitleTrack:function(){return ee.getInternalLabel("ns_st_tt")},setSubtitleTrack:function(e){ee.setInternalLabel("ns_st_tt",e+"")},getCDN:function(){return ee.getInternalLabel("ns_st_cdn")},setCDN:function(e){ee.setInternalLabel("ns_st_cdn",e+"")},getSegmentPlaybackIntervals:function(){return b},setAssetPlaybackIntervals:function(e){b=e},getAssetPlaybackIntervals:function(){return S},incrementPauses:function(){H++},incrementSeeks:function(){z++},incrementPlayCounter:function(){X++},getPlayCounter:function(){return X},getBufferingTime:function(){return j},setBufferingTime:function(e){j=e},addBufferingTime:function(e){if(!isNaN(P)){var t=ee.getBufferingTime();t+=e-P,ee.setBufferingTime(t),P=NaN}},setPlaybackStartPosition:function(e){T=parseInt(e)},getPlaybackStartPosition:function(){return T},addInterval:function(e){isNaN(T)||isNaN(e)||(b=t.addNewPlaybackInterval(b,$<0?e:T,$<0?T:e,te),S=t.addNewPlaybackInterval(S,$<0?e:T,$<0?T:e,te),T=NaN)},getElapsedTime:function(){return g},setElapsedTime:function(e){g=e},addElapsedTime:function(e){if(!isNaN(m)){var t=ee.getElapsedTime();t+=e-m,ee.setElapsedTime(t),m=NaN}},getElapsedTimestamp:function(){return m},setElapsedTimestamp:function(e){m=e},addPlaybackTime:function(e){if(!isNaN(d)){var t=ee.getPlaybackTime();t+=e-d,ee.setPlaybackTime(t),d=NaN}},getPlaybackTime:function(){return u},getExpectedPlaybackPosition:function(e){return isNaN(d)?v:v+Math.floor((e-d)*$/100)},setPlaybackTimeOffset:function(e){v=e},getPlaybackTimeOffset:function(){return v},setPlaybackTime:function(e){u=e},getPlaybackTimestamp:function(){return d},setPlaybackTimestamp:function(e){d=e},setPreviousPlaybackTime:function(e){p=e},setPreviousPlaybackTimestamp:function(e){f=e},getBufferingTimestamp:function(){return P},setBufferingTimestamp:function(e){P=e},getPauses:function(){return H},setPauses:function(e){H=e},getSeeks:function(){return z},setSeeks:function(e){z=e},setSeeking:function(e){D=e},isSeeking:function(){return D},setCollectingSeekingTime:function(e){B=e},isCollectingSeekingTime:function(){return B},setAssetStarted:function(e){n=e},isAssetStarted:function(){return n},setPlaybackStarted:function(e){r=e},isPlaybackStarted:function(){return r},setSeekingTimestamp:function(e){R=e},getSeekingTimestamp:function(){return R},addSeekingTime:function(e){if(!isNaN(R)){var t=ee.getSeekingTime();t+=e-R,ee.setSeekingTime(t),R=NaN}},getSeekingTime:function(){return N},setSeekingTime:function(e){N=e},setSeekingTimeBeforeEnd:function(e){q=e},getSeekingTimeBeforeEnd:function(){return q},setSeekStartPosition:function(e){U=e},getSeekStartPosition:function(){return U},setSeekingAmount:function(e){F=e},getSeekingAmount:function(){return F},addSeekingAmount:function(e){var t=ee.getSeekingAmount();t+=Math.abs(e-U),ee.setSeekingAmount(t);var i;U==e?i=0:U>e?i=-1:U<e&&(i=1),ee.setSeekingDirection(i),U=0},getSeekingDirection:function(){return parseInt(ee.getInternalLabel("ns_st_skd"))},setSeekingDirection:function(e){ee.setInternalLabel("ns_st_skd",e+"")},resetAssetLifecycleLabels:function(){u=0,p=0,h=0,j=0,x=0,L=0,O=0,H=0,G=0,X=0,S=[],I=0,A=0,C=0,g=0,y=0,N=0,M=0,F=0,V=0,z=0,W=0},incrementSegmentPlaybackCounter:function(){Y++},incrementAssetLoadCounter:function(){J++},incrementAssetPlaybackCounter:function(){K++},getPreviousUniquePlaybackInterval:function(){return E},setPreviousUniquePlaybackInterval:function(e){E=e},getPreviousEventIndependentUniquePlaybackInterval:function(){return w},setPreviousEventIndependentUniquePlaybackInterval:function(e){w=e},setPreviousLongestPlaybackInterval:function(e){k=e},getPreviousLongestPlaybackInterval:function(){return k},resetAssetPlaybackIntervals:function(){S=[],I=0,A=0,C=0},setSegmentPlaybackCounter:function(e){Y=e},setAssetLoadCounter:function(e){J=e},setAssetPlaybackCounter:function(e){K=e},setLowestPartNumberPlayed:function(e){_=e},getSegmentPlaybackCounter:function(){return Y},getAssetLoadCounter:function(){return J},getAssetPlaybackCounter:function(){return K},getLowestPartNumberPlayed:function(){return _},getBuffers:function(){return L},incrementBufferCount:function(){L++},getPreviousBufferingTime:function(){return x},setPlaySequenceCounter:function(e){Q=e},incrementPlaySequenceCounter:function(){Q++},getPlaySequenceCounter:function(){return Q},isPlaybackSessionLooping:function(){return Z},setPlaybackSessionLooping:function(e){Z=e},enableAutoCalculatePositions:function(e){l=!!e},isAutoCalculatePositionsEnabled:function(){return l},getPlaybackRate:function(){return $},setPlaybackRate:function(e){$=e}}),e()}return e.resetAsset=function(e,t,i){for(var n=e.getLabels(),r={},a=0;i&&a<i.length;++a)n.hasOwnProperty(i[a])&&(r[i[a]]=n[i[a]]);t.setLabels(r),t.setPlaybackIntervalMergeTolerance(e.getPlaybackIntervalMergeTolerance())},e}(),p=function(){function e(e){function i(){n=new f,o={},o.ns_st_id=+new Date+"",d={},r=NaN,a=0,s=NaN,h={},v=0,p=!1,g=!1,m=0,_=0,y=0,b=1,S=0,T=[]}var n,r,a,s,o,d,p,h,v,g,m,y,_,b,S,T,E=this;t.extend(this,{resetAsset:function(){var e=n;n=new f,f.resetAsset(e,n)},hashExists:function(e){return null!=h[e]},storeHash:function(e){h[e]={}},removeHash:function(e){delete h[e]},storeAssetPlaybackCounters:function(){for(var e in h)if(h.hasOwnProperty(e)&&h[e].clipNumber===n.getClipNumber()){t.extend(h[e],{segmentPlaybackCounter:n.getSegmentPlaybackCounter(),assetLoadCounter:n.getAssetLoadCounter(),assetPlaybackCounter:n.getAssetPlaybackCounter(),lowestPartNumberPlayed:n.getLowestPartNumberPlayed(),seeking:n.isSeeking(),seekingTimeBeforeEnd:n.getSeekingTimeBeforeEnd(),seekingStartPosition:n.getSeekStartPosition(),segmentPlaybackIntervals:n.getSegmentPlaybackIntervals(),videoTrack:n.getVideoTrack(),audioTrack:n.getAudioTrack(),subtitleTrack:n.getSubtitleTrack(),cdn:n.getCDN(),playSequenceCounter:n.getPlaySequenceCounter(),previousUniquePlaybackInterval:n.getPreviousUniquePlaybackInterval(),previousEventIndependentUniquePlaybackInterval:n.getPreviousEventIndependentUniquePlaybackInterval(),previousLongestPlaybackInterval:n.getPreviousLongestPlaybackInterval()});break}},getStoredAssetRegisters:function(e){return h[e]},getClipNumber:function(e){return h[e].clipNumber},getMaxClipNumber:function(){return v},storeClipNumber:function(e,t){h[e].clipNumber=t,t>v&&(v=t)},setLabels:function(e){null!=e&&t.extend(d,e)},getLabels:function(){return d},setLabel:function(e,t){var i={};i[e]=t,E.setLabels(i)},getLabel:function(e){return d[e]},getAsset:function(){return n},addInternalErrorFlag:function(e){for(var t=0;t<T.length;++t)if(T[t]==e)return;T.push(e)},createLabels:function(i,r){var a=i||{},l=t.isEmpty(a.ns_st_pa)?E.getPlaybackTime():parseInt(a.ns_st_pa);return a.ns_st_pa=l+(isNaN(s)?0:r-s)+"",a.ns_st_pp=_+"",a.ns_st_sp=b+"",a.ns_st_bp=S+"",g||(a.ns_st_pb=null!=a.ns_st_pb?a.ns_st_pb:"1"),n.isPlaybackStarted()&&(a.ns_st_ppc=m+"",a.ns_st_psq=y+""),T.length>0&&(a.ns_st_ie=(a.ns_st_ie?a.ns_st_ie+";":"")+T.join(";")),t.extend(a,o,d),e.getPlaybackSession().getAsset().createLabels(a,r),a},incrementPlayCounter:function(){b++},incrementPauses:function(){_++},addPlaybackTime:function(e){if(!isNaN(s)){var t=E.getPlaybackTime();t+=e-s,E.setPlaybackTime(t),s=NaN}},addBufferingTime:function(e){if(!isNaN(r)){var t=E.getBufferingTime();t+=e-r,E.setBufferingTime(t),r=NaN}},getBufferingTime:function(){return S},setBufferingTime:function(e){S=e},getPlaybackTime:function(){return a},setBufferingTimestamp:function(e){r=e},getBufferingTimestamp:function(){return r},setPlaybackTime:function(e){a=e},setPlaybackTimestamp:function(e){s=e},getPlaybackTimestamp:function(){return s},getPauses:function(){return _},setPauses:function(e){_=e},isPlaybackSessionStarted:function(){return p},setPlaybackSessionStarted:function(e){p=e},getPlaybackCounter:function(){return m},incrementPlaybackCounter:function(){m++},setFirstEventSent:function(e){g=e},setPlaySequenceCounter:function(e){y=e},incrementPlaySequenceCounter:function(){y++},getPlaybackSessionID:function(){return o.ns_st_id},setAsset:function(i,n){e.getLogging().apiCall("setAsset",i,n),i=t.jsonObjectToStringDictionary(i);var r=e.getStateMachine().getCurrentState();if(r!=u.IDLE){e.getLogging().infoLog("Ending the current Clip. It was in state:",t.stateToString(r));var a={};e.getStaCore().newEvent(l.END,t.fixEventTime(a),a)}var s="",o=0;if(null!=i.ns_st_cn)s=i.ns_st_cn;else for(var d=0;d<c.STANDARD_METADATA_LABELS.length;d++)i[c.STANDARD_METADATA_LABELS[d]]&&(s+=c.STANDARD_METADATA_LABELS[d]+":"+i[c.STANDARD_METADATA_LABELS[d]]+";");var f=E,p=f.getAsset();p.isAssetStarted()?(f.hashExists(p.getHash())||(f.storeHash(p.getHash()),f.storeClipNumber(p.getHash(),p.getClipNumber())),f.storeAssetPlaybackCounters(),o=f.hashExists(s)?f.getClipNumber(s):t.exists(i.ns_st_cn)?parseInt(i.ns_st_cn):f.getMaxClipNumber()+1):o=f.hashExists(s)?f.getClipNumber(s):p.getClipNumber(),f.resetAsset(),p=f.getAsset(),p.setHash(s),p.setClipNumber(o),p.setLabels(i);var h=f.getStoredAssetRegisters(s);h&&(p.setAssetStarted(!0),p.setSegmentPlaybackCounter(h.segmentPlaybackCounter),p.setAssetLoadCounter(h.assetLoadCounter),p.setAssetPlaybackCounter(h.assetPlaybackCounter),p.setLowestPartNumberPlayed(h.lowestPartNumberPlayed),p.setSeeking(h.seeking),p.setSeekingTimeBeforeEnd(h.seekingTimeBeforeEnd),p.setSeekStartPosition(h.seekingStartPosition),p.setAssetPlaybackIntervals(h.segmentPlaybackIntervals),h.videoTrack&&p.setVideoTrack(h.videoTrack),h.audioTrack&&p.setAudioTrack(h.audioTrack),h.subtitleTrack&&p.setSubtitleTrack(h.subtitleTrack),h.cdn&&p.setCDN(h.cdn),p.setPlaySequenceCounter(h.playSequenceCounter),p.setPreviousUniquePlaybackInterval(h.previousUniquePlaybackInterval),p.setPreviousEventIndependentUniquePlaybackInterval(h.previousEventIndependentUniquePlaybackInterval),p.setPreviousLongestPlaybackInterval(h.previousLongestPlaybackInterval)),p.incrementAssetLoadCounter(),p.isAssetStarted()&&n&&f.incrementPlayCounter(),n&&(f.setPlaySequenceCounter(0),p.setPlaybackSessionLooping(!0)),!t.exists(i.ns_st_tp)&&t.exists(i.ns_st_ad)&&t.isNotEmpty(i.ns_st_ad)&&"0"!==i.ns_st_ad&&p.setInternalLabel("ns_st_tp","1")}}),i()}return e.resetPlaybackSession=function(e,t,i){for(var n=t.getAsset(),r=t.getLabels(),a={},s=0;i&&s<i.length;s++)r.hasOwnProperty(i[s])&&(a[i[s]]=r[i[s]]);e.getPlaybackSession().setLabels(a),f.resetAsset(n,e.getPlaybackSession().getAsset(),i)},e}(),h=function(){return function(e){function i(){r=1}function n(i){a=t.extend({},i);var n=e.getStaCore().getLiveEndpointURL();if(e.getAppCore()){if(e.getStaCore().isProperlyInitialized()){var r=e.getStaCore().getExports().et;if("function"==typeof e.getAppCore().getMeasurementDispatcher){var s=e.getAppCore().getMeasurementDispatcher();s.send(r.HIDDEN,i,n)}else{var o=e.getStaCore().getExports().am,l=o.newApplicationMeasurement(e.getAppCore(),r.HIDDEN,i,n);e.getAppCore().getQueue().offer(l)}}}else n&&e.getStaCore().getPlatformAPI().httpGet(e.getStaCore().prepareUrl(n,i))}var r,a,s=this,o=[];t.extend(this,{newEvent:function(e){for(var t=0;t<o.length;++t)o[t](e.eventLabels);n(e.eventLabels),e.eventType!=l.HEARTBEAT&&s.incrementEventCounter()},addMeasurementListener:function(e){"function"==typeof e&&o.push(e)},removeMeasurementListener:function(e){for(var t=NaN,i=0;i<o.length;++i)if(o[i]==e){t=i;break}isNaN(t)||o.splice(t,1)},getEventCounter:function(){return r},incrementEventCounter:function(){r++},setEventCounter:function(e){r=e},getMeasurementSnapshot:function(){return a}}),i()}}(),v=function(){return function(e){function i(){s=0,o=0}function n(){o++;var i={},n=t.fixEventTime(i);i.ns_st_hc=e.getHeartbeat().getCount()+"";var r=e.getStaCore().createLabels(l.HEARTBEAT,i,n);e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),s=0,u.resume()}function r(){null!=a&&(e.getStaCore().getPlatformAPI().clearTimeout(a),a=null)}var a,s,o,u=this,d=c.DEFAULT_HEARTBEAT_INTERVAL;t.extend(this,{getCount:function(){return o},setIntervals:function(e){d=e},getInterval:function(e){var t=0;if(null!=d)for(var i=0;i<d.length;i++){var n=d[i],r=n.playingtime;if(!r||e<r){t=n.interval;break}}return t},getIntervals:function(){return d},resume:function(){r();var t=u.getInterval(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()));if(t>0){var i=s>0?s:t;a=e.getStaCore().getPlatformAPI().setTimeout(n,i)}s=0},pause:function(){r();var t=u.getInterval(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()));s=t-(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()))%t}}),i()}}(),g=function(){return function(e){function i(){}function n(){var i={},n=t.fixEventTime(i);e.getStaCore().newPseudoEvent(l.KEEPALIVE,n,i),s.start()}function r(){null!=a&&(e.getStaCore().getPlatformAPI().clearTimeout(a),a=null)}var a,s=this,o=c.DEFAULT_KEEP_ALIVE_INTERVAL;t.extend(s,{start:function(){r(),a=e.getStaCore().getPlatformAPI().setTimeout(n,o)},stop:r,setInterval:function(e){o=e},getInterval:function(){return o}}),i()}}(),m=function(){return function(e){function i(){a=u.IDLE,r=null,n=NaN}var n,r,a,s=this;t.extend(s,{eventTypeToState:function(e){if(a==u.IDLE){if(e==l.PLAY)return u.PLAYING;if(e==l.SEEK_START)return u.SEEKING_BEFORE_PLAYBACK;if(e==l.BUFFER)return u.BUFFERING_BEFORE_PLAYBACK}else if(a==u.PLAYBACK_NOT_STARTED){if(e==l.PLAY)return u.PLAYING;if(e==l.SEEK_START)return u.SEEKING_BEFORE_PLAYBACK;if(e==l.BUFFER)return u.BUFFERING_BEFORE_PLAYBACK;if(e==l.END||e==l.AD_SKIP)return u.IDLE}else if(a==u.PLAYING){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.BUFFER)return u.BUFFERING_DURING_PLAYBACK;if(e==l.PAUSE)return u.PAUSED;if(e==l.SEEK_START)return u.SEEKING_DURING_PLAYBACK}else if(a==u.PAUSED){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.BUFFER)return u.BUFFERING_DURING_PAUSE;if(e==l.PLAY)return u.PLAYING;if(e==l.SEEK_START)return u.SEEKING_DURING_PAUSE}else if(a==u.BUFFERING_BEFORE_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PAUSE||e==l.BUFFER_STOP)return u.PLAYBACK_NOT_STARTED;if(e==l.PLAY)return u.PLAYING;if(e==l.SEEK_START)return u.SEEKING_BEFORE_PLAYBACK}else if(a==u.BUFFERING_DURING_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY||e==l.BUFFER_STOP)return u.PLAYING;if(e==l.PAUSE_ON_BUFFERING)return u.PAUSED_DURING_BUFFERING;if(e==l.SEEK_START)return u.SEEKING_DURING_BUFFERING;if(e==l.PAUSE)return u.PAUSED}else if(a==u.BUFFERING_DURING_SEEKING){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY)return u.PLAYING;if(e==l.BUFFER_STOP)return u.SEEKING_DURING_PLAYBACK;if(e==l.PAUSE)return u.PAUSED}else if(a==u.BUFFERING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY)return u.PLAYING;if(e==l.SEEK_START)return u.SEEKING_DURING_PAUSE;if(e==l.BUFFER_STOP||e==l.PAUSE)return u.PAUSED}else if(a==u.SEEKING_BEFORE_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PAUSE)return u.PLAYBACK_NOT_STARTED;if(e==l.PLAY)return u.PLAYING;if(e==l.BUFFER)return u.BUFFERING_BEFORE_PLAYBACK}else if(a==u.SEEKING_DURING_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY)return u.PLAYING;if(e==l.PAUSE)return u.PAUSED;if(e==l.BUFFER)return u.BUFFERING_DURING_SEEKING}else if(a==u.SEEKING_DURING_BUFFERING){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY)return u.PLAYING;if(e==l.PAUSE||e==l.BUFFER_STOP)return u.PAUSED;if(e==l.BUFFER)return u.BUFFERING_DURING_SEEKING}else if(a==u.SEEKING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.PLAY)return u.PLAYING;if(e==l.PAUSE||e==l.BUFFER_STOP)return u.PAUSED;if(e==l.BUFFER)return u.BUFFERING_DURING_PAUSE}else if(a==u.PAUSED_DURING_BUFFERING){if(e==l.END||e==l.AD_SKIP)return u.IDLE;if(e==l.SEEK_START)return u.SEEKING_DURING_BUFFERING;if(e==l.PAUSE)return u.PAUSED;if(e==l.PLAY||e==l.BUFFER_STOP)return u.PLAYING}return null},getCurrentState:function(){return a},newEvent:function(e,t){var i=s.eventTypeToState(e);a!=i&&(r=a,a=i,n=t)},getPreviousState:function(){return r},getLastStateChangeTimestamp:function(){return n}}),i()}}(),y=function(){return function(e){var i=this;t.extend(i,{onSeekStartWhenPausedOrBufferingDuringPause:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferWhenSeekingOrPaused:function(t,i){e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlayWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)},onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause:function(t,i){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause:function(i,n){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,i){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferStopOrOnPlayWhenBufferingDuringPlayback:function(t,i){var n=parseInt(i.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getHeartbeat().resume(),e.getKeepAlive().start()}})}}(),_=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getPlaybackSession().addBufferingTime(i),e.getPlaybackSession().getAsset().addBufferingTime(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPause:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getStaCore().isLoadingTimeSent()||(i.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),b=function(){return function(e){var i=this;t.extend(i,{onEndAndSkip:function(i,n){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(i),e.getPlaybackSession().getAsset().addBufferingTime(i),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),S=function(){return function(e){var i=this;t.extend(i,{onPauseOnBuffering:function(t,i){parseInt(i.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var n=e.getStaCore().createLabels(l.PAUSE,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(n.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(n.eventLabels),e.getEventManager().newEvent(n),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onEndOrAdSkip:function(i,n){parseInt(n.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(i),e.getPlaybackSession().getAsset().addBufferingTime(i),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var r=e.getStaCore().createLabels(l.PAUSE,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)},onPause:function(t,i){parseInt(i.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var n=e.getStaCore().createLabels(l.PAUSE,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(n.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(n.eventLabels),e.getEventManager().newEvent(n)}})}}(),T=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().addBufferingTime(i),e.getPlaybackSession().getAsset().addBufferingTime(i),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),E=function(){return function(e){var i=this;t.extend(i,{onBuffer:function(t,i){e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getStaCore().isLoadingTimeSent()||(i.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),w=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),k=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(i),e.getPlaybackSession().getAsset().addBufferingTime(i),e.getPlaybackSession().getAsset().addElapsedTime(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1));var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPause:function(t,i){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),I=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().setSeekingTimestamp(t):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().setPlaybackSessionStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getStaCore().isLoadingTimeSent()||(i.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)},onBuffer:function(){e.getPlaybackSession().setBufferingTimestamp(eventTimestamp),e.getPlaybackSession().getAsset().setBufferingTimestamp(eventTimestamp)}})}}(),A=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){var r=parseInt(n.ns_st_po);e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(i),e.getPlaybackSession().getAsset().addPlaybackTime(i),e.getPlaybackSession().getAsset().addElapsedTime(i),e.getPlaybackSession().getAsset().addInterval(r);var a=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(a.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(a.eventLabels),e.getEventManager().newEvent(a),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBuffer:function(t,i){var n=parseInt(i.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(n),e.getStaCore().isPauseOnBufferingEnabled()&&e.getStaCore().startPausedOnBufferingTimer(t,i),e.getPlaybackSession().getAsset().incrementBufferCount(),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onSeekStart:function(t,i){var n=parseInt(i.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(n),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(n),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var r=e.getStaCore().createLabels(l.PAUSE,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)},onPause:function(t,i){var n=parseInt(i.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(n),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var r=e.getStaCore().createLabels(l.PAUSE,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),C=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,i){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getStaCore().isLoadingTimeSent()||(i.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),j=function(){return function(e){var i=this;t.extend(i,{onPause:function(t,i){e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)}})}}(),P=function(){return function(e){var i=this;t.extend(i,{onEndOrAdSkip:function(i,n){parseInt(n.ns_st_po);e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(i);var r=e.getStaCore().createLabels(l.END,n,i);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(i-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&t.parseBoolean(n.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,i){var n=parseInt(i.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(n),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(n),e.getStaCore().isLoadingTimeSent()||(i.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var r=e.getStaCore().createLabels(l.PLAY,i,t);e.getPlaybackSession().getAsset().updateDeltaLabels(r.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(r.eventLabels),e.getEventManager().newEvent(r)}})}}(),x=function(){return function(e){function n(){if(x=new L(re),t.getNamespace().comScore?(ae=t.getNamespace().comScore.exports,x.setAppCore(ae.c())):x.setAppCore(null),e.publisherId){re.setLabel("c2",e.publisherId);var n=e.secure;!n&&x.getAppCore()?n=x.getAppCore().isSecure():!n&&t.isBrowser()&&(n=t.isWebSecure());var r=(n?"https://sb":"http://b")+".scorecardresearch.com/p?c1=2";re.setLiveEndpointURL(r)}e.liveEndpointURL&&re.setLiveEndpointURL(e.liveEndpointURL),x.setKeepAlive(new g(x)),x.setHeartbeat(new v(x)),x.setEventManager(new h(x)),x.setStateMachine(new m),x.setLogging(new i(c.LOG_NAMESPACE,e.debug)),x.setPlaybackSession(new p(x)),O=new E(x),D=new w(x),R=new I(x),N=new A(x),M=new _(x),U=new S(x),B=new T(x),F=new b(x),V=new k(x),q=new C(x),H=new j(x),G=new P(x),z=new y(x),W=!1,Y=0,K=+new Date,Q=!0,Z=!1,ee=[],e.systemClockJumpDetection&&re.enableSystemClockJumpsDetection(parseInt(e.systemClockJumpDetectionInterval))}function r(e){var t=x.getStateMachine().getCurrentState();if(t==u.IDLE||t==u.PLAYBACK_NOT_STARTED||t==u.BUFFERING_BEFORE_PLAYBACK||t==u.SEEKING_BEFORE_PLAYBACK){if(e==l.PLAY)return!0}else if(t==u.PLAYING){if(e==l.END||e==l.AD_SKIP||e==l.SEEK_START||e==l.PAUSE)return!0}else if(t==u.PAUSED||t==u.BUFFERING_DURING_PAUSE||t==u.SEEKING_DURING_PLAYBACK||t==u.SEEKING_DURING_BUFFERING||t==u.SEEKING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP||e==l.PLAY)return!0}else if(t==u.BUFFERING_DURING_PLAYBACK){if(e==l.PAUSE_ON_BUFFERING||e==l.END||e==l.AD_SKIP||e==l.SEEK_START||e==l.PAUSE||e==l.PLAY)return!0}else if(t==u.BUFFERING_DURING_SEEKING){if(e==l.END||e==l.AD_SKIP||e==l.PAUSE||e==l.PLAY)return!0}else if(t==u.PAUSED_DURING_BUFFERING&&(e==l.END||e==l.AD_SKIP||e==l.BUFFER_STOP||e==l.PLAY))return!0;return!1}function a(e,t,i){var n=x.getStateMachine().getCurrentState();e==l.AD_SKIP&&!i.hasOwnProperty("ns_st_ui")&&r(e)?i.ns_st_ui="skip":e==l.SEEK_START&&!i.hasOwnProperty("ns_st_ui")&&r(e)&&(i.ns_st_ui="seek"),n==u.IDLE?e==l.BUFFER?O.onBuffer(t,i):e==l.SEEK_START?O.onSeekStart(t,i):e==l.PLAY&&O.onPlay(t,i):n==u.PLAYBACK_NOT_STARTED?e==l.END||e==l.AD_SKIP?R.onEndOrAdSkip(t,i):e==l.SEEK_START?R.onSeekStart(t,i):e==l.PLAY?R.onPlay(t,i):e==l.BUFFER&&R.onBuffer(t,i):n==u.PLAYING?e==l.END||e==l.AD_SKIP?N.onEndOrAdSkip(t,i):e==l.BUFFER?N.onBuffer(t,i):e==l.SEEK_START?N.onSeekStart(t,i):e==l.PAUSE&&N.onPause(t,i):n==u.PAUSED?e==l.END||e==l.AD_SKIP?D.onEndOrAdSkip(t,i):e==l.PLAY?D.onPlay(t,i):e==l.BUFFER?z.onBufferWhenSeekingOrPaused(t,i):e==l.SEEK_START&&z.onSeekStartWhenPausedOrBufferingDuringPause(t,i):n==u.BUFFERING_BEFORE_PLAYBACK?e==l.END||e==l.AD_SKIP?M.onEndOrAdSkip(t,i):e==l.BUFFER_STOP?M.onBufferStop(t,i):e==l.SEEK_START?M.onSeekStart(t,i):e==l.PAUSE?M.onPause(t,i):e==l.PLAY&&M.onPlay(t,i):n==u.BUFFERING_DURING_PLAYBACK?e==l.PAUSE_ON_BUFFERING?U.onPauseOnBuffering(t,i):e==l.BUFFER_STOP?z.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,i):e==l.END||e==l.AD_SKIP?U.onEndOrAdSkip(t,i):e==l.SEEK_START?U.onSeekStart(t,i):e==l.PAUSE?U.onPause(t,i):e==l.PLAY&&z.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,i):n==u.BUFFERING_DURING_SEEKING?e==l.END||e==l.AD_SKIP?B.onEndOrAdSkip(t,i):e==l.PAUSE?B.onPause(t,i):e==l.PLAY?B.onPlay(t,i):e==l.BUFFER_STOP&&z.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,i):n==u.BUFFERING_DURING_PAUSE?e==l.END||e==l.AD_SKIP?F.onEndAndSkip(t,i):e==l.PAUSE?F.onPause(t,i):e==l.PLAY?F.onPlay(t,i):e==l.SEEK_START?z.onSeekStartWhenPausedOrBufferingDuringPause(t,i):e==l.BUFFER_STOP&&z.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,i):n==u.SEEKING_BEFORE_PLAYBACK?e==l.END||e==l.AD_SKIP?q.onEndOrAdSkip(t,i):e==l.PAUSE?q.onPause(t,i):e==l.PLAY?q.onPlay(t,i):e==l.BUFFER&&z.onBufferWhenSeekingOrPaused(t,i):n==u.SEEKING_DURING_PLAYBACK?e==l.END||e==l.AD_SKIP?G.onEndOrAdSkip(t,i):e==l.PLAY?G.onPlay(t,i):e==l.BUFFER?z.onBufferWhenSeekingOrPaused(t,i):e==l.PAUSE&&z.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,i):n==u.SEEKING_DURING_BUFFERING?e==l.PAUSE?H.onPause(t,i):e==l.BUFFER?z.onBufferWhenSeekingOrPaused(t,i):e==l.PLAY?z.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,i):e==l.END||e==l.AD_SKIP?z.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,i):e==l.BUFFER_STOP&&z.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,i):n==u.PAUSED_DURING_BUFFERING?e==l.END||e==l.AD_SKIP?V.onEndOrAdSkip(t,i):e==l.BUFFER_STOP?V.onBufferStop(t,i):e==l.SEEK_START?V.onSeekStart(t,i):e==l.PAUSE?V.onPause(t,i):e==l.PLAY&&V.onPlay(t,i):n==u.SEEKING_DURING_PAUSE&&(e==l.BUFFER?z.onBufferWhenSeekingOrPaused(t,i):e==l.PLAY?z.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,i):e==l.PAUSE?z.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,i):e==l.END||e==l.AD_SKIP?z.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,i):e==l.BUFFER_STOP&&z.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,i)),r(e)&&x.getPlaybackSession().setFirstEventSent(!0)}function f(e,i){for(var n,r=de.encodeURIComponent||escape,a=[],s=c.LABELS_ORDER,o=e.split("?"),l=o[0],u=o[1],d=u.split("&"),f=0,p=d.length;f<p;f++){var h=d[f].split("="),v=unescape(h[0]),g=unescape(h[1]);v&&(i[v]=g)}for(var m={},y=0,_=s.length;y<_;y++){var b=s[y];if(i.hasOwnProperty(b)){var S=i[b];"undefined"!=typeof S&&null!=S&&(m[b]=!0,a.push(r(b)+"="+r(i[b])))}}for(var T in i)if(i.hasOwnProperty(T)){if(m[T])continue;var E=i[T];"undefined"!=typeof E&&null!=E&&a.push(r(T)+"="+r(i[T]))}n=l+"?"+a.join("&"),n=n+(n.indexOf("&c8=")<0?"&c8="+r(ce.title):"")+(n.indexOf("&c7=")<0?"&c7="+r(ce.URL):"")+(n.indexOf("&c9=")<0?"&c9="+r(ce.referrer):"");var w=t.browserAcceptsLargeURLs()?c.URL_LENGTH_LIMIT:c.RESTRICTED_URL_LENGTH_LIMIT;if(n.length>w&&n.indexOf("&")>0){var k=n.substr(0,w-8).lastIndexOf("&");n=(n.substring(0,k)+"&ns_cut="+r(n.substring(k+1))).substr(0,w)}return n}var x,O,D,R,N,M,U,B,F,V,q,H,G,z,W,Y,K,X,Q,J,Z,$,ee,te,ie,ne,re=this,ae={},se=c.DEFAULT_PAUSED_ON_BUFFERING_INTERVAL,oe=c.THROTTLING_DELAY,le={},ue=!1;t.extend(re,{getConfiguration:function(){return e||{}},enableSystemClockJumpsDetection:function(e){(e<c.SYSTEM_CLOCK_JUMP_DETECTION_MINIMUM_INTERVAL||!e)&&(e=c.SYSTEM_CLOCK_JUMP_DETECTION_DEFAULT_INTERVAL),t.onSystemClockJump(function(e){ne=e,ue=!0},e)},createLabels:function(e,i,n){var r=!1;if(e==l.HEARTBEAT){var a=isNaN(X)?K:X;X=n,(n<a||ue)&&(r=!0,ue=!1,n<a?(x.getPlaybackSession().addInternalErrorFlag("1"),x.getLogging().infoLog("System clock jump detected","to the far past")):ne?(x.getPlaybackSession().addInternalErrorFlag("3"),x.getLogging().infoLog("System clock jump detected","to the future")):(x.getPlaybackSession().addInternalErrorFlag("2"),x.getLogging().infoLog("System clock jump detected","to the near past")),n=a)}var s={};if("undefined"!=typeof document){var o=document;s.c7=o.URL,s.c8=o.title,s.c9=o.referrer}return s.ns_ts=+new Date+"",s.ns_st_ev=l.toString(e),s.ns_st_mp=c.DEFAULT_PLAYERNAME,s.ns_st_mv=c.STREAMINGANALYTICS_VERSION,s.ns_st_ub="0",s.ns_st_br="0",s.ns_st_pn="1",s.ns_st_tp="0",s.ns_st_it=d.toString(d.SINGLE_CLIP),s.ns_st_sv=c.STREAMINGANALYTICS_VERSION,s.ns_st_smv=c.MODEL_VERSION,s.ns_type="hidden",s.ns_st_ec=x.getEventManager().getEventCounter()+"",s.ns_st_ki=x.getKeepAlive().getInterval()+"",x.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?s.ns_st_po=x.getPlaybackSession().getAsset().getExpectedPlaybackPosition(n)+"":s.ns_st_po=ie+"",ie=parseInt(s.ns_st_po),t.extend(s,re.getLabels()),x.getPlaybackSession().createLabels(s,n),t.extend(s,i),r&&(x.getPlaybackSession().setPlaybackTimestamp(X-parseInt(s.ns_st_pt)),x.getPlaybackSession().getAsset().setPlaybackTimestamp(X-parseInt(s.ns_st_pt)),x.getPlaybackSession().getAsset().setElapsedTimestamp(X-parseInt(s.ns_st_et)),x.getStateMachine().getCurrentState()==u.BUFFERING_DURING_PLAYBACK&&x.getPlaybackSession().getAsset().setBufferingTimestamp(X-parseInt(s.ns_st_bp))),{eventType:e,eventLabels:s}},newEvent:function(e,i,n,r){re.stopDelayedTransitionTimer();var s=x.getStateMachine().getCurrentState(),o=x.getStateMachine().eventTypeToState(e);if(null==o||o==s)return void x.getLogging().infoLog("Ignored event:",l.toString(e),"during state",t.stateToString(s),n);if(re.isThrottlingEnabled()&&(s==u.PLAYING||s==u.PAUSED)&&(o==u.PLAYING||o==u.PAUSED)&&!r){x.getLogging().infoLog("Throttled event:",l.toString(e),"during state",t.stateToString(s),n,re.getThrottlingDelay(),"ms");var d=function(e,t,n){return function(){re.newEvent(e,i,n,!0)}}(e,o,n);return void($=x.getPlatformAPI().setTimeout(d,re.getThrottlingDelay()))}var c=isNaN(X)?K:X;X=i;var f=!1;(i<c||ue)&&(f=!0,ue=!1,i<c?(x.getPlaybackSession().addInternalErrorFlag("1"),x.getLogging().infoLog("System clock jump detected","to the far past")):ne?(x.getPlaybackSession().addInternalErrorFlag("3"),x.getLogging().infoLog("System clock jump detected","to the future")):(x.getPlaybackSession().addInternalErrorFlag("2"),x.getLogging().infoLog("System clock jump detected","to the near past")),i=c),n.ns_st_po||(x.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?x.getStateMachine().getCurrentState()==u.IDLE?n.ns_st_po="0":n.ns_st_po=x.getPlaybackSession().getAsset().getExpectedPlaybackPosition(i)+"":n.ns_st_po=ie+""),ie=parseInt(n.ns_st_po),x.getPlaybackSession().getAsset().setPlaybackTimeOffset(parseInt(n.ns_st_po)),a(e,i,n);var p=0;isNaN(x.getStateMachine().getLastStateChangeTimestamp())||(p=i-x.getStateMachine().getLastStateChangeTimestamp()),x.getStateMachine().newEvent(e,i),f&&(o!=u.IDLE&&o!=u.PLAYBACK_NOT_STARTED&&o!=u.SEEKING_BEFORE_PLAYBACK&&o!=u.BUFFERING_BEFORE_PLAYBACK&&x.getPlaybackSession().getAsset().setElapsedTimestamp(X),o!=u.BUFFERING_BEFORE_PLAYBACK&&o!=u.BUFFERING_DURING_PAUSE&&o!=u.BUFFERING_DURING_PLAYBACK&&o!=u.BUFFERING_DURING_SEEKING&&o!=u.PAUSED_DURING_BUFFERING||(x.getPlaybackSession().setBufferingTimestamp(X),x.getPlaybackSession().getAsset().setBufferingTimestamp(X)),o!=u.PLAYING&&o!=u.BUFFERING_DURING_PLAYBACK||(x.getPlaybackSession().setPlaybackTimestamp(X),x.getPlaybackSession().getAsset().setPlaybackTimestamp(X)),o!=u.SEEKING_BEFORE_PLAYBACK&&o!=u.SEEKING_DURING_BUFFERING&&o!=u.SEEKING_DURING_PAUSE&&o!=u.SEEKING_DURING_PLAYBACK&&o!=u.BUFFERING_DURING_SEEKING||x.getPlaybackSession().getAsset().setSeekingTimestamp(X)),x.getLogging().log("Transition from",t.stateToString(s),"to",t.stateToString(o),"due to event:",l.toString(e));for(var h=0,v=ee.length;h<v;h++)ee[h](s,o,n,p)},newPseudoEvent:function(e,i,n){if((e==l.LOAD||e==l.ENGAGE)&&x.getStateMachine().getCurrentState()!=u.IDLE)return void x.getLogging().infoLog("Ignored pseudo-event:",l.toString(e),"during state",t.stateToString(x.getStateMachine().getCurrentState()),n);e==l.ERROR&&null==n.ns_st_er&&(n.ns_st_er=o.UNKNOWN_VALUE),e==l.TRANSFER&&null==n.ns_st_rp&&(n.ns_st_rp=o.UNKNOWN_VALUE);var r,a,s,d,c=!0,f=!1;switch(e){case l.BIT_RATE:r="ns_st_br",a="ns_st_pbr";break;case l.PLAYBACK_RATE:r="ns_st_rt",a="ns_st_prt";break;case l.VOLUME:r="ns_st_vo",a="ns_st_pvo";break;case l.WINDOW_STATE:r="ns_st_ws",a="ns_st_pws";break;case l.AUDIO:r="ns_st_at",a="ns_st_pat";break;case l.VIDEO:r="ns_st_vt",a="ns_st_pvt";break;case l.SUBS:r="ns_st_tt",a="ns_st_ptt";break;case l.CDN:r="ns_st_cdn",a="ns_st_pcdn";break;default:c=!1}if(c&&r in n)switch(d=n[r],e){case l.BIT_RATE:case l.VOLUME:case l.WINDOW_STATE:r in le&&(s=le[r],n[a]=s,f=d==s+""),le[r]=n[r];break;case l.AUDIO:case l.VIDEO:case l.SUBS:case l.CDN:x.getPlaybackSession().getAsset().hasInternalLabel(r)&&(s=x.getPlaybackSession().getAsset().getInternalLabel(r),n[a]=s,f=d==s+""),x.getPlaybackSession().getAsset().setInternalLabel(r,n[r]);break;case l.PLAYBACK_RATE:s=x.getPlaybackSession().getAsset().getPlaybackRate(),n[a]=s+""}if(c&&x.getStateMachine().getCurrentState()!=u.PLAYING&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PLAYBACK||c&&f)return e==l.PLAYBACK_RATE&&x.getPlaybackSession().getAsset().setPlaybackRate(parseInt(n.ns_st_rt)),void x.getLogging().infoLog("No measurement send for the pseudo-event:",l.toString(e),"during state",t.stateToString(x.getStateMachine().getCurrentState()),n);var p=isNaN(X)?K:X;X=i;var h=!1;(i<p||ue)&&(h=!0,ue=!1,i<p?(x.getPlaybackSession().addInternalErrorFlag("1"),x.getLogging().infoLog("System clock jump detected","to the far past")):ne?(x.getPlaybackSession().addInternalErrorFlag("3"),x.getLogging().infoLog("System clock jump detected","to the future")):(x.getPlaybackSession().addInternalErrorFlag("2"),x.getLogging().infoLog("System clock jump detected","to the near past")),i=p),n.ns_st_po||(x.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?n.ns_st_po=x.getPlaybackSession().getAsset().getExpectedPlaybackPosition(i)+"":n.ns_st_po=ie+""),ie=parseInt(n.ns_st_po),x.getPlaybackSession().getAsset().setPlaybackTimeOffset(parseInt(n.ns_st_po)),x.getStateMachine().getCurrentState()!=u.IDLE&&x.getStateMachine().getCurrentState()!=u.PLAYBACK_NOT_STARTED&&x.getStateMachine().getCurrentState()!=u.SEEKING_BEFORE_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_BEFORE_PLAYBACK&&(x.getPlaybackSession().getAsset().addElapsedTime(i),x.getPlaybackSession().getAsset().setElapsedTimestamp(i)),x.getStateMachine().getCurrentState()!=u.PLAYING&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PLAYBACK||(x.getPlaybackSession().addPlaybackTime(i),x.getPlaybackSession().setPlaybackTimestamp(i),x.getPlaybackSession().getAsset().addPlaybackTime(i),x.getPlaybackSession().getAsset().setPlaybackTimestamp(i),x.getPlaybackSession().getAsset().addInterval(parseInt(n.ns_st_po)),x.getPlaybackSession().getAsset().setPlaybackStartPosition(parseInt(n.ns_st_po))),x.getStateMachine().getCurrentState()!=u.BUFFERING_BEFORE_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PAUSE&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_SEEKING||(x.getPlaybackSession().addBufferingTime(i),x.getPlaybackSession().setBufferingTimestamp(i),x.getPlaybackSession().getAsset().addBufferingTime(i),x.getPlaybackSession().getAsset().setBufferingTimestamp(i));var v=re.createLabels(e,n,i);x.getPlaybackSession().getAsset().updateDeltaLabels(v.eventLabels),x.getPlaybackSession().getAsset().updateIndependentLabels(v.eventLabels),x.getEventManager().newEvent(v),e==l.PLAYBACK_RATE&&x.getPlaybackSession().getAsset().setPlaybackRate(parseInt(n.ns_st_rt)),h&&(x.getStateMachine().getCurrentState()!=u.PLAYING&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PLAYBACK||(x.getPlaybackSession().setPlaybackTimestamp(X),x.getPlaybackSession().getAsset().setPlaybackTimestamp(X)),x.getStateMachine().getCurrentState()!=u.IDLE&&x.getStateMachine().getCurrentState()!=u.PLAYBACK_NOT_STARTED&&x.getStateMachine().getCurrentState()!=u.SEEKING_BEFORE_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_BEFORE_PLAYBACK&&x.getPlaybackSession().getAsset().setElapsedTimestamp(X),x.getStateMachine().getCurrentState()!=u.BUFFERING_BEFORE_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PAUSE&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_SEEKING&&x.getStateMachine().getCurrentState()!=u.PAUSED_DURING_BUFFERING||(x.getPlaybackSession().setBufferingTimestamp(X),x.getPlaybackSession().getAsset().setBufferingTimestamp(X)),x.getStateMachine().getCurrentState()!=u.SEEKING_BEFORE_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.SEEKING_DURING_BUFFERING&&x.getStateMachine().getCurrentState()!=u.SEEKING_DURING_PAUSE&&x.getStateMachine().getCurrentState()!=u.SEEKING_DURING_PLAYBACK&&x.getStateMachine().getCurrentState()!=u.BUFFERING_DURING_SEEKING||x.getPlaybackSession().getAsset().setSeekingTimestamp(X))},getState:function(){return x.getStateMachine().getCurrentState()},addListener:function(e){ee.push(e)},removeListener:function(e){ee.splice(t.indexOf(e,ee),1)},getLabel:function(e){return le[e]},getLabels:function(){return le},setLabel:function(e,t){null==t?delete le[e]:le[e]=t},setLabels:function(e){for(var t in e)e.hasOwnProperty(t)&&re.setLabel(t,e[t])},getPlatformAPI:function(){return x.getAppCore()?x.getAppCore().getPlatformAPI():s},getExports:function(){return ae},isProperlyInitialized:function(){var e=x.getAppCore().getAppContext(),t=x.getAppCore().getSalt(),i=x.getAppCore().getPixelURL();return e&&i&&t},setThrottlingDelay:function(e){oe=e},getThrottlingDelay:function(){return oe},isThrottlingEnabled:function(){return Z},setThrottlingEnabled:function(e){Z=e},isLoadingTimeSent:function(){return W},setLoadingTimeSent:function(e){W=e},getLoadTimeOffset:function(){return Y},setLoadTimeOffset:function(e){Y=e},getInitTimestamp:function(){return K},setPauseOnBufferingInterval:function(e){se=e},getPauseOnBufferingInterval:function(){return se},isPauseOnBufferingEnabled:function(){return Q},setPauseOnBufferingEnabled:function(e){Q=e},startPausedOnBufferingTimer:function(e,i){re.stopPausedOnBufferingTimer(),J=re.getPlatformAPI().setTimeout(function(){var e={},n=t.fixEventTime(e),r=parseInt(i.ns_st_po);e.ns_st_po=r+"",re.newEvent(l.PAUSE_ON_BUFFERING,n,e)},se)},stopPausedOnBufferingTimer:function(){null!=J&&(re.getPlatformAPI().clearTimeout(J),J=null)},stopDelayedTransitionTimer:function(){$&&(re.getPlatformAPI().clearTimeout($),$=null)},setLiveEndpointURL:function(e){if(null==e||0==e.length)return null;var t=decodeURIComponent||unescape,i=e.indexOf("?");if(i>=0){if(i<e.length-1){for(var n=e.substring(i+1).split("&"),r=0,a=n.length;r<a;r++){var s=n[r],o=s.split("=");2==o.length?re.setLabel(o[0],t(o[1])):1==o.length&&re.setLabel(c.PAGE_NAME_LABEL,t(o[0]))}e=e.substring(0,i+1)}}else e+="?";return te=e},getLiveEndpointURL:function(){return te?te:"undefined"!=typeof ns_p&&"string"==typeof ns_p.src?te=ns_p.src.replace(/&/,"&").replace(/&ns__t=\d+/,""):"string"==typeof ns_pixelUrl?te=ns_pixelUrl.replace(/&/,"&").replace(/&ns__t=\d+/,""):null},getStaSM:function(){return x},resetPlaybackSession:function(e){var t=x.getPlaybackSession();x.setPlaybackSession(new p(x)),p.resetPlaybackSession(x,t,e)},resetHeartbeat:function(){x.getHeartbeat().pause();var e=x.getHeartbeat().getIntervals();x.setHeartbeat(new v(x)),x.getHeartbeat().setIntervals(e)}});var de,ce;t.isBrowser()?(de=window,ce=document):(de={},ce={location:{href:""},title:"",URL:"",referrer:"",cookie:""}),t.extend(re,{prepareUrl:f}),n()}}(),L=function(){return function(e){var i,n,r,a,s,o,l,u=this;t.extend(u,{getAppCore:function(){return i},getStaCore:function(){return e},getEventManager:function(){return n},getStateMachine:function(){return r},getHeartbeat:function(){return a},getKeepAlive:function(){return s},getPlaybackSession:function(){return o},getLogging:function(){return l},setAppCore:function(e){i=e},setKeepAlive:function(e){s=e},setHeartbeat:function(e){a=e},setEventManager:function(e){n=e},setStateMachine:function(e){r=e},setPlaybackSession:function(e){o=e},setLogging:function(e){l=e}})}}(),O=function(){return function(e){function i(){e=t.extend({},e),a=new x(e),a.getStaSM().getLogging().log("New StreamingAnalytics instance with configuration",e)}function n(e){var i,n;if(i="object"==typeof arguments[1]?arguments[1]:"object"==typeof arguments[2]?arguments[2]:{},n="number"==typeof arguments[1]?arguments[1]:"number"==typeof arguments[2]?arguments[2]:NaN,l.toString(e)){i=t.jsonObjectToStringDictionary(i);var r=t.fixEventTime(i);i.ns_st_po||isNaN(n)||(i.ns_st_po=t.parseInteger(n,0)+""),e==l.PLAY||e==l.PAUSE||e==l.BUFFER||e==l.END||e==l.SEEK_START||e==l.AD_SKIP||e==l.BUFFER_STOP?a.newEvent(e,r,i):a.newPseudoEvent(e,r,i)}}function r(){o&&a.getStaSM().getStateMachine().getCurrentState()!=u.IDLE&&s.notifyEnd()}var a,s=this,o=!0;t.extend(this,{isProperlyInitialized:function(){return a.isProperlyInitialized()},reset:function(e){n(l.END);var t=a;t.getStaSM().getKeepAlive().stop(),t.getStaSM().getHeartbeat().pause(),a=new x(t.getConfiguration()),p.resetPlaybackSession(a.getStaSM(),t.getStaSM().getPlaybackSession(),e)},setPauseOnBufferingInterval:function(e){a.setPauseOnBufferingInterval(e)},getPauseOnBufferingInterval:function(){return a.getPauseOnBufferingInterval()},setKeepAliveInterval:function(e){a.getStaSM().getKeepAlive().setInterval(e)},getKeepAliveInterval:function(){return a.getStaSM().getKeepAlive().getInterval()},setHeartbeatIntervals:function(e){a.getStaSM().getHeartbeat().setIntervals(e)},notifyPlay:function(e,t){a.getStaSM().getLogging().apiCall("notifyPlay",e,t),n(l.PLAY,e,t)},notifyPause:function(e,t){a.getStaSM().getLogging().apiCall("notifyPause",e,t),n(l.PAUSE,e,t)},notifyEnd:function(e,t){a.getStaSM().getLogging().apiCall("notifyEnd",e,t),n(l.END,e,t)},notifyBufferStart:function(e,t){a.getStaSM().getLogging().apiCall("notifyBufferStart",e,t),n(l.BUFFER,e,t)},notifyBufferStop:function(e,t){a.getStaSM().getLogging().apiCall("notifyBufferStop",e,t),n(l.BUFFER_STOP,e,t)},notifyLoad:function(e,t){a.getStaSM().getLogging().apiCall("notifyLoad",e,t),n(l.LOAD,e,t)},notifyEngage:function(e,t){a.getStaSM().getLogging().apiCall("notifyEngage",e,t),n(l.ENGAGE,e,t)},notifySeekStart:function(e,t){a.getStaSM().getLogging().apiCall("notifySeekStart",e,t),n(l.SEEK_START,e,t)},notifySkipAd:function(e,t){a.getStaSM().getLogging().apiCall("notifySkipAd",e,t),n(l.AD_SKIP,e,t)},notifyCallToAction:function(e,t){a.getStaSM().getLogging().apiCall("notifyCallToAction",e,t),n(l.CTA,e,t)},notifyError:function(e,t){a.getStaSM().getLogging().apiCall("notifyError",e,t),n(l.ERROR,e,t)},notifyTransferPlayback:function(e,t){a.getStaSM().getLogging().apiCall("notifyTransferPlayback",e,t),n(l.TRANSFER,e,t)},notifyDrmFail:function(e,t){a.getStaSM().getLogging().apiCall("notifyDrmFail",e,t),n(l.DRM_FAILED,e,t)},notifyDrmApprove:function(e,t){a.getStaSM().getLogging().apiCall("notifyDrmApprove",e,t),n(l.DRM_APPROVED,e,t)},notifyDrmDeny:function(e,t){a.getStaSM().getLogging().apiCall("notifyDrmDeny",e,t),n(l.DRM_DENIED,e,t)},notifyChangeBitrate:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeBitrate",e,t,i),null!=e){var r=i||{};r.ns_st_br=e+"",n(l.BIT_RATE,r,t)}},notifyChangePlaybackRate:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangePlaybackRate",e,t,i),null!=e){var r=i||{};r.ns_st_rt=e+"",n(l.PLAYBACK_RATE,r,t)}},notifyChangeVolume:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeVolume",e,t,i),null!=e){var r=i||{};r.ns_st_vo=e+"",n(l.VOLUME,r,t)}},notifyChangeWindowState:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeWindowState",e,t,i),null!=e){var r=i||{};r.ns_st_ws=e+"",n(l.WINDOW_STATE,r,t)}},notifyChangeAudioTrack:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeAudioTrack",e,t,i),null!=e){var r=i||{};r.ns_st_at=e+"",n(l.AUDIO,r,t)}},notifyChangeVideoTrack:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeVideoTrack",e,t,i),null!=e){var r=i||{};r.ns_st_vt=e+"",n(l.VIDEO,r,t)}},notifyChangeSubtitleTrack:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeSubtitleTrack",e,t,i),null!=e){var r=i||{};r.ns_st_tt=e+"",n(l.SUBS,r,t)}},notifyChangeCdn:function(e,t,i){if(a.getStaSM().getLogging().apiCall("notifyChangeCdn",e,t,i),null!=e){var r=i||{};r.ns_st_cdn=e+"",n(l.CDN,r,t)}},notifyCustomEvent:function(e,t){a.getStaSM().getLogging().apiCall("notifyCustomEvent",e,t),n(l.CUSTOM,e,t)},getLabels:function(){return a.getLabels()},getState:function(){return a.getStaSM().getStateMachine().getCurrentState()},setLabels:function(e){a.setLabels(e)},getLabel:function(e){return a.getLabel(e)},setLabel:function(e,t){a.setLabel(e,t)},getLoadTimeOffset:function(){return a.getLoadTimeOffset()},setLoadTimeOffset:function(e){a.setLoadTimeOffset(e)},setLiveEndpointURL:function(e){return a.setLiveEndpointURL(e)},getLiveEndpointURL:function(){return a.getLiveEndpointURL()},isPauseOnBufferingEnabled:function(){return a.isPauseOnBufferingEnabled()},setPauseOnBufferingEnabled:function(e){a.setPauseOnBufferingEnabled(e)},isThrottlingEnabled:function(){return a.isThrottlingEnabled()},setThrottlingEnabled:function(e){a.setThrottlingEnabled(e)},setThrottlingDelay:function(e){a.setThrottlingDelay(e)},getThrottlingDelay:function(){return a.getThrottlingDelay()},setPlaybackIntervalMergeTolerance:function(e){a.getStaSM().getPlaybackSession().getAsset().setPlaybackIntervalMergeTolerance(e)},getPlaybackIntervalMergeTolerance:function(){return a.getStaSM().getPlaybackSession().getAsset().getPlaybackIntervalMergeTolerance()},createPlaybackSession:function(e){a.getStaSM().getLogging().apiCall("createPlaybackSession",e),e=t.jsonObjectToStringDictionary(e);var i=a.getStaSM().getStateMachine().getCurrentState();i!=u.IDLE&&(a.getStaSM().getLogging().infoLog("Ending the current Clip. It was in state:",t.stateToString(i)),s.notifyEnd()),a.getStaSM().getPlaybackSession().isPlaybackSessionStarted()&&a.resetPlaybackSession(),a.getStaSM().getPlaybackSession().setLabels(e)},getVersion:function(){return c.STREAMINGANALYTICS_VERSION},addListener:function(e){a.addListener(e)},removeListener:function(e){a.removeListener(e)},addMeasurementListener:function(e){a.getStaSM().getEventManager().addMeasurementListener(e)},removeMeasurementListener:function(e){a.getStaSM().getEventManager().removeMeasurementListener(e)},getPlaybackSession:function(){return a.getStaSM().getPlaybackSession()},setExitEndEventEnabled:function(e){o=e},isExitEndEventEnabled:function(){return o},getPlatformAPI:function(){return a.getPlatformAPI()},_getLogHistory:function(){return a.getStaSM().getLogging().getLogHistory()}}),t.isBrowser()&&(window.addEventListener?(window.addEventListener("beforeunload",r),window.addEventListener("unload",r)):window.attachEvent&&(window.attachEvent("onbeforeunload",r),window.attachEvent("onunload",r))),i()}}();return O.PlayerEvents=l,O.InternalStates=u,O.ImplementationType=d,O.Constants=c,O}(),e.ReducedRequirementsStreamingAnalytics=e.ReducedRequirementsStreamingAnalytics||function(){var n={LongFormOnDemand:"12",ShortFormOnDemand:"11",Live:"13",UserGeneratedLongFormOnDemand:"22",UserGeneratedShortFormOnDemand:"21",UserGeneratedLive:"23",Bumper:"99",Other:"00"},r={LinearOnDemandPreRoll:"11",LinearOnDemandMidRoll:"12",LinearOnDemandPostRoll:"13",LinearLive:"21",BrandedOnDemandPreRoll:"31",BrandedOnDemandMidRoll:"32",BrandedOnDemandPostRoll:"33",BrandedOnDemandContent:"34",BrandedOnDemandLive:"35",Other:"00"},a=e.StreamingAnalytics,s=e.StreamingAnalytics.InternalStates||null,o=e.StreamingAnalytics.ImplementationType||null,l=null!=e.StreamingAnalytics.InternalStates&&null!=e.StreamingAnalytics.ImplementationType,u=e.StreamingAnalytics.Constants,d=function(e){function d(){l&&(t.exists(e)&&(e.customerC2||e.publisherId)||t.getNamespace().comScore?_=new a(e):T.error("Cannot instantiate StreamingAnalytics","The property publisherId was not provided (or incorrectly provided) in the StreamingAnalytics configuration."),_&&_.setLabel("ns_st_it",o.toString(o.REDUCED)))}function c(e){for(var t in u.STANDARD_METADATA_LABELS)if(u.STANDARD_METADATA_LABELS.hasOwnProperty(t)&&!f(u.STANDARD_METADATA_LABELS[t],g,e))return!1;return!0}function f(e,i,n){return!!(t.exists(e)&&t.exists(i)&&t.exists(n)&&(i.hasOwnProperty(e)&&n.hasOwnProperty(e)&&i[e]===n[e]||!i.hasOwnProperty(e)&&!n.hasOwnProperty(e)))}function p(e){_.getPlaybackSession().setAsset(e),g=e,_.notifyPlay()}function h(e){var t=e||{};t.ns_st_ad="1",t.ns_st_an=++m+"",_.getPlaybackSession().setAsset(t),_.notifyPlay(),y=!1}function v(e,t){S==b.None&&(S=t),y&&S==t&&c(e)?(_.getPlaybackSession().getAsset().setLabels(e),_.getState()!=s.PLAYING&&_.notifyPlay()):p(e),y=!0,S=t}var g=null,m=0,y=!1,_=null,b={None:0,AudioContent:1,VideoContent:2},S=b.None,T=new i("TTSTA",(e||{}).debug);t.extend(this,{playVideoAdvertisement:function(e,i){if(_){T.apiCall("playVideoAdvertisement",e,i);var n={ns_st_ct:"va"};i?n.ns_st_ct="va"+i:T.warn("Calling 'playVideoAdvertisement' without specifying the media type as a second parameter."),i!=r.LinearLive&&i!=r.BrandedOnDemandLive||(n.ns_st_li="1"),e&&t.extend(n,e),h(n)}},playAudioAdvertisement:function(e,i){if(_){T.apiCall("playAudioAdvertisement",e,i);var n={ns_st_ct:"aa"};i?n.ns_st_ct="aa"+i:T.warn("Calling 'playAudioAdvertisement' without specifying the media type as a second parameter."),i!=r.LinearLive&&i!=r.BrandedOnDemandLive||(n.ns_st_li="1"),e&&t.extend(n,e),h(n)}},playVideoContentPart:function(e,i){if(_){T.apiCall("playVideoContentPart",e,i);var r={ns_st_ct:"vc"};i?r.ns_st_ct="vc"+i:T.warn("Calling 'playVideoContentPart' without specifying the media type as a second parameter."),i!=n.Live&&i!=n.UserGeneratedLive||(r.ns_st_li="1"),e&&t.extend(r,e),v(r,b.VideoContent)}},playAudioContentPart:function(e,i){if(_){T.apiCall("playAudioContentPart",e,i);var r={ns_st_ct:"ac"};i?r.ns_st_ct="ac"+i:T.warn("Calling 'playAudioContentPart' without specifying the media type as a second parameter."),i!=n.Live&&i!=n.UserGeneratedLive||(r.ns_st_li="1"),e&&t.extend(r,e),v(r,b.AudioContent)}},stop:function(){_&&(T.apiCall("stop"),_.notifyPause())}}),d()};return d.ContentType=n,d.AdType=r,d}(),e}),function(e){"use strict";return"undefined"!=typeof ns_&&ns_.StreamingAnalytics?void e(ns_):void("undefined"!=typeof console&&console.error&&console.error("The comScore Streaming Analytics library was not properly loaded."))}(function(e){"use strict";function t(s,o,l,u,d){function c(){var t={};t.debug=s.debug,t.publisherId=s.publisherId||s.c2,t.secure=s.secure,t.liveEndpointURL=s.logurl||s.liveEndpointURL,He=new e.StreamingAnalytics(t),i.extend(Pe,He),i.extend(Pe,{notifyPlay:U,notifyPause:B,notifyEnd:F,notifyBufferStart:V,notifyBufferStop:q,notifyLoad:H,notifyEngage:G,notifySeekStart:z,notifySkipAd:W,notifyCallToAction:Y,notifyError:K,notifyTransferPlayback:X,notifyDrmFail:Q,notifyDrmApprove:J,notifyDrmDeny:Z,notifyChangeBitrate:$,notifyChangePlaybackRate:ee,notifyChangeVolume:te,notifyChangeWindowState:ie,notifyChangeAudioTrack:ne,notifyChangeVideoTrack:re,notifyChangeSubtitleTrack:ae,notifyChangeCDN:se,notifyCustomEvent:oe,createPlaybackSession:fe,getPlaybackSession:pe,setAsset:ce,setLabel:he,setLabels:ve,getLabels:ge,getLabel:me,setAssetLabel:ye,setPlaybackSessionLabel:_e,onGetLabels:M,labelMapping:Ye,release:f,log:Ie,handleSettings:Te,getGenericPluginVersion:p,setDuration:N,setVideoSize:R,setDetectSeek:D,setDetectPause:O,setDetectPlay:L,setDetectEnd:x,setSmartStateDetection:P,setPauseDetectionErrorMargin:T,setEndDetectionErrorMargin:E,setSeekDetectionMinQuotient:w,setPulseSamplingInterval:k,setPulseSamplingIntervalBackground:I,setPulseMaxDelay:A,setMaximumNumberOfEntriesInHistory:C,setMinimumNumberOfTimeUpdateEventsBeforeDetectingSeek:j}),Pe.setLabels({ns_st_mp:o,ns_st_pv:l,ns_st_mv:u},!0),s&&Te(s),d.init&&d.init.call(Pe,null),$e&&v()}function f(){d.release&&d.release.call(Pe),g(),He.reset(),He=null,b(),Ge=[],Ae=void 0,ze=-1,Ce=Le,We=-1}function p(){return xe}function h(){return i.hasPageVisibilityAPISupport&&i.isTabInBackground()?Fe:Be}function v(){g(),tt=NaN,it=[],dt=!0,je=setInterval(m,h()),_()}function g(){"undefined"!=typeof je&&(clearInterval(je),je=void 0)}function m(){if(!$e)return void g();if(nt)return void(nt=!1);var t=+new Date,i=t-tt,n=h()+qe,a=tt;if(tt=t,!isNaN(a)&&i>n)return void v();var s=d.position&&d.position.call(Pe,null)||0,o=!1;if(s!=it[it.length-1]){if(it.push(Math.abs(s)),it.length>1&&it[it.length-1]<it[it.length-2]){var l=it[it.length-1];it=[],it[0]=l,Xe&&(o=!0)}if(!o&&it.length<Ue)return}it.length>Ve&&(it=it.slice(-Math.floor(Ve/2))),Xe&&!o&&(o=y());var u=He.getState();switch(u){case r.IDLE:case r.PAUSED:case r.PLAYBACK_NOT_STARTED:case r.BUFFERING_BEFORE_PLAYBACK:case r.BUFFERING_DURING_PLAYBACK:case r.BUFFERING_DURING_SEEKING:case r.BUFFERING_DURING_PAUSE:case r.PAUSED_DURING_BUFFERING:case r.SEEKING_BEFORE_PLAYBACK:case r.SEEKING_DURING_PLAYBACK:case r.SEEKING_DURING_BUFFERING:case r.SEEKING_DURING_PAUSE:if(Je&&s>et&&!o&&!S(s)){if(d.preMeasurement&&!d.preMeasurement.call(Pe,u,e.StreamingAnalytics.PlayerEvents.PLAY))break;var c=it[it.length-1];dt&&c<Re?Pe.notifyPlay(0):Pe.notifyPlay(c),dt=!1;break}if(Xe&&o&&u!=r.SEEKING_BEFORE_PLAYBACK&&u!=r.SEEKING_DURING_PLAYBACK&&u!=r.SEEKING_DURING_BUFFERING&&u!=r.SEEKING_DURING_PAUSE){Pe.notifySeekStart(it[0]);break}if(Ze&&u!=r.IDLE&&u!=r.PLAYBACK_NOT_STARTED&&u!=r.BUFFERING_BEFORE_PLAYBACK&&u!=r.SEEKING_BEFORE_PLAYBACK&&S(s)){if(d.preMeasurement&&!d.preMeasurement.call(Pe,u,e.StreamingAnalytics.PlayerEvents.END))break;dt=!0;var f=parseInt(rt.ns_st_cl||He.getPlaybackSession().getAsset().getLabel("ns_st_cl"));!isNaN(f)&&f>0?Pe.notifyEnd(f):Pe.notifyEnd(s)}break;case r.PLAYING:if(Xe&&o){if(d.preMeasurement&&!d.preMeasurement.call(Pe,u,e.StreamingAnalytics.PlayerEvents.PAUSE))break;dt=!1,Pe.notifySeekStart(et)}else if(Ze&&S(s)){if(d.preMeasurement&&!d.preMeasurement.call(Pe,u,e.StreamingAnalytics.PlayerEvents.END))break;dt=!0;var f=parseInt(rt.ns_st_cl||He.getPlaybackSession().getAsset().getLabel("ns_st_cl"));!isNaN(f)&&f>0?Pe.notifyEnd(f):Pe.notifyEnd(s)}else if(Qe&&Math.abs(s-et)<=Oe){if(d.preMeasurement&&!d.preMeasurement.call(Pe,u,e.StreamingAnalytics.PlayerEvents.PAUSE))break;dt=!1,Pe.notifyPause(et)}}u!==He.getState()&&(d.postMeasurement&&d.postMeasurement.call(Pe,He.getState()),He.getState()!=r.PLAYING&&(it=[])),et=s}function y(){if(it.length<2)return!1;if(it[it.length-1]<it[it.length-2])return!0;for(var e=h(),t=0,i=0;i<it.length;i++)t=(parseFloat(t)+Ne[it.length-2][i]*it[i]).toFixed(5);return t=parseFloat(t),t/e>Me}function _(){if("undefined"!=typeof document&&document.addEventListener&&i.hasPageVisibilityAPISupport()&&!ft){ft=!0;var e=i.getPageVisibilityAPI();document.addEventListener(e.visibilityChange,v,!1)}}function b(){if("undefined"!=typeof document&&document.addEventListener&&i.hasPageVisibilityAPISupport()&&ft){ft=!1;var e=i.getPageVisibilityAPI();document.removeEventListener(e.visibilityChange,v,!1)}}function S(e){var t=parseInt(rt.ns_st_cl||He.getPlaybackSession().getAsset().getLabel("ns_st_cl"));return!isNaN(t)&&t>0&&(e>t||Math.abs(e-t)<De)}function T(e){e&&(Oe=e)}function E(e){e&&(De=e)}function w(e){e&&e>1&&(Me=e)}function k(e){"number"==typeof e&&e>=0&&(Be=e)}function I(e){"number"==typeof e&&e>=0&&(Fe=e)}function A(e){"number"==typeof e&&e>=0&&(qe=e)}function C(e){e&&e<=13&&e>=2&&(Ve=e)}function j(e){e&&e>=2&&e<=13&&(Ue=e)}function P(e){$e=e||!1,$e?v():g()}function x(e){Ze=e||!1}function L(e){Je=e||!1}function O(e){Qe=e||!1}function D(e){Xe=e||!1}function R(e){He.getPlaybackSession().getAsset().setLabel("ns_st_cs",e?e:0)}function N(e){He.getPlaybackSession().getAsset().setLabel("ns_st_cl",e&&e>=0?e:0)}function M(e){"function"==typeof e&&Ge.push(e)}function U(){if(!lt&&!ut){dt=!1;var e=de(a.PLAY,le(arguments),ue(arguments));He.notifyPlay(le(arguments),e),$e&&(it=[],et=e)}}function B(){if(!lt&&!ut){dt=!1;var e=de(a.PAUSE,le(arguments),ue(arguments));He.notifyPause(le(arguments),e),$e&&(it=[],et=e)}}function F(){if(!lt&&!ut){dt=!0;var e=de(a.END,le(arguments),ue(arguments));$e&&(it=[],et=e,nt=!0),He.notifyEnd(le(arguments),e)}}function V(){if(!lt&&!ut){var e=de(a.BUFFER,le(arguments),ue(arguments));He.notifyBufferStart(le(arguments),e)}}function q(){if(!lt&&!ut){var e=de(a.BUFFER_STOP,le(arguments),ue(arguments));He.notifyBufferStop(le(arguments),e)}}function H(){if(!lt&&!ut&&s.enableLoadNotification){var e=de(a.LOAD,le(arguments),ue(arguments));He.notifyLoad(le(arguments),e)}}function G(){if(!lt&&!ut&&s.enableEngageNotification){var e=de(a.ENGAGE,le(arguments),ue(arguments));He.notifyEngage(le(arguments),e)}}function z(){if(!lt&&!ut){dt=!1;var e=de(a.SEEK_START,le(arguments),ue(arguments));$e&&(it=[],et=e),He.notifySeekStart(le(arguments),e)}}function W(){if(!lt&&!ut){if(!s.enableSkipAdNotification)return void F.apply(this,Array.prototype.slice.call(arguments));dt=!0;var e=de(a.AD_SKIP,le(arguments),ue(arguments));$e&&(it=[],et=e,nt=!0),He.notifySkipAd(le(arguments),e)}}function Y(){if(!lt&&!ut&&s.enableCallToActionNotification){var e=de(a.CTA,le(arguments),ue(arguments));He.notifyCallToAction(le(arguments),e)}}function K(){if(!lt&&!ut&&s.enableErrorNotification){var e=de(a.ERROR,le(arguments),ue(arguments));He.notifyError(le(arguments),e)}}function X(){if(!lt&&!ut&&s.enableTransferPlaybackNotification){var e=de(a.TRANSFER,le(arguments),ue(arguments));He.notifyTransferPlayback(le(arguments),e)}}function Q(){if(!lt&&!ut&&s.enableDrmFailNotification){var e=de(a.DRM_FAILED,le(arguments),ue(arguments));He.notifyDrmFail(le(arguments),e)}}function J(){if(!lt&&!ut&&s.drmApproveNotification){var e=de(a.DRM_APPROVED,le(arguments),ue(arguments));He.notifyDrmApprove(le(arguments),e)}}function Z(){if(!lt&&!ut&&s.drmDenyNotification){var e=de(a.DRM_DENIED,le(arguments),ue(arguments));He.notifyDrmDeny(le(arguments),e)}}function $(e,t,i){if(!lt&&!ut){if(!s.enableBitrateNotification)return void he("ns_st_br",e,!0);var n=[t,i],r=de(a.BIT_RATE,le(n),ue(n));He.notifyChangeBitrate(e,r,le(n))}}function ee(e,t,i){if(!lt&&!ut){var n=[t,i],r=de(a.PLAYBACK_RATE,le(n),ue(n));He.notifyChangePlaybackRate(e,r,le(n))}}function te(e,t,i){if(!lt&&!ut){if(!s.enableVolumeChangeNotification)return void he("ns_st_vo",e,!0);var n=[t,i],r=de(a.VOLUME,le(n),ue(n));He.notifyChangeVolume(e,r,le(n))}}function ie(e,t,i){if(!lt&&!ut){if(!s["enableWindowStateChangeNotification "])return void he("ns_st_ws",e,!0);var n=[t,i],r=de(a.WINDOW_STATE,le(n),ue(n));He.notifyChangeWindowState(e,r,le(n))}}function ne(e,t,i){if(!lt&&!ut){if(!s.enableAudioTrackChangeNotification)return void he("ns_st_at",e,!0);var n=[t,i],r=de(a.AUDIO,le(n),ue(n));He.notifyChangeAudioTrack(e,r,le(n))}}function re(e,t,i){if(!lt&&!ut){if(!s.enableVideoTrackChangeNotification)return void he("ns_st_vt",e,!0);var n=[t,i],r=de(a.VIDEO,le(n),ue(n));He.notifyChangeVideoTrack(e,r,le(n))}}function ae(e,t,i){if(!lt&&!ut){if(!s.enableSubtitleTrackChangeNotification)return void he("ns_st_tt",e,!0);var n=[t,i],r=de(a.SUBS,le(n),ue(n));He.notifyChangeSubtitleTrack(e,r,le(n))}}function se(e,t,i){if(!lt&&!ut){if(!s.enableCdnChangeNotification)return void he("ns_st_cdn",e,!0);var n=[t,i],r=de(a.CDN,le(n),ue(n));He.notifyChangeCdn(e,r,le(n))}}function oe(){if(!lt&&!ut&&s.enableCustomEventNotification){var e=de(a.CUSTOM,le(arguments),ue(arguments));He.notifyCustomEvent(le(arguments),e)}}function le(e){var t;return t="object"==typeof e[0]?e[0]:"object"==typeof e[1]?e[1]:{}}function ue(e){var t;return t="number"==typeof e[0]?e[0]:"number"==typeof e[1]?e[1]:NaN}function de(e,t,i){for(var n=0,r=Ge.length;n<r;n++)Ge[n](e,t);var a=NaN;return"number"!=typeof i||isNaN(i)?d.position&&(a=d.position.call(Pe,e,t,i)):a=i,a}function ce(e,t,n,r){var a=n||[];we(a,e),ke(a,e);var s;for(var o in e)e.hasOwnProperty(o)&&(s=o.match(/^data-(.+)/))&&(e[s[1]]=e[o],delete e[o]);return r&&1==r?i.extend(e,st):(st={},i.extend(st,e)),rt={},lt=!!(e&&e.hasOwnProperty("ns_st_skip")&&e.ns_st_skip),He.getPlaybackSession().setAsset(e,t)}function fe(e,t){return t&&1==t?i.extend(e,at):(at={},i.extend(at,e)),ut=!!(e&&e.hasOwnProperty("ns_st_skip")&&e.ns_st_skip),He.createPlaybackSession(e)}function pe(){var e=He.getPlaybackSession();return new n(e,ce)}function he(e,t,i){var n={};return n[e]=t,ve(n,i)}function ve(e,t){return t&&1==t?i.extend(e,ot):i.extend(ot,e),He.setLabels(e)}function ge(){return ot}function me(e){return ot[e]}function ye(e,t,i){i&&1==i?(st.hasOwnProperty(e)||ot.hasOwnProperty(e)||He.getPlaybackSession().getAsset().setLabel(e,t),rt[e]=t):(st[e]=t,He.getPlaybackSession().getAsset().setLabel(e,t))}function _e(e,t,i){i&&1==i?at.hasOwnProperty(e)||ot.hasOwnProperty(e)||He.getPlaybackSession().setLabel(e,t):(at[e]=t,He.getPlaybackSession().setLabel(e,t))}function be(e){if(e){var t=/([^=, ]+)\s*=(\s*("([^"]+?)"|'([^']+?)'|[a-z0-9\[\]\._-]+)\s*\+?)+\s*/gi,i=e.match(t);for(var n in i)if(i.hasOwnProperty(n)){var r=i[n].split("=",2);if(2==r.length){var a=r[0].replace(/(^\s+|\s+$)/g,"");""!=a&&(Ye[a]=r[1])}}}}function Se(e){if(e){var t=e.split(",");for(var i in t)if(t.hasOwnProperty(i)){var n=t[i].split("=",2);if(2==n.length){var r=n[0].replace(/(^\s+|\s+$)/g,"");""!=r&&(He.setLabel(r,n[1]),ot[r]=n[1])}}}}function Te(e){if(i.isTrue(e.pageView||e.pageview)){var t={};if("undefined"!=typeof document){var n=document;t.c7=n.URL,t.c8=n.title,t.c9=n.referrer}He.setLabels(t)}e.renditions,Ke=i.isTrue(e.debug),(e.labelMapping||e.labelmapping)&&be(e.labelMapping||e.labelmapping),(e.persistentLabels||e.persistentlabels)&&Se(e.persistentLabels||e.persistentlabels),"1"===e.throttling||e.throttling===!0?He.setThrottlingEnabled(!0):He.setThrottlingEnabled(!1);var r;(r=e.include)&&"string"==typeof r&&(r===Le?Ae=Le:r.length>0&&(Ae=r.split(","))),Ae!==Le&&(r=e.includePrefixes||e.include_prefixes)&&(r===Le?Ae=Le:(Ae||(Ae=[]),ze=Ae.length,Ae.push.apply(Ae,r.split(","))));var a=/^([Cc][A-Da-d]_)?ns_st_.+/,s=/^[Cc][A-Da-d]?([1-9]|1[0-9]|20)$/,o=e.exclude;if("string"==typeof o)if(Ae||o)if(Ae&&!o)ct=[],Ce=[];else if(o==Le)ct=[],Ce=Le;else{var l=o.split(",");Ce=Ae?l:Le;for(var u=0;u<l.length;u++){var d=null!=l[u].match(a),c=null!=l[u].match(s);(d||c)&&ct.push(l[u])}}else ct=[],Ce=Le;var f=e.excludePrefixes||e.exclude_prefixes;Ae&&Ce!=Le&&"string"==typeof f&&(f==Le?Ce=Le:(Ce||(Ce=[]),We=Ce.length,Ce.push.apply(Ce,f.split(",")))),Ce||(Ce=Le)}function Ee(e){var t,i,n,r,a={};if(Ce===Le)return{};if(Ae&&Ae!==Le){for(t=0,i=Ae.length;t<i;t++){var s=Ae[t];r=ze>=0&&t>=ze;for(n in e)e.hasOwnProperty(n)&&(a[n]||(a[n]=!(r?0!==n.indexOf(s):n!=s)))}for(n in a)a.hasOwnProperty(n)&&a[n]===!1&&delete e[n];a={}}if(Ce)for(t=0,i=Ce.length;t<i;t++){var o=Ce[t];r=We>=0&&t>=We;for(n in e)e.hasOwnProperty(n)&&(r?0===n.indexOf(o):n==o)&&(a[n]=!0);for(n in a)a.hasOwnProperty(n)&&e.hasOwnProperty(n)&&delete e[n];a={}}return e}function we(e,t){var n=Ce===Le;if(e.length>0&&"undefined"!=e[0].map){var r=e[0].map;n||i.extend(t,Ee(r));for(var a in r)if(r.hasOwnProperty(a)){var s,o,l,u=/^([Cc][A-Da-d]_)?ns_st_.+/,d=/^[Cc][A-Da-d]?([1-9]|1[0-9]|20)$/;(s=a.match(/^data-(.+)/))?(o=null!=s[1].match(u),l=null!=s[1].match(d),(o||l)&&ct.indexOf(s[1])===-1&&(t[s[1]]=r[a])):(o=null!=a.match(u),l=null!=a.match(d),(o||l)&&ct.indexOf(a)===-1&&(t[a]=r[a]))}}}function ke(e,t){var n=Pe.labelMapping;for(var r in n)if(n.hasOwnProperty(r))for(var a="",s=/^("([^"]+)"|'([^']+?)'$)/i,o=/"([^"]+?)"|[a-z0-9\[\]\._-]+|'([^']+?)'\s*/gi,l=n[r].match(o),u=0;u<l.length;u++){var d=l[u].replace(/(?:^\s+|\s+$)/g,"");if(s.test(d)){var c=s.exec(d);a+=c[2]||c[3]}else try{var f="",p=d.lastIndexOf(".");p>=1&&p<d.length-1&&(f=d.substring(0,p),d=d.substring(p+1,d.length));for(var h=0;h<e.length;h++){var v=e[h];if(f==v.prefix){v.map[d]&&(a+=i.toString(v.map[d]));break}}}catch(e){Ie("Exception occurred while processing mapped labels")}t[r]=a}}function Ie(){if(Ke){var e=new Date,t=e.getDate(),i=e.getMonth()+1,n=e.getHours(),r=e.getMinutes(),a=e.getSeconds(),s=e.getFullYear()+"-"+(i<10?"0"+i:i)+"-"+(t<10?"0"+t:t)+" "+(n<10?"0"+n:n)+":"+(r<10?"0"+r:r)+":"+(a<10?"0"+a:a)+"."+e.getMilliseconds(),o=["comScore",s],l=Array.prototype.slice.call(arguments);"undefined"!=typeof console&&console.log.apply(console,o.concat(l))}}d=d||{};var Ae,Ce,je,Pe=this,xe="2.6.0.170905",Le="_all_",Oe=10,De=500,Re=1e3,Ne=[[-1,1],[-.5,0,.5],[-.3,-.1,.1,.3],[-.2,-.1,0,.1,.2],[-.14286,-.08571,-.02857,.02857,.08571,.14286],[-.10714,-.07143,-.03571,0,.03571,.07143,.10714],[-.08333,-.05952,-.03571,-.0119,.0119,.03571,.05952,.08333],[-.06667,-.05,-.03333,-.01667,0,.01667,.03333,.05,.06667],[-.05455,-.04242,-.0303,-.01818,-.00606,.00606,.01818,.0303,.04242,.05455],[-.04545,-.03636,-.02727,-.01818,-.00909,0,.00909,.01818,.02727,.03636,.04545],[-.03846,-.03147,-.02448,-.01748,-.01049,-.0035,.0035,.01049,.01748,.02448,.03147,.03846],[-.03297,-.02747,-.02198,-.01648,-.01099,-.00549,0,.00549,.01099,.01648,.02198,.02747,.03297]],Me=1.25,Ue=2,Be=300,Fe=1e3,Ve=6,qe=50,He={},Ge=[],ze=-1,We=-1,Ye={},Ke=!1,Xe=!1,Qe=!1,Je=!1,Ze=!1,$e=!1,et=d.position&&d.position.call(Pe,null)||0,tt=NaN,it=[],nt=!1,rt={},at={},st={},ot={},lt=!1,ut=!1,dt=!0,ct=[];c(),i.isTrue(s.pageView||s.pageview)&&t.viewNotify(He.getLabels(),He);var ft=!1}var i=i||{};i.indexOf=function(e,t){var i=-1;return this.forEach(t,function(t,n){t==e&&(i=n)}),i},i.forEach=function(e,t,i){try{if("function"==typeof t)if(i="undefined"!=typeof i?i:null,"number"!=typeof e.length||"undefined"==typeof e[0]){var n="undefined"!=typeof e.__proto__;for(var r in e)e.hasOwnProperty(r)&&(!n||n&&"undefined"==typeof e.__proto__[r])&&"function"!=typeof e[r]&&t.call(i,e[r],r)}else for(var a=0,s=e.length;a<s;a++)t.call(i,e[a],a)}catch(e){}};var i=i||{};i.parseBoolean=function(e,t){return t=t||!1,e?"0"!=e:t},i.parseInteger=function(e,t){return null==e||isNaN(e)?t||0:parseInt(e)},i.parseLong=function(e,t){var i=Number(e);return null==e||isNaN(i)?t||0:i},i.toString=function(e){if("undefined"==typeof e)return"undefined";if("string"==typeof e)return e;if(e instanceof Array)return e.join(",");var t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+":"+e[i]+";");return t||e.toString()};var i=i||{};i.filter=function(e,t){var i={};for(var n in t)t.hasOwnProperty(n)&&e(t[n])&&(i[n]=t[n]);return i},i.extend=function(e){var t,i=arguments.length;e=e||{};for(var n=1;n<i;n++)if(t=arguments[n])for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e};var i=i||{};i.cloneObject=function(e){if(null==e||"object"!=typeof e)return e;var t=function(){function e(){}function t(t){return"object"==typeof t?(e.prototype=t,new e):t}function i(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}function n(){this.copiedObjects=[];var e=this;this.recursiveDeepCopy=function(t){return e.deepCopy(t)},this.depth=0}function r(e,t){var i=new n;return t&&(i.maxDepth=t),i.deepCopy(e)}function a(e){return"undefined"!=typeof window&&window&&window.Node?e instanceof Node:"undefined"!=typeof document&&e===document||"number"==typeof e.nodeType&&e.attributes&&e.childNodes&&e.cloneNode}var s=[];return i.prototype={constructor:i,canCopy:function(){return!1},create:function(e){},populate:function(e,t,i){}},n.prototype={constructor:n,maxDepth:256,cacheResult:function(e,t){this.copiedObjects.push([e,t])},getCachedResult:function(e){for(var t=this.copiedObjects,i=t.length,n=0;n<i;n++)if(t[n][0]===e)return t[n][1]},deepCopy:function(e){if(null===e)return null;if("object"!=typeof e)return e;var t=this.getCachedResult(e);if(t)return t;for(var i=0;i<s.length;i++){var n=s[i];if(n.canCopy(e))return this.applyDeepCopier(n,e)}throw new Error("Unable to clone the following object "+e)},applyDeepCopier:function(e,t){var i=e.create(t);if(this.cacheResult(t,i),this.depth++,this.depth>this.maxDepth)throw new Error("Maximum recursion depth exceeded.");return e.populate(this.recursiveDeepCopy,t,i),this.depth--,i}},r.DeepCopier=i,r.deepCopiers=s,r.register=function(e){e instanceof i||(e=new i(e)),s.unshift(e)},r.register({canCopy:function(){return!0},create:function(e){return e instanceof e.constructor?t(e.constructor.prototype):{}},populate:function(e,t,i){for(var n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}}),r.register({canCopy:function(e){return e instanceof Array},create:function(e){return new e.constructor},populate:function(e,t,i){for(var n=0;n<t.length;n++)i.push(e(t[n]));return i}}),r.register({canCopy:function(e){return e instanceof Date},create:function(e){return new Date(e)}}),r.register({canCopy:function(e){return a(e)},create:function(e){return"undefined"!=typeof document&&e===document?document:e.cloneNode(!1)},populate:function(e,t,i){if("undefined"!=typeof document&&t===document)return document;if(t.childNodes&&t.childNodes.length)for(var n=0;n<t.childNodes.length;n++){var r=e(t.childNodes[n]);i.appendChild(r)}}}),{deepCopy:r}}();return t.deepCopy(e)};var i=i||{};i.getNamespace=function(){return e.ns_||e},i.uid=function(){var e=1;return function(){return+new Date+"_"+e++}}(),i.isEmpty=function(e){return void 0===e||null===e||""===e||e instanceof Array&&0===e.length},i.isNotEmpty=function(e){return!this.isEmpty(e)},i.safeGet=function(e,t){return t=this.exists(t)?t:"",this.exists(e)?e:t},i.isTrue=function(e){return"undefined"!=typeof e&&("string"==typeof e?(e=e.toLowerCase(),"true"===e||"1"===e||"on"===e):!!e)},i.regionMatches=function(e,t,i,n,r){if(t<0||n<0||t+r>e.length||n+r>i.length)return!1;for(;--r>=0;){var a=e.charAt(t++),s=i.charAt(n++);if(a!=s)return!1}return!0},i.exists=function(e){return"undefined"!=typeof e&&null!=e},!function(){var e=[],t=!1,n=!0,r=1e3;i.onSystemClockJump=function(i,a){e.push(i),t||(t=!0,r=a||r,n=+new Date,setInterval(function(){var t=n+r,i=+new Date;n=i;var a=i-t;if(Math.abs(a)>r)for(var s=0;s<e.length;++s)e[s](a>0)},r))}}();var i=i||{};i.hasPageVisibilityAPISupport=function(){if("undefined"==typeof document)return!1;var e=!1;return"undefined"!=typeof document.hidden?e=!0:"undefined"!=typeof document.mozHidden?e=!0:"undefined"!=typeof document.msHidden?e=!0:"undefined"!=typeof document.webkitHidden&&(e=!0),function(){return e}}(),i.getPageVisibilityAPI=function(){if("undefined"==typeof document)return null;var e,t,i;"undefined"!=typeof document.hidden?(e="hidden",t="visibilitychange",i="visibilityState"):"undefined"!=typeof document.mozHidden?(e="mozHidden",t="mozvisibilitychange",i="mozVisibilityState"):"undefined"!=typeof document.msHidden?(e="msHidden",t="msvisibilitychange",i="msVisibilityState"):"undefined"!=typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange",i="webkitVisibilityState");var n={hidden:e,visibilityChange:t,state:i};return function(){return n}}(),i.isTabInBackground=function(){if("undefined"==typeof document)return null;var e=i.getPageVisibilityAPI();return function(){return document[e.hidden]}}(),i.getBrowserName=function(){if(!navigator)return"";var e,t,i=navigator.userAgent||"",n=navigator.appName||"";return(t=i.indexOf("Opera"))!=-1||(t=i.indexOf("OPR/"))!=-1?n="Opera":(t=i.indexOf("Android"))!=-1?n="Android":(t=i.indexOf("Chrome"))!=-1?n="Chrome":(t=i.indexOf("Safari"))!=-1?n="Safari":(t=i.indexOf("Firefox"))!=-1?n="Firefox":(t=i.indexOf("IEMobile"))!=-1?n="Internet Explorer Mobile":"Microsoft Internet Explorer"==n||"Netscape"==n?n="Internet Explorer":(e=i.lastIndexOf(" ")+1)<(t=i.lastIndexOf("/"))?(n=i.substring(e,t),n.toLowerCase()==n.toUpperCase()&&(n=navigator.appName)):n="unknown",n},i.getBrowserFullVersion=function(){if(!navigator)return"";var e,t,i,n,r=navigator.userAgent||"",a=navigator.appName||"",s=navigator.appVersion?""+parseFloat(navigator.appVersion):"";return(t=r.indexOf("Opera"))!=-1?(s=r.substring(t+6),(t=r.indexOf("Version"))!=-1&&(s=r.substring(t+8))):(t=r.indexOf("OPR/"))!=-1?s=r.substring(t+4):(t=r.indexOf("Android"))!=-1?s=r.substring(t+11):(t=r.indexOf("Chrome"))!=-1?s=r.substring(t+7):(t=r.indexOf("Safari"))!=-1?(s=r.substring(t+7),(t=r.indexOf("Version"))!=-1&&(s=r.substring(t+8))):(t=r.indexOf("Firefox"))!=-1?s=r.substring(t+8):"Microsoft Internet Explorer"==a?(n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),null!=n.exec(r)&&(s=parseFloat(RegExp.$1))):"Netscape"==a?(n=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!=n.exec(r)&&(s=parseFloat(RegExp.$1))):s=r.lastIndexOf(" ")+1<(t=r.lastIndexOf("/"))?r.substring(t+1):"unknown",s=s.toString(),(i=s.indexOf(";"))!=-1&&(s=s.substring(0,i)),(i=s.indexOf(" "))!=-1&&(s=s.substring(0,i)),(i=s.indexOf(")"))!=-1&&(s=s.substring(0,i)),e=parseInt(""+s,10),isNaN(e)&&(s=""+parseFloat(navigator.appVersion)),s},i.browserAcceptsLargeURLs=function(){return"undefined"==typeof window||(null!==window.ActiveXObject,!0)},i.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},i.isWebSecure=function(){return"undefined"!=typeof document&&null!=document&&"s"===document.location.href.charAt(4)};var n=(function(){var e=1e4;return function(t,i){function n(e){e=e||[];var i=[o,+new Date];return t&&i.push(t),e=Array.prototype.slice.call(e),i=i.concat(e)}function r(e){var t,n,r;if("boolean"==typeof i||!i)return!!i;if(r=e.join(" "),i instanceof Array&&i.length>0){for(t=0;t<i.length;++t)if(n=i[t],n instanceof RegExp&&n.test(r))return!0;return!1}if("object"==typeof i){var a=!1;if(i.hide instanceof Array)for(t=0;t<i.hide.length;++t)if(n=i.hide[t],n instanceof RegExp&&n.test(r)){a=!0;break}if(i.show instanceof Array)for(t=0;t<i.show.length;++t)if(n=i.show[t],n instanceof RegExp&&n.test(r))return!0;return!a&&!i.show}return!0}function a(t){var n=l.length;(n>e||i&&i.max&&n>i.max)&&(l=l.slice(-Math.floor(i.max/2)),l.push("Previous logs: "+n)),l.push(t)}var s=this,o="comScore",l=[];s.log=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.log&&r(e)&&console.log.apply(console,e)},s.warn=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.warn&&r(e)&&console.warn.apply(console,e)},s.error=function(){var e=n(arguments);a(e),"undefined"!=typeof console&&"function"==typeof console.error&&r(e)&&console.error.apply(console,e)},s.apiCall=function(e){for(var t=["API call to:",e],i=1;i<arguments.length;++i)t.push("arg"+i+":",arguments[i]);this.log.apply(this,t)},s.infoLog=function(){var e=["Trace log:"];e.push.apply(e,Array.prototype.slice.call(arguments)),this.log.apply(this,e)},s.deprecation=function(e,t){var i=["Deprecated API:",e,"is deprecated and will be eventually removed."];t&&i.push("Use",t,"instead."),this.warn.apply(this,i)},s.getLogHistory=function(){return l}}}(),function(){function e(e,i){for(var n=this,r=0;r<t.length;++r){var a=t[r];n[a]=function(t){return function(){return e[t].apply(e,Array.prototype.slice.call(arguments))}}(a)}n.setAsset=function(){i.apply(null,Array.prototype.slice.call(arguments))}}var t=["getAsset","getLabels","setLabels","setLabel","getLabel","getPlaybackSessionID"];return e}()),r=e.StreamingAnalytics.InternalStates,a=e.StreamingAnalytics.PlayerEvents;t.prototype=e.StreamingAnalytics.prototype,e.StreamingAnalytics.Plugin=t,t.extractParams=function(e,t,i){var n,r,a,s=t.length,o={},l=e.indexOf(t);if("undefined"==typeof i&&(i="&"),l>=0)for(a=e.substr(l+s).split(i),n=0,r=a.length;n<r;n++){var u=a[n].split("=");2===u.length&&(o[u[0]]=decodeURIComponent(u[1]))}return o},t.viewNotify=function(e,t){var n,r;i.isBrowser()?(n=window,r=document):(n={},r={location:{href:""},title:"",URL:"",referrer:"",cookie:""});var a=t.getLiveEndpointURL(),s="undefined",o=n.comScore||n.sitestat||function(e){var a,o,l,u,d,c="comScore=",f=r.cookie,p="",h="indexOf",v="substring",g="length",m=i.browserAcceptsLargeURLs()?n.ns_.StreamingAnalytics.Constants.URL_LENGTH_LIMIT:n.ns_.StreamingAnalytics.Constants.RESTRICTED_URL_LENGTH_LIMIT,y="&ns_",_="&",b=n.encodeURIComponent||escape;if(f[h](c)+1)for(u=0,l=f.split(";"),d=l[g];u<d;u++)o=l[u][h](c),o+1&&(p=_+unescape(l[u][v](o+c[g])));e+=y+"_t="+ +new Date+y+"c="+(r.characterSet||r.defaultCharset||"")+p,e.length>m&&e.indexOf(_)>0&&(a=e.substr(0,m-8).lastIndexOf(_),e=(e.substring(0,a)+y+"cut="+b(e.substring(a+1))).substr(0,m)),t.getPlatformAPI().httpGet(e),typeof n.ns_p===s&&(n.ns_p={src:e}),n.ns_p.lastMeasurement=e},l=decodeURIComponent||unescape,u={},d=a.indexOf("?");if(d>=0&&d<a.length-1){for(var c=a.substring(d+1).split("&"),f=0,p=c.length;f<p;f++){var h=c[f],v=h.split("=");2==v.length&&(u[v[0]]=l(v[1]))}a=a.substring(0,d+1)}var g=u;if(typeof e!==s){for(var m in e)e.hasOwnProperty(m)&&(g[m]=e[m]);var y=[],_=n.encodeURIComponent||escape;for(m in g)y.push(_(m)+"="+_(g[m]));/[\?\&]$/.test(a)||(a+="&"),a+=y.join("&")}return o(a)}}),function(e){"use strict";return"undefined"!=typeof ns_&&ns_.StreamingAnalytics&&ns_.StreamingAnalytics.Plugin?void e(ns_):void("undefined"!=typeof console&&console.error&&console.error("The comScore Streaming Analytics library was not properly loaded."))}(function(ns_){function BrightcovePlayerPlugin(e,t){function i(){$.log("onVolumeChange"),F()}function n(){$.log("onFullScreenChange"),V()}function r(){$.log("dispose"),$.notifyEnd(),c(),$.release()}function a(){$.log("onDurationChange"),Y=Math.max(Math.floor(1e3*e.duration()),0),Y=isFinite(Y)?Y:0,$.setAssetLabel("ns_st_cl",Y,!0),$.setAssetLabel("ns_st_el",Y,!0)}function s(e){$.log("onWaiting"),oe||L(e),R()}function o(){$.log("onPlaying"),he||(clearTimeout(R.timerId),R._notifyBufferWorkerStarted=!1,R.timerId=null,0==C()&&$.notifyPlay(0))}function l(e,t){return $.log("OnPreMeasurement - Current State:"+e+" Event:"+t),oe||L(),he||t!=ns_.StreamingAnalytics.PlayerEvents.PLAY||(ke=!1),e!=ns_.StreamingAnalytics.InternalStates.PLAYING||t!=ns_.StreamingAnalytics.PlayerEvents.PAUSE||he?e!=ns_.StreamingAnalytics.InternalStates.PLAYING||t!=ns_.StreamingAnalytics.PlayerEvents.END||he||(P(C()),fe=!1,pe=!0,Se=!0):($.log("Pausing Content"),P(C())),!(t==ns_.StreamingAnalytics.PlayerEvents.PLAY&&!fe&&!he)}function u(){$=new ns_.StreamingAnalytics.Plugin(t,Q,J,Z,{position:C,preMeasurement:l}),$.log("init"),e&&e.bigPlayButton&&t&&t.trackplaybutton&&e.bigPlayButton.on("click",x),"undefined"!=typeof cs_vce_&&(cs_vce_.init("StreamingAnalytics",{playerId:e.id(),streamSense:$}),$.setHttpGet(function(t,i){"undefined"!=typeof cs_vce_?cs_vce_.getViewability(e.id(),function(e){var n=win.encodeURIComponent||escape,r=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];"undefined"!=typeof s&&null!=s&&t.indexOf(n(a)+"=")==-1&&r.push(n(a)+"="+n(e[a]))}t+="&"+r.join("&"),imgHttpGet(t,i)}):imgHttpGet(t,i)})),Utils.extend(X,{attachTo:d,detach:c}),d(e),M(),f(),$.setLabel("ns_ap_pn","js",!0),$.setLabel("ns_ap_pfm","html",!0),q()}function d(t){if(t){ce&&c(),e=t;for(var i in ue)ue.hasOwnProperty(i)&&p(i,ue[i]);for(var i in de)de.hasOwnProperty(i)&&p(i,de[i]);$.setSmartStateDetection(!he),$.setDetectEnd(!0),$.setDetectPause(!0),$.setDetectPlay(!0),$.setDetectSeek(!0),ce=!0}}function c(){$.log("detach");for(var e in ue)ue.hasOwnProperty(e)&&h(e,ue[e]);for(var e in de)de.hasOwnProperty(e)&&h(e,de[e]);$.setSmartStateDetection(!1),$.setDetectEnd(!1),$.setDetectPause(!1),$.setDetectPlay(!1),$.setDetectSeek(!1),ce=!1}function f(){X.dispose=r}function p(t,i){$.log("bind: "+t),e.on(t,i)}function h(t,i){$.log("unbind: "+t),e.off(t,i)}function v(){$.log("playing: "+C()),oe&&(he||(P(C()),me||(!K&&Ee?(ve++,ke=!0):!K&&we&&(ve=1),Ee=!1,we=!1,$.setAsset(H(),!1,U(),!0),me=!0),fe=!0,pe=!1,Se=!1))}function g(){$.log("pause: "+C())}function m(e){$.log("ended"),he||(ve=1,P(C()),$.notifyEnd(C()),$.setAssetLabel("ns_st_pn","1",!0),fe=!1,pe=!0)}function y(){var e=ye;ye=C();var t=_e;_e=+new Date;var i=ye-e,n=_e-t;Se&&(P(C()),$.setAssetLabel("ns_st_pn","1",!0),ve=1,fe=!0,pe=!1,Se=!1),n<se&&0==i||(0==i?R():be&&N())}function _(){if($.log("adStart"),oe&&!(he||e.ads&&"ad-playback"!=e.ads.state&&"preroll?"!=e.ads.state)){clearTimeout(R.timerId),R._notifyBufferWorkerStarted=!1,R.timerId=null,$.setSmartStateDetection(!1),he=!0,fe&&$.notifyEnd(ye);var t=1e3*e.duration();!isNaN(t)&&ye>t-re&&(pe=!0),$.setAsset(H(),!1,null,!0),ye>ne&&fe&&!pe?Ee=!0:pe?(Ee=!1,we=!0):(Ee=!1,we=!1),ke&&(ve--,ke=!1),e.onceux?$.notifyPlay(C()):$.notifyPlay(),k(),me=!1}}function b(){$.log("adPause"),he&&(I(),e.onceux?$.notifyPause(C()):$.notifyPause())}function S(){$.log("adResume"),he&&(e.onceux?$.notifyPlay(C()):$.notifyPlay(),k())}function T(){$.log("adEnd"),he&&(I(),e.onceux?$.notifyEnd(C()):$.notifyEnd(),he=!1,$.setSmartStateDetection(!0),$.setDetectEnd(!0),$.setDetectPause(!0),$.setDetectPlay(!0),$.setDetectSeek(!0),me=!1,v())}function E(e){$.log("adTimeout"),he&&(I(),$.notifyEnd({ns_st_er:ie}),he=!1,$.setSmartStateDetection(!0),$.setDetectEnd(!0),$.setDetectPause(!0),$.setDetectPlay(!0),$.setDetectSeek(!0),me=!1,v())}function w(){he=!1,$.notifyEnd({ns_st_er:te}),$.setSmartStateDetection(!0),$.setDetectEnd(!0),$.setDetectPause(!0),$.setDetectPlay(!0),$.setDetectSeek(!0),me=!1,v()}function k(){I(),G=setInterval(w,ee)}function I(){"undefined"!=typeof G&&(clearInterval(G),G=void 0)}function A(){var t;return!Y||he?(t=e.onceux?e.onceux.duration():e.duration(),isNaN(t)?0:Math.max(Math.floor(1e3*t),0)):(t=Y,isFinite(t)?t:0)}function C(){var t;return t=he?NaN:e.onceux&&e.onceux.currentTime?isNaN(e.onceux.currentTime())?0:Math.max(Math.floor(1e3*e.onceux.currentTime()),0):isNaN(e.currentTime())?0:Math.max(Math.floor(1e3*e.currentTime()),0)}function j(){return!e.paused()}function P(e){ye=e,_e=+new Date,B(e)}function x(e){$.log("onBigPlayButtonClick"),Te||($.notifyEngage(),Te=!0)}function L(){if($.log("onLoadStart"),oe||(oe=!0),ve=1,ge=0,me=!1,M(),z=e&&e.mediainfo&&e.mediainfo.id?e.mediainfo.id:(+new Date).toString(16),e&&e.mediainfo&&e.mediainfo.name)W=e.mediainfo.name;else{var t=document.getElementById(e.id());t.title&&(W=t.title)}W?$.createPlaybackSession({ns_st_pl:W},!0):$.createPlaybackSession({},!0),e&&e.mediainfo&&e.mediainfo.duration&&(Y=Math.max(Math.floor(1e3*e.mediainfo.duration),0)),e&&e.mediainfo&&e.mediainfo.cue_points||(ge=0),he?(I(),he=!1,$.notifyEnd(),$.setSmartStateDetection(!0),$.setDetectEnd(!0),$.setDetectPause(!0),$.setDetectPlay(!0),$.setDetectSeek(!0)):$.notifyEnd(),fe=!1,pe=!0,j()&&v()}function O(){$.log("loadedMetadata"),M()}function D(){$.log("loadedData"),M()}function R(){R._notifyBufferWorkerStarted||be&&!N._notifyBufferEndWorkerStarted||(R._notifyBufferWorkerStarted=!0,R.timerId=setTimeout(function(){$.log("Buffer start!"),R._notifyBufferWorkerStarted=!1,be=!0,$.notifyBufferStart(C())},le))}function N(){!N._notifyBufferEndWorkerStarted&&be&&(N._notifyBufferEndWorkerStarted=!0,setTimeout(function(){$.log("Buffer Stop"),N._notifyBufferEndWorkerStarted=!1,be=!1,$.notifyBufferStop(C())},le))}function M(){if(e)if(e.onceux)$.log("Plugin onceux detected"),c(),de={"onceux-adroll-start":_,"onceux-linearad-pause":b,"onceux-linearad-resume":S,"onceux-adroll-complete":T},d(e);else if(e.ssai)$.log("Plugin ssai detected"),c(),de={"ads-ad-started":_,"ads-pause":b,"ads-play":S,"ads-ad-ended":T},d(e);else if(e.ima3&&!e.FreeWheelPlugin){$.log("Plugin ima3 detected"),c();var t=function(){$.log("ima3-ready"),e.ima3.version&&parseInt(e.ima3.version.split(".")[0])<2||($.log("Plugin ima3 version",e.ima3.version,"detected"),c(),de={"ads-ad-started":_,"ads-pause":b,"ads-play":S,"ads-ad-ended":T,adend:T,adtimeout:E},d(e))};e.ima3.version&&parseInt(e.ima3.version.split(".")[0])<2?de={"ima3-ready":t,adstart:_,adend:T,adtimeout:E}:t(),d(e)}else e.FreeWheelPlugin?($.log("Plugin FreeWheelPlugin"),c(),de={"ads-ad-started":_,"ads-pause":b,"ads-play":S,"ads-ad-ended":T,adtimeout:E},d(e)):e.ads&&($.log("Normal Ads plugin detected"),c(),de={adstart:_,adend:T,adtimeout:E},d(e))}function U(){return[{prefix:"",map:e&&e.mediainfo?e.mediainfo.custom_fields:{}},{prefix:"MediaInfo",map:e?e.mediainfo:{}}]}function B(e){if(K&&!he){for(var t=1,i=0;i<K.length;i++){var n=K[i],r=n.name&&"post-roll"==K[i].name.toLowerCase(),a=n.name&&"pre-roll"==K[i].name.toLowerCase();if("ad"==n.type.toLowerCase()&&!r&&!a){if(!(e+ae>Math.floor(1e3*n.time)))break;t++}}ve=t}}function F(){var t=e.muted()?0:Math.ceil(100*e.volume());$.setLabel("ns_st_vo",t,!0)}function V(){var t="norm";(document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.fullscreenElement||e.isFullscreen())&&(t="full"),$.setLabel("ns_st_ws",t,!0)}function q(){$.setLabel("ns_st_br","0",!0),V(),F()}function H(){$.log("getClipLabels");var t={};if(t.ns_st_cs=[e.width(),e.height()].join("x"),t.ns_st_ci=he?(+new Date).toString(16):String(z),he){if(t.ns_st_pr="",t.ns_st_ep="",t.ns_st_pn="1",t.ns_st_tp="1",t.ns_st_el="0",e.onceux)t.ns_st_cl="0";else if(e.ima3&&!e.FreeWheelPlugin){var i,n;(i=e.ima3.adsManager)&&i.getCurrentAd&&(n=i.getCurrentAd())?(t.ns_st_ami=n.getAdId(),t.ns_st_cs=n.getWidth()+"x"+n.getHeight(),t.ns_st_amt=n.getTitle(),t.ns_st_ams="ima",t.ns_st_cl=1e3*n.getDuration()+""):(t.ns_st_ams="ima",t.ns_st_cl="0")}else e.FreeWheelPlugin?(t.ns_st_cl="0",t.ns_st_ams="freewheel"):e.ads&&(t.ns_st_cl="0");ye<ne?(t.ns_st_ad="pre-roll",t.ns_st_ct="va11"):fe&&!pe?(t.ns_st_ad="mid-roll",t.ns_st_ct="va12"):pe?(t.ns_st_ad="post-roll",t.ns_st_ct="va13"):(t.ns_st_ad="1",t.ns_st_ct="va00")}else W&&(t.ns_st_pr=W,t.ns_st_ep=W),t.ns_st_pn=ve>0?ve:1,t.ns_st_tp=ge,t.ns_st_cl=A(),t.ns_st_el=A(),t.ns_st_cu=e.currentSrc(),0==ge?t.ns_st_ct="vc00":ge>1?t.ns_st_ct="vc12":t.ns_st_ct="vc11";return e&&e.mediainfo&&e.mediainfo.custom_fields&&e.mediainfo.custom_fields.hasOwnProperty("ns_st_ty")?!e.mediainfo.custom_fields.hasOwnProperty("ns_st_ct")||0!=e.mediainfo.custom_fields.ns_st_ct.indexOf("ac")&&0!=e.mediainfo.custom_fields.ns_st_ct.indexOf("aa")?t.ns_st_ty="video":t.ns_st_ty="audio":t.ns_st_ty="video",t}var G,z,W,Y,K,X=this,Q="brightcove",J="1.5.1.190515",Z=bc&&bc.VERSION||"unknown",$=null,ee=18e4,te="w01",ie="w02",ne=1e3,re=1e3,ae=500,se=100,oe=!1,le=250,ue={loadstart:L,loadedmetadata:O,loadeddata:D,play:v,pause:g,ended:m,timeupdate:y,waiting:s,playing:o,volumechange:i,fullscreenchange:n,dispose:r,durationchange:a},de={},ce=!1,fe=!1,pe=!1,he=!1,ve=1,ge=0,me=!1,ye=0,_e=0,be=!1,Se=!1,Te=!1,Ee=!1,we=!1,ke=!1;u()}if("undefined"==typeof videojs)throw new Error("comScore Brightcove Player plugin requires Video.js");var Utils=Utils||{};Utils.filter=function(e,t){var i={};for(var n in t)t.hasOwnProperty(n)&&e(t[n])&&(i[n]=t[n]);return i},Utils.extend=function(e){var t,i=arguments.length;e=e||{};for(var n=1;n<i;n++)if(t=arguments[n])for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e};for(var i=0;i<5;++i)!function(comScorePluginName){videojs.plugin(comScorePluginName,function(options){var currentPlayer=this,oldPluginInstance=currentPlayer["__"+comScorePluginName+"Instance"];oldPluginInstance&&oldPluginInstance.dispose(),options="string"==typeof options?eval("(function(){return "+options+";})()"):options,options&&"object"!=typeof options&&"undefined"!=typeof console&&console.error&&console.error("The comScore Brightcove player plugin requires a valid configuration object."),currentPlayer["__"+comScorePluginName+"Instance"]=new BrightcovePlayerPlugin(currentPlayer,options||{})})}(0==i?"comscore":"comscore"+i)})})();var brightcoveVansAdapter=function(){var e=function(e){var t=function(){var e,t=function(){var e=function(e){return"undefined"!==typeof e},t=function(){var t="u";try{e(window.opera)&&e(window.opera.buildNumber)?t="o":e(window.mozInnerScreenY)?t="g":e(window.chrome)&&e(window.chrome.csi)?t="c":e(window.msWriteProfilerMark)&&e(window.crypto)?t="e":e(window.attachEvent)||e(window.msCrypto)?t="i":e(window.WebKitPoint)&&(t="w")}catch(e){}return t}(),i=function(){var t=function(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];""!==n&&"null"!==n&&"undefined"!==n&&null!==n&&e(n)||delete t[i]}return t},i=function(t){var i={},n,r;for(r in t)t.hasOwnProperty(r)&&(n=t[r],e(i[n])?i[n]+=r:i[n]=r);t={};for(r in i)i.hasOwnProperty(r)&&(n=i[r],t[n]=r);return t};return function(){var n=function(){var t={g:"",q:""};try{t.q=window.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href}catch(a){var i=a.message,i=i.substring(i.lastIndexOf("<")+1,i.lastIndexOf(">")),n;if(n=e(i))if(n=!1,e(window.navigator)&&e(window.navigator.userAgent)){var r=window.navigator.userAgent.match(/Firefox\/([\.0-9]+)/);null!==r&&2==r.length&&(r=r[1].split("."),3==parseInt(r[0],10)&&6>=parseInt(r[1],10)&&(3==r.length?13>=parseInt(r[2],10)&&(n=!0):n=!0))}n&&(t.g=i)}return t},r={};try{r.a=encodeURIComponent(top.location.href)}catch(e){}try{r.b=encodeURIComponent(parent.location.href)}catch(e){}if(window!=top){try{r.c=encodeURIComponent(parent.document.referrer)}catch(e){}try{r.e=encodeURIComponent(window.document.referrer)}catch(e){}}try{r.d=encodeURIComponent(window.location.href)}catch(e){}try{var a=n();r.g=encodeURIComponent(a.g);r.q=encodeURIComponent(a.q)}catch(e){}var r=t(r),r=i(r),n=[],s;for(s in r)r.hasOwnProperty(s)&&n.push({key:s,val:r[s]});n.sort(function(e,t){return e.val.length>t.val.length?1:e.val.length<t.val.length?-1:0});return n}()}();return{br:t,urls:i}},i=function(e,t,i){var n=["//"+v.getFwServerDomain(),"/db2/video/",t+"/",i+"/","skeleton.js?videoId=",o.getVideoId()].join("");t=function(e){n=[n,"&adsafe_url=",e.val,"&adsafe_type=",e.key].join("")};try{e.urls.forEach(t),n=[n,"&adsafe_jsinfo=br:",e.br].join("")}catch(e){a.report(c.DIAGNOSTIC.BUILD_VIDEOAPI_URL,e)}return n},n=function(){if(this.readyState==c.XHR.READY_STATE.DONE)if(this.status==c.HTTP.STATUS_CODE.OK)try{e("failed"===JSON.parse(this.responseText).action?c.BLOCKING_RESPONSE.BLOCK:c.BLOCKING_RESPONSE.SAFE)}catch(e){a.report(c.DIAGNOSTIC.BLOCK_AD,e)}else a.report(c.DIAGNOSTIC.BLOCKING_URL_REQUEST_ERR,{message:this.status})};return{init:function(r,a,s){var o=t();r=i(o,r,a);e=s;v.sendUrlRequest(r,n)}}}(),i=function(){var e=[];return{addCallback:function(t,i){var n=0;i=i||Number.MAX_VALUE;e.push(function(){n<i&&(n++,t.apply({},arguments))})},executeCallbacks:function(){var t=arguments;e.forEach(function(e){e.apply({},t)})}}},n=function(){var e=window;return{getWin:function(){return e},setWin:function(t){(t=t&&t.ownerDocument)&&t.defaultView?e=t.defaultView:t&&t.parentWindow?e=t.parentWindow:a.report(c.DIAGNOSTIC.SET_CONTEXT,{message:""})},getDoc:function(){return e.document}}}(),r=function(){var e,t=[],i=!1,n=function(e){var t="";Object.keys(e).forEach(function(i){-1===["advEntityId","pubEntityId","partner","debug"].indexOf(i)&&(t+="&"+i+"="+e[i])});return t},l=function(i){if(o.isEstablished()){var s;try{if(s=v.stringify(i))if("AdImpression"===i.messageType)v.getWindow()[e](s);else v.getWindow().postMessage(s,"*")}catch(e){a.report(c.DIAGNOSTIC.DISPATCH_MESSAGE,e)}}else if(o.canNeverBeEstablished()){s=v.getFwServerDomain();var l=r.config;try{"AdImpression"===i.messageType&&(r.isCmTag?v.sendUrlRequest(["//"+s,"/mon?",n(l)].join("")):r.isFwTag&&v.sendUrlRequest(["//"+s,"/rfw/st/",l.advEntityId+"/"+l.pubEntityId,"/skeleton.js"].join("")))}catch(e){a.report(c.DIAGNOSTIC.DISPATCH_MESSAGE,e)}}else try{t.push(i)}catch(e){a.report(c.DIAGNOSTIC.CACHE_MESSAGE,e)}},u=function(e,t){v.sendMonitoringDebugPixel(c.MONITORING.AD_STOPPED,r.monitoringQS());d(e,t)},d=function(e,t){try{l({messageType:e,id:o.getVideoId(),time:v.now(),partner:s.getPartnerCode(),eventData:t})}catch(e){a.report(c.DIAGNOSTIC.SEND_EVENT,e)}},f={AdImpression:function(e,t){var n=h.getInjector();i||(t&&(t.ext_passthrough=r.passThroughObj),i=!0,v.sendMonitoringDebugPixel(c.MONITORING.AD_IMPRESSION,r.monitoringQS()),n.onInjectionResolution(function(){d(e,t)}),n.resolveInjection())},AdStopped:u,AdVideoComplete:u,AdError:function(e,t){v.sendMonitoringDebugPixel(c.MONITORING.AD_ERROR,r.monitoringQS());d(e,t)}};return{sendEvent:function(e,t){var i=f[e]||d;h.vans.hasBegun()&&i(e,t)},setImpressionCallback:function(t){e=t},flushUnsentEvents:function(){try{t.forEach(l)}catch(e){a.report(c.DIAGNOSTIC.FLUSH_UNSENT_EVENTS,e)}},passThroughObj:{},monitoringQS:function(){},clearSessionState:function(){i=!1;t.length=0}}}(),a=function(){var e={};return{report:function(t,i,n){if(!e[t])try{e[t]=!0;var r="//"+v.getFwServerDomain()+"/jsdiagnostic?code:vans-js_"+encodeURIComponent(s.getPartnerCode())+"_"+t+"&err:"+encodeURIComponent(i.message);n&&(r+="&config:"+encodeURIComponent(JSON.stringify(n)));v.sendUrlRequest(r)}catch(e){}}}}(),s=function(){return{initCM:function(e,t){f.initCM(e,t)},initFW:function(e,t,i){f.initFW(e,t,i)},getPartnerCode:function(){return h.get().partnerCode},getPassThroughObj:function(){return h.get().passThroughObj},getAltMonDomain:function(){return h.get().monDomain},hasDebugEnabled:function(){return h.get().debugEnabled}}}(),o=function(){var e,t=!1,i=!1,n=function(e,i){e==s()&&(t=!0,r.setImpressionCallback(i),v.sendMonitoringDebugPixel(c.MONITORING.HANDSHAKE_SUCCESS,r.monitoringQS()),r.flushUnsentEvents());return t?c.VIDEO_CHANNEL:null},s=function(){e||(e=v.generateUID());return e};return{getVideoId:s,setNodeInterface:function(e){var t,i,r,o=s();try{t="IASid"+o,i="blockAd"+o,r="getIasVidBridgeVersion"+o,e.className+=" integral-vid-"+o,e[i]=v.noop,e[t]=n,e[r]=function(){return"2"},e.getVersion=function(){return c.INTERNAL_VERSION}}catch(e){a.report(c.DIAGNOSTIC.SET_NODE_INTERFACE,e)}},isEstablished:function(){return t},canNeverBeEstablished:function(){return i},giveUpOnHandshaking:function(){i=!0;r.flushUnsentEvents()},resetHandshake:function(){i=t=!1}}}(),l=function(){var e=i();return{addCallback:function(t){e.addCallback(t,1)},executeCallbacks:e.executeCallbacks}},u=function(e){var t=!1,i=!1,n=new l,r=!1,s=function(e,t){var i,n=v.getFwServerDomain(),r=function(e){var t="";Object.keys(e).forEach(function(i){"advEntityId"!=i&&"pubEntityId"!=i&&"partner"!=i&&(t+="&"+i+"="+e[i])});return t};try{i=["//",n,e,"?videoId=",o.getVideoId(),r(t)].join("")}catch(e){a.report(c.DIAGNOSTIC.BUILD_SRC_URL,e)}return i},u=function(a){var s,l=function(){!t&&e.parentNode?(e.parentNode.appendChild(a),clearInterval(s),i=t=!0,v.sendMonitoringDebugPixel(c.MONITORING.FWJS_INJECTED,p.buildMonitoringQS())):r&&(i=!0,clearInterval(s),o.giveUpOnHandshaking());i&&n.executeCallbacks()};l();t||(s=setInterval(l,200))},d=function(){var t=e&&e.ownerDocument,i=t&&t.parentWindow;return!!(t&&t.defaultView||i)};return{injectTagScript:function(e,t){var n,r=v.getDocument();if(d()){var a=function(e){v.sendMonitoringDebugPixel(c.MONITORING.FWJS_LOAD_SUCCESS,p.buildMonitoringQS())},l=function(e){o.giveUpOnHandshaking();v.sendMonitoringDebugPixel(c.MONITORING.FWJS_LOAD_ERROR,p.buildMonitoringQS())};try{n=r.createElement("script"),n.src=s(e,t),n.addEventListener("load",a),n.addEventListener("error",l),u(n)}catch(e){o.giveUpOnHandshaking(),v.sendMonitoringPixel(c.MONITORING.INJECTION_ERR)}}else i=!0,o.giveUpOnHandshaking()},sendInjectionDiagnostics:function(){var t=e&&e.ownerDocument,i=e&&e.parentNode,n=t&&(t.defaultView||t.parentWindow),r=c.MONITORING.AD_NODE_TYPE+"_"+(e?e.constructor.name||e.nodeName||typeof e:"null");e||v.sendMonitoringDebugPixel(c.MONITORING.AD_NODE_NULL,p.buildMonitoringQS());e&&!i&&v.sendMonitoringDebugPixel(c.MONITORING.AD_NODE_DETACHED,p.buildMonitoringQS());e&&!t&&v.sendMonitoringDebugPixel(c.MONITORING.AD_NODE_NO_DOC,p.buildMonitoringQS());t&&!n&&v.sendMonitoringDebugPixel(c.MONITORING.AD_NODE_NO_WINDOW,p.buildMonitoringQS());v.sendMonitoringDebugPixel(r,p.buildMonitoringQS())},onInjectionResolution:function(e){n.addCallback(e);i&&n.executeCallbacks()},resolveInjection:function(){r=!0}}},d=function(){var e,t=!1,i=function(t){var n,r=!1;try{n=JSON.parse(t.data),r="unloadComplete"===n.msg&&n.id==o.getVideoId()}catch(e){}r&&(e(),v.getWindow().removeEventListener("message",i))};return{registerMeasurementCompleteHandler:function(n){e=n;t||(v.getWindow().addEventListener("message",i),t=!0)}}},c={INTERNAL_VERSION:"3.6.0",VIDEO_CHANNEL:"jv3",PROD_DOMAIN:"pixel.adsafeprotected.com",DIAGNOSTIC_MONITORING_DOMAIN:"spixel.adsafeprotected.com",S4_ITERATIONS:8,EVENTS:{AD_IMPRESSION:"AdImpression"},PSUEDO_IMPRESSION_ID_PREFIX:"vidId_",DIAGNOSTIC:{INIT_FW:"ifw",INIT_CM:"icm",FLUSH_UNSENT_EVENTS:"fue",CACHE_MESSAGE:"cm",SEND_EVENT:"se",BLOCK_AD:"ba",SEND_MONITORING_PIXEL:"smp",SET_NODE_INTERFACE:"sni",BUILD_SRC_URL:"bsurl",BUILD_VIDEOAPI_URL:"bvu",BLOCKING_URL_REQUEST_ERR:"blk_url_req_err",DISPATCH_MESSAGE:"dm",SET_CONTEXT:"sc",STRINGIFY_EVENT_ERROR:"ser"},MONITORING:{INJECTION_ERR:"inj_err",VANS_INITIALIZED:"init",HANDSHAKE_SUCCESS:"hs",AD_IMPRESSION:"ai",DEFERRED_INTERFACE:"vans_defer",AD_STOPPED:"adstop",AD_ERROR:"aderr",AD_NODE_NULL:"adnode_null",AD_NODE_DETACHED:"adnode_detached",AD_NODE_NO_DOC:"adnode_nodoc",AD_NODE_NO_WINDOW:"adnode_nowin",AD_NODE_TYPE:"adnode_type",FWJS_INJECTED:"fwjsinj",FWJS_LOAD_SUCCESS:"fwjsload",FWJS_LOAD_ERROR:"fwjsload_err",IMPRESSION_DOMAIN_BLOCKING:"impblock"},HTTP:{VERBS:{GET:"GET"},STATUS_CODE:{OK:200}},BLOCKING_RESPONSE:{BLOCK:"block",SAFE:"safe"},XHR:{READY_STATE:{DONE:4}}},f=function(){var e=function(e,t,i,n){o.setNodeInterface(i);"function"===typeof t.onMeasurementComplete&&(new d).registerMeasurementCompleteHandler(t.onMeasurementComplete);var r={};Object.getOwnPropertyNames(t).forEach(function(e){"debug"!==e&&"onMeasurementComplete"!==e&&(r[e]=t[e])});n.injectTagScript(e,r)};return{initCM:function(t,i){var r;if(!h.vans.hasBegun()){if(!t||!t.partner)throw Error("Missing partner code");n.setWin(i);h.setPreErrorConfig(t,"cm");try{if(!t.anId)throw Error("Missing anId");h.vans.begin();r=new u(i);h.setInjector(r);h.setConfig(t);v.sendMonitoringDebugPixel(c.MONITORING.VANS_INITIALIZED,p.buildMonitoringQS());v.sendMonitoringDebugPixel(c.MONITORING.IMPRESSION_DOMAIN_BLOCKING,p.buildMonitoringQS(),v.getFwServerDomain());r.sendInjectionDiagnostics();e("/jsvid",t,i,r)}catch(e){a.report(c.DIAGNOSTIC.INIT_CM,e)}}},initFW:function(i,r,s){var o,l;if(!h.vans.hasBegun()){if(!i||!i.partner)throw Error("Missing partner code");n.setWin(r);h.setPreErrorConfig(i,"fw");try{if(!i.advEntityId||!i.pubEntityId)throw Error("Missing client id: advEntityId: "+i.advEntityId+" ,pubEntityId: "+i.pubEntityId);h.vans.begin();l=new u(r);h.setInjector(l);h.setConfig(i);v.sendMonitoringDebugPixel(c.MONITORING.VANS_INITIALIZED,p.buildMonitoringQS());v.sendMonitoringDebugPixel(c.MONITORING.IMPRESSION_DOMAIN_BLOCKING,p.buildMonitoringQS(),v.getFwServerDomain());l.sendInjectionDiagnostics();s&&t.init(i.advEntityId,i.pubEntityId,s);o="/fwjsvid/st/"+i.advEntityId+"/"+i.pubEntityId+"/skeleton.js";e(o,i,r,l)}catch(e){a.report(c.DIAGNOSTIC.INIT_FW,e)}}}}}(),p={buildMonitoringQS:function(){var e=c.PSUEDO_IMPRESSION_ID_PREFIX+o.getVideoId(),t=h.getInfoParams();return["&chanId="+t.anId,"planId="+t.advEntityId,"placementId="+t.pubEntityId,"advId="+t.campId,"pubOrder="+t.placementId,"pubCreative="+t.creativeId,"impId="+(t.impId||e),"ts="+Date.now(),"custom="+c.INTERNAL_VERSION,"custom2=jv3&custom3="+h.get().tagType,"adsafe_par"].join("&")}},h=function(){var e={},t=!1,i={},n,a=function(t){"impId creativeId campId placementId advEntityId pubEntityId anId".split(" ").forEach(function(e){i[e]=t[e]});i.monDomain=e.monDomain},s=function(t){r.monitoringQS=p.buildMonitoringQS;r.passThroughObj=e.passThroughObj;Object.keys(t).forEach(function(e){r[e]=t[e]})};return{vans:{hasBegun:function(){return t},begin:function(){t=!0}},setInjector:function(e){n=e},getInjector:function(){return n},setPreErrorConfig:function(t,i){e.tagType=i;var n;n=t.partner;var r=/[^\w-.]/g;n="string"===typeof n?n.replace(r,""):n;e.partnerCode=n;e.debugEnabled=t.debug&&t.debug.enabled;e.debugEnabled&&(e.monDomain=t.debug.monDomain)},setConfig:function(t){a(t);e.passThroughObj={vv:c.INTERNAL_VERSION,vanstag:e.tagType,xcamp:i.campId,xplac:i.placementId,xcreat:i.creativeId,ximp:i.impId,xpc:e.partnerCode};e.config=t;s({isFwTag:"fw"===e.tagType,isCmTag:"cm"===e.tagType,config:t})},getInfoParams:function(){return i},get:function(){return e}}}(),v={now:function(){return(new Date).getTime()},sendMonitoringPixel:function(e){try{this.sendUrlRequest(["//"+v.getFwServerDomain(),"/mon?anId=10173&campId=",encodeURIComponent(s.getPartnerCode()),"&pubId=",encodeURIComponent("vans-js_"+e)].join(""))}catch(e){a.report(c.DIAGNOSTIC.SEND_MONITORING_PIXEL,e)}},sendMonitoringDebugPixel:function(){var e=[c.MONITORING.AD_STOPPED],t={};return function(i,n,r){var o=s.hasDebugEnabled(),l=-1<e.indexOf(i)&&t[i];if(o&&!l)try{var u=c.DIAGNOSTIC_MONITORING_DOMAIN,d=s.getAltMonDomain();r=r||d||u;var d=r===d?"925116":"10173",f=v.addProtocolToDomain(r),p=encodeURIComponent(i),h=encodeURIComponent(s.getPartnerCode()),g;g=n.replace(/=undefined&/g,"=&");v.sendUrlRequest(f+"/mon?anId="+d+"&campId="+h+"&pubId="+p+g);t[i]=!0}catch(e){a.report(c.DIAGNOSTIC.SEND_MONITORING_PIXEL,e)}}}(),sendUrlRequest:function(e,t){var i,n;if(e){i=this.getWindow();try{n=new i.XMLHttpRequest,t&&(n.onreadystatechange=t),n.open(c.HTTP.VERBS.GET,e),n.send()}catch(e){}}},stringify:function(e){if("AdImpression"!==e.messageType)return JSON.stringify(e);var t={};t.passthroughObj=s.getPassThroughObj();var i="";try{i=JSON.stringify(e)}catch(e){a.report(c.DIAGNOSTIC.STRINGIFY_EVENT_ERROR,e,t);return}return i},addProtocolToDomain:function(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e},getWindow:function(){return n.getWin()},getDocument:function(){return n.getDoc()},generateUID:function(){var e,t="";try{for(e=0;e<c.S4_ITERATIONS;e++)t=[t,Math.floor(65536*(1+Math.random())).toString(16).substring(1)].join("")}catch(e){}return t},getFwServerDomain:function(){return e||c.PROD_DOMAIN},noop:function(){}};return{initFW:s.initFW,initCM:s.initCM,sendEvent:r.sendEvent}},t=function(){var e=function(e){return null!==e&&"object"===typeof e};return{extend:function(e,i){for(var n in i)t.isDefined(i[n])&&i.hasOwnProperty(n)&&(e[n]=i[n]);return e},isObject:e,isDefined:function(e){return"undefined"!==typeof e},forEachKeyIn:function(t,i){if(e(t)&&"function"===typeof i)for(var n=Object.keys(t),r=n.length-1;0<=r;r--)i(n[r])}}}(),i=function(i){var r=this,a,s=t.isDefined(r)&&t.isDefined(r.ima3)?!0:!1,o=t.isDefined(r)&&t.isDefined(r.ssai)?!0:!1,l=s?n.IMA_TO_IAS_EVENT_MAP:n.ADS_TO_IAS_EVENT_MAP;if(t.isObject(i)&&t.isDefined(i.anId)&&t.isDefined(r)&&t.isDefined(r.ads)){var u=function(e){var t=l[e],i=!!n.FINAL_EVENTS[t];return function(e){c(t);i&&r.off("fullscreenchange")}},d=function(e){r.on(e,u(e))},c=function(e){var t=r.ads.ad.duration,i;i=r.muted()?0:s?+r.ima3.adsManager.getVolume().toFixed(2):+r.volume().toFixed(2);t={ad_duration:t,volume:i,width:r.width(),height:r.height()};if("AdVideoStart"===e||"resizeAd"===e)t.viewMode=r.isFullscreen()?"fullscreen":"normal";a&&a.sendEvent(e,t)},f=function(l){var u,f;try{t.isDefined(a)&&d("fullscreenchange");a=new e;var p,h={partner:"Brightcove",pubOrder:"Video Orders",pubId:"Unknown Advertiser",placementId:r.ads.ad.id},v;if(s){var g=r.ima3.currentAd||r.ima3.adsManager.getCurrentAd(),m={},y=g&&g.getWrapperCreativeIds().length;m.pubId=g.getAdvertiserName()||void 0;m.pubOrder=g.getDealId()||void 0;y?(m.placementId=g.getWrapperAdIds()[0],m.pubCreative=g.getWrapperCreativeIds()[0]):(m.placementId=g.getAdId(),m.pubCreative=g.getCreativeId())}else if(o){var _=r.ssai().currentTimelineState().linearAd,b=_.primaryCreative().creativeExtensions[0],S=t.isDefined(b.wrapperChains)&&b.wrapperChains.length,g={};g.pubId=_.advertiser()||void 0;S?(g.placementId=b.wrapperChains[0].adID,g.pubCreative=b.wrapperChains[0].creativeID):(g.placementId=_.id(),g.pubCreative=_.primaryCreative().id);m=g}else m={};v=m;p=t.extend(h,v);f=t.extend(p,i);u=r.el();a.initCM(f,u);c("AdImpression");c("AdVideoStart")}catch(e){u=f;try{(new Image).src="//pixel.adsafeprotected.com/jsdiagnostic?code:vans-js-adapter_"+n.PARTNER_ID+"_"+n.INTERNAL_VERSION+"_initCM&err:"+encodeURIComponent(e.message)+"&config:"+encodeURIComponent(JSON.stringify(u))}catch(e){}}};(function(){var e=s?"ima3-started":"ads-ad-started";t.forEachKeyIn(l,d);r.on(e,f)})()}},n={PARTNER_ID:"brightcove",INTERNAL_VERSION:"1.2.2",ADS_TO_IAS_EVENT_MAP:{"ads-loaded":"AdLoaded","ads-ad-started":"AdVideoStart","ads-first-quartile":"AdVideoFirstQuartile","ads-midpoint":"AdVideoMidpoint","ads-third-quartile":"AdVideoThirdQuartile","ads-ad-ended":"AdVideoComplete","ads-click":"AdClickThru","ads-ad-skipped":"AdSkipped",adpause:"AdPaused",adplay:"AdPlaying",advolumechange:"AdVolumeChange",fullscreenchange:"resizeAd"},IMA_TO_IAS_EVENT_MAP:{"ima3-loaded":"AdLoaded","ima3-started":"AdVideoStart","ima3-first-quartile":"AdVideoFirstQuartile","ima3-midpoint":"AdVideoMidpoint","ima3-third-quartile":"AdVideoThirdQuartile","ima3-complete":"AdVideoComplete","ima3-paused":"AdPaused","ima3-resumed":"AdPlaying","ima3-click":"AdClickThru","ima3-volume-changed":"AdVolumeChange","ima3-ad-error":"AdError","ads-ad-skipped":"AdSkipped",fullscreenchange:"resizeAd"},FINAL_EVENTS:{AdError:!0,AdVideoComplete:!0,AdSkipped:!0}},r=videojs.registerPlugin||videojs.plugin;i.VERSION="1.2.2";r("integral",i)}();var bc=core.createInitializer(null,function(e,t,i){var n;var r=parseInt(null,10);var a=false;i.playlist();if(r===r&&isFinite(r)&&r>=0){i.playlist.autoadvance(r)}});BrightcovePlayerCore.restoreFirstVideojs();return bc}(window,document);if(typeof vjsCssText!=="undefined"){vjsCssEl=document.querySelector("#"+vjsCssId);if(vjsCssEl){(function(){var e=function(e){return(e||"0.0.0").split(".").map(function(e){return Number(e)})};var t=e(vjsCssEl.getAttribute("data-vjs-version"));var i=e(bc.videojs.VERSION);if(i[0]>t[0]||i[0]===t[0]&&i[1]>t[1]||i[0]===t[0]&&i[1]===t[1]&&i[2]>t[2]){vjsCssEl.parentNode.removeChild(vjsCssEl);vjsCssEl=null;refNode=head.firstChild}})()}if(!vjsCssEl){vjsCssEl=createStyleSheet(vjsCssText,refNode);vjsCssEl.id=vjsCssId;vjsCssEl.setAttribute("data-vjs-version",bc.videojs.VERSION)}refNode=vjsCssEl.nextSibling}if(typeof cssText!=="undefined"){cssEl=document.querySelector("."+cssClass);if(!cssEl){cssEl=createStyleSheet(cssText,refNode);cssEl.className=cssClass}}function parseEmbeds(){var e=[].concat(Array.prototype.slice.call(document.querySelectorAll("video")),Array.prototype.slice.call(document.querySelectorAll("video-js")));for(i=0;i<e.length;i++){video=e[i];if(video.getAttribute("data-player")==="wt1SkxgXE"&&video.getAttribute("data-embed")==="default"){if(bc.videojs.getPlayer(video)){bc.videojs.log("Ignoring already initialized player");continue}bc(video)}}}parseEmbeds();return bc});