(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03e18eaa"],{"0758":function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,'.overlay.is-overlay{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:inherit}.overlay.is-overlay .loader{margin:auto;-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border-radius:50%;content:""}.overlay.is-overlay .loader.is-small{height:1em;width:1em;border-width:0 0 2px 2px}.overlay.is-overlay .loader.is-medium{width:2em;height:2em;border-width:0 0 3px 3px}.overlay.is-overlay .loader.is-large{width:3em;height:3em;border-width:0 0 4px 4px}.overlay.is-overlay.is-opaque{background:hsla(0,0%,100%,.2)}',""])},1:function(e,t){},"171e":function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".card-header{border-top-left-radius:inherit;border-top-right-radius:inherit}.card-header.collapsed{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.card-header .card-header-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""])},"174f":function(e,t,o){"use strict";var i=o("af24"),n=o.n(i);n.a},"17f3":function(e,t,o){var i=o("ff6c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("33274186",i,!0,{sourceMap:!1,shadowMode:!1})},"19c6":function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,'@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.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,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.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,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-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;-webkit-box-sizing:border-box;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:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{-webkit-box-sizing:inherit;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-4-3,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill,.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}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{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;visibility:visible}.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;-webkit-transition:all .4s;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);-webkit-transition:all 0s;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:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;-webkit-transition: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:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.8)),to(hsla(0,0%,100%,0)));background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{-webkit-box-sizing:border-box;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>*{-webkit-box-sizing:border-box;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}.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{-webkit-transition:all .4s;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;-webkit-transition:all .4s;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-has-started .vjs-control-bar{display:-webkit-box;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;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.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;-webkit-box-flex:0;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.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 .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;-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:4em;-ms-touch-action:none;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-webkit-box-flex:1;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;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:hsla(0,0%,100%,.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;-webkit-transition:visibility 1s,opacity 1s;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;-webkit-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-webkit-box-flex:0;-ms-flex:none;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-webkit-box;display:-ms-flexbox;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{-webkit-transition:width 1s;transition:width 1s}.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 .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.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 .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: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-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 .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:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;-webkit-transition:left 0s;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;-webkit-transition:width .1s;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;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;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{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;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;-webkit-transition:none;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:-webkit-box;display:-ms-flexbox;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}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.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}.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{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-flex:1;-ms-flex:auto;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{cursor:pointer;-webkit-box-flex:0;-ms-flex:none;flex:none;display:-webkit-inline-box;display:-ms-inline-flexbox;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{-webkit-box-flex:0;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.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{-webkit-box-flex:0;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.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{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control,.video-js .vjs-picture-in-picture-control{cursor:pointer;-webkit-box-flex:0;-ms-flex:none;flex: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);-webkit-box-sizing:border-box;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;-webkit-box-sizing:inherit;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{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{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}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.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:"";font-size:1.5em;line-height:inherit}.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:" ";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.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:-webkit-gradient(linear,left bottom,left top,color-stop(88%,#fff),to(#73859f));background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(88%,#fff),to(#73859f));background-image:linear-gradient(-180deg,#fff 88%,#73859f);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),.video-js .vjs-menu :focus:not(:focus-visible),.video-js :focus:not(:focus-visible){outline:none;background:none}',""])},"1b8d":function(e,t){function o(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i<arguments.length;i++)t+=o(e[i])+(arguments[i+1]||"");return t}},2073:function(e,t,o){"use strict";var i=o("d260"),n=o.n(i);n.a},2275:function(e,t,o){var i=o("19c6");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("3fbe8aab",i,!0,{sourceMap:!1,shadowMode:!1})},"2b8c":function(e,t,o){var i=o("be09"),n=e.exports={WebVTT:o("d02c4"),VTTCue:o("b03c"),VTTRegion:o("f97d")};i.vttjs=n,i.WebVTT=n.WebVTT;var r=n.VTTCue,s=n.VTTRegion,a=i.VTTCue,l=i.VTTRegion;n.shim=function(){i.VTTCue=r,i.VTTRegion=s},n.restore=function(){i.VTTCue=a,i.VTTRegion=l},i.VTTCue||n.shim()},"2d6f":function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".card-footer[data-v-531fc05d]{white-space:nowrap;overflow:auto;text-overflow:ellipsis}",""])},"3a94":function(e,t,o){var i=o("3fa7");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("09f78369",i,!0,{sourceMap:!1,shadowMode:!1})},"3d33":function(e,t,o){
/**
 * @license
 * Video.js 6.13.0 <http://videojs.com/>
 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
 * Available under Apache License Version 2.0
 * <https://github.com/videojs/video.js/blob/master/LICENSE>
 *
 * Includes vtt.js <https://github.com/mozilla/vtt.js>
 * Available under Apache License Version 2.0
 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
 */
function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var n=i(o("672b")),r=i(o("cc57")),s=i(o("1b8d")),a=i(o("8c10")),l=i(o("eec7")),c=i(o("2b8c")),u="6.13.0",h=n.navigator&&n.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(h),p=d?parseFloat(d.pop()):null,v=/iPad/i.test(h),f=/iPhone/i.test(h)&&!v,m=/iPod/i.test(h),g=f||v||m,y=function(){var e=h.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),b=/Android/i.test(h),j=function(){var e=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),o=e[2]&&parseFloat(e[2]);return t&&o?parseFloat(e[1]+"."+e[2]):t||null}(),_=b&&/webkit/i.test(h)&&j<2.3,k=b&&j<5&&p<537,T=/Firefox/i.test(h),w=/Edge/i.test(h),C=!w&&(/Chrome/i.test(h)||/CriOS/i.test(h)),x=function(){var e=h.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),E=/MSIE\s8\.0/.test(h),S=function(){var e=/MSIE\s(\d+)\.\d/.exec(h),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(t=11),t}(),A=/Safari/i.test(h)&&!C&&!b&&!w,O=(A||g)&&!C,P=oe()&&("ontouchstart"in n||n.navigator.maxTouchPoints||n.DocumentTouch&&n.document instanceof n.DocumentTouch),M=oe()&&"backgroundSize"in n.document.createElement("video").style,N=(Object.freeze||Object)({IS_IPAD:v,IS_IPHONE:f,IS_IPOD:m,IS_IOS:g,IOS_VERSION:y,IS_ANDROID:b,ANDROID_VERSION:j,IS_OLD_ANDROID:_,IS_NATIVE_ANDROID:k,IS_FIREFOX:T,IS_EDGE:w,IS_CHROME:C,CHROME_VERSION:x,IS_IE8:E,IE_VERSION:S,IS_SAFARI:A,IS_ANY_SAFARI:O,TOUCH_ENABLED:P,BACKGROUND_SIZE_SUPPORTED:M}),B="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},L=function(e,t){if("function"!==typeof t&&null!==t)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:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},D=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},R=function(e,t){return e.raw=t,e},F=Object.prototype.toString,z=function(e){return U(e)?Object.keys(e):[]};function V(e,t){z(e).forEach((function(o){return t(e[o],o)}))}function H(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return z(e).reduce((function(o,i){return t(o,e[i],i)}),o)}function W(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(o)):(o.forEach((function(t){t&&V(t,(function(t,o){e[o]=t}))})),e)}function U(e){return!!e&&"object"===("undefined"===typeof e?"undefined":B(e))}function q(e){return U(e)&&"[object Object]"===F.call(e)&&e.constructor===Object}var Y=[],J=function(e,t){return function(o,i,r,s){var a=t.levels[i],l=new RegExp("^("+a+")$");if("log"!==o&&r.unshift(o.toUpperCase()+":"),r.unshift(e+":"),Y&&Y.push([].concat(r)),n.console){var c=n.console[o];c||"debug"!==o||(c=n.console.info||n.console.log),c&&a&&l.test(o)&&(s&&(r=r.map((function(e){if(U(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)})).join(" ")),c.apply?c[Array.isArray(r)?"apply":"call"](n.console,r):c(r))}}};function G(e){var t="info",o=void 0,i=function e(){for(var i=e.stringify||S&&S<11,n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];o("log",t,r,i)};return o=J(e,i),i.createLogger=function(t){return G(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},i.history=function(){return Y?[].concat(Y):[]},i.history.filter=function(e){return(Y||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){Y&&(Y.length=0)},i.history.disable=function(){null!==Y&&(Y.length=0,Y=null)},i.history.enable=function(){null===Y&&(Y=[])},i.error=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return o("error",t,i)},i.warn=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return o("warn",t,i)},i.debug=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return o("debug",t,i)},i}var X=G("VIDEOJS"),K=X.createLogger;function Q(e,t){if(!e||!t)return"";if("function"===typeof n.getComputedStyle){var o=n.getComputedStyle(e);return o?o[t]:""}return e.currentStyle[t]||""}var $=R(["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 "," to ","."],["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 "," to ","."]);function Z(e){return"string"===typeof e&&/\S/.test(e)}function ee(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function te(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function oe(){return r===n.document&&"undefined"!==typeof r.createElement}function ie(e){return U(e)&&1===e.nodeType}function ne(){try{return n.parent!==n.self}catch(e){return!0}}function re(e){return function(t,o){if(!Z(t))return r[e](null);Z(o)&&(o=r.querySelector(o));var i=ie(o)?o:r;return i[e]&&i[e](t)}}function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],n=r.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var o=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(X.warn(s($,e,o)),n.setAttribute(e,o)):"textContent"===e?ae(n,o):n[e]=o})),Object.getOwnPropertyNames(o).forEach((function(e){n.setAttribute(e,o[e])})),i&&xe(n,i),n}function ae(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ce(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ue(e,t){return e.classList?e.classList.add(t):ce(e,t)||(e.className=(e.className+" "+t).trim()),e}function he(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function de(e,t,o){var i=ce(e,t);if("function"===typeof o&&(o=o(e,t)),"boolean"!==typeof o&&(o=!i),o!==i)return o?ue(e,t):he(e,t),e}function pe(e,t){Object.getOwnPropertyNames(t).forEach((function(o){var i=t[o];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(o):e.setAttribute(o,!0===i?"":i)}))}function ve(e){var t={},o=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,s=i[n].value;"boolean"!==typeof e[r]&&-1===o.indexOf(","+r+",")||(s=null!==s),t[r]=s}return t}function fe(e,t){return e.getAttribute(t)}function me(e,t,o){e.setAttribute(t,o)}function ge(e,t){e.removeAttribute(t)}function ye(){r.body.focus(),r.onselectstart=function(){return!1}}function be(){r.onselectstart=function(){return!0}}function je(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),o={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(o[e]=t[e])})),o.height||(o.height=parseFloat(Q(e,"height"))),o.width||(o.width=parseFloat(Q(e,"width"))),o}}function _e(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var o=r.documentElement,i=r.body,s=o.clientLeft||i.clientLeft||0,a=n.pageXOffset||i.scrollLeft,l=t.left+a-s,c=o.clientTop||i.clientTop||0,u=n.pageYOffset||i.scrollTop,h=t.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function ke(e,t){var o={},i=_e(e),n=e.offsetWidth,r=e.offsetHeight,s=i.top,a=i.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),o.y=Math.max(0,Math.min(1,(s-l+r)/r)),o.x=Math.max(0,Math.min(1,(c-a)/n)),o}function Te(e){return U(e)&&3===e.nodeType}function we(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ce(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||Te(e)?e:"string"===typeof e&&/\S/.test(e)?r.createTextNode(e):void 0})).filter((function(e){return e}))}function xe(e,t){return Ce(t).forEach((function(t){return e.appendChild(t)})),e}function Ee(e,t){return xe(we(e),t)}function Se(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===S||0===e.button&&1===e.buttons))}var Ae=re("querySelector"),Oe=re("querySelectorAll"),Pe=(Object.freeze||Object)({isReal:oe,isEl:ie,isInFrame:ne,createEl:se,textContent:ae,prependTo:le,hasClass:ce,addClass:ue,removeClass:he,toggleClass:de,setAttributes:pe,getAttributes:ve,getAttribute:fe,setAttribute:me,removeAttribute:ge,blockTextSelection:ye,unblockTextSelection:be,getBoundingClientRect:je,findPosition:_e,getPointerPosition:ke,isTextNode:Te,emptyEl:we,normalizeContent:Ce,appendContent:xe,insertContent:Ee,isSingleLeftClick:Se,$:Ae,$$:Oe}),Me=1;function Ne(){return Me++}var Be={},Ie="vdata"+(new Date).getTime();function Le(e){var t=e[Ie];return t||(t=e[Ie]=Ne()),Be[t]||(Be[t]={}),Be[t]}function De(e){var t=e[Ie];return!!t&&!!Object.getOwnPropertyNames(Be[t]).length}function Re(e){var t=e[Ie];if(t){delete Be[t];try{delete e[Ie]}catch(o){e.removeAttribute?e.removeAttribute(Ie):e[Ie]=null}}}function Fe(e,t){var o=Le(e);0===o.handlers[t].length&&(delete o.handlers[t],e.removeEventListener?e.removeEventListener(t,o.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,o.dispatcher)),Object.getOwnPropertyNames(o.handlers).length<=0&&(delete o.handlers,delete o.dispatcher,delete o.disabled),0===Object.getOwnPropertyNames(o).length&&Re(e)}function ze(e,t,o,i){o.forEach((function(o){e(t,o,i)}))}function Ve(e){function t(){return!0}function o(){return!1}if(!e||!e.isPropagationStopped){var i=e||n.event;for(var s in e={},i)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&i.preventDefault||(e[s]=i[s]));if(e.target||(e.target=e.srcElement||r),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=o,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=o,null!==e.clientX&&void 0!==e.clientX){var a=r.documentElement,l=r.body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var He=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){He=!0}});n.addEventListener("test",null,e),n.removeEventListener("test",null,e)}catch(t){}})();var We=["touchstart","touchmove"];function Ue(e,t,o){if(Array.isArray(t))return ze(Ue,e,t,o);var i=Le(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),o.guid||(o.guid=Ne()),i.handlers[t].push(o),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,o){if(!i.disabled){t=Ve(t);var n=i.handlers[t.type];if(n)for(var r=n.slice(0),s=0,a=r.length;s<a;s++){if(t.isImmediatePropagationStopped())break;try{r[s].call(e,t,o)}catch(l){X.error(l)}}}}),1===i.handlers[t].length)if(e.addEventListener){var n=!1;He&&We.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,i.dispatcher,n)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function qe(e,t,o){if(De(e)){var i=Le(e);if(i.handlers){if(Array.isArray(t))return ze(qe,e,t,o);var n=function(e,t){i.handlers[t]=[],Fe(e,t)};if(void 0!==t){var r=i.handlers[t];if(r)if(o){if(o.guid)for(var s=0;s<r.length;s++)r[s].guid===o.guid&&r.splice(s--,1);Fe(e,t)}else n(e,t)}else for(var a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&n(e,a)}}}function Ye(e,t,o){var i=De(e)?Le(e):{},n=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ve(t),i.dispatcher&&i.dispatcher.call(e,t,o),n&&!t.isPropagationStopped()&&!0===t.bubbles)Ye.call(null,n,t,o);else if(!n&&!t.defaultPrevented){var r=Le(t.target);t.target[t.type]&&(r.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),r.disabled=!1)}return!t.defaultPrevented}function Je(e,t,o){if(Array.isArray(t))return ze(Je,e,t,o);var i=function i(){qe(e,t,i),o.apply(this,arguments)};i.guid=o.guid=o.guid||Ne(),Ue(e,t,i)}var Ge=(Object.freeze||Object)({fixEvent:Ve,on:Ue,off:qe,trigger:Ye,one:Je}),Xe=!1,Ke=void 0,Qe=function(){if(oe()&&!1!==Ke.options.autoSetup){var e=r.getElementsByTagName("video"),t=r.getElementsByTagName("audio"),o=r.getElementsByTagName("video-js"),i=[];if(e&&e.length>0)for(var n=0,s=e.length;n<s;n++)i.push(e[n]);if(t&&t.length>0)for(var a=0,l=t.length;a<l;a++)i.push(t[a]);if(o&&o.length>0)for(var c=0,u=o.length;c<u;c++)i.push(o[c]);if(i&&i.length>0)for(var h=0,d=i.length;h<d;h++){var p=i[h];if(!p||!p.getAttribute){$e(1);break}if(void 0===p.player){var v=p.getAttribute("data-setup");null!==v&&Ke(p)}}else Xe||$e(1)}};function $e(e,t){t&&(Ke=t),n.setTimeout(Qe,e)}oe()&&"complete"===r.readyState?Xe=!0:Je(n,"load",(function(){Xe=!0}));var Ze=function(e){var t=r.createElement("style");return t.className=e,t},et=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},tt=function(e,t,o){t.guid||(t.guid=Ne());var i=function(){return t.apply(e,arguments)};return i.guid=o?o+"_"+t.guid:t.guid,i},ot=function(e,t){var o=Date.now(),i=function(){var i=Date.now();i-o>=t&&(e.apply(void 0,arguments),o=i)};return i},it=function(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,r=void 0,s=function(){i.clearTimeout(r),r=null},a=function(){var n=this,s=arguments,a=function(){r=null,a=null,o||e.apply(n,s)};!r&&o&&e.apply(n,s),i.clearTimeout(r),r=i.setTimeout(a,t)};return a.cancel=s,a},nt=function(){};nt.prototype.allowedEvents_={},nt.prototype.on=function(e,t){var o=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=o},nt.prototype.addEventListener=nt.prototype.on,nt.prototype.off=function(e,t){qe(this,e,t)},nt.prototype.removeEventListener=nt.prototype.off,nt.prototype.one=function(e,t){var o=this.addEventListener;this.addEventListener=function(){},Je(this,e,t),this.addEventListener=o},nt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Ve(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ye(this,e)},nt.prototype.dispatchEvent=nt.prototype.trigger;var rt=function(e){return e instanceof nt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},at=function(e){if(!e.nodeName&&!rt(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ct=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ut=function(e,t){var o=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,n=void 0,r=void 0;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),n=t[0],r=t[1]):(i=t[0],n=t[1],r=t[2]),at(i),lt(n),ct(r),r=tt(e,r),{isTargetingSelf:o,target:i,type:n,listener:r}},ht=function(e,t,o,i){at(e),e.nodeName?Ge[t](e,o,i):e[t](o,i)},dt={on:function(){for(var e=this,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var n=ut(this,o),r=n.isTargetingSelf,s=n.target,a=n.type,l=n.listener;if(ht(s,"on",a,l),!r){var c=function(){return e.off(s,a,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,ht(this,"on","dispose",c),ht(s,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var n=ut(this,o),r=n.isTargetingSelf,s=n.target,a=n.type,l=n.listener;if(r)ht(s,"one",a,l);else{var c=function t(){for(var o=arguments.length,i=Array(o),n=0;n<o;n++)i[n]=arguments[n];e.off(s,a,t),l.apply(null,i)};c.guid=l.guid,ht(s,"one",a,c)}},off:function(e,t,o){if(!e||st(e))qe(this.eventBusEl_,e,t);else{var i=e,n=t;at(i),lt(n),ct(o),o=tt(this,o),this.off("dispose",o),i.nodeName?(qe(i,n,o),qe(i,"dispose",o)):rt(i)&&(i.off(n,o),i.off("dispose",o))}},trigger:function(e,t){return Ye(this.eventBusEl_,e,t)}};function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.eventBusKey;if(o){if(!e[o].nodeName)throw new Error('The eventBusKey "'+o+'" does not refer to an element.');e.eventBusEl_=e[o]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return W(e,dt),e.on("dispose",(function(){e.off(),n.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var vt={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var o=void 0;return V(e,(function(e,i){t.state[i]!==e&&(o=o||{},o[i]={from:t.state[i],to:e}),t.state[i]=e})),o&&rt(this)&&this.trigger({changes:o,type:"statechanged"}),o}};function ft(e,t){return W(e,vt),e.state=W({},e.state,t),"function"===typeof e.handleStateChanged&&rt(e)&&e.on("statechanged",e.handleStateChanged),e}function mt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function gt(e,t){return mt(e)===mt(t)}function yt(){for(var e={},t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return o.forEach((function(t){t&&V(t,(function(t,o){q(t)?(q(e[o])||(e[o]={}),e[o]=yt(e[o],t)):e[o]=t}))})),e}var bt=function(){function e(t,o,i){if(I(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=yt({},this.options_),o=this.options_=yt(this.options_,o),this.id_=o.id||o.el&&o.el.id,!this.id_){var n=t&&t.id&&t.id()||"no_player";this.id_=n+"_component_"+Ne()}this.name_=o.name||null,o.el?this.el_=o.el:!1!==o.createEl&&(this.el_=this.createEl()),!1!==o.evented&&pt(this,{eventBusKey:this.el_?"el_":null}),ft(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==o.initChildren&&this.initChildren(),this.ready(i),!1!==o.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Re(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return X.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=yt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,o){return se(e,t,o)},e.prototype.localize=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),r=n&&n[i],s=i&&i.split("-")[0],a=n&&n[s],l=o;return r&&r[e]?l=r[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,o){var i=t[o-1],n=i;return"undefined"===typeof i&&(n=e),n}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=mt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,n=void 0,r=void 0;if("string"===typeof t){r=mt(t);var s=o.componentClass||r;o.name=r;var a=e.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!==typeof a)return null;n=new a(this.player_||this,o)}else n=t;if(this.children_.splice(i,0,n),"function"===typeof n.id&&(this.childIndex_[n.id()]=n),r=r||n.name&&mt(n.name()),r&&(this.childNameIndex_[r]=n),"function"===typeof n.el&&n.el()){var l=this.contentEl().children,c=l[i]||null;this.contentEl().insertBefore(n.el(),c)}return n},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,o=this.children_.length-1;o>=0;o--)if(this.children_[o]===e){t=!0,this.children_.splice(o,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,o=this.options_.children;if(o){var i=this.options_,n=function(e){var o=e.name,n=e.opts;if(void 0!==i[o]&&(n=i[o]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var r=t.addChild(o,n);r&&(t[o]=r)}},r=void 0,s=e.getComponent("Tech");r=Array.isArray(o)?o:Object.keys(o),r.concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,n=void 0;return"string"===typeof e?(i=e,n=o[i]||t.options_[i]||{}):(i=e.name,n=e),{name:i,opts:n}})).filter((function(t){var o=e.getComponent(t.opts.componentClass||mt(t.name));return o&&!s.isTech(o)})).forEach(n)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return Ae(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Oe(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ce(this.el_,e)},e.prototype.addClass=function(e){ue(this.el_,e)},e.prototype.removeClass=function(e){he(this.el_,e)},e.prototype.toggleClass=function(e,t){de(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return fe(this.el_,e)},e.prototype.setAttribute=function(e,t){me(this.el_,e,t)},e.prototype.removeAttribute=function(e){ge(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,o){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(o||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],n=i.indexOf("px");return-1!==n?parseInt(i.slice(0,n),10):parseInt(this.el_["offset"+mt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof n.getComputedStyle){var o=n.getComputedStyle(this.el_);t=o.getPropertyValue(e)||o[e]}if(t=parseFloat(t),0===t){var i="offset"+mt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,o=10,i=200,n=void 0;this.on("touchstart",(function(o){1===o.touches.length&&(t={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=(new Date).getTime(),n=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)n=!1;else if(t){var i=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,s=Math.sqrt(i*i+r*r);s>o&&(n=!1)}}));var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(o){if(t=null,!0===n){var r=(new Date).getTime()-e;r<i&&(o.preventDefault(),this.trigger("tap"))}}))},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=tt(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var o=function(o){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",o),this.on("touchcancel",o)}},e.prototype.setTimeout=function(e,t){var o,i,r=this;return e=tt(this,e),o=n.setTimeout((function(){r.off("dispose",i),e()}),t),i=function(){return r.clearTimeout(o)},i.guid="vjs-timeout-"+o,this.on("dispose",i),o},e.prototype.clearTimeout=function(e){n.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var o=this;e=tt(this,e);var i=n.setInterval(e,t),r=function(){return o.clearInterval(i)};return r.guid="vjs-interval-"+i,this.on("dispose",r),i},e.prototype.clearInterval=function(e){n.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,o,i=this;return this.supportsRaf_?(e=tt(this,e),t=n.requestAnimationFrame((function(){i.off("dispose",o),e()})),o=function(){return i.cancelAnimationFrame(t)},o.guid="vjs-raf-"+t,this.on("dispose",o),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){n.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,o){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),n=i&&i.isTech(o),r=e===o||e.prototype.isPrototypeOf(o.prototype);if(n||!r){var s=void 0;throw s=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+s+".")}t=mt(t),e.components_||(e.components_={});var a=e.getComponent("Player");if("Player"===t&&a&&a.players){var l=a.players,c=Object.keys(l);if(l&&c.length>0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=o,o},e.getComponent=function(t){if(t)return t=mt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function jt(e,t,o){if("number"!==typeof t||t<0||t>o)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+o+").")}function _t(e,t,o,i){return jt(e,i,o.length-1),o[i][t]}function kt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:_t.bind(null,"start",0,e),end:_t.bind(null,"end",1,e)}}function Tt(e,t){return Array.isArray(e)?kt(e):void 0===e||void 0===t?kt():kt([[e,t]])}function wt(e,t){var o=0,i=void 0,n=void 0;if(!t)return 0;e&&e.length||(e=Tt(0,0));for(var r=0;r<e.length;r++)i=e.start(r),n=e.end(r),n>t&&(n=t),o+=n-i;return o/t}bt.prototype.supportsRaf_="function"===typeof n.requestAnimationFrame&&"function"===typeof n.cancelAnimationFrame,bt.registerComponent("Component",bt);for(var Ct={},xt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Et=xt[0],St=void 0,At=0;At<xt.length;At++)if(xt[At][1]in r){St=xt[At];break}if(St)for(var Ot=0;Ot<St.length;Ot++)Ct[Et[Ot]]=St[Ot];function Pt(e){if(e instanceof Pt)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:U(e)&&("number"===typeof e.code&&(this.code=e.code),W(this,e)),this.message||(this.message=Pt.defaultMessages[this.code]||"")}Pt.prototype.code=0,Pt.prototype.message="",Pt.prototype.status=null,Pt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Pt.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<Pt.errorTypes.length;Mt++)Pt[Pt.errorTypes[Mt]]=Mt,Pt.prototype[Pt.errorTypes[Mt]]=Mt;function Nt(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Bt(e){Nt(e)&&e.then(null,(function(e){}))}var It=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,o,i){return e[o]&&(t[o]=e[o]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},Lt=function(e){var t=e.$$("track"),o=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=It(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===o.indexOf(e)})).map(It))},Dt=function(e,t){return e.forEach((function(e){var o=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return o.addCue(e)}))})),t.textTracks()},Rt={textTracksToJson:Lt,jsonToTextTracks:Dt,trackToJson_:It},Ft="vjs-modal-dialog",zt=27,Vt=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=se("div",{className:Ft+"-content"},{role:"document"}),n.descEl_=se("p",{className:Ft+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),ae(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}return L(t,e),t.prototype.createEl=function(){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"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Ft+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===zt&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if("boolean"===typeof e){var t=this.closeable_=!!e,o=this.getChild("closeButton");if(t&&!o){var i=this.contentEl_;this.contentEl_=this.el_,o=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(o,"close",this.close)}!t&&o&&(this.off(o,"close",this.close),this.removeChild(o),o.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),o=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,o.removeChild(t),this.empty(),Ee(t,e),this.trigger("modalfill"),i?o.insertBefore(t,i):o.appendChild(t);var n=this.getChild("closeButton");n&&o.appendChild(n.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),we(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=r.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(r,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(r,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),o=this.el_.querySelector(":focus"),i=void 0,n=0;n<t.length;n++)if(o===t[n]){i=n;break}r.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof n.HTMLAnchorElement||e instanceof n.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof n.HTMLInputElement||e instanceof n.HTMLSelectElement||e instanceof n.HTMLTextAreaElement||e instanceof n.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof n.HTMLIFrameElement||e instanceof n.HTMLObjectElement||e instanceof n.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(bt);Vt.prototype.options_={pauseOnOpen:!0,temporary:!0},bt.registerComponent("ModalDialog",Vt);var Ht=function(e){function t(){var o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;I(this,t);var s=D(this,e.call(this));if(!n&&(n=s,E))for(var a in n=r.createElement("custom"),t.prototype)"constructor"!==a&&(n[a]=t.prototype[a]);n.tracks_=[],Object.defineProperty(n,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<i.length;l++)n.addTrack(i[l]);return o=n,D(s,o)}return L(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,o=0,i=this.length;o<i;o++)if(this[o]===e){t=this[o],t.off&&t.off(),this.tracks_.splice(o,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,o=0,i=this.length;o<i;o++){var n=this[o];if(n.id===e){t=n;break}}return t},t}(nt);for(var Wt in Ht.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ht.prototype.allowedEvents_)Ht.prototype["on"+Wt]=null;var Ut=function(e,t){for(var o=0;o<e.length;o++)Object.keys(e[o]).length&&t.id!==e[o].id&&(e[o].enabled=!1)},qt=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];I(this,t);for(var s=void 0,a=n.length-1;a>=0;a--)if(n[a].enabled){Ut(n,n[a]);break}if(E){for(var l in s=r.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return o=D(this,e.call(this,n,s)),s=o,s.changing_=!1,i=s,D(o,i)}return L(t,e),t.prototype.addTrack=function(t){var o=this;t.enabled&&Ut(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){o.changing_||(o.changing_=!0,Ut(o,t),o.changing_=!1,o.trigger("change"))}))},t}(Ht),Yt=function(e,t){for(var o=0;o<e.length;o++)Object.keys(e[o]).length&&t.id!==e[o].id&&(e[o].selected=!1)},Jt=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];I(this,t);for(var s=void 0,a=n.length-1;a>=0;a--)if(n[a].selected){Yt(n,n[a]);break}if(E){for(var l in s=r.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return o=D(this,e.call(this,n,s)),s=o,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),i=s,D(o,i)}return L(t,e),t.prototype.addTrack=function(t){var o=this;t.selected&&Yt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",(function(){o.changing_||(o.changing_=!0,Yt(o,t),o.changing_=!1,o.trigger("change"))}))},t}(Ht),Gt=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];I(this,t);var s=void 0;if(E){for(var a in s=r.createElement("custom"),Ht.prototype)"constructor"!==a&&(s[a]=Ht.prototype[a]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return o=D(this,e.call(this,n,s)),s=o,i=s,D(o,i)}return L(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var o=["metadata","chapters"];-1===o.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Ht),Xt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];I(this,e);var o=this;if(E)for(var i in o=r.createElement("custom"),e.prototype)"constructor"!==i&&(o[i]=e.prototype[i]);o.trackElements_=[],Object.defineProperty(o,"length",{get:function(){return this.trackElements_.length}});for(var n=0,s=t.length;n<s;n++)o.addTrackElement_(t[n]);if(E)return o}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,o=0,i=this.trackElements_.length;o<i;o++)if(e===this.trackElements_[o].track){t=this.trackElements_[o];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,o=this.trackElements_.length;t<o;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),Kt=function(){function e(t){I(this,e);var o=this;if(E)for(var i in o=r.createElement("custom"),e.prototype)"constructor"!==i&&(o[i]=e.prototype[i]);if(e.prototype.setCues_.call(o,t),Object.defineProperty(o,"length",{get:function(){return this.length_}}),E)return o}return e.prototype.setCues_=function(e){var t=this.length||0,o=0,i=e.length;this.cues_=e,this.length_=e.length;var n=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(o=t;o<i;o++)n.call(this,o)},e.prototype.getCueById=function(e){for(var t=null,o=0,i=this.length;o<i;o++){var n=this[o];if(n.id===e){t=n;break}}return t},e}(),Qt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},$t={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Zt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},eo={disabled:"disabled",hidden:"hidden",showing:"showing"},to=function(e){function t(){var o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t);var n=D(this,e.call(this)),s=n;if(E)for(var a in s=r.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l={id:i.id||"vjs_track_"+Ne(),kind:i.kind||"",label:i.label||"",language:i.language||""},c=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var u in l)c(u);return o=s,D(n,o)}return L(t,e),t}(nt),oo=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],o=r.createElement("a");o.href=e;var i=""===o.host&&"file:"!==o.protocol,s=void 0;i&&(s=r.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',o=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),r.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=o[t[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=n.location.protocol),i&&r.body.removeChild(s),a},io=function(e){if(!e.match(/^https?:\/\//)){var t=r.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},no=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,o=t.exec(e);if(o)return o.pop().toLowerCase()}return""},ro=function(e){var t=n.location,o=oo(e),i=":"===o.protocol?t.protocol:o.protocol,r=i+o.host!==t.protocol+t.host;return r},so=(Object.freeze||Object)({parseUrl:oo,getAbsoluteURL:io,getFileExtension:no,isCrossOrigin:ro}),ao=function(e,t){var o=new n.WebVTT.Parser(n,n.vttjs,n.WebVTT.StringDecoder()),i=[];o.oncue=function(e){t.addCue(e)},o.onparsingerror=function(e){i.push(e)},o.onflush=function(){t.trigger({type:"loadeddata",target:t})},o.parse(e),i.length>0&&(n.console&&n.console.groupCollapsed&&n.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return X.error(e)})),n.console&&n.console.groupEnd&&n.console.groupEnd()),o.flush()},lo=function(e,t){var o={uri:e},i=ro(e);i&&(o.cors=i),l(o,tt(this,(function(e,o,i){if(e)return X.error(e,o);if(t.loaded_=!0,"function"!==typeof n.WebVTT){if(t.tech_){var r=function(){return ao(i,t)};t.tech_.on("vttjsloaded",r),t.tech_.on("vttjserror",(function(){X.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",r)}))}}else ao(i,t)})))},co=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(I(this,t),!n.tech)throw new Error("A tech was not provided.");var r=yt(n,{kind:Zt[n.kind]||"subtitles",language:n.language||n.srclang||""}),s=eo[r.mode]||"disabled",a=r["default"];"metadata"!==r.kind&&"chapters"!==r.kind||(s="hidden");var l=(o=D(this,e.call(this,r)),o);if(l.tech_=r.tech,E)for(var c in t.prototype)"constructor"!==c&&(l[c]=t.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new Kt(l.cues_),h=new Kt(l.activeCues_),d=!1,p=tt(l,(function(){this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",p)}),!0),Object.defineProperty(l,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;eo[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",p)}),!0):this.tech_.off("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var e=this.tech_.currentTime(),t=[],o=0,i=this.cues.length;o<i;o++){var n=this.cues[o];n.startTime<=e&&n.endTime>=e?t.push(n):n.startTime===n.endTime&&n.startTime<=e&&n.startTime+.5>=e&&t.push(n)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var r=0;r<t.length;r++)-1===this.activeCues_.indexOf(t[r])&&(d=!0);return this.activeCues_=t,h.setCues_(this.activeCues_),h},set:function(){}}),r.src?(l.src=r.src,lo(r.src,l)):l.loaded_=!0,i=l,D(o,i)}return L(t,e),t.prototype.addCue=function(e){var t=e;if(n.vttjs&&!(e instanceof n.vttjs.VTTCue)){for(var o in t=new n.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)o in t||(t[o]=e[o]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){var t=this.cues_.length;while(t--){var o=this.cues_[t];if(o===e||o.originalCue_&&o.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(to);co.prototype.allowedEvents_={cuechange:"cuechange"};var uo=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t);var r=yt(n,{kind:$t[n.kind]||""}),s=(o=D(this,e.call(this,r)),o),a=!1;if(E)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),r.enabled&&(s.enabled=r.enabled),s.loaded_=!0,i=s,D(o,i)}return L(t,e),t}(to),ho=function(e){function t(){var o,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t);var r=yt(n,{kind:Qt[n.kind]||""}),s=(o=D(this,e.call(this,r)),o),a=!1;if(E)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),r.selected&&(s.selected=r.selected),i=s,D(o,i)}return L(t,e),t}(to),po=0,vo=1,fo=2,mo=3,go=function(e){function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t);var i=D(this,e.call(this)),n=void 0,s=i;if(E)for(var a in s=r.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l,c=new co(o);return s.kind=c.kind,s.src=c.src,s.srclang=c.language,s.label=c.label,s["default"]=c["default"],Object.defineProperty(s,"readyState",{get:function(){return n}}),Object.defineProperty(s,"track",{get:function(){return c}}),n=po,c.addEventListener("loadeddata",(function(){n=fo,s.trigger({type:"load",target:s})})),E?(l=s,D(i,l)):i}return L(t,e),t}(nt);go.prototype.allowedEvents_={load:"load"},go.NONE=po,go.LOADING=vo,go.LOADED=fo,go.ERROR=mo;var yo={audio:{ListClass:qt,TrackClass:uo,capitalName:"Audio"},video:{ListClass:Jt,TrackClass:ho,capitalName:"Video"},text:{ListClass:Gt,TrackClass:co,capitalName:"Text"}};Object.keys(yo).forEach((function(e){yo[e].getterName=e+"Tracks",yo[e].privateName=e+"Tracks_"}));var bo={remoteText:{ListClass:Gt,TrackClass:co,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Xt,TrackClass:go,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},jo=yt(yo,bo);function _o(e,t,o,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=e.textTracks();n.kind=t,o&&(n.label=o),i&&(n.language=i),n.tech=e;var s=new jo.text.TrackClass(n);return r.addTrack(s),s}bo.names=Object.keys(bo),yo.names=Object.keys(yo),jo.names=[].concat(bo.names).concat(yo.names);var ko=function(e){function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};I(this,t),o.reportTouchActivity=!1;var n=D(this,e.call(this,null,o,i));return n.hasStarted_=!1,n.on("playing",(function(){this.hasStarted_=!0})),n.on("loadstart",(function(){this.hasStarted_=!1})),jo.names.forEach((function(e){var t=jo[e];o&&o[t.getterName]&&(n[t.privateName]=o[t.getterName])})),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===o["native"+e+"Tracks"]&&(n["featuresNative"+e+"Tracks"]=!1)})),!1===o.nativeCaptions||!1===o.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==o.nativeCaptions&&!0!==o.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.autoRemoteTextTracks_=new jo.text.ListClass,n.initTrackListeners(),o.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}return L(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return Tt(0,0)},t.prototype.bufferedPercent=function(){return wt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(yo.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var o=t[e+"Tracks"]()||[],i=o.length;while(i--){var n=o[i];"text"===e&&t.removeRemoteTextTrack(n),o.removeTrack(n)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var o=e[t];this.removeRemoteTextTrack(o)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Pt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?Tt(0,0):Tt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;yo.names.forEach((function(t){var o=yo[t],i=function(){e.trigger(t+"trackchange")},n=e[o.getterName]();n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),e.on("dispose",(function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!n.WebVTT)if(r.body.contains(this.el())){if(!this.options_["vtt.js"]&&q(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var t=r.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),n.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),o=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},n=function(e){return t.removeTrack(e.track)};o.on("addtrack",i),o.on("removetrack",n),this.addWebVttScript_();var r=function(){return e.trigger("texttrackchange")},s=function(){r();for(var e=0;e<t.length;e++){var o=t[e];o.removeEventListener("cuechange",r),"showing"===o.mode&&o.addEventListener("cuechange",r)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",(function(){o.off("addtrack",i),o.off("removetrack",n),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++){var a=t[e];a.removeEventListener("cuechange",r)}}))},t.prototype.addTextTrack=function(e,t,o){if(!e)throw new Error("TextTrack kind is required but was not provided");return _o(this,e,t,o)},t.prototype.createRemoteTextTrack=function(e){var t=yt(e,{tech:this});return new bo.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],i=this.createRemoteTextTrack(t);return!0!==o&&!1!==o&&(X.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),o=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==o&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,o){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,o){if(t.techs_||(t.techs_={}),!t.isTech(o))throw new Error("Tech "+e+" 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");return e=mt(e),t.techs_[e]=o,"Tech"!==e&&t.defaultTechOrder_.push(e),o},t.getTech=function(e){if(e)return e=mt(e),t.techs_&&t.techs_[e]?t.techs_[e]:n&&n.videojs&&n.videojs[e]?(X.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),n.videojs[e]):void 0},t}(bt);jo.names.forEach((function(e){var t=jo[e];ko.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),ko.prototype.featuresVolumeControl=!0,ko.prototype.featuresMuteControl=!0,ko.prototype.featuresFullscreenResize=!1,ko.prototype.featuresPlaybackRate=!1,ko.prototype.featuresProgressEvents=!1,ko.prototype.featuresSourceset=!1,ko.prototype.featuresTimeupdateEvents=!1,ko.prototype.featuresNativeTextTracks=!1,ko.withSourceHandlers=function(e){e.registerSourceHandler=function(t,o){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===o&&(o=i.length),i.splice(o,0,t)},e.canPlayType=function(t){for(var o=e.sourceHandlers||[],i=void 0,n=0;n<o.length;n++)if(i=o[n].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,o){for(var i=e.sourceHandlers||[],n=void 0,r=0;r<i.length;r++)if(n=i[r].canHandleSource(t,o),n)return i[r];return null},e.canPlaySource=function(t,o){var i=e.selectSourceHandler(t,o);return i?i.canHandleSource(t,o):""};var t=["seekable","seeking","duration"];t.forEach((function(e){var t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var o=e.selectSourceHandler(t,this.options_);o||(e.nativeSourceHandler?o=e.nativeSourceHandler:X.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),o!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=o.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},bt.registerComponent("Tech",ko),ko.registerTech("Tech",ko),ko.defaultTechOrder_=[];var To={},wo={},Co={};function xo(e,t){To[e]=To[e]||[],To[e].push(t)}function Eo(e,t,o){e.setTimeout((function(){return Fo(t,To[t.type],o,e)}),1)}function So(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function Ao(e,t,o){return e.reduceRight(Io(o),t[o]())}function Oo(e,t,o,i){return t[o](e.reduce(Io(o),i))}function Po(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n="call"+mt(o),r=e.reduce(Io(n),i),s=r===Co,a=s?null:t[o](r);return Lo(e,o,a,s),a}var Mo={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},No={setCurrentTime:1},Bo={play:1,pause:1};function Io(e){return function(t,o){return t===Co?Co:o[e]?o[e](t):t}}function Lo(e,t,o,i){for(var n=e.length-1;n>=0;n--){var r=e[n];r[t]&&r[t](i,o)}}function Do(e){wo[e.id()]=null}function Ro(e,t){var o=wo[e.id()],i=null;if(void 0===o||null===o)return i=t(e),wo[e.id()]=[[t,i]],i;for(var n=0;n<o.length;n++){var r=o[n],s=r[0],a=r[1];s===t&&(i=a)}return null===i&&(i=t(e),o.push([t,i])),i}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments[2],i=arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],a=t.slice(1);if("string"===typeof s)Fo(e,To[s],o,i,n,r);else if(s){var l=Ro(i,s);if(!l.setSource)return n.push(l),Fo(e,a,o,i,n,r);l.setSource(W({},e),(function(t,s){if(t)return Fo(e,a,o,i,n,r);n.push(l),Fo(s,e.type===s.type?a:To[s.type],o,i,n,r)}))}else a.length?Fo(e,a,o,i,n,r):r?o(e,n):Fo(e,To["*"],o,i,n,!0)}var zo={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=no(e),o=zo[t.toLowerCase()];return o||""},Ho=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var o=e.cache_.sources.filter((function(e){return e.src===t}));if(o.length)return o[0].type;for(var i=e.$$("source"),n=0;n<i.length;n++){var r=i[n];if(r.type&&r.src&&r.src===t)return r.type}return Vo(t)},Wo=function e(t){if(Array.isArray(t)){var o=[];t.forEach((function(t){t=e(t),Array.isArray(t)?o=o.concat(t):U(t)&&o.push(t)})),t=o}else t="string"===typeof t&&t.trim()?[Uo({src:t})]:U(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[Uo(t)]:[];return t};function Uo(e){var t=Vo(e.src);return!e.type&&t&&(e.type=t),e}var qo=function(e){function t(o,i,n){I(this,t);var r=yt({createEl:!1},i),s=D(this,e.call(this,o,r,n));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)o.src(i.playerOptions.sources);else for(var a=0,l=i.playerOptions.techOrder;a<l.length;a++){var c=mt(l[a]),u=ko.getTech(c);if(c||(u=bt.getComponent(c)),u&&u.isSupported()){o.loadTech_(c);break}}return s}return L(t,e),t}(bt);bt.registerComponent("MediaLoader",qo);var Yo=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.emitTapEvents(),n.enable(),n}return L(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o=W({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},o),"button"===t&&X.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=W({role:"button"},i),this.tabIndex_=o.tabIndex;var n=e.prototype.createEl.call(this,t,o,i);return this.createControlTextEl(n),n},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var o=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,o),this.nonIconControl||t.setAttribute("title",o)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){Ue(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){qe(r,"keydown",tt(this,this.handleKeyPress))},t}(bt);bt.registerComponent("ClickableComponent",Yo);var Jo=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.update(),o.on("posterchange",tt(n,n.update)),n}return L(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return M||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Bt(this.player_.play()):this.player_.pause())},t}(Yo);bt.registerComponent("PosterImage",Jo);var Go="#222",Xo="#ccc",Ko={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 Qo(e,t){var o=void 0;if(4===e.length)o=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");o=e.slice(1)}return"rgba("+parseInt(o.slice(0,2),16)+","+parseInt(o.slice(2,4),16)+","+parseInt(o.slice(4,6),16)+","+t+")"}function $o(e,t,o){try{e.style[t]=o}catch(i){return}}var Zo=function(e){function t(o,i,r){I(this,t);var s=D(this,e.call(this,o,i,r)),a=tt(s,s.updateDisplay);return o.on("loadstart",tt(s,s.toggleDisplay)),o.on("texttrackchange",a),o.on("loadstart",tt(s,s.preselectTrack)),o.ready(tt(s,(function(){if(o.tech_&&o.tech_.featuresNativeTextTracks)this.hide();else{o.on("fullscreenchange",a),o.on("playerresize",a),n.addEventListener&&n.addEventListener("orientationchange",a),o.on("dispose",(function(){return n.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}}))),s}return L(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,i=void 0,n=void 0,r=void 0,s=0;s<t.length;s++){var a=t[s];o&&o.enabled&&o.language===a.language?a.kind===o.kind?r=a:r||(r=a):o&&!o.enabled?(r=null,i=null,n=null):a["default"]&&("descriptions"!==a.kind||i?a.kind in e&&!n&&(n=a):i=a)}r?r.mode="showing":n?n.mode="showing":i&&(i.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"===typeof n.WebVTT&&n.WebVTT.processCues(n,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();var t=null,o=null,i=e.length;while(i--){var n=e[i];"showing"===n.mode&&("descriptions"===n.kind?t=n:o=n)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"===typeof n.WebVTT&&e.activeCues){for(var t=[],o=0;o<e.activeCues.length;o++)t.push(e.activeCues[o]);if(n.WebVTT.processCues(n,t,this.el_),this.player_.textTrackSettings){var i=this.player_.textTrackSettings.getValues(),r=t.length;while(r--){var s=t[r];if(s){var a=s.displayState;if(i.color&&(a.firstChild.style.color=i.color),i.textOpacity&&$o(a.firstChild,"color",Qo(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(a.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&$o(a.firstChild,"backgroundColor",Qo(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?$o(a,"backgroundColor",Qo(i.windowColor,i.windowOpacity)):a.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+Go+", 2px 2px 4px "+Go+", 2px 2px 5px "+Go:"raised"===i.edgeStyle?a.firstChild.style.textShadow="1px 1px "+Go+", 2px 2px "+Go+", 3px 3px "+Go:"depressed"===i.edgeStyle?a.firstChild.style.textShadow="1px 1px "+Xo+", 0 1px "+Xo+", -1px -1px "+Go+", 0 -1px "+Go:"uniform"===i.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+Go+", 0 0 4px "+Go+", 0 0 4px "+Go+", 0 0 4px "+Go)),i.fontPercent&&1!==i.fontPercent){var l=n.parseFloat(a.style.fontSize);a.style.fontSize=l*i.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Ko[i.fontFamily])}}}}},t}(bt);bt.registerComponent("TextTrackDisplay",Zo);var ei=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),o=this.localize(t?"Audio Player":"Video Player"),i=se("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[o])}),n=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(i),n},t}(bt);bt.registerComponent("LoadingSpinner",ei);var ti=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=W({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),o=W({type:"button"},o);var i=bt.prototype.createEl.call(this,e,t,o);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.constructor.name;return X.warn("Adding an actionable (user controllable) child to a Button ("+o+") is not supported; use a ClickableComponent instead."),bt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Yo);bt.registerComponent("Button",ti);var oi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.mouseused_=!1,n.on("mousedown",n.handleMouseDown),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Bt(t);else{var o=this.player_.getChild("controlBar"),i=o&&o.getChild("playToggle");if(i){var n=function(){return i.focus()};Nt(t)?t.then(n,(function(){})):this.setTimeout(n,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);oi.prototype.controlText_="Play Video",bt.registerComponent("BigPlayButton",oi);var ii=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.controlText(i&&i.controlText||n.localize("Close")),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);bt.registerComponent("CloseButton",ii);var ni=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"play",n.handlePlay),n.on(o,"pause",n.handlePause),n.on(o,"ended",n.handleEnded),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ni.prototype.controlText_="Play",bt.registerComponent("PlayToggle",ni);var ri=function(e,t){e=e<0?0:e;var o=Math.floor(e%60),i=Math.floor(e/60%60),n=Math.floor(e/3600),r=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(n=i=o="-"),n=n>0||s>0?n+":":"",i=((n||r>=10)&&i<10?"0"+i:i)+":",o=o<10?"0"+o:o,n+i+o},si=ri;function ai(e){si=e}function li(){si=ri}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return si(e,t)},ui=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.throttledUpdateContent=ot(tt(n,n.updateContent),25),n.on(o,"timeupdate",n.throttledUpdateContent),n}return L(t,e),t.prototype.createEl=function(t){var o=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:o+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=se("span",{className:o+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=r.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ci(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(bt);ui.prototype.labelText_="Time",ui.prototype.controlText_="Time",bt.registerComponent("TimeDisplay",ui);var hi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"ended",n.handleEnded),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ui);hi.prototype.labelText_="Current Time",hi.prototype.controlText_="Current Time",bt.registerComponent("CurrentTimeDisplay",hi);var di=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"durationchange",n.updateContent),n.on(o,"loadedmetadata",n.throttledUpdateContent),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ui);di.prototype.labelText_="Duration",di.prototype.controlText_="Duration",bt.registerComponent("DurationDisplay",di);var pi=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(bt);bt.registerComponent("TimeDivider",pi);var vi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"durationchange",n.throttledUpdateContent),n.on(o,"ended",n.handleEnded),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ui);vi.prototype.labelText_="Remaining Time",vi.prototype.controlText_="Remaining Time",bt.registerComponent("RemainingTimeDisplay",vi);var fi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n}return L(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(bt);bt.registerComponent("LiveDisplay",fi);var mi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}return L(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.className=o.className+" vjs-slider",o=W({tabIndex:0},o),i=W({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,o,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||C||e.preventDefault(),ye(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var o=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=o:i.width=o,e}}},t.prototype.calculateDistance=function(e){var t=ke(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(bt);bt.registerComponent("Slider",mi);var gi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.partEls_=[],n.on(o,"progress",n.update),n}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),o=this.player_.duration(),i=this.player_.bufferedEnd(),n=this.partEls_,r=function(e,t){var o=e/t||0;return 100*(o>=1?1:o)+"%"};this.el_.style.width=r(i,o);for(var s=0;s<t.length;s++){var a=t.start(s),l=t.end(s),c=n[s];c||(c=this.el_.appendChild(se()),n[s]=c),c.style.left=r(a,i),c.style.width=r(l-a,i)}for(var u=n.length;u>t.length;u--)this.el_.removeChild(n[u-1]);n.length=t.length},t}(bt);bt.registerComponent("LoadProgressBar",gi);var yi=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,o){var i=je(this.el_),n=je(this.player_.el()),r=e.width*t;if(n&&i){var s=e.left-n.left+r,a=e.width-r+(n.right-e.right),l=i.width/2;s<l?l+=l-s:a<l&&(l=a),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",ae(this.el_,o)}},t}(bt);bt.registerComponent("TimeTooltip",yi);var bi=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var o=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=o.player_.scrubbing()?o.player_.getCache().currentTime:o.player_.currentTime(),n=ci(i,o.player_.duration()),r=o.getChild("timeTooltip");r&&r.update(e,t,n)}))},t}(bt);bi.prototype.options_={children:[]},S&&!(S>8)||g||b||bi.prototype.options_.children.push("timeTooltip"),bt.registerComponent("PlayProgressBar",bi);var ji=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.update=ot(tt(n,n.update),25),n}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var o=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=o.player_.duration(),n=ci(t*i,i);o.el_.style.left=e.width*t+"px",o.getChild("timeTooltip").update(e,t,n)}))},t}(bt);ji.prototype.options_={children:["timeTooltip"]},bt.registerComponent("MouseTimeDisplay",ji);var _i=5,ki=30,Ti=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.setEventHandlers_(),n}return L(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=ot(tt(this,this.update),ki),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),ki)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var o=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ci(e,o),ci(o,o)],"{1} of {2}")),this.bar.update(je(this.el_),t)},t.prototype.update=function(t){var o=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),o),o},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Se(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Se(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Bt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+_i)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-_i)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(mi);Ti.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},S&&!(S>8)||g||b||Ti.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Ti.prototype.playerEvent="timeupdate",bt.registerComponent("SeekBar",Ti);var wi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.handleMouseMove=ot(tt(n,n.handleMouseMove),25),n.throttledHandleMouseSeek=ot(tt(n,n.handleMouseSeek),25),n.enable(),n}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var o=t.getChild("mouseTimeDisplay"),i=t.el(),n=je(i),r=ke(i,e).x;r>1?r=1:r<0&&(r=0),o&&o.update(n,r)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,o=this.getChild("seekBar");o&&o.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,o=this.getChild("seekBar");o&&o.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(bt);wi.prototype.options_={children:["seekBar"]},bt.registerComponent("ProgressControl",wi);var Ci=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"fullscreenchange",n.handleFullscreenChange),!1===r[Ct.fullscreenEnabled]&&n.disable(),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Ci.prototype.controlText_="Fullscreen",bt.registerComponent("FullscreenToggle",Ci);var xi=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Ei=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(bt);bt.registerComponent("VolumeLevel",Ei);var Si=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on("slideractive",n.updateLastVolume_),n.on(o,"volumechange",n.updateARIAAttributes),o.ready((function(){return n.updateARIAAttributes()})),n}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Se(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Se(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(mi);Si.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Si.prototype.playerEvent="volumechange",bt.registerComponent("VolumeBar",Si);var Ai=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var n=D(this,e.call(this,o,i));return xi(n,o),n.throttledHandleMouseMove=ot(tt(n,n.handleMouseMove),25),n.on("mousedown",n.handleMouseDown),n.on("touchstart",n.handleMouseDown),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")})),n}return L(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(bt);Ai.prototype.options_={children:["volumeBar"]},bt.registerComponent("VolumeControl",Ai);var Oi=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Pi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return Oi(n,o),n.on(o,["loadstart","volumechange"],n.update),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),o=this.player_.lastVolume_();if(0===t){var i=o<.1?.1:o;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;g&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var o=0;o<4;o++)he(this.el_,"vjs-vol-"+o);ue(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Pi.prototype.controlText_="Mute",bt.registerComponent("MuteToggle",Pi);var Mi=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var n=D(this,e.call(this,o,i));return n.on(o,["loadstart"],n.volumePanelState_),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}return L(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(bt);Mi.prototype.options_={children:["muteToggle","volumeControl"]},bt.registerComponent("VolumePanel",Mi);var Ni=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",n.handleKeyPress),n}return L(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var o=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return o.appendChild(this.contentEl_),Ue(o,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),o},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),o=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);o&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(bt);bt.registerComponent("Menu",Ni);var Bi=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,t);var n=D(this,e.call(this,o,i));n.menuButton_=new ti(o,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=ti.prototype.buildCSSClass();return n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0,n.on(n.menuButton_,"tap",n.handleClick),n.on(n.menuButton_,"click",n.handleClick),n.on(n.menuButton_,"focus",n.handleFocus),n.on(n.menuButton_,"blur",n.handleBlur),n.on("keydown",n.handleSubmenuKeyPress),n}return L(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Ni(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var o=0;o<this.items.length;o++)e.addItem(this.items[o]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var o=ti.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+o+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){Ue(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){qe(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),g&&ne())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(bt);bt.registerComponent("MenuButton",Bi);var Ii=function(e){function t(o,i){I(this,t);var n=i.tracks,r=D(this,e.call(this,o,i));if(r.items.length<=1&&r.hide(),!n)return D(r);var s=tt(r,r.update);return n.addEventListener("removetrack",s),n.addEventListener("addtrack",s),r.player_.on("ready",s),r.player_.on("dispose",(function(){n.removeEventListener("removetrack",s),n.removeEventListener("addtrack",s)})),r}return L(t,e),t}(Bi);bt.registerComponent("TrackButton",Ii);var Li=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.selectable=i.selectable,n.isSelected_=i.selected||!1,n.multiSelectable=i.multiSelectable,n.selected(n.isSelected_),n.selectable?n.multiSelectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitemradio"):n.el_.setAttribute("role","menuitem"),n}return L(t,e),t.prototype.createEl=function(t,o,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",W({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},o),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Yo);bt.registerComponent("MenuItem",Li);var Di=function(e){function t(o,i){I(this,t);var s=i.track,a=o.textTracks();i.label=s.label||s.language||"Unknown",i.selected="showing"===s.mode;var l=D(this,e.call(this,o,i));l.track=s;var c=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];l.handleTracksChange.apply(l,t)},u=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];l.handleSelectedLanguageChange.apply(l,t)};if(o.on(["loadstart","texttrackchange"],c),a.addEventListener("change",c),a.addEventListener("selectedlanguagechange",u),l.on("dispose",(function(){o.off(["loadstart","texttrackchange"],c),a.removeEventListener("change",c),a.removeEventListener("selectedlanguagechange",u)})),void 0===a.onchange){var h=void 0;l.on(["tap","click"],(function(){if("object"!==B(n.Event))try{h=new n.Event("change")}catch(e){}h||(h=r.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)}))}return l.handleTracksChange(),l}return L(t,e),t.prototype.handleClick=function(t){var o=this.track.kind,i=this.track.kinds,n=this.player_.textTracks();if(i||(i=[o]),e.prototype.handleClick.call(this,t),n)for(var r=0;r<n.length;r++){var s=n[r];s===this.track&&i.indexOf(s.kind)>-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Li);bt.registerComponent("TextTrackMenuItem",Di);var Ri=function(e){function t(o,i){return I(this,t),i.track={player:o,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,D(this,e.call(this,o,i))}return L(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),o=!0,i=0,n=t.length;i<n;i++){var r=t[i];if(this.options_.kinds.indexOf(r.kind)>-1&&"showing"===r.mode){o=!1;break}}o!==this.isSelected_&&this.selected(o)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),o=!0,i=0,n=t.length;i<n;i++){var r=t[i];if(["captions","descriptions","subtitles"].indexOf(r.kind)>-1&&"showing"===r.mode){o=!1;break}}o&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Di);bt.registerComponent("OffTextTrackMenuItem",Ri);var Fi=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,t),i.tracks=o.textTracks(),D(this,e.call(this,o,i))}return L(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di,o=void 0;this.label_&&(o=this.label_+" off"),e.push(new Ri(this.player_,{kinds:this.kinds_,kind:this.kind_,label:o})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var n=0;n<i.length;n++){var r=i[n];if(this.kinds_.indexOf(r.kind)>-1){var s=new t(this.player_,{track:r,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+r.kind+"-menu-item"),e.push(s)}}return e},t}(Ii);bt.registerComponent("TextTrackButton",Fi);var zi=function(e){function t(o,i){I(this,t);var n=i.track,r=i.cue,s=o.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=r.text,i.selected=r.startTime<=s&&s<r.endTime;var a=D(this,e.call(this,o,i));return a.track=n,a.cue=r,n.addEventListener("cuechange",tt(a,a.update)),a}return L(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,o=this.player_.currentTime();this.selected(t.startTime<=o&&o<t.endTime)},t}(Li);bt.registerComponent("ChaptersTrackMenuItem",zi);var Vi=function(e){function t(o,i,n){return I(this,t),D(this,e.call(this,o,i,n))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var o=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);o&&o.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var o=e[t];if(o.kind===this.kind_)return o}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(mt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var o=0,i=t.length;o<i;o++){var n=t[o],r=new zi(this.player_,{track:this.track_,cue:n});e.push(r)}return e},t}(Fi);Vi.prototype.kind_="chapters",Vi.prototype.controlText_="Chapters",bt.registerComponent("ChaptersButton",Vi);var Hi=function(e){function t(o,i,n){I(this,t);var r=D(this,e.call(this,o,i,n)),s=o.textTracks(),a=tt(r,r.handleTracksChange);return s.addEventListener("change",a),r.on("dispose",(function(){s.removeEventListener("change",a)})),r}return L(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),o=!1,i=0,n=t.length;i<n;i++){var r=t[i];if(r.kind!==this.kind_&&"showing"===r.mode){o=!0;break}}o?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Fi);Hi.prototype.kind_="descriptions",Hi.prototype.controlText_="Descriptions",bt.registerComponent("DescriptionsButton",Hi);var Wi=function(e){function t(o,i,n){return I(this,t),D(this,e.call(this,o,i,n))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Fi);Wi.prototype.kind_="subtitles",Wi.prototype.controlText_="Subtitles",bt.registerComponent("SubtitlesButton",Wi);var Ui=function(e){function t(o,i){I(this,t),i.track={player:o,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var n=D(this,e.call(this,o,i));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+i.kind+" settings dialog"),n}return L(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Di);bt.registerComponent("CaptionSettingsMenuItem",Ui);var qi=function(e){function t(o,i,n){return I(this,t),D(this,e.call(this,o,i,n))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ui(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Fi);qi.prototype.kind_="captions",qi.prototype.controlText_="Captions",bt.registerComponent("CaptionsButton",qi);var Yi=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(t,o,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(n+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),n+="</span>";var r=e.prototype.createEl.call(this,t,W({innerHTML:n},o),i);return r},t}(Di);bt.registerComponent("SubsCapsMenuItem",Yi);var Ji=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,t);var n=D(this,e.call(this,o,i));return n.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions"),n.menuButton_.controlText(mt(n.label_)),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ui(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Yi),t},t}(Fi);Ji.prototype.kinds_=["captions","subtitles"],Ji.prototype.controlText_="Subtitles",bt.registerComponent("SubsCapsButton",Ji);var Gi=function(e){function t(o,i){I(this,t);var n=i.track,r=o.audioTracks();i.label=n.label||n.language||"Unknown",i.selected=n.enabled;var s=D(this,e.call(this,o,i));s.track=n,s.addClass("vjs-"+n.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];s.handleTracksChange.apply(s,t)};return r.addEventListener("change",a),s.on("dispose",(function(){r.removeEventListener("change",a)})),s}return L(t,e),t.prototype.createEl=function(t,o,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"main-desc"===this.options_.track.kind&&(n+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n      "),n+="</span>";var r=e.prototype.createEl.call(this,t,W({innerHTML:n},o),i);return r},t.prototype.handleClick=function(t){var o=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<o.length;i++){var n=o[i];n.enabled=n===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Li);bt.registerComponent("AudioTrackMenuItem",Gi);var Xi=function(e){function t(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,t),i.tracks=o.audioTracks(),D(this,e.call(this,o,i))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),o=0;o<t.length;o++){var i=t[o];e.push(new Gi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Ii);Xi.prototype.controlText_="Audio Track",bt.registerComponent("AudioTrackButton",Xi);var Ki=function(e){function t(o,i){I(this,t);var n=i.rate,r=parseFloat(n,10);i.label=n,i.selected=1===r,i.selectable=!0,i.multiSelectable=!1;var s=D(this,e.call(this,o,i));return s.label=n,s.rate=r,s.on(o,"ratechange",s.update),s}return L(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Li);Ki.prototype.contentElType="button",bt.registerComponent("PlaybackRateMenuItem",Ki);var Qi=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.updateVisibility(),n.updateLabel(),n.on(o,"loadstart",n.updateVisibility),n.on(o,"ratechange",n.updateLabel),n}return L(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=se("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Ni(this.player()),t=this.playbackRates();if(t)for(var o=t.length-1;o>=0;o--)e.addChild(new Ki(this.player(),{rate:t[o]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),o=this.playbackRates(),i=o[0],n=0;n<o.length;n++)if(o[n]>t){i=o[n];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Bi);Qi.prototype.controlText_="Playback Rate",bt.registerComponent("PlaybackRateMenuButton",Qi);var $i=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(bt);bt.registerComponent("Spacer",$i);var Zi=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}($i);bt.registerComponent("CustomControlSpacer",Zi);var en=function(e){function t(){return I(this,t),D(this,e.apply(this,arguments))}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(bt);en.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},bt.registerComponent("ControlBar",en);var tn=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i));return n.on(o,"error",n.open),n}return L(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Vt);tn.prototype.options_=yt(Vt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),bt.registerComponent("ErrorDisplay",tn);var on="vjs-text-track-settings",nn=["#000","Black"],rn=["#00F","Blue"],sn=["#0FF","Cyan"],an=["#0F0","Green"],ln=["#F0F","Magenta"],cn=["#F00","Red"],un=["#FFF","White"],hn=["#FF0","Yellow"],dn=["1","Opaque"],pn=["0.5","Semi-Transparent"],vn=["0","Transparent"],fn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nn,un,cn,an,rn,hn,ln,sn]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[dn,pn,vn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[un,nn,cn,an,rn,hn,ln,sn]},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){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[dn,pn]},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:[vn,pn,dn]}};function mn(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function gn(e,t){var o=e.options[e.options.selectedIndex].value;return mn(o,t)}function yn(e,t,o){if(t)for(var i=0;i<e.options.length;i++)if(mn(e.options[i].value,o)===t){e.selectedIndex=i;break}}fn.windowColor.options=fn.backgroundColor.options;var bn=function(e){function t(o,i){I(this,t),i.temporary=!1;var n=D(this,e.call(this,o,i));return n.updateDisplay=tt(n,n.updateDisplay),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=se("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(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()})),V(fn,(function(e){n.on(n.$(e.selector),"change",n.updateDisplay)})),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}return L(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",n=fn[e],r=n.id.replace("%s",this.id_),s=[o,r].join(" ").trim();return["<"+i+' id="'+r+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(n.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(n.options.map((function(e){var o=r+"-"+e[1].replace(/\W+/g,"");return['<option id="'+o+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+o+'">',t.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return se("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return se("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("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return se("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return H(fn,(function(t,o,i){var n=gn(e.$(o.selector),o.parser);return void 0!==n&&(t[i]=n),t}),{})},t.prototype.setValues=function(e){var t=this;V(fn,(function(o,i){yn(t.$(o.selector),e[i],o.parser)}))},t.prototype.setDefaults=function(){var e=this;V(fn,(function(t){var o=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=o}))},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(n.localStorage.getItem(on))}catch(t){X.warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?n.localStorage.setItem(on,JSON.stringify(e)):n.localStorage.removeItem(on)}catch(t){X.warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(r,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,o=e&&e.captionsButton;t?t.focus():o&&o.focus()},t}(Vt);bt.registerComponent("TextTrackSettings",bn);var jn=function(e){function t(o,i){I(this,t);var r=i.ResizeObserver||n.ResizeObserver;null===i.ResizeObserver&&(r=!1);var s=yt({createEl:!r},i),a=D(this,e.call(this,o,s));return a.ResizeObserver=i.ResizeObserver||n.ResizeObserver,a.loadListener_=null,a.resizeObserver_=null,a.debouncedHandler_=it((function(){a.resizeHandler()}),100,!1,a),r?(a.resizeObserver_=new a.ResizeObserver(a.debouncedHandler_),a.resizeObserver_.observe(o.el())):(a.loadListener_=function(){a.el_&&a.el_.contentWindow&&Ue(a.el_.contentWindow,"resize",a.debouncedHandler_)},a.one("load",a.loadListener_)),a}return L(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&qe(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(bt);bt.registerComponent("ResizeManager",jn);var _n=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var o=e.$$("source"),i=[],n="";if(!o.length)return!1;for(var r=0;r<o.length;r++){var s=o[r].src;s&&-1===i.indexOf(s)&&i.push(s)}return!!i.length&&(1===i.length&&(n=i[0]),e.triggerSourceset(n),!0)},kn={};E||(kn=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=r.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var o=r.createDocumentFragment();while(t.childNodes.length)o.appendChild(t.childNodes[0]);return this.innerText="",n.Element.prototype.appendChild.call(this,o),this.innerHTML}}));var Tn=function(e,t){for(var o={},i=0;i<e.length;i++)if(o=Object.getOwnPropertyDescriptor(e[i],t),o&&o.set&&o.get)break;return o.enumerable=!0,o.configurable=!0,o},wn=function(e){return Tn([e.el(),n.HTMLMediaElement.prototype,n.Element.prototype,kn],"innerHTML")},Cn=function(e){var t=e.el();if(!t.resetSourceWatch_){var o={},i=wn(e),n=function(o){return function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=o.apply(t,n);return _n(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(o[e]=t[e],t[e]=n(o[e]))})),Object.defineProperty(t,"innerHTML",yt(i,{set:n(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(o).forEach((function(e){t[e]=o[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},xn={};E||(xn=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?io(n.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return n.Element.prototype.setAttribute.call(this,"src",e),e}}));var En=function(e){return Tn([e.el(),n.HTMLMediaElement.prototype,xn],"src")},Sn=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var o=En(e),i=t.setAttribute,n=t.load;Object.defineProperty(t,"src",yt(o,{set:function(i){var n=o.set.call(t,i);return e.triggerSourceset(t.src),n}})),t.setAttribute=function(o,n){var r=i.call(t,o,n);return/src/i.test(o)&&e.triggerSourceset(t.src),r},t.load=function(){var o=n.call(t);return _n(e)||(e.triggerSourceset(""),Cn(e)),o},t.currentSrc?e.triggerSourceset(t.currentSrc):_n(e)||Cn(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=n,t.setAttribute=i,Object.defineProperty(t,"src",o),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},An=R(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),On=function(e){function t(o,i){I(this,t);var n=D(this,e.call(this,o,i)),r=o.source,a=!1;if(r&&(n.el_.currentSrc!==r.src||o.tag&&3===o.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),o.enableSourceset&&n.setupSourcesetHandling_(),n.el_.hasChildNodes()){var l=n.el_.childNodes,c=l.length,u=[];while(c--){var h=l[c],d=h.nodeName.toLowerCase();"track"===d&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(h),n.remoteTextTracks().addTrack(h.track),n.textTracks().addTrack(h.track),a||n.el_.hasAttribute("crossorigin")||!ro(h.src)||(a=!0)):u.push(h))}for(var p=0;p<u.length;p++)n.el_.removeChild(u[p])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&a&&X.warn(s(An)),n.restoreMetadataTracksInIOSNativePlayer_(),(P||f||k)&&!0===o.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}return L(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){Sn(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,o=function(){t=[];for(var o=0;o<e.length;o++){var i=e[o];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};o(),e.addEventListener("change",o),this.on("dispose",(function(){return e.removeEventListener("change",o)}));var i=function o(){for(var i=0;i<t.length;i++){var n=t[i];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}e.removeEventListener("change",o)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",o),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",o),e.addEventListener("change",o),e.removeEventListener("change",i)}))},t.prototype.proxyNativeTracks_=function(){var e=this;yo.names.forEach((function(t){var o=yo[t],i=e.el()[o.getterName],n=e[o.getterName]();if(e["featuresNative"+o.capitalName+"Tracks"]&&i&&i.addEventListener){var r={change:function(e){n.trigger({type:"change",target:n,currentTarget:n,srcElement:n})},addtrack:function(e){n.addTrack(e.track)},removetrack:function(e){n.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<n.length;t++){for(var o=!1,r=0;r<i.length;r++)if(i[r]===n[t]){o=!0;break}o||e.push(n[t])}while(e.length)n.removeTrack(e.shift())};Object.keys(r).forEach((function(t){var o=r[t];i.addEventListener(t,o),e.on("dispose",(function(e){return i.removeEventListener(t,o)}))})),e.on("loadstart",s),e.on("dispose",(function(t){return e.off("loadstart",s)}))}}))},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var o=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(o,e),t.disposeMediaElement(e),e=o}else{e=r.createElement("video");var i=this.options_.tag&&ve(this.options_.tag),n=yt({},i);P&&!0===this.options_.nativeControlsForTouch||delete n.controls,pe(e,W(n,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&me(e,"preload",this.options_.preload);for(var s=["loop","muted","playsinline","autoplay"],a=0;a<s.length;a++){var l=s[a],c=this.options_[l];"undefined"!==typeof c&&(c?me(e,l,l):ge(e,l),e[l]=c)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,o=function(){t=!0};this.on("loadstart",o);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",o),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var n=["loadstart"];n.push("loadedmetadata"),e.readyState>=2&&n.push("loadeddata"),e.readyState>=3&&n.push("canplay"),e.readyState>=4&&n.push("canplaythrough"),this.ready((function(){n.forEach((function(e){this.trigger(e)}),this)}))}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){X(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&b&&C&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},o=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",o),this.on("dispose",(function(){e.off("webkitbeginfullscreen",o),e.off("webkitendfullscreen",t)}))}},t.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=n.navigator&&n.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout((function(){e.pause(),e.webkitEnterFullScreen()}),0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,o,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,o,i):e.prototype.addTextTrack.call(this,t,o,i)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var o=r.createElement("track");return t.kind&&(o.kind=t.kind),t.label&&(o.label=t.label),(t.language||t.srclang)&&(o.srclang=t.language||t.srclang),t["default"]&&(o["default"]=t["default"]),t.id&&(o.id=t.id),t.src&&(o.src=t.src),o},t.prototype.addRemoteTextTrack=function(t,o){var i=e.prototype.addRemoteTextTrack.call(this,t,o);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var o=this.$$("track"),i=o.length;while(i--)t!==o[i]&&t!==o[i].track||this.el().removeChild(o[i])}},t.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),n.performance&&"function"===typeof n.performance.now?e.creationTime=n.performance.now():n.performance&&n.performance.timing&&"number"===typeof n.performance.timing.navigationStart&&(e.creationTime=n.Date.now()-n.performance.timing.navigationStart),e},t}(ko);if(oe()){On.TEST_VID=r.createElement("video");var Pn=r.createElement("track");Pn.kind="captions",Pn.srclang="en",Pn.label="English",On.TEST_VID.appendChild(Pn)}On.isSupported=function(){try{On.TEST_VID.volume=.5}catch(e){return!1}return!(!On.TEST_VID||!On.TEST_VID.canPlayType)},On.canPlayType=function(e){return On.TEST_VID.canPlayType(e)},On.canPlaySource=function(e,t){return On.canPlayType(e.type)},On.canControlVolume=function(){try{var e=On.TEST_VID.volume;return On.TEST_VID.volume=e/2+.1,e!==On.TEST_VID.volume}catch(t){return!1}},On.canMuteVolume=function(){try{var e=On.TEST_VID.muted;return On.TEST_VID.muted=!e,On.TEST_VID.muted?me(On.TEST_VID,"muted","muted"):ge(On.TEST_VID,"muted","muted"),e!==On.TEST_VID.muted}catch(t){return!1}},On.canControlPlaybackRate=function(){if(b&&C&&x<58)return!1;try{var e=On.TEST_VID.playbackRate;return On.TEST_VID.playbackRate=e/2+.1,e!==On.TEST_VID.playbackRate}catch(t){return!1}},On.canOverrideAttributes=function(){if(E)return!1;try{var e=function(){};Object.defineProperty(r.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(r.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(r.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(r.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},On.supportsNativeTextTracks=function(){return O||g&&C},On.supportsNativeVideoTracks=function(){return!(!On.TEST_VID||!On.TEST_VID.videoTracks)},On.supportsNativeAudioTracks=function(){return!(!On.TEST_VID||!On.TEST_VID.audioTracks)},On.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],On.prototype.featuresVolumeControl=On.canControlVolume(),On.prototype.featuresMuteControl=On.canMuteVolume(),On.prototype.featuresPlaybackRate=On.canControlPlaybackRate(),On.prototype.featuresSourceset=On.canOverrideAttributes(),On.prototype.movingMediaElementInDOM=!g,On.prototype.featuresFullscreenResize=!0,On.prototype.featuresProgressEvents=!0,On.prototype.featuresTimeupdateEvents=!0,On.prototype.featuresNativeTextTracks=On.supportsNativeTextTracks(),On.prototype.featuresNativeVideoTracks=On.supportsNativeVideoTracks(),On.prototype.featuresNativeAudioTracks=On.supportsNativeAudioTracks();var Mn=On.TEST_VID&&On.TEST_VID.constructor.prototype.canPlayType,Nn=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Bn=/^video\/mp4/i;On.patchCanPlayType=function(){j>=4&&!T&&!C?On.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Nn.test(e)?"maybe":Mn.call(this,e)}:_&&(On.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Bn.test(e)?"maybe":Mn.call(this,e)})},On.unpatchCanPlayType=function(){var e=On.TEST_VID.constructor.prototype.canPlayType;return On.TEST_VID.constructor.prototype.canPlayType=Mn,e},On.patchCanPlayType(),On.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},On.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),o=t.length;while(o--)e.removeChild(t[o]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){On.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){On.prototype["set"+mt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach((function(e){On.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach((function(e){On.prototype["set"+mt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){On.prototype[e]=function(){return this.el_[e]()}})),ko.withSourceHandlers(On),On.nativeSourceHandler={},On.nativeSourceHandler.canPlayType=function(e){try{return On.TEST_VID.canPlayType(e)}catch(t){return""}},On.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return On.nativeSourceHandler.canPlayType(e.type);if(e.src){var o=no(e.src);return On.nativeSourceHandler.canPlayType("video/"+o)}return""},On.nativeSourceHandler.handleSource=function(e,t,o){t.setSrc(e.src)},On.nativeSourceHandler.dispose=function(){},On.registerSourceHandler(On.nativeSourceHandler),ko.registerTech("Html5",On);var In=R(["\n        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      "],["\n        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      "]),Ln=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Dn={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Rn=["tiny","xsmall","small","medium","large","xlarge","huge"],Fn={};Rn.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Fn[e]="vjs-layout-"+t}));var zn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Vn=function(e){function t(o,i,n){if(I(this,t),o.id=o.id||i.id||"vjs_video_"+Ne(),i=W(t.getTagSettings(o),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof o.closest){var r=o.closest("[lang]");r&&r.getAttribute&&(i.language=r.getAttribute("lang"))}else{var s=o;while(s&&1===s.nodeType){if(ve(s).hasOwnProperty("lang")){i.language=s.getAttribute("lang");break}s=s.parentNode}}var a=D(this,e.call(this,null,i,n));if(a.log=K(a.id_),a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=o,a.tagAttributes=o&&ve(o),a.language(a.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach((function(e){l[e.toLowerCase()]=i.languages[e]})),a.languages_=l}else a.languages_=t.prototype.options_.languages;a.cache_={},a.poster_=i.poster||"",a.controls_=!!i.controls,a.cache_.lastVolume=1,o.controls=!1,o.removeAttribute("controls"),o.hasAttribute("autoplay")?a.options_.autoplay=!0:a.autoplay(a.options_.autoplay),a.scrubbing_=!1,a.el_=a.createEl(),a.cache_.lastPlaybackRate=a.defaultPlaybackRate(),pt(a,{eventBusKey:"el_"});var c=yt(a.options_);if(i.plugins){var h=i.plugins;Object.keys(h).forEach((function(e){if("function"!==typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](h[e])}),a)}a.options_.playerOptions=c,a.middleware_=[],a.initChildren(),a.isAudio("audio"===o.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),g||a.addClass("vjs-workinghover"),t.players[a.id_]=a;var d=u.split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",a.listenForUserActivity_),a.on("fullscreenchange",a.handleFullscreenChange_),a.on("stageclick",a.handleStageClick_),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.changingSrc_=!1,a.playWaitingForReady_=!1,a.playOnLoadstart_=null,a}return L(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Do(this),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,o=void 0,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase();i?o=this.el_=t.parentNode:s||(o=this.el_=e.prototype.createEl.call(this,"div"));var a=ve(t);if(s){o=this.el_=t,t=this.tag=r.createElement("video");while(o.children.length)t.appendChild(o.firstChild);ce(o,"video-js")||ue(o,"video-js"),o.appendChild(t),i=this.playerElIngest_=o,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach((function(e){"undefined"!==typeof o[e]&&(t[e]=o[e])}))}if(t.setAttribute("tabindex","-1"),a.tabindex="-1",S&&(t.setAttribute("role","application"),a.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(e){"class"===e?(o.className+=" "+a[e],s&&(t.className+=" "+a[e])):(o.setAttribute(e,a[e]),s&&t.setAttribute(e,a[e]))})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=o.player=this,this.addClass("vjs-paused"),!0!==n.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ze("vjs-styles-dimensions");var l=Ae(".vjs-styles-defaults"),c=Ae("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,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);for(var u=t.getElementsByTagName("a"),h=0;h<u.length;h++){var d=u.item(h);ue(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(o,t),le(t,o),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=o,o},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var o=e+"_";if(void 0===t)return this[o]||0;if(""===t)return this[o]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?X.error('Improper value "'+t+'" supplied for for '+e):(this[o]=i,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==n.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,o=void 0,i=void 0;o=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var r=o.split(":"),s=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*s,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),et(this.styleEl_,"\n      ."+i+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+i+".vjs-fluid {\n        padding-top: "+100*s+"%;\n      }\n    ")}else{var a="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),l>=0&&(c.height=l))}},t.prototype.loadTech_=function(e,t){var o=this;this.tech_&&this.unloadTech_();var i=mt(e),n=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(ko.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var r="string"!==typeof this.autoplay()&&this.autoplay(),s={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};jo.names.forEach((function(e){var t=jo[e];s[t.getterName]=o[t.privateName]})),W(s,this.options_[i]),W(s,this.options_[n]),W(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var a=ko.getTech(e);if(!a)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new a(s),this.tech_.ready(tt(this,this.handleTechReady_),!0),Rt.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Ln.forEach((function(e){o.on(o.tech_,e,o["handleTech"+mt(e)+"_"])})),Object.keys(Dn).forEach((function(e){o.on(o.tech_,e,(function(t){0===o.tech_.playbackRate()&&o.tech_.seeking()?o.queuedCallbacks_.push({callback:o["handleTech"+Dn[e]+"_"].bind(o),event:t}):o["handleTech"+Dn[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||le(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;jo.names.forEach((function(t){var o=jo[t];e[o.privateName]=e[o.getterName]()})),this.textTracksJson_=Rt.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&X.warn(s(In)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){X("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var o=function(){var e=t.muted();t.muted(!0);var o=t.play();if(o&&o.then&&o["catch"])return o["catch"]((function(o){t.muted(e)}))},i=void 0;if("any"===e?(i=this.play(),i&&i.then&&i["catch"]&&i["catch"]((function(){return o()}))):i="muted"===e?o():this.play(),i&&i.then&&i["catch"])return i.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(o){t.trigger({type:"autoplay-failure",autoplay:e})}))}},t.prototype.updateSourceCaches_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,o="";"string"!==typeof t&&(t=e.src,o=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!o&&(o=Ho(this,t)),this.cache_.source=yt({},e,{src:t,type:o});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),n=[],r=this.$$("source"),s=[],a=0;a<r.length;a++){var l=ve(r[a]);n.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=n:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var o=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,n=e.src;if(i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(!this.lastSource_||this.lastSource_.tech!==n&&this.lastSource_.player!==i)&&(o=function(){}),o(n),!e.src){var r=function e(o){if("sourceset"!==o.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}t.tech_.off(["sourceset","loadstart"],e)};this.tech_.one(["sourceset","loadstart"],r)}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return e.removeClass("vjs-waiting")}))},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(X.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")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){Se(e)&&this.controls_&&(this.paused()?Bt(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready((function(){if(e in No)return Oo(this.middleware_,this.tech_,e,t);if(e in Bo)return Po(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(o){throw X(o),o}}),!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Mo)return Ao(this.middleware_,this.tech_,e);if(e in Bo)return Po(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw X("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw X("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw X(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||n.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bt;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready((function(){e.playWaitingForReady_=!1,t(e.play())}))}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||Tt(0,0)},t.prototype.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Tt(0,0)),e},t.prototype.bufferedPercent=function(){return wt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),o=e.end(e.length-1);return o>t&&(o=t),o},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=Ct;this.isFullscreen(!0),e.requestFullscreen?(Ue(r,e.fullscreenchange,tt(this,(function t(o){this.isFullscreen(r[e.fullscreenElement]),!1===this.isFullscreen()&&qe(r,e.fullscreenchange,t),this.trigger("fullscreenchange")}))),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=Ct;this.isFullscreen(!1),e.requestFullscreen?r[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=r.documentElement.style.overflow,Ue(r,"keydown",tt(this,this.fullWindowOnEscKey)),r.documentElement.style.overflow="hidden",ue(r.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,qe(r,"keydown",this.fullWindowOnEscKey),r.documentElement.style.overflow=this.docOrigOverflow,he(r.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,o=0,i=this.options_.techOrder;o<i.length;o++){var n=i[o],r=ko.getTech(n);if(r||(r=bt.getComponent(n)),r){if(r.isSupported()&&(t=r.canPlayType(e),t))return t}else X.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t=this,o=this.options_.techOrder.map((function(e){return[e,ko.getTech(e)]})).filter((function(e){var t=e[0],o=e[1];return o?o.isSupported():(X.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,o){var i=void 0;return e.some((function(e){return t.some((function(t){if(i=o(e,t),i)return!0}))})),i},n=void 0,r=function(e){return function(t,o){return e(o,t)}},s=function(e,o){var i=e[0],n=e[1];if(n.canPlaySource(o,t.options_[i.toLowerCase()]))return{source:o,tech:i}};return n=this.options_.sourceOrder?i(e,o,r(s)):i(o,e,s),n||!1},t.prototype.src=function(e){var t=this;if("undefined"===typeof e)return this.cache_.src||"";var o=Wo(e);o.length?(this.changingSrc_=!0,this.cache_.sources=o,this.updateSourceCaches_(o[0]),Eo(this,o[0],(function(e,i){t.middleware_=i,t.cache_.sources=o,t.updateSourceCaches_(e);var n=t.src_(e);if(n)return o.length>1?t.src(o.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());So(i,t.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},t.prototype.src_=function(e){var t=this,o=this.selectSource([e]);return!o||(gt(o.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(o.tech,o.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"===typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},t.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},t.prototype.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Pt(e),this.addClass("vjs-error"),X.error("(CODE:"+this.error_.code+" "+Pt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,o=void 0,i=tt(this,this.reportUserActivity),n=function(e){e.screenX===t&&e.screenY===o||(t=e.screenX,o=e.screenY,i())},r=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",r),this.on("mousemove",n),this.on("mouseup",s),this.on("keydown",i),this.on("keyup",i);var a=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,o){if(this.tech_)return this.tech_.addTextTrack(e,t,o)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,o=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(o)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return yt(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=yt(this.options_),t=e.tracks;e.tracks=[];for(var o=0;o<t.length;o++){var i=t[o];i=yt(i),i.player=void 0,e.tracks[o]=i}return e},t.prototype.createModal=function(e,t){var o=this;t=t||{},t.content=e||"";var i=new Vt(this,t);return this.addChild(i),i.on("dispose",(function(){o.removeChild(i)})),i.open(),i},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),o=0;o<Rn.length;o++){var i=Rn[o],n=this.breakpoints_[i];if(t<=n){if(e===i)return;e&&this.removeClass(Fn[e]),this.addClass(Fn[i]),this.breakpoint_=i;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e?W(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=W({},zn,e),this.updateCurrentBreakpoint_(),W(this.breakpoints_))},t.prototype.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return Fn[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},o=ve(e),i=o["data-setup"];if(ce(e,"vjs-fill")&&(o.fill=!0),ce(e,"vjs-fluid")&&(o.fluid=!0),null!==i){var n=a(i||"{}"),r=n[0],s=n[1];r&&X.error(r),W(o,s)}if(W(t,o),e.hasChildNodes())for(var l=e.childNodes,c=0,u=l.length;c<u;c++){var h=l[c],d=h.nodeName.toLowerCase();"source"===d?t.sources.push(ve(h)):"track"===d&&t.tracks.push(ve(h))}return t},t.prototype.flexNotSupported_=function(){var e=r.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(bt);jo.names.forEach((function(e){var t=jo[e];Vn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Vn.players={};var Hn=n.navigator;Vn.prototype.options_={techOrder:ko.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Hn&&(Hn.languages&&Hn.languages[0]||Hn.userLanguage||Hn.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},E||Vn.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Vn.prototype[e]=function(){return this.techGet_(e)}})),Ln.forEach((function(e){Vn.prototype["handleTech"+mt(e)+"_"]=function(){return this.trigger(e)}})),bt.registerComponent("Player",Vn);var Wn="plugin",Un="activePlugins_",qn={},Yn=function(e){return qn.hasOwnProperty(e)},Jn=function(e){return Yn(e)?qn[e]:void 0},Gn=function(e,t){e[Un]=e[Un]||{},e[Un][t]=!0},Xn=function(e,t,o){var i=(o?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Kn=function(e,t){var o=function(){Xn(this,{name:e,plugin:t,instance:null},!0);var o=t.apply(this,arguments);return Gn(this,e),Xn(this,{name:e,plugin:t,instance:o}),o};return Object.keys(t).forEach((function(e){o[e]=t[e]})),o},Qn=function(e,t){return t.prototype.name=e,function(){Xn(this,{name:e,plugin:t,instance:null},!0);for(var o=arguments.length,i=Array(o),n=0;n<o;n++)i[n]=arguments[n];var r=new(Function.prototype.bind.apply(t,[null].concat([this].concat(i))));return this[e]=function(){return r},Xn(this,r.getEventHash()),r}},$n=function(){function e(t){if(I(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,pt(this),delete this.trigger,ft(this,this.constructor.defaultState),Gn(t,this.name),this.dispose=tt(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ye(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Un][e]=!1,this.player=this.state=null,t[e]=Qn(e,qn[e])},e.isBasic=function(t){var o="string"===typeof t?Jn(t):t;return"function"===typeof o&&!e.prototype.isPrototypeOf(o.prototype)},e.registerPlugin=function(t,o){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+("undefined"===typeof t?"undefined":B(t))+".");if(Yn(t))X.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Vn.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof o)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+("undefined"===typeof o?"undefined":B(o))+".");return qn[t]=o,t!==Wn&&(e.isBasic(o)?Vn.prototype[t]=Kn(t,o):Vn.prototype[t]=Qn(t,o)),o},e.deregisterPlugin=function(e){if(e===Wn)throw new Error("Cannot de-register base plugin.");Yn(e)&&(delete qn[e],delete Vn.prototype[e])},e.getPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(qn),t=void 0;return e.forEach((function(e){var o=Jn(e);o&&(t=t||{},t[e]=o)})),t},e.getPluginVersion=function(e){var t=Jn(e);return t&&t.VERSION||""},e}();$n.getPlugin=Jn,$n.BASE_PLUGIN_NAME=Wn,$n.registerPlugin(Wn,$n),Vn.prototype.usingPlugin=function(e){return!!this[Un]&&!0===this[Un][e]},Vn.prototype.hasPlugin=function(e){return!!Yn(e)};var Zn=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":B(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=function(){e.apply(this,arguments)},i={};for(var n in"object"===("undefined"===typeof t?"undefined":B(t))?(t.constructor!==Object.prototype.constructor&&(o=t.constructor),i=t):"function"===typeof t&&(o=t),Zn(o,e),i)i.hasOwnProperty(n)&&(o.prototype[n]=i[n]);return o};"undefined"===typeof HTMLVideoElement&&oe()&&(r.createElement("video"),r.createElement("audio"),r.createElement("track"),r.createElement("video-js"));var tr=function(e){return 0===e.indexOf("#")?e.slice(1):e};function or(e,t,o){var i=or.getPlayer(e);if(i)return t&&X.warn('Player "'+e+'" is already initialised. Options will not be applied.'),o&&i.ready(o),i;var n="string"===typeof e?Ae("#"+tr(e)):e;if(!ie(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.body.contains(n)||X.warn("The element supplied is not included in the DOM"),t=t||{},or.hooks("beforesetup").forEach((function(e){var o=e(n,yt(t));U(o)&&!Array.isArray(o)?t=yt(t,o):X.error("please return an object in beforesetup hooks")}));var s=bt.getComponent("Player");return i=new s(n,t,o),or.hooks("setup").forEach((function(e){return e(i)})),i}if(or.hooks_={},or.hooks=function(e,t){return or.hooks_[e]=or.hooks_[e]||[],t&&(or.hooks_[e]=or.hooks_[e].concat(t)),or.hooks_[e]},or.hook=function(e,t){or.hooks(e,t)},or.hookOnce=function(e,t){or.hooks(e,[].concat(t).map((function(t){var o=function o(){return or.removeHook(e,o),t.apply(void 0,arguments)};return o})))},or.removeHook=function(e,t){var o=or.hooks(e).indexOf(t);return!(o<=-1)&&(or.hooks_[e]=or.hooks_[e].slice(),or.hooks_[e].splice(o,1),!0)},!0!==n.VIDEOJS_NO_DYNAMIC_STYLE&&oe()){var ir=Ae(".vjs-styles-defaults");if(!ir){ir=Ze("vjs-styles-defaults");var nr=Ae("head");nr&&nr.insertBefore(ir,nr.firstChild),et(ir,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}$e(1,or),or.VERSION=u,or.options=Vn.prototype.options_,or.getPlayers=function(){return Vn.players},or.getPlayer=function(e){var t=Vn.players,o=void 0;if("string"===typeof e){var i=tr(e),n=t[i];if(n)return n;o=Ae("#"+i)}else o=e;if(ie(o)){var r=o,s=r.player,a=r.playerId;if(s||t[a])return s||t[a]}},or.getAllPlayers=function(){return Object.keys(Vn.players).map((function(e){return Vn.players[e]})).filter(Boolean)},or.players=Vn.players,or.getComponent=bt.getComponent,or.registerComponent=function(e,t){ko.isTech(t)&&X.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),bt.registerComponent.call(bt,e,t)},or.getTech=ko.getTech,or.registerTech=ko.registerTech,or.use=xo,!E&&Object.defineProperty?(Object.defineProperty(or,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(or.middleware,"TERMINATOR",{value:Co,writeable:!1,enumerable:!0})):or.middleware={TERMINATOR:Co},or.browser=N,or.TOUCH_ENABLED=P,or.extend=er,or.mergeOptions=yt,or.bind=tt,or.registerPlugin=$n.registerPlugin,or.deregisterPlugin=$n.deregisterPlugin,or.plugin=function(e,t){return X.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),$n.registerPlugin(e,t)},or.getPlugins=$n.getPlugins,or.getPlugin=$n.getPlugin,or.getPluginVersion=$n.getPluginVersion,or.addLanguage=function(e,t){var o;return e=(""+e).toLowerCase(),or.options.languages=yt(or.options.languages,(o={},o[e]=t,o)),or.options.languages[e]},or.log=X,or.createLogger=K,or.createTimeRange=or.createTimeRanges=Tt,or.formatTime=ci,or.setFormatTime=ai,or.resetFormatTime=li,or.parseUrl=oo,or.isCrossOrigin=ro,or.EventTarget=nt,or.on=Ue,or.one=Je,or.off=qe,or.trigger=Ye,or.xhr=l,or.TextTrack=co,or.AudioTrack=uo,or.VideoTrack=ho,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){or[e]=function(){return X.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Pe[e].apply(null,arguments)}})),or.computedStyle=Q,or.dom=Pe,or.url=so,e.exports=or},"3fa7":function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".card-header-icon{padding:.75rem .75rem .75rem 0}",""])},"451f7":function(e,t,o){var i=o("cdc5");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("6f470f0a",i,!0,{sourceMap:!1,shadowMode:!1})},"53a8":function(e,t){e.exports=i;var o=Object.prototype.hasOwnProperty;function i(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var n in i)o.call(i,n)&&(e[n]=i[n])}return e}},6444:function(e,t){var o=function(e){return e.replace(/^\s+|\s+$/g,"")},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e){if(!e)return{};for(var t={},n=o(e).split("\n"),r=0;r<n.length;r++){var s=n[r],a=s.indexOf(":"),l=o(s.slice(0,a)).toLowerCase(),c=o(s.slice(a+1));"undefined"===typeof t[l]?t[l]=c:i(t[l])?t[l].push(c):t[l]=[t[l],c]}return t}},"672b":function(e,t,o){(function(t){var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=o}).call(this,o("c8ba"))},"6c9b":function(e,t,o){var i=o("8612");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("7ca2e7d8",i,!0,{sourceMap:!1,shadowMode:!1})},7815:function(e,t,o){"use strict";var i,n,r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("core-uploader",e._g(e._b({ref:"uploader",scopedSlots:e._u([{key:"default",fn:function(t){var i=t.label,n=t.compact,r=t.inputBindings,s=t.inputEvents,a=t.controlEvents;return[o("form",{staticClass:"is-marginless",on:{submit:function(e){e.preventDefault()}}},[o("input",e._g(e._b({staticClass:"is-hidden"},"input",r,!1),s)),e._t("control",[o("a",e._g({class:["file",{"is-small":e.isSmall},{"is-large":e.isLarge}]},a),[o("span",{class:["file-cta",{"is-rounded":e.isRounded}]},[n?e._e():o("span",{staticClass:"has-margin-right-small"},[e._v(" "+e._s(i)+"… ")]),o("span",{staticClass:"file-icon is-marginless"},[o("fa",{attrs:{icon:"upload"}})],1)])])],{controlEvents:a})],2)]}}],null,!0)},"core-uploader",e.$attrs,!1),e.$listeners))},s=[],a=o("ecee"),l=o("c074"),c=(o("e260"),o("ddb0"),(e,t)=>{if(0===e)return"0 Bytes";const o=1024,i=t<=0?0:t||2,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(o));return`${parseFloat((e/o**r).toFixed(i))} ${n[r]}`}),u={name:"CoreUploader",inject:["errorHandler"],props:{fileKey:{type:String,default:"file"},fileSizeLimit:{type:Number,default:20971520},i18n:{type:Function,default:e=>e},multiple:{type:Boolean,default:!1},params:{type:Object,default:null},url:{type:String,required:!0},compact:{type:Boolean,default:!1}},data:()=>({formData:new FormData,succesfull:0}),computed:{label(){return this.multiple?this.i18n("File(s)"):this.i18n("File")},input(){return!!this.$el&&this.$el.querySelector("input")}},methods:{browseFiles(){this.input.click(),this.$emit("open-file-browser")},upload(){this.$emit("upload-start"),this.setFormData(),0!==this.succesfull&&axios.post(this.url,this.formData).then(e=>{this.reset(),this.$emit("upload-successful",e.data)}).catch(e=>{this.reset(),this.$emit("upload-error");var{data:t,status:o}=e.response;422!==o?this.errorHandler(e):Object.keys(t.errors).forEach(e=>this.$toastr.error(t.errors[e][0]))})},setFormData(){var{files:e}=this.input;this.addFiles(e),this.succesfull>0&&this.addParams()},addFiles(e){if(this.multiple)for(var t=0;t<e.length;t++)this.sizeCheckPasses(e[t])&&(this.addFile("".concat(this.fileKey,"_").concat(t),e[t]),this.succesfull++);else this.addFile(this.fileKey,e[0])},addFile(e,t){this.sizeCheckPasses(t)&&(this.formData.append(e,t),this.succesfull++)},addParams(){this.params&&Object.entries(this.params).forEach(e=>{var[t,o]=e,i="object"===typeof o?JSON.stringify(o):o;this.formData.append(t,i)})},sizeCheckPasses(e){return!(e.size>this.fileSizeLimit)||(this.$toastr.warning("File size Limit of ".concat(c(this.fileSizeLimit,2)," exceeded by ").concat(e.name)),!1)},reset(){this.$el.reset(),this.formData=new FormData,this.succesfull=0}},render(){return this.$scopedSlots.default({label:this.label,multiple:this.multiple,upload:this.upload,compact:this.compact,inputBindings:{multiple:this.multiple,type:"file"},inputEvents:{change:this.upload},controlEvents:{click:this.browseFiles}})}},h=u,d=o("2877"),p=Object(d["a"])(h,i,n,!1,null,null,null),v=p.exports;a["c"].add(l["fc"]);var f={name:"Uploader",components:{CoreUploader:v},props:{isLarge:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},isSmall:{type:Boolean,default:!1}},methods:{browseFiles(){this.$refs.uploader.browseFiles()}}},m=f,g=(o("174f"),Object(d["a"])(m,r,s,!1,null,null,null)),y=g.exports,b=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("uploader",e._g(e._b({ref:"uploader",attrs:{i18n:e.i18n}},"uploader",e.$attrs,!1),e.$listeners))},j=[],_={name:"EnsoUploader",components:{Uploader:y},inject:["i18n"],methods:{browseFiles(){this.$refs.uploader.browseFiles()}}},k=_,T=Object(d["a"])(k,b,j,!1,null,null,null),w=T.exports;o.d(t,"b",(function(){return y})),o.d(t,"a",(function(){return w}))},"813c":function(e,t,o){"use strict";var i=o("17f3"),n=o.n(i);n.a},8362:function(e,t){e.exports=i;var o=Object.prototype.toString;function i(e){var t=o.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},8612:function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".confirmation>.trigger{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}",""])},"8c10":function(e,t){function o(e,t){var o,i=null;try{o=JSON.parse(e,t)}catch(n){i=n}return[i,o]}e.exports=o},a0ca:function(e,t,o){"use strict";var i=o("eb98"),n=o.n(i);n.a},ac67:function(e,t,o){"use strict";var i=o("ae64"),n=o.n(i);n.a},ae64:function(e,t,o){var i=o("0758");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("2c59acfa",i,!0,{sourceMap:!1,shadowMode:!1})},af24:function(e,t,o){var i=o("b5e8");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("14c9c42a",i,!0,{sourceMap:!1,shadowMode:!1})},b03c:function(e,t){var o="auto",i={"":!0,lr:!0,rl:!0},n={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function a(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}function l(e,t,i){var n=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={};l?n=document.createElement("custom"):c.enumerable=!0,n.hasBeenReset=!1;var u="",h=!1,d=e,p=t,v=i,f=null,m="",g=!0,y="auto",b="start",j=50,_="middle",k=50,T="middle";if(Object.defineProperty(n,"id",a({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(n,"pauseOnExit",a({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(n,"startTime",a({},c,{get:function(){return d},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"endTime",a({},c,{get:function(){return p},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"text",a({},c,{get:function(){return v},set:function(e){v=""+e,this.hasBeenReset=!0}})),Object.defineProperty(n,"region",a({},c,{get:function(){return f},set:function(e){f=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"vertical",a({},c,{get:function(){return m},set:function(e){var t=r(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"snapToLines",a({},c,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(n,"line",a({},c,{get:function(){return y},set:function(e){if("number"!==typeof e&&e!==o)throw new SyntaxError("An invalid number or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"lineAlign",a({},c,{get:function(){return b},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"position",a({},c,{get:function(){return j},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");j=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",a({},c,{get:function(){return _},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",a({},c,{get:function(){return k},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");k=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",a({},c,{get:function(){return T},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),n.displayState=void 0,l)return n}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=l},b5e8:function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".file-cta.is-rounded{border-radius:290486px}",""])},b8e0:function(e,t,o){"use strict";var i=o("3a94"),n=o.n(i);n.a},be09:function(e,t,o){(function(t){var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=o}).call(this,o("c8ba"))},ca65:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"columns is-reverse-mobile"},[o("div",{staticClass:"column is-three-quarters-desktop is-full-touch"},[e.addingVideo||e.editingVideo?o("div",{staticClass:"columns animated fadeInDown"},[o("div",{staticClass:"column is-narrow"},[o("div",{staticClass:"control"},[o("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:e.video.name,expression:"video.name"}],staticClass:"input",attrs:{type:"text",placeholder:e.i18n("Video name")},domProps:{value:e.video.name},on:{input:function(t){t.target.composing||e.$set(e.video,"name",t.target.value)}}})])]),o("div",{staticClass:"column"},[o("div",{staticClass:"control is-expanded"},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.video.description,expression:"video.description"}],staticClass:"textarea",attrs:{rows:"2",type:"text",placeholder:e.i18n("Video description")},domProps:{value:e.video.description},on:{input:function(t){t.target.composing||e.$set(e.video,"description",t.target.value)}}})])]),o("div",{staticClass:"column is-narrow is-flex"},[e.video.name?o("div",{staticClass:"control animated fadeIn"},[e.addingVideo?o("uploader",{attrs:{url:e.uploadLink,params:e.video,"file-size-limit":2e7,"file-key":"video"},on:{"upload-successful":function(t){e.reset(),e.getVideos()}},scopedSlots:e._u([{key:"control",fn:function(t){var i=t.controlEvents;return[o("a",e._g({},i),[o("span",{staticClass:"file-cta"},[o("span",{staticClass:"file-icon"},[o("fa",{attrs:{icon:"upload"}})],1),o("span",{staticClass:"file-label"},[e._v(" "+e._s(e.i18n("Video"))+"… ")])])])]}}],null,!1,1288928430)}):e._e(),e.editingVideo?o("a",{staticClass:"button is-outlined is-success",on:{click:function(t){e.video=e.video,e.update()}}},[o("span",{staticClass:"icon"},[o("fa",{attrs:{icon:"check"}})],1)]):e._e()],1):e._e(),e.addingVideo||e.editingVideo?o("div",{staticClass:"control animated fadeIn"},[o("a",{staticClass:"button is-danger is-outlined",on:{click:function(t){return e.reset()}}},[o("span",{staticClass:"icon"},[o("fa",{attrs:{icon:"ban"}})],1)])]):e._e()])]):e._e(),o("div",{staticClass:"columns is-multiline"},e._l(e.filteredVideos,(function(t,i){return o("div",{key:i,staticClass:"column is-half"},[o("how-to-video",{staticClass:"is-rounded raises-on-hover",attrs:{video:t,tags:e.tags},on:{"start-tagging":function(o){e.video=t,e.taggingId=e.video.id},"stop-tagging":function(o){e.video=t,e.taggingId=null,e.update()},delete:function(t){return e.videos.splice(i,1)},update:function(o){e.video=t,e.update()},edit:function(o){e.video=t,e.editingVideo=!0}}})],1)})),0)]),o("div",{staticClass:"column is-one-quarter"},[e.canAccess("howTo.videos.store")?o("a",{staticClass:"button is-info is-fullwidth has-margin-bottom-medium",attrs:{disabled:e.addingVideo||e.editingVideo},on:{click:function(t){e.addingVideo=!0}}},[o("span",[e._v(" "+e._s(e.i18n("Add video"))+" ")]),o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"plus"}})],1)]):e._e(),o("div",{staticClass:"box has-background-light raises-on-hover"},[o("div",{staticClass:"level"},[o("div",{staticClass:"level-left"},[o("div",{staticClass:"level-item"},[o("label",{staticClass:"label"},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"tags",size:"xs"}})],1),e._v(" "+e._s(e.i18n("Tags"))+" ")])])]),o("div",{staticClass:"level-right"},[o("div",{staticClass:"level-item"},[e.canAccess("howTo.tags.store")&&e.query&&e.tagIsNew?o("a",{staticClass:"button is-small is-outlined is-success",on:{click:e.addTag}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"check"}})],1)]):e._e(),e.canAccess("howTo.tags.update")&&!e.query&&e.selectedTag?o("a",{staticClass:"button is-small is-outlined is-danger",on:{click:function(t){e.editingTag=!0}}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"pencil-alt"}})],1)]):e._e(),e.editingTag?o("a",{staticClass:"button is-small is-outlined is-success has-margin-left-small",on:{click:function(t){e.editingTag=!1,e.updateTag()}}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"check"}})],1)]):e._e(),e.editingTag?o("a",{staticClass:"button is-small is-outlined has-margin-left-small",on:{click:function(t){e.editingTag=!1}}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"ban"}})],1)]):e._e()])])]),e.editingTag?o("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTag.name,expression:"selectedTag.name"}],staticClass:"input",attrs:{type:"text"},domProps:{value:e.selectedTag.name},on:{input:function(t){t.target.composing||e.$set(e.selectedTag,"name",t.target.value)}}}):o("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],staticClass:"input",attrs:{type:"text"},domProps:{value:e.query},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTag(t)},input:function(t){t.target.composing||(e.query=t.target.value)}}}),o("div",{staticClass:"field is-grouped is-grouped-multiline has-margin-top-medium"},e._l(e.filteredTags,(function(t){return o("div",{key:t.id,staticClass:"control"},[o("div",{staticClass:"tags has-addons"},[o("span",{class:["tag is-white is-clickable",{"is-bold":t.selected}],on:{click:function(o){e.taggingId?e.video.tagList.push(t.id):t.selected=!t.selected}}},[e._v(" "+e._s(t.name)+" ")]),e.canAccess("howTo.tags.destroy")&&!e.taggingId?o("a",{staticClass:"tag is-delete is-white",on:{click:function(o){return e.deleteTag(t.id)}}}):e._e()])])})),0)])])])},n=[],r=(o("e260"),o("2532"),o("ddb0"),o("ecee")),s=o("c074"),a=o("a198"),l=o("7815"),c=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("card",[o("card-header",{scopedSlots:e._u([{key:"title",fn:function(){return[o("span",{staticClass:"icon is-small has-margin-right-small"},[o("fa",{attrs:{icon:"video"}})],1),e._v(" "+e._s(e.video.name)+" ")]},proxy:!0},{key:"controls",fn:function(){return[o("card-control",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.video.description,expression:"video.description"}]},[o("span",{staticClass:"icon"},[o("fa",{attrs:{icon:"info-circle"}})],1)]),!e.video.poster&&e.canAccess("howTo.posters.store")?o("card-control",[o("uploader",{attrs:{url:e.route("howTo.posters.store"),params:{videoId:e.video.id},"file-key":"poster"},on:{"upload-successful":function(t){e.video.poster=t}},scopedSlots:e._u([{key:"control",fn:function(t){var i=t.controlEvents;return[o("a",e._g({},i),[o("span",{staticClass:"icon"},[o("fa",{attrs:{icon:["far","image"]}})],1)])]}}],null,!1,4012464575)})],1):e._e(),e.canAccess("howTo.videos.update")?o("card-control",[o("span",{staticClass:"icon",on:{click:function(t){return e.$emit("edit")}}},[o("fa",{attrs:{icon:["far","edit"]}})],1)]):e._e(),e.canAccess("howTo.videos.update")?o("card-control",[o("span",{staticClass:"icon",on:{click:function(t){e.tagging=!e.tagging,e.$emit(e.tagging?"start-tagging":"stop-tagging")}}},[o("fa",{attrs:{icon:e.tagging?"check":"tags"}})],1)]):e._e(),e.canAccess("howTo.posters.destroy")&&e.video.poster?o("card-control",[o("confirmation",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.i18n("Remove poster"),expression:"i18n('Remove poster')"}],on:{confirm:e.destroyPoster}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:["far","trash-alt"]}})],1)])],1):e.canAccess("howTo.videos.destroy")?o("card-control",[o("confirmation",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.i18n("Delete video"),expression:"i18n('Delete video')"}],on:{confirm:e.destroyVideo}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:["far","trash-alt"]}})],1)])],1):e._e(),o("card-collapse")]},proxy:!0}])}),o("card-content",{staticClass:"is-paddingless"},[o("video-player",{staticClass:"vjs-custom-skin",attrs:{options:e.options(),playsinline:""}})],1),o("card-footer",[o("card-footer-item",[e.video.tagList.length?o("div",{staticClass:"field is-grouped is-grouped-multiline"},e._l(e.tagList,(function(t,i){return o("div",{key:i,staticClass:"control"},[o("div",{staticClass:"tags is-bold has-addons"},[o("span",{staticClass:"tag"},[e._v(" "+e._s(t.name)+" ")]),e.canAccess("howTo.videos.update")&&e.tagging?o("a",{staticClass:"tag is-delete",on:{click:function(o){return e.removeTag(t)}}}):e._e()])])})),0):o("span",{staticClass:"tag"},[e._v(" "+e._s(e.i18n("untagged"))+" ")])])],1)],1)},u=[],h=o("e37d"),d={prefix:"far",iconName:"edit",icon:[576,512,[],"f044","M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"]},p={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"]},v={prefix:"far",iconName:"trash-alt",icon:[448,512,[],"f2ed","M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"]},f=o("d6d3"),m=(o("451f7"),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"card"},[e._t("default"),e.loading?o("loader",{attrs:{size:"medium"}}):e._e()],2)}),g=[],y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("fade",[e.visible?o("div",{staticClass:"overlay is-overlay",class:{"is-opaque":!e.transparent}},[o("div",{class:["loader","is-"+e.size],style:e.borderColor})]):e._e()])},b=[],j=o("4657"),_={name:"Loader",components:{Fade:j["a"]},props:{color:{type:String,default:"#f44336"},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},transparent:{type:Boolean,default:!1}},data:()=>({visible:!1}),computed:{borderColor(){return{"border-color":"".concat(this.color)}}},mounted(){this.visible=!0}},k=_,T=(o("ac67"),o("2877")),w=Object(T["a"])(k,y,b,!1,null,null,null),C=w.exports,x=C,E={name:"Card",components:{Loader:x},props:{collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:e=>({cardState:{collapsed:e.collapsed,collapsible:e.collapsible,remove:!1}}),provide(){return{cardState:this.cardState,toggle:this.toggle}},watch:{collapsed(e){this.cardState.collapsed=e,this.$emit(e?"collapse":"expand")},"cardState.remove":"remove"},methods:{toggle(){this.cardState.collapsible&&(this.cardState.collapsed=!this.cardState.collapsed)},remove(){this.$emit("remove"),this.$nextTick(()=>{this.$el.parentNode.removeChild(this.$el),this.$destroy()})}}},S=E,A=(o("813c"),Object(T["a"])(S,m,g,!1,null,null,null)),O=A.exports,P=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("header",{staticClass:"card-header",class:[{collapsed:e.cardState.collapsed},{"is-clickable":e.cardState.collapsible}]},[o("p",{staticClass:"card-header-title",on:{click:e.toggle}},[e._t("title")],2),e._t("controls")],2)},M=[],N={name:"CardHeader",inject:["cardState","toggle"]},B=N,I=(o("a0ca"),Object(T["a"])(B,P,M,!1,null,null,null)),L=I.exports,D=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:!e.cardState.collapsible||!e.cardState.collapsed,expression:"cardState.collapsible ? !cardState.collapsed : true"}],staticClass:"card-content"},[e._t("default")],2)},R=[],F={name:"CardContent",inject:["cardState"]},z=F,V=Object(T["a"])(z,D,R,!1,null,null,null),H=V.exports,W=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"card-image"},[e._t("default")],2)},U=[],q={name:"CardImage"},Y=q,J=Object(T["a"])(Y,W,U,!1,null,null,null),G=(J.exports,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("footer",{staticClass:"card-footer"},[e._t("default")],2)}),X=[],K={},Q=Object(T["a"])(K,G,X,!1,null,null,null),$=Q.exports,Z=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("a",{staticClass:"card-footer-item",attrs:{href:"#"}},[e._t("default")],2)},ee=[],te={},oe=Object(T["a"])(te,Z,ee,!1,null,null,null),ie=oe.exports,ne=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("a",e._g({staticClass:"card-header-icon"},e.$listeners),[e._t("default")],2)},re=[],se={name:"CardControl"},ae=se,le=(o("b8e0"),Object(T["a"])(ae,ne,re,!1,null,null,null)),ce=le.exports,ue=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("card-control",[o("span",{class:["tag",e.type]},[e._v(" "+e._s(e.label)+" ")])])},he=[],de={name:"CardBadge",components:{CardControl:ce},props:{label:{type:[String,Number],required:!0},type:{type:String,default:null}}},pe=de,ve=Object(T["a"])(pe,ue,he,!1,null,null,null),fe=(ve.exports,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("card-control",{on:{click:e.toggle}},[o("dropdown-indicator",{attrs:{open:!e.cardState.collapsed}})],1)}),me=[],ge=o("ee39"),ye={name:"CardCollapse",components:{DropdownIndicator:ge["a"],CardControl:ce},inject:["cardState","toggle"]},be=ye,je=Object(T["a"])(be,fe,me,!1,null,null,null),_e=je.exports,ke=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("card-control",{on:{click:function(t){return e.$emit("refresh")}}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"sync"}})],1)])},Te=[];r["c"].add(s["Tb"]);var we={name:"CardRefresh",components:{CardControl:ce}},Ce=we,xe=Object(T["a"])(Ce,ke,Te,!1,null,null,null),Ee=(xe.exports,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("card-control",{on:{click:function(t){e.cardState.remove=!0}}},[o("a",{staticClass:"delete is-small"})])}),Se=[],Ae={name:"CardRemove",components:{CardControl:ce},inject:["cardState"]},Oe=Ae,Pe=Object(T["a"])(Oe,Ee,Se,!1,null,null,null),Me=(Pe.exports,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("core-confirmation",e._g(e._b({staticClass:"confirmation",scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default")]},proxy:!0},{key:"confirm",fn:function(e){var t=e.confirm;return[o("a",{staticClass:"button is-small is-success has-margin-right-medium",on:{click:t}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"check"}})],1)])]}},{key:"cancel",fn:function(e){var t=e.cancel;return[o("a",{staticClass:"button is-small is-danger",on:{click:t}},[o("span",{staticClass:"icon is-small"},[o("fa",{attrs:{icon:"times"}})],1)])]}}],null,!0)},"core-confirmation",e.$attrs,!1),e.$listeners))}),Ne=[],Be=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-popover",e._g(e._b({ref:"dialog",scopedSlots:e._u([{key:"popover",fn:function(){return[e._t("confirm",null,{confirm:e.confirm}),e._t("cancel",null,{cancel:e.cancel})]},proxy:!0}],null,!0)},"v-popover",e.$attrs,!1),e.$listeners),[e._t("default")],2)},Ie=[],Le={name:"CoreConfirmation",components:{VPopover:h["a"]},methods:{hide(){this.$refs.dialog.hide()},cancel(){this.hide(),this.$emit("cancel")},confirm(){this.hide(),this.$emit("confirm")}}},De=Le,Re=Object(T["a"])(De,Be,Ie,!1,null,null,null),Fe=Re.exports;r["c"].add(s["D"],s["Zb"]);var ze={name:"Confirmation",components:{CoreConfirmation:Fe}},Ve=ze,He=(o("e24d"),Object(T["a"])(Ve,Me,Ne,!1,null,null,null)),We=He.exports,Ue=We;o("2275");r["c"].add([v,s["nb"],s["Xb"],d,p,s["ob"]]);var qe={name:"HowToVideo",inject:["canAccess","errorHandler","i18n","route"],directives:{tooltip:h["b"]},components:{Card:O,CardControl:ce,Confirmation:Ue,videoPlayer:f["videoPlayer"],CardHeader:L,CardCollapse:_e,CardFooter:$,CardFooterItem:ie,CardContent:H,Uploader:l["b"]},props:{video:{type:Object,required:!0},tags:{type:Array,required:!0}},data:()=>({tagging:!1}),computed:{tagList(){return this.tags.filter(e=>{var{id:t}=e;return this.video.tagList.includes(t)})}},methods:{options(){return{muted:!1,language:"en",playbackRates:[.7,1,1.5,2],aspectRatio:"16:9",sources:[{type:"video/mp4",src:this.route("howTo.videos.show",this.video.id)}],poster:this.video.poster?this.route("howTo.posters.show",this.video.poster.id):""}},destroyPoster(){axios.delete(this.route("howTo.posters.destroy",this.video.poster.id)).then(e=>{var{data:t}=e;this.$toastr.success(t.message),this.video.poster=null}).catch(this.errorHandler)},destroyVideo(){axios.delete(this.route("howTo.videos.destroy",this.video.id)).then(e=>{var{data:t}=e;this.$toastr.success(t.message),this.$emit("delete")}).catch(this.errorHandler)},removeTag(e){var t=this.video.tagList.findIndex(t=>t===e.id);this.video.tagList.splice(t,1)}}},Ye=qe,Je=(o("2073"),Object(T["a"])(Ye,c,u,!1,null,"531fc05d",null)),Ge=Je.exports;r["c"].add([s["Fb"],s["fc"],s["n"],s["D"],s["Db"],s["Xb"]]);var Xe={name:"Index",inject:["canAccess","errorHandler","i18n","route"],directives:{focus:a["b"]},components:{Uploader:l["b"],HowToVideo:Ge},data:()=>({videos:[],query:"",tags:[],video:{name:null,description:null,tagList:[]},addingVideo:!1,editingVideo:!1,taggingId:null,editingTag:!1}),computed:{uploadLink(){return this.route("howTo.videos.store")},filteredVideos(){return this.taggingId?this.videos.filter(e=>{var{id:t}=e;return t===this.taggingId}):0===this.selectedTags.length?this.videos:this.videos.filter(e=>{var{tagList:t}=e;return t.filter(e=>-1!==this.selectedTags.findIndex(t=>{var{id:o}=t;return e===o})).length===this.selectedTags.length})},filteredTags(){return this.query?this.tags.filter(e=>{var{name:t,id:o}=e;return!this.video.tagList.includes(o)&&t.toLowerCase().indexOf(this.query.toLowerCase())>-1}):this.tags.filter(e=>{var{id:t}=e;return!this.video.tagList.includes(t)})},tagIsNew(){return!!this.query&&-1===this.tags.findIndex(e=>{var{name:t}=e;return t.toLowerCase()===this.query.toLowerCase()})},selectedTags(){return this.tags.filter(e=>{var{selected:t}=e;return t})},selectedTag(){return 1===this.selectedTags.length&&this.selectedTags[0]}},created(){this.getVideos(),this.getTags()},methods:{getVideos(){axios.get(this.route("howTo.videos.index")).then(e=>{var{data:t}=e;return this.videos=t}).catch(this.errorHandler)},getTags(){axios.get(this.route("howTo.tags.index")).then(e=>{var{data:t}=e;return this.tags=t}).catch(this.errorHandler)},reset(){this.video={name:null,description:null,tagList:[]},this.addingVideo=!1,this.editingVideo=!1,this.taggingId=null,this.editingTag=!1},tagVideo(e){e||(this.video.tagList.push(...this.selectedTags),this.update()),this.deselectTags()},deselectTags(){this.tags.map(e=>{return e.selected=!1,e})},addTag(){this.tagIsNew&&axios.post(this.route("howTo.tags.store"),{name:this.query}).then(e=>{var{data:t}=e;this.tags.push(t),this.query=""}).catch(this.errorHandler)},updateTag(){axios.patch(this.route("howTo.tags.update",this.selectedTag.id),{name:this.selectedTag.name}).catch(this.errorHandler)},deleteTag(e){axios.delete(this.route("howTo.tags.destroy",e)).then(()=>{var t=this.tags.findIndex(t=>{var{id:o}=t;return o===e});this.tags.splice(t,1)}).catch(this.errorHandler)},update(){axios.patch(this.route("howTo.videos.update",this.video.id),this.video).then(e=>{var{data:t}=e;this.$toastr.success(t.message),this.reset()}).catch(this.errorHandler)}}},Ke=Xe,Qe=Object(T["a"])(Ke,i,n,!1,null,null,null);t["default"]=Qe.exports},cc57:function(e,t,o){(function(t){var i,n="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},r=o(1);"undefined"!==typeof document?i=document:(i=n["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=n["__GLOBAL_DOCUMENT_CACHE@4"]=r)),e.exports=i}).call(this,o("c8ba"))},cdc5:function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".vjs-custom-skin>.video-js{width:100%;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,微软雅黑,sans-serif}.video-js.vjs-no-flex .vjs-menu-button-inline,.vjs-custom-skin>.video-js .vjs-menu-button-inline.vjs-slider-active,.vjs-custom-skin>.video-js .vjs-menu-button-inline:focus,.vjs-custom-skin>.video-js .vjs-menu-button-inline:hover{width:10em}.vjs-custom-skin>.video-js .vjs-controls-disabled .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-control{width:3em}.vjs-custom-skin>.video-js .vjs-control.vjs-live-control{width:auto;padding-left:.5em;letter-spacing:.1em}.vjs-custom-skin>.video-js .vjs-menu-button-inline:before{width:1.5em}.vjs-menu-button-inline .vjs-menu{left:3em}.vjs-custom-skin>.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after{padding:0 .4em .3em}.video-js.vjs-ended .vjs-loading-spinner{display:none}.video-js.vjs-ended .vjs-big-play-button{display:block!important}.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.vjs-custom-skin>.video-js .vjs-big-play-button{display:block}.vjs-custom-skin>.video-js .vjs-big-play-button{top:50%;left:50%;margin-left:-1.5em;margin-top:-1em;background-color:rgba(0,0,0,.45);font-size:3.5em;height:2em!important;line-height:2em!important;margin-top:-1em!important}.video-js:hover .vjs-big-play-button,.vjs-custom-skin>.video-js .vjs-big-play-button:active,.vjs-custom-skin>.video-js .vjs-big-play-button:focus{background-color:rgba(36,131,213,.9)}.vjs-custom-skin>.video-js .vjs-loading-spinner{border-color:rgba(36,131,213,.8)}.vjs-custom-skin>.video-js .vjs-control-bar2{background-color:#000}.vjs-custom-skin>.video-js .vjs-control-bar{color:#fff;font-size:14px}.vjs-custom-skin>.video-js .vjs-play-progress,.vjs-custom-skin>.video-js .vjs-volume-level{background-color:#2483d5}.vjs-custom-skin>.video-js .vjs-play-progress:before{top:-.3em}.vjs-custom-skin>.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.3em}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-menu li{padding:0;line-height:2em;font-size:1.1em;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,微软雅黑,sans-serif}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after,.vjs-custom-skin>.video-js .vjs-time-tooltip{border-radius:0;font-size:1em;padding:0;width:3em;height:1.5em;line-height:1.5em;top:-3em}.vjs-custom-skin>.video-js .vjs-menu-button-popup .vjs-menu{width:5em;left:-1em}.vjs-custom-skin>.video-js .vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-play-control{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-time-control{min-width:1em;padding:0;margin:0 .1em;text-align:center;display:block;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate .vjs-playback-rate-value{font-size:1.2em;line-height:2.4}.vjs-custom-skin>.video-js .vjs-progress-control.vjs-control{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-volume-menu-button{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button .vjs-resolution-button-label{display:block;line-height:3em}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-fullscreen-control{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}",""])},d02c4:function(e,t){var o=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function n(e){function t(e,t,o,i){return 3600*(0|e)+60*(0|t)+(0|o)+(0|i)/1e3}var o=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return o?o[3]?t(o[1],o[2],o[3].replace(":",""),o[4]):o[1]>59?t(o[1],o[2],0,o[4]):t(0,o[1],o[2],o[4]):null}function r(){this.values=o(null)}function s(e,t,o,i){var n=i?e.split(i):[e];for(var r in n)if("string"===typeof n[r]){var s=n[r].split(o);if(2===s.length){var a=s[0],l=s[1];t(a,l)}}}function a(e,t,o){var a=e;function l(){var t=n(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(e,t){var i=new r;s(e,(function(e,t){switch(e){case"region":for(var n=o.length-1;n>=0;n--)if(o[n].id===t){i.set(e,o[n].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),s=r[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","middle","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical",""),t.line=i.get("line","auto"),t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align","middle"),t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=l(),u(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.substr(3),u(),t.endTime=l(),u(),c(e,t)}i.prototype=o(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,o){return o?this.has(e)?this.values[e]:t[o]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,o){for(var i=0;i<o.length;++i)if(t===o[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function o(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var o=t.match(/^([^<]*)(<[^>]*>?)?/);return e(o[1]?o[1]:o[2])}function i(e){return l[e]}function r(e){while(y=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))e=e.replace(y[0],i);return e}function s(e,t){return!h[t.localName]||h[t.localName]===e.localName}function a(t,o){var i=c[t];if(!i)return null;var n=e.document.createElement(i);n.localName=i;var r=u[t];return r&&o&&(n[r]=o.trim()),n}var d,p=e.document.createElement("div"),v=p,f=[];while(null!==(d=o()))if("<"!==d[0])v.appendChild(e.document.createTextNode(r(d)));else{if("/"===d[1]){f.length&&f[f.length-1]===d.substr(2).replace(">","")&&(f.pop(),v=v.parentNode);continue}var m,g=n(d.substr(1,d.length-2));if(g){m=e.document.createProcessingInstruction("timestamp",g),v.appendChild(m);continue}var y=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(m=a(y[1],y[3]),!m)continue;if(!s(v,m))continue;y[2]&&(m.className=y[2].substr(1).replace("."," ")),f.push(y[1]),v.appendChild(m),v=m}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<p.length;t++){var o=p[t];if(e>=o[0]&&e<=o[1])return!0}return!1}function f(e){var t,o=[],i="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var o=t.childNodes.length-1;o>=0;o--)e.push(t.childNodes[o])}function r(e){if(!e||!e.length)return null;var t=e.pop(),o=t.textContent||t.innerText;if(o){var i=o.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):o}return"ruby"===t.tagName?r(e):t.childNodes?(n(e,t),r(e)):void 0}n(o,e);while(i=r(o))for(var s=0;s<i.length;s++)if(t=i.charCodeAt(s),v(t))return"rtl";return"ltr"}function m(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,o=t.textTrackList,i=0,n=0;n<o.length&&o[n]!==t;n++)"showing"===o[n].mode&&i++;return-1*++i}function g(){}function y(e,t,o){var i=/MSIE\s8\.0/.test(navigator.userAgent),n="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)";i&&(n="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),g.call(this),this.cue=t,this.cueDiv=d(e,t.text);var s={color:n,backgroundColor:r,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:o.font,whiteSpace:"pre-line",position:"absolute"},i||(s.direction=f(this.cueDiv),s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var a=0;switch(t.positionAlign){case"start":a=t.position;break;case"middle":a=t.position-t.size/2;break;case"end":a=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function b(e){var t,o,i,n,r=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){o=e.div.offsetHeight,i=e.div.offsetWidth,n=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||o,this.bottom=e.bottom||n+(e.height||o),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function j(e,t,o,i){function n(e,t){for(var n,r=new b(e),s=1,a=0;a<t.length;a++){while(e.overlapsOppositeAxis(o,t[a])||e.within(o)&&e.overlapsAny(i))e.move(t[a]);if(e.within(o))return e;var l=e.intersectPercentage(o);s>l&&(n=new b(e),s=l),e=new b(r)}return n||r}var r=new b(t),s=t.cue,a=m(s),l=[];if(s.snapToLines){var c;switch(s.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width";break}var u=r.lineHeight,h=u*Math.round(a),d=o[c]+u,p=l[0];Math.abs(h)>d&&(h=h<0?-1:1,h*=Math.ceil(d/u)*u),a<0&&(h+=""===s.vertical?o.height:o.width,l=l.reverse()),r.move(p,h)}else{var v=r.lineHeight/o.height*100;switch(s.lineAlign){case"middle":a-=v/2;break;case"end":a-=v;break}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")});break}l=["+y","-x","+x","-y"],r=new b(t)}var f=n(r,l);t.move(f.toCSSCompatValues(o))}function _(){}g.prototype.applyStyles=function(e,t){for(var o in t=t||this.div,e)e.hasOwnProperty(o)&&(t.style[o]=e[o])},g.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=o(g.prototype),y.prototype.constructor=y,b.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},b.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),o=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*o;return i/(this.height*this.width)},b.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},b.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,o=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var n={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||o};return n},_.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},_.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null};var k=.05,T="sans-serif",w="1.5%";_.processCues=function(e,t,o){if(!e||!t||!o)return null;while(o.firstChild)o.removeChild(o.firstChild);var i=e.document.createElement("div");function n(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=w,o.appendChild(i),n(t)){var r=[],s=b.getSimpleBoxPosition(i),a=Math.round(s.height*k*100)/100,l={font:a+"px "+T};(function(){for(var o,n,a=0;a<t.length;a++)n=t[a],o=new y(e,n,l),i.appendChild(o.div),j(e,o,s,r),n.displayState=o.div,r.push(b.getSimpleBoxPosition(o))})()}else for(var c=0;c<t.length;c++)i.appendChild(t[c].displayState)},_.Parser=function(e,t,o){o||(o=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=o||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function o(){var e=t.buffer,o=0;while(o<e.length&&"\r"!==e[o]&&"\n"!==e[o])++o;var i=e.substr(0,o);return"\r"===e[o]&&++o,"\n"===e[o]&&++o,t.buffer=e.substr(o),i}function l(e){var o=new r;if(s(e,(function(e,t){switch(e){case"id":o.set(e,t);break;case"width":o.percent(e,t);break;case"lines":o.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var n=new r;if(n.percent("x",i[0]),n.percent("y",i[1]),!n.has("x")||!n.has("y"))break;o.set(e+"X",n.get("x")),o.set(e+"Y",n.get("y"));break;case"scroll":o.alt(e,t,["up"]);break}}),/=/,/\s/),o.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=o.get("width",100),i.lines=o.get("lines",3),i.regionAnchorX=o.get("regionanchorX",0),i.regionAnchorY=o.get("regionanchorY",100),i.viewportAnchorX=o.get("viewportanchorX",0),i.viewportAnchorY=o.get("viewportanchorY",100),i.scroll=o.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:o.get("id"),region:i})}}function c(e){var o=new r;s(e,(function(e,t){switch(e){case"MPEGT":o.integer(e+"S",t);break;case"LOCA":o.set(e+"L",n(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:o.get("MPEGTS"),LOCAL:o.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?s(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":c(t);break}}),/=/):s(e,(function(e,t){switch(e){case"Region":l(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var h;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;h=o();var d=h.match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:h=o(),t.state){case"HEADER":/:/.test(h)?u(h):h||(t.state="ID");continue;case"NOTE":h||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){t.state="NOTE";break}if(!h)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===h.indexOf("--\x3e")){t.cue.id=h;continue}case"CUE":try{a(h,t.cue,t.regionList)}catch(f){t.reportOrThrowError(f),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var v=-1!==h.indexOf("--\x3e");if(!h||v&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=h;continue;case"BADCUE":h||(t.state="ID");continue}}}catch(f){t.reportOrThrowError(f),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=_},d260:function(e,t,o){var i=o("2d6f");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("1c90f2fc",i,!0,{sourceMap:!1,shadowMode:!1})},d6d3:function(e,t,o){!function(t,i){e.exports=i(o("3d33"))}(0,(function(e){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,i){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,o){t.exports=e},function(e,t,o){"use strict";function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n),s=window.videojs||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},writable:!0,configurable:!0});var a=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];t.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var o=function(t,o){t&&e.$emit(t,e.player),o&&e.$emit(e.customEventName,i({},t,o))};t.plugins&&delete t.plugins.__ob__;var n=this;this.player=s(this.$refs.video,t,(function(){for(var e=this,t=a.concat(n.events).concat(n.globalEvents),i={},r=0;r<t.length;r++)"string"==typeof t[r]&&void 0===i[t[r]]&&function(t){i[t]=null,e.on(t,(function(){o(t,!0)}))}(t[r]);this.on("timeupdate",(function(){o("timeupdate",this.currentTime())})),n.$emit("ready",this)}))},dispose:function(e){var t=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){t.reseted=!1,t.$nextTick((function(){t.reseted=!0,t.$nextTick((function(){e&&e()}))}))})))}},watch:{options:{deep:!0,handler:function(e,t){var o=this;this.dispose((function(){e&&e.sources&&e.sources.length&&o.initialize()}))}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o.n(i);for(var r in i)["default","default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(r);var s=o(5),a=o(4),l=a(n.a,s.a,!1,null,null,null);t.default=l.exports},function(e,t,o){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.videoPlayer=t.videojs=void 0;var n=o(0),r=i(n),s=o(2),a=i(s),l=window.videojs||r.default,c=function(e,t){t&&(t.options&&(a.default.props.globalOptions.default=function(){return t.options}),t.events&&(a.default.props.globalEvents.default=function(){return t.events})),e.component(a.default.name,a.default)},u={videojs:l,videoPlayer:a.default,install:c};t.default=u,t.videojs=l,t.videoPlayer=a.default,t.install=c},function(e,t){e.exports=function(e,t,o,i,n,r){var s,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,a=e.default);var c,u="function"==typeof a?a.options:a;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),o&&(u.functional=!0),n&&(u._scopeId=n),r?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):i&&(c=i),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:s,exports:a,options:u}}},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.reseted?o("div",{staticClass:"video-player"},[o("video",{ref:"video",staticClass:"video-js"})]):e._e()},n=[],r={render:i,staticRenderFns:n};t.a=r}])}))},e24d:function(e,t,o){"use strict";var i=o("6c9b"),n=o.n(i);n.a},e9b3:function(e,t,o){(function(t){var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=o}).call(this,o("c8ba"))},eb98:function(e,t,o){var i=o("171e");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("499e").default;n("eb938eb6",i,!0,{sourceMap:!1,shadowMode:!1})},eec7:function(e,t,o){"use strict";var i=o("e9b3"),n=o("8362"),r=o("6444"),s=o("53a8");function a(e,t){for(var o=0;o<e.length;o++)t(e[o])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function c(e,t,o){var i=e;return n(t)?(o=t,"string"===typeof e&&(i={uri:e})):i=s(t,{uri:e}),i.callback=o,i}function u(e,t,o){return t=c(e,t,o),h(t)}function h(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,o=function(o,i,n){t||(t=!0,e.callback(o,i,n))};function i(){4===p.readyState&&setTimeout(a,0)}function n(){var e=void 0;if(e=p.response?p.response:p.responseText||d(p),j)try{e=JSON.parse(e)}catch(t){}return e}function s(e){return clearTimeout(v),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,o(e,_)}function a(){if(!h){var t;clearTimeout(v),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=_,s=null;return 0!==t?(i={body:n(),statusCode:t,method:m,headers:{},url:f,rawRequest:p},p.getAllResponseHeaders&&(i.headers=r(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),o(s,i,i.body)}}var c,h,p=e.xhr||null;p||(p=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var v,f=p.url=e.uri||e.url,m=p.method=e.method||"GET",g=e.body||e.data,y=p.headers=e.headers||{},b=!!e.sync,j=!1,_={body:void 0,headers:{},statusCode:0,method:m,url:f,rawRequest:p};if("json"in e&&!1!==e.json&&(j=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==m&&"HEAD"!==m&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),g=JSON.stringify(!0===e.json?g:e.json))),p.onreadystatechange=i,p.onload=a,p.onerror=s,p.onprogress=function(){},p.onabort=function(){h=!0},p.ontimeout=s,p.open(m,f,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(v=setTimeout((function(){if(!h){h=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}}),e.timeout)),p.setRequestHeader)for(c in y)y.hasOwnProperty(c)&&p.setRequestHeader(c,y[c]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(g||null),p}function d(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function p(){}e.exports=u,u.XMLHttpRequest=i.XMLHttpRequest||p,u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XDomainRequest,a(["get","put","post","patch","head","delete"],(function(e){u["delete"===e?"del":e]=function(t,o,i){return o=c(t,o,i),o.method=e.toUpperCase(),h(o)}}))},f97d:function(e,t){var o={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=o[e.toLowerCase()];return!!t&&e.toLowerCase()}function n(e){return"number"===typeof e&&e>=0&&e<=100}function r(){var e=100,t=3,o=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");o=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=r},ff6c:function(e,t,o){t=e.exports=o("24fb")(!1),t.push([e.i,".card{position:relative}.card.is-rounded{border-radius:.5em}",""])}}]);