CINXE.COM
<!DOCTYPE html><!--[if IE 8]> <html class="ie8 bc-iframe"> <![endif]--> <!--[if !IE 8]><!--> <html class="bc-iframe"> <!--<![endif]--><head> <meta charset="utf-8"> <title></title> <meta name="viewport" content="user-scalable=0, width=device-width, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <style id="bc-style-vjs"> .video-js .vjs-big-play-button:before, .video-js .vjs-control:before, .video-js .vjs-modal-dialog, .vjs-modal-dialog .vjs-modal-dialog-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .video-js .vjs-big-play-button:before, .video-js .vjs-control:before { text-align: center; } @font-face { font-family: VideoJS; src: url("//vjs.zencdn.net/font/1.5.1/VideoJS.eot?#iefix") format("eot"); } @font-face { font-family: VideoJS; src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAA54AAoAAAAAFmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAD4AAABWUZFeBWNtYXAAAAE0AAAAOgAAAUriMBC2Z2x5ZgAAAXAAAAouAAAPUFvx6AdoZWFkAAALoAAAACsAAAA2DIPpX2hoZWEAAAvMAAAAGAAAACQOogcgaG10eAAAC+QAAAAPAAAAfNkAAABsb2NhAAAL9AAAAEAAAABAMMg06m1heHAAAAw0AAAAHwAAACABMAB5bmFtZQAADFQAAAElAAACCtXH9aBwb3N0AAANfAAAAPwAAAGBZkSN43icY2BkZ2CcwMDKwMFSyPKMgYHhF4RmjmEIZzzHwMDEwMrMgBUEpLmmMDh8ZPwoxw7iLmSHCDOCCADvEAo+AAB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGD7K/f8PUvCREUTzM0DVAwEjG8OIBwCPdwbVAAB4nI1Xe1CU1xX/zv1eLItLln0JwrIfC7sJGET2hRJ2N1GUoBJE8AESQEEhmBHjaB7UuBMTO4GMaSu7aY3RNlOdRPNqO2pqRmuTaSZtR6JJILUZk00a/4imjpmiecB303O/XUgMJOPufvd+99xzzz33nN855y4HHH7EfrGfIxwHRiANvF/sH71I9BzHszmpW+rGOQOXxXE6YhI4PoMT8zkT4cDFuf1cwMrZJI5cglM0HKVv0MaUFDgIFfg9mJJCG+kbKn1JkqBOVaFOkuhLpARq8fu0Nnc9/zdvfY9PxXW4PdH0C6N+PCejhorxFjAqRjgFRXSINEARbBGsoxcFK7IJmr4OycFJnInL59zIXwxui80fkGRbEHyosMWaATJKUfCskmwJQsAWANkmnIGOhlf514h7U8HNIv3owoHB0WMt0Eb3sx0guLi5pq/8Ny1q6969fKR9X9GBV6dPv6dp04K99SOwtmyPl47ApRa6n4ZpP1yjr5fn7MmYP/vXLUJs715UguklHBaHOZHZmG1N9FAIW2mf0MqWCIdo/8RZ1yGfxKUldDcGIbFA7ICO+vqOMSPTh/ZrSqgHi/bB/O8E8Mnzp+M+acxfpsTShBwej26TiGxBn7m4eEIO+Rueu6Hj+IFBnh88cAEUEQ//nVLx5C7kf+yIR47QEe+eMlhz9SqsGbe3hh2R03NGzoY6O42Kz8l7fB6fAk6LYnTyFo/FYyT6GGyNx2Jx2sdH4rA1Fo/HyCXaFyOp8dhYBCfJb2NIn1ImE6CYNGmgSTb52DawJR6jfXEmDU4xyTEmpgHHOIStoxfjSGdkbsK2w2jbdMQG4sgAstEONgURYCwGHhEhhscioQaAhhCf7McifEQc0l6+mxj9nI+gmSdiQ0Zbm7gZnIO7GSMEXG6UDAVocxAV8GcEXCKg1a02RcTtwANWRGIAyElor6n/+ZU2yOB3+T77Hb1MLqhn4KHVnQBjJnqe9QZSon6Kc5DxAD2vMdPL/BXSmQGwspa67z9wLUjdi9TN7QC7lyyBr9rpt7uXVC1CMpyjKRoXnGPHTuiaPLsNdc2dbAFQLAooPkXEh33FodHl4XpC6sPCIa0ftUIhHSYXVSu5iME+DIXsbZJ51BeidCgajcai43jU9nVzoSn2dPqcFvSoxSzJzgRKAx47WMRxOrIj3Wf0+hndxhJTiOkSEqxar3b3RKM9hY64oxBA64ieURLvCfpkDb8siBdUJ1bgT+urJ5PGfewQrmm5R5+0HmfyIPySD7OYkT0WxRePah8oEiyjlxIP74thVoRTURpmL6QhGuWS+QDjdANXjIM8SQa/1w128ODx0Qp4aLMNg9+JL3joUn8AMxW+aLNiuKjarn4uyyTdXjOzZTsh21uwldUvJoYza+zELALfu3p1L8/3krtyZ0Ag058J3hxHghvbGZn0dHZy6Mim/7Blre4lpHd1c28yVqRViO153F2oIWoXCIKbL4Z0cM1iaQn9mI5KuV2SzEvWXJDMNtkANpMdQoDDhIdD4A/YrP6Aye9ysxyE+uOEAcTDorgvVZJjcua043PnZ/PmdDqcbibZlXOOT8uSo7Kof0YUn9GL+Jo17ficymxiTofC6znUso0DhAxs1Fo+kF+d36vLmgZ8mk5cdGv2mwYj5k3Dm9m3LhJ1aVRNm6HrTbLgYAoWXDhDd/u4PGy5CT+xGMdiaBovewUCF/1BiWNljI9MLn7jeScpg+WyH6mfU62eVDql7hsrmvx1ezp/YldE2LhjbkiDnAn8tGy/MW3IXRMYJduvq9HpmIcKuFt+JCtgdGEGKAcF6UacVwIYbVPGfw/+YuNBS4cx/CUHcnyfc+wRDMtTr72mMSBjT/yn/GKSdeDWQUCH6Xoqq5R10RE60gV6erUL0iCti16d0hZjxut4QI/rEpgSh6WjnJXdBXRg1GKCucGJPtFqM27aD1tOqqKonsQ2KsFSSmEpmvRlsR+TcD9OFwrqXxIclL4sJTnGMSuG8KpkZvKdeVIOKDyWSyPLV16/p1QMPbP8NihwUzr47bdnXtwtjdCvqqpO0H+pOvIl3Pzv46e5CT/tQjklXCXXym1AaWY7bzHLkuDMc7ldKCvgxzLn8wYkJLBhEDyK7MT8bTbwbkxbfp+3mKAGsmTBpabSIEECzMIcQlzOPAMKsxMs7uhsnxPLuofPDTc1hkuq6MX9j16YU7CqegcYHbmWYuvAP6tCS97tgWf7dlQvnl25YPavXLVZvrzQPeHCpZmzzEUVq/xzu5sChnSTPTW7oOYmh69z4zL/gk3b+O6hoa733uviP82vnFcbqWlc9tDmZa23LVzaV1yXURi+JX+28NeBuj3+O8IrQ080Vm1eWB4OKjPmrJu7c1udWynvKF6/vs479lSW9+5gZkn+dKfellNGDPllzeULustz+A0bPvhgw7lkvEUwn/N4Ty7U7nhGsEpFkOfy+kutbOh1JQxhVDJumoW11hnkPThznh6FFlhfT+ra1x9sF56kx5YuDzVY9PQYAYA7iblw4frQ4TPCk2MK/xGU3rlmze62trHz6lsko+v+So/do74PT8KVkpJfOErKcv8znrMGsHTNxoEkWy1mYgDB6XBbPaWsuiS6CryGaL6zCjaXBgvtkuyXBua1wOKnh+k7L9AvPnYWffxK18FcJbuosGf3/Jo7amY+CE1vppzY+UTrva0FXc1i55pKQ/YjVL187N5fCn1kW5uot/1hi+DiZ+5atnJR9E+prvydJ9ZZ5mwOpU5gM4KYysMBQ71UzPuMTl9QQOyUo5nwioeYCPjFklrbK6s6X+ypUZ6rum9+CZYzWRiBJfSP0xzzSmrg7f86g0DKVj/wwFzieD9rRfPGFbeKMl05pn5j9/rsQJJ2iEgRrpohlyBo3f4QK7Kl+EcAYZgAoNVmZWXK704YAa3FwBxgSGUOs5htvGRz4Sgj3yFkSJFBuv/sxu5yk998T8WDJzvv/2RX19HtTUW1S+wpKRKRjJ6zzz/1/OPdFdWGlAKbvzS4PHOtURikg9AGz0LbIB85S/cPOpoXvuue8/iV2H1vPTy3ddvOeZ37HGmO3OmSzVzR+NS53+84dHlFhXPLqtzSO+5ruHM2vXtBdxP87LOzKAD359j/INYIbyPabIi3Cq6Wa+SaGe78diIzu7qcblcAa6/fJRvNopXFJnO+U9KKM5bqH5LM0iQSVmpPCPDu7ZT4Aoubz3709EBTyrTDjyx8MQXgUH1nqm7TWng4TzE4i4AsKskBITXfSyC4Fkl5MxnJDiKSIDSJAsGvd1y+/eNDp2e+A+5d8HeiiunrTkT6TqWLIs+/QRoWr98s0qj8uuzLuS22Ytufg3rdTaHn1m46sfgGKHXt0MGnLaRHdnwN37tvHcWKo2V6lnPxL4UvUQcRdOzmZSQs8X5CH5OxXMXpkATuDz8Et0SH4uyCRR+TjmBDP1GvsVrWEGVzEj33YVQ9jAtIKpqsl/s/0xrocwAAeJxjYGRgYADig3cEzsTz23xl4GZnAIHLRucNkWl2BrA4BwMTiAIAF4IITwB4nGNgZGBgZwCChWASxGZkQAXyABOUANh4nGNnYGBgHyAMADa8ANoAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqHicY2BkYGCQZ8hlYGcAASYg5gJCBob/YD4DABbVAaoAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2P2XLCMAxFfYFspGUp3Te+IB9lHJF4cOzUS2n/voaEGR6qB+lKo+WITdhga/a/bRnDBFPMkCBFhhwF5ihxg1sssMQKa9xhg3s84BFPeMYLXvGGd3zgE9tZr/hveXKVkFYoSnoeHJXfRoWOqi54mo9ameNFdrK+dLSyaVf7oJQTlkhXpD3Z5XXhR/rUfQVuKXO91Jps4cLOS6/I5YL3XhodRRsVWZe4NnZOhWnSAWgxhMoEr6SmzZieF43Mk7ZOBdeCVGrp9Eu+54J2xhySplfB5XHwQLXUmT9KH6+kPnQ7ZYuIEzNyfs1DLU1VU4SWZ6LkXGHsD1ZKbMw=) format("woff"), url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMlGRXgUAAAEoAAAAVmNtYXDiMBC2AAAB/AAAAUpnbHlmW/HoBwAAA4gAAA9QaGVhZAyD6V8AAADQAAAANmhoZWEOogcgAAAArAAAACRobXR42QAAAAAAAYAAAAB8bG9jYTDINOoAAANIAAAAQG1heHABMAB5AAABCAAAACBuYW1l1cf1oAAAEtgAAAIKcG9zdGZEjeMAABTkAAABgQABAAAHAAAAAKEHAAAAAAAHAAABAAAAAAAAAAAAAAAAAAAAHwABAAAAAQAAwdxheF8PPPUACwcAAAAAANMyzzEAAAAA0zLPMQAAAAAHAAcAAAAACAACAAAAAAAAAAEAAAAfAG0ABwAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQcAAZAABQAIBHEE5gAAAPoEcQTmAAADXABXAc4AAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA8QHxHgcAAAAAoQcAAAAAAAABAAAAAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAAAAAMAAAADAAAAHAABAAAAAABEAAMAAQAAABwABAAoAAAABgAEAAEAAgAA8R7//wAAAADxAf//AAAPAAABAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqAABAAAAAAWLBYsAAgAAAREBAlUDNgWL++oCCwAAAwAAAAAGawZrAAIADgAaAAAJAhMEAAMSAAUkABMCAAEmACc2ADcWABcGAALrAcD+QJX+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgIwAVABUAGbCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAAAAgAAAAAFQAWLAAMABwAAASERKQERIREBwAEr/tUCVQErAXUEFvvqBBYAAAAEAAAAAAYgBiAABgATACQAJwAAAS4BJxUXNjcGBxc+ATUmACcVFhIBBwEhESEBEQEGBxU+ATcXNwEHFwTQAWVVuAO7AidxJSgF/t/lpc77t18BYf6fASsBdQE+TF1OijuZX/1gnJwDgGSeK6W4GBhqW3FGnFT0AWM4mjT+9AHrX/6f/kD+iwH2/sI7HZoSRDGYXwSWnJwAAAEAAAAABKsF1gAFAAABESEBEQECCwEqAXb+igRg/kD+iwSq/osAAAACAAAAAAVmBdYABgAMAAABLgEnET4BAREhAREBBWUBZVRUZfwRASsBdf6LA4Bkniv9piueAUT+QP6LBKr+iwAAAwAAAAAGIAYPAAUADAAaAAATESEBEQEFLgEnET4BAxUWEhcGAgcVNgA3JgDgASsBdf6LAsUBZVVVZbqlzgMDzqXlASEFBf7fBGD+QP6LBKr+i+Bkniv9piueAvOaNP70tbX+9DSaOAFi9fUBYgAAAAQAAAAABYsFiwAFAAsAEQAXAAABIxEhNSMDMzUzNSEBIxUhESMDFTMVMxECC5YBduCWluD+igOA4AF2luDglgLr/oqWAgrglvyAlgF2AqCW4AF2AAQAAAAABYsFiwAFAAsAEQAXAAABMxUzESETIxUhESMBMzUzNSETNSMRITUBdeCW/org4AF2lgHAluD+ipaWAXYCVeABdgHAlgF2++rglgHA4P6KlgAAAAACAAAAAAXWBdYADwATAAABIQ4BBxEeARchPgE3ES4BAyERIQVA/IA/VQEBVT8DgD9VAQFVP/yAA4AF1QFVP/yAP1UBAVU/A4A/VfvsA4AAAAYAAAAABmsGawAHAAwAEwAbACAAKAAACQEmJw4BBwElLgEnAQUhATYSNyYFAQYCBxYXIQUeARcBMwEWFz4BNwECvgFkTlSH8GEBEgOONemh/u4C5f3QAXpcaAEB/BP+3VxoAQEOAjD95DXpoQESeP7dTlSH8GH+7gPwAmgSAQFYUP4nd6X2Pv4nS/1zZAEBk01NAfhk/v+TTUhLpfY+Adn+CBIBAVhQAdkAAAAFAAAAAAZrBdYADwATABcAGwAfAAABIQ4BBxEeARchPgE3ES4BASEVIQEhNSEFITUhNSE1IQXV+1ZAVAICVEAEqkBUAgJU+xYBKv7WAur9FgLqAcD+1gEq/RYC6gXVAVU//IA/VQEBVT8DgD9V/ayV/tWVlZWWlQADAAAAAAYgBdYADwAnAD8AAAEhDgEHER4BFyE+ATcRLgEBIzUjFTM1MxUUBgcjLgEnET4BNzMeARUFIzUjFTM1MxUOAQcjLgE1ETQ2NzMeARcFi/vqP1QCAlQ/BBY/VAICVP1rcJWVcCog4CAqAQEqIOAgKgILcJWVcAEqIOAgKiog4CAqAQXVAVU//IA/VQEBVT8DgD9V/fcl4CVKICoBASogASogKgEBKiBKJeAlSiAqAQEqIAEqICoBASogAAAGAAAAAAYgBPYAAwAHAAsADwATABcAABMzNSMRMzUjETM1IwEhNSERITUhERUhNeCVlZWVlZUBKwQV++sEFfvrBBUDNZb+QJUBwJX+QJb+QJUCVZWVAAAAAQAAAAAGIAZsAC4AAAEiBgcBNjQnAR4BMz4BNy4BJw4BBxQXAS4BIw4BBx4BFzI2NwEGBx4BFz4BNy4BBUArSh797AcHAg8eTixffwICf19ffwIH/fEeTixffwICf18sTh4CFAUBA3tcXHsDA3sCTx8bATcZNhkBNB0gAn9fX38CAn9fGxn+zRwgAn9fX38CIBz+yhcaXHsCAntcXXsAAAIAAAAABlkGawBDAE8AAAE2NCc3PgEnAy4BDwEmLwEuASchDgEPAQYHJyYGBwMGFh8BBhQXBw4BFxMeAT8BFh8BHgEXIT4BPwE2NxcWNjcTNiYnBS4BJz4BNx4BFw4BBasFBZ4KBgeWBxkNujpEHAMUD/7WDxQCHEU5ug0aB5UHBQudBQWdCwUHlQcaDbo5RRwCFA8BKg8UAhxFOboNGgeVBwUL/ThvlAIClG9vlAIClAM3JEokewkaDQEDDAkFSy0cxg4RAQERDsYcLUsFCQz+/QwbCXskSiR7CRoN/v0MCQVLLRzGDhEBAREOxhwtSwUJDAEDDBsJQQKUb2+UAgKUb2+UAAAAAAEAAAAABmsGawALAAATEgAFJAATAgAlBACVCAGmAT0BPQGmCAj+Wv7D/sP+WgOA/sP+WggIAaYBPQE9AaYICP5aAAAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAASYAJzYANxYAFwYAA4D+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgZrCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAADAAAAAAZrBmsACwAXACMAAAEEAAMSAAUkABMCAAEmACc2ADcWABcGAAMOAQcuASc+ATceAQOA/sP+WggIAaYBPQE9AaYICP5a/sP9/q4GBgFS/f0BUgYG/q4dAn9fX38CAn9fX38Gawj+Wv7D/sP+WggIAaYBPQE9Aab6yAYBUv39AVIGBv6u/f3+rgJPX38CAn9fX38CAn8AAAAEAAAAAAYgBiAADwAbACUAKQAAASEOAQcRHgEXIT4BNxEuAQEjNSMVIxEzFTM1OwEhHgEXEQ4BByE3MzUjBYv76j9UAgJUPwQWP1QCAlT9a3CVcHCVcJYBKiAqAQEqIP7WcJWVBiACVD/76j9UAgJUPwQWP1T8gpWVAcC7uwEqIP7WICoBcOAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAEwcJAScJATcJARcBA4D+w/5aCAgBpgE9AT0BpggI/lo4af70/vRpAQv+9WkBDAEMaf71BmsI/lr+w/7D/loICAGmAT0BPQGm/BFpAQv+9WkBDAEMaf71AQtp/vQAAQAAAAAF1ga2ABYAAAERCQERHgEXDgEHLgEnIxYAFzYANyYAA4D+iwF1vv0FBf2+vv0FlQYBUf7+AVEGBv6vBYsBKv6L/osBKgT9v779BQX9vv7+rwYGAVH+/gFRAAAAAQAAAAAFPwcAABQAAAERIyIGHQEhAyMRIREjETM1NDYzMgU/nVY8ASUn/v7O///QrZMG9P74SEi9/tj9CQL3ASjaus0AAAAABAAAAAAGjgcAADAARQBgAGwAAAEUHgMVFAcGBCMiJicmNTQ2NzYlLgE1NDcGIyImNTQ2Nz4BMyEHIx4BFRQOAycyNjc2NTQuAiMiBgcGFRQeAxMyPgI1NC4BLwEmLwImIyIOAxUUHgIBMxUjFSM1IzUzNTMDH0BbWkAwSP7qn4TlOSVZSoMBESAfFS4WlMtIP03TcAGiioNKTDFFRjGSJlAaNSI/akAqURkvFCs9WTY6a1s3Dg8THgocJU4QIDVob1M2RnF9A2vV1WnU1GkD5CRFQ1CATlpTenNTYDxHUYouUhIqQCkkMQTBlFKaNkJAWD+MWkhzRztAPiEbOWY6hn1SJyE7ZS5nZ1I0/JcaNF4+GTAkGCMLFx04Ag4kOF07Rms7HQNsbNvbbNkAAwAAAAAGgAZsAAMADgAqAAABESERARYGKwEiJjQ2MhYBESERNCYjIgYHBhURIRIQLwEhFSM+AzMyFgHd/rYBXwFnVAJSZGemZASP/rdRVj9VFQv+twIBAQFJAhQqR2c/q9AEj/whA98BMkliYpNhYfzd/cgCEml3RTMeM/3XAY8B8DAwkCAwOB/jAAABAAAAAAaUBgAAMQAAAQYHFhUUAg4BBCMgJxYzMjcuAScWMzI3LgE9ARYXLgE1NDcWBBcmNTQ2MzIXNjcGBzYGlENfAUyb1v7SrP7x4SMr4bBpph8hHCsqcJNETkJOLHkBW8YIvYaMYG1gJWldBWhiRQ4cgv797rdtkQSKAn1hBQsXsXUEJgMsjlNYS5WzCiYkhr1mFTlzPwoAAAABAAAAAAWABwAAIgAAARcOAQcGLgM1ESM1PgQ3PgE7AREhFSERFB4CNzYFMFAXsFlorXBOIahIckQwFAUBBwT0AU3+sg0gQzBOAc/tIz4BAjhceHg6AiDXGlddb1ctBQf+WPz9+h40NR4BAgABAAAAAAaABoAASgAAARQCBCMiJzY/AR4BMzI+ATU0LgEjIg4DFRQWFxY/ATY3NicmNTQ2MzIWFRQGIyImNz4CNTQmIyIGFRQXAwYXJgI1NBIkIAQSBoDO/p/Rb2s7EzYUaj15vmh34o5ptn9bK1BNHggIBgIGETPRqZepiWs9Sg4IJRc2Mj5WGWMRBM7+zgFhAaIBYc4DgNH+n84gXUfTJzmJ8JZyyH46YH2GQ2ieIAwgHxgGFxQ9WpfZpIOq7lc9I3VZHzJCclVJMf5eRmtbAXzp0QFhzs7+nwAABwAAAAAHAATPAA4AFwAqAD0AUABaAF0AAAERNh4CBw4BBwYmIycmNxY2NzYmBxEUBRY2Nz4BNy4BJyMGHwEeARcOARcWNjc+ATcuAScjBh8BHgEXFAYXFjY3PgE3LgEnIwYfAR4BFw4BBTM/ARUzESMGAyUVJwMchM2UWwgNq4JHrQgBAapUaAoJcWMBfiIhDiMrAQJLMB0BBAokNAIBPmMiIQ4iLAECSzAeAQUKJDQBP2MiIQ4iLAECSzAeAQUKJDQBAT75g+5B4arNLNIBJ44ByQL9BQ9mvYCKwA8FBQMDwwJVTGdzBf6VB8IHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvVJkAWUDDEf+tYP5AQAAAAEAAAAABiAGtgAbAAABBAADER4BFzMRITU2ADcWABcVIREzPgE3EQIAA4D+4v6FBwJ/X+D+1QYBJ97eAScG/tXgX38CB/6FBrUH/oX+4v32X38CAlWV3gEnBgb+2d6V/asCf18CCgEeAXsAAAAAEADGAAEAAAAAAAEABwAAAAEAAAAAAAIABwAHAAEAAAAAAAMABwAOAAEAAAAAAAQABwAVAAEAAAAAAAUACwAcAAEAAAAAAAYABwAnAAEAAAAAAAoAKwAuAAEAAAAAAAsAEwBZAAMAAQQJAAEADgBsAAMAAQQJAAIADgB6AAMAAQQJAAMADgCIAAMAAQQJAAQADgCWAAMAAQQJAAUAFgCkAAMAAQQJAAYADgC6AAMAAQQJAAoAVgDIAAMAAQQJAAsAJgEeVmlkZW9KU1JlZ3VsYXJWaWRlb0pTVmlkZW9KU1ZlcnNpb24gMS4wVmlkZW9KU0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfAAABAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8EcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwAAAAAA) format("truetype"); font-weight: normal; font-style: normal; } .vjs-icon-play, .video-js .vjs-big-play-button, .video-js .vjs-play-control { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-play:before, .video-js .vjs-big-play-button:before, .video-js .vjs-play-control:before { content: "\f101"; } .vjs-icon-play-circle { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-play-circle:before { content: "\f102"; } .vjs-icon-pause, .video-js .vjs-play-control.vjs-playing { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-pause:before, .video-js .vjs-play-control.vjs-playing:before { content: "\f103"; } .vjs-icon-volume-mute, .video-js .vjs-mute-control.vjs-vol-0, .video-js .vjs-volume-menu-button.vjs-vol-0 { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-volume-mute:before, .video-js .vjs-mute-control.vjs-vol-0:before, .video-js .vjs-volume-menu-button.vjs-vol-0:before { content: "\f104"; } .vjs-icon-volume-low, .video-js .vjs-mute-control.vjs-vol-1, .video-js .vjs-volume-menu-button.vjs-vol-1 { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-volume-low:before, .video-js .vjs-mute-control.vjs-vol-1:before, .video-js .vjs-volume-menu-button.vjs-vol-1:before { content: "\f105"; } .vjs-icon-volume-mid, .video-js .vjs-mute-control.vjs-vol-2, .video-js .vjs-volume-menu-button.vjs-vol-2 { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-volume-mid:before, .video-js .vjs-mute-control.vjs-vol-2:before, .video-js .vjs-volume-menu-button.vjs-vol-2:before { content: "\f106"; } .vjs-icon-volume-high, .video-js .vjs-mute-control, .video-js .vjs-volume-menu-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-volume-high:before, .video-js .vjs-mute-control:before, .video-js .vjs-volume-menu-button:before { content: "\f107"; } .vjs-icon-fullscreen-enter, .video-js .vjs-fullscreen-control { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-fullscreen-enter:before, .video-js .vjs-fullscreen-control:before { content: "\f108"; } .vjs-icon-fullscreen-exit, .video-js.vjs-fullscreen .vjs-fullscreen-control { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-fullscreen-exit:before, .video-js.vjs-fullscreen .vjs-fullscreen-control:before { content: "\f109"; } .vjs-icon-square { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-square:before { content: "\f10a"; } .vjs-icon-spinner { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-spinner:before { content: "\f10b"; } .vjs-icon-subtitles, .video-js .vjs-subtitles-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-subtitles:before, .video-js .vjs-subtitles-button:before { content: "\f10c"; } .vjs-icon-captions, .video-js .vjs-captions-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-captions:before, .video-js .vjs-captions-button:before { content: "\f10d"; } .vjs-icon-chapters, .video-js .vjs-chapters-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-chapters:before, .video-js .vjs-chapters-button:before { content: "\f10e"; } .vjs-icon-share { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-share:before { content: "\f10f"; } .vjs-icon-cog { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-cog:before { content: "\f110"; } .vjs-icon-circle, .video-js .vjs-mouse-display, .video-js .vjs-play-progress, .video-js .vjs-volume-level { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-circle:before, .video-js .vjs-mouse-display:before, .video-js .vjs-play-progress:before, .video-js .vjs-volume-level:before { content: "\f111"; } .vjs-icon-circle-outline { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-circle-outline:before { content: "\f112"; } .vjs-icon-circle-inner-circle { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-circle-inner-circle:before { content: "\f113"; } .vjs-icon-hd { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-hd:before { content: "\f114"; } .vjs-icon-cancel, .video-js .vjs-control.vjs-close-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-cancel:before, .video-js .vjs-control.vjs-close-button:before { content: "\f115"; } .vjs-icon-replay { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-replay:before { content: "\f116"; } .vjs-icon-facebook { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-facebook:before { content: "\f117"; } .vjs-icon-gplus { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-gplus:before { content: "\f118"; } .vjs-icon-linkedin { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-linkedin:before { content: "\f119"; } .vjs-icon-twitter { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-twitter:before { content: "\f11a"; } .vjs-icon-tumblr { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-tumblr:before { content: "\f11b"; } .vjs-icon-pinterest { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-pinterest:before { content: "\f11c"; } .vjs-icon-audio-description, .video-js .vjs-descriptions-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-audio-description:before, .video-js .vjs-descriptions-button:before { content: "\f11d"; } .vjs-icon-audio, .video-js .vjs-audio-button { font-family: VideoJS; font-weight: normal; font-style: normal; } .vjs-icon-audio:before, .video-js .vjs-audio-button:before { content: "\f11e"; } .video-js { display: block; vertical-align: top; box-sizing: border-box; color: #fff; background-color: #000; position: relative; padding: 0; font-size: 10px; line-height: 1; font-weight: normal; font-style: normal; font-family: Arial, Helvetica, sans-serif; } .video-js:-moz-full-screen { position: absolute; } .video-js:-webkit-full-screen { width: 100% !important; height: 100% !important; } .video-js *, .video-js *:before, .video-js *:after { 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-fluid, .video-js.vjs-16-9, .video-js.vjs-4-3 { 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 { width: 100%; height: 100%; } .video-js .vjs-tech { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } body.vjs-full-window { padding: 0; margin: 0; height: 100%; overflow-y: auto; } .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: 0.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: 0px 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.5em; width: 3em; display: block; position: absolute; top: 10px; left: 10px; padding: 0; cursor: pointer; opacity: 1; border: 0.06666em solid #fff; background-color: #2B333F; background-color: rgba(43, 51, 63, 0.7); -webkit-border-radius: 0.3em; -moz-border-radius: 0.3em; border-radius: 0.3em; -webkit-transition: all 0.4s; -moz-transition: all 0.4s; -o-transition: all 0.4s; transition: all 0.4s; } .vjs-big-play-centered .vjs-big-play-button { top: 50%; left: 50%; margin-top: -0.75em; margin-left: -1.5em; } .video-js:hover .vjs-big-play-button, .video-js .vjs-big-play-button:focus { outline: 0; border-color: #fff; background-color: #73859f; background-color: rgba(115, 133, 159, 0.5); -webkit-transition: all 0s; -moz-transition: all 0s; -o-transition: all 0s; transition: all 0s; } .vjs-controls-disabled .vjs-big-play-button, .vjs-has-started .vjs-big-play-button, .vjs-using-native-controls .vjs-big-play-button, .vjs-error .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; overflow: visible; font-size: inherit; line-height: inherit; text-transform: none; text-decoration: none; transition: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .video-js .vjs-control.vjs-close-button { cursor: pointer; height: 3em; position: absolute; right: 0; top: 0.5em; z-index: 2; } .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; overflow: auto; font-family: Arial, Helvetica, sans-serif; } .vjs-scrubbing .vjs-menu-button:hover .vjs-menu { display: none; } .vjs-menu li { list-style: none; margin: 0; padding: 0.2em 0; line-height: 1.4em; font-size: 1.2em; text-align: center; text-transform: lowercase; } .vjs-menu li.vjs-menu-item:focus, .vjs-menu li.vjs-menu-item:hover { outline: 0; background-color: #73859f; background-color: rgba(115, 133, 159, 0.5); } .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 0.3em 0; font-weight: bold; cursor: default; } .vjs-menu-button-popup .vjs-menu { display: none; position: absolute; bottom: 0; width: 10em; left: -3em; height: 0em; margin-bottom: 1.5em; border-top-color: rgba(43, 51, 63, 0.7); } .vjs-menu-button-popup .vjs-menu .vjs-menu-content { background-color: #2B333F; background-color: rgba(43, 51, 63, 0.7); position: absolute; width: 100%; bottom: 1.5em; max-height: 15em; } .vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu, .vjs-menu-button-popup .vjs-menu.vjs-lock-showing { display: block; } .video-js .vjs-menu-button-inline { -webkit-transition: all 0.4s; -moz-transition: all 0.4s; -o-transition: all 0.4s; transition: all 0.4s; overflow: hidden; } .video-js .vjs-menu-button-inline:before { width: 2.222222222em; } .video-js .vjs-menu-button-inline:hover, .video-js .vjs-menu-button-inline:focus, .video-js .vjs-menu-button-inline.vjs-slider-active, .video-js.vjs-no-flex .vjs-menu-button-inline { width: 12em; } .video-js .vjs-menu-button-inline.vjs-slider-active { -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .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 0.4s; -moz-transition: all 0.4s; -o-transition: all 0.4s; transition: all 0.4s; } .vjs-menu-button-inline:hover .vjs-menu, .vjs-menu-button-inline:focus .vjs-menu, .vjs-menu-button-inline.vjs-slider-active .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:hover .vjs-menu, .vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu, .vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .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: 3.0em; background-color: #2B333F; background-color: rgba(43, 51, 63, 0.7); } .vjs-has-started .vjs-control-bar { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; visibility: visible; opacity: 1; -webkit-transition: visibility 0.1s, opacity 0.1s; -moz-transition: visibility 0.1s, opacity 0.1s; -o-transition: visibility 0.1s, opacity 0.1s; transition: visibility 0.1s, opacity 0.1s; } .vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar { visibility: visible; opacity: 0; -webkit-transition: visibility 1s, opacity 1s; -moz-transition: visibility 1s, opacity 1s; -o-transition: visibility 1s, opacity 1s; transition: visibility 1s, opacity 1s; } .vjs-controls-disabled .vjs-control-bar, .vjs-using-native-controls .vjs-control-bar, .vjs-error .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 { outline: none; position: relative; text-align: center; margin: 0; padding: 0; height: 100%; width: 4em; -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -ms-flex: none; flex: none; } .video-js .vjs-control:before { font-size: 1.8em; line-height: 1.67; } .video-js .vjs-control:focus:before, .video-js .vjs-control:hover:before, .video-js .vjs-control:focus { text-shadow: 0em 0em 1em white; } .video-js .vjs-control-text { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -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 { -webkit-box-flex: auto; -moz-box-flex: auto; -webkit-flex: auto; -ms-flex: auto; flex: auto; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; min-width: 4em; } .vjs-live .vjs-progress-control { display: none; } .video-js .vjs-progress-holder { -webkit-box-flex: auto; -moz-box-flex: auto; -webkit-flex: auto; -ms-flex: auto; flex: auto; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; -o-transition: all 0.2s; transition: all 0.2s; height: 0.3em; } .video-js .vjs-progress-control:hover .vjs-progress-holder { font-size: 1.666666666666666666em; } /* If we let the font size grow as much as everything else, the current time tooltip ends up ginormous. If you'd like to enable the current time tooltip all the time, this should be disabled to avoid a weird hitch when you roll off the hover. */ .video-js .vjs-progress-control:hover .vjs-time-tooltip, .video-js .vjs-progress-control:hover .vjs-mouse-display:after, .video-js .vjs-progress-control:hover .vjs-play-progress:after { font-family: Arial, Helvetica, sans-serif; visibility: visible; font-size: 0.6em; } .video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-tooltip-progress-bar, .video-js .vjs-progress-holder .vjs-load-progress div { position: absolute; display: block; height: 100%; margin: 0; padding: 0; width: 0; left: 0; top: 0; } .video-js .vjs-mouse-display:before { display: none; } .video-js .vjs-play-progress { background-color: #fff; } .video-js .vjs-play-progress:before { position: absolute; top: -0.333333333333333em; right: -0.5em; font-size: 0.9em; } .video-js .vjs-time-tooltip, .video-js .vjs-mouse-display:after, .video-js .vjs-play-progress:after { visibility: hidden; pointer-events: none; position: absolute; top: -3.4em; right: -1.9em; font-size: 0.9em; color: #000; content: attr(data-current-time); padding: 6px 8px 8px 8px; background-color: #fff; background-color: rgba(255, 255, 255, 0.8); -webkit-border-radius: 0.3em; -moz-border-radius: 0.3em; border-radius: 0.3em; } .video-js .vjs-time-tooltip, .video-js .vjs-play-progress:before, .video-js .vjs-play-progress:after { z-index: 1; } .video-js .vjs-progress-control .vjs-keep-tooltips-inside:after { display: none; } .video-js .vjs-load-progress { background: #bfc7d3; background: rgba(115, 133, 159, 0.5); } .video-js .vjs-load-progress div { background: white; background: rgba(115, 133, 159, 0.75); } .video-js.vjs-no-flex .vjs-progress-control { width: auto; } .video-js .vjs-time-tooltip { display: inline-block; height: 2.4em; position: relative; float: right; right: -1.9em; } .vjs-tooltip-progress-bar { visibility: hidden; } .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, .video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display:after { visibility: hidden; opacity: 0; -webkit-transition: visibility 1s, opacity 1s; -moz-transition: visibility 1s, opacity 1s; -o-transition: visibility 1s, opacity 1s; transition: visibility 1s, opacity 1s; } .video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display, .video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display:after { display: none; } .vjs-mouse-display .vjs-time-tooltip, .video-js .vjs-progress-control .vjs-mouse-display:after { color: #fff; background-color: #000; background-color: rgba(0, 0, 0, 0.8); } .video-js .vjs-slider { outline: 0; position: relative; cursor: pointer; padding: 0; margin: 0 0.45em 0 0.45em; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: #73859f; background-color: rgba(115, 133, 159, 0.5); } .video-js .vjs-slider:focus { text-shadow: 0em 0em 1em white; -webkit-box-shadow: 0 0 1em #fff; -moz-box-shadow: 0 0 1em #fff; box-shadow: 0 0 1em #fff; } .video-js .vjs-mute-control, .video-js .vjs-volume-menu-button { cursor: pointer; -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -ms-flex: none; flex: none; } .video-js .vjs-volume-control { width: 5em; -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -ms-flex: none; flex: none; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; } .video-js .vjs-volume-bar { margin: 1.35em 0.45em; } .vjs-volume-bar.vjs-slider-horizontal { width: 5em; height: 0.3em; } .vjs-volume-bar.vjs-slider-vertical { width: 0.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: 0.9em; } .vjs-slider-vertical .vjs-volume-level { width: 0.3em; } .vjs-slider-vertical .vjs-volume-level:before { top: -0.5em; left: -0.3em; } .vjs-slider-horizontal .vjs-volume-level { height: 0.3em; } .vjs-slider-horizontal .vjs-volume-level:before { top: -0.3em; right: -0.5em; } .vjs-volume-bar.vjs-slider-vertical .vjs-volume-level { height: 100%; } .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level { width: 100%; } .vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu { display: block; width: 0; height: 0; border-top-color: transparent; } .vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu { left: 0.5em; height: 8em; } .vjs-menu-button-popup.vjs-volume-menu-button-horizontal .vjs-menu { left: -2em; } .vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu-content { height: 0; width: 0; overflow-x: hidden; overflow-y: hidden; } .vjs-volume-menu-button-vertical:hover .vjs-menu-content, .vjs-volume-menu-button-vertical:focus .vjs-menu-content, .vjs-volume-menu-button-vertical.vjs-slider-active .vjs-menu-content, .vjs-volume-menu-button-vertical .vjs-lock-showing .vjs-menu-content { height: 8em; width: 2.9em; } .vjs-volume-menu-button-horizontal:hover .vjs-menu-content, .vjs-volume-menu-button-horizontal:focus .vjs-menu-content, .vjs-volume-menu-button-horizontal .vjs-slider-active .vjs-menu-content, .vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content { height: 2.9em; width: 8em; } .vjs-volume-menu-button.vjs-menu-button-inline .vjs-menu-content { background-color: transparent !important; } .vjs-poster { display: inline-block; vertical-align: middle; background-repeat: no-repeat; background-position: 50% 50%; background-size: contain; background-color: #000000; cursor: pointer; margin: 0; padding: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: 100%; } .vjs-poster img { display: block; vertical-align: middle; margin: 0 auto; max-height: 100%; padding: 0; width: 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: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -webkit-align-items: flex-start; -ms-flex-align: flex-start; align-items: flex-start; -webkit-box-flex: auto; -moz-box-flex: auto; -webkit-flex: auto; -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-time-control { -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -ms-flex: none; flex: none; font-size: 1em; line-height: 3em; min-width: 2em; width: auto; padding-left: 1em; padding-right: 1em; } .vjs-live .vjs-time-control { display: none; } .video-js .vjs-current-time, .vjs-no-flex .vjs-current-time { display: none; } .video-js .vjs-duration, .vjs-no-flex .vjs-duration { display: none; } .vjs-time-divider { display: none; line-height: 3em; } .vjs-live .vjs-time-divider { display: none; } .video-js .vjs-play-control { cursor: pointer; -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -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: 0.1em; background-color: #000; background-color: rgba(0, 0, 0, 0.5); } .vjs-subtitles { color: #fff; } .vjs-captions { color: #fc6; } .vjs-tt-cue { display: block; } video::-webkit-media-text-track-display { -moz-transform: translateY(-3em); -ms-transform: translateY(-3em); -o-transform: translateY(-3em); -webkit-transform: translateY(-3em); transform: translateY(-3em); } .video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display { -moz-transform: translateY(-1.5em); -ms-transform: translateY(-1.5em); -o-transform: translateY(-1.5em); -webkit-transform: translateY(-1.5em); transform: translateY(-1.5em); } .video-js .vjs-fullscreen-control { cursor: pointer; -webkit-box-flex: none; -moz-box-flex: none; -webkit-flex: none; -ms-flex: none; flex: none; } .vjs-playback-rate .vjs-playback-rate-value { font-size: 1.5em; line-height: 2; position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-align: center; } .vjs-playback-rate .vjs-menu { width: 4em; left: 0em; } .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: -0.5em; position: absolute; text-shadow: 0.05em 0.05em 0.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: 0.85; text-align: left; border: 6px solid rgba(43, 51, 63, 0.7); box-sizing: border-box; background-clip: padding-box; width: 50px; height: 50px; border-radius: 25px; } .vjs-seeking .vjs-loading-spinner, .vjs-waiting .vjs-loading-spinner { display: block; } .vjs-loading-spinner:before, .vjs-loading-spinner:after { content: ""; position: absolute; margin: -6px; box-sizing: inherit; width: inherit; height: inherit; border-radius: inherit; opacity: 1; border: inherit; border-color: transparent; border-top-color: white; } .vjs-seeking .vjs-loading-spinner:before, .vjs-seeking .vjs-loading-spinner:after, .vjs-waiting .vjs-loading-spinner:before, .vjs-waiting .vjs-loading-spinner:after { -webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite; animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 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: white; } .vjs-seeking .vjs-loading-spinner:after, .vjs-waiting .vjs-loading-spinner:after { border-top-color: white; -webkit-animation-delay: 0.44s; animation-delay: 0.44s; } @keyframes vjs-spinner-spin { 100% { transform: rotate(360deg); } } @-webkit-keyframes vjs-spinner-spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes vjs-spinner-fade { 0% { border-top-color: #73859f; } 20% { border-top-color: #73859f; } 35% { border-top-color: white; } 60% { border-top-color: #73859f; } 100% { border-top-color: #73859f; } } @-webkit-keyframes vjs-spinner-fade { 0% { border-top-color: #73859f; } 20% { border-top-color: #73859f; } 35% { border-top-color: white; } 60% { border-top-color: #73859f; } 100% { border-top-color: #73859f; } } .vjs-chapters-button .vjs-menu ul { width: 24em; } .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer { -webkit-box-flex: auto; -moz-box-flex: auto; -webkit-flex: auto; -ms-flex: auto; flex: auto; } .video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer { width: auto; } .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-menu-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-audio-button { display: none; } .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-menu-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-audio-button { display: none; } .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button .vjs-audio-button { display: none; } .vjs-caption-settings { position: relative; top: 1em; background-color: #2B333F; background-color: rgba(43, 51, 63, 0.75); color: #fff; margin: 0 auto; padding: 0.5em; height: 16em; font-size: 12px; width: 40em; } .vjs-caption-settings .vjs-tracksettings { top: 0; bottom: 1em; left: 0; right: 0; position: absolute; overflow: auto; } .vjs-caption-settings .vjs-tracksettings-colors, .vjs-caption-settings .vjs-tracksettings-font { float: left; } .vjs-caption-settings .vjs-tracksettings-colors:after, .vjs-caption-settings .vjs-tracksettings-font:after, .vjs-caption-settings .vjs-tracksettings-controls:after { clear: both; } .vjs-caption-settings .vjs-tracksettings-controls { position: absolute; bottom: 1em; right: 1em; } .vjs-caption-settings .vjs-tracksetting { margin: 5px; padding: 3px; min-height: 40px; border: none; } .vjs-caption-settings .vjs-tracksetting label, .vjs-caption-settings .vjs-tracksetting legend { display: block; width: 100px; margin-bottom: 5px; } .vjs-caption-settings .vjs-tracksetting span { display: inline; margin-left: 5px; vertical-align: top; float: right; } .vjs-caption-settings .vjs-tracksetting > div { margin-bottom: 5px; min-height: 20px; } .vjs-caption-settings .vjs-tracksetting > div:last-child { margin-bottom: 0; padding-bottom: 0; min-height: 0; } .vjs-caption-settings label > input { margin-right: 10px; } .vjs-caption-settings fieldset { margin-top: 1em; margin-left: .5em; } .vjs-caption-settings fieldset .vjs-label { position: absolute; clip: rect(1px 1px 1px 1px); /* for Internet Explorer */ clip: rect(1px, 1px, 1px, 1px); padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; } .vjs-caption-settings input[type="button"] { width: 40px; height: 40px; } .video-js .vjs-modal-dialog { background: rgba(0, 0, 0, 0.8); background: -webkit-linear-gradient(-90deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0)); background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0)); } .vjs-modal-dialog .vjs-modal-dialog-content { font-size: 1.2em; line-height: 1.5; padding: 20px 24px; z-index: 1; } @media print { .video-js > *:not(.vjs-tech):not(.vjs-poster) { visibility: hidden; } } </style> <style class="bc-style-default-default"> .bc-player-default_default *,.bc-player-default_default :after,.bc-player-default_default :before{box-sizing:inherit;font-size:inherit;color:inherit;line-height:inherit}.bc-player-default_default{width:300px;height:150px;font-size:14px;overflow:hidden}.bc-iframe,.bc-iframe body,.bc-player-default_default{background-color:#151B17}.bc-iframe,.bc-iframe .bc-player-default_default,.bc-iframe body{margin:0;width:100%;height:100%;overflow:hidden}.bc-player-default_default.vjs-fullscreen,.bc-player-default_default.vjs-fullscreen .vjs-tech{width:100%!important;height:100%!important}.bc-player-default_default .vjs-control-bar{background-color:rgba(0,0,0,.45);color:#fff}.bc-player-default_default .vjs-control{color:inherit}.bc-player-default_default .vjs-mouse-display:after,.bc-player-default_default .vjs-play-progress:after{border-radius:0}.bc-player-default_default .vjs-menu-button-inline.vjs-slider-active,.bc-player-default_default .vjs-menu-button-inline:focus,.bc-player-default_default .vjs-menu-button-inline:hover,.bc-player-default_default.vjs-no-flex .vjs-menu-button-inline{width:8.35em}.bc-player-default_default .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content{height:3em;width:6.35em}.bc-player-default_default.vjs-ios[muted] .vjs-volume-menu-button{width:4em}.bc-player-default_default.vjs-ios[muted] .vjs-volume-menu-button .vjs-menu{display:none}.bc-player-default_default .vjs-control:focus:before,.bc-player-default_default .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}.bc-player-default_default .vjs-spacer{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:1 1 auto;-moz-box-flex:1 1 auto;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.bc-player-default_default .vjs-time-control{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:0 1 auto;-moz-box-flex:0 1 auto;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;width:auto}.bc-player-default_default .vjs-time-control.vjs-time-divider{width:14px}.bc-player-default_default .vjs-time-control.vjs-time-divider div{width:100%;text-align:center}.bc-player-default_default .vjs-time-control.vjs-current-time{margin-left:1em}.bc-player-default_default .vjs-time-control .vjs-current-time-display,.bc-player-default_default .vjs-time-control .vjs-duration-display{width:100%}.bc-player-default_default .vjs-time-control .vjs-current-time-display{text-align:right}.bc-player-default_default .vjs-time-control .vjs-duration-display{text-align:left}.bc-player-default_default .vjs-remaining-time{display:none}.bc-player-default_default.vjs-no-flex .vjs-time-control.vjs-remaining-time{display:none}.bc-player-default_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-default_default .vjs-play-progress,.bc-player-default_default .vjs-volume-level{background-color:#d52484}.bc-player-default_default .vjs-play-progress:before,.bc-player-default_default .vjs-volume-level:before{display:none}.bc-player-default_default .vjs-volume-level:after{display:none}.bc-player-default_default .vjs-progress-control{position:absolute;left:0;right:0;width:100%;height:1.5em;top:-1.5em}.bc-player-default_default .vjs-progress-control .vjs-load-progress,.bc-player-default_default .vjs-progress-control .vjs-play-progress,.bc-player-default_default .vjs-progress-control .vjs-progress-holder{height:100%}.bc-player-default_default .vjs-progress-control .vjs-progress-holder{margin:0}.bc-player-default_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-default_default .vjs-control-bar{-webkit-transition:-webkit-transform .1s ease 0s;-moz-transition:-moz-transform .1s ease 0s;-ms-transition:-ms-transform .1s ease 0s;-o-transition:-o-transform .1s ease 0s;transition:transform .1s ease 0s}.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar,.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar,.bc-player-default_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,.bc-player-default_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar{visibility:visible;opacity:1;-webkit-backface-visibility:hidden;-webkit-transform:translateY(3em);-moz-transform:translateY(3em);-ms-transform:translateY(3em);-o-transform:translateY(3em);transform:translateY(3em);-webkit-transition:-webkit-transform 1s ease 0s;-moz-transition:-moz-transform 1s ease 0s;-ms-transition:-ms-transform 1s ease 0s;-o-transition:-o-transform 1s ease 0s;transition:transform 1s ease 0s}.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.bc-player-default_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control,.bc-player-default_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.3em;top:-.3em;pointer-events:none;-webkit-transition:height 1s,top 1s;-moz-transition:height 1s,top 1s;-ms-transition:height 1s,top 1s;-o-transition:height 1s,top 1s;transition:height 1s,top 1s}.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-default_default.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:0;-webkit-transition:opacity 1s ease 1s;-moz-transition:opacity 1s ease 1s;-ms-transition:opacity 1s ease 1s;-o-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s}.bc-player-default_default.vjs-live .vjs-live-control{margin-left:1em}.bc-player-default_default.vjs-live .vjs-time-control.vjs-current-time,.bc-player-default_default.vjs-live .vjs-time-control.vjs-duration,.bc-player-default_default.vjs-live .vjs-time-control.vjs-time-divider{display:none}.bc-player-default_default .vjs-big-play-button{top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;font-size:3.5em;background-color:rgba(0,0,0,.45);color:#fff;-webkit-transition:border-color .4s,outline .4s,background-color .4s;-moz-transition:border-color .4s,outline .4s,background-color .4s;-ms-transition:border-color .4s,outline .4s,background-color .4s;-o-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s}.bc-player-default_default .vjs-big-play-button:active,.bc-player-default_default .vjs-big-play-button:focus,.bc-player-default_default:active .vjs-big-play-button,.bc-player-default_default:hover .vjs-big-play-button{background-color:#d52484}.bc-player-default_default .vjs-menu-button-popup .vjs-menu{left:-3em}.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:transparent;width:12em;left:-1.5em;padding-bottom:.5em}.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item,.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-title{background-color:#151B17;margin:.3em 0;padding:.5em;border-radius:.3em}.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected{background-color:#d52484}.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff;color:#fff}.bc-player-default_default .vjs-caption-settings{position:absolute;left:50%;margin:0;margin-left:-20em;z-index:1}.bc-player-default_default .vjs-caption-settings select{color:#000}.bc-player-default_default .vjs-tracksettings-controls{position:absolute;bottom:0;text-align:right}@media only screen and (max-width:480px){.bc-player-default_default .vjs-caption-settings{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;margin:0;height:100%;width:100%}.bc-player-default_default .vjs-tracksettings,.bc-player-default_default .vjs-tracksettings-controls{left:35px;right:35px}.bc-player-default_default .vjs-tracksettings{top:20px;bottom:40px}.bc-player-default_default .vjs-tracksettings-controls{padding:5px 0;bottom:0}}.bc-player-default_default .vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.bc-player-default_default .vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.bc-player-default_default .vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.bc-player-default_default .vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.bc-player-default_default .vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.bc-player-default_default .vjs-caption-settings label>input{margin-right:10px}.bc-player-default_default .vjs-caption-settings input[type=button]{width:40px;height:40px}.bc-player-default_default .vjs-tracksettings .vjs-label{display:block}.bc-player-default_default .vjs-tracksettings-colors,.bc-player-default_default .vjs-tracksettings-font{box-sizing:border-box;float:left;width:50%;padding:3px;min-height:40px;min-width:280px}.bc-player-default_default .vjs-tracksettings-colors:after,.bc-player-default_default .vjs-tracksettings-controls:after,.bc-player-default_default .vjs-tracksettings-font:after{clear:both}.bc-player-default_default .vjs-tracksetting{margin-bottom:16px;min-height:20px}.bc-player-default_default .vjs-opacity{margin-left:10px}.bc-player-default_default .vjs-tracksetting button,.bc-player-default_default .vjs-tracksetting input,.bc-player-default_default .vjs-tracksetting select,.bc-player-default_default .vjs-tracksettings-controls button{margin-top:6px;font:inherit;border-radius:2px;background-color:#fff;padding:0 9px;line-height:24px;height:24px;border:none;color:#515151;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.bc-player-default_default .vjs-edge-style select,.bc-player-default_default .vjs-font-family select{display:block}.bc-player-default_default .vjs-caption-settings button{margin-right:10px}.bc-player-default_default .vjs-caption-settings .vjs-done-button{margin-right:0}.bc-player-default_default.vjs-ad-playing .vjs-mouse-display,.bc-player-default_default.vjs-ad-playing .vjs-mouse-display:after{display:none}.bc-player-default_default.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{pointer-events:auto;width:100%;height:100%;position:absolute;left:0;bottom:0;content:" ";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.ie8.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.ie8.bc-player-default_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.ie8.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.ie8.bc-player-default_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.ie8.bc-player-default_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.5em;top:-.5em}.ie8.bc-player-default_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar{display:none}.ie8.bc-player-default_default .vjs-control:focus:before,.ie8.bc-player-default_default .vjs-control:hover:before{border:2px solid #FFF}.ie8.bc-player-default_default .vjs-menu-button-popup .vjs-menu{margin:0}.ie8.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item{margin:0}.ie8.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.ie8.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.ie8.bc-player-default_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{border:2px solid #FFF}.bc-player-default_default.vjs-no-flex .vjs-spacer{display:table-cell}.bc-player-default_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-default_default.vjs-no-flex .vjs-remaining-time{display:none}.vjs-mouse.bc-player-default_default .vjs-control-bar{font-size:10px}.vjs-mouse.bc-player-default_default .vjs-progress-control{height:.5em;top:-.5em}.vjs-mouse.bc-player-default_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-default_default select{width:inherit}.vjs-error-display{color:#fff;display:none;font-family:Helvetica,Arial,sans serif;font-size:16px;line-height:1.428}.vjs-error .vjs-error-display{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:14px}.vjs-errors-dialog{text-align:left;border:1px #999 solid;overflow:hidden;position:absolute;top:2%;bottom:2%;left:5%;right:5%;padding-left:1%;padding-right:1%;background:rgba(24,24,24,.8);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)"}.vjs-errors-details{margin-top:15px}.vjs-errors-message{border:1px #999 solid;background-color:#2c2c2c;overflow:auto;margin-top:15px;padding:15px}.vjs-errors-ok-button-container{display:block;position:absolute;bottom:15px;left:15px;right:15px;text-align:center}.vjs-errors-ok-button{display:block;margin:0 auto;width:80px;height:36px;background-color:#000;border:1px #999 solid;border-radius:5px;color:#999;font-size:14px;cursor:pointer}.vjs-errors-ok-button:hover{border:1px #FFF solid;color:#CCC}.vjs-errors-content-container{overflow:auto;position:absolute;padding-bottom:15px;top:0;left:15px;right:15px;bottom:61px}.vjs-errors-headline{font-size:14px;font-weight:700;padding-right:3em}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-flashmessage{float:right;font-size:9px;font-style:italic}.vjs-xs.vjs-error-display{font-size:14px;background-color:#000}.vjs-xs.vjs-error-display .vjs-errors-details,.vjs-xs.vjs-error-display .vjs-errors-message{display:none}.vjs-xs .vjs-errors-content-container{top:0}.vjs-xs .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-xs .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-xs.vjs-errors-flashmessage{display:none}@media (max-width:600px),(max-height:250px){.vjs-error-display{font-size:14px;background-color:#000}.vjs-error-display .vjs-errors-details,.vjs-error-display .vjs-errors-message{display:none}.vjs-error-display .vjs-errors-content-container{top:15px}.vjs-error-display .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-error-display .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-errors-flashmessage{display:none}}.vjs-errors-ref-id{color:rgba(255,255,255,.5);font-size:.75em;margin:.5em 0 0}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1.8em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s}.video-js .vjs-dock-text{left:0;margin:0;width:100%;background:rgba(0,0,0,.8);background:-webkit-linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);background:linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);padding:1em 25% 2em 1em}.video-js.vjs-no-flex .vjs-dock-text{padding-bottom:1em}.video-js .vjs-dock-shelf{padding:1em 1em;right:0;text-align:right;width:25%}.video-js .vjs-dock-shelf *{pointer-events:auto}.video-js .vjs-dock-description,.video-js .vjs-dock-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-js .vjs-dock-title{font-weight:700;letter-spacing:1px;line-height:1.333;margin-bottom:.333em}.video-js .vjs-dock-description{font-weight:400;line-height:1.5}.vjs-playing.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-user-inactive .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-text{display:none}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1em}.vjs-has-started.not-hover .vjs-dock-shelf,.vjs-has-started.not-hover .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-contextmenu-ui-menu{position:absolute}.vjs-contextmenu-ui-menu .vjs-menu-content{background-color:#2B333F;background-color:rgba(43,51,63,.7);border-radius:.3em;padding:.25em}.vjs-contextmenu-ui-menu .vjs-menu-item{border-radius:.3em;cursor:pointer;margin:0 0 1px;padding:.5em 1em;font-size:1em;line-height:1.2;text-transform:none}.vjs-contextmenu-ui-menu .vjs-menu-item:active,.vjs-contextmenu-ui-menu .vjs-menu-item:hover{background-color:rgba(0,0,0,.5);text-shadow:0 0 1em #fff}.vjs-modal-dialog.vjs-player-info-modal{background:rgba(0,0,0,.9);font-size:10px}.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{overflow:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section{float:left;width:49%}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section:nth-child(2n+1){float:right}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source{float:none;clear:both;width:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source td:first-child{min-width:150px}.vjs-modal-dialog.vjs-player-info-modal table{border-collapse:collapse;margin-bottom:1em;width:100%}.vjs-modal-dialog.vjs-player-info-modal th{font-weight:400;text-align:left}.vjs-modal-dialog.vjs-player-info-modal td{border-bottom:1px solid rgba(255,255,255,.2);opacity:.5}.vjs-modal-dialog.vjs-player-info-modal tr:last-child td{border-bottom:0}.vjs-modal-dialog.vjs-player-info-modal tr:hover td{opacity:1} </style> <!--[if IE 8]><script src="//vjs.zencdn.net/ie8/1.1.1/videojs-ie8.min.js"></script><!--<![endif]--> </head> <body><video data-account="1393959378001" data-player="default" data-embed="default" data-application-id="" class="video-js vjs-default-skin" > </video> <script>(function(p){p.mark&&p.mark('bcParseStart')})(window.performance||{})</script> <script>(function(a,b){var c=undefined;var d=a.define;var e=b.querySelector(".bc-iframe");var f=function(){var a,c;if(b.querySelector(".bc-iframe")){return"."}if(typeof d==="function"&&d.amd){a=require.toUrl("bc")}else if(b.currentScript){a=b.currentScript.src}else{c=b.getElementsByTagName("script");a=c[c.length-1].src}return a.split("/").slice(0,-1).join("/")}();var g=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(b){a.setTimeout(b,1e3/60)};var h=function(a,b,c){var d=(a.cssRules||[]).length;if(a.insertRule){try{a.insertRule(b+" { "+c+" } ",d)}catch(e){}}else{try{a.addRule(b,c,d)}catch(e){}}};var i=function(){var b=a.navigator.userAgent.match(/applewebkit\/(\d*).*Version\/(\d*.\d*)/i);return k.browser.IS_ANDROID&&k.browser.ANDROID_VERSION<5&&b&&b[2]>0};var j=a.videojs;a.VIDEOJS_NO_DYNAMIC_STYLE=true;(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojs=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.mouseused_=false;e.on("mousedown",e.handleMouseDown);return e}b.prototype.buildCSSClass=function c(){return"vjs-big-play-button"};b.prototype.handleClick=function d(a){var b=this.player_.play();if(this.mouseused_&&a.clientX&&a.clientY){return}var c=this.player_.getChild("controlBar");var d=c&&c.getChild("playToggle");if(!d){this.player_.focus();return}var e=function g(){return d.focus()};if(b&&b.then){var f=function h(){};b.then(e,f)}else{this.setTimeout(e,1)}};b.prototype.handleKeyPress=function e(b){this.mouseused_=false;a.prototype.handleKeyPress.call(this,b)};b.prototype.handleMouseDown=function f(a){this.mouseused_=true};return b}(e["default"]);l.prototype.controlText_="Play Video";g["default"].registerComponent("BigPlayButton",l);c["default"]=l},{2:2,5:5}],2:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=k(d);var f=a(5);var g=k(f);var h=a(86);var i=k(h);var j=a(88);function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(){l(this,b);return m(this,a.apply(this,arguments))}b.prototype.createEl=function c(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"button";var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};b=(0,j.assign)({className:this.buildCSSClass()},b);if(a!=="button"){i["default"].warn("Creating a Button with an HTML element of "+a+" is deprecated; use ClickableComponent instead.");b=(0,j.assign)({tabIndex:0},b);c=(0,j.assign)({role:"button"},c)}c=(0,j.assign)({type:"button","aria-live":"polite"},c);var d=g["default"].prototype.createEl.call(this,a,b,c);this.createControlTextEl(d);return d};b.prototype.addChild=function d(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=this.constructor.name;i["default"].warn("Adding an actionable (user controllable) child to a Button ("+c+") is not supported; use a ClickableComponent instead.");return g["default"].prototype.addChild.call(this,a,b)};b.prototype.enable=function e(){a.prototype.enable.call(this);this.el_.removeAttribute("disabled")};b.prototype.disable=function f(){a.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};b.prototype.handleKeyPress=function h(b){if(b.which===32||b.which===13){return}a.prototype.handleKeyPress.call(this,b)};return b}(e["default"]);g["default"].registerComponent("Button",o);c["default"]=o},{3:3,5:5,86:86,88:88}],3:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=r(d);var f=a(81);var g=q(f);var h=a(82);var i=q(h);var j=a(83);var k=q(j);var l=a(86);var m=r(l);var n=a(96);var o=r(n);var p=a(88);function q(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function r(a){return a&&a.__esModule?a:{"default":a}}function s(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function t(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function u(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var v=function(a){u(b,a);function b(c,d){s(this,b);var e=t(this,a.call(this,c,d));e.emitTapEvents();e.enable();return e}b.prototype.createEl=function c(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};c=(0,p.assign)({className:this.buildCSSClass(),tabIndex:0},c);if(b==="button"){m["default"].error("Creating a ClickableComponent with an HTML element of "+b+" is not supported; use a Button instead.")}d=(0,p.assign)({role:"button","aria-live":"polite"},d);this.tabIndex_=c.tabIndex;var e=a.prototype.createEl.call(this,b,c,d);this.createControlTextEl(e);return e};b.prototype.createControlTextEl=function d(a){this.controlTextEl_=g.createEl("span",{className:"vjs-control-text"});if(a){a.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,a);return this.controlTextEl_};b.prototype.controlText=function e(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!a){return this.controlText_||"Need Text"}var c=this.localize(a);this.controlText_=a;this.controlTextEl_.innerHTML=c;if(!this.nonIconControl){b.setAttribute("title",c)}return this};b.prototype.buildCSSClass=function f(){return"vjs-control vjs-button "+a.prototype.buildCSSClass.call(this)};b.prototype.enable=function h(){this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.off(["tap","click"],this.handleClick);this.off("focus",this.handleFocus);this.off("blur",this.handleBlur);this.on(["tap","click"],this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);return this};b.prototype.disable=function j(){this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off(["tap","click"],this.handleClick);this.off("focus",this.handleFocus);this.off("blur",this.handleBlur);return this};b.prototype.handleClick=function l(a){};b.prototype.handleFocus=function n(a){i.on(o["default"],"keydown",k.bind(this,this.handleKeyPress))};b.prototype.handleKeyPress=function q(b){if(b.which===32||b.which===13){b.preventDefault();this.handleClick(b)}else if(a.prototype.handleKeyPress){a.prototype.handleKeyPress.call(this,b)}};b.prototype.handleBlur=function r(a){i.off(o["default"],"keydown",k.bind(this,this.handleKeyPress))};return b}(e["default"]);e["default"].registerComponent("ClickableComponent",v);c["default"]=v},{5:5,81:81,82:82,83:83,86:86,88:88,96:96}],4:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.controlText(d&&d.controlText||e.localize("Close"));return e}b.prototype.buildCSSClass=function c(){return"vjs-close-button "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){this.trigger({type:"close",bubbles:false})};return b}(e["default"]);g["default"].registerComponent("CloseButton",l);c["default"]=l},{2:2,5:5}],5:[function(a,b,c){"use strict";c.__esModule=true;var d=a(97);var e=u(d);var f=a(81);var g=t(f);var h=a(83);var i=t(h);var j=a(85);var k=t(j);var l=a(82);var m=t(l);var n=a(86);var o=u(n);var p=a(91);var q=u(p);var r=a(87);var s=u(r);function t(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function u(a){return a&&a.__esModule?a:{"default":a}}function v(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var w=function(){function a(b,c,d){v(this,a);if(!b&&this.play){this.player_=b=this}else{this.player_=b}this.options_=(0,s["default"])({},this.options_);c=this.options_=(0,s["default"])(this.options_,c);this.id_=c.id||c.el&&c.el.id;if(!this.id_){var e=b&&b.id&&b.id()||"no_player";this.id_=e+"_component_"+k.newGUID()}this.name_=c.name||null;if(c.el){this.el_=c.el}else if(c.createEl!==false){this.el_=this.createEl()}this.children_=[];this.childIndex_={};this.childNameIndex_={};if(c.initChildren!==false){this.initChildren()}this.ready(d);if(c.reportTouchActivity!==false){this.enableTouchActivity()}}a.prototype.dispose=function b(){this.trigger({type:"dispose",bubbles:false});if(this.children_){for(var a=this.children_.length-1;a>=0;a--){if(this.children_[a].dispose){this.children_[a].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();if(this.el_.parentNode){this.el_.parentNode.removeChild(this.el_)}g.removeElData(this.el_);this.el_=null};a.prototype.player=function c(){return this.player_};a.prototype.options=function d(a){o["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0");if(!a){return this.options_}this.options_=(0,s["default"])(this.options_,a);return this.options_};a.prototype.el=function f(){return this.el_};a.prototype.createEl=function h(a,b,c){return g.createEl(a,b,c)};a.prototype.localize=function j(a){var b=this.player_.language&&this.player_.language();var c=this.player_.languages&&this.player_.languages();if(!b||!c){return a}var d=c[b];if(d&&d[a]){return d[a]}var e=b.split("-")[0];var f=c[e];if(f&&f[a]){return f[a]}return a};a.prototype.contentEl=function l(){return this.contentEl_||this.el_};a.prototype.id=function n(){return this.id_};a.prototype.name=function p(){return this.name_};a.prototype.children=function r(){return this.children_};a.prototype.getChildById=function t(a){return this.childIndex_[a]};a.prototype.getChild=function u(a){if(!a){return}a=(0,q["default"])(a);return this.childNameIndex_[a]};a.prototype.addChild=function w(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length;var e=void 0;var f=void 0;if(typeof b==="string"){f=(0,q["default"])(b);if(!c){c={}}if(c===true){o["default"].warn("Initializing a child component with `true` is deprecated."+"Children should be defined in an array when possible, "+"but if necessary use an object instead of `true`.");c={}}var g=c.componentClass||f;c.name=f;var h=a.getComponent(g);if(!h){throw new Error("Component "+g+" does not exist")}if(typeof h!=="function"){return null}e=new h(this.player_||this,c)}else{e=b}this.children_.splice(d,0,e);if(typeof e.id==="function"){this.childIndex_[e.id()]=e}f=f||e.name&&(0,q["default"])(e.name());if(f){this.childNameIndex_[f]=e}if(typeof e.el==="function"&&e.el()){var i=this.contentEl().children;var j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e};a.prototype.removeChild=function x(a){if(typeof a==="string"){a=this.getChild(a)}if(!a||!this.children_){return}var b=false;for(var c=this.children_.length-1;c>=0;c--){if(this.children_[c]===a){b=true;this.children_.splice(c,1);break}}if(!b){return}this.childIndex_[a.id()]=null;this.childNameIndex_[a.name()]=null;var d=a.el();if(d&&d.parentNode===this.contentEl()){this.contentEl().removeChild(a.el())}};a.prototype.initChildren=function y(){var b=this;var c=this.options_.children;if(c){var d=this.options_;var e=function h(a){var c=a.name;var e=a.opts;if(d[c]!==undefined){e=d[c]}if(e===false){return}if(e===true){e={}}e.playerOptions=b.options_.playerOptions;var f=b.addChild(c,e);if(f){b[c]=f}};var f=void 0;var g=a.getComponent("Tech");if(Array.isArray(c)){f=c}else{f=Object.keys(c)}f.concat(Object.keys(this.options_).filter(function(a){return!f.some(function(b){if(typeof b==="string"){return a===b}return a===b.name})})).map(function(a){var d=void 0;var e=void 0;if(typeof a==="string"){d=a;e=c[d]||b.options_[d]||{}}else{d=a.name;e=a}return{name:d,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||(0,q["default"])(b.name));return c&&!g.isTech(c)}).forEach(e)}};a.prototype.buildCSSClass=function z(){return""};a.prototype.on=function A(a,b,c){var d=this;if(typeof a==="string"||Array.isArray(a)){m.on(this.el_,a,i.bind(this,b))}else{var e=a;var f=b;var g=i.bind(this,c);var h=function k(){return d.off(e,f,g)};h.guid=g.guid;this.on("dispose",h);var j=function l(){return d.off("dispose",h)};j.guid=g.guid;if(a.nodeName){m.on(e,f,g);m.on(e,"dispose",j)}else if(typeof a.on==="function"){e.on(f,g);e.on("dispose",j)}}return this};a.prototype.off=function B(a,b,c){if(!a||typeof a==="string"||Array.isArray(a)){m.off(this.el_,a,b)}else{var d=a;var e=b;var f=i.bind(this,c);this.off("dispose",f);if(a.nodeName){m.off(d,e,f);m.off(d,"dispose",f)}else{d.off(e,f);d.off("dispose",f)}}return this};a.prototype.one=function C(a,b,c){var d=this,e=arguments;if(typeof a==="string"||Array.isArray(a)){m.one(this.el_,a,i.bind(this,b))}else{var f=a;var g=b;var h=i.bind(this,c);var j=function k(){d.off(f,g,k);h.apply(null,e)};j.guid=h.guid;this.on(f,g,j)}return this};a.prototype.trigger=function D(a,b){m.trigger(this.el_,a,b);return this};a.prototype.ready=function E(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(a){if(this.isReady_){if(b){a.call(this)}else{this.setTimeout(a,1)}}else{this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(a)}}return this};a.prototype.triggerReady=function F(){this.isReady_=true;this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[];if(a&&a.length>0){a.forEach(function(a){a.call(this)},this)}this.trigger("ready")},1)};a.prototype.$=function G(a,b){return g.$(a,b||this.contentEl())};a.prototype.$$=function H(a,b){return g.$$(a,b||this.contentEl())};a.prototype.hasClass=function I(a){return g.hasElClass(this.el_,a)};a.prototype.addClass=function J(a){g.addElClass(this.el_,a);return this};a.prototype.removeClass=function K(a){g.removeElClass(this.el_,a);return this};a.prototype.toggleClass=function L(a,b){g.toggleElClass(this.el_,a,b);return this};a.prototype.show=function M(){this.removeClass("vjs-hidden");return this};a.prototype.hide=function N(){this.addClass("vjs-hidden");return this};a.prototype.lockShowing=function O(){this.addClass("vjs-lock-showing");return this};a.prototype.unlockShowing=function P(){this.removeClass("vjs-lock-showing");return this};a.prototype.getAttribute=function Q(a){return g.getAttribute(this.el_,a)};a.prototype.setAttribute=function R(a,b){g.setAttribute(this.el_,a,b);return this};a.prototype.removeAttribute=function S(a){g.removeAttribute(this.el_,a);return this};a.prototype.width=function T(a,b){return this.dimension("width",a,b)};a.prototype.height=function U(a,b){return this.dimension("height",a,b)};a.prototype.dimensions=function V(a,b){return this.width(a,true).height(b)};a.prototype.dimension=function W(a,b,c){if(b!==undefined){if(b===null||b!==b){b=0}if((""+b).indexOf("%")!==-1||(""+b).indexOf("px")!==-1){this.el_.style[a]=b}else if(b==="auto"){this.el_.style[a]=""}else{this.el_.style[a]=b+"px"}if(!c){this.trigger("resize")}return this}if(!this.el_){return 0}var d=this.el_.style[a];var e=d.indexOf("px");if(e!==-1){return parseInt(d.slice(0,e),10)}return parseInt(this.el_["offset"+(0,q["default"])(a)],10)};a.prototype.currentDimension=function X(a){var b=0;if(a!=="width"&&a!=="height"){throw new Error("currentDimension only accepts width or height value")}if(typeof e["default"].getComputedStyle==="function"){var c=e["default"].getComputedStyle(this.el_);b=c.getPropertyValue(a)||c[a]}b=parseFloat(b);if(b===0){var d="offset"+(0,q["default"])(a);b=this.el_[d]}return b};a.prototype.currentDimensions=function Y(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};a.prototype.currentWidth=function Z(){return this.currentDimension("width")};a.prototype.currentHeight=function $(){return this.currentDimension("height")};a.prototype.focus=function _(){this.el_.focus()};a.prototype.blur=function aa(){this.el_.blur()};a.prototype.emitTapEvents=function ba(){var a=0;var b=null;var c=10;var d=200;var e=void 0;this.on("touchstart",function(c){if(c.touches.length===1){b={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY};a=(new Date).getTime();e=true}});this.on("touchmove",function(a){if(a.touches.length>1){e=false}else if(b){var d=a.touches[0].pageX-b.pageX;var f=a.touches[0].pageY-b.pageY;var g=Math.sqrt(d*d+f*f);if(g>c){e=false}}});var f=function g(){e=false};this.on("touchleave",f);this.on("touchcancel",f);this.on("touchend",function(c){b=null;if(e===true){var f=(new Date).getTime()-a;if(f<d){c.preventDefault();this.trigger("tap")}}})};a.prototype.enableTouchActivity=function ca(){if(!this.player()||!this.player().reportUserActivity){return}var a=i.bind(this.player(),this.player().reportUserActivity);var b=void 0;this.on("touchstart",function(){a();this.clearInterval(b);b=this.setInterval(a,250)});var c=function d(c){a();this.clearInterval(b)};this.on("touchmove",a);this.on("touchend",c);this.on("touchcancel",c)};a.prototype.setTimeout=function da(a,b){a=i.bind(this,a);var c=e["default"].setTimeout(a,b);var d=function f(){this.clearTimeout(c)};d.guid="vjs-timeout-"+c;this.on("dispose",d);return c};a.prototype.clearTimeout=function ea(a){e["default"].clearTimeout(a);var b=function c(){};b.guid="vjs-timeout-"+a;this.off("dispose",b);return a};a.prototype.setInterval=function fa(a,b){a=i.bind(this,a);var c=e["default"].setInterval(a,b);var d=function f(){this.clearInterval(c)};d.guid="vjs-interval-"+c;this.on("dispose",d);return c};a.prototype.clearInterval=function ga(a){e["default"].clearInterval(a);var b=function c(){};b.guid="vjs-interval-"+a;this.off("dispose",b);return a};a.registerComponent=function ha(b,c){if(!b){return}b=(0,q["default"])(b);if(!a.components_){a.components_={}}if(b==="Player"&&a.components_[b]){var d=a.components_[b];if(d.players&&Object.keys(d.players).length>0&&Object.keys(d.players).map(function(a){return d.players[a]}).every(Boolean)){throw new Error("Can not register Player component after player has been created")}}a.components_[b]=c;return c};a.getComponent=function ia(b){if(!b){return}b=(0,q["default"])(b);if(a.components_&&a.components_[b]){return a.components_[b]}if(e["default"]&&e["default"].videojs&&e["default"].videojs[b]){o["default"].warn("The "+b+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)");return e["default"].videojs[b]}};a.extend=function ja(b){b=b||{};o["default"].warn("Component.extend({}) has been deprecated, "+" use videojs.extend(Component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){};var d=function f(){c.apply(this,arguments)};d.prototype=Object.create(this.prototype);d.prototype.constructor=d;d.extend=a.extend;for(var e in b){if(b.hasOwnProperty(e)){d.prototype[e]=b[e]}}return d};return a}();w.registerComponent("Component",w);c["default"]=w},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,97:97}],6:[function(a,b,c){"use strict";c.__esModule=true;var d=a(36);var e=j(d);var f=a(5);var g=j(f);var h=a(7);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};k(this,b);d.tracks=c.audioTracks&&c.audioTracks();var e=l(this,a.call(this,c,d));e.el_.setAttribute("aria-label","Audio Menu");return e}b.prototype.buildCSSClass=function c(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)};b.prototype.createItems=function d(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.hideThreshold_=1;var b=this.player_.audioTracks&&this.player_.audioTracks();if(!b){return a}for(var c=0;c<b.length;c++){var d=b[c];a.push(new i["default"](this.player_,{track:d,selectable:true}))}return a};return b}(e["default"]);n.prototype.controlText_="Audio Track";g["default"].registerComponent("AudioTrackButton",n);c["default"]=n},{36:36,5:5,7:7}],7:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.track;var f=c.audioTracks();d.label=e.label||e.language||"Unknown";d.selected=e.enabled;var g=m(this,a.call(this,c,d));g.track=e;if(f){var h=i.bind(g,g.handleTracksChange);f.addEventListener("change",h);g.on("dispose",function(){f.removeEventListener("change",h)})}return g}b.prototype.handleClick=function c(b){var c=this.player_.audioTracks();a.prototype.handleClick.call(this,b);if(!c){return}for(var d=0;d<c.length;d++){var e=c[d];e.enabled=e===this.track}};b.prototype.handleTracksChange=function d(a){this.selected(this.track.enabled)};return b}(e["default"]);g["default"].registerComponent("AudioTrackMenuItem",o);c["default"]=o},{48:48,5:5,83:83}],8:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(12);a(32);a(33);a(35);a(34);a(10);a(18);a(9);a(38);a(40);a(11);a(25);a(27);a(29);a(24);a(6);a(13);a(21);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})};return b}(e["default"]);j.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};e["default"].registerComponent("ControlBar",j);c["default"]=j},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.on(c,"fullscreenchange",e.handleFullscreenChange);return e}b.prototype.buildCSSClass=function c(){return"vjs-fullscreen-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleFullscreenChange=function d(a){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};b.prototype.handleClick=function e(a){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return b}(e["default"]);l.prototype.controlText_="Fullscreen";g["default"].registerComponent("FullscreenToggle",l);c["default"]=l},{2:2,5:5}],10:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=i(d);var f=a(81);var g=h(f);function h(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.updateShowing();e.on(e.player(),"durationchange",e.updateShowing);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateShowing=function d(a){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return b}(e["default"]);e["default"].registerComponent("LiveDisplay",m);c["default"]=m},{5:5,81:81}],11:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=k(d);var f=a(5);var g=k(f);var h=a(81);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"volumechange",e.update);if(c.tech_&&c.tech_.featuresVolumeControl===false){e.addClass("vjs-hidden")}e.on(c,"loadstart",function(){this.update();if(c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return e}b.prototype.buildCSSClass=function c(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){this.player_.muted(this.player_.muted()?false:true)};b.prototype.update=function e(a){var b=this.player_.volume();var c=3;if(this.player_.muted()){c=0}else if(b<.33){c=1}else if(b<.67){c=2}var d=this.player_.muted()?"Unmute":"Mute";if(this.controlText()!==d){this.controlText(d)}for(var e=0;e<4;e++){i.removeElClass(this.el_,"vjs-vol-"+e)}i.addElClass(this.el_,"vjs-vol-"+c)};return b}(e["default"]);o.prototype.controlText_="Mute";g["default"].registerComponent("MuteToggle",o);c["default"]=o},{2:2,5:5,81:81}],12:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){ if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.on(c,"play",e.handlePlay);e.on(c,"pause",e.handlePause);return e}b.prototype.buildCSSClass=function c(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};b.prototype.handlePlay=function e(a){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};b.prototype.handlePause=function f(a){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};return b}(e["default"]);l.prototype.controlText_="Play";g["default"].registerComponent("PlayToggle",l);c["default"]=l},{2:2,5:5}],13:[function(a,b,c){"use strict";c.__esModule=true;var d=a(47);var e=o(d);var f=a(49);var g=o(f);var h=a(14);var i=o(h);var j=a(5);var k=o(j);var l=a(81);var m=n(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.updateVisibility();e.updateLabel();e.on(c,"loadstart",e.updateVisibility);e.on(c,"ratechange",e.updateLabel);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this);this.labelEl_=m.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1});b.appendChild(this.labelEl_);return b};b.prototype.buildCSSClass=function d(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)};b.prototype.createMenu=function e(){var a=new g["default"](this.player());var b=this.playbackRates();if(b){for(var c=b.length-1;c>=0;c--){a.addChild(new i["default"](this.player(),{rate:b[c]+"x"}))}}return a};b.prototype.updateARIAAttributes=function f(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};b.prototype.handleClick=function h(a){var b=this.player().playbackRate();var c=this.playbackRates();var d=c[0];for(var e=0;e<c.length;e++){if(c[e]>b){d=c[e];break}}this.player().playbackRate(d)};b.prototype.playbackRates=function j(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};b.prototype.playbackRateSupported=function k(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};b.prototype.updateVisibility=function l(a){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};b.prototype.updateLabel=function n(a){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return b}(e["default"]);s.prototype.controlText_="Playback Rate";k["default"].registerComponent("PlaybackRateMenuButton",s);c["default"]=s},{14:14,47:47,49:49,5:5,81:81}],14:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=d.rate;var f=parseFloat(e,10);d.label=e;d.selected=f===1;d.selectable=true;var g=j(this,a.call(this,c,d));g.label=e;g.rate=f;g.on(c,"ratechange",g.update);return g}b.prototype.handleClick=function c(b){a.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};b.prototype.update=function d(a){this.selected(this.player().playbackRate()===this.rate)};return b}(e["default"]);l.prototype.contentElType="button";g["default"].registerComponent("PlaybackRateMenuItem",l);c["default"]=l},{48:48,5:5}],15:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=i(d);var f=a(81);var g=h(f);function h(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.partEls_=[];e.on(c,"progress",e.update);return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})};b.prototype.update=function d(a){var b=this.player_.buffered();var c=this.player_.duration();var d=this.player_.bufferedEnd();var e=this.partEls_;var f=function m(a,b){var c=a/b||0;return(c>=1?1:c)*100+"%"};this.el_.style.width=f(d,c);for(var h=0;h<b.length;h++){var i=b.start(h);var j=b.end(h);var k=e[h];if(!k){k=this.el_.appendChild(g.createEl());e[h]=k}k.style.left=f(i,d);k.style.width=f(j-i,d)}for(var l=e.length;l>b.length;l--){this.el_.removeChild(e[l-1])}e.length=b.length};return b}(e["default"]);e["default"].registerComponent("LoadProgressBar",m);c["default"]=m},{5:5,81:81}],16:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=o(d);var f=a(81);var g=n(f);var h=a(83);var i=n(h);var j=a(84);var k=o(j);var l=a(80);var m=o(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.tooltip=g.createEl("div",{className:"vjs-time-tooltip"});e.el().appendChild(e.tooltip);e.addClass("vjs-keep-tooltips-inside")}e.update(0,0);c.on("ready",function(){e.on(c.controlBar.progressControl.el(),"mousemove",i.throttle(i.bind(e,e.handleMouseMove),25))});return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};b.prototype.handleMouseMove=function d(a){var b=this.player_.duration();var c=this.calculateDistance(a)*b;var d=a.pageX-g.findElPosition(this.el().parentNode).left;this.update(c,d)};b.prototype.update=function e(a,b){var c=(0,k["default"])(a,this.player_.duration());this.el().style.left=b+"px";this.el().setAttribute("data-current-time",c);if(this.keepTooltipsInside){var d=this.clampPosition_(b);var e=b-d+1;var f=parseFloat((0,m["default"])(this.tooltip,"width"));var g=f/2;this.tooltip.innerHTML=c;this.tooltip.style.right="-"+(g-e)+"px"}};b.prototype.calculateDistance=function f(a){return g.getPointerPosition(this.el().parentNode,a).x};b.prototype.clampPosition_=function h(a){if(!this.keepTooltipsInside){return a}var b=parseFloat((0,m["default"])(this.player().el(),"width"));var c=parseFloat((0,m["default"])(this.tooltip,"width"));var d=c/2;var e=a;if(a<d){e=Math.ceil(d)}else if(a>b-d){e=Math.floor(b-d)}return e};return b}(e["default"]);e["default"].registerComponent("MouseTimeDisplay",s);c["default"]=s},{5:5,80:80,81:81,83:83,84:84}],17:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.updateDataAttr();e.on(c,"timeupdate",e.updateDataAttr);c.ready(g.bind(e,e.updateDataAttr));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.addClass("vjs-keep-tooltips-inside")}return e}b.prototype.createEl=function c(){return a.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>"})};b.prototype.updateDataAttr=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,i["default"])(b,this.player_.duration()))};return b}(e["default"]);e["default"].registerComponent("PlayProgressBar",o);c["default"]=o},{5:5,83:83,84:84}],18:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(19);a(16);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};return b}(e["default"]);j.prototype.options_={children:["seekBar"]};e["default"].registerComponent("ProgressControl",j);c["default"]=j},{16:16,19:19,5:5}],19:[function(a,b,c){"use strict";c.__esModule=true;var d=a(57);var e=o(d);var f=a(5);var g=o(f);var h=a(83);var i=n(h);var j=a(84);var k=o(j);var l=a(80);var m=o(l);a(15);a(17);a(20);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateProgress);e.on(c,"ended",e.updateProgress);c.ready(i.bind(e,e.updateProgress));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.tooltipProgressBar=e.addChild("TooltipProgressBar")}return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})};b.prototype.updateProgress=function d(a){this.updateAriaAttributes(this.el_);if(this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var b=parseFloat((0,m["default"])(this.player().el(),"width"));var c=parseFloat((0,m["default"])(this.tooltipProgressBar.tooltip,"width"));var d=this.tooltipProgressBar.el().style;d.maxWidth=Math.floor(b-c/2)+"px";d.minWidth=Math.ceil(c/2)+"px";d.right="-"+c/2+"px"}};b.prototype.updateAriaAttributes=function e(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));a.setAttribute("aria-valuetext",(0,k["default"])(b,this.player_.duration()))};b.prototype.getPercent=function f(){var a=this.player_.currentTime()/this.player_.duration();return a>=1?1:a};b.prototype.handleMouseDown=function g(b){this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();a.prototype.handleMouseDown.call(this,b)};b.prototype.handleMouseMove=function h(a){var b=this.calculateDistance(a)*this.player_.duration();if(b===this.player_.duration()){b=b-.1}this.player_.currentTime(b)};b.prototype.handleMouseUp=function j(b){a.prototype.handleMouseUp.call(this,b);this.player_.scrubbing(false);if(this.videoWasPlaying){this.player_.play()}};b.prototype.stepForward=function l(){this.player_.currentTime(this.player_.currentTime()+5)};b.prototype.stepBack=function n(){this.player_.currentTime(this.player_.currentTime()-5)};return b}(e["default"]);s.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};s.prototype.playerEvent="timeupdate";g["default"].registerComponent("SeekBar",s);c["default"]=s},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.updateDataAttr();e.on(c,"timeupdate",e.updateDataAttr);c.ready(g.bind(e,e.updateDataAttr));return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});this.tooltip=b.querySelector(".vjs-time-tooltip");return b};b.prototype.updateDataAttr=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var c=(0,i["default"])(b,this.player_.duration());this.el_.setAttribute("data-current-time",c);this.tooltip.innerHTML=c};return b}(e["default"]);e["default"].registerComponent("TooltipProgressBar",o);c["default"]=o},{5:5,83:83,84:84}],21:[function(a,b,c){"use strict";c.__esModule=true;var d=a(22);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(){i(this,b);return j(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)};b.prototype.createEl=function d(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});b.innerHTML=" ";return b};return b}(e["default"]);g["default"].registerComponent("CustomControlSpacer",l);c["default"]=l},{22:22,5:5}],22:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)};b.prototype.createEl=function d(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return b}(e["default"]);e["default"].registerComponent("Spacer",j);c["default"]=j},{5:5}],23:[function(a,b,c){"use strict";c.__esModule=true;var d=a(31);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);d.track={player:c,kind:d.kind,label:d.kind+" settings",selectable:false,"default":false,mode:"disabled"};d.selectable=false;var e=j(this,a.call(this,c,d));e.addClass("vjs-texttrack-settings");e.controlText(", opens "+d.kind+" settings dialog");return e}b.prototype.handleClick=function c(a){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()};return b}(e["default"]);g["default"].registerComponent("CaptionSettingsMenuItem",l);c["default"]=l},{31:31,5:5}],24:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=j(d);var f=a(5);var g=j(f);var h=a(23);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d,e){k(this,b);var f=l(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Captions Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)};b.prototype.createItems=function d(){var b=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)){b.push(new i["default"](this.player_,{kind:this.kind_}));this.hideThreshold_+=1}return a.prototype.createItems.call(this,b)};return b}(e["default"]);n.prototype.kind_="captions";n.prototype.controlText_="Captions";g["default"].registerComponent("CaptionsButton",n);c["default"]=n},{23:23,30:30,5:5}],25:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=l(d);var f=a(5);var g=l(f);var h=a(26);var i=l(h);var j=a(91);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(c,d,e){m(this,b);var f=n(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Chapters Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)};b.prototype.update=function d(b){if(!this.track_||b&&(b.type==="addtrack"||b.type==="removetrack")){this.setTrack(this.findChaptersTrack())}a.prototype.update.call(this)};b.prototype.setTrack=function e(a){if(this.track_===a){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(b){b.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=a;if(this.track_){this.track_.mode="hidden";var c=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(c){c.addEventListener("load",this.updateHandler_)}}};b.prototype.findChaptersTrack=function f(){var a=this.player_.textTracks()||[];for(var b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_){return c}}};b.prototype.getMenuCaption=function g(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize((0,k["default"])(this.kind_))};b.prototype.createMenu=function h(){this.options_.title=this.getMenuCaption();return a.prototype.createMenu.call(this)};b.prototype.createItems=function j(){var a=[];if(!this.track_){return a}var b=this.track_.cues;if(!b){return a}for(var c=0,d=b.length;c<d;c++){var e=b[c];var f=new i["default"](this.player_,{track:this.track_,cue:e});a.push(f)}return a};return b}(e["default"]);p.prototype.kind_="chapters";p.prototype.controlText_="Chapters";g["default"].registerComponent("ChaptersButton",p);c["default"]=p},{26:26,30:30,5:5,91:91}],26:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.track;var f=d.cue;var g=c.currentTime();d.selectable=true;d.label=f.text;d.selected=f.startTime<=g&&g<f.endTime;var h=m(this,a.call(this,c,d));h.track=e;h.cue=f;e.addEventListener("cuechange",i.bind(h,h.update));return h}b.prototype.handleClick=function c(b){a.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};b.prototype.update=function d(a){var b=this.cue;var c=this.player_.currentTime();this.selected(b.startTime<=c&&c<b.endTime)};return b}(e["default"]);g["default"].registerComponent("ChaptersTrackMenuItem",o);c["default"]=o},{48:48,5:5,83:83}],27:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d,e){l(this,b);var f=m(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Descriptions Menu");var g=c.textTracks();if(g){var h=i.bind(f,f.handleTracksChange);g.addEventListener("change",h);f.on("dispose",function(){g.removeEventListener("change",h)})}return f}b.prototype.handleTracksChange=function c(a){var b=this.player().textTracks();var c=false;for(var d=0,e=b.length;d<e;d++){var f=b[d];if(f.kind!==this.kind_&&f.mode==="showing"){c=true;break}}if(c){this.disable()}else{this.enable()}};b.prototype.buildCSSClass=function d(){return"vjs-descriptions-button "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);o.prototype.kind_="descriptions";o.prototype.controlText_="Descriptions";g["default"].registerComponent("DescriptionsButton",o);c["default"]=o},{30:30,5:5,83:83}],28:[function(a,b,c){"use strict";c.__esModule=true;var d=a(31);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);d.track={player:c,kind:d.kind,label:d.kind+" off","default":false,mode:"disabled"};d.selectable=true;var e=j(this,a.call(this,c,d));e.selected(true);return e}b.prototype.handleTracksChange=function c(a){var b=this.player().textTracks();var c=true;for(var d=0,e=b.length;d<e;d++){var f=b[d];if(f.kind===this.track.kind&&f.mode==="showing"){c=false;break}}this.selected(c)};return b}(e["default"]);g["default"].registerComponent("OffTextTrackMenuItem",l);c["default"]=l},{31:31,5:5}],29:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d,e){i(this,b);var f=j(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Subtitles Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-subtitles-button "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);l.prototype.kind_="subtitles";l.prototype.controlText_="Subtitles";g["default"].registerComponent("SubtitlesButton",l);c["default"]=l},{30:30,5:5}],30:[function(a,b,c){"use strict";c.__esModule=true;var d=a(36);var e=l(d);var f=a(5);var g=l(f);var h=a(31);var i=l(h);var j=a(28);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a; }function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};m(this,b);d.tracks=c.textTracks();return n(this,a.call(this,c,d))}b.prototype.createItems=function c(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];a.push(new k["default"](this.player_,{kind:this.kind_}));this.hideThreshold_+=1;var b=this.player_.textTracks();if(!b){return a}for(var c=0;c<b.length;c++){var d=b[c];if(d.kind===this.kind_){a.push(new i["default"](this.player_,{track:d,selectable:true}))}}return a};return b}(e["default"]);g["default"].registerComponent("TextTrackButton",p);c["default"]=p},{28:28,31:31,36:36,5:5}],31:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a(48);var f=p(e);var g=a(5);var h=p(g);var i=a(83);var j=o(i);var k=a(97);var l=p(k);var m=a(96);var n=p(m);function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a){return a&&a.__esModule?a:{"default":a}}function q(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function r(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function s(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var t=function(a){s(b,a);function b(c,e){q(this,b);var f=e.track;var g=c.textTracks();e.label=f.label||f.language||"Unknown";e.selected=f["default"]||f.mode==="showing";var h=r(this,a.call(this,c,e));h.track=f;if(g){var i=j.bind(h,h.handleTracksChange);c.on(["loadstart","texttrackchange"],i);g.addEventListener("change",i);h.on("dispose",function(){g.removeEventListener("change",i)})}if(g&&g.onchange===undefined){var k=void 0;h.on(["tap","click"],function(){if(d(l["default"].Event)!=="object"){try{k=new l["default"].Event("change")}catch(a){}}if(!k){k=n["default"].createEvent("Event");k.initEvent("change",true,true)}g.dispatchEvent(k)})}return h}b.prototype.handleClick=function c(b){var c=this.track.kind;var d=this.player_.textTracks();a.prototype.handleClick.call(this,b);if(!d){return}for(var e=0;e<d.length;e++){var f=d[e];if(f.kind!==c){continue}if(f===this.track){if(f.mode!=="showing"){f.mode="showing"}}else if(f.mode!=="disabled"){f.mode="disabled"}}};b.prototype.handleTracksChange=function e(a){this.selected(this.track.mode==="showing")};return b}(f["default"]);h["default"].registerComponent("TextTrackMenuItem",t);c["default"]=t},{48:48,5:5,83:83,96:96,97:97}],32:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>'+"0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var c=this.localize("Current Time");var d=(0,i["default"])(b,this.player_.duration());if(d!==this.formattedTime_){this.formattedTime_=d;this.contentEl_.innerHTML='<span class="vjs-control-text">'+c+"</span> "+d}};return b}(e["default"]);e["default"].registerComponent("CurrentTimeDisplay",o);c["default"]=o},{5:5,81:81,84:84}],33:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"durationchange",e.updateContent);e.on(c,"timeupdate",e.updateContent);e.on(c,"loadedmetadata",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){var b=this.player_.duration();if(b&&this.duration_!==b){this.duration_=b;var c=this.localize("Duration Time");var d=(0,i["default"])(b);this.contentEl_.innerHTML='<span class="vjs-control-text">'+c+"</span> "+d}};return b}(e["default"]);e["default"].registerComponent("DurationDisplay",o);c["default"]=o},{5:5,81:81,84:84}],34:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateContent);e.on(c,"durationchange",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){if(this.player_.duration()){var b=this.localize("Remaining Time");var c=(0,i["default"])(this.player_.remainingTime());if(c!==this.formattedTime_){this.formattedTime_=c;this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> -"+c}}};return b}(e["default"]);e["default"].registerComponent("RemainingTimeDisplay",o);c["default"]=o},{5:5,81:81,84:84}],35:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})};return b}(e["default"]);e["default"].registerComponent("TimeDivider",j);c["default"]=j},{5:5}],36:[function(a,b,c){"use strict";c.__esModule=true;var d=a(47);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.tracks;var f=m(this,a.call(this,c,d));if(f.items.length<=1){f.hide()}if(!e){return m(f)}var g=i.bind(f,f.update);e.addEventListener("removetrack",g);e.addEventListener("addtrack",g);f.player_.on("dispose",function(){e.removeEventListener("removetrack",g);e.removeEventListener("addtrack",g)});return f}return b}(e["default"]);g["default"].registerComponent("TrackButton",o);c["default"]=o},{47:47,5:5,83:83}],37:[function(a,b,c){"use strict";c.__esModule=true;var d=a(57);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);a(39);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"volumechange",e.updateARIAAttributes);c.ready(i.bind(e,e.updateARIAAttributes));return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})};b.prototype.handleMouseMove=function d(a){this.checkMuted();this.player_.volume(this.calculateDistance(a))};b.prototype.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};b.prototype.getPercent=function f(){if(this.player_.muted()){return 0}return this.player_.volume()};b.prototype.stepForward=function g(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};b.prototype.stepBack=function h(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};b.prototype.updateARIAAttributes=function j(a){var b=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",b);this.el_.setAttribute("aria-valuetext",b+"%")};return b}(e["default"]);o.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};o.prototype.playerEvent="volumechange";g["default"].registerComponent("VolumeBar",o);c["default"]=o},{39:39,5:5,57:57,83:83}],38:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(37);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(c,d){g(this,b);var e=h(this,a.call(this,c,d));if(c.tech_&&c.tech_.featuresVolumeControl===false){e.addClass("vjs-hidden")}e.on(c,"loadstart",function(){if(c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})};return b}(e["default"]);j.prototype.options_={children:["volumeBar"]};e["default"].registerComponent("VolumeControl",j);c["default"]=j},{37:37,5:5}],39:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})};return b}(e["default"]);e["default"].registerComponent("VolumeLevel",j);c["default"]=j},{5:5}],40:[function(a,b,c){"use strict";c.__esModule=true;var d=a(83);var e=q(d);var f=a(5);var g=p(f);var h=a(54);var i=p(h);var j=a(53);var k=p(j);var l=a(11);var m=p(l);var n=a(37);var o=p(n);function p(a){return a&&a.__esModule?a:{"default":a}}function q(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function r(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function s(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function t(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var u=function(a){t(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,b);if(d.inline===undefined){d.inline=true}if(d.vertical===undefined){if(d.inline){d.vertical=false}else{d.vertical=true}}d.volumeBar=d.volumeBar||{};d.volumeBar.vertical=!!d.vertical;var e=s(this,a.call(this,c,d));e.on(c,"volumechange",e.volumeUpdate);e.on(c,"loadstart",e.volumeUpdate);function f(){if(c.tech_&&c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}}f.call(e);e.on(c,"loadstart",f);e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")});return e}b.prototype.buildCSSClass=function c(){var b="";if(this.options_.vertical){b="vjs-volume-menu-button-vertical"}else{b="vjs-volume-menu-button-horizontal"}return"vjs-volume-menu-button "+a.prototype.buildCSSClass.call(this)+" "+b};b.prototype.createPopup=function d(){var a=new i["default"](this.player_,{contentElType:"div"});var b=new o["default"](this.player_,this.options_.volumeBar);a.addChild(b);this.menuContent=a;this.volumeBar=b;this.attachVolumeBarEvents();return a};b.prototype.handleClick=function f(b){m["default"].prototype.handleClick.call(this);a.prototype.handleClick.call(this)};b.prototype.attachVolumeBarEvents=function g(){this.menuContent.on(["mousedown","touchdown"],e.bind(this,this.handleMouseDown))};b.prototype.handleMouseDown=function h(a){this.on(["mousemove","touchmove"],e.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)};b.prototype.handleMouseUp=function j(a){this.off(["mousemove","touchmove"],e.bind(this.volumeBar,this.volumeBar.handleMouseMove))};return b}(k["default"]);u.prototype.volumeUpdate=m["default"].prototype.update;u.prototype.controlText_="Mute";g["default"].registerComponent("VolumeMenuButton",u);c["default"]=u},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(50);var g=j(f);var h=a(87);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d){k(this,b);var e=l(this,a.call(this,c,d));e.on(c,"error",e.open);return e}b.prototype.buildCSSClass=function c(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)};b.prototype.content=function d(){var a=this.player().error();return a?this.localize(a.message):""};return b}(g["default"]);n.prototype.options_=(0,i["default"])(g["default"].prototype.options_,{pauseOnOpen:false,fillAlways:true,temporary:false,uncloseable:true});e["default"].registerComponent("ErrorDisplay",n);c["default"]=n},{5:5,50:50,87:87}],42:[function(a,b,c){"use strict";c.__esModule=true;var d=a(82);var e=f(d);function f(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var g=function h(){};g.prototype.allowedEvents_={};g.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};e.on(this,a,b);this.addEventListener=c};g.prototype.addEventListener=g.prototype.on;g.prototype.off=function(a,b){e.off(this,a,b)};g.prototype.removeEventListener=g.prototype.off;g.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};e.one(this,a,b);this.addEventListener=c};g.prototype.trigger=function(a){var b=a.type||a;if(typeof a==="string"){a={type:b}}a=e.fixEvent(a);if(this.allowedEvents_[b]&&this["on"+b]){this["on"+b](a)}e.trigger(this,a)};g.prototype.dispatchEvent=g.prototype.trigger;c["default"]=g},{82:82}],43:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a(86);var f=h(e);var g=a(88);function h(a){return a&&a.__esModule?a:{"default":a}}var i=function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof b==="undefined"?"undefined":d(b)))}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b){a.super_=b}};var j=function l(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=function h(){a.apply(this,arguments)};var d={};if((0,g.isObject)(b)){if(typeof b.init==="function"){f["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead.");b.constructor=b.init}if(b.constructor!==Object.prototype.constructor){c=b.constructor}d=b}else if(typeof b==="function"){c=b}i(c,a);for(var e in d){if(d.hasOwnProperty(e)){c.prototype[e]=d[e]}}return c};c["default"]=j},{86:86,88:88}],44:[function(a,b,c){"use strict";c.__esModule=true;var d=a(96);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g={};var h=[["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"]];var i=h[0];var j=void 0;for(var k=0;k<h.length;k++){if(h[k][1]in e["default"]){j=h[k];break}}if(j){for(var l=0;l<j.length;l++){g[i[l]]=j[l]}}c["default"]=g},{96:96}],45:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})};return b}(e["default"]);e["default"].registerComponent("LoadingSpinner",j);c["default"]=j},{5:5}],46:[function(a,b,c){"use strict";c.__esModule=true;var d=a(88);function e(a){if(a instanceof e){return a}if(typeof a==="number"){this.code=a}else if(typeof a==="string"){this.message=a}else if((0,d.isObject)(a)){if(typeof a.code==="number"){this.code=a.code}(0,d.assign)(this,a)}if(!this.message){this.message=e.defaultMessages[this.code]||""}}e.prototype.code=0;e.prototype.message="";e.prototype.status=null;e.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];e.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 f=0;f<e.errorTypes.length;f++){e[e.errorTypes[f]]=f;e.prototype[e.errorTypes[f]]=f}c["default"]=e},{88:88}],47:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=q(d);var f=a(5);var g=q(f);var h=a(49);var i=q(h);var j=a(81);var k=p(j);var l=a(83);var m=p(l);var n=a(91);var o=q(n);function p(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function q(a){return a&&a.__esModule?a:{"default":a}}function r(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function s(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function t(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var u=function(a){t(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,b);var e=s(this,a.call(this,c,d));e.update();e.enabled_=true;e.el_.setAttribute("aria-haspopup","true");e.el_.setAttribute("role","menuitem");e.on("keydown",e.handleSubmenuKeyPress);return e}b.prototype.update=function c(){var a=this.createMenu();if(this.menu){this.removeChild(this.menu)}this.menu=a;this.addChild(a);this.buttonPressed_=false;this.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length<=this.hideThreshold_){this.hide()}else{this.show()}};b.prototype.createMenu=function d(){var a=new i["default"](this.player_);this.hideThreshold_=0;if(this.options_.title){var b=k.createEl("li",{className:"vjs-menu-title",innerHTML:(0,o["default"])(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;a.children_.unshift(b);k.insertElFirst(b,a.contentEl())}this.items=this.createItems();if(this.items){for(var c=0;c<this.items.length;c++){a.addItem(this.items[c])}}return a};b.prototype.createItems=function e(){};b.prototype.createEl=function f(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};b.prototype.buildCSSClass=function g(){var b="vjs-menu-button";if(this.options_.inline===true){b+="-inline"}else{b+="-popup"}return"vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function h(a){this.one(this.menu.contentEl(),"mouseleave",m.bind(this,function(a){this.unpressButton();this.el_.blur()}));if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};b.prototype.handleKeyPress=function j(b){if(b.which===27||b.which===9){if(this.buttonPressed_){this.unpressButton()}if(b.which!==9){b.preventDefault()}}else if(b.which===38||b.which===40){if(!this.buttonPressed_){this.pressButton();b.preventDefault()}}else{a.prototype.handleKeyPress.call(this,b)}};b.prototype.handleSubmenuKeyPress=function l(a){if(a.which===27||a.which===9){if(this.buttonPressed_){this.unpressButton()}if(a.which!==9){a.preventDefault()}}};b.prototype.pressButton=function n(){if(this.enabled_){this.buttonPressed_=true;this.menu.lockShowing();this.el_.setAttribute("aria-expanded","true");this.menu.focus()}};b.prototype.unpressButton=function p(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.el_.focus()}};b.prototype.disable=function q(){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.enabled_=false;return a.prototype.disable.call(this)};b.prototype.enable=function u(){this.enabled_=true;return a.prototype.enable.call(this)};return b}(e["default"]);g["default"].registerComponent("MenuButton",u);c["default"]=u},{3:3,49:49,5:5,81:81,83:83,91:91}],48:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=i(d);var f=a(5);var g=i(f);var h=a(88);function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.selectable=d.selectable;e.selected(d.selected);if(e.selectable){e.el_.setAttribute("role","menuitemcheckbox")}else{e.el_.setAttribute("role","menuitem")}return e}b.prototype.createEl=function c(b,d,e){this.nonIconControl=true;return a.prototype.createEl.call(this,"li",(0,h.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},d),e)};b.prototype.handleClick=function d(a){this.selected(true)};b.prototype.selected=function e(a){if(this.selectable){if(a){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected")}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText(" ")}}};return b}(e["default"]);g["default"].registerComponent("MenuItem",m);c["default"]=m},{3:3,5:5,88:88}],49:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=m(d);var f=a(81);var g=l(f);var h=a(83);var i=l(h);var j=a(82);var k=l(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b; }var q=function(a){p(b,a);function b(c,d){n(this,b);var e=o(this,a.call(this,c,d));e.focusedChild_=-1;e.on("keydown",e.handleKeyPress);return e}b.prototype.addItem=function c(a){this.addChild(a);a.on("click",i.bind(this,function(a){this.unlockShowing()}))};b.prototype.createEl=function d(){var b=this.options_.contentElType||"ul";this.contentEl_=g.createEl(b,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});c.setAttribute("role","presentation");c.appendChild(this.contentEl_);k.on(c,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return c};b.prototype.handleKeyPress=function e(a){if(a.which===37||a.which===40){a.preventDefault();this.stepForward()}else if(a.which===38||a.which===39){a.preventDefault();this.stepBack()}};b.prototype.stepForward=function f(){var a=0;if(this.focusedChild_!==undefined){a=this.focusedChild_+1}this.focus(a)};b.prototype.stepBack=function h(){var a=0;if(this.focusedChild_!==undefined){a=this.focusedChild_-1}this.focus(a)};b.prototype.focus=function j(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var b=this.children().slice();var c=b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className);if(c){b.shift()}if(b.length>0){if(a<0){a=0}else if(a>=b.length){a=b.length-1}this.focusedChild_=a;b[a].el_.focus()}};return b}(e["default"]);e["default"].registerComponent("Menu",q);c["default"]=q},{5:5,81:81,82:82,83:83}],50:[function(a,b,c){"use strict";c.__esModule=true;var d=a(81);var e=k(d);var f=a(83);var g=k(f);var h=a(5);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o="vjs-modal-dialog";var p=27;var q=function(a){n(b,a);function b(c,d){l(this,b);var f=m(this,a.call(this,c,d));f.opened_=f.hasBeenOpened_=f.hasBeenFilled_=false;f.closeable(!f.options_.uncloseable);f.content(f.options_.content);f.contentEl_=e.createEl("div",{className:o+"-content"},{role:"document"});f.descEl_=e.createEl("p",{className:o+"-description vjs-offscreen",id:f.el().getAttribute("aria-describedby")});e.textContent(f.descEl_,f.description());f.el_.appendChild(f.descEl_);f.el_.appendChild(f.contentEl_);return f}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};b.prototype.buildCSSClass=function d(){return o+" vjs-hidden "+a.prototype.buildCSSClass.call(this)};b.prototype.handleKeyPress=function f(a){if(a.which===p&&this.closeable()){this.close()}};b.prototype.label=function h(){return this.options_.label||this.localize("Modal Window")};b.prototype.description=function i(){var a=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return a};b.prototype.open=function j(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!a.paused();if(this.options_.pauseOnOpen&&this.wasPlaying_){a.pause()}if(this.closeable()){this.on(this.el_.ownerDocument,"keydown",g.bind(this,this.handleKeyPress))}a.controls(false);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}return this};b.prototype.opened=function k(a){if(typeof a==="boolean"){this[a?"open":"close"]()}return this.opened_};b.prototype.close=function q(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_&&this.options_.pauseOnOpen){a.play()}if(this.closeable()){this.off(this.el_.ownerDocument,"keydown",g.bind(this,this.handleKeyPress))}a.controls(true);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");if(this.options_.temporary){this.dispose()}}return this};b.prototype.closeable=function r(a){if(typeof a==="boolean"){var r=this.closeable_=!!a;var b=this.getChild("closeButton");if(r&&!b){var c=this.contentEl_;this.contentEl_=this.el_;b=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=c;this.on(b,"close",this.close)}if(!r&&b){this.off(b,"close",this.close);this.removeChild(b);b.dispose()}}return this.closeable_};b.prototype.fill=function s(){return this.fillWith(this.content())};b.prototype.fillWith=function t(a){var b=this.contentEl();var c=b.parentNode;var d=b.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;c.removeChild(b);this.empty();e.insertContent(b,a);this.trigger("modalfill");if(d){c.insertBefore(b,d)}else{c.appendChild(b)}return this};b.prototype.empty=function u(){this.trigger("beforemodalempty");e.emptyEl(this.contentEl());this.trigger("modalempty");return this};b.prototype.content=function v(a){if(typeof a!=="undefined"){this.content_=a}return this.content_};return b}(i["default"]);q.prototype.options_={pauseOnOpen:true,temporary:true};i["default"].registerComponent("ModalDialog",q);c["default"]=q},{5:5,81:81,83:83}],51:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=V(d);var f=a(96);var g=V(f);var h=a(97);var i=V(h);var j=a(82);var k=U(j);var l=a(81);var m=U(l);var n=a(83);var o=U(n);var p=a(85);var q=U(p);var r=a(78);var s=U(r);var t=a(86);var u=V(t);var v=a(91);var w=V(v);var x=a(90);var y=a(79);var z=a(89);var A=U(z);var B=a(44);var C=V(B);var D=a(46);var E=V(D);var F=a(100);var G=V(F);var H=a(88);var I=a(87);var J=V(I);var K=a(69);var L=V(K);var M=a(50);var N=V(M);var O=a(62);var P=V(O);var Q=a(63);var R=V(Q);var S=a(76);var T=V(S);a(61);a(59);a(55);a(68);a(45);a(1);a(4);a(8);a(41);a(71);a(60);function U(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function V(a){return a&&a.__esModule?a:{"default":a}}function W(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function X(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function Y(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var Z=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"];var $=function(a){Y(b,a);function b(c,d,e){W(this,b);c.id=c.id||"vjs_video_"+q.newGUID();d=(0,H.assign)(b.getTagSettings(c),d);d.initChildren=false;d.createEl=false;d.reportTouchActivity=false;if(!d.language){if(typeof c.closest==="function"){var f=c.closest("[lang]");if(f){d.language=f.getAttribute("lang")}}else{var g=c;while(g&&g.nodeType===1){if(m.getElAttributes(g).hasOwnProperty("lang")){d.language=g.getAttribute("lang");break}g=g.parentNode}}}var h=X(this,a.call(this,null,d,e));if(!h.options_||!h.options_.techOrder||!h.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}h.tag=c;h.tagAttributes=c&&m.getElAttributes(c);h.language(h.options_.language);if(d.languages){var i={};Object.getOwnPropertyNames(d.languages).forEach(function(a){i[a.toLowerCase()]=d.languages[a]});h.languages_=i}else{h.languages_=b.prototype.options_.languages}h.cache_={};h.poster_=d.poster||"";h.controls_=!!d.controls;c.controls=false;h.scrubbing_=false;h.el_=h.createEl();var j=(0,J["default"])(h.options_);if(d.plugins){var k=d.plugins;Object.getOwnPropertyNames(k).forEach(function(a){if(typeof this[a]==="function"){this[a](k[a])}else{u["default"].error("Unable to find plugin:",a)}},h)}h.options_.playerOptions=j;h.initChildren();h.isAudio(c.nodeName.toLowerCase()==="audio");if(h.controls()){h.addClass("vjs-controls-enabled")}else{h.addClass("vjs-controls-disabled")}h.el_.setAttribute("role","region");if(h.isAudio()){h.el_.setAttribute("aria-label","audio player")}else{h.el_.setAttribute("aria-label","video player")}if(h.isAudio()){h.addClass("vjs-audio")}if(h.flexNotSupported_()){h.addClass("vjs-no-flex")}if(!s.IS_IOS){h.addClass("vjs-workinghover")}b.players[h.id_]=h;var l="5.20.4".split(".")[0];h.addClass("vjs-v"+l);h.userActive(true);h.reportUserActivity();h.listenForUserActivity_();h.on("fullscreenchange",h.handleFullscreenChange_);h.on("stageclick",h.handleStageClick_);return h}b.prototype.dispose=function c(){this.trigger("dispose");this.off("dispose");if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_)}b.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose()}a.prototype.dispose.call(this)};b.prototype.createEl=function d(){var b=this.tag;var c=void 0;var d=this.playerElIngest_=b.parentNode&&b.parentNode.hasAttribute&&b.parentNode.hasAttribute("data-vjs-player");if(d){c=this.el_=b.parentNode}else{c=this.el_=a.prototype.createEl.call(this,"div")}b.setAttribute("tabindex","-1");b.removeAttribute("width");b.removeAttribute("height");var e=m.getElAttributes(b);Object.getOwnPropertyNames(e).forEach(function(a){if(a==="class"){c.className+=" "+e[a]}else{c.setAttribute(a,e[a])}});b.playerId=b.id;b.id+="_html5_api";b.className="vjs-tech";b.player=c.player=this;this.addClass("vjs-paused");if(i["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=A.createStyleElement("vjs-styles-dimensions");var f=m.$(".vjs-styles-defaults");var g=m.$("head");g.insertBefore(this.styleEl_,f?f.nextSibling:g.firstChild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);var h=b.getElementsByTagName("a");for(var j=0;j<h.length;j++){var k=h.item(j);m.addElClass(k,"vjs-hidden");k.setAttribute("hidden","hidden")}b.initNetworkState_=b.networkState;if(b.parentNode&&!d){b.parentNode.insertBefore(c,b)}m.insertElFirst(b,c);this.children_.unshift(b);this.el_=c;return c};b.prototype.width=function f(a){return this.dimension("width",a)};b.prototype.height=function h(a){return this.dimension("height",a)};b.prototype.dimension=function j(a,b){var c=a+"_";if(b===undefined){return this[c]||0}if(b===""){this[c]=undefined}else{var d=parseFloat(b);if(isNaN(d)){u["default"].error('Improper value "'+b+'" supplied for for '+a);return this}this[c]=d}this.updateStyleEl_();return this};b.prototype.fluid=function l(a){if(a===undefined){return!!this.fluid_}this.fluid_=!!a;if(a){this.addClass("vjs-fluid")}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};b.prototype.aspectRatio=function n(a){if(a===undefined){return this.aspectRatio_}if(!/^\d+\:\d+$/.test(a)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=a;this.fluid(true);this.updateStyleEl_()};b.prototype.updateStyleEl_=function p(){if(i["default"].VIDEOJS_NO_DYNAMIC_STYLE===true){var a=typeof this.width_==="number"?this.width_:this.options_.width;var b=typeof this.height_==="number"?this.height_:this.options_.height;var c=this.tech_&&this.tech_.el();if(c){if(a>=0){c.width=a}if(b>=0){c.height=b}}return}var d=void 0;var e=void 0;var f=void 0;var g=void 0;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){f=this.aspectRatio_}else if(this.videoWidth()>0){f=this.videoWidth()+":"+this.videoHeight()}else{f="16:9"}var h=f.split(":");var j=h[1]/h[0];if(this.width_!==undefined){d=this.width_}else if(this.height_!==undefined){d=this.height_/j}else{d=this.videoWidth()||300}if(this.height_!==undefined){e=this.height_}else{e=d*j}if(/^[^a-zA-Z]/.test(this.id())){g="dimensions-"+this.id()}else{g=this.id()+"-dimensions"}this.addClass(g);A.setTextContent(this.styleEl_,"\n ."+g+" {\n width: "+d+"px;\n height: "+e+"px;\n }\n\n ."+g+".vjs-fluid {\n padding-top: "+j*100+"%;\n }\n ")};b.prototype.loadTech_=function r(a,b){var c=this;if(this.tech_){this.unloadTech_()}if(a!=="Html5"&&this.tag){P["default"].getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=a;this.isReady_=false;var d=(0,H.assign)({source:b,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,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_||false,"vtt.js":this.options_["vtt.js"]},this.options_[a.toLowerCase()]);if(this.tag){d.tag=this.tag}if(b){this.currentType_=b.type;if(b.src===this.cache_.src&&this.cache_.currentTime>0){d.startTime=this.cache_.currentTime}this.cache_.sources=null;this.cache_.source=b;this.cache_.src=b.src}var f=P["default"].getTech(a);if(!f){f=e["default"].getComponent(a)}this.tech_=new f(d);this.tech_.ready(o.bind(this,this.handleTechReady_),true);L["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);Z.forEach(function(a){c.on(c.tech_,a,c["handleTech"+(0,w["default"])(a)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);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.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(a!=="Html5"||!this.tag)){m.insertElFirst(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};b.prototype.unloadTech_=function t(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=L["default"].textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false};b.prototype.tech=function v(a){if(a&&a.IWillNotUseThisInPlugins){return this.tech_}var b="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";i["default"].alert(b);throw new Error(b)};b.prototype.addTechControlsListeners_=function z(){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_)};b.prototype.removeTechControlsListeners_=function B(){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_)};b.prototype.handleTechReady_=function D(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_();if((this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){(0,u["default"])("deleting tag.poster throws in some browsers",a)}this.play()}};b.prototype.handleTechLoadStart_=function F(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}};b.prototype.hasStarted=function I(a){if(a!==undefined){if(this.hasStarted_!==a){this.hasStarted_=a;if(a){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}}return this}return!!this.hasStarted_};b.prototype.handleTechPlay_=function K(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};b.prototype.handleTechWaiting_=function M(){var a=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})};b.prototype.handleTechCanPlay_=function O(){this.removeClass("vjs-waiting");this.trigger("canplay")};b.prototype.handleTechCanPlayThrough_=function Q(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};b.prototype.handleTechPlaying_=function S(){this.removeClass("vjs-waiting");this.trigger("playing")};b.prototype.handleTechSeeking_=function U(){this.addClass("vjs-seeking");this.trigger("seeking")};b.prototype.handleTechSeeked_=function V(){this.removeClass("vjs-seeking");this.trigger("seeked")};b.prototype.handleTechFirstPlay_=function $(){if(this.options_.starttime){u["default"].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")};b.prototype.handleTechPause_=function _(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};b.prototype.handleTechEnded_=function aa(){this.addClass("vjs-ended");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};b.prototype.handleTechDurationChange_=function ba(){this.duration(this.techGet_("duration"))};b.prototype.handleTechClick_=function ca(a){if(a.button!==0){return}if(this.controls()){if(this.paused()){this.play()}else{this.pause()}}};b.prototype.handleTechTap_=function da(){this.userActive(!this.userActive())};b.prototype.handleTechTouchStart_=function ea(){this.userWasActive=this.userActive()};b.prototype.handleTechTouchMove_=function fa(){if(this.userWasActive){this.reportUserActivity()}};b.prototype.handleTechTouchEnd_=function ga(a){a.preventDefault()};b.prototype.handleFullscreenChange_=function ha(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};b.prototype.handleStageClick_=function ia(){this.reportUserActivity()};b.prototype.handleTechFullscreenChange_=function ja(a,b){if(b){this.isFullscreen(b.isFullscreen)}this.trigger("fullscreenchange")};b.prototype.handleTechError_=function ka(){var a=this.tech_.error();this.error(a)};b.prototype.handleTechTextData_=function la(){var a=null;if(arguments.length>1){a=arguments[1]}this.trigger("textdata",a)};b.prototype.getCache=function ma(){return this.cache_};b.prototype.techCall_=function na(a,b){if(this.tech_&&!this.tech_.isReady_){this.tech_.ready(function(){this[a](b)},true)}else{try{if(this.tech_){this.tech_[a](b)}}catch(c){(0,u["default"])(c);throw c}}};b.prototype.techGet_=function oa(a){if(this.tech_&&this.tech_.isReady_){try{return this.tech_[a]()}catch(b){if(this.tech_[a]===undefined){(0,u["default"])("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b)}else if(b.name==="TypeError"){(0,u["default"])("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b);this.tech_.isReady_=false}else{(0,u["default"])(b)}throw b}}return};b.prototype.play=function pa(){if(this.src()||this.currentSrc()){this.techCall_("play")}else{this.tech_.one("loadstart",function(){this.play()})}return this};b.prototype.pause=function qa(){this.techCall_("pause");return this};b.prototype.paused=function ra(){return this.techGet_("paused")===false?false:true};b.prototype.scrubbing=function sa(a){if(a!==undefined){this.scrubbing_=!!a;if(a){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}return this}return this.scrubbing_};b.prototype.currentTime=function ta(a){if(a!==undefined){this.techCall_("setCurrentTime",a);return this}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};b.prototype.duration=function ua(a){if(a===undefined){return this.cache_.duration!==undefined?this.cache_.duration:NaN}a=parseFloat(a);if(a<0){a=Infinity}if(a!==this.cache_.duration){this.cache_.duration=a;if(a===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}this.trigger("durationchange")}return this};b.prototype.remainingTime=function va(){return this.duration()-this.currentTime()};b.prototype.buffered=function wa(){var wa=this.techGet_("buffered");if(!wa||!wa.length){wa=(0,x.createTimeRange)(0,0)}return wa};b.prototype.bufferedPercent=function xa(){return(0,y.bufferedPercent)(this.buffered(),this.duration())};b.prototype.bufferedEnd=function ya(){var a=this.buffered();var b=this.duration();var c=a.end(a.length-1);if(c>b){c=b}return c};b.prototype.volume=function za(a){var b=void 0;if(a!==undefined){b=Math.max(0,Math.min(1,parseFloat(a)));this.cache_.volume=b;this.techCall_("setVolume",b);return this}b=parseFloat(this.techGet_("volume"));return isNaN(b)?1:b};b.prototype.muted=function Aa(a){if(a!==undefined){this.techCall_("setMuted",a);return this}return this.techGet_("muted")||false};b.prototype.supportsFullScreen=function Ba(){return this.techGet_("supportsFullScreen")||false};b.prototype.isFullscreen=function Ca(a){if(a!==undefined){this.isFullscreen_=!!a;return this}return!!this.isFullscreen_};b.prototype.requestFullscreen=function Da(){var a=C["default"];this.isFullscreen(true);if(a.requestFullscreen){k.on(g["default"],a.fullscreenchange,o.bind(this,function b(c){this.isFullscreen(g["default"][a.fullscreenElement]);if(this.isFullscreen()===false){k.off(g["default"],a.fullscreenchange,b)}this.trigger("fullscreenchange")}));this.el_[a.requestFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow();this.trigger("fullscreenchange")}return this};b.prototype.exitFullscreen=function Ea(){var a=C["default"];this.isFullscreen(false);if(a.requestFullscreen){g["default"][a.exitFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow();this.trigger("fullscreenchange")}return this};b.prototype.enterFullWindow=function Fa(){this.isFullWindow=true;this.docOrigOverflow=g["default"].documentElement.style.overflow;k.on(g["default"],"keydown",o.bind(this,this.fullWindowOnEscKey));g["default"].documentElement.style.overflow="hidden";m.addElClass(g["default"].body,"vjs-full-window");this.trigger("enterFullWindow")};b.prototype.fullWindowOnEscKey=function Ga(a){if(a.keyCode===27){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};b.prototype.exitFullWindow=function Ha(){this.isFullWindow=false;k.off(g["default"],"keydown",this.fullWindowOnEscKey);g["default"].documentElement.style.overflow=this.docOrigOverflow;m.removeElClass(g["default"].body,"vjs-full-window");this.trigger("exitFullWindow")};b.prototype.canPlayType=function Ia(a){var b=void 0;for(var c=0,d=this.options_.techOrder;c<d.length;c++){var f=(0,w["default"])(d[c]);var g=P["default"].getTech(f);if(!g){g=e["default"].getComponent(f)}if(!g){u["default"].error('The "'+f+'" tech is undefined. Skipped browser support check for that tech.');continue}if(g.isSupported()){b=g.canPlayType(a);if(b){return b}}}return""};b.prototype.selectSource=function Ja(a){var b=this;var c=this.options_.techOrder.map(w["default"]).map(function(a){return[a,P["default"].getTech(a)||e["default"].getComponent(a)]}).filter(function(a){var b=a[0],c=a[1];if(c){return c.isSupported()}u["default"].error('The "'+b+'" tech is undefined. Skipped browser support check for that tech.');return false});var d=function i(a,b,c){var d=void 0;a.some(function(a){return b.some(function(b){d=c(a,b);if(d){return true}})});return d};var f=void 0;var g=function j(a){return function(b,c){return a(c,b)}};var h=function k(a,c){var d=a[0],e=a[1];if(e.canPlaySource(c,b.options_[d.toLowerCase()])){return{source:c,tech:d}}};if(this.options_.sourceOrder){f=d(a,c,g(h))}else{f=d(c,a,h)}return f||false};b.prototype.src=function Ka(a){if(a===undefined){return this.techGet_("src")}var b=P["default"].getTech(this.techName_);if(!b){b=e["default"].getComponent(this.techName_)}if(Array.isArray(a)){this.sourceList_(a)}else if(typeof a==="string"){this.src({src:a})}else if(a instanceof Object){if(a.type&&!b.canPlaySource(a,this.options_[this.techName_.toLowerCase()])){this.sourceList_([a])}else{this.cache_.sources=null;this.cache_.source=a;this.cache_.src=a.src;this.currentType_=a.type||"";this.ready(function(){if(b.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",a)}else{this.techCall_("src",a.src)}if(this.options_.preload==="auto"){this.load()}if(this.options_.autoplay){this.play()}},true)}}return this};b.prototype.sourceList_=function La(a){var b=this.selectSource(a);if(b){if(b.tech===this.techName_){this.src(b.source)}else{this.loadTech_(b.tech,b.source)}this.cache_.sources=a}else{this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);this.triggerReady()}};b.prototype.load=function Ma(){this.techCall_("load");return this};b.prototype.reset=function Na(){this.loadTech_((0,w["default"])(this.options_.techOrder[0]),null);this.techCall_("reset");return this};b.prototype.currentSources=function Oa(){var a=this.currentSource();var b=[];if(Object.keys(a).length!==0){b.push(a)}return this.cache_.sources||b};b.prototype.currentSource=function Pa(){var a={};var b=this.currentSrc();if(b){a.src=b}return this.cache_.source||a};b.prototype.currentSrc=function Qa(){return this.techGet_("currentSrc")||this.cache_.src||""};b.prototype.currentType=function Ra(){return this.currentType_||""};b.prototype.preload=function Sa(a){if(a!==undefined){this.techCall_("setPreload",a);this.options_.preload=a;return this}return this.techGet_("preload")};b.prototype.autoplay=function Ta(a){if(a!==undefined){this.techCall_("setAutoplay",a);this.options_.autoplay=a;return this}return this.techGet_("autoplay",a)};b.prototype.playsinline=function Ua(a){if(a!==undefined){this.techCall_("setPlaysinline",a);this.options_.playsinline=a;return this}return this.techGet_("playsinline")};b.prototype.loop=function Va(a){if(a!==undefined){this.techCall_("setLoop",a);this.options_.loop=a;return this}return this.techGet_("loop")};b.prototype.poster=function Wa(a){if(a===undefined){return this.poster_}if(!a){a=""}this.poster_=a;this.techCall_("setPoster",a);this.trigger("posterchange");return this};b.prototype.handleTechPosterChange_=function Xa(){if(!this.poster_&&this.tech_&&this.tech_.poster){this.poster_=this.tech_.poster()||"";this.trigger("posterchange")}};b.prototype.controls=function Ya(a){if(a!==undefined){a=!!a;if(this.controls_!==a){this.controls_=a;if(this.usingNativeControls()){this.techCall_("setControls",a)}if(a){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}}return this}return!!this.controls_};b.prototype.usingNativeControls=function Za(a){if(a!==undefined){a=!!a;if(this.usingNativeControls_!==a){this.usingNativeControls_=a;if(a){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}}return this}return!!this.usingNativeControls_};b.prototype.error=function $a(a){if(a===undefined){return this.error_||null}if(a===null){this.error_=a;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return this}this.error_=new E["default"](a);this.addClass("vjs-error");u["default"].error("(CODE:"+this.error_.code+" "+E["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return this};b.prototype.reportUserActivity=function _a(a){this.userActivity_=true};b.prototype.userActive=function ab(a){if(a!==undefined){a=!!a;if(a!==this.userActive_){this.userActive_=a;if(a){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive")}else{this.userActivity_=false;if(this.tech_){this.tech_.one("mousemove",function(a){a.stopPropagation();a.preventDefault()})}this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}}return this}return this.userActive_};b.prototype.listenForUserActivity_=function bb(){var a=void 0;var b=void 0;var c=void 0;var d=o.bind(this,this.reportUserActivity);var e=function i(a){if(a.screenX!==b||a.screenY!==c){b=a.screenX;c=a.screenY;d()}};var f=function j(){d();this.clearInterval(a);a=this.setInterval(d,250)};var g=function k(b){d();this.clearInterval(a)};this.on("mousedown",f);this.on("mousemove",e);this.on("mouseup",g);this.on("keydown",d);this.on("keyup",d);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=false;this.userActive(true);this.clearTimeout(h);var a=this.options_.inactivityTimeout;if(a>0){h=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},a)}}},250)};b.prototype.playbackRate=function cb(a){if(a!==undefined){this.techCall_("setPlaybackRate",a);return this}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("playbackRate")}return 1};b.prototype.isAudio=function db(a){if(a!==undefined){this.isAudio_=!!a;return this}return!!this.isAudio_};b.prototype.videoTracks=function eb(){if(!this.tech_){this.videoTracks_=this.videoTracks_||new T["default"];return this.videoTracks_}return this.tech_.videoTracks()};b.prototype.audioTracks=function fb(){if(!this.tech_){this.audioTracks_=this.audioTracks_||new R["default"];return this.audioTracks_}return this.tech_.audioTracks()};b.prototype.textTracks=function gb(){if(this.tech_){return this.tech_.textTracks()}};b.prototype.remoteTextTracks=function hb(){if(this.tech_){return this.tech_.remoteTextTracks()}};b.prototype.remoteTextTrackEls=function ib(){if(this.tech_){return this.tech_.remoteTextTrackEls(); }};b.prototype.addTextTrack=function jb(a,b,c){if(this.tech_){return this.tech_.addTextTrack(a,b,c)}};b.prototype.addRemoteTextTrack=function kb(a,b){if(this.tech_){return this.tech_.addRemoteTextTrack(a,b)}};b.prototype.removeRemoteTextTrack=function lb(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},b=a.track,c=b===undefined?arguments[0]:b;if(this.tech_){return this.tech_.removeRemoteTextTrack(c)}};b.prototype.getVideoPlaybackQuality=function mb(){return this.techGet_("getVideoPlaybackQuality")};b.prototype.videoWidth=function nb(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};b.prototype.videoHeight=function ob(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};b.prototype.language=function pb(a){if(a===undefined){return this.language_}this.language_=String(a).toLowerCase();return this};b.prototype.languages=function qb(){return(0,J["default"])(b.prototype.options_.languages,this.languages_)};b.prototype.toJSON=function rb(){var a=(0,J["default"])(this.options_);var b=a.tracks;a.tracks=[];for(var c=0;c<b.length;c++){var d=b[c];d=(0,J["default"])(d);d.player=undefined;a.tracks[c]=d}return a};b.prototype.createModal=function sb(a,b){var c=this;b=b||{};b.content=a||"";var d=new N["default"](this,b);this.addChild(d);d.on("dispose",function(){c.removeChild(d)});return d.open()};b.getTagSettings=function tb(a){var b={sources:[],tracks:[]};var c=m.getElAttributes(a);var d=c["data-setup"];if(m.hasElClass(a,"vjs-fluid")){c.fluid=true}if(d!==null){var e=(0,G["default"])(d||"{}"),f=e[0],g=e[1];if(f){u["default"].error(f)}(0,H.assign)(c,g)}(0,H.assign)(b,c);if(a.hasChildNodes()){var h=a.childNodes;for(var i=0,j=h.length;i<j;i++){var k=h[i];var l=k.nodeName.toLowerCase();if(l==="source"){b.sources.push(m.getElAttributes(k))}else if(l==="track"){b.tracks.push(m.getElAttributes(k))}}}return b};b.prototype.flexNotSupported_=function ub(){var a=g["default"].createElement("i");return!("flexBasis"in a.style||"webkitFlexBasis"in a.style||"mozFlexBasis"in a.style||"msFlexBasis"in a.style||"msFlexOrder"in a.style)};return b}(e["default"]);$.players={};var _=i["default"].navigator;$.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:_&&(_.languages&&_.languages[0]||_.userLanguage||_.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(a){$.prototype[a]=function(){return this.techGet_(a)}});Z.forEach(function(a){$.prototype["handleTech"+(0,w["default"])(a)+"_"]=function(){return this.trigger(a)}});e["default"].registerComponent("Player",$);c["default"]=$},{1:1,100:100,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,88:88,89:89,90:90,91:91,96:96,97:97}],52:[function(a,b,c){"use strict";c.__esModule=true;var d=a(51);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g=function h(a,b){e["default"].prototype[a]=b};c["default"]=g},{51:51}],53:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};i(this,b);var e=j(this,a.call(this,c,d));e.update();return e}b.prototype.update=function c(){var a=this.createPopup();if(this.popup){this.removeChild(this.popup)}this.popup=a;this.addChild(a);if(this.items&&this.items.length===0){this.hide()}else if(this.items&&this.items.length>1){this.show()}};b.prototype.createPopup=function d(){};b.prototype.createEl=function e(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};b.prototype.buildCSSClass=function f(){var b="vjs-menu-button";if(this.options_.inline===true){b+="-inline"}else{b+="-popup"}return"vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);g["default"].registerComponent("PopupButton",l);c["default"]=l},{3:3,5:5}],54:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=m(d);var f=a(81);var g=l(f);var h=a(83);var i=l(h);var j=a(82);var k=l(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){n(this,b);return o(this,a.apply(this,arguments))}b.prototype.addItem=function c(a){this.addChild(a);a.on("click",i.bind(this,function(){this.unlockShowing()}))};b.prototype.createEl=function d(){var b=this.options_.contentElType||"ul";this.contentEl_=g.createEl(b,{className:"vjs-menu-content"});var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});c.appendChild(this.contentEl_);k.on(c,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return c};return b}(e["default"]);e["default"].registerComponent("Popup",q);c["default"]=q},{5:5,81:81,82:82,83:83}],55:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=o(d);var f=a(5);var g=o(f);var h=a(83);var i=n(h);var j=a(81);var k=n(j);var l=a(78);var m=n(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.update();c.on("posterchange",i.bind(e,e.update));return e}b.prototype.dispose=function c(){this.player().off("posterchange",this.update);a.prototype.dispose.call(this)};b.prototype.createEl=function d(){var a=k.createEl("div",{className:"vjs-poster",tabIndex:-1});if(!m.BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=k.createEl("img");a.appendChild(this.fallbackImg_)}return a};b.prototype.update=function e(a){var b=this.player().poster();this.setSrc(b);if(b){this.show()}else{this.hide()}};b.prototype.setSrc=function f(a){if(this.fallbackImg_){this.fallbackImg_.src=a}else{var b="";if(a){b='url("'+a+'")'}this.el_.style.backgroundImage=b}};b.prototype.handleClick=function g(a){if(!this.player_.controls()){return}if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};return b}(e["default"]);g["default"].registerComponent("PosterImage",s);c["default"]=s},{3:3,5:5,78:78,81:81,83:83}],56:[function(a,b,c){"use strict";c.__esModule=true;c.hasLoaded=c.autoSetupTimeout=c.autoSetup=undefined;var d=a(81);var e=m(d);var f=a(82);var g=m(f);var h=a(96);var i=l(h);var j=a(97);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var n=false;var o=void 0;var p=function s(){if(!e.isReal()){return}var a=i["default"].getElementsByTagName("video");var b=i["default"].getElementsByTagName("audio");var c=[];if(a&&a.length>0){for(var d=0,f=a.length;d<f;d++){c.push(a[d])}}if(b&&b.length>0){for(var g=0,h=b.length;g<h;g++){c.push(b[g])}}if(c&&c.length>0){for(var j=0,k=c.length;j<k;j++){var l=c[j];if(l&&l.getAttribute){if(l.player===undefined){var m=l.getAttribute("data-setup");if(m!==null){o(l)}}}else{q(1);break}}}else if(!n){q(1)}};function q(a,b){if(b){o=b}k["default"].setTimeout(p,a)}if(e.isReal()&&i["default"].readyState==="complete"){n=true}else{g.one(k["default"],"load",function(){n=true})}var r=function t(){return n};c.autoSetup=p;c.autoSetupTimeout=q;c.hasLoaded=r},{81:81,82:82,96:96,97:97}],57:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(81);var g=i(f);var h=a(88);function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d){k(this,b);var e=l(this,a.call(this,c,d));e.bar=e.getChild(e.options_.barName);e.vertical(!!e.options_.vertical);e.on("mousedown",e.handleMouseDown);e.on("touchstart",e.handleMouseDown);e.on("focus",e.handleFocus);e.on("blur",e.handleBlur);e.on("click",e.handleClick);e.on(c,"controlsvisible",e.update);e.on(c,e.playerEvent,e.update);return e}b.prototype.createEl=function c(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};c.className=c.className+" vjs-slider";c=(0,h.assign)({tabIndex:0},c);d=(0,h.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},d);return a.prototype.createEl.call(this,b,c,d)};b.prototype.handleMouseDown=function d(a){var b=this.bar.el_.ownerDocument;a.preventDefault();g.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(b,"mousemove",this.handleMouseMove);this.on(b,"mouseup",this.handleMouseUp);this.on(b,"touchmove",this.handleMouseMove);this.on(b,"touchend",this.handleMouseUp);this.handleMouseMove(a)};b.prototype.handleMouseMove=function e(a){};b.prototype.handleMouseUp=function f(){var a=this.bar.el_.ownerDocument;g.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(a,"mousemove",this.handleMouseMove);this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchmove",this.handleMouseMove);this.off(a,"touchend",this.handleMouseUp);this.update()};b.prototype.update=function i(){if(!this.el_){return}var a=this.getPercent();var b=this.bar;if(!b){return}if(typeof a!=="number"||a!==a||a<0||a===Infinity){a=0}var c=(a*100).toFixed(2)+"%";if(this.vertical()){b.el().style.height=c}else{b.el().style.width=c}};b.prototype.calculateDistance=function j(a){var b=g.getPointerPosition(this.el_,a);if(this.vertical()){return b.y}return b.x};b.prototype.handleFocus=function n(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleKeyPress=function o(a){if(a.which===37||a.which===40){a.preventDefault();this.stepBack()}else if(a.which===38||a.which===39){a.preventDefault();this.stepForward()}};b.prototype.handleBlur=function p(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleClick=function q(a){a.stopImmediatePropagation();a.preventDefault()};b.prototype.vertical=function r(a){if(a===undefined){return this.vertical_||false}this.vertical_=!!a;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}return this};return b}(e["default"]);e["default"].registerComponent("Slider",n);c["default"]=n},{5:5,81:81,88:88}],58:[function(a,b,c){"use strict";c.__esModule=true;function d(a){a.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};a.streamFromParts=function(a,b){return a+"&"+b};a.streamToParts=function(a){var b={connection:"",stream:""};if(!a){return b}var c=a.search(/&(?!\w+=)/);var d=void 0;if(c!==-1){d=c+1}else{c=d=a.lastIndexOf("/")+1;if(c===0){c=d=a.length}}b.connection=a.substring(0,c);b.stream=a.substring(d,a.length);return b};a.isStreamingType=function(b){return b in a.streamingFormats};a.RTMP_RE=/^rtmp[set]?:\/\//i;a.isStreamingSrc=function(b){return a.RTMP_RE.test(b)};a.rtmpSourceHandler={};a.rtmpSourceHandler.canPlayType=function(b){if(a.isStreamingType(b)){return"maybe"}return""};a.rtmpSourceHandler.canHandleSource=function(b,c){var d=a.rtmpSourceHandler.canPlayType(b.type);if(d){return d}if(a.isStreamingSrc(b.src)){return"maybe"}return""};a.rtmpSourceHandler.handleSource=function(b,c,d){var e=a.streamToParts(b.src);c.setRtmpConnection(e.connection);c.setRtmpStream(e.stream)};a.registerSourceHandler(a.rtmpSourceHandler);return a}c["default"]=d},{}],59:[function(a,b,c){"use strict";c.__esModule=true;var d=a(62);var e=s(d);var f=a(81);var g=r(f);var h=a(92);var i=r(h);var j=a(90);var k=a(58);var l=s(k);var m=a(5);var n=s(m);var o=a(97);var p=s(o);var q=a(88);function r(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function s(a){return a&&a.__esModule?a:{"default":a}}function t(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function u(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function v(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var w=p["default"].navigator;var x=function(a){v(b,a);function b(c,d){t(this,b);var e=u(this,a.call(this,c,d));if(c.source){e.ready(function(){this.setSource(c.source)},true)}if(c.startTime){e.ready(function(){this.load();this.play();this.currentTime(c.startTime)},true)}p["default"].videojs=p["default"].videojs||{};p["default"].videojs.Flash=p["default"].videojs.Flash||{};p["default"].videojs.Flash.onReady=b.onReady;p["default"].videojs.Flash.onEvent=b.onEvent;p["default"].videojs.Flash.onError=b.onError;e.on("seeked",function(){this.lastSeekTarget_=undefined});return e}b.prototype.createEl=function c(){var a=this.options_;if(!a.swf){var c="5.4.1";a.swf="//vjs.zencdn.net/swf/"+c+"/video-js.swf"}var d=a.techId;var e=(0,q.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.preload,loop:a.loop,muted:a.muted},a.flashVars);var f=(0,q.assign)({wmode:"opaque",bgcolor:"#000000"},a.params);var g=(0,q.assign)({id:d,name:d,"class":"vjs-tech"},a.attributes);this.el_=b.embed(a.swf,e,f,g);this.el_.tech=this;return this.el_};b.prototype.play=function d(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};b.prototype.pause=function e(){this.el_.vjs_pause()};b.prototype.src=function f(a){if(a===undefined){return this.currentSrc()}return this.setSrc(a)};b.prototype.setSrc=function g(a){var b=this;a=i.getAbsoluteURL(a);this.el_.vjs_src(a);if(this.autoplay()){this.setTimeout(function(){return b.play()},0)}};b.prototype.seeking=function h(){return this.lastSeekTarget_!==undefined};b.prototype.setCurrentTime=function k(b){var c=this.seekable();if(c.length){b=b>c.start(0)?b:c.start(0);b=b<c.end(c.length-1)?b:c.end(c.length-1);this.lastSeekTarget_=b;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",b);a.prototype.setCurrentTime.call(this)}};b.prototype.currentTime=function l(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};b.prototype.currentSrc=function m(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};b.prototype.duration=function n(){if(this.readyState()===0){return NaN}var n=this.el_.vjs_getProperty("duration");return n>=0?n:Infinity};b.prototype.load=function o(){this.el_.vjs_load()};b.prototype.poster=function r(){this.el_.vjs_getProperty("poster")};b.prototype.setPoster=function s(){};b.prototype.seekable=function w(){var a=this.duration();if(a===0){return(0,j.createTimeRange)()}return(0,j.createTimeRange)(0,a)};b.prototype.buffered=function x(){var a=this.el_.vjs_getProperty("buffered");if(a.length===0){return(0,j.createTimeRange)()}return(0,j.createTimeRange)(a[0][0],a[0][1])};b.prototype.supportsFullScreen=function y(){return false};b.prototype.enterFullScreen=function z(){return false};b.prototype.getVideoPlaybackQuality=function A(){var a=this.el_.vjs_getProperty("getVideoPlaybackQuality");if(p["default"].performance&&typeof p["default"].performance.now==="function"){a.creationTime=p["default"].performance.now()}else if(p["default"].performance&&p["default"].performance.timing&&typeof p["default"].performance.timing.navigationStart==="number"){a.creationTime=p["default"].Date.now()-p["default"].performance.timing.navigationStart}return a};return b}(e["default"]);var y=x.prototype;var z="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(",");var A="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function B(a){var b=a.charAt(0).toUpperCase()+a.slice(1);y["set"+b]=function(b){return this.el_.vjs_setProperty(a,b)}}function C(a){y[a]=function(){return this.el_.vjs_getProperty(a)}}for(var D=0;D<z.length;D++){C(z[D]);B(z[D])}for(var E=0;E<A.length;E++){C(A[E])}x.isSupported=function(){return x.version()[0]>=10};e["default"].withSourceHandlers(x);x.nativeSourceHandler={};x.nativeSourceHandler.canPlayType=function(a){if(a in x.formats){return"maybe"}return""};x.nativeSourceHandler.canHandleSource=function(a,b){var c=void 0;function d(a){var b=i.getFileExtension(a);if(b){return"video/"+b}return""}if(!a.type){c=d(a.src)}else{c=a.type.replace(/;.*/,"").toLowerCase()}return x.nativeSourceHandler.canPlayType(c)};x.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)};x.nativeSourceHandler.dispose=function(){};x.registerSourceHandler(x.nativeSourceHandler);x.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};x.onReady=function(a){var b=g.getEl(a);var c=b&&b.tech;if(c&&c.el()){x.checkReady(c)}};x.checkReady=function(a){if(!a.el()){return}if(a.el().vjs_getProperty){a.triggerReady()}else{this.setTimeout(function(){x.checkReady(a)},50)}};x.onEvent=function(a,b){var c=g.getEl(a).tech;var d=Array.prototype.slice.call(arguments,2);c.setTimeout(function(){c.trigger(b,d)},1)};x.onError=function(a,b){var c=g.getEl(a).tech;if(b==="srcnotfound"){return c.error(4)}c.error("FLASH: "+b)};x.version=function(){var a="0,0,0";try{a=new p["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{if(w.mimeTypes["application/x-shockwave-flash"].enabledPlugin){a=(w.plugins["Shockwave Flash 2.0"]||w.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(c){}}return a.split(",")};x.embed=function(a,b,c,d){var e=x.getEmbedCode(a,b,c,d);var f=g.createEl("div",{innerHTML:e}).childNodes[0];return f};x.getEmbedCode=function(a,b,c,d){var e='<object type="application/x-shockwave-flash" ';var f="";var g="";var h="";if(b){Object.getOwnPropertyNames(b).forEach(function(a){f+=a+"="+b[a]+"&"})}c=(0,q.assign)({movie:a,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},c);Object.getOwnPropertyNames(c).forEach(function(a){g+='<param name="'+a+'" value="'+c[a]+'" />'});d=(0,q.assign)({data:a,width:"100%",height:"100%"},d);Object.getOwnPropertyNames(d).forEach(function(a){h+=a+'="'+d[a]+'" '});return""+e+h+">"+g+"</object>"};(0,l["default"])(x);n["default"].registerComponent("Flash",x);e["default"].registerTech("Flash",x);c["default"]=x},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,97:97}],60:[function(a,b,c){"use strict";c.__esModule=true;var d=F(["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."]);var e=a(62);var f=E(e);var g=a(5);var h=E(g);var i=a(81);var j=D(i);var k=a(92);var l=D(k);var m=a(83);var n=D(m);var o=a(86);var p=E(o);var q=a(102);var r=E(q);var s=a(78);var t=D(s);var u=a(96);var v=E(u);var w=a(97);var x=E(w);var y=a(88);var z=a(87);var A=E(z);var B=a(91);var C=E(B);function D(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function E(a){return a&&a.__esModule?a:{"default":a}}function F(a,b){a.raw=b;return a}function G(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function H(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function I(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var J=function(a){I(b,a);function b(c,e){G(this,b);var f=H(this,a.call(this,c,e));var g=c.source;var h=false;if(g&&(f.el_.currentSrc!==g.src||c.tag&&c.tag.initNetworkState_===3)){f.setSource(g)}else{f.handleLateInit_(f.el_)}if(f.el_.hasChildNodes()){var i=f.el_.childNodes;var j=i.length;var k=[];while(j--){var m=i[j];var o=m.nodeName.toLowerCase();if(o==="track"){if(!f.featuresNativeTextTracks){k.push(m)}else{f.remoteTextTrackEls().addTrackElement_(m);f.remoteTextTracks().addTrack_(m.track);if(!h&&!f.el_.hasAttribute("crossorigin")&&l.isCrossOrigin(m.src)){h=true}}}}for(var q=0;q<k.length;q++){f.el_.removeChild(k[q])}}var s=["audio","video"];s.forEach(function(a){var b=f.el()[a+"Tracks"];var c=f[a+"Tracks"]();var d=(0,C["default"])(a);if(!f["featuresNative"+d+"Tracks"]||!b||!b.addEventListener){return}f["handle"+d+"TrackChange_"]=function(a){c.trigger({type:"change",target:c,currentTarget:c,srcElement:c})};f["handle"+d+"TrackAdd_"]=function(a){return c.addTrack(a.track)};f["handle"+d+"TrackRemove_"]=function(a){return c.removeTrack(a.track)};b.addEventListener("change",f["handle"+d+"TrackChange_"]);b.addEventListener("addtrack",f["handle"+d+"TrackAdd_"]);b.addEventListener("removetrack",f["handle"+d+"TrackRemove_"]);f["removeOld"+d+"Tracks_"]=function(a){return f.removeOldTracks_(c,b)};f.on("loadstart",f["removeOld"+d+"Tracks_"])});if(f.featuresNativeTextTracks){if(h){p["default"].warn((0,r["default"])(d))}f.handleTextTrackChange_=n.bind(f,f.handleTextTrackChange);f.handleTextTrackAdd_=n.bind(f,f.handleTextTrackAdd);f.handleTextTrackRemove_=n.bind(f,f.handleTextTrackRemove);f.proxyNativeTextTracks_()}f.restoreMetadataTracksInIOSNativePlayer_();if((t.TOUCH_ENABLED||t.IS_IPHONE||t.IS_NATIVE_ANDROID)&&c.nativeControlsForTouch===true){f.setControls(true)}f.proxyWebkitFullscreen_();f.triggerReady();return f}b.prototype.dispose=function c(){var c=this;["audio","video","text"].forEach(function(a){var b=(0,C["default"])(a);var d=c.el_[a+"Tracks"];if(d&&d.removeEventListener){d.removeEventListener("change",c["handle"+b+"TrackChange_"]);d.removeEventListener("addtrack",c["handle"+b+"TrackAdd_"]);d.removeEventListener("removetrack",c["handle"+b+"TrackRemove_"])}if(d){c.off("loadstart",c["removeOld"+b+"Tracks_"])}});b.disposeMediaElement(this.el_);a.prototype.dispose.call(this)};b.prototype.restoreMetadataTracksInIOSNativePlayer_=function e(){var a=this.textTracks();var b=void 0;var c=function e(){b=[];for(var c=0;c<a.length;c++){var d=a[c];if(d.kind==="metadata"){b.push({track:d,storedMode:d.mode})}}};c();a.addEventListener("change",c);var d=function f(){for(var c=0;c<b.length;c++){var d=b[c];if(d.track.mode==="disabled"&&d.track.mode!==d.storedMode){d.track.mode=d.storedMode}}a.removeEventListener("change",f)};this.on("webkitbeginfullscreen",function(){a.removeEventListener("change",c);a.removeEventListener("change",d);a.addEventListener("change",d)});this.on("webkitendfullscreen",function(){a.removeEventListener("change",c);a.addEventListener("change",c);a.removeEventListener("change",d)})};b.prototype.createEl=function f(){var a=this.options_.tag;if(!a||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(a){var c=a.cloneNode(true);if(a.parentNode){a.parentNode.insertBefore(c,a)}b.disposeMediaElement(a);a=c}else{a=v["default"].createElement("video");var d=this.options_.tag&&j.getElAttributes(this.options_.tag);var e=(0,A["default"])({},d);if(!t.TOUCH_ENABLED||this.options_.nativeControlsForTouch!==true){delete e.controls}j.setElAttributes(a,(0,y.assign)(e,{id:this.options_.techId,"class":"vjs-tech"}))}a.playerId=this.options_.playerId}if(typeof this.options_.preload!=="undefined"){j.setAttribute(a,"preload",this.options_.preload)}var f=["loop","muted","playsinline","autoplay"];for(var g=f.length-1;g>=0;g--){var h=f[g];var i=this.options_[h];if(typeof i!=="undefined"){if(i){j.setAttribute(a,h,h)}else{j.removeAttribute(a,h)}a[h]=i}}return a};b.prototype.handleLateInit_=function g(a){if(a.networkState===0||a.networkState===3){return}if(a.readyState===0){var b=false;var c=function f(){b=true};this.on("loadstart",c);var d=function g(){if(!b){this.trigger("loadstart")}};this.on("loadedmetadata",d);this.ready(function(){this.off("loadstart",c);this.off("loadedmetadata",d);if(!b){this.trigger("loadstart")}});return}var e=["loadstart"];e.push("loadedmetadata");if(a.readyState>=2){e.push("loadeddata")}if(a.readyState>=3){e.push("canplay")}if(a.readyState>=4){e.push("canplaythrough")}this.ready(function(){e.forEach(function(a){this.trigger(a)},this)})};b.prototype.proxyNativeTextTracks_=function h(){var a=this.el().textTracks;if(a){for(var b=0;b<a.length;b++){this.textTracks().addTrack_(a[b])}if(a.addEventListener){a.addEventListener("change",this.handleTextTrackChange_);a.addEventListener("addtrack",this.handleTextTrackAdd_);a.addEventListener("removetrack",this.handleTextTrackRemove_)}this.on("loadstart",this.removeOldTextTracks_)}};b.prototype.handleTextTrackChange=function i(a){var b=this.textTracks();this.textTracks().trigger({type:"change",target:b,currentTarget:b,srcElement:b})};b.prototype.handleTextTrackAdd=function k(a){this.textTracks().addTrack_(a.track)};b.prototype.handleTextTrackRemove=function m(a){this.textTracks().removeTrack_(a.track)};b.prototype.removeOldTracks_=function o(a,b){var c=[];if(!b){return}for(var d=0;d<a.length;d++){var e=a[d];var f=false;for(var g=0;g<b.length;g++){if(b[g]===e){f=true;break}}if(!f){c.push(e)}}for(var h=0;h<c.length;h++){var i=c[h];a.removeTrack_(i)}};b.prototype.removeOldTextTracks_=function q(a){var b=this.textTracks();var c=this.el().textTracks;this.removeOldTracks_(b,c)};b.prototype.play=function s(){var a=this.el_.play();if(a!==undefined&&typeof a.then==="function"){a.then(null,function(a){})}};b.prototype.setCurrentTime=function u(a){try{this.el_.currentTime=a}catch(b){(0,p["default"])(b,"Video is not ready. (Video.js)")}};b.prototype.duration=function w(){var a=this;if(this.el_.duration===Infinity&&t.IS_ANDROID&&t.IS_CHROME){if(this.el_.currentTime===0){var b=function c(){if(a.el_.currentTime>0){if(a.el_.duration===Infinity){a.trigger("durationchange")}a.off("timeupdate",c)}};this.on("timeupdate",b);return NaN}}return this.el_.duration||NaN};b.prototype.width=function z(){return this.el_.offsetWidth};b.prototype.height=function B(){return this.el_.offsetHeight};b.prototype.proxyWebkitFullscreen_=function D(){var a=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var b=function d(){this.trigger("fullscreenchange",{isFullscreen:false})};var c=function e(){if("webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"){this.one("webkitendfullscreen",b);this.trigger("fullscreenchange",{isFullscreen:true})}};this.on("webkitbeginfullscreen",c);this.on("dispose",function(){a.off("webkitbeginfullscreen",c);a.off("webkitendfullscreen",b)})};b.prototype.supportsFullScreen=function E(){if(typeof this.el_.webkitEnterFullScreen==="function"){var a=x["default"].navigator&&x["default"].navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a)){return true}}return false};b.prototype.enterFullScreen=function F(){var a=this.el_;if(a.paused&&a.networkState<=a.HAVE_METADATA){this.el_.play();this.setTimeout(function(){a.pause();a.webkitEnterFullScreen()},0)}else{a.webkitEnterFullScreen()}};b.prototype.exitFullScreen=function J(){this.el_.webkitExitFullScreen()};b.prototype.src=function K(a){if(a===undefined){return this.el_.src}this.setSrc(a)};b.prototype.reset=function L(){b.resetMediaElement(this.el_)};b.prototype.currentSrc=function M(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};b.prototype.setControls=function N(a){this.el_.controls=!!a};b.prototype.addTextTrack=function O(b,c,d){if(!this.featuresNativeTextTracks){return a.prototype.addTextTrack.call(this,b,c,d)}return this.el_.addTextTrack(b,c,d)};b.prototype.createRemoteTextTrack=function P(b){if(!this.featuresNativeTextTracks){return a.prototype.createRemoteTextTrack.call(this,b)}var c=v["default"].createElement("track");if(b.kind){c.kind=b.kind}if(b.label){c.label=b.label}if(b.language||b.srclang){c.srclang=b.language||b.srclang}if(b["default"]){c["default"]=b["default"]}if(b.id){c.id=b.id}if(b.src){c.src=b.src}return c};b.prototype.addRemoteTextTrack=function Q(b,c){var d=a.prototype.addRemoteTextTrack.call(this,b,c);if(this.featuresNativeTextTracks){this.el().appendChild(d)}return d};b.prototype.removeRemoteTextTrack=function R(b){a.prototype.removeRemoteTextTrack.call(this,b);if(this.featuresNativeTextTracks){var c=this.$$("track");var d=c.length;while(d--){if(b===c[d]||b===c[d].track){this.el().removeChild(c[d])}}}};b.prototype.getVideoPlaybackQuality=function S(){if(typeof this.el().getVideoPlaybackQuality==="function"){return this.el().getVideoPlaybackQuality()}var a={};if(typeof this.el().webkitDroppedFrameCount!=="undefined"&&typeof this.el().webkitDecodedFrameCount!=="undefined"){ a.droppedVideoFrames=this.el().webkitDroppedFrameCount;a.totalVideoFrames=this.el().webkitDecodedFrameCount}if(x["default"].performance&&typeof x["default"].performance.now==="function"){a.creationTime=x["default"].performance.now()}else if(x["default"].performance&&x["default"].performance.timing&&typeof x["default"].performance.timing.navigationStart==="number"){a.creationTime=x["default"].Date.now()-x["default"].performance.timing.navigationStart}return a};return b}(f["default"]);if(j.isReal()){J.TEST_VID=v["default"].createElement("video");var K=v["default"].createElement("track");K.kind="captions";K.srclang="en";K.label="English";J.TEST_VID.appendChild(K)}J.isSupported=function(){try{J.TEST_VID.volume=.5}catch(a){return false}return!!(J.TEST_VID&&J.TEST_VID.canPlayType)};J.canControlVolume=function(){try{var a=J.TEST_VID.volume;J.TEST_VID.volume=a/2+.1;return a!==J.TEST_VID.volume}catch(b){return false}};J.canControlPlaybackRate=function(){if(t.IS_ANDROID&&t.IS_CHROME&&t.CHROME_VERSION<58){return false}try{var a=J.TEST_VID.playbackRate;J.TEST_VID.playbackRate=a/2+.1;return a!==J.TEST_VID.playbackRate}catch(b){return false}};J.supportsNativeTextTracks=function(){return t.IS_ANY_SAFARI};J.supportsNativeVideoTracks=function(){return!!(J.TEST_VID&&J.TEST_VID.videoTracks)};J.supportsNativeAudioTracks=function(){return!!(J.TEST_VID&&J.TEST_VID.audioTracks)};J.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];J.prototype.featuresVolumeControl=J.canControlVolume();J.prototype.featuresPlaybackRate=J.canControlPlaybackRate();J.prototype.movingMediaElementInDOM=!t.IS_IOS;J.prototype.featuresFullscreenResize=true;J.prototype.featuresProgressEvents=true;J.prototype.featuresTimeupdateEvents=true;J.prototype.featuresNativeTextTracks=J.supportsNativeTextTracks();J.prototype.featuresNativeVideoTracks=J.supportsNativeVideoTracks();J.prototype.featuresNativeAudioTracks=J.supportsNativeAudioTracks();var L=J.TEST_VID&&J.TEST_VID.constructor.prototype.canPlayType;var M=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;var N=/^video\/mp4/i;J.patchCanPlayType=function(){if(t.ANDROID_VERSION>=4&&!t.IS_FIREFOX){J.TEST_VID.constructor.prototype.canPlayType=function(a){if(a&&M.test(a)){return"maybe"}return L.call(this,a)}}else if(t.IS_OLD_ANDROID){J.TEST_VID.constructor.prototype.canPlayType=function(a){if(a&&N.test(a)){return"maybe"}return L.call(this,a)}}};J.unpatchCanPlayType=function(){var a=J.TEST_VID.constructor.prototype.canPlayType;J.TEST_VID.constructor.prototype.canPlayType=L;return a};J.patchCanPlayType();J.disposeMediaElement=function(a){if(!a){return}if(a.parentNode){a.parentNode.removeChild(a)}while(a.hasChildNodes()){a.removeChild(a.firstChild)}a.removeAttribute("src");if(typeof a.load==="function"){(function(){try{a.load()}catch(b){}})()}};J.resetMediaElement=function(a){if(!a){return}var b=a.querySelectorAll("source");var c=b.length;while(c--){a.removeChild(b[c])}a.removeAttribute("src");if(typeof a.load==="function"){(function(){try{a.load()}catch(b){}})()}};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(a){J.prototype[a]=function(){return this.el_[a]||this.el_.hasAttribute(a)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(a){J.prototype["set"+(0,C["default"])(a)]=function(b){this.el_[a]=b;if(b){this.el_.setAttribute(a,a)}else{this.el_.removeAttribute(a)}}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(a){J.prototype[a]=function(){return this.el_[a]}});["volume","src","poster","preload","playbackRate"].forEach(function(a){J.prototype["set"+(0,C["default"])(a)]=function(b){this.el_[a]=b}});["pause","load"].forEach(function(a){J.prototype[a]=function(){return this.el_[a]()}});f["default"].withSourceHandlers(J);J.nativeSourceHandler={};J.nativeSourceHandler.canPlayType=function(a){try{return J.TEST_VID.canPlayType(a)}catch(b){return""}};J.nativeSourceHandler.canHandleSource=function(a,b){if(a.type){return J.nativeSourceHandler.canPlayType(a.type)}else if(a.src){var c=l.getFileExtension(a.src);return J.nativeSourceHandler.canPlayType("video/"+c)}return""};J.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)};J.nativeSourceHandler.dispose=function(){};J.registerSourceHandler(J.nativeSourceHandler);h["default"].registerComponent("Html5",J);f["default"].registerTech("Html5",J);c["default"]=J},{102:102,5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,96:96,97:97}],61:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(62);var g=j(f);var h=a(91);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d,f){k(this,b);var h=l(this,a.call(this,c,d,f));if(!d.playerOptions.sources||d.playerOptions.sources.length===0){for(var j=0,m=d.playerOptions.techOrder;j<m.length;j++){var n=(0,i["default"])(m[j]);var o=g["default"].getTech(n);if(!n){o=e["default"].getComponent(n)}if(o&&o.isSupported()){c.loadTech_(n);break}}}else{c.src(d.playerOptions.sources)}return h}return b}(e["default"]);e["default"].registerComponent("MediaLoader",n);c["default"]=n},{5:5,62:62,91:91}],62:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=H(d);var f=a(66);var g=H(f);var h=a(65);var i=H(h);var j=a(87);var k=H(j);var l=a(72);var m=H(l);var n=a(70);var o=H(n);var p=a(76);var q=H(p);var r=a(63);var s=H(r);var t=a(83);var u=G(t);var v=a(86);var w=H(v);var x=a(90);var y=a(79);var z=a(46);var A=H(z);var B=a(97);var C=H(B);var D=a(96);var E=H(D);var F=a(88);function G(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function H(a){return a&&a.__esModule?a:{"default":a}}function I(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function J(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function K(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}function L(a,b,c,d){var e=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var f=a.textTracks();e.kind=b;if(c){e.label=c}if(d){e.language=d}e.tech=a;var g=new m["default"](e);f.addTrack_(g);return g}var M=function(a){K(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){};I(this,b);c.reportTouchActivity=false;var e=J(this,a.call(this,null,c,d));e.hasStarted_=false;e.on("playing",function(){this.hasStarted_=true});e.on("loadstart",function(){this.hasStarted_=false});e.textTracks_=c.textTracks;e.videoTracks_=c.videoTracks;e.audioTracks_=c.audioTracks;if(!e.featuresProgressEvents){e.manualProgressOn()}if(!e.featuresTimeupdateEvents){e.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(a){if(c["native"+a+"Tracks"]===false){e["featuresNative"+a+"Tracks"]=false}});if(c.nativeCaptions===false){e.featuresNativeTextTracks=false}if(!e.featuresNativeTextTracks){e.emulateTextTracks()}e.autoRemoteTextTracks_=new o["default"];e.initTextTrackListeners();e.initTrackListeners();if(!c.nativeControlsForTouch){e.emitTapEvents()}if(e.constructor){e.name_=e.constructor.name||"Unknown Tech"}return e}b.prototype.manualProgressOn=function c(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};b.prototype.manualProgressOff=function d(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};b.prototype.trackProgress=function e(a){this.stopTrackingProgress();this.progressInterval=this.setInterval(u.bind(this,function(){var a=this.bufferedPercent();if(this.bufferedPercent_!==a){this.trigger("progress")}this.bufferedPercent_=a;if(a===1){this.stopTrackingProgress()}}),500)};b.prototype.onDurationChange=function f(a){this.duration_=this.duration()};b.prototype.buffered=function h(){return(0,x.createTimeRange)(0,0)};b.prototype.bufferedPercent=function j(){return(0,y.bufferedPercent)(this.buffered(),this.duration_)};b.prototype.stopTrackingProgress=function l(){this.clearInterval(this.progressInterval)};b.prototype.manualTimeUpdatesOn=function m(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};b.prototype.manualTimeUpdatesOff=function n(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};b.prototype.trackCurrentTime=function p(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};b.prototype.stopTrackingCurrentTime=function r(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};b.prototype.dispose=function t(){this.clearTracks(["audio","video","text"]);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}a.prototype.dispose.call(this)};b.prototype.clearTracks=function v(a){var b=this;a=[].concat(a);a.forEach(function(a){var c=b[a+"Tracks"]()||[];var d=c.length;while(d--){var e=c[d];if(a==="text"){b.removeRemoteTextTrack(e)}c.removeTrack_(e)}})};b.prototype.cleanupAutoTextTracks=function z(){var a=this.autoRemoteTextTracks_||[];var b=a.length;while(b--){var c=a[b];this.removeRemoteTextTrack(c)}};b.prototype.reset=function B(){};b.prototype.error=function D(a){if(a!==undefined){this.error_=new A["default"](a);this.trigger("error")}return this.error_};b.prototype.played=function G(){if(this.hasStarted_){return(0,x.createTimeRange)(0,0)}return(0,x.createTimeRange)()};b.prototype.setCurrentTime=function H(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};b.prototype.initTextTrackListeners=function M(){var a=u.bind(this,function(){this.trigger("texttrackchange")});var b=this.textTracks();if(!b){return}b.addEventListener("removetrack",a);b.addEventListener("addtrack",a);this.on("dispose",u.bind(this,function(){b.removeEventListener("removetrack",a);b.removeEventListener("addtrack",a)}))};b.prototype.initTrackListeners=function N(){var a=this;var b=["video","audio"];b.forEach(function(b){var c=function e(){a.trigger(b+"trackchange")};var d=a[b+"Tracks"]();d.addEventListener("removetrack",c);d.addEventListener("addtrack",c);a.on("dispose",function(){d.removeEventListener("removetrack",c);d.removeEventListener("addtrack",c)})})};b.prototype.addWebVttScript_=function O(){var a=this;if(C["default"].WebVTT){return}if(E["default"].body.contains(this.el())){var b={};if(!this.options_["vtt.js"]&&(0,F.isPlain)(b)&&Object.keys(b).length>0){this.trigger("vttjsloaded");return}var c=E["default"].createElement("script");c.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js";c.onload=function(){a.trigger("vttjsloaded")};c.onerror=function(){a.trigger("vttjserror")};this.on("dispose",function(){c.onload=null;c.onerror=null});C["default"].WebVTT=true;this.el().parentNode.appendChild(c)}else{this.ready(this.addWebVttScript_)}};b.prototype.emulateTextTracks=function P(){var a=this;var b=this.textTracks();if(!b){return}var c=this.remoteTextTracks();var d=function h(a){return b.addTrack_(a.track)};var e=function i(a){return b.removeTrack_(a.track)};c.on("addtrack",d);c.on("removetrack",e);this.addWebVttScript_();var f=function j(){return a.trigger("texttrackchange")};var g=function k(){f();for(var a=0;a<b.length;a++){var c=b[a];c.removeEventListener("cuechange",f);if(c.mode==="showing"){c.addEventListener("cuechange",f)}}};g();b.addEventListener("change",g);b.addEventListener("addtrack",g);b.addEventListener("removetrack",g);this.on("dispose",function(){c.off("addtrack",d);c.off("removetrack",e);b.removeEventListener("change",g);b.removeEventListener("addtrack",g);b.removeEventListener("removetrack",g);for(var a=0;a<b.length;a++){var h=b[a];h.removeEventListener("cuechange",f)}})};b.prototype.videoTracks=function Q(){this.videoTracks_=this.videoTracks_||new q["default"];return this.videoTracks_};b.prototype.audioTracks=function R(){this.audioTracks_=this.audioTracks_||new s["default"];return this.audioTracks_};b.prototype.textTracks=function S(){this.textTracks_=this.textTracks_||new o["default"];return this.textTracks_};b.prototype.remoteTextTracks=function T(){this.remoteTextTracks_=this.remoteTextTracks_||new o["default"];return this.remoteTextTracks_};b.prototype.remoteTextTrackEls=function U(){this.remoteTextTrackEls_=this.remoteTextTrackEls_||new i["default"];return this.remoteTextTrackEls_};b.prototype.addTextTrack=function V(a,b,c){if(!a){throw new Error("TextTrack kind is required but was not provided")}return L(this,a,b,c)};b.prototype.createRemoteTextTrack=function W(a){var b=(0,k["default"])(a,{tech:this});return new g["default"](b)};b.prototype.addRemoteTextTrack=function X(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=arguments[1];var c=this.createRemoteTextTrack(a);if(b!==true&&b!==false){w["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js');b=true}this.remoteTextTrackEls().addTrackElement_(c);this.remoteTextTracks().addTrack_(c.track);if(b!==true){this.autoRemoteTextTracks_.addTrack_(c.track)}return c};b.prototype.removeRemoteTextTrack=function Y(a){var b=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(b);this.remoteTextTracks().removeTrack_(a);this.autoRemoteTextTracks_.removeTrack_(a)};b.prototype.getVideoPlaybackQuality=function Z(){return{}};b.prototype.setPoster=function $(){};b.prototype.playsinline=function _(){};b.prototype.setPlaysinline=function aa(){};b.prototype.canPlayType=function ba(){return""};b.isTech=function ca(a){return a.prototype instanceof b||a instanceof b||a===b};b.registerTech=function da(a,c){if(!b.techs_){b.techs_={}}if(!b.isTech(c)){throw new Error("Tech "+a+" must be a Tech")}b.techs_[a]=c;return c};b.getTech=function ea(a){if(b.techs_&&b.techs_[a]){return b.techs_[a]}if(C["default"]&&C["default"].videojs&&C["default"].videojs[a]){w["default"].warn("The "+a+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return C["default"].videojs[a]}};return b}(e["default"]);M.prototype.textTracks_;M.prototype.audioTracks_;M.prototype.videoTracks_;M.prototype.featuresVolumeControl=true;M.prototype.featuresFullscreenResize=false;M.prototype.featuresPlaybackRate=false;M.prototype.featuresProgressEvents=false;M.prototype.featuresTimeupdateEvents=false;M.prototype.featuresNativeTextTracks=false;M.withSourceHandlers=function(a){a.registerSourceHandler=function(b,c){var d=a.sourceHandlers;if(!d){d=a.sourceHandlers=[]}if(c===undefined){c=d.length}d.splice(c,0,b)};a.canPlayType=function(b){var c=a.sourceHandlers||[];var d=void 0;for(var e=0;e<c.length;e++){d=c[e].canPlayType(b);if(d){return d}}return""};a.selectSourceHandler=function(b,c){var d=a.sourceHandlers||[];var e=void 0;for(var f=0;f<d.length;f++){e=d[f].canHandleSource(b,c);if(e){return d[f]}}return null};a.canPlaySource=function(b,c){var d=a.selectSourceHandler(b,c);if(d){return d.canHandleSource(b,c)}return""};var b=["seekable","duration"];b.forEach(function(a){var b=this[a];if(typeof b!=="function"){return}this[a]=function(){if(this.sourceHandler_&&this.sourceHandler_[a]){return this.sourceHandler_[a].apply(this.sourceHandler_,arguments)}return b.apply(this,arguments)}},a.prototype);a.prototype.setSource=function(b){var c=a.selectSourceHandler(b,this.options_);if(!c){if(a.nativeSourceHandler){c=a.nativeSourceHandler}else{w["default"].error("No source hander found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);if(c!==a.nativeSourceHandler){this.currentSource_=b;this.off(this.el_,"loadstart",a.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",a.prototype.successiveLoadStartListener_);this.one(this.el_,"loadstart",a.prototype.firstLoadStartListener_)}this.sourceHandler_=c.handleSource(b,this,this.options_);this.on("dispose",this.disposeSourceHandler);return this};a.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",a.prototype.successiveLoadStartListener_)};a.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler();this.one(this.el_,"loadstart",a.prototype.successiveLoadStartListener_)};a.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){this.off(this.el_,"loadstart",a.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",a.prototype.successiveLoadStartListener_);if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};e["default"].registerComponent("Tech",M);e["default"].registerComponent("MediaTechController",M);M.registerTech("Tech",M);c["default"]=M},{46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,86:86,87:87,88:88,90:90,96:96,97:97}],63:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=k(d);var f=a(78);var g=j(f);var h=a(96);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function q(a,b){for(var c=0;c<a.length;c++){if(b.id===a[c].id){continue}a[c].enabled=false}};var p=function(a){n(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];l(this,b);var h=void 0;for(var j=f.length-1;j>=0;j--){if(f[j].enabled){o(f,f[j]);break}}if(g.IS_IE8){h=i["default"].createElement("custom");for(var k in e["default"].prototype){if(k!=="constructor"){h[k]=e["default"].prototype[k]}}for(var n in b.prototype){if(n!=="constructor"){h[n]=b.prototype[n]}}}h=(c=m(this,a.call(this,f,h)),c);h.changing_=false;return d=h,m(c,d)}b.prototype.addTrack_=function c(b){var c=this;if(b.enabled){o(this,b)}a.prototype.addTrack_.call(this,b);if(!b.addEventListener){return}b.addEventListener("enabledchange",function(){if(c.changing_){return}c.changing_=true;o(c,b);c.changing_=false;c.trigger("change")})};b.prototype.addTrack=function d(a){this.addTrack_(a)};b.prototype.removeTrack=function f(b){a.prototype.removeTrack_.call(this,b)};return b}(e["default"]);c["default"]=p},{74:74,78:78,96:96}],64:[function(a,b,c){"use strict";c.__esModule=true;var d=a(73);var e=a(75);var f=l(e);var g=a(87);var h=l(g);var i=a(78);var j=k(i);function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){var c,e;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};m(this,b);var g=(0,h["default"])(f,{kind:d.AudioTrackKind[f.kind]||""});var i=(c=n(this,a.call(this,g)),c);var k=false;if(j.IS_IE8){for(var l in b.prototype){if(l!=="constructor"){i[l]=b.prototype[l]}}}Object.defineProperty(i,"enabled",{get:function o(){return k},set:function p(a){if(typeof a!=="boolean"||a===k){return}k=a;this.trigger("enabledchange")}});if(g.enabled){i.enabled=g.enabled}i.loaded_=true;return e=i,n(c,e)}return b}(f["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],65:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=i(d);var f=a(96);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var k=function(){function a(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];j(this,a);var c=this;if(e.IS_IE8){c=g["default"].createElement("custom");for(var d in a.prototype){if(d!=="constructor"){c[d]=a.prototype[d]}}}c.trackElements_=[];Object.defineProperty(c,"length",{get:function i(){return this.trackElements_.length}});for(var f=0,h=b.length;f<h;f++){c.addTrackElement_(b[f])}if(e.IS_IE8){return c}}a.prototype.addTrackElement_=function b(a){var b=this.trackElements_.length;if(!(""+b in this)){Object.defineProperty(this,b,{get:function c(){return this.trackElements_[b]}})}if(this.trackElements_.indexOf(a)===-1){this.trackElements_.push(a)}};a.prototype.getTrackElementByTrack_=function c(a){var b=void 0;for(var c=0,d=this.trackElements_.length;c<d;c++){if(a===this.trackElements_[c].track){b=this.trackElements_[c];break}}return b};a.prototype.removeTrackElement_=function d(a){for(var b=0,c=this.trackElements_.length;b<c;b++){if(a===this.trackElements_[b]){this.trackElements_.splice(b,1);break}}};return a}();c["default"]=k},{78:78,96:96}],66:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=m(d);var f=a(96);var g=l(f);var h=a(42);var i=l(h);var j=a(72);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=0;var r=1;var s=2;var t=3;var u=function(a){p(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};n(this,b);var d=o(this,a.call(this));var f=void 0;var h=d;if(e.IS_IE8){h=g["default"].createElement("custom");for(var i in b.prototype){if(i!=="constructor"){h[i]=b.prototype[i]}}}var j=new k["default"](c);h.kind=j.kind;h.src=j.src;h.srclang=j.language;h.label=j.label;h["default"]=j["default"];Object.defineProperty(h,"readyState",{get:function m(){return f}});Object.defineProperty(h,"track",{get:function p(){return j}});f=q;j.addEventListener("loadeddata",function(){f=s;h.trigger({type:"load",target:h})});if(e.IS_IE8){var l;return l=h,o(d,l)}return d}return b}(i["default"]);u.prototype.allowedEvents_={load:"load"};u.NONE=q;u.LOADING=r;u.LOADED=s;u.ERROR=t;c["default"]=u},{42:42,72:72,78:78,96:96}],67:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=i(d);var f=a(96);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var k=function(){function a(b){j(this,a);var c=this;if(e.IS_IE8){c=g["default"].createElement("custom");for(var d in a.prototype){if(d!=="constructor"){c[d]=a.prototype[d]}}}a.prototype.setCues_.call(c,b);Object.defineProperty(c,"length",{get:function f(){return this.length_}});if(e.IS_IE8){return c}}a.prototype.setCues_=function b(a){var b=this.length||0;var c=0;var d=a.length;this.cues_=a;this.length_=a.length;var e=function f(a){if(!(""+a in this)){Object.defineProperty(this,""+a,{get:function b(){return this.cues_[a]}})}};if(b<d){c=b;for(;c<d;c++){e.call(this,c)}}};a.prototype.getCueById=function c(a){var b=null;for(var c=0,d=this.length;c<d;c++){var e=this[c];if(e.id===a){b=e;break}}return b};return a}();c["default"]=k},{78:78,96:96}],68:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(97);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o="#222";var p="#ccc";var q={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 r(a,b){return"rgba("+parseInt(a[1]+a[1],16)+","+parseInt(a[2]+a[2],16)+","+parseInt(a[3]+a[3],16)+","+b+")"}function s(a,b,c){try{a.style[b]=c}catch(d){return}}var t=function(a){n(b,a);function b(c,d,e){l(this,b);var f=m(this,a.call(this,c,d,e));c.on("loadstart",g.bind(f,f.toggleDisplay));c.on("texttrackchange",g.bind(f,f.updateDisplay));c.ready(g.bind(f,function(){if(c.tech_&&c.tech_.featuresNativeTextTracks){this.hide();return}c.on("fullscreenchange",g.bind(this,this.updateDisplay));var a=this.options_.playerOptions.tracks||[];for(var b=0;b<a.length;b++){this.player_.addRemoteTextTrack(a[b],true)}var d={captions:1,subtitles:1};var e=this.player_.textTracks();var f=void 0;var h=void 0;if(e){for(var i=0;i<e.length;i++){var j=e[i];if(j["default"]){if(j.kind==="descriptions"&&!f){f=j}else if(j.kind in d&&!h){h=j}}}if(h){h.mode="showing"}else if(f){f.mode="showing"}}}));return f}b.prototype.toggleDisplay=function c(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};b.prototype.createEl=function d(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};b.prototype.clearDisplay=function e(){if(typeof i["default"].WebVTT==="function"){i["default"].WebVTT.processCues(i["default"],[],this.el_)}};b.prototype.updateDisplay=function f(){var a=this.player_.textTracks();this.clearDisplay();if(!a){return}var b=null;var c=null;var d=a.length;while(d--){var e=a[d];if(e.mode==="showing"){if(e.kind==="descriptions"){b=e}else{c=e}}}if(c){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(c)}else if(b){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(b)}};b.prototype.updateForTrack=function h(a){if(typeof i["default"].WebVTT!=="function"||!a.activeCues){return}var b=this.player_.textTrackSettings.getValues();var c=[];for(var d=0;d<a.activeCues.length;d++){c.push(a.activeCues[d])}i["default"].WebVTT.processCues(i["default"],c,this.el_);var e=c.length;while(e--){var f=c[e];if(!f){continue}var g=f.displayState;if(b.color){g.firstChild.style.color=b.color}if(b.textOpacity){s(g.firstChild,"color",r(b.color||"#fff",b.textOpacity))}if(b.backgroundColor){g.firstChild.style.backgroundColor=b.backgroundColor}if(b.backgroundOpacity){s(g.firstChild,"backgroundColor",r(b.backgroundColor||"#000",b.backgroundOpacity))}if(b.windowColor){if(b.windowOpacity){s(g,"backgroundColor",r(b.windowColor,b.windowOpacity))}else{g.style.backgroundColor=b.windowColor}}if(b.edgeStyle){if(b.edgeStyle==="dropshadow"){g.firstChild.style.textShadow="2px 2px 3px "+o+", 2px 2px 4px "+o+", 2px 2px 5px "+o}else if(b.edgeStyle==="raised"){g.firstChild.style.textShadow="1px 1px "+o+", 2px 2px "+o+", 3px 3px "+o}else if(b.edgeStyle==="depressed"){g.firstChild.style.textShadow="1px 1px "+p+", 0 1px "+p+", -1px -1px "+o+", 0 -1px "+o}else if(b.edgeStyle==="uniform"){g.firstChild.style.textShadow="0 0 4px "+o+", 0 0 4px "+o+", 0 0 4px "+o+", 0 0 4px "+o}}if(b.fontPercent&&b.fontPercent!==1){var h=i["default"].parseFloat(g.style.fontSize);g.style.fontSize=h*b.fontPercent+"px";g.style.height="auto";g.style.top="auto";g.style.bottom="2px"}if(b.fontFamily&&b.fontFamily!=="default"){if(b.fontFamily==="small-caps"){g.firstChild.style.fontVariant="small-caps"}else{g.firstChild.style.fontFamily=q[b.fontFamily]}}}};return b}(e["default"]);e["default"].registerComponent("TextTrackDisplay",t);c["default"]=t},{5:5,83:83,97:97}],69:[function(a,b,c){"use strict";c.__esModule=true;var d=function g(a){var b=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(b,c,d){if(a[c]){b[c]=a[c]}return b},{cues:a.cues&&Array.prototype.map.call(a.cues,function(a){return{startTime:a.startTime,endTime:a.endTime,text:a.text,id:a.id}})});return b};var e=function h(a){var b=a.$$("track");var c=Array.prototype.map.call(b,function(a){return a.track});var e=Array.prototype.map.call(b,function(a){var b=d(a.track);if(a.src){b.src=a.src}return b});return e.concat(Array.prototype.filter.call(a.textTracks(),function(a){return c.indexOf(a)===-1}).map(d))};var f=function i(a,b){a.forEach(function(a){ var c=b.addRemoteTextTrack(a).track;if(!a.src&&a.cues){a.cues.forEach(function(a){return c.addCue(a)})}});return b.textTracks()};c["default"]={textTracksToJson:e,jsonToTextTracks:f,trackToJson_:d}},{}],70:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=m(d);var f=a(83);var g=l(f);var h=a(78);var i=l(h);var j=a(96);var k=m(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];n(this,b);var g=void 0;if(i.IS_IE8){g=k["default"].createElement("custom");for(var h in e["default"].prototype){if(h!=="constructor"){g[h]=e["default"].prototype[h]}}for(var j in b.prototype){if(j!=="constructor"){g[j]=b.prototype[j]}}}g=(c=o(this,a.call(this,f,g)),c);return d=g,o(c,d)}b.prototype.addTrack_=function c(b){a.prototype.addTrack_.call(this,b);b.addEventListener("modechange",g.bind(this,function(){this.trigger("change")}))};return b}(e["default"]);c["default"]=q},{74:74,78:78,83:83,96:96}],71:[function(a,b,c){"use strict";c.__esModule=true;var d=a(97);var e=p(d);var f=a(5);var g=p(f);var h=a(81);var i=a(83);var j=o(i);var k=a(88);var l=o(k);var m=a(86);var n=p(m);function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a){return a&&a.__esModule?a:{"default":a}}function q(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function r(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function s(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var t="vjs-text-track-settings";var u=["#000","Black"];var v=["#00F","Blue"];var w=["#0FF","Cyan"];var x=["#0F0","Green"];var y=["#F0F","Magenta"];var z=["#F00","Red"];var A=["#FFF","White"];var B=["#FF0","Yellow"];var C=["1","Opaque"];var D=["0.5","Semi-Transparent"];var E=["0","Transparent"];var F={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[u,A,z,x,v,B,y,w]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[C,D,E]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[A,u,z,x,v,B,y,w]},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 K(a){return a==="1.00"?null:Number(a)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[C,D]},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:[E,D,C]}};F.windowColor.options=F.backgroundColor.options;function G(a,b){if(b){a=b(a)}if(a&&a!=="none"){return a}}function H(a,b){var c=a.options[a.options.selectedIndex].value;return G(c,b)}function I(a,b,c){if(!b){return}for(var d=0;d<a.options.length;d++){if(G(a.options[d].value,c)===b){a.selectedIndex=d;break}}}var J=function(a){s(b,a);function b(c,d){q(this,b);var e=r(this,a.call(this,c,d));e.setDefaults();e.hide();e.updateDisplay=j.bind(e,e.updateDisplay);if(d.persistTextTrackSettings===undefined){e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings}e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings();e.hide()});e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults();e.updateDisplay()});l.each(F,function(a){e.on(e.$(a.selector),"change",e.updateDisplay)});if(e.options_.persistTextTrackSettings){e.restoreSettings()}return e}b.prototype.createElSelect_=function c(a){var b=this;var c=F[a];var d=c.id.replace("%s",this.id_);return[(0,h.createEl)("label",{className:"vjs-label",textContent:c.label},{"for":d}),(0,h.createEl)("select",{id:d},undefined,c.options.map(function(a){return(0,h.createEl)("option",{textContent:b.localize(a[1]),value:a[0]})}))]};b.prototype.createElFgColor_=function d(){var a=(0,h.createEl)("legend",{textContent:this.localize("Text")});var b=this.createElSelect_("color");var c=(0,h.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},undefined,this.createElSelect_("textOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElBgColor_=function f(){var a=(0,h.createEl)("legend",{textContent:this.localize("Background")});var b=this.createElSelect_("backgroundColor");var c=(0,h.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},undefined,this.createElSelect_("backgroundOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElWinColor_=function g(){var a=(0,h.createEl)("legend",{textContent:this.localize("Window")});var b=this.createElSelect_("windowColor");var c=(0,h.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},undefined,this.createElSelect_("windowOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElColors_=function i(){return(0,h.createEl)("div",{className:"vjs-tracksettings-colors"},undefined,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])};b.prototype.createElFont_=function k(){var a=(0,h.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},undefined,this.createElSelect_("fontPercent"));var b=(0,h.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},undefined,this.createElSelect_("edgeStyle"));var c=(0,h.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},undefined,this.createElSelect_("fontFamily"));return(0,h.createEl)("div",{className:"vjs-tracksettings-font"},undefined,[a,b,c])};b.prototype.createElControls_=function m(){var a=(0,h.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")});var b=(0,h.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,h.createEl)("div",{className:"vjs-tracksettings-controls"},undefined,[a,b])};b.prototype.createEl=function o(){var a=(0,h.createEl)("div",{className:"vjs-tracksettings"},undefined,[this.createElColors_(),this.createElFont_(),this.createElControls_()]);var b=(0,h.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"});var c=(0,h.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."});var d=(0,h.createEl)("div",undefined,{role:"document"},[b,c,a]);return(0,h.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":b.id,"aria-describedby":c.id},d)};b.prototype.getValues=function p(){var a=this;return l.reduce(F,function(b,c,d){var e=H(a.$(c.selector),c.parser);if(e!==undefined){b[d]=e}return b},{})};b.prototype.setValues=function u(a){var b=this;l.each(F,function(c,d){I(b.$(c.selector),a[d],c.parser)})};b.prototype.setDefaults=function v(){var a=this;l.each(F,function(b){var c=b.hasOwnProperty("default")?b["default"]:0;a.$(b.selector).selectedIndex=c})};b.prototype.restoreSettings=function w(){var a=void 0;try{a=JSON.parse(e["default"].localStorage.getItem(t))}catch(b){n["default"].warn(b)}if(a){this.setValues(a)}};b.prototype.saveSettings=function x(){if(!this.options_.persistTextTrackSettings){return}var a=this.getValues();try{if(Object.keys(a).length){e["default"].localStorage.setItem(t,JSON.stringify(a))}else{e["default"].localStorage.removeItem(t)}}catch(b){n["default"].warn(b)}};b.prototype.updateDisplay=function y(){var a=this.player_.getChild("textTrackDisplay");if(a){a.updateDisplay()}};return b}(g["default"]);g["default"].registerComponent("TextTrackSettings",J);c["default"]=J},{5:5,81:81,83:83,86:86,88:88,97:97}],72:[function(a,b,c){"use strict";c.__esModule=true;var d=a(67);var e=w(d);var f=a(83);var g=v(f);var h=a(73);var i=a(86);var j=w(i);var k=a(97);var l=w(k);var m=a(75);var n=w(m);var o=a(92);var p=a(103);var q=w(p);var r=a(87);var s=w(r);var t=a(78);var u=v(t);function v(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function w(a){return a&&a.__esModule?a:{"default":a}}function x(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function y(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function z(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var A=function D(a,b){var c=new l["default"].WebVTT.Parser(l["default"],l["default"].vttjs,l["default"].WebVTT.StringDecoder());var d=[];c.oncue=function(a){b.addCue(a)};c.onparsingerror=function(a){d.push(a)};c.onflush=function(){b.trigger({type:"loadeddata",target:b})};c.parse(a);if(d.length>0){if(l["default"].console&&l["default"].console.groupCollapsed){l["default"].console.groupCollapsed("Text Track parsing errors for "+b.src)}d.forEach(function(a){return j["default"].error(a)});if(l["default"].console&&l["default"].console.groupEnd){l["default"].console.groupEnd()}}c.flush()};var B=function E(a,b){var c={uri:a};var d=(0,o.isCrossOrigin)(a);if(d){c.cors=d}(0,q["default"])(c,g.bind(this,function(a,c,d){if(a){return j["default"].error(a,c)}b.loaded_=true;if(typeof l["default"].WebVTT!=="function"){if(b.tech_){var e=function f(){return A(d,b)};b.tech_.on("vttjsloaded",e);b.tech_.on("vttjserror",function(){j["default"].error("vttjs failed to load, stopping trying to process "+b.src);b.tech_.off("vttjsloaded",e)})}}else{A(d,b)}}))};var C=function(a){z(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};x(this,b);if(!f.tech){throw new Error("A tech was not provided.")}var i=(0,s["default"])(f,{kind:h.TextTrackKind[f.kind]||"subtitles",language:f.language||f.srclang||""});var j=h.TextTrackMode[i.mode]||"disabled";var k=i["default"];if(i.kind==="metadata"||i.kind==="chapters"){j="hidden"}var l=(c=y(this,a.call(this,i)),c);l.tech_=i.tech;if(u.IS_IE8){for(var m in b.prototype){if(m!=="constructor"){l[m]=b.prototype[m]}}}l.cues_=[];l.activeCues_=[];var n=new e["default"](l.cues_);var o=new e["default"](l.activeCues_);var p=false;var q=g.bind(l,function(){this.activeCues;if(p){this.trigger("cuechange");p=false}});if(j!=="disabled"){l.tech_.ready(function(){l.tech_.on("timeupdate",q)},true)}Object.defineProperty(l,"default",{get:function r(){return k},set:function t(){}});Object.defineProperty(l,"mode",{get:function v(){return j},set:function w(a){var b=this;if(!h.TextTrackMode[a]){return}j=a;if(j==="showing"){this.tech_.ready(function(){b.tech_.on("timeupdate",q)},true)}this.trigger("modechange")}});Object.defineProperty(l,"cues",{get:function z(){if(!this.loaded_){return null}return n},set:function A(){}});Object.defineProperty(l,"activeCues",{get:function C(){if(!this.loaded_){return null}if(this.cues.length===0){return o}var a=this.tech_.currentTime();var b=[];for(var c=0,d=this.cues.length;c<d;c++){var e=this.cues[c];if(e.startTime<=a&&e.endTime>=a){b.push(e)}else if(e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a){b.push(e)}}p=false;if(b.length!==this.activeCues_.length){p=true}else{for(var f=0;f<b.length;f++){if(this.activeCues_.indexOf(b[f])===-1){p=true}}}this.activeCues_=b;o.setCues_(this.activeCues_);return o},set:function D(){}});if(i.src){l.src=i.src;B(i.src,l)}else{l.loaded_=true}return d=l,y(c,d)}b.prototype.addCue=function c(a){var b=a;if(l["default"].vttjs&&!(a instanceof l["default"].vttjs.VTTCue)){b=new l["default"].vttjs.VTTCue(a.startTime,a.endTime,a.text);for(var c in a){if(!(c in b)){b[c]=a[c]}}b.id=a.id;b.originalCue_=a}var d=this.tech_.textTracks();if(d){for(var e=0;e<d.length;e++){if(d[e]!==this){d[e].removeCue(b)}}}this.cues_.push(b);this.cues.setCues_(this.cues_)};b.prototype.removeCue=function d(a){var b=this.cues_.length;while(b--){var c=this.cues_[b];if(c===a||c.originalCue_&&c.originalCue_===a){this.cues_.splice(b,1);this.cues.setCues_(this.cues_);break}}};return b}(n["default"]);C.prototype.allowedEvents_={cuechange:"cuechange"};c["default"]=C},{103:103,67:67,73:73,75:75,78:78,83:83,86:86,87:87,92:92,97:97}],73:[function(a,b,c){"use strict";c.__esModule=true;var d=c.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var e=c.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var f=c.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var g=c.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(a,b,c){"use strict";c.__esModule=true;var d=a(42);var e=k(d);var f=a(78);var g=j(f);var h=a(96);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var d;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;l(this,b);var f=m(this,a.call(this));if(!e){e=f;if(g.IS_IE8){e=i["default"].createElement("custom");for(var h in b.prototype){if(h!=="constructor"){e[h]=b.prototype[h]}}}}e.tracks_=[];Object.defineProperty(e,"length",{get:function k(){return this.tracks_.length}});for(var j=0;j<c.length;j++){e.addTrack_(c[j])}return d=e,m(f,d)}b.prototype.addTrack_=function c(a){var b=this.tracks_.length;if(!(""+b in this)){Object.defineProperty(this,b,{get:function c(){return this.tracks_[b]}})}if(this.tracks_.indexOf(a)===-1){this.tracks_.push(a);this.trigger({track:a,type:"addtrack"})}};b.prototype.removeTrack_=function d(a){var b=void 0;for(var c=0,d=this.length;c<d;c++){if(this[c]===a){b=this[c];if(b.off){b.off()}this.tracks_.splice(c,1);break}}if(!b){return}this.trigger({track:b,type:"removetrack"})};b.prototype.getTrackById=function e(a){var b=null;for(var c=0,d=this.length;c<d;c++){var e=this[c];if(e.id===a){b=e;break}}return b};return b}(e["default"]);o.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var p in o.prototype.allowedEvents_){o.prototype["on"+p]=null}c["default"]=o},{42:42,78:78,96:96}],75:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=m(d);var f=a(96);var g=l(f);var h=a(85);var i=m(h);var j=a(42);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){var c;var d=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};n(this,b);var f=o(this,a.call(this));var h=f;if(e.IS_IE8){h=g["default"].createElement("custom");for(var j in b.prototype){if(j!=="constructor"){h[j]=b.prototype[j]}}}var k={id:d.id||"vjs_track_"+i.newGUID(),kind:d.kind||"",label:d.label||"",language:d.language||""};var l=function p(a){Object.defineProperty(h,a,{get:function b(){return k[a]},set:function c(){}})};for(var m in k){l(m)}return c=h,o(f,c)}return b}(k["default"]);c["default"]=q},{42:42,78:78,85:85,96:96}],76:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=k(d);var f=a(78);var g=j(f);var h=a(96);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function q(a,b){for(var c=0;c<a.length;c++){if(b.id===a[c].id){continue}a[c].selected=false}};var p=function(a){n(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];l(this,b);var h=void 0;for(var j=f.length-1;j>=0;j--){if(f[j].selected){o(f,f[j]);break}}if(g.IS_IE8){h=i["default"].createElement("custom");for(var k in e["default"].prototype){if(k!=="constructor"){h[k]=e["default"].prototype[k]}}for(var n in b.prototype){if(n!=="constructor"){h[n]=b.prototype[n]}}}h=(c=m(this,a.call(this,f,h)),c);h.changing_=false;Object.defineProperty(h,"selectedIndex",{get:function p(){for(var a=0;a<this.length;a++){if(this[a].selected){return a}}return-1},set:function q(){}});return d=h,m(c,d)}b.prototype.addTrack_=function c(b){var c=this;if(b.selected){o(this,b)}a.prototype.addTrack_.call(this,b);if(!b.addEventListener){return}b.addEventListener("selectedchange",function(){if(c.changing_){return}c.changing_=true;o(c,b);c.changing_=false;c.trigger("change")})};b.prototype.addTrack=function d(a){this.addTrack_(a)};b.prototype.removeTrack=function f(b){a.prototype.removeTrack_.call(this,b)};return b}(e["default"]);c["default"]=p},{74:74,78:78,96:96}],77:[function(a,b,c){"use strict";c.__esModule=true;var d=a(73);var e=a(75);var f=l(e);var g=a(87);var h=l(g);var i=a(78);var j=k(i);function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){var c,e;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};m(this,b);var g=(0,h["default"])(f,{kind:d.VideoTrackKind[f.kind]||""});var i=(c=n(this,a.call(this,g)),c);var k=false;if(j.IS_IE8){for(var l in b.prototype){if(l!=="constructor"){i[l]=b.prototype[l]}}}Object.defineProperty(i,"selected",{get:function o(){return k},set:function p(a){if(typeof a!=="boolean"||a===k){return}k=a;this.trigger("selectedchange")}});if(g.selected){i.selected=g.selected}return e=i,n(c,e)}return b}(f["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],78:[function(a,b,c){"use strict";c.__esModule=true;c.BACKGROUND_SIZE_SUPPORTED=c.TOUCH_ENABLED=c.IS_ANY_SAFARI=c.IS_SAFARI=c.IE_VERSION=c.IS_IE8=c.CHROME_VERSION=c.IS_CHROME=c.IS_EDGE=c.IS_FIREFOX=c.IS_NATIVE_ANDROID=c.IS_OLD_ANDROID=c.ANDROID_VERSION=c.IS_ANDROID=c.IOS_VERSION=c.IS_IOS=c.IS_IPOD=c.IS_IPHONE=c.IS_IPAD=undefined;var d=a(81);var e=i(d);var f=a(97);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var j=g["default"].navigator&&g["default"].navigator.userAgent||"";var k=/AppleWebKit\/([\d.]+)/i.exec(j);var l=k?parseFloat(k.pop()):null;var m=c.IS_IPAD=/iPad/i.test(j);var n=c.IS_IPHONE=/iPhone/i.test(j)&&!m;var o=c.IS_IPOD=/iPod/i.test(j);var p=c.IS_IOS=n||m||o;var q=c.IOS_VERSION=function(){var a=j.match(/OS (\d+)_/i);if(a&&a[1]){return a[1]}return null}();var r=c.IS_ANDROID=/Android/i.test(j);var s=c.ANDROID_VERSION=function(){var a=j.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a){return null}var b=a[1]&&parseFloat(a[1]);var c=a[2]&&parseFloat(a[2]);if(b&&c){return parseFloat(a[1]+"."+a[2])}else if(b){return b}return null}();var t=c.IS_OLD_ANDROID=r&&/webkit/i.test(j)&&s<2.3;var u=c.IS_NATIVE_ANDROID=r&&s<5&&l<537;var v=c.IS_FIREFOX=/Firefox/i.test(j);var w=c.IS_EDGE=/Edge/i.test(j);var x=c.IS_CHROME=!w&&/Chrome/i.test(j);var y=c.CHROME_VERSION=function(){var a=j.match(/Chrome\/(\d+)/);if(a&&a[1]){return parseFloat(a[1])}return null}();var z=c.IS_IE8=/MSIE\s8\.0/.test(j);var A=c.IE_VERSION=function(){var a=/MSIE\s(\d+)\.\d/.exec(j);var b=a&&parseFloat(a[1]);if(!b&&/Trident\/7.0/i.test(j)&&/rv:11.0/.test(j)){b=11}return b}();var B=c.IS_SAFARI=/Safari/i.test(j)&&!x&&!r&&!w;var C=c.IS_ANY_SAFARI=B||p;var D=c.TOUCH_ENABLED=e.isReal()&&("ontouchstart"in g["default"]||g["default"].DocumentTouch&&g["default"].document instanceof g["default"].DocumentTouch);var E=c.BACKGROUND_SIZE_SUPPORTED=e.isReal()&&"backgroundSize"in g["default"].document.createElement("video").style},{81:81,97:97}],79:[function(a,b,c){"use strict";c.__esModule=true;c.bufferedPercent=e;var d=a(90);function e(a,b){var c=0;var e=void 0;var f=void 0;if(!b){return 0}if(!a||!a.length){a=(0,d.createTimeRange)(0,0)}for(var g=0;g<a.length;g++){e=a.start(g);f=a.end(g);if(f>b){f=b}c+=f-e}return c/b}},{90:90}],80:[function(a,b,c){"use strict";c.__esModule=true;c["default"]=g;var d=a(97);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!a||!b){return""}if(typeof e["default"].getComputedStyle==="function"){var c=e["default"].getComputedStyle(a);return c?c[b]:""}return a.currentStyle[b]||""}},{97:97}],81:[function(a,b,c){"use strict";c.__esModule=true;c.$$=c.$=undefined;var d=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 ","."]);c.isReal=v;c.isEl=w;c.getEl=y;c.createEl=z;c.textContent=A;c.insertElFirst=B;c.getElData=E;c.hasElData=F;c.removeElData=G;c.hasElClass=H;c.addElClass=I;c.removeElClass=J;c.toggleElClass=K;c.setElAttributes=L;c.getElAttributes=M;c.getAttribute=N;c.setAttribute=O;c.removeAttribute=P;c.blockTextSelection=Q;c.unblockTextSelection=R;c.findElPosition=S;c.getPointerPosition=T;c.isTextNode=U;c.emptyEl=V;c.normalizeContent=W;c.appendContent=X;c.insertContent=Y;var e=a(96);var f=q(e);var g=a(97);var h=q(g);var i=a(85);var j=p(i);var k=a(86);var l=q(k);var m=a(102);var n=q(m);var o=a(88);function p(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function q(a){return a&&a.__esModule?a:{"default":a}}function r(a,b){a.raw=b;return a}function s(a){return typeof a==="string"&&/\S/.test(a)}function t(a){if(/\s/.test(a)){throw new Error("class has illegal whitespace characters")}}function u(a){return new RegExp("(^|\\s)"+a+"($|\\s)")}function v(){return f["default"]===h["default"].document&&typeof f["default"].createElement!=="undefined"}function w(a){return(0,o.isObject)(a)&&a.nodeType===1}function x(a){return function(b,c){if(!s(b)){return f["default"][a](null)}if(s(c)){c=f["default"].querySelector(c)}var d=w(c)?c:f["default"];return d[a]&&d[a](b)}}function y(a){if(a.indexOf("#")===0){a=a.slice(1)}return f["default"].getElementById(a)}function z(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var e=arguments[3];var g=f["default"].createElement(a);Object.getOwnPropertyNames(b).forEach(function(a){var c=b[a];if(a.indexOf("aria-")!==-1||a==="role"||a==="type"){l["default"].warn((0,n["default"])(d,a,c));g.setAttribute(a,c)}else if(a==="textContent"){A(g,c)}else{g[a]=c}});Object.getOwnPropertyNames(c).forEach(function(a){g.setAttribute(a,c[a])});if(e){X(g,e)}return g}function A(a,b){if(typeof a.textContent==="undefined"){a.innerText=b}else{a.textContent=b}return a}function B(a,b){if(b.firstChild){b.insertBefore(a,b.firstChild)}else{b.appendChild(a)}}var C={};var D="vdata"+(new Date).getTime();function E(a){var b=a[D];if(!b){b=a[D]=j.newGUID()}if(!C[b]){C[b]={}}return C[b]}function F(a){var b=a[D];if(!b){return false}return!!Object.getOwnPropertyNames(C[b]).length}function G(a){var b=a[D];if(!b){return}delete C[b];try{delete a[D]}catch(c){if(a.removeAttribute){a.removeAttribute(D)}else{a[D]=null}}}function H(a,b){t(b);if(a.classList){return a.classList.contains(b)}return u(b).test(a.className)}function I(a,b){if(a.classList){a.classList.add(b)}else if(!H(a,b)){a.className=(a.className+" "+b).trim()}return a}function J(a,b){if(a.classList){a.classList.remove(b)}else{t(b);a.className=a.className.split(/\s+/).filter(function(a){return a!==b}).join(" ")}return a}function K(a,b,c){var d=H(a,b);if(typeof c==="function"){c=c(a,b)}if(typeof c!=="boolean"){c=!d}if(c===d){return}if(c){I(a,b)}else{J(a,b)}return a}function L(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];if(d===null||typeof d==="undefined"||d===false){a.removeAttribute(c)}else{a.setAttribute(c,d===true?"":d)}})}function M(a){var b={};var c=","+"autoplay,controls,playsinline,loop,muted,default,defaultMuted"+",";if(a&&a.attributes&&a.attributes.length>0){var d=a.attributes;for(var e=d.length-1;e>=0;e--){var f=d[e].name;var g=d[e].value;if(typeof a[f]==="boolean"||c.indexOf(","+f+",")!==-1){g=g!==null?true:false}b[f]=g}}return b}function N(a,b){return a.getAttribute(b)}function O(a,b,c){a.setAttribute(b,c)}function P(a,b){a.removeAttribute(b)}function Q(){f["default"].body.focus();f["default"].onselectstart=function(){return false}}function R(){f["default"].onselectstart=function(){return true}}function S(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode){b=a.getBoundingClientRect()}if(!b){return{left:0,top:0}}var c=f["default"].documentElement;var d=f["default"].body;var e=c.clientLeft||d.clientLeft||0;var g=h["default"].pageXOffset||d.scrollLeft;var i=b.left+g-e;var j=c.clientTop||d.clientTop||0;var k=h["default"].pageYOffset||d.scrollTop;var l=b.top+k-j;return{left:Math.round(i),top:Math.round(l)}}function T(a,b){var c={};var d=S(a);var e=a.offsetWidth;var f=a.offsetHeight;var g=d.top;var h=d.left;var i=b.pageY;var j=b.pageX;if(b.changedTouches){j=b.changedTouches[0].pageX;i=b.changedTouches[0].pageY}c.y=Math.max(0,Math.min(1,(g-i+f)/f));c.x=Math.max(0,Math.min(1,(j-h)/e));return c}function U(a){return(0,o.isObject)(a)&&a.nodeType===3}function V(a){while(a.firstChild){a.removeChild(a.firstChild)}return a}function W(a){if(typeof a==="function"){a=a()}return(Array.isArray(a)?a:[a]).map(function(a){if(typeof a==="function"){a=a()}if(w(a)||U(a)){return a}if(typeof a==="string"&&/\S/.test(a)){return f["default"].createTextNode(a)}}).filter(function(a){return a})}function X(a,b){W(b).forEach(function(b){return a.appendChild(b)});return a}function Y(a,b){return X(V(a),b)}var Z=c.$=x("querySelector");var $=c.$$=x("querySelectorAll")},{102:102,85:85,86:86,88:88,96:96,97:97}],82:[function(a,b,c){"use strict";c.__esModule=true;c.fixEvent=r;c.on=u;c.off=v;c.trigger=w;c.one=x;var d=a(81);var e=o(d);var f=a(85);var g=o(f);var h=a(86);var i=n(h);var j=a(97);var k=n(j);var l=a(96);var m=n(l);function n(a){return a&&a.__esModule?a:{"default":a}}function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a,b){var c=e.getElData(a);if(c.handlers[b].length===0){delete c.handlers[b];if(a.removeEventListener){a.removeEventListener(b,c.dispatcher,false)}else if(a.detachEvent){a.detachEvent("on"+b,c.dispatcher)}}if(Object.getOwnPropertyNames(c.handlers).length<=0){delete c.handlers;delete c.dispatcher;delete c.disabled}if(Object.getOwnPropertyNames(c).length===0){e.removeElData(a)}}function q(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function r(a){function b(){return true}function c(){return false}if(!a||!a.isPropagationStopped){var d=a||k["default"].event; a={};for(var e in d){if(e!=="layerX"&&e!=="layerY"&&e!=="keyLocation"&&e!=="webkitMovementX"&&e!=="webkitMovementY"){if(!(e==="returnValue"&&d.preventDefault)){a[e]=d[e]}}}if(!a.target){a.target=a.srcElement||m["default"]}if(!a.relatedTarget){a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement}a.preventDefault=function(){if(d.preventDefault){d.preventDefault()}a.returnValue=false;d.returnValue=false;a.defaultPrevented=true};a.defaultPrevented=false;a.stopPropagation=function(){if(d.stopPropagation){d.stopPropagation()}a.cancelBubble=true;d.cancelBubble=true;a.isPropagationStopped=b};a.isPropagationStopped=c;a.stopImmediatePropagation=function(){if(d.stopImmediatePropagation){d.stopImmediatePropagation()}a.isImmediatePropagationStopped=b;a.stopPropagation()};a.isImmediatePropagationStopped=c;if(a.clientX!==null&&a.clientX!==undefined){var f=m["default"].documentElement;var g=m["default"].body;a.pageX=a.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0);a.pageY=a.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)}a.which=a.charCode||a.keyCode;if(a.button!==null&&a.button!==undefined){a.button=a.button&1?0:a.button&4?1:a.button&2?2:0}}return a}var s=false;(function(){try{var a=Object.defineProperty({},"passive",{get:function c(){s=true}});k["default"].addEventListener("test",null,a)}catch(b){}})();var t=["touchstart","touchmove"];function u(a,b,c){if(Array.isArray(b)){return q(u,a,b,c)}var d=e.getElData(a);if(!d.handlers){d.handlers={}}if(!d.handlers[b]){d.handlers[b]=[]}if(!c.guid){c.guid=g.newGUID()}d.handlers[b].push(c);if(!d.dispatcher){d.disabled=false;d.dispatcher=function(b,c){if(d.disabled){return}b=r(b);var e=d.handlers[b.type];if(e){var f=e.slice(0);for(var g=0,h=f.length;g<h;g++){if(b.isImmediatePropagationStopped()){break}else{try{f[g].call(a,b,c)}catch(j){i["default"].error(j)}}}}}}if(d.handlers[b].length===1){if(a.addEventListener){var f=false;if(s&&t.indexOf(b)>-1){f={passive:true}}a.addEventListener(b,d.dispatcher,f)}else if(a.attachEvent){a.attachEvent("on"+b,d.dispatcher)}}}function v(a,b,c){if(!e.hasElData(a)){return}var d=e.getElData(a);if(!d.handlers){return}if(Array.isArray(b)){return q(v,a,b,c)}var f=function j(b){d.handlers[b]=[];p(a,b)};if(!b){for(var g in d.handlers){f(g)}return}var h=d.handlers[b];if(!h){return}if(!c){f(b);return}if(c.guid){for(var i=0;i<h.length;i++){if(h[i].guid===c.guid){h.splice(i--,1)}}}p(a,b)}function w(a,b,c){var d=e.hasElData(a)?e.getElData(a):{};var f=a.parentNode||a.ownerDocument;if(typeof b==="string"){b={type:b,target:a}}b=r(b);if(d.dispatcher){d.dispatcher.call(a,b,c)}if(f&&!b.isPropagationStopped()&&b.bubbles===true){w.call(null,f,b,c)}else if(!f&&!b.defaultPrevented){var g=e.getElData(b.target);if(b.target[b.type]){g.disabled=true;if(typeof b.target[b.type]==="function"){b.target[b.type]()}g.disabled=false}}return!b.defaultPrevented}function x(a,b,c){if(Array.isArray(b)){return q(x,a,b,c)}var d=function e(){v(a,b,e);c.apply(this,arguments)};d.guid=c.guid=c.guid||g.newGUID();u(a,b,d)}},{81:81,85:85,86:86,96:96,97:97}],83:[function(a,b,c){"use strict";c.__esModule=true;c.throttle=c.bind=undefined;var d=a(85);var e=c.bind=function g(a,b,c){if(!b.guid){b.guid=(0,d.newGUID)()}var e=function f(){return b.apply(a,arguments)};e.guid=c?c+"_"+b.guid:b.guid;return e};var f=c.throttle=function h(a,b){var c=Date.now();var d=function e(){var d=Date.now();if(d-c>=b){a.apply(undefined,arguments);c=d}};return d}},{85:85}],84:[function(a,b,c){"use strict";c.__esModule=true;function d(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a;a=a<0?0:a;var c=Math.floor(a%60);var d=Math.floor(a/60%60);var e=Math.floor(a/3600);var f=Math.floor(b/60%60);var g=Math.floor(b/3600);if(isNaN(a)||a===Infinity){e=d=c="-"}e=e>0||g>0?e+":":"";d=((e||f>=10)&&d<10?"0"+d:d)+":";c=c<10?"0"+c:c;return e+d+c}c["default"]=d},{}],85:[function(a,b,c){"use strict";c.__esModule=true;c.newGUID=e;var d=1;function e(){return d++}},{}],86:[function(a,b,c){"use strict";c.__esModule=true;c.logByType=undefined;var d=a(97);var e=h(d);var f=a(78);var g=a(88);function h(a){return a&&a.__esModule?a:{"default":a}}var i=void 0;var j=c.logByType=function k(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!f.IE_VERSION&&f.IE_VERSION<11;if(a!=="log"){b.unshift(a.toUpperCase()+":")}i.history.push(b);b.unshift("VIDEOJS:");var d=e["default"].console&&e["default"].console[a];if(!d){return}if(c){b=b.map(function(a){if((0,g.isObject)(a)||Array.isArray(a)){try{return JSON.stringify(a)}catch(b){return String(a)}}return String(a)}).join(" ")}if(!d.apply){d(b)}else{d[Array.isArray(b)?"apply":"call"](e["default"].console,b)}};i=function l(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}j("log",b)};i.history=[];i.error=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return j("error",b)};i.warn=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return j("warn",b)};c["default"]=i},{78:78,88:88,97:97}],87:[function(a,b,c){"use strict";c.__esModule=true;c["default"]=e;var d=a(88);function e(){var a={};for(var b=arguments.length,c=Array(b),f=0;f<b;f++){c[f]=arguments[f]}c.forEach(function(b){if(!b){return}(0,d.each)(b,function(b,c){if(!(0,d.isPlain)(b)){a[c]=b;return}if(!(0,d.isPlain)(a[c])){a[c]={}}a[c]=e(a[c],b)})});return a}},{88:88}],88:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};c.each=g;c.reduce=h;c.assign=i;c.isObject=j;c.isPlain=k;var e=Object.prototype.toString;var f=function l(a){return j(a)?Object.keys(a):[]};function g(a,b){f(a).forEach(function(c){return b(a[c],c)})}function h(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return f(a).reduce(function(c,d){return b(c,a[d],d)},c)}function i(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d<b;d++){c[d-1]=arguments[d]}if(Object.assign){return Object.assign.apply(Object,[a].concat(c))}c.forEach(function(b){if(!b){return}g(b,function(b,c){a[c]=b})});return a}function j(a){return!!a&&(typeof a==="undefined"?"undefined":d(a))==="object"}function k(a){return j(a)&&e.call(a)==="[object Object]"&&a.constructor===Object}},{}],89:[function(a,b,c){"use strict";c.__esModule=true;c.setTextContent=c.createStyleElement=undefined;var d=a(96);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g=c.createStyleElement=function i(a){var b=e["default"].createElement("style");b.className=a;return b};var h=c.setTextContent=function j(a,b){if(a.styleSheet){a.styleSheet.cssText=b}else{a.textContent=b}}},{96:96}],90:[function(a,b,c){"use strict";c.__esModule=true;c.createTimeRange=undefined;c.createTimeRanges=j;var d=a(86);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b,c){if(b<0||b>c){throw new Error("Failed to execute '"+a+"' on 'TimeRanges': The index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}}function h(a,b,c,d){if(d===undefined){e["default"].warn("DEPRECATED: Function '"+a+"' on 'TimeRanges' called without an index argument.");d=0}g(a,d,c.length-1);return c[d][b]}function i(a){if(a===undefined||a.length===0){return{length:0,start:function b(){throw new Error("This TimeRanges object is empty")},end:function c(){throw new Error("This TimeRanges object is empty")}}}return{length:a.length,start:h.bind(null,"start",0,a),end:h.bind(null,"end",1,a)}}function j(a,b){if(Array.isArray(a)){return i(a)}else if(a===undefined||b===undefined){return i()}return i([[a,b]])}c.createTimeRange=j},{86:86}],91:[function(a,b,c){"use strict";c.__esModule=true;function d(a){if(typeof a!=="string"){return a}return a.charAt(0).toUpperCase()+a.slice(1)}c["default"]=d},{}],92:[function(a,b,c){"use strict";c.__esModule=true;c.isCrossOrigin=c.getFileExtension=c.getAbsoluteURL=c.parseUrl=undefined;var d=a(96);var e=h(d);var f=a(97);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}var i=c.parseUrl=function m(a){var b=["protocol","hostname","port","pathname","search","hash","host"];var c=e["default"].createElement("a");c.href=a;var d=c.host===""&&c.protocol!=="file:";var f=void 0;if(d){f=e["default"].createElement("div");f.innerHTML='<a href="'+a+'"></a>';c=f.firstChild;f.setAttribute("style","display:none; position:absolute;");e["default"].body.appendChild(f)}var g={};for(var h=0;h<b.length;h++){g[b[h]]=c[b[h]]}if(g.protocol==="http:"){g.host=g.host.replace(/:80$/,"")}if(g.protocol==="https:"){g.host=g.host.replace(/:443$/,"")}if(d){e["default"].body.removeChild(f)}return g};var j=c.getAbsoluteURL=function n(a){if(!a.match(/^https?:\/\//)){var b=e["default"].createElement("div");b.innerHTML='<a href="'+a+'">x</a>';a=b.firstChild.href}return a};var k=c.getFileExtension=function o(a){if(typeof a==="string"){var b=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;var c=b.exec(a);if(c){return c.pop().toLowerCase()}}return""};var l=c.isCrossOrigin=function p(a){var b=g["default"].location;var c=i(a);var d=c.protocol===":"?b.protocol:c.protocol;var e=d+c.host!==b.protocol+b.host;return e}},{96:96,97:97}],93:[function(a,b,d){"use strict";d.__esModule=true;var e=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var f=a(97);var g=aa(f);var h=a(96);var i=aa(h);var j=a(78);var k=_(j);var l=a(81);var m=_(l);var n=a(56);var o=_(n);var p=a(89);var q=_(p);var r=a(5);var s=aa(r);var t=a(42);var u=aa(t);var v=a(82);var w=_(v);var x=a(51);var y=aa(x);var z=a(52);var A=aa(z);var B=a(87);var C=aa(B);var D=a(83);var E=_(D);var F=a(72);var G=aa(F);var H=a(64);var I=aa(H);var J=a(77);var K=aa(J);var L=a(90);var M=a(84);var N=aa(M);var O=a(86);var P=aa(O);var Q=a(92);var R=_(Q);var S=a(88);var T=a(80);var U=aa(T);var V=a(43);var W=aa(V);var X=a(103);var Y=aa(X);var Z=a(62);var $=aa(Z);function _(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function aa(a){return a&&a.__esModule?a:{"default":a}}if(typeof HTMLVideoElement==="undefined"&&m.isReal()){i["default"].createElement("video");i["default"].createElement("audio");i["default"].createElement("track")}function ba(a,b,c){var d=void 0;if(typeof a==="string"){if(a.indexOf("#")===0){a=a.slice(1)}if(ba.getPlayers()[a]){if(b){P["default"].warn('Player "'+a+'" is already initialised. Options will not be applied.')}if(c){ba.getPlayers()[a].ready(c)}return ba.getPlayers()[a]}d=m.getEl(a)}else{d=a}if(!d||!d.nodeName){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(d.player||y["default"].players[d.playerId]){return d.player||y["default"].players[d.playerId]}b=b||{};ba.hooks("beforesetup").forEach(function(a){var c=a(d,(0,C["default"])(b));if(!(0,S.isObject)(c)||Array.isArray(c)){P["default"].error("please return an object in beforesetup hooks");return}b=(0,C["default"])(b,c)});var e=s["default"].getComponent("Player");var f=new e(d,b,c);ba.hooks("setup").forEach(function(a){return a(f)});return f}ba.hooks_={};ba.hooks=function(a,b){ba.hooks_[a]=ba.hooks_[a]||[];if(b){ba.hooks_[a]=ba.hooks_[a].concat(b)}return ba.hooks_[a]};ba.hook=function(a,b){ba.hooks(a,b)};ba.removeHook=function(a,b){var c=ba.hooks(a).indexOf(b);if(c<=-1){return false}ba.hooks_[a]=ba.hooks_[a].slice();ba.hooks_[a].splice(c,1);return true};if(g["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true&&m.isReal()){var ca=m.$(".vjs-styles-defaults");if(!ca){ca=q.createStyleElement("vjs-styles-defaults");var da=m.$("head");if(da){da.insertBefore(ca,da.firstChild)}q.setTextContent(ca,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}o.autoSetupTimeout(1,ba);ba.VERSION="5.20.4";ba.options=y["default"].prototype.options_;ba.getPlayers=function(){return y["default"].players};ba.players=y["default"].players;ba.getComponent=s["default"].getComponent;ba.registerComponent=function(a,b){if($["default"].isTech(b)){P["default"].warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}s["default"].registerComponent.call(s["default"],a,b)};ba.getTech=$["default"].getTech;ba.registerTech=$["default"].registerTech;ba.browser=k;ba.TOUCH_ENABLED=k.TOUCH_ENABLED;ba.extend=W["default"];ba.mergeOptions=C["default"];ba.bind=E.bind;ba.plugin=A["default"];ba.addLanguage=function(a,b){var c;a=(""+a).toLowerCase();ba.options.languages=(0,C["default"])(ba.options.languages,(c={},c[a]=b,c));return ba.options.languages[a]};ba.log=P["default"];ba.createTimeRange=ba.createTimeRanges=L.createTimeRanges;ba.formatTime=N["default"];ba.parseUrl=R.parseUrl;ba.isCrossOrigin=R.isCrossOrigin;ba.EventTarget=u["default"];ba.on=w.on;ba.one=w.one;ba.off=w.off;ba.trigger=w.trigger;ba.xhr=Y["default"];ba.TextTrack=G["default"];ba.AudioTrack=I["default"];ba.VideoTrack=K["default"];ba.isEl=m.isEl;ba.isTextNode=m.isTextNode;ba.createEl=m.createEl;ba.hasClass=m.hasElClass;ba.addClass=m.addElClass;ba.removeClass=m.removeElClass;ba.toggleClass=m.toggleElClass;ba.setAttributes=m.setElAttributes;ba.getAttributes=m.getElAttributes;ba.emptyEl=m.emptyEl;ba.appendContent=m.appendContent;ba.insertContent=m.insertContent;ba.computedStyle=U["default"];if(typeof c==="function"&&c.amd){c("videojs",[],function(){return ba})}else if((typeof d==="undefined"?"undefined":e(d))==="object"&&(typeof b==="undefined"?"undefined":e(b))==="object"){b.exports=ba}d["default"]=ba},{103:103,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,96:96,97:97}],94:[function(a,b,c){},{}],95:[function(a,b,c){var d=a(98);b.exports=g;var e=Object.prototype.toString;var f=Object.prototype.hasOwnProperty;function g(a,b,c){if(!d(b)){throw new TypeError("iterator must be a function")}if(arguments.length<3){c=this}if(e.call(a)==="[object Array]")h(a,b,c);else if(typeof a==="string")i(a,b,c);else j(a,b,c)}function h(a,b,c){for(var d=0,e=a.length;d<e;d++){if(f.call(a,d)){b.call(c,a[d],d,a)}}}function i(a,b,c){for(var d=0,e=a.length;d<e;d++){b.call(c,a.charAt(d),d,a)}}function j(a,b,c){for(var d in a){if(f.call(a,d)){b.call(c,a[d],d,a)}}}},{98:98}],96:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c(94);if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{94:94}],97:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],98:[function(b,c,d){c.exports=f;var e=Object.prototype.toString;function f(b){var c=e.call(b);return c==="[object Function]"||typeof b==="function"&&c!=="[object RegExp]"||typeof a!=="undefined"&&(b===a.setTimeout||b===a.alert||b===a.confirm||b===a.prompt)}},{}],99:[function(a,b,c){var d=a(101),e=a(95),f=function(a){return Object.prototype.toString.call(a)==="[object Array]"};b.exports=function(a){if(!a)return{};var b={};e(d(a).split("\n"),function(a){var c=a.indexOf(":"),e=d(a.slice(0,c)).toLowerCase(),g=d(a.slice(c+1));if(typeof b[e]==="undefined"){b[e]=g}else if(f(b[e])){b[e].push(g)}else{b[e]=[b[e],g]}});return b}},{101:101,95:95}],100:[function(a,b,c){b.exports=d;function d(a,b){var c;var d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}},{}],101:[function(a,b,c){c=b.exports=d;function d(a){return a.replace(/^\s*|\s*$/g,"")}c.left=function(a){return a.replace(/^\s*/,"")};c.right=function(a){return a.replace(/\s*$/,"")}},{}],102:[function(a,b,c){function d(a){return a.replace(/\n\r?\s*/g,"")}b.exports=function e(a){var b="",c=0;for(;c<arguments.length;c++)b+=d(a[c])+(arguments[c+1]||"");return b}},{}],103:[function(a,b,c){"use strict";var d=a(97);var e=a(98);var f=a(99);var g=a(104);b.exports=k;k.XMLHttpRequest=d.XMLHttpRequest||n;k.XDomainRequest="withCredentials"in new k.XMLHttpRequest?k.XMLHttpRequest:d.XDomainRequest;h(["get","put","post","patch","head","delete"],function(a){k[a==="delete"?"del":a]=function(b,c,d){c=j(b,c,d);c.method=a.toUpperCase();return l(c)}});function h(a,b){for(var c=0;c<a.length;c++){b(a[c])}}function i(a){for(var b in a){if(a.hasOwnProperty(b))return false}return true}function j(a,b,c){var d=a;if(e(b)){c=b;if(typeof a==="string"){d={uri:a}}}else{d=g(b,{uri:a})}d.callback=c;return d}function k(a,b,c){b=j(a,b,c);return l(b)}function l(a){if(typeof a.callback==="undefined"){throw new Error("callback argument missing")}var b=false;var c=function w(c,d,e){if(!b){b=true;a.callback(c,d,e)}};function d(){if(l.readyState===4){j()}}function e(){var a=undefined;if(l.response){a=l.response}else{a=l.responseText||m(l)}if(u){try{a=JSON.parse(a)}catch(b){}}return a}var g={body:undefined,headers:{},statusCode:0,method:q,url:p,rawRequest:l};function h(a){clearTimeout(v);if(!(a instanceof Error)){a=new Error(""+(a||"Unknown XMLHttpRequest Error"))}a.statusCode=0;return c(a,g)}function j(){if(o)return;var b;clearTimeout(v);if(a.useXDR&&l.status===undefined){b=200}else{b=l.status===1223?204:l.status}var d=g;var h=null;if(b!==0){d={body:e(),statusCode:b,method:q,headers:{},url:p,rawRequest:l};if(l.getAllResponseHeaders){d.headers=f(l.getAllResponseHeaders())}}else{h=new Error("Internal XMLHttpRequest Error")}return c(h,d,d.body)}var l=a.xhr||null;if(!l){if(a.cors||a.useXDR){l=new k.XDomainRequest}else{l=new k.XMLHttpRequest}}var n;var o;var p=l.url=a.uri||a.url;var q=l.method=a.method||"GET";var r=a.body||a.data||null;var s=l.headers=a.headers||{};var t=!!a.sync;var u=false;var v;if("json"in a){u=true;s["accept"]||s["Accept"]||(s["Accept"]="application/json");if(q!=="GET"&&q!=="HEAD"){s["content-type"]||s["Content-Type"]||(s["Content-Type"]="application/json");r=JSON.stringify(a.json)}}l.onreadystatechange=d;l.onload=j;l.onerror=h;l.onprogress=function(){};l.ontimeout=h;l.open(q,p,!t,a.username,a.password);if(!t){l.withCredentials=!!a.withCredentials}if(!t&&a.timeout>0){v=setTimeout(function(){o=true;l.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT";h(a)},a.timeout)}if(l.setRequestHeader){for(n in s){if(s.hasOwnProperty(n)){l.setRequestHeader(n,s[n])}}}else if(a.headers&&!i(a.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in a){l.responseType=a.responseType}if("beforeSend"in a&&typeof a.beforeSend==="function"){a.beforeSend(l)}l.send(r);return l}function m(a){if(a.responseType==="document"){return a.responseXML}var b=a.status===204&&a.responseXML&&a.responseXML.documentElement.nodeName==="parsererror";if(a.responseType===""&&!b){return a.responseXML}return null}function n(){}},{104:104,97:97,98:98,99:99}],104:[function(a,b,c){b.exports=e;var d=Object.prototype.hasOwnProperty;function e(){var a={};for(var b=0;b<arguments.length;b++){var c=arguments[b];for(var e in c){if(d.call(c,e)){a[e]=c[e]}}}return a}},{}]},{},[93])(93)});if(!e){if(j&&j.VERSION===a.videojs.VERSION){a.videojs=j}else if(a.bc){(function(b){var c=Object.keys(b);var d,e,f;for(d=0;d<c.length;d++){e=c[d];f=b[e];if(typeof f==="function"&&typeof f.videojs==="function"){if(f.videojs.VERSION===a.videojs.VERSION){a.videojs=f.videojs;break}}}})(a.bc)}}var k=a.videojs;k["default"]=k;(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsLoscore=b(a.videojs)})(this,function(b){"use strict";b="default"in b?b["default"]:b;var c=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var d;if(typeof a!=="undefined"){d=a}else if(typeof c!=="undefined"){d=c}else if(typeof self!=="undefined"){d=self}else{d={}}var e=d;function f(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var g=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function h(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}}function i(a,b,c,d){b=b||"&";c=c||"=";if(a===null){a=undefined}if(typeof a==="object"){return j(k(a),function(d){var e=encodeURIComponent(h(d))+c;if(g(a[d])){return j(a[d],function(a){return e+encodeURIComponent(h(a))}).join(b)}else{return e+encodeURIComponent(h(a[d]))}}).join(b)}if(!d)return"";return encodeURIComponent(h(d))+c+encodeURIComponent(h(a))}function j(a,b){if(a.map)return a.map(b);var c=[];for(var d=0;d<a.length;d++){c.push(b(a[d],d))}return c}var k=Object.keys||function(a){var b=[];for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b.push(c)}return b};function l(a,b,c,d){b=b||"&";c=c||"=";var e={};if(typeof a!=="string"||a.length===0){return e}var h=/\+/g;a=a.split(b);var i=1e3;if(d&&typeof d.maxKeys==="number"){i=d.maxKeys}var j=a.length;if(i>0&&j>i){j=i}for(var k=0;k<j;++k){var l=a[k].replace(h,"%20"),m=l.indexOf(c),n,o,p,q;if(m>=0){n=l.substr(0,m);o=l.substr(m+1)}else{n=l;o=""}p=decodeURIComponent(n);q=decodeURIComponent(o);if(!f(e,p)){e[p]=q}else if(g(e[p])){e[p].push(q)}else{e[p]=[e[p],q]}}return e}var m={encode:i,stringify:i,decode:l,parse:l};var n="2.4.1";var o=function w(a){return typeof a==="function"};var p=function x(a){return a===null||a===undefined};var q=function y(a){return typeof a==="number"&&a===a};var r=function z(a){return typeof a==="string"&&/\S/.test(a)};var s=function A(a){return Object.prototype.toString.call(a)==="[object Object]"};var t=(Object.freeze||Object)({isFn:o,isNonEmptyStr:r,isNil:p,isNum:q,isObj:s});var u=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c){if(Object.prototype.hasOwnProperty.call(c,d)){a[d]=c[d]}}}return a};var v=b.bc_=u({assign:function B(){return u.apply(undefined,arguments)},debounce:function C(a,b,c){var d=arguments.length>3&&arguments[3]!==undefined?arguments[3]:e;var f=void 0;return function(){var e=this;var g=arguments;var h=function i(){f=null;h=null;if(!c){a.apply(e,g)}};if(!f&&c){a.apply(e,g)}d.clearTimeout(f);f=d.setTimeout(h,b)}},qs:function D(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:e&&e.location||{};return u({hash:m.parse((a.hash||"#").substr(1)),search:m.parse((a.search||"?").substr(1))},m)}},t);v.VERSION=n;return v});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsProxyTracks=b(a.videojs)})(this,function(a){"use strict";a="default"in a?a["default"]:a;var b=function(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}};var c=function(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b};var d=function(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a};var e={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:undefined,kind:"metadata",label:"",language:"",mode:"",oncuechange:undefined};var f=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];var g=["mode"];var h=function m(a,b){if(a==="media"&&b.kind==="metadata"&&b.label==="media-cues"){return true}if(a==="id3"&&b.inBandMetadataTrackDispatchType&&b.inBandMetadataTrackDispatchType.length>0){return true}return false};var i=function(i){c(j,i);function j(c,h){var k;b(this,j);var l=d(this,i.call(this));var m=l;m.player_=c;m.reTriggerEvent_=a.bind(m,m.reTriggerEvent_);m.update_=a.bind(m,m.update_);m.type_=h;f.concat(g).forEach(function(a){var b={get:function c(){return m.track_&&m.track_[a]||e[a]},enumerable:true};if(g.indexOf(a)!==-1){b.set=function(b){if(!m.track_){return}m.track_[a]=b}}Object.defineProperty(m,a,b)});m.update_();var n=c.textTracks();var o=function p(a){if(!m.track_){m.update_(a)}};["addtrack","removetrack"].forEach(function(a){return n.addEventListener(a,m.update_)});m.player_.on("timeupdate",o);return k=m,d(l,k)}j.prototype.addCue=function k(){var a=this;var b=arguments;if(!this.track_){this.one("trackexists",function(){return a.addCue.apply(a,b)});return}return this.track_.addCue.apply(this.track_,b)};j.prototype.removeCue=function l(){var a=this;var b=arguments;if(!this.track_){return this.one("trackexists",function(){return a.removeCue.apply(a,b)})}return this.track_.removeCue.apply(this.track_,b)};j.prototype.reTriggerEvent_=function m(a){this.trigger(a)};j.prototype.update_=function n(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=void 0;if(a.type==="removetrack"&&a.track&&a.track===this.track_){b=null}else if(a.type==="addtrack"&&a.track&&!this.track_&&h(this.type_,a.track)){b=a.track}else{var c=this.player_.textTracks();var d=c.length;while(d--){if(h(this.type_,c[d])){b=c[d];break}}}if(this.track_===b){return}if(this.track_){this.track_.removeEventListener("cuechange",this.reTriggerEvent_)}this.track_=b;if(!this.track_){return}if(this.track_.mode!=="hidden"){this.track_.mode="hidden"}this.track_.addEventListener("cuechange",this.reTriggerEvent_);this.trigger("trackexists")};return j}(a.EventTarget);i.prototype.allowedEvents_={cuechange:"cuechange"};var j=a.registerPlugin||a.plugin;var k={id3CuePointsTrack:function n(){var a=this.proxyTracks_.id3;if(!a){a=this.proxyTracks_.id3=new i(this,"id3")}return a},mediaCuePointsTrack:function o(){var a=this.proxyTracks_.media;if(a){return a}a=this.proxyTracks_.media=new i(this,"media");if(a.track_){return a}this.addTextTrack("metadata","media-cues");a.update_();return a}};function l(){var b=this;this.proxyTracks_={};Object.keys(k).forEach(function(c){if(a.browser.IS_IE8||!Object.defineProperty){b[c]=function(){a.log("This API method - player."+c+"() - is not supported in this browser.")}}else{b[c]=function(){return k[c].call(b)}}})}j("proxyTracks",l);l.VERSION="__VERSION__";return l});if(typeof Uint8Array==="function"&&!k.getComponent("Hls")){(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsHttpStreaming=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function e(a){return a&&a.__esModule?a:{"default":a}}var f=a("global/window");var g=e(f);var h=function j(a,b){var c=a.cues;for(var d=0;d<c.length;d++){var e=c[d];if(b>=e.adStartTime&&b<=e.adEndTime){return e}}return null};var i=function k(a,b){var c=arguments.length<=2||arguments[2]===undefined?0:arguments[2];if(!a.segments){return}var e=c;var f=undefined;for(var i=0;i<a.segments.length;i++){var j=a.segments[i];if(!f){f=h(b,e+j.duration/2)}if(f){if("cueIn"in j){f.endTime=e;f.adEndTime=e;e+=j.duration;f=null;continue}if(e<f.endTime){e+=j.duration;continue}f.endTime+=j.duration}else{if("cueOut"in j){f=new g["default"].VTTCue(e,e+j.duration,j.cueOut);f.adStartTime=e;f.adEndTime=e+parseFloat(j.cueOut);b.addCue(f)}if("cueOutCont"in j){var k=undefined;var l=undefined;var m=j.cueOutCont.split("/").map(parseFloat);var n=d(m,2);k=n[0];l=n[1];f=new g["default"].VTTCue(e,e+j.duration,"");f.adStartTime=e-k;f.adEndTime=f.adStartTime+l;b.addCue(f)}}e+=j.duration}};c["default"]={updateAdCues:i,findAdCue:h};b.exports=c["default"]},{"global/window":29}],2:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function j(a,b){return a.start(b)+"-"+a.end(b)};var e=function k(a,b){var c=a.toString(16);return"00".substring(0,2-c.length)+c+(b%2?" ":"")};var f=function l(a){if(a>=32&&a<126){return String.fromCharCode(a)}return"."};var g=function m(a){var b={};Object.keys(a).forEach(function(c){var d=a[c];if(ArrayBuffer.isView(d)){b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}}else{b[c]=d}});return b};var h=function n(a){var b=a.byterange||{length:Infinity,offset:0};return[b.length,b.offset,a.resolvedUri].join(",")};var i={hexDump:function o(a){var b=Array.prototype.slice.call(a);var c=16;var d="";var g=undefined;var h=undefined;for(var i=0;i<b.length/c;i++){g=b.slice(i*c,i*c+c).map(e).join("");h=b.slice(i*c,i*c+c).map(f).join("");d+=g+" "+h+"\n"}return d},tagDump:function p(a){return i.hexDump(a.bytes)},textRanges:function q(a){var b="";var c=undefined;for(c=0;c<a.length;c++){b+=d(a,c)+" "}return b},createTransferableMessage:g,initSegmentId:h};c["default"]=i;b.exports=c["default"]},{}],3:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});c["default"]={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1};b.exports=c["default"]},{}],4:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("global/window");var f=d(e);var g=a("aes-decrypter");var h=a("./bin-utils");var i=function j(a){a.onmessage=function(a){var b=a.data;var c=new Uint8Array(b.encrypted.bytes,b.encrypted.byteOffset,b.encrypted.byteLength);var d=new Uint32Array(b.key.bytes,b.key.byteOffset,b.key.byteLength/4);var e=new Uint32Array(b.iv.bytes,b.iv.byteOffset,b.iv.byteLength/4);new g.Decrypter(c,d,e,function(a,c){f["default"].postMessage((0,h.createTransferableMessage)({source:b.source,decrypted:c}),[c.buffer])})}};c["default"]=function(a){return new i(a)};b.exports=c["default"]},{"./bin-utils":2,"aes-decrypter":25,"global/window":29}],5:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function S(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined; }return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("./playlist-loader");var k=g(j);var l=b("./playlist.js");var m=b("./segment-loader");var n=g(m);var o=b("./vtt-segment-loader");var p=g(o);var q=b("./ranges");var r=g(q);var s=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var t=g(s);var u=b("./ad-cue-tags");var v=g(u);var w=b("./sync-controller");var x=g(w);var y=b("videojs-contrib-media-sources/es5/codec-utils");var z=b("webworkify");var A=g(z);var B=b("./decrypter-worker");var C=g(B);var D=b("./config");var E=g(D);var F=b("./util/codecs.js");var G=b("./media-groups");var H=60*2;var I=undefined;var J={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"};var K=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"];var L=function T(a){return this.audioSegmentLoader_[a]+this.mainSegmentLoader_[a]};var M=function U(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a){return(0,y.translateLegacyCodecs)([a])[0]})};d.mapLegacyAvcCodecs_=M;var N=function V(a,b,c){return a+"/"+b+'; codecs="'+c.filter(function(a){return!!a}).join(", ")+'"'};var O=function W(a){if(a.segments&&a.segments.length&&a.segments[0].map){return"mp4"}return"mp2t"};var P=function X(a){var b=a.attributes||{};if(b.CODECS){return(0,F.parseCodecs)(b.CODECS)}return J};var Q=function Y(a,b){var c=O(b);var d=P(b);var e=b.attributes||{};var f=true;var g=false;if(!b){return[]}if(a.mediaGroups.AUDIO&&e.AUDIO){var h=a.mediaGroups.AUDIO[e.AUDIO];if(h){g=true;f=false;for(var i in h){if(!h[i].uri){f=true;break}}}}if(g&&!d.audioProfile){t["default"].log.warn("Multiple audio tracks present but no audio codec string is specified. "+"Attempting to use the default audio codec (mp4a.40.2)");d.audioProfile=J.audioProfile}var j={};if(d.videoCodec){j.video=""+d.videoCodec+d.videoObjectTypeIndicator}if(d.audioProfile){j.audio="mp4a.40."+d.audioProfile}var k=N("audio",c,[j.audio]);var l=N("video",c,[j.video]);var m=N("video",c,[j.video,j.audio]);if(g){if(!f&&j.video){return[l,k]}return[m,k]}if(!j.video){return[k]}return[m]};d.mimeTypesForPlaylist_=Q;var R=function(b){i(c,b);function c(a){var b=this;h(this,c);f(Object.getPrototypeOf(c.prototype),"constructor",this).call(this);var d=a.url;var e=a.withCredentials;var g=a.mode;var i=a.tech;var j=a.bandwidth;var l=a.externHls;var m=a.useCueTags;var o=a.blacklistDuration;var q=a.enableLowInitialPlaylist;if(!d){throw new Error("A non-empty playlist URL is required")}I=l;this.withCredentials=e;this.tech_=i;this.hls_=i.hls;this.mode_=g;this.useCueTags_=m;this.blacklistDuration=o;this.enableLowInitialPlaylist=q;if(this.useCueTags_){this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues");this.cueTagsTrack_.inBandMetadataTrackDispatchType=""}this.requestOptions_={withCredentials:this.withCredentials,timeout:null};this.mediaTypes_=(0,G.createMediaTypes)();this.mediaSource=new t["default"].MediaSource({mode:g});this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this));this.seekable_=t["default"].createTimeRanges();this.hasPlayed_=function(){return false};this.syncController_=new x["default"](a);this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},false).track;this.decrypter_=(0,A["default"])(C["default"]);var r={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function s(){return b.seekable()},seeking:function u(){return b.tech_.seeking()},duration:function v(){return b.mediaSource.duration},hasPlayed:function w(){return b.hasPlayed_()},goalBufferLength:function y(){return b.goalBufferLength()},bandwidth:j,syncController:this.syncController_,decrypter:this.decrypter_};this.masterPlaylistLoader_=new k["default"](d,this.hls_,this.withCredentials);this.setupMasterPlaylistLoaderListeners_();this.mainSegmentLoader_=new n["default"](t["default"].mergeOptions(r,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),a);this.audioSegmentLoader_=new n["default"](t["default"].mergeOptions(r,{loaderType:"audio"}),a);this.subtitleSegmentLoader_=new p["default"](t["default"].mergeOptions(r,{loaderType:"vtt"}),a);this.setupSegmentLoaderListeners_();K.forEach(function(a){b[a+"_"]=L.bind(b,a)});this.masterPlaylistLoader_.load()}e(c,[{key:"setupMasterPlaylistLoaderListeners_",value:function d(){var a=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var b=a.masterPlaylistLoader_.media();var c=a.masterPlaylistLoader_.targetDuration*1.5*1e3;if((0,l.isLowestEnabledRendition)(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())){a.requestOptions_.timeout=0}else{a.requestOptions_.timeout=c}if(b.endList&&a.tech_.preload()!=="none"){a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.mainSegmentLoader_.load()}(0,G.setupMediaGroups)({segmentLoaders:{AUDIO:a.audioSegmentLoader_,SUBTITLES:a.subtitleSegmentLoader_,main:a.mainSegmentLoader_},tech:a.tech_,requestOptions:a.requestOptions_,masterPlaylistLoader:a.masterPlaylistLoader_,mode:a.mode_,hls:a.hls_,master:a.master(),mediaTypes:a.mediaTypes_,blacklistCurrentPlaylist:a.blacklistCurrentPlaylist.bind(a)});a.triggerPresenceUsage_(a.master(),b);try{a.setupSourceBuffers_()}catch(d){t["default"].log.warn("Failed to create SourceBuffers",d);return a.mediaSource.endOfStream("decode")}a.setupFirstPlay();a.trigger("selectedinitialmedia")});this.masterPlaylistLoader_.on("loadedplaylist",function(){var b=a.masterPlaylistLoader_.media();if(!b){var c=undefined;if(a.enableLowInitialPlaylist){c=a.selectInitialPlaylist()}if(!c){c=a.selectPlaylist()}a.initialMedia_=c;a.masterPlaylistLoader_.media(a.initialMedia_);return}if(a.useCueTags_){a.updateAdCues_(b)}a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.updateDuration();if(!a.tech_.paused()){a.mainSegmentLoader_.load()}if(!b.endList){(function(){var b=function c(){var b=a.seekable();if(b.length!==0){a.mediaSource.addSeekableRange_(b.start(0),b.end(0))}};if(a.duration()!==Infinity){(function(){var c=function d(){if(a.duration()===Infinity){b()}else{a.tech_.one("durationchange",d)}};a.tech_.one("durationchange",c)})()}else{b()}})()}});this.masterPlaylistLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function(){a.mainSegmentLoader_.abort();a.mainSegmentLoader_.pause()});this.masterPlaylistLoader_.on("mediachange",function(){var b=a.masterPlaylistLoader_.media();var c=a.masterPlaylistLoader_.targetDuration*1.5*1e3;if((0,l.isLowestEnabledRendition)(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())){a.requestOptions_.timeout=0}else{a.requestOptions_.timeout=c}a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.mainSegmentLoader_.load();a.tech_.trigger({type:"mediachange",bubbles:true})});this.masterPlaylistLoader_.on("playlistunchanged",function(){var b=a.masterPlaylistLoader_.media();var c=a.stuckAtPlaylistEnd_(b);if(c){a.blacklistCurrentPlaylist({message:"Playlist no longer updating."});a.tech_.trigger("playliststuck")}});this.masterPlaylistLoader_.on("renditiondisabled",function(){a.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})});this.masterPlaylistLoader_.on("renditionenabled",function(){a.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function g(a,b){var c=a.mediaGroups||{};var d=true;var e=Object.keys(c.AUDIO);for(var f in c.AUDIO){for(var g in c.AUDIO[f]){var h=c.AUDIO[f][g];if(!h.uri){d=false}}}if(d){this.tech_.trigger({type:"usage",name:"hls-demuxed"})}if(Object.keys(c.SUBTITLES).length){this.tech_.trigger({type:"usage",name:"hls-webvtt"})}if(I.Playlist.isAes(b)){this.tech_.trigger({type:"usage",name:"hls-aes"})}if(I.Playlist.isFmp4(b)){this.tech_.trigger({type:"usage",name:"hls-fmp4"})}if(e.length&&Object.keys(c.AUDIO[e[0]]).length>1){this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})}if(this.useCueTags_){this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}}},{key:"setupSegmentLoaderListeners_",value:function j(){var a=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var b=a.selectPlaylist();var c=a.masterPlaylistLoader_.media();var d=a.tech_.buffered();var e=d.length?d.end(d.length-1)-a.tech_.currentTime():0;var f=a.bufferLowWaterLine();if(!c.endList||a.duration()<E["default"].MAX_BUFFER_LOW_WATER_LINE||b.attributes.BANDWIDTH<c.attributes.BANDWIDTH||e>=f){a.masterPlaylistLoader_.media(b)}a.tech_.trigger("bandwidthupdate")});this.mainSegmentLoader_.on("progress",function(){a.trigger("progress")});this.mainSegmentLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()});this.mainSegmentLoader_.on("timestampoffset",function(){a.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})});this.audioSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()});this.mainSegmentLoader_.on("ended",function(){a.onEndOfStream()});this.mainSegmentLoader_.on("earlyabort",function(){a.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the "+"request without rebuffering."},H)});this.mainSegmentLoader_.on("reseteverything",function(){a.tech_.trigger("hls-reset")});this.mainSegmentLoader_.on("segmenttimemapping",function(b){a.tech_.trigger({type:"hls-segment-time-mapping",mapping:b.mapping})});this.audioSegmentLoader_.on("ended",function(){a.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function m(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function o(){this.mainSegmentLoader_.load();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.load()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.load()}}},{key:"fastQualityChange_",value:function q(){var a=this.selectPlaylist();if(a!==this.masterPlaylistLoader_.media()){this.masterPlaylistLoader_.media(a);this.mainSegmentLoader_.resetLoader()}}},{key:"play",value:function s(){if(this.setupFirstPlay()){return}if(this.tech_.ended()){this.tech_.setCurrentTime(0)}if(this.hasPlayed_()){this.load()}var a=this.tech_.seekable();if(this.tech_.duration()===Infinity){if(this.tech_.currentTime()<a.start(0)){return this.tech_.setCurrentTime(a.end(a.length-1))}}}},{key:"setupFirstPlay",value:function u(){var a=this;var b=this.masterPlaylistLoader_.media();if(!b||this.tech_.paused()||this.hasPlayed_()){return false}if(!b.endList){var c=function(){var b=a.seekable();if(!b.length){return{v:false}}if(t["default"].browser.IE_VERSION&&a.mode_==="html5"&&a.tech_.readyState()===0){a.tech_.one("loadedmetadata",function(){a.trigger("firstplay");a.tech_.setCurrentTime(b.end(0));a.hasPlayed_=function(){return true}});return{v:false}}a.trigger("firstplay");a.tech_.setCurrentTime(b.end(0))}();if(typeof c==="object")return c.v}this.hasPlayed_=function(){return true};this.load();return true}},{key:"handleSourceOpen_",value:function w(){try{this.setupSourceBuffers_()}catch(a){t["default"].log.warn("Failed to create Source Buffers",a);return this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){this.tech_.play()}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function y(){var a=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){a=a&&this.audioSegmentLoader_.ended_}if(a){this.mediaSource.endOfStream()}}},{key:"stuckAtPlaylistEnd_",value:function z(a){var b=this.seekable();if(!b.length){return false}var c=this.syncController_.getExpiredTime(a,this.mediaSource.duration);if(c===null){return false}var d=I.Playlist.playlistEnd(a,c);var e=this.tech_.currentTime();var f=this.tech_.buffered();if(!f.length){return d-e<=r["default"].SAFE_TIME_DELTA}var g=f.end(f.length-1);return g-e<=r["default"].SAFE_TIME_DELTA&&d-g<=r["default"].SAFE_TIME_DELTA}},{key:"blacklistCurrentPlaylist",value:function B(a,b){if(a===undefined)a={};var c=undefined;var d=undefined;c=a.playlist||this.masterPlaylistLoader_.media();b=b||a.blacklistDuration||this.blacklistDuration;if(!c){this.error=a;try{return this.mediaSource.endOfStream("network")}catch(e){return this.trigger("error")}}var f=this.masterPlaylistLoader_.master.playlists.filter(l.isEnabled).length===1;if(f){t["default"].log.warn("Problem encountered with the current "+"HLS playlist. Trying again since it is the final playlist.");this.tech_.trigger("retryplaylist");return this.masterPlaylistLoader_.load(f)}c.excludeUntil=Date.now()+b*1e3;this.tech_.trigger("blacklistplaylist");this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});d=this.selectPlaylist();t["default"].log.warn("Problem encountered with the current HLS playlist."+(a.message?" "+a.message:"")+" Switching to another playlist.");return this.masterPlaylistLoader_.media(d)}},{key:"pauseLoading",value:function D(){this.mainSegmentLoader_.pause();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.pause()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.pause()}}},{key:"setCurrentTime",value:function J(a){var b=r["default"].findRange(this.tech_.buffered(),a);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())){return 0}if(!this.masterPlaylistLoader_.media().segments){return 0}if(b&&b.length&&this.mode_!=="flash"){return a}this.mainSegmentLoader_.resetEverything();this.mainSegmentLoader_.abort();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.resetEverything();this.audioSegmentLoader_.abort()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.resetEverything();this.subtitleSegmentLoader_.abort()}this.load()}},{key:"duration",value:function N(){if(!this.masterPlaylistLoader_){return 0}if(this.mediaSource){return this.mediaSource.duration}return I.Playlist.duration(this.masterPlaylistLoader_.media())}},{key:"seekable",value:function O(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function P(){var a=undefined;var b=undefined;if(!this.masterPlaylistLoader_){return}var c=this.masterPlaylistLoader_.media();if(!c){return}var d=this.syncController_.getExpiredTime(c,this.mediaSource.duration);if(d===null){return}a=I.Playlist.seekable(c,d);if(a.length===0){return}if(this.mediaTypes_.AUDIO.activePlaylistLoader){c=this.mediaTypes_.AUDIO.activePlaylistLoader.media();d=this.syncController_.getExpiredTime(c,this.mediaSource.duration);if(d===null){return}b=I.Playlist.seekable(c,d);if(b.length===0){return}}if(!b){this.seekable_=a}else if(b.start(0)>a.end(0)||a.start(0)>b.end(0)){this.seekable_=a}else{this.seekable_=t["default"].createTimeRanges([[b.start(0)>a.start(0)?b.start(0):a.start(0),b.end(0)<a.end(0)?b.end(0):a.end(0)]])}this.tech_.trigger("seekablechanged")}},{key:"updateDuration",value:function R(){var a=this;var b=this.mediaSource.duration;var c=I.Playlist.duration(this.masterPlaylistLoader_.media());var d=this.tech_.buffered();var e=function f(){a.mediaSource.duration=c;a.tech_.trigger("durationchange");a.mediaSource.removeEventListener("sourceopen",f)};if(d.length>0){c=Math.max(c,d.end(d.length-1))}if(b!==c){if(this.mediaSource.readyState!=="open"){this.mediaSource.addEventListener("sourceopen",e)}else{e()}}}},{key:"dispose",value:function S(){var a=this;this.decrypter_.terminate();this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();["AUDIO","SUBTITLES"].forEach(function(b){var c=a.mediaTypes_[b].groups;for(var d in c){c[d].forEach(function(a){if(a.playlistLoader){a.playlistLoader.dispose()}})}});this.audioSegmentLoader_.dispose();this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function T(){return this.masterPlaylistLoader_.master}},{key:"media",value:function U(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function V(){var a=this.masterPlaylistLoader_.media();var b=undefined;if(!a||this.mediaSource.readyState!=="open"){return}b=Q(this.masterPlaylistLoader_.master,a);if(b.length<1){this.error="No compatible SourceBuffer configuration for the variant stream:"+a.resolvedUri;return this.mediaSource.endOfStream("decode")}this.mainSegmentLoader_.mimeType(b[0]);if(b[1]){this.audioSegmentLoader_.mimeType(b[1])}this.excludeIncompatibleVariants_(a)}},{key:"excludeIncompatibleVariants_",value:function W(b){var c=this.masterPlaylistLoader_.master;var d=2;var e=null;var f=undefined;if(b.attributes.CODECS){f=(0,F.parseCodecs)(b.attributes.CODECS);e=f.videoCodec;d=f.codecCount}c.playlists.forEach(function(b){var c={codecCount:2,videoCodec:null};if(b.attributes.CODECS){var f=b.attributes.CODECS;c=(0,F.parseCodecs)(f);if(a.MediaSource&&a.MediaSource.isTypeSupported&&!a.MediaSource.isTypeSupported('video/mp4; codecs="'+M(f)+'"')){b.excludeUntil=Infinity}}if(c.codecCount!==d){b.excludeUntil=Infinity}if(c.videoCodec!==e){b.excludeUntil=Infinity}})}},{key:"updateAdCues_",value:function X(a){var b=0;var c=this.seekable();if(c.length){b=c.start(0)}v["default"].updateAdCues(a,this.cueTagsTrack_,b)}},{key:"goalBufferLength",value:function Y(){var a=this.tech_.currentTime();var b=E["default"].GOAL_BUFFER_LENGTH;var c=E["default"].GOAL_BUFFER_LENGTH_RATE;var d=Math.max(b,E["default"].MAX_GOAL_BUFFER_LENGTH);return Math.min(b+a*c,d)}},{key:"bufferLowWaterLine",value:function Z(){var a=this.tech_.currentTime();var b=E["default"].BUFFER_LOW_WATER_LINE;var c=E["default"].BUFFER_LOW_WATER_LINE_RATE;var d=Math.max(b,E["default"].MAX_BUFFER_LOW_WATER_LINE);return Math.min(b+a*c,d)}}]);return c}(t["default"].EventTarget);d.MasterPlaylistController=R}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ad-cue-tags":1,"./config":3,"./decrypter-worker":4,"./media-groups":6,"./playlist-loader":9,"./playlist.js":11,"./ranges":12,"./segment-loader":16,"./sync-controller":18,"./util/codecs.js":19,"./vtt-segment-loader":20,"videojs-contrib-media-sources/es5/codec-utils":65,webworkify:76}],6:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var g=e(f);var h=b("./playlist-loader");var i=e(h);var j=function w(){};var k=function x(a){var b=a["default"]?"main":"alternative";if(a.characteristics&&a.characteristics.indexOf("public.accessibility.describes-video")>=0){b="main-desc"}return b};var l=function y(a,b){a.abort();a.pause();if(b&&b.activePlaylistLoader){b.activePlaylistLoader.pause();b.activePlaylistLoader=null}};d.stopLoaders=l;var m=function z(a,b){b.activePlaylistLoader=a;a.load()};d.startLoaders=m;var n=function A(a,b){return function(){var c=b.segmentLoaders;var d=c[a];var e=c.main;var f=b.mediaTypes[a];var g=f.activeTrack();var h=f.activeGroup(g);var i=f.activePlaylistLoader;l(d,f);if(!h){return}if(!h.playlistLoader){if(i){e.resetEverything()}return}d.resyncLoader();m(h.playlistLoader,f)}};d.onGroupChanged=n;var o=function B(a,b){return function(){var c=b.segmentLoaders;var d=c[a];var e=c.main;var f=b.mediaTypes[a];var g=f.activeTrack();var h=f.activeGroup(g);var i=f.activePlaylistLoader;l(d,f);if(!h){return}if(!h.playlistLoader){e.resetEverything();return}if(i===h.playlistLoader){m(h.playlistLoader,f);return}if(d.track){d.track(g)}d.resetEverything();m(h.playlistLoader,f)}};d.onTrackChanged=o;var p={AUDIO:function C(a,b){return function(){var c=b.segmentLoaders[a];var d=b.mediaTypes[a];var e=b.blacklistCurrentPlaylist;l(c,d);var f=d.activeTrack();var h=d.activeGroup();var i=(h.filter(function(a){return a["default"]})[0]||h[0]).id;var j=d.tracks[i];if(f===j){e({message:"Problem encountered loading the default audio track."});return}g["default"].log.warn("Problem encountered loading the alternate audio track."+"Switching back to default.");for(var k in d.tracks){d.tracks[k].enabled=d.tracks[k]===j}d.onTrackChanged()}},SUBTITLES:function D(a,b){return function(){var c=b.segmentLoaders[a];var d=b.mediaTypes[a];g["default"].log.warn("Problem encountered loading the subtitle track."+"Disabling subtitle track.");l(c,d);var e=d.activeTrack();if(e){e.mode="disabled"}d.onTrackChanged()}}};d.onError=p;var q={AUDIO:function E(a,b,c){if(!b){return}var d=c.tech;var e=c.requestOptions;var f=c.segmentLoaders[a];b.on("loadedmetadata",function(){var a=b.media();f.playlist(a,e);if(!d.paused()||a.endList&&d.preload()!=="none"){f.load()}});b.on("loadedplaylist",function(){f.playlist(b.media(),e);if(!d.paused()){f.load()}});b.on("error",p[a](a,c))},SUBTITLES:function F(a,b,c){var d=c.tech;var e=c.requestOptions;var f=c.segmentLoaders[a];var g=c.mediaTypes[a];b.on("loadedmetadata",function(){var a=b.media();f.playlist(a,e);f.track(g.activeTrack());if(!d.paused()||a.endList&&d.preload()!=="none"){f.load()}});b.on("loadedplaylist",function(){f.playlist(b.media(),e);if(!d.paused()){f.load()}});b.on("error",p[a](a,c))}};d.setupListeners=q;var r={AUDIO:function G(a,b){var c=b.mode;var d=b.hls;var e=b.segmentLoaders[a];var f=b.requestOptions.withCredentials;var h=b.master.mediaGroups;var j=b.mediaTypes[a];var l=j.groups;var m=j.tracks;if(!h[a]||Object.keys(h[a]).length===0||c!=="html5"){h[a]={main:{"default":{"default":true}}}}for(var n in h[a]){if(!l[n]){l[n]=[]}for(var o in h[a][n]){var r=h[a][n][o];var s=undefined;if(r.resolvedUri){s=new i["default"](r.resolvedUri,d,f)}else{s=null}r=g["default"].mergeOptions({id:o,playlistLoader:s},r);q[a](a,r.playlistLoader,b);l[n].push(r);if(typeof m[o]==="undefined"){var t=new g["default"].AudioTrack({id:o,kind:k(r),enabled:false,language:r.language,"default":r["default"],label:o});m[o]=t}}}e.on("error",p[a](a,b))},SUBTITLES:function H(a,b){var c=b.tech;var d=b.hls;var e=b.segmentLoaders[a];var f=b.requestOptions.withCredentials;var h=b.master.mediaGroups;var j=b.mediaTypes[a];var k=j.groups;var l=j.tracks;for(var m in h[a]){if(!k[m]){k[m]=[]}for(var n in h[a][m]){if(h[a][m][n].forced){continue}var o=h[a][m][n];o=g["default"].mergeOptions({id:n,playlistLoader:new i["default"](o.resolvedUri,d,f)},o);q[a](a,o.playlistLoader,b);k[m].push(o);if(typeof l[n]==="undefined"){var r=c.addRemoteTextTrack({id:n,kind:"subtitles",enabled:false,language:o.language,label:n},false).track;l[n]=r}}}e.on("error",p[a](a,b))},"CLOSED-CAPTIONS":function I(a,b){var c=b.tech;var d=b.master.mediaGroups;var e=b.mediaTypes[a];var f=e.groups;var h=e.tracks;for(var i in d[a]){if(!f[i]){f[i]=[]}for(var j in d[a][i]){var k=d[a][i][j];if(!k.instreamId.match(/CC\d/)){continue}f[i].push(g["default"].mergeOptions({id:j},k));if(typeof h[j]==="undefined"){var l=c.addRemoteTextTrack({id:k.instreamId,kind:"captions",enabled:false,language:k.language,label:j},false).track;h[j]=l}}}}};d.initialize=r;var s=function J(a,b){return function(c){var d=b.masterPlaylistLoader;var e=b.mediaTypes[a].groups;var f=d.media();if(!f){return null}var g=null;if(f.attributes[a]){g=e[f.attributes[a]]}g=g||e.main;if(typeof c==="undefined"){return g}if(c===null){return null}return g.filter(function(a){return a.id===c.id})[0]||null}};d.activeGroup=s;var t={AUDIO:function K(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c){if(c[d].enabled){return c[d]}}return null}},SUBTITLES:function L(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c){if(c[d].mode==="showing"){return c[d]}}return null}}};d.activeTrack=t;var u=function M(a){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(b){r[b](b,a)});var b=a.mediaTypes;var c=a.masterPlaylistLoader;var d=a.tech;var e=a.hls;["AUDIO","SUBTITLES"].forEach(function(c){b[c].activeGroup=s(c,a);b[c].activeTrack=t[c](c,a);b[c].onGroupChanged=n(c,a);b[c].onTrackChanged=o(c,a)});var f=b.AUDIO.activeGroup();var g=(f.filter(function(a){return a["default"]})[0]||f[0]).id;b.AUDIO.tracks[g].enabled=true;b.AUDIO.onTrackChanged();c.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(a){return b[a].onGroupChanged()})});var h=function j(){b.AUDIO.onTrackChanged();d.trigger({type:"usage",name:"hls-audio-change"})};d.audioTracks().addEventListener("change",h);d.remoteTextTracks().addEventListener("change",b.SUBTITLES.onTrackChanged);e.on("dispose",function(){d.audioTracks().removeEventListener("change",h);d.remoteTextTracks().removeEventListener("change",b.SUBTITLES.onTrackChanged)});d.clearTracks("audio");for(var i in b.AUDIO.tracks){d.audioTracks().addTrack(b.AUDIO.tracks[i])}};d.setupMediaGroups=u;var v=function N(){var a={};["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(b){a[b]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:j,activeTrack:j,onGroupChanged:j,onTrackChanged:j}});return a};d.createMediaTypes=v}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./playlist-loader":9}],7:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var g=e(f);var h=b("./bin-utils");var i={FAILURE:2,TIMEOUT:-101,ABORTED:-102};d.REQUEST_ERRORS=i;var j=function x(a){var b=undefined;var c=undefined;c=a.offset+a.length-1;b=a.offset;return"bytes="+b+"-"+c};var k=function y(a){var b={};if(a.byterange){b.Range=j(a.byterange)}return b};var l=function z(a){a.forEach(function(a){a.abort()})};var m=function A(a){return{bandwidth:a.bandwidth,bytesReceived:a.bytesReceived||0,roundTripTime:a.roundTripTime||0}};var n=function B(a){var b=a.target;var c=Date.now()-b.requestTime;var d={bandwidth:Infinity,bytesReceived:0,roundTripTime:c||0};d.bytesReceived=a.loaded;d.bandwidth=Math.floor(d.bytesReceived/d.roundTripTime*8*1e3);return d};var o=function C(a,b){if(b.timedout){return{status:b.status,message:"HLS request timed-out at URL: "+b.uri,code:i.TIMEOUT,xhr:b}}if(b.aborted){return{status:b.status,message:"HLS request aborted at URL: "+b.uri,code:i.ABORTED,xhr:b}}if(a){return{status:b.status,message:"HLS request errored at URL: "+b.uri,code:i.FAILURE,xhr:b}}return null};var p=function D(a,b){return function(c,d){var e=d.response;var f=o(c,d);if(f){return b(f,a)}if(e.byteLength!==16){return b({status:d.status,message:"Invalid HLS key at URL: "+d.uri,code:i.FAILURE,xhr:d},a)}var g=new DataView(e);a.key.bytes=new Uint32Array([g.getUint32(0),g.getUint32(4),g.getUint32(8),g.getUint32(12)]);return b(null,a)}};var q=function E(a,b){return function(c,d){var e=d.response;var f=o(c,d);if(f){return b(f,a)}if(e.byteLength===0){return b({status:d.status,message:"Empty HLS segment content at URL: "+d.uri,code:i.FAILURE,xhr:d},a)}a.map.bytes=new Uint8Array(d.response);return b(null,a)}};var r=function F(a,b){return function(c,d){var e=d.response;var f=o(c,d);if(f){return b(f,a)}if(e.byteLength===0){return b({status:d.status,message:"Empty HLS segment content at URL: "+d.uri,code:i.FAILURE,xhr:d},a)}a.stats=m(d);if(a.key){a.encryptedBytes=new Uint8Array(d.response)}else{a.bytes=new Uint8Array(d.response)}return b(null,a)}};var s=function G(a,b,c){var d=function e(d){if(d.data.source===b.requestId){a.removeEventListener("message",e);var f=d.data.decrypted;b.bytes=new Uint8Array(f.bytes,f.byteOffset,f.byteLength);return c(null,b)}};a.addEventListener("message",d);a.postMessage((0,h.createTransferableMessage)({source:b.requestId,encrypted:b.encryptedBytes,key:b.key.bytes,iv:b.key.iv}),[b.encryptedBytes.buffer,b.key.bytes.buffer])};var t=function H(a){return a.reduce(function(a,b){return b.code>a.code?b:a})};var u=function I(a,b,c){var d=[];var e=0;return function(f,g){if(f){l(a);d.push(f)}e+=1;if(e===a.length){g.endOfAllRequests=Date.now();if(d.length>0){var h=t(d);return c(h,g)}if(g.encryptedBytes){return s(b,g,c)}return c(null,g)}}};var v=function J(a,b){return function(c){a.stats=g["default"].mergeOptions(a.stats,n(c));if(!a.stats.firstBytesReceivedAt&&a.stats.bytesReceived){a.stats.firstBytesReceivedAt=Date.now()}return b(c,a)}};var w=function K(a,b,c,d,e,f){var h=[];var i=u(h,c,f);if(d.key){var j=g["default"].mergeOptions(b,{uri:d.key.resolvedUri,responseType:"arraybuffer"});var m=p(d,i);var n=a(j,m);h.push(n)}if(d.map&&!d.map.bytes){var o=g["default"].mergeOptions(b,{uri:d.map.resolvedUri,responseType:"arraybuffer",headers:k(d.map)});var s=q(d,i);var t=a(o,s);h.push(t)}var w=g["default"].mergeOptions(b,{uri:d.resolvedUri,responseType:"arraybuffer",headers:k(d)});var x=r(d,i);var y=a(w,x);y.addEventListener("progress",v(d,e));h.push(y);return function(){return l(h)}};d.mediaSegmentRequest=w}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2}],8:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var i=b("global/window");var j=g(i);var k=b("./ranges");var l=g(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=g(m);var o=["seeking","seeked","pause","playing","error"];var p=function(){function a(b){var c=this;h(this,a);this.tech_=b.tech;this.seekable=b.seekable;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;if(b.debug){this.logger_=n["default"].log.bind(n["default"],"playback-watcher ->")}this.logger_("initialize");var d=function i(){return c.monitorCurrentTime_()};var e=function k(){return c.techWaiting_()};var f=function l(){return c.cancelTimer_()};var g=function m(){return c.fixesBadSeeks_()};this.tech_.on("seekablechanged",g);this.tech_.on("waiting",e);this.tech_.on(o,f);this.tech_.on("canplay",d);this.dispose=function(){c.logger_("dispose");c.tech_.off("seekablechanged",g);c.tech_.off("waiting",e);c.tech_.off(o,f);c.tech_.off("canplay",d);if(c.checkCurrentTimeTimeout_){j["default"].clearTimeout(c.checkCurrentTimeTimeout_)}c.cancelTimer_()}}f(a,[{key:"monitorCurrentTime_",value:function b(){this.checkCurrentTime_();if(this.checkCurrentTimeTimeout_){j["default"].clearTimeout(this.checkCurrentTimeTimeout_)}this.checkCurrentTimeTimeout_=j["default"].setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function c(){if(this.tech_.seeking()&&this.fixesBadSeeks_()){this.consecutiveUpdates=0;this.lastRecordedTime=this.tech_.currentTime();return}if(this.tech_.paused()||this.tech_.seeking()){return}var a=this.tech_.currentTime();var b=this.tech_.buffered();if(this.lastRecordedTime===a&&(!b.length||a+l["default"].SAFE_TIME_DELTA>=b.end(b.length-1))){return this.techWaiting_()}if(this.consecutiveUpdates>=5&&a===this.lastRecordedTime){this.consecutiveUpdates++;this.waiting_()}else if(a===this.lastRecordedTime){this.consecutiveUpdates++}else{this.consecutiveUpdates=0;this.lastRecordedTime=a}}},{key:"cancelTimer_",value:function d(){this.consecutiveUpdates=0;if(this.timer_){this.logger_("cancelTimer_");clearTimeout(this.timer_)}this.timer_=null}},{key:"fixesBadSeeks_",value:function e(){var a=this.tech_.seeking();var b=this.seekable();var c=this.tech_.currentTime();var d=undefined;if(a&&this.afterSeekableWindow_(b,c)){var e=b.end(b.length-1);d=e}if(a&&this.beforeSeekableWindow_(b,c)){var f=b.start(0);d=f+l["default"].SAFE_TIME_DELTA; }if(typeof d!=="undefined"){this.logger_("Trying to seek outside of seekable at time "+c+" with "+("seekable range "+l["default"].printableRange(b)+". Seeking to ")+(d+"."));this.tech_.setCurrentTime(d);return true}return false}},{key:"waiting_",value:function g(){if(this.techWaiting_()){return}var a=this.tech_.currentTime();var b=this.tech_.buffered();var c=l["default"].findRange(b,a);if(c.length&&a+3<=c.end(0)){this.cancelTimer_();this.tech_.setCurrentTime(a);this.logger_("Stopped at "+a+" while inside a buffered region "+("["+c.start(0)+" -> "+c.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time.");this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},{key:"techWaiting_",value:function i(){var a=this.seekable();var b=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_()){return true}if(this.tech_.seeking()||this.timer_!==null){return true}if(this.beforeSeekableWindow_(a,b)){var c=a.end(a.length-1);this.logger_("Fell out of live window at time "+b+". Seeking to "+("live point (seekable end) "+c));this.cancelTimer_();this.tech_.setCurrentTime(c);this.tech_.trigger({type:"usage",name:"hls-live-resync"});return true}var d=this.tech_.buffered();var e=l["default"].findNextRange(d,b);if(this.videoUnderflow_(e,d,b)){this.cancelTimer_();this.tech_.setCurrentTime(b);this.tech_.trigger({type:"usage",name:"hls-video-underflow"});return true}if(e.length>0){var f=e.start(0)-b;this.logger_("Stopped at "+b+", setting timer for "+f+", seeking "+("to "+e.start(0)));this.timer_=setTimeout(this.skipTheGap_.bind(this),f*1e3,b);return true}return false}},{key:"afterSeekableWindow_",value:function k(a,b){if(!a.length){return false}if(b>a.end(a.length-1)+l["default"].SAFE_TIME_DELTA){return true}return false}},{key:"beforeSeekableWindow_",value:function m(a,b){if(a.length&&a.start(0)>0&&b<a.start(0)-l["default"].SAFE_TIME_DELTA){return true}return false}},{key:"videoUnderflow_",value:function p(a,b,c){if(a.length===0){var d=this.gapFromVideoUnderflow_(b,c);if(d){this.logger_("Encountered a gap in video from "+d.start+" to "+d.end+". "+("Seeking to current time "+c));return true}}return false}},{key:"skipTheGap_",value:function q(a){var b=this.tech_.buffered();var c=this.tech_.currentTime();var d=l["default"].findNextRange(b,c);this.cancelTimer_();if(d.length===0||c!==a){return}this.logger_("skipTheGap_:","currentTime:",c,"scheduled currentTime:",a,"nextRange start:",d.start(0));this.tech_.setCurrentTime(d.start(0)+l["default"].TIME_FUDGE_FACTOR);this.tech_.trigger({type:"usage",name:"hls-gap-skip"})}},{key:"gapFromVideoUnderflow_",value:function r(a,b){var c=l["default"].findGaps(a);for(var d=0;d<c.length;d++){var e=c.start(d);var f=c.end(d);if(b-e<4&&b-e>2){return{start:e,end:f}}}return null}},{key:"logger_",value:function s(){}}]);return a}();d["default"]=p;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ranges":12,"global/window":29}],9:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function x(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("./resolve-url");var k=g(j);var l=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var m=b("m3u8-parser");var n=g(m);var o=b("global/window");var p=g(o);var q=function y(a,b,c){var d=b.slice();c=c||0;var e=Math.min(a.length,b.length+c);for(var f=c;f<e;f++){d[f-c]=(0,l.mergeOptions)(a[f],d[f-c])}return d};d.updateSegments=q;var r=function z(a,b){if(!a.resolvedUri){a.resolvedUri=(0,k["default"])(b,a.uri)}if(a.key&&!a.key.resolvedUri){a.key.resolvedUri=(0,k["default"])(b,a.key.uri)}if(a.map&&!a.map.resolvedUri){a.map.resolvedUri=(0,k["default"])(b,a.map.uri)}};d.resolveSegmentUris=r;var s=function A(a,b){var c=(0,l.mergeOptions)(a,{});var d=c.playlists.filter(function(a){return a.uri===b.uri})[0];if(!d){return null}if(d.segments&&b.segments&&d.segments.length===b.segments.length&&d.mediaSequence===b.mediaSequence){return null}var e=(0,l.mergeOptions)(d,b);if(d.segments){e.segments=q(d.segments,b.segments,b.mediaSequence-d.mediaSequence)}e.segments.forEach(function(a){r(a,e.resolvedUri)});for(var f=0;f<c.playlists.length;f++){if(c.playlists[f].uri===b.uri){c.playlists[f]=e}}c.playlists[b.uri]=e;return c};d.updateMaster=s;var t=function B(a){var b=a.playlists.length;while(b--){var c=a.playlists[b];a.playlists[c.uri]=c;c.resolvedUri=(0,k["default"])(a.uri,c.uri);if(!c.attributes){c.attributes={};l.log.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}};d.setupMediaPlaylists=t;var u=function C(a){["AUDIO","SUBTITLES"].forEach(function(b){for(var c in a.mediaGroups[b]){for(var d in a.mediaGroups[b][c]){var e=a.mediaGroups[b][c][d];if(e.uri){e.resolvedUri=(0,k["default"])(a.uri,e.uri)}}}})};d.resolveMediaGroupUris=u;var v=function D(a,b){var c=a.segments[a.segments.length-1];var d=undefined;if(b&&c&&c.duration){d=c.duration*1e3}else{d=(a.targetDuration||10)*500}return d};d.refreshDelay=v;var w=function(a){i(b,a);function b(a,c,d){var e=this;h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.srcUrl=a;this.hls_=c;this.withCredentials=d;if(!this.srcUrl){throw new Error("A non-empty playlist URL is required")}this.state="HAVE_NOTHING";this.on("mediaupdatetimeout",function(){if(e.state!=="HAVE_METADATA"){return}e.state="HAVE_CURRENT_METADATA";e.request=e.hls_.xhr({uri:(0,k["default"])(e.master.uri,e.media().uri),withCredentials:e.withCredentials},function(a,b){if(!e.request){return}if(a){return e.playlistRequestError(e.request,e.media().uri,"HAVE_METADATA")}e.haveMetadata(e.request,e.media().uri)})})}e(b,[{key:"playlistRequestError",value:function c(a,b,d){this.request=null;if(d){this.state=d}this.error={playlist:this.master.playlists[b],status:a.status,message:"HLS playlist request error at URL: "+b,responseText:a.responseText,code:a.status>=500?4:2};this.trigger("error")}},{key:"haveMetadata",value:function d(a,b){var c=this;this.request=null;this.state="HAVE_METADATA";var d=new n["default"].Parser;d.push(a.responseText);d.end();d.manifest.uri=b;d.manifest.attributes=d.manifest.attributes||{};var e=s(this.master,d.manifest);this.targetDuration=d.manifest.targetDuration;if(e){this.master=e;this.media_=this.master.playlists[d.manifest.uri]}else{this.trigger("playlistunchanged")}if(!this.media().endList){p["default"].clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=p["default"].setTimeout(function(){c.trigger("mediaupdatetimeout")},v(this.media(),!!e))}this.trigger("loadedplaylist")}},{key:"dispose",value:function g(){this.stopRequest();p["default"].clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function j(){if(this.request){var a=this.request;this.request=null;a.onreadystatechange=null;a.abort()}}},{key:"media",value:function l(a){var b=this;if(!a){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}var c=this.state;if(typeof a==="string"){if(!this.master.playlists[a]){throw new Error("Unknown playlist URI: "+a)}a=this.master.playlists[a]}var d=!this.media_||a.uri!==this.media_.uri;if(this.master.playlists[a.uri].endList){if(this.request){this.request.onreadystatechange=null;this.request.abort();this.request=null}this.state="HAVE_METADATA";this.media_=a;if(d){this.trigger("mediachanging");this.trigger("mediachange")}return}if(!d){return}this.state="SWITCHING_MEDIA";if(this.request){if((0,k["default"])(this.master.uri,a.uri)===this.request.url){return}this.request.onreadystatechange=null;this.request.abort();this.request=null}if(this.media_){this.trigger("mediachanging")}this.request=this.hls_.xhr({uri:(0,k["default"])(this.master.uri,a.uri),withCredentials:this.withCredentials},function(d,e){if(!b.request){return}if(d){return b.playlistRequestError(b.request,a.uri,c)}b.haveMetadata(e,a.uri);if(c==="HAVE_MASTER"){b.trigger("loadedmetadata")}else{b.trigger("mediachange")}})}},{key:"pause",value:function m(){this.stopRequest();p["default"].clearTimeout(this.mediaUpdateTimeout);if(this.state==="HAVE_NOTHING"){this.started=false}if(this.state==="SWITCHING_MEDIA"){if(this.media_){this.state="HAVE_METADATA"}else{this.state="HAVE_MASTER"}}else if(this.state==="HAVE_CURRENT_METADATA"){this.state="HAVE_METADATA"}}},{key:"load",value:function o(a){var b=this;p["default"].clearTimeout(this.mediaUpdateTimeout);var c=this.media();if(a){var d=c?c.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=p["default"].setTimeout(function(){return b.load()},d);return}if(!this.started){this.start();return}if(c&&!c.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}}},{key:"start",value:function q(){var a=this;this.started=true;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(b,c){if(!a.request){return}a.request=null;if(b){a.error={status:c.status,message:"HLS playlist request error at URL: "+a.srcUrl,responseText:c.responseText,code:2};if(a.state==="HAVE_NOTHING"){a.started=false}return a.trigger("error")}var d=new n["default"].Parser;d.push(c.responseText);d.end();a.state="HAVE_MASTER";d.manifest.uri=a.srcUrl;if(d.manifest.playlists){a.master=d.manifest;t(a.master);u(a.master);a.trigger("loadedplaylist");if(!a.request){a.media(d.manifest.playlists[0])}return}a.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:p["default"].location.href,playlists:[{uri:a.srcUrl}]};a.master.playlists[a.srcUrl]=a.master.playlists[0];a.master.playlists[0].resolvedUri=a.srcUrl;a.master.playlists[0].attributes=a.master.playlists[0].attributes||{};a.haveMetadata(c,a.srcUrl);return a.trigger("loadedmetadata")})}}]);return b}(l.EventTarget);d["default"]=w}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./resolve-url":15,"global/window":29,"m3u8-parser":30}],10:[function(b,c,d){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=b("./config");var g=e(f);var h=b("./playlist");var i=e(h);var j=b("./util/codecs.js");var k=function t(b,c){var d=undefined;if(!b){return""}d=a.getComputedStyle(b);if(!d){return""}return d[c]};var l=function u(a,b){var c=a.slice();a.sort(function(a,d){var e=b(a,d);if(e===0){return c.indexOf(a)-c.indexOf(d)}return e})};var m=function v(b,c){var d=undefined;var e=undefined;if(b.attributes.BANDWIDTH){d=b.attributes.BANDWIDTH}d=d||a.Number.MAX_VALUE;if(c.attributes.BANDWIDTH){e=c.attributes.BANDWIDTH}e=e||a.Number.MAX_VALUE;return d-e};d.comparePlaylistBandwidth=m;var n=function w(b,c){var d=undefined;var e=undefined;if(b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width){d=b.attributes.RESOLUTION.width}d=d||a.Number.MAX_VALUE;if(c.attributes.RESOLUTION&&c.attributes.RESOLUTION.width){e=c.attributes.RESOLUTION.width}e=e||a.Number.MAX_VALUE;if(d===e&&b.attributes.BANDWIDTH&&c.attributes.BANDWIDTH){return b.attributes.BANDWIDTH-c.attributes.BANDWIDTH}return d-e};d.comparePlaylistResolution=n;var o=function x(b,c,d,e){var f=b.playlists.map(function(b){var c=undefined;var d=undefined;var e=undefined;c=b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width;d=b.attributes.RESOLUTION&&b.attributes.RESOLUTION.height;e=b.attributes.BANDWIDTH;e=e||a.Number.MAX_VALUE;return{bandwidth:e,width:c,height:d,playlist:b}});l(f,function(a,b){return a.bandwidth-b.bandwidth});f=f.filter(function(a){return!i["default"].isIncompatible(a.playlist)});var h=f.filter(function(a){return i["default"].isEnabled(a.playlist)});if(!h.length){h=f.filter(function(a){return!i["default"].isDisabled(a.playlist)})}var j=h.filter(function(a){return a.bandwidth*g["default"].BANDWIDTH_VARIANCE<c});var k=j[j.length-1];var m=j.filter(function(a){return a.bandwidth===k.bandwidth})[0];var n=j.filter(function(a){return a.width&&a.height});l(n,function(a,b){return a.width-b.width});var o=n.filter(function(a){return a.width===d&&a.height===e});k=o[o.length-1];var p=o.filter(function(a){return a.bandwidth===k.bandwidth})[0];var q=undefined;var r=undefined;var s=undefined;if(!p){q=n.filter(function(a){return a.width>d||a.height>e});r=q.filter(function(a){return a.width===q[0].width&&a.height===q[0].height});k=r[r.length-1];s=r.filter(function(a){return a.bandwidth===k.bandwidth})[0]}var t=s||p||m||h[0]||f[0];return t?t.playlist:null};d.simpleSelector=o;var p=function y(){return o(this.playlists.master,this.systemBandwidth,parseInt(k(this.tech_.el(),"width"),10),parseInt(k(this.tech_.el(),"height"),10))};d.lastBandwidthSelector=p;var q=function z(a){var b=-1;if(a<0||a>1){throw new Error("Moving average bandwidth decay must be between 0 and 1.")}return function(){if(b<0){b=this.systemBandwidth}b=a*this.systemBandwidth+(1-a)*b;return o(this.playlists.master,b,parseInt(k(this.tech_.el(),"width"),10),parseInt(k(this.tech_.el(),"height"),10))}};d.movingAverageBandwidthSelector=q;var r=function A(a){var b=a.master;var c=a.currentTime;var d=a.bandwidth;var e=a.duration;var f=a.segmentDuration;var g=a.timeUntilRebuffer;var h=a.currentTimeline;var j=a.syncController;var k=b.playlists.filter(function(a){return!i["default"].isIncompatible(a)});var n=k.filter(i["default"].isEnabled);if(!n.length){n=k.filter(function(a){return!i["default"].isDisabled(a)})}var o=n.filter(i["default"].hasAttribute.bind(null,"BANDWIDTH"));var p=o.map(function(a){var b=j.getSyncPoint(a,e,h,c);var k=b?1:2;var l=i["default"].estimateSegmentRequestTime(f,d,a);var m=l*k-g;return{playlist:a,rebufferingImpact:m}});var q=p.filter(function(a){return a.rebufferingImpact<=0});l(q,function(a,b){return m(b.playlist,a.playlist)});if(q.length){return q[0]}l(p,function(a,b){return a.rebufferingImpact-b.rebufferingImpact});return p[0]||null};d.minRebufferMaxBandwidthSelector=r;var s=function B(){var a=this.playlists.master.playlists.filter(i["default"].isEnabled);l(a,function(a,b){return m(a,b)});var b=a.filter(function(a){return(0,j.parseCodecs)(a.attributes.CODECS).videoCodec});return b[0]||null};d.lowestBitrateCompatibleVariantSelector=s},{"./config":3,"./playlist":11,"./util/codecs.js":19}],11:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var g=b("global/window");var h=e(g);var i=function E(a,b){var c=0;var d=b-a.mediaSequence;var e=a.segments[d];if(e){if(typeof e.start!=="undefined"){return{result:e.start,precise:true}}if(typeof e.end!=="undefined"){return{result:e.end-e.duration,precise:true}}}while(d--){e=a.segments[d];if(typeof e.end!=="undefined"){return{result:c+e.end,precise:true}}c+=e.duration;if(typeof e.start!=="undefined"){return{result:c+e.start,precise:true}}}return{result:c,precise:false}};var j=function F(a,b){var c=0;var d=undefined;var e=b-a.mediaSequence;for(;e<a.segments.length;e++){d=a.segments[e];if(typeof d.start!=="undefined"){return{result:d.start-c,precise:true}}c+=d.duration;if(typeof d.end!=="undefined"){return{result:d.end-c,precise:true}}}return{result:-1,precise:false}};var k=function G(a,b,c){var d=undefined;var e=undefined;if(typeof b==="undefined"){b=a.mediaSequence+a.segments.length}if(b<a.mediaSequence){return 0}d=i(a,b);if(d.precise){return d.result}e=j(a,b);if(e.precise){return e.result}return d.result+c};var l=function H(a,b,c){if(!a){return 0}if(typeof c!=="number"){c=0}if(typeof b==="undefined"){if(a.totalDuration){return a.totalDuration}if(!a.endList){return h["default"].Infinity}}return k(a,b,c)};d.duration=l;var m=function I(a,b,c){var d=0;if(b>c){var e=[c,b];b=e[0];c=e[1]}if(b<0){for(var f=b;f<Math.min(0,c);f++){d+=a.targetDuration}b=0}for(var f=b;f<c;f++){d+=a.segments[f].duration}return d};d.sumDurations=m;var n=function J(a){if(!a.segments.length){return 0}var b=a.segments.length-1;var c=a.segments[b].duration||a.targetDuration;var d=c+a.targetDuration*2;while(b--){c+=a.segments[b].duration;if(c>=d){break}}return Math.max(0,b)};d.safeLiveIndex=n;var o=function K(a,b,c){if(!a||!a.segments){return null}if(a.endList){return l(a)}if(b===null){return null}b=b||0;var d=c?n(a):a.segments.length;return k(a,a.mediaSequence+d,b)};d.playlistEnd=o;var p=function L(a,b){var c=true;var d=b||0;var e=o(a,b,c);if(e===null){return(0,f.createTimeRange)()}return(0,f.createTimeRange)(d,e)};d.seekable=p;var q=function M(a){return a-Math.floor(a)===0};var r=function N(a,b){if(q(b)){return b+a*.1}var c=b.toString().split(".")[1].length;for(var d=1;d<=c;d++){var e=Math.pow(10,d);var f=b*e;if(q(f)||d===c){return(f+a)/e}}};var s=r.bind(null,1);var t=r.bind(null,-1);var u=function O(a,b,c,d){var e=undefined;var f=undefined;var g=a.segments.length;var h=b-d;if(h<0){if(c>0){for(e=c-1;e>=0;e--){f=a.segments[e];h+=t(f.duration);if(h>0){return{mediaIndex:e,startTime:d-m(a,c,e)}}}}return{mediaIndex:0,startTime:b}}if(c<0){for(e=c;e<0;e++){h-=a.targetDuration;if(h<0){return{mediaIndex:0,startTime:b}}}c=0}for(e=c;e<g;e++){f=a.segments[e];h-=s(f.duration);if(h<0){return{mediaIndex:e,startTime:d+m(a,c,e)}}}return{mediaIndex:g-1,startTime:b}};d.getMediaInfoForTime=u;var v=function P(a){return a.excludeUntil&&a.excludeUntil>Date.now()};d.isBlacklisted=v;var w=function Q(a){return a.excludeUntil&&a.excludeUntil===Infinity};d.isIncompatible=w;var x=function R(a){var b=v(a);return!a.disabled&&!b};d.isEnabled=x;var y=function S(a){return a.disabled};d.isDisabled=y;var z=function T(a){for(var b=0;b<a.segments.length;b++){if(a.segments[b].key){return true}}return false};d.isAes=z;var A=function U(a){for(var b=0;b<a.segments.length;b++){if(a.segments[b].map){return true}}return false};d.isFmp4=A;var B=function V(a,b){return b.attributes&&b.attributes[a]};d.hasAttribute=B;var C=function W(a,b,c){var d=arguments.length<=3||arguments[3]===undefined?0:arguments[3];if(!B("BANDWIDTH",c)){return NaN}var e=a*c.attributes.BANDWIDTH;return(e-d*8)/b};d.estimateSegmentRequestTime=C;var D=function X(a,b){if(a.playlists.length===1){return true}var c=b.attributes.BANDWIDTH||Number.MAX_VALUE;return a.playlists.filter(function(a){if(!x(a)){return false}return(a.attributes.BANDWIDTH||0)<c}).length===0};d.isLowestEnabledRendition=D;d["default"]={duration:l,seekable:p,safeLiveIndex:n,getMediaInfoForTime:u,isEnabled:x,isDisabled:y,isBlacklisted:v,isIncompatible:w,playlistEnd:o,isAes:z,isFmp4:A,hasAttribute:B,estimateSegmentRequestTime:C,isLowestEnabledRendition:D}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":29}],12:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function f(a){return a&&a.__esModule?a:{"default":a}}var g=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var h=f(g);var i=1/30;var j=i*3;var k=function v(a,b){var c=e(b,2);var d=c[0];var f=c[1];return Math.min(Math.max(d,a),f)};var l=function w(a,b){var c=[];var d=undefined;if(a&&a.length){for(d=0;d<a.length;d++){if(b(a.start(d),a.end(d))){c.push([a.start(d),a.end(d)])}}}return h["default"].createTimeRanges(c)};var m=function x(a,b){return l(a,function(a,c){return a-i<=b&&c+i>=b})};var n=function y(a,b){return l(a,function(a){return a-i>=b})};var o=function z(a){if(a.length<2){return h["default"].createTimeRanges()}var b=[];for(var c=1;c<a.length;c++){var d=a.end(c-1);var e=a.start(c);b.push([d,e])}return h["default"].createTimeRanges(b)};var p=function A(a,b){var c=undefined;var d=undefined;var e=undefined;var f=[];var g=[];var h=function i(a){return a[0]<=e&&a[1]>=e};if(a){for(c=0;c<a.length;c++){d=a.start(c);e=a.end(c);g.push([d,e])}}if(b){for(c=0;c<b.length;c++){d=b.start(c);e=b.end(c);if(g.some(h)){continue}f.push(e)}}if(f.length!==1){return null}return f[0]};var q=function B(a,b){var c=null;var d=null;var e=0;var f=[];var g=[];if(!a||!a.length||!b||!b.length){return h["default"].createTimeRange()}var i=a.length;while(i--){f.push({time:a.start(i),type:"start"});f.push({time:a.end(i),type:"end"})}i=b.length;while(i--){f.push({time:b.start(i),type:"start"});f.push({time:b.end(i),type:"end"})}f.sort(function(a,b){return a.time-b.time});for(i=0;i<f.length;i++){if(f[i].type==="start"){e++;if(e===2){c=f[i].time}}else if(f[i].type==="end"){e--;if(e===1){d=f[i].time}}if(c!==null&&d!==null){g.push([c,d]);c=null;d=null}}return h["default"].createTimeRanges(g)};var r=function C(a,b,c,d){var e=b.end(0)-b.start(0);var f=a.end(0)-a.start(0);var g=e-f;var h=q(a,d);var i=q(b,d);var j=0;var k=0;var l=h.length;while(l--){j+=h.end(l)-h.start(l);if(h.start(l)===c){j+=g}}l=i.length;while(l--){k+=i.end(l)-i.start(l)}return Math.max(j,k)/e*100};var s=function D(a,b,c,d){var e=a+b;var f=h["default"].createTimeRanges([[a,e]]);var g=h["default"].createTimeRanges([[k(a,[c,e]),e]]);if(g.start(0)===g.end(0)){return 0}var i=r(g,f,c,d);if(isNaN(i)||i===Infinity||i===-Infinity){return 0}return i};var t=function E(a){var b=[];if(!a||!a.length){return""}for(var c=0;c<a.length;c++){b.push(a.start(c)+" => "+a.end(c))}return b.join(", ")};var u=function F(a,b){var c=arguments.length<=2||arguments[2]===undefined?1:arguments[2];var d=a.length?a.end(a.length-1):0;return(d-b)/c};d["default"]={findRange:m,findNextRange:n,findGaps:o,findSoleUncommonTimeRangesEnd:p,getSegmentBufferedPercent:s,TIME_FUDGE_FACTOR:i,SAFE_TIME_DELTA:j,printableRange:t,timeUntilRebuffer:u};c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],13:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var g=e(f);var h={errorInterval:30,getSource:function k(a){var b=this.tech({IWillNotUseThisInPlugins:true});var c=b.currentSource_;return a(c)}};var i=function l(a,b){var c=0;var d=0;var e=g["default"].mergeOptions(h,b);a.ready(function(){a.trigger({type:"usage",name:"hls-error-reload-initialized"})});var f=function n(){if(d){a.currentTime(d)}};var i=function o(b){if(b===null||b===undefined){return}d=a.duration()!==Infinity&&a.currentTime()||0;a.one("loadedmetadata",f);a.src(b);a.trigger({type:"usage",name:"hls-error-reload"});a.play()};var j=function p(){if(Date.now()-c<e.errorInterval*1e3){a.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!e.getSource||typeof e.getSource!=="function"){g["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}c=Date.now();return e.getSource.call(a,i)};var k=function q(){a.off("loadedmetadata",f);a.off("error",j);a.off("dispose",q)};var m=function r(b){k();l(a,b)};a.on("error",j);a.on("dispose",k);a.reloadSourceOnError=m};var j=function m(a){i(this,a)};d["default"]=j;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],14:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var e=a("./playlist.js");var f=function i(a,b,c){return function(d){var f=a.master.playlists[b];var g=(0,e.isIncompatible)(f);var h=(0,e.isEnabled)(f);if(typeof d==="undefined"){return h}if(d){delete f.disabled}else{f.disabled=true}if(d!==h&&!g){c();if(d){a.trigger("renditionenabled")}else{a.trigger("renditiondisabled")}}return d}};var g=function j(a,b,c){d(this,j);var e=a.masterPlaylistController_.fastQualityChange_.bind(a.masterPlaylistController_);if(b.attributes.RESOLUTION){var g=b.attributes.RESOLUTION;this.width=g.width;this.height=g.height}this.bandwidth=b.attributes.BANDWIDTH;this.id=c;this.enabled=f(a.playlists,b.uri,e)};var h=function k(a){var b=a.playlists;a.representations=function(){return b.master.playlists.filter(function(a){return!(0,e.isIncompatible)(a)}).map(function(b,c){return new g(a,b,b.uri)})}};c["default"]=h;b.exports=c["default"]},{"./playlist.js":11}],15:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("url-toolkit");var f=d(e);var g=a("global/window");var h=d(g);var i=function j(a,b){if(/^[a-z]+:/i.test(b)){return b}if(!/\/\//i.test(a)){a=f["default"].buildAbsoluteURL(h["default"].location.href,a)}return f["default"].buildAbsoluteURL(a,b)};c["default"]=i;b.exports=c["default"]},{"global/window":29,"url-toolkit":63}],16:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function F(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("./playlist");var k=g(j);var l=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var m=g(l);var n=b("./source-updater");var o=g(n);var p=b("./config");var q=g(p);var r=b("global/window");var s=g(r);var t=b("videojs-contrib-media-sources/es5/remove-cues-from-track.js");var u=g(t);var v=b("./bin-utils");var w=b("./media-segment-request");var x=b("./ranges");var y=b("./playlist-selectors");var z=500;var A=function G(a,b,c){if(!a||!b){return false}var d=a.segments;var e=c===d.length;return a.endList&&b.readyState==="open"&&e};var B=function H(a){return typeof a==="number"&&isFinite(a)};var C=function I(a,b,c){if(a!=="main"||!b||!c){return null}if(!c.containsAudio&&!c.containsVideo){return"Neither audio nor video found in segment."}if(b.containsVideo&&!c.containsVideo){return"Only audio found in segment when we expected video."+" We can't switch to audio only from a stream that had video."+" To get rid of this message, please add codec information to the manifest."}if(!b.containsVideo&&c.containsVideo){return"Video found in segment when we expected only audio."+" We can't switch to a stream with video from an audio only stream."+" To get rid of this message, please add codec information to the manifest."}return null};d.illegalMediaSwitch=C;var D=function J(a,b,c){var d=undefined;if(a.length&&a.start(0)>0&&a.start(0)<b){d=a.start(0)}else{d=b-30}return Math.min(d,b-c)};d.safeBackBufferTrimTime=D;var E=function(a){i(b,a);function b(a){var c=this;var d=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);if(!a){throw new TypeError("Initialization settings are required")}if(typeof a.currentTime!=="function"){throw new TypeError("No currentTime getter specified")}if(!a.mediaSource){throw new TypeError("No MediaSource specified")}this.state="INIT";this.bandwidth=a.bandwidth;this.throughput={rate:0,count:0};this.roundTrip=NaN;this.resetStats_();this.mediaIndex=null;this.hasPlayed_=a.hasPlayed;this.currentTime_=a.currentTime;this.seekable_=a.seekable;this.seeking_=a.seeking;this.duration_=a.duration;this.mediaSource_=a.mediaSource;this.hls_=a.hls;this.loaderType_=a.loaderType;this.startingMedia_=void 0;this.segmentMetadataTrack_=a.segmentMetadataTrack;this.goalBufferLength_=a.goalBufferLength;this.checkBufferTimeout_=null;this.error_=void 0;this.currentTimeline_=-1;this.pendingSegment_=null;this.mimeType_=null;this.sourceUpdater_=null;this.xhrOptions_=null;this.activeInitSegmentId_=null;this.initSegments_={};this.decrypter_=a.decrypter;this.syncController_=a.syncController;this.syncPoint_={segmentIndex:0,time:0};this.syncController_.on("syncinfoupdate",function(){return c.trigger("syncinfoupdate")});this.mediaSource_.addEventListener("sourceopen",function(){return c.ended_=false});this.fetchAtBuffer_=false;if(d.debug){this.logger_=m["default"].log.bind(m["default"],"segment-loader",this.loaderType_,"->")}}e(b,[{key:"resetStats_",value:function c(){this.mediaBytesTransferred=0;this.mediaRequests=0;this.mediaRequestsAborted=0;this.mediaRequestsTimedout=0;this.mediaRequestsErrored=0;this.mediaTransferDuration=0;this.mediaSecondsLoaded=0}},{key:"dispose",value:function d(){this.state="DISPOSED";this.pause();this.abort_();if(this.sourceUpdater_){this.sourceUpdater_.dispose()}this.resetStats_()}},{key:"abort",value:function g(){if(this.state!=="WAITING"){if(this.pendingSegment_){this.pendingSegment_=null}return}this.abort_();this.state="READY";if(!this.paused()){this.monitorBuffer_()}}},{key:"abort_",value:function j(){if(this.pendingSegment_){this.pendingSegment_.abortRequests()}this.pendingSegment_=null}},{key:"error",value:function l(a){if(typeof a!=="undefined"){this.error_=a}this.pendingSegment_=null;return this.error_}},{key:"endOfStream",value:function n(){this.ended_=true;this.pause();this.trigger("ended")}},{key:"buffered_",value:function p(){if(!this.sourceUpdater_){return m["default"].createTimeRanges()}return this.sourceUpdater_.buffered()}},{key:"initSegment",value:function r(a){var b=arguments.length<=1||arguments[1]===undefined?false:arguments[1];if(!a){return null}var c=(0,v.initSegmentId)(a);var d=this.initSegments_[c];if(b&&!d&&a.bytes){this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:a.bytes}}return d||a}},{key:"couldBeginLoading_",value:function t(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&this.state==="INIT")&&!this.paused()}},{key:"load",value:function E(){this.monitorBuffer_();if(!this.playlist_){return}this.syncController_.setDateTimeMapping(this.playlist_);if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"){ return}this.state="READY"}},{key:"init_",value:function F(){this.state="READY";this.sourceUpdater_=new o["default"](this.mediaSource_,this.mimeType_);this.resetEverything();return this.monitorBuffer_()}},{key:"playlist",value:function G(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];if(!a){return}var c=this.playlist_;var d=this.pendingSegment_;this.playlist_=a;this.xhrOptions_=b;if(!this.hasPlayed_()){a.syncInfo={mediaSequence:a.mediaSequence,time:0}}this.trigger("syncinfoupdate");if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!c||c.uri!==a.uri){if(this.mediaIndex!==null){this.resyncLoader()}return}var e=a.mediaSequence-c.mediaSequence;this.logger_("mediaSequenceDiff",e);if(this.mediaIndex!==null){this.mediaIndex-=e}if(d){d.mediaIndex-=e;if(d.mediaIndex>=0){d.segment=a.segments[d.mediaIndex]}}this.syncController_.saveExpiredSegmentInfo(c,a)}},{key:"pause",value:function H(){if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=null}}},{key:"paused",value:function I(){return this.checkBufferTimeout_===null}},{key:"mimeType",value:function J(a){if(this.mimeType_){return}this.mimeType_=a;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}}},{key:"resetEverything",value:function K(){this.ended_=false;this.resetLoader();this.remove(0,this.duration_());this.trigger("reseteverything")}},{key:"resetLoader",value:function L(){this.fetchAtBuffer_=false;this.resyncLoader()}},{key:"resyncLoader",value:function M(){this.mediaIndex=null;this.syncPoint_=null;this.abort()}},{key:"remove",value:function N(a,b){if(this.sourceUpdater_){this.sourceUpdater_.remove(a,b)}(0,u["default"])(a,b,this.segmentMetadataTrack_)}},{key:"monitorBuffer_",value:function O(){if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=s["default"].setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function P(){if(this.state==="READY"){this.fillBuffer_()}if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=s["default"].setTimeout(this.monitorBufferTick_.bind(this),z)}},{key:"fillBuffer_",value:function Q(){if(this.sourceUpdater_.updating()){return}if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var a=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(!a){return}var b=A(this.playlist_,this.mediaSource_,a.mediaIndex);if(b){this.endOfStream();return}if(a.mediaIndex===this.playlist_.segments.length-1&&this.mediaSource_.readyState==="ended"&&!this.seeking_()){return}if(a.timeline!==this.currentTimeline_||a.startOfSegment!==null&&a.startOfSegment<this.sourceUpdater_.timestampOffset()){this.syncController_.reset();a.timestampOffset=a.startOfSegment}this.loadSegment_(a)}},{key:"checkBuffer_",value:function R(a,b,c,d,e,f){var g=0;var h=undefined;if(a.length){g=a.end(a.length-1)}var i=Math.max(0,g-e);if(!b.segments.length){return null}if(i>=this.goalBufferLength_()){return null}if(!d&&i>=1){return null}this.logger_("checkBuffer_","mediaIndex:",c,"hasPlayed:",d,"currentTime:",e,"syncPoint:",f,"fetchAtBuffer:",this.fetchAtBuffer_,"bufferedTime:",i);if(f===null){c=this.getSyncSegmentCandidate_(b);this.logger_("getSync","mediaIndex:",c);return this.generateSegmentInfo_(b,c,null,true)}if(c!==null){this.logger_("walkForward","mediaIndex:",c+1);var j=b.segments[c];if(j&&j.end){h=j.end}else{h=g}return this.generateSegmentInfo_(b,c+1,h,false)}if(this.fetchAtBuffer_){var l=k["default"].getMediaInfoForTime(b,g,f.segmentIndex,f.time);c=l.mediaIndex;h=l.startTime}else{var l=k["default"].getMediaInfoForTime(b,e,f.segmentIndex,f.time);c=l.mediaIndex;h=l.startTime}this.logger_("getMediaIndexForTime","mediaIndex:",c,"startOfSegment:",h);return this.generateSegmentInfo_(b,c,h,false)}},{key:"getSyncSegmentCandidate_",value:function S(a){var b=this;if(this.currentTimeline_===-1){return 0}var c=a.segments.map(function(a,b){return{timeline:a.timeline,segmentIndex:b}}).filter(function(a){return a.timeline===b.currentTimeline_});if(c.length){return c[Math.min(c.length-1,1)].segmentIndex}return Math.max(a.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function T(a,b,c,d){if(b<0||b>=a.segments.length){return null}var e=a.segments[b];return{requestId:"segment-loader-"+Math.random(),uri:e.resolvedUri,mediaIndex:b,isSyncRequest:d,startOfSegment:c,playlist:a,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:e.timeline,duration:e.duration,segment:e}}},{key:"abortRequestEarly_",value:function U(a){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH){return false}if(Date.now()-(a.firstBytesReceivedAt||Date.now())<1e3){return false}var b=this.currentTime_();var c=a.bandwidth;var d=this.pendingSegment_.duration;var e=k["default"].estimateSegmentRequestTime(d,c,this.playlist_,a.bytesReceived);var f=(0,x.timeUntilRebuffer)(this.buffered_(),b,this.hls_.tech_.playbackRate())-1;if(e<=f){return false}var g=(0,y.minRebufferMaxBandwidthSelector)({master:this.hls_.playlists.master,currentTime:b,bandwidth:c,duration:this.duration_(),segmentDuration:d,timeUntilRebuffer:f,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!g){return}var h=e-f;var i=h-g.rebufferingImpact;var j=.5;if(f<=x.TIME_FUDGE_FACTOR){j=1}if(!g.playlist||g.playlist.uri===this.playlist_.uri||i<j){return false}this.bandwidth=g.playlist.attributes.BANDWIDTH*q["default"].BANDWIDTH_VARIANCE+1;this.abort();this.trigger("earlyabort");return true}},{key:"handleProgress_",value:function V(a,b){if(!this.pendingSegment_||b.requestId!==this.pendingSegment_.requestId||this.abortRequestEarly_(b.stats)){return}this.trigger("progress")}},{key:"loadSegment_",value:function W(a){this.state="WAITING";this.pendingSegment_=a;this.trimBackBuffer_(a);a.abortRequests=(0,w.mediaSegmentRequest)(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.createSimplifiedSegmentObj_(a),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function X(a){var b=D(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);if(b>0){this.remove(0,b)}}},{key:"createSimplifiedSegmentObj_",value:function Y(a){var b=a.segment;var c={resolvedUri:b.resolvedUri,byterange:b.byterange,requestId:a.requestId};if(b.key){var d=b.key.iv||new Uint32Array([0,0,0,a.mediaIndex+a.playlist.mediaSequence]);c.key={resolvedUri:b.key.resolvedUri,iv:d}}if(b.map){c.map=this.initSegment(b.map)}return c}},{key:"segmentRequestFinished_",value:function Z(a,b){this.mediaRequests+=1;if(b.stats){this.mediaBytesTransferred+=b.stats.bytesReceived;this.mediaTransferDuration+=b.stats.roundTripTime}if(!this.pendingSegment_){this.mediaRequestsAborted+=1;return}if(b.requestId!==this.pendingSegment_.requestId){return}if(a){this.pendingSegment_=null;this.state="READY";if(a.code===w.REQUEST_ERRORS.ABORTED){this.mediaRequestsAborted+=1;return}this.pause();if(a.code===w.REQUEST_ERRORS.TIMEOUT){this.mediaRequestsTimedout+=1;this.bandwidth=1;this.roundTrip=NaN;this.trigger("bandwidthupdate");return}this.mediaRequestsErrored+=1;this.error(a);this.trigger("error");return}this.bandwidth=b.stats.bandwidth;this.roundTrip=b.stats.roundTripTime;if(b.map){b.map=this.initSegment(b.map,true)}this.processSegmentResponse_(b)}},{key:"processSegmentResponse_",value:function $(a){var b=this.pendingSegment_;b.bytes=a.bytes;if(a.map){b.segment.map.bytes=a.map.bytes}b.endOfAllRequests=a.endOfAllRequests;this.handleSegment_()}},{key:"handleSegment_",value:function _(){var a=this;if(!this.pendingSegment_){this.state="READY";return}var b=this.pendingSegment_;var c=b.segment;var d=this.syncController_.probeSegmentInfo(b);if(typeof this.startingMedia_==="undefined"&&d&&(d.containsAudio||d.containsVideo)){this.startingMedia_={containsAudio:d.containsAudio,containsVideo:d.containsVideo}}var e=C(this.loaderType_,this.startingMedia_,d);if(e){this.error({message:e,blacklistDuration:Infinity});this.trigger("error");return}if(b.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}if(b.timestampOffset!==null&&b.timestampOffset!==this.sourceUpdater_.timestampOffset()){this.sourceUpdater_.timestampOffset(b.timestampOffset);this.trigger("timestampoffset")}var f=this.syncController_.mappingForTimeline(b.timeline);if(f!==null){this.trigger({type:"segmenttimemapping",mapping:f})}this.state="APPENDING";if(c.map){(function(){var b=(0,v.initSegmentId)(c.map);if(!a.activeInitSegmentId_||a.activeInitSegmentId_!==b){var d=a.initSegment(c.map);a.sourceUpdater_.appendBuffer(d.bytes,function(){a.activeInitSegmentId_=b})}})()}b.byteLength=b.bytes.byteLength;if(typeof c.start==="number"&&typeof c.end==="number"){this.mediaSecondsLoaded+=c.end-c.start}else{this.mediaSecondsLoaded+=c.duration}this.sourceUpdater_.appendBuffer(b.bytes,this.handleUpdateEnd_.bind(this))}},{key:"handleUpdateEnd_",value:function aa(){this.logger_("handleUpdateEnd_","segmentInfo:",this.pendingSegment_);if(!this.pendingSegment_){this.state="READY";if(!this.paused()){this.monitorBuffer_()}return}var a=this.pendingSegment_;var b=a.segment;var c=this.mediaIndex!==null;this.pendingSegment_=null;this.recordThroughput_(a);this.addSegmentMetadataCue_(a);this.state="READY";this.mediaIndex=a.mediaIndex;this.fetchAtBuffer_=true;this.currentTimeline_=a.timeline;this.trigger("syncinfoupdate");if(b.end&&this.currentTime_()-b.end>a.playlist.targetDuration*3){this.resetEverything();return}if(c){this.trigger("bandwidthupdate")}this.trigger("progress");var d=A(a.playlist,this.mediaSource_,a.mediaIndex+1);if(d){this.endOfStream()}if(!this.paused()){this.monitorBuffer_()}}},{key:"recordThroughput_",value:function ba(a){var b=this.throughput.rate;var c=Date.now()-a.endOfAllRequests+1;var d=Math.floor(a.byteLength/c*8*1e3);this.throughput.rate+=(d-b)/++this.throughput.count}},{key:"logger_",value:function ca(){}},{key:"addSegmentMetadataCue_",value:function da(a){if(!this.segmentMetadataTrack_){return}var b=a.segment;var c=b.start;var d=b.end;if(!B(c)||!B(d)){return}(0,u["default"])(c,d,this.segmentMetadataTrack_);var e=s["default"].WebKitDataCue||s["default"].VTTCue;var f={uri:a.uri,timeline:a.timeline,playlist:a.playlist.uri,start:c,end:d};var g=JSON.stringify(f);var h=new e(c,d,g);h.value=f;this.segmentMetadataTrack_.addCue(h)}}]);return b}(m["default"].EventTarget);d["default"]=E}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./config":3,"./media-segment-request":7,"./playlist":11,"./playlist-selectors":10,"./ranges":12,"./source-updater":17,"global/window":29,"videojs-contrib-media-sources/es5/remove-cues-from-track.js":72}],17:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var h=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var i=f(h);var j=function l(){};var k=function(){function a(b,c){var d=this;g(this,a);var e=function f(){d.sourceBuffer_=b.addSourceBuffer(c);d.onUpdateendCallback_=function(){var a=d.pendingCallback_;d.pendingCallback_=null;if(a){a()}d.runCallback_()};d.sourceBuffer_.addEventListener("updateend",d.onUpdateendCallback_);d.runCallback_()};this.callbacks_=[];this.pendingCallback_=null;this.timestampOffset_=0;this.mediaSource=b;this.processedAppend_=false;if(b.readyState==="closed"){b.addEventListener("sourceopen",e)}else{e()}}e(a,[{key:"abort",value:function b(a){var b=this;if(this.processedAppend_){this.queueCallback_(function(){b.sourceBuffer_.abort()},a)}}},{key:"appendBuffer",value:function c(a,b){var c=this;this.processedAppend_=true;this.queueCallback_(function(){c.sourceBuffer_.appendBuffer(a)},b)}},{key:"buffered",value:function d(){if(!this.sourceBuffer_){return i["default"].createTimeRanges()}return this.sourceBuffer_.buffered}},{key:"remove",value:function f(a,b){var c=this;if(this.processedAppend_){this.queueCallback_(function(){c.sourceBuffer_.remove(a,b)},j)}}},{key:"updating",value:function h(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function k(a){var b=this;if(typeof a!=="undefined"){this.queueCallback_(function(){b.sourceBuffer_.timestampOffset=a});this.timestampOffset_=a}return this.timestampOffset_}},{key:"queueCallback_",value:function l(a,b){this.callbacks_.push([a.bind(this),b]);this.runCallback_()}},{key:"runCallback_",value:function m(){var a=undefined;if(!this.updating()&&this.callbacks_.length){a=this.callbacks_.shift();this.pendingCallback_=a[1];a[0]()}}},{key:"dispose",value:function n(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_);if(this.sourceBuffer_&&this.mediaSource.readyState==="open"){this.sourceBuffer_.abort()}}}]);return a}();d["default"]=k;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],18:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function r(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("mux.js/lib/mp4/probe");var k=g(j);var l=b("mux.js/lib/tools/ts-inspector.js");var m=b("./playlist");var n=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var o=g(n);var p=[{name:"VOD",run:function s(a,b,c,d,e){if(c!==Infinity){var f={time:0,segmentIndex:0};return f}return null}},{name:"ProgramDateTime",run:function t(a,b,c,d,e){if(a.datetimeToDisplayTime&&b.dateTimeObject){var f=b.dateTimeObject.getTime()/1e3;var g=f+a.datetimeToDisplayTime;var h={time:g,segmentIndex:0};return h}return null}},{name:"Segment",run:function u(a,b,c,d,e){var f=b.segments||[];var g=null;var h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.timeline===d&&typeof j.start!=="undefined"){var k=Math.abs(e-j.start);if(h!==null&&h<k){break}if(!g||h===null||h>=k){h=k;g={time:j.start,segmentIndex:i}}}}return g}},{name:"Discontinuity",run:function v(a,b,c,d,e){var f=null;e=e||0;if(b.discontinuityStarts&&b.discontinuityStarts.length){var g=null;for(var h=0;h<b.discontinuityStarts.length;h++){var i=b.discontinuityStarts[h];var j=b.discontinuitySequence+h+1;var k=a.discontinuities[j];if(k){var l=Math.abs(e-k.time);if(g!==null&&g<l){break}if(!f||g===null||g>=l){g=l;f={time:k.time,segmentIndex:i}}}}}return f}},{name:"Playlist",run:function w(a,b,c,d,e){if(b.syncInfo){var f={time:b.syncInfo.time,segmentIndex:b.syncInfo.mediaSequence-b.mediaSequence};return f}return null}}];d.syncPointStrategies=p;var q=function(a){i(b,a);function b(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.inspectCache_=undefined;this.timelines=[];this.discontinuities=[];this.datetimeToDisplayTime=null;if(a.debug){this.logger_=o["default"].log.bind(o["default"],"sync-controller ->")}}e(b,[{key:"getSyncPoint",value:function c(a,b,d,e){var f=this.runStrategies_(a,b,d,e);if(!f.length){return null}return this.selectSyncPoint_(f,{key:"time",value:e})}},{key:"getExpiredTime",value:function d(a,b){if(!a||!a.segments){return null}var c=this.runStrategies_(a,b,a.discontinuitySequence,0);if(!c.length){return null}var d=this.selectSyncPoint_(c,{key:"segmentIndex",value:0});if(d.segmentIndex>0){d.time*=-1}return Math.abs(d.time+(0,m.sumDurations)(a,d.segmentIndex,0))}},{key:"runStrategies_",value:function g(a,b,c,d){var e=[];for(var f=0;f<p.length;f++){var g=p[f];var h=g.run(this,a,b,c,d);if(h){h.strategy=g.name;e.push({strategy:g.name,syncPoint:h});this.logger_("syncPoint found via <"+g.name+">:",h)}}return e}},{key:"selectSyncPoint_",value:function j(a,b){var c=a[0].syncPoint;var d=Math.abs(a[0].syncPoint[b.key]-b.value);var e=a[0].strategy;for(var f=1;f<a.length;f++){var g=Math.abs(a[f].syncPoint[b.key]-b.value);if(g<d){d=g;c=a[f].syncPoint;e=a[f].strategy}}this.logger_("syncPoint with strategy <"+e+"> chosen: ",c);return c}},{key:"saveExpiredSegmentInfo",value:function n(a,b){var c=b.mediaSequence-a.mediaSequence;for(var d=c-1;d>=0;d--){var e=a.segments[d];if(e&&typeof e.start!=="undefined"){b.syncInfo={mediaSequence:a.mediaSequence+d,time:e.start};this.logger_("playlist sync:",b.syncInfo);this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function q(a){if(!this.datetimeToDisplayTime&&a.dateTimeObject){var b=a.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-b}}},{key:"reset",value:function r(){this.inspectCache_=undefined}},{key:"probeSegmentInfo",value:function s(a){var b=a.segment;var c=a.playlist;var d=undefined;if(b.map){d=this.probeMp4Segment_(a)}else{d=this.probeTsSegment_(a)}if(d){if(this.calculateSegmentTimeMapping_(a,d)){this.saveDiscontinuitySyncInfo_(a);if(!c.syncInfo){c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:b.start}}}}return d}},{key:"probeMp4Segment_",value:function t(a){var b=a.segment;var c=k["default"].timescale(b.map.bytes);var d=k["default"].startTime(c,a.bytes);if(a.timestampOffset!==null){a.timestampOffset-=d}return{start:d,end:d+b.duration}}},{key:"probeTsSegment_",value:function u(a){var b=(0,l.inspect)(a.bytes,this.inspectCache_);var c=undefined;var d=undefined;if(!b){return null}if(b.video&&b.video.length===2){this.inspectCache_=b.video[1].dts;c=b.video[0].dtsTime;d=b.video[1].dtsTime}else if(b.audio&&b.audio.length===2){this.inspectCache_=b.audio[1].dts;c=b.audio[0].dtsTime;d=b.audio[1].dtsTime}return{start:c,end:d,containsVideo:b.video&&b.video.length===2,containsAudio:b.audio&&b.audio.length===2}}},{key:"timestampOffsetForTimeline",value:function v(a){if(typeof this.timelines[a]==="undefined"){return null}return this.timelines[a].time}},{key:"mappingForTimeline",value:function w(a){if(typeof this.timelines[a]==="undefined"){return null}return this.timelines[a].mapping}},{key:"calculateSegmentTimeMapping_",value:function x(a,b){var c=a.segment;var d=this.timelines[a.timeline];if(a.timestampOffset!==null){this.logger_("tsO:",a.timestampOffset);d={time:a.startOfSegment,mapping:a.startOfSegment-b.start};this.timelines[a.timeline]=d;this.trigger("timestampoffset");c.start=a.startOfSegment;c.end=b.end+d.mapping}else if(d){c.start=b.start+d.mapping;c.end=b.end+d.mapping}else{return false}return true}},{key:"saveDiscontinuitySyncInfo_",value:function y(a){var b=a.playlist;var c=a.segment;if(c.discontinuity){this.discontinuities[c.timeline]={time:c.start,accuracy:0}}else if(b.discontinuityStarts.length){for(var d=0;d<b.discontinuityStarts.length;d++){var e=b.discontinuityStarts[d];var f=b.discontinuitySequence+d+1;var g=e-a.mediaIndex;var h=Math.abs(g);if(!this.discontinuities[f]||this.discontinuities[f].accuracy>h){var i=undefined;if(g<0){i=c.start-(0,m.sumDurations)(b,a.mediaIndex,e)}else{i=c.end+(0,m.sumDurations)(b,a.mediaIndex+1,e)}this.discontinuities[f]={time:i,accuracy:h}}}}}},{key:"logger_",value:function z(){}}]);return b}(o["default"].EventTarget);d["default"]=q}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./playlist":11,"mux.js/lib/mp4/probe":54,"mux.js/lib/tools/ts-inspector.js":56}],19:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function e(){var a=arguments.length<=0||arguments[0]===undefined?"":arguments[0];var b={codecCount:0};var c=undefined;b.codecCount=a.split(",").length;b.codecCount=b.codecCount||2;c=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(a);if(c){b.videoCodec=c[2];b.videoObjectTypeIndicator=c[3]}b.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(a);b.audioProfile=b.audioProfile&&b.audioProfile[2];return b};c.parseCodecs=d},{}],20:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function w(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("./segment-loader");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("global/window");var p=h(o);var q=b("videojs-contrib-media-sources/es5/remove-cues-from-track.js");var r=h(q);var s=b("./bin-utils");var t=new Uint8Array("\n\n".split("").map(function(a){return a.charCodeAt(0)}));var u=function x(a){return String.fromCharCode.apply(null,a)};var v=function(a){j(b,a);function b(a){var c=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a,c);this.mediaSource_=null;this.subtitlesTrack_=null}f(b,[{key:"buffered_",value:function c(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length){return n["default"].createTimeRanges()}var a=this.subtitlesTrack_.cues;var b=a[0].startTime;var c=a[a.length-1].startTime;return n["default"].createTimeRanges([[b,c]])}},{key:"initSegment",value:function d(a){var b=arguments.length<=1||arguments[1]===undefined?false:arguments[1];if(!a){return null}var c=(0,s.initSegmentId)(a);var d=this.initSegments_[c];if(b&&!d&&a.bytes){var e=t.byteLength+a.bytes.byteLength;var f=new Uint8Array(e);f.set(a.bytes);f.set(t,a.bytes.byteLength);this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:f}}return d||a}},{key:"couldBeginLoading_",value:function e(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function h(){this.state="READY";this.resetEverything();return this.monitorBuffer_()}},{key:"track",value:function k(a){if(typeof a==="undefined"){return this.subtitlesTrack_}this.subtitlesTrack_=a;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}return this.subtitlesTrack_}},{key:"remove",value:function l(a,b){(0,r["default"])(a,b,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function m(){var a=this;if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var b=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);b=this.skipEmptySegments_(b);if(!b){return}if(this.syncController_.timestampOffsetForTimeline(b.timeline)===null){var c=function d(){a.state="READY";if(!a.paused()){a.monitorBuffer_()}};this.syncController_.one("timestampoffset",c);this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(b)}},{key:"skipEmptySegments_",value:function o(a){while(a&&a.segment.empty){a=this.generateSegmentInfo_(a.playlist,a.mediaIndex+1,a.startOfSegment+a.duration,a.isSyncRequest)}return a}},{key:"handleSegment_",value:function q(){var a=this;if(!this.pendingSegment_||!this.subtitlesTrack_){this.state="READY";return}this.state="APPENDING";var b=this.pendingSegment_;var c=b.segment;if(typeof p["default"].WebVTT!=="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var d=function(){var b=function c(){a.handleSegment_()};a.state="WAITING_ON_VTTJS";a.subtitlesTrack_.tech_.one("vttjsloaded",b);a.subtitlesTrack_.tech_.one("vttjserror",function(){a.subtitlesTrack_.tech_.off("vttjsloaded",b);a.error({message:"Error loading vtt.js"});a.state="READY";a.pause();a.trigger("error")});return{v:undefined}}();if(typeof d==="object")return d.v}c.requested=true;try{this.parseVTTCues_(b)}catch(e){this.error({message:e.message});this.state="READY";this.pause();return this.trigger("error")}this.updateTimeMapping_(b,this.syncController_.timelines[b.timeline],this.playlist_);if(b.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}b.byteLength=b.bytes.byteLength;this.mediaSecondsLoaded+=c.duration;if(b.cues.length){this.remove(b.cues[0].endTime,b.cues[b.cues.length-1].endTime)}b.cues.forEach(function(b){a.subtitlesTrack_.addCue(b)});this.handleUpdateEnd_()}},{key:"parseVTTCues_",value:function v(a){var b=undefined;var c=false;if(typeof p["default"].TextDecoder==="function"){b=new p["default"].TextDecoder("utf8")}else{b=p["default"].WebVTT.StringDecoder();c=true}var d=new p["default"].WebVTT.Parser(p["default"],p["default"].vttjs,b);a.cues=[];a.timestampmap={MPEGTS:0,LOCAL:0};d.oncue=a.cues.push.bind(a.cues);d.ontimestampmap=function(b){return a.timestampmap=b};d.onparsingerror=function(a){n["default"].log.warn("Error encountered when parsing cues: "+a.message)};if(a.segment.map){var e=a.segment.map.bytes;if(c){e=u(e)}d.parse(e)}var f=a.bytes;if(c){f=u(f)}d.parse(f);d.flush()}},{key:"updateTimeMapping_",value:function w(a,b,c){var d=a.segment;if(!b){return}if(!a.cues.length){d.empty=true;return}var e=a.timestampmap;var f=e.MPEGTS/9e4-e.LOCAL+b.mapping;a.cues.forEach(function(a){a.startTime+=f;a.endTime+=f});if(!c.syncInfo){var g=a.cues[0].startTime;var h=a.cues[a.cues.length-1].startTime;c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:Math.min(g,h-d.duration)}}}}]);return b}(l["default"]);d["default"]=v;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./segment-loader":16,"global/window":29,"videojs-contrib-media-sources/es5/remove-cues-from-track.js":72}],21:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var g=e(f);var h=function i(){var a=function b(a,c){a=(0,f.mergeOptions)({timeout:45e3},a);var d=b.beforeRequest||g["default"].Hls.xhr.beforeRequest;if(d&&typeof d==="function"){var e=d(a);if(e){a=e}}var h=(0,f.xhr)(a,function(a,b){var d=h.response;if(!a&&d){h.responseTime=Date.now();h.roundTripTime=h.responseTime-h.requestTime;h.bytesReceived=d.byteLength||d.length;if(!h.bandwidth){h.bandwidth=Math.floor(h.bytesReceived/h.roundTripTime*8*1e3)}}if(a&&a.code==="ETIMEDOUT"){h.timedout=true}if(!a&&!h.aborted&&b.statusCode!==200&&b.statusCode!==206&&b.statusCode!==0){a=new Error("XHR Failed with a response of: "+(h&&(d||h.responseText)))}c(a,h)});var i=h.abort;h.abort=function(){h.aborted=true;return i.apply(h,arguments)};h.uri=a.uri;h.requestTime=Date.now();return h};return a};d["default"]=h;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],22:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function i(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]];var b=a[0];var c=a[1];var d=b[4];var e=c[4];var f=undefined;var g=undefined;var h=undefined;var i=[];var j=[];var k=undefined;var l=undefined;var m=undefined;var n=undefined;var o=undefined;var p=undefined;for(f=0;f<256;f++){j[(i[f]=f<<1^(f>>7)*283)^f]=f}for(g=h=0;!d[g];g^=k||1,h=j[h]||1){n=h^h<<1^h<<2^h<<3^h<<4;n=n>>8^n&255^99;d[g]=n;e[n]=g;m=i[l=i[k=i[g]]];p=m*16843009^l*65537^k*257^g*16843008;o=i[n]*257^n*16843008;for(f=0;f<4;f++){b[f][g]=o=o<<24^o>>>8;c[f][n]=p=p<<24^p>>>8}}for(f=0;f<5;f++){b[f]=b[f].slice(0);c[f]=c[f].slice(0)}return a};var g=null;var h=function(){function a(b){e(this,a);if(!g){g=f()}this._tables=[[g[0][0].slice(),g[0][1].slice(),g[0][2].slice(),g[0][3].slice(),g[0][4].slice()],[g[1][0].slice(),g[1][1].slice(),g[1][2].slice(),g[1][3].slice(),g[1][4].slice()]];var c=undefined;var d=undefined;var h=undefined;var i=undefined;var j=undefined;var k=this._tables[0][4];var l=this._tables[1];var m=b.length;var n=1;if(m!==4&&m!==6&&m!==8){throw new Error("Invalid aes key size")}i=b.slice(0);j=[];this._key=[i,j];for(c=m;c<4*m+28;c++){h=i[c-1];if(c%m===0||m===8&&c%m===4){h=k[h>>>24]<<24^k[h>>16&255]<<16^k[h>>8&255]<<8^k[h&255];if(c%m===0){h=h<<8^h>>>24^n<<24;n=n<<1^(n>>7)*283}}i[c]=i[c-m]^h}for(d=0;c;d++,c--){h=i[d&3?c:c-4];if(c<=4||d<4){j[d]=h}else{j[d]=l[0][k[h>>>24]]^l[1][k[h>>16&255]]^l[2][k[h>>8&255]]^l[3][k[h&255]]}}}d(a,[{key:"decrypt",value:function b(a,c,d,e,f,g){var h=this._key[1];var i=a^h[0];var j=e^h[1];var k=d^h[2];var l=c^h[3];var m=undefined;var n=undefined;var o=undefined;var p=h.length/4-2;var q=undefined;var r=4;var s=this._tables[1];var t=s[0];var u=s[1];var v=s[2];var w=s[3];var x=s[4];for(q=0;q<p;q++){m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[l&255]^h[r];n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[i&255]^h[r+1];o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[j&255]^h[r+2];l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[k&255]^h[r+3];r+=4;i=m;j=n;k=o}for(q=0;q<4;q++){f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[l&255]^h[r++];m=i;i=j;j=k;k=l;l=m}}}]);return a}();c["default"]=h;b.exports=c["default"]},{}],23:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var e=function l(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true; h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var i=a("./stream");var j=f(i);var k=function(a){h(b,a);function b(){g(this,b);e(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,j["default"]);this.jobs=[];this.delay=1;this.timeout_=null}d(b,[{key:"processJob_",value:function c(){this.jobs.shift()();if(this.jobs.length){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}else{this.timeout_=null}}},{key:"push",value:function f(a){this.jobs.push(a);if(!this.timeout_){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}}}]);return b}(j["default"]);c["default"]=k;b.exports=c["default"]},{"./stream":26}],24:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("./aes");var h=e(g);var i=a("./async-stream");var j=e(i);var k=a("pkcs7");var l=function o(a){return a<<24|(a&65280)<<8|(a&16711680)>>8|a>>>24};var m=function p(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2);var e=new h["default"](Array.prototype.slice.call(b));var f=new Uint8Array(a.byteLength);var g=new Int32Array(f.buffer);var i=undefined;var j=undefined;var k=undefined;var m=undefined;var n=undefined;var o=undefined;var p=undefined;var q=undefined;var r=undefined;i=c[0];j=c[1];k=c[2];m=c[3];for(r=0;r<d.length;r+=4){n=l(d[r]);o=l(d[r+1]);p=l(d[r+2]);q=l(d[r+3]);e.decrypt(n,o,p,q,g,r);g[r]=l(g[r]^i);g[r+1]=l(g[r+1]^j);g[r+2]=l(g[r+2]^k);g[r+3]=l(g[r+3]^m);i=n;j=o;k=p;m=q}return f};c.decrypt=m;var n=function(){function a(b,c,d,e){f(this,a);var g=a.STEP;var h=new Int32Array(b.buffer);var i=new Uint8Array(b.byteLength);var m=0;this.asyncStream_=new j["default"];this.asyncStream_.push(this.decryptChunk_(h.subarray(m,m+g),c,d,i));for(m=g;m<h.length;m+=g){d=new Uint32Array([l(h[m-4]),l(h[m-3]),l(h[m-2]),l(h[m-1])]);this.asyncStream_.push(this.decryptChunk_(h.subarray(m,m+g),c,d,i))}this.asyncStream_.push(function(){e(null,(0,k.unpad)(i))})}d(a,[{key:"decryptChunk_",value:function b(a,c,d,e){return function(){var b=m(a,c,d);e.set(b,a.byteOffset)}}}],[{key:"STEP",get:function c(){return 32e3}}]);return a}();c.Decrypter=n;c["default"]={Decrypter:n,decrypt:m}},{"./aes":22,"./async-stream":23,pkcs7:61}],25:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("./decrypter");var f=a("./async-stream");var g=d(f);c["default"]={decrypt:e.decrypt,Decrypter:e.Decrypter,AsyncStream:g["default"]};b.exports=c["default"]},{"./async-stream":23,"./decrypter":24}],26:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function a(){e(this,a);this.listeners={}}d(a,[{key:"on",value:function b(a,c){if(!this.listeners[a]){this.listeners[a]=[]}this.listeners[a].push(c)}},{key:"off",value:function c(a,b){var c=undefined;if(!this.listeners[a]){return false}c=this.listeners[a].indexOf(b);this.listeners[a].splice(c,1);return c>-1}},{key:"trigger",value:function f(a){var b=undefined;var c=undefined;var d=undefined;var e=undefined;b=this.listeners[a];if(!b){return}if(arguments.length===2){d=b.length;for(c=0;c<d;++c){b[c].call(this,arguments[1])}}else{e=Array.prototype.slice.call(arguments,1);d=b.length;for(c=0;c<d;++c){b[c].apply(this,e)}}}},{key:"dispose",value:function g(){this.listeners={}}},{key:"pipe",value:function h(a){this.on("data",function(b){a.push(b)})}}]);return a}();c["default"]=f;b.exports=c["default"]},{}],27:[function(a,b,c){},{}],28:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c("min-document");var h;if(typeof b!=="undefined"){h=b}else{h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}}d.exports=h}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"min-document":27}],29:[function(b,c,d){(function(b){var d;if(typeof a!=="undefined"){d=a}else if(typeof b!=="undefined"){d=b}else if(typeof self!=="undefined"){d=self}else{d={}}c.exports=d}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],30:[function(a,b,c){"use strict";var d=a("./line-stream");var e=j(d);var f=a("./parse-stream");var g=j(f);var h=a("./parser");var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}b.exports={LineStream:e["default"],ParseStream:g["default"],Parser:i["default"]}},{"./line-stream":31,"./parse-stream":32,"./parser":33}],31:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var e=a("./stream");var f=g(e);function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=function(a){j(b,a);function b(){h(this,b);var a=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));a.buffer="";return a}d(b,[{key:"push",value:function c(a){var b=void 0;this.buffer+=a;b=this.buffer.indexOf("\n");for(;b>-1;b=this.buffer.indexOf("\n")){this.trigger("data",this.buffer.substring(0,b));this.buffer=this.buffer.substring(b+1)}}}]);return b}(f["default"]);c["default"]=k},{"./stream":34}],32:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=a("./stream");var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function o(){var a="[^=]*";var b='"[^"]*"|[^,]*';var c="(?:"+a+")=(?:"+b+")";return new RegExp("(?:^|,)("+c+")")};var m=function p(a){var b=a.split(l());var c={};var d=b.length;var e=void 0;while(d--){if(b[d]===""){continue}e=/([^=]*)=(.*)/.exec(b[d]).slice(1);e[0]=e[0].replace(/^\s+|\s+$/g,"");e[1]=e[1].replace(/^\s+|\s+$/g,"");e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1");c[e[0]]=e[1]}return c};var n=function(a){k(b,a);function b(){i(this,b);return j(this,(b.__proto__||Object.getPrototypeOf(b)).call(this))}e(b,[{key:"push",value:function c(a){var b=void 0;var c=void 0;a=a.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"");if(a.length===0){return}if(a[0]!=="#"){this.trigger("data",{type:"uri",uri:a});return}if(a.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:a.slice(1)});return}a=a.replace("\r","");b=/^#EXTM3U/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"m3u"});return}b=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"inf"};if(b[1]){c.duration=parseFloat(b[1])}if(b[2]){c.title=b[2]}this.trigger("data",c);return}b=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"targetduration"};if(b[1]){c.duration=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"totalduration"};if(b[1]){c.duration=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"version"};if(b[1]){c.version=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"media-sequence"};if(b[1]){c.number=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"discontinuity-sequence"};if(b[1]){c.number=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"playlist-type"};if(b[1]){c.playlistType=b[1]}this.trigger("data",c);return}b=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"byterange"};if(b[1]){c.length=parseInt(b[1],10)}if(b[2]){c.offset=parseInt(b[2],10)}this.trigger("data",c);return}b=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(a);if(b){c={type:"tag",tagType:"allow-cache"};if(b[1]){c.allowed=!/NO/.test(b[1])}this.trigger("data",c);return}b=/^#EXT-X-MAP:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"map"};if(b[1]){var e=m(b[1]);if(e.URI){c.uri=e.URI}if(e.BYTERANGE){var f=e.BYTERANGE.split("@"),g=d(f,2),h=g[0],i=g[1];c.byterange={};if(h){c.byterange.length=parseInt(h,10)}if(i){c.byterange.offset=parseInt(i,10)}}}this.trigger("data",c);return}b=/^#EXT-X-STREAM-INF:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"stream-inf"};if(b[1]){c.attributes=m(b[1]);if(c.attributes.RESOLUTION){var j=c.attributes.RESOLUTION.split("x");var k={};if(j[0]){k.width=parseInt(j[0],10)}if(j[1]){k.height=parseInt(j[1],10)}c.attributes.RESOLUTION=k}if(c.attributes.BANDWIDTH){c.attributes.BANDWIDTH=parseInt(c.attributes.BANDWIDTH,10)}if(c.attributes["PROGRAM-ID"]){c.attributes["PROGRAM-ID"]=parseInt(c.attributes["PROGRAM-ID"],10)}}this.trigger("data",c);return}b=/^#EXT-X-MEDIA:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"media"};if(b[1]){c.attributes=m(b[1])}this.trigger("data",c);return}b=/^#EXT-X-ENDLIST/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"endlist"});return}b=/^#EXT-X-DISCONTINUITY/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}b=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"program-date-time"};if(b[1]){c.dateTimeString=b[1];c.dateTimeObject=new Date(b[1])}this.trigger("data",c);return}b=/^#EXT-X-KEY:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"key"};if(b[1]){c.attributes=m(b[1]);if(c.attributes.IV){if(c.attributes.IV.substring(0,2).toLowerCase()==="0x"){c.attributes.IV=c.attributes.IV.substring(2)}c.attributes.IV=c.attributes.IV.match(/.{8}/g);c.attributes.IV[0]=parseInt(c.attributes.IV[0],16);c.attributes.IV[1]=parseInt(c.attributes.IV[1],16);c.attributes.IV[2]=parseInt(c.attributes.IV[2],16);c.attributes.IV[3]=parseInt(c.attributes.IV[3],16);c.attributes.IV=new Uint32Array(c.attributes.IV)}}this.trigger("data",c);return}b=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-out-cont"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}b=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-out"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}b=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-in"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}this.trigger("data",{type:"tag",data:a.slice(4)})}}]);return b}(g["default"]);c["default"]=n},{"./stream":34}],33:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c){if(Object.prototype.hasOwnProperty.call(c,d)){a[d]=c[d]}}}return a};var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=a("./stream");var g=l(f);var h=a("./line-stream");var i=l(h);var j=a("./parse-stream");var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){m(this,b);var a=n(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));a.lineStream=new i["default"];a.parseStream=new k["default"];a.lineStream.pipe(a.parseStream);var c=a;var e=[];var f={};var g=void 0;var h=void 0;var j=function p(){};var l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};var o=0;a.manifest={allowCache:true,discontinuityStarts:[],segments:[]};a.parseStream.on("data",function(a){var b=void 0;var i=void 0;({tag:function k(){(({"allow-cache":function k(){this.manifest.allowCache=a.allowed;if(!("allowed"in a)){this.trigger("info",{message:"defaulting allowCache to YES"});this.manifest.allowCache=true}},byterange:function m(){var m={};if("length"in a){f.byterange=m;m.length=a.length;if(!("offset"in a)){this.trigger("info",{message:"defaulting offset to zero"});a.offset=0}}if("offset"in a){f.byterange=m;m.offset=a.offset}},endlist:function n(){this.manifest.endList=true},inf:function p(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0;this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0;this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}if(a.duration>0){f.duration=a.duration}if(a.duration===0){f.duration=.01;this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=e},key:function q(){if(!a.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(a.attributes.METHOD==="NONE"){h=null;return}if(!a.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(!a.attributes.METHOD){this.trigger("warn",{message:"defaulting key method to AES-128"})}h={method:a.attributes.METHOD||"AES-128",uri:a.attributes.URI};if(typeof a.attributes.IV!=="undefined"){h.iv=a.attributes.IV}},"media-sequence":function r(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+a.number});return}this.manifest.mediaSequence=a.number},"discontinuity-sequence":function s(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+a.number});return}this.manifest.discontinuitySequence=a.number;o=a.number},"playlist-type":function t(){if(!/VOD|EVENT/.test(a.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+a.playlist});return}this.manifest.playlistType=a.playlistType},map:function u(){g={};if(a.uri){g.uri=a.uri}if(a.byterange){g.byterange=a.byterange}},"stream-inf":function v(){this.manifest.playlists=e;this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!a.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}if(!f.attributes){f.attributes={}}d(f.attributes,a.attributes)},media:function w(){this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!(a.attributes&&a.attributes.TYPE&&a.attributes["GROUP-ID"]&&a.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var c=this.manifest.mediaGroups[a.attributes.TYPE];c[a.attributes["GROUP-ID"]]=c[a.attributes["GROUP-ID"]]||{};b=c[a.attributes["GROUP-ID"]];i={"default":/yes/i.test(a.attributes.DEFAULT)};if(i["default"]){i.autoselect=true}else{i.autoselect=/yes/i.test(a.attributes.AUTOSELECT)}if(a.attributes.LANGUAGE){i.language=a.attributes.LANGUAGE}if(a.attributes.URI){i.uri=a.attributes.URI}if(a.attributes["INSTREAM-ID"]){i.instreamId=a.attributes["INSTREAM-ID"]}if(a.attributes.CHARACTERISTICS){i.characteristics=a.attributes.CHARACTERISTICS}if(a.attributes.FORCED){i.forced=/yes/i.test(a.attributes.FORCED)}b[a.attributes.NAME]=i},discontinuity:function x(){o+=1;f.discontinuity=true;this.manifest.discontinuityStarts.push(e.length)},"program-date-time":function y(){this.manifest.dateTimeString=a.dateTimeString;this.manifest.dateTimeObject=a.dateTimeObject},targetduration:function z(){if(!isFinite(a.duration)||a.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+a.duration});return}this.manifest.targetDuration=a.duration},totalduration:function A(){if(!isFinite(a.duration)||a.duration<0){this.trigger("warn",{message:"ignoring invalid total duration: "+a.duration});return}this.manifest.totalDuration=a.duration},"cue-out":function B(){f.cueOut=a.data},"cue-out-cont":function C(){f.cueOutCont=a.data},"cue-in":function D(){f.cueIn=a.data}})[a.tagType]||j).call(c)},uri:function m(){f.uri=a.uri;e.push(f);if(this.manifest.targetDuration&&!("duration"in f)){this.trigger("warn",{message:"defaulting segment duration to the target duration"});f.duration=this.manifest.targetDuration}if(h){f.key=h}f.timeline=o;if(g){f.map=g}f={}},comment:function n(){}})[a.type].call(c)});return a}e(b,[{key:"push",value:function c(a){this.lineStream.push(a)}},{key:"end",value:function f(){this.lineStream.push("\n")}}]);return b}(g["default"]);c["default"]=p},{"./line-stream":31,"./parse-stream":32,"./stream":34}],34:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function a(){e(this,a);this.listeners={}}d(a,[{key:"on",value:function b(a,c){if(!this.listeners[a]){this.listeners[a]=[]}this.listeners[a].push(c)}},{key:"off",value:function c(a,b){if(!this.listeners[a]){return false}var c=this.listeners[a].indexOf(b);this.listeners[a].splice(c,1);return c>-1}},{key:"trigger",value:function f(a){var b=this.listeners[a];var c=void 0;var d=void 0;var e=void 0;if(!b){return}if(arguments.length===2){d=b.length;for(c=0;c<d;++c){b[c].call(this,arguments[1])}}else{e=Array.prototype.slice.call(arguments,1);d=b.length;for(c=0;c<d;++c){b[c].apply(this,e)}}}},{key:"dispose",value:function g(){this.listeners={}}},{key:"pipe",value:function h(a){this.on("data",function(b){a.push(b)})}}]);return a}();c["default"]=f},{}],35:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e;e=function(){var a=new Uint8Array,b=0;e.prototype.init.call(this);this.setTimestamp=function(a){b=a};this.parseId3TagSize=function(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(d&16)>>4;if(e){return c+20}return c+10};this.parseAdtsSize=function(a,b){var c=(a[b+5]&224)>>5,d=a[b+4]<<3,e=a[b+3]&3<<11;return e|d|c};this.push=function(c){var d=0,e=0,f,g,h,i;if(a.length){i=a.length;a=new Uint8Array(c.byteLength+i);a.set(a.subarray(0,i));a.set(c,i)}else{a=c}while(a.length-e>=3){if(a[e]==="I".charCodeAt(0)&&a[e+1]==="D".charCodeAt(0)&&a[e+2]==="3".charCodeAt(0)){if(a.length-e<10){break}d=this.parseId3TagSize(a,e);if(d>a.length){break}g={type:"timed-metadata",data:a.subarray(e,e+d)};this.trigger("data",g);e+=d;continue}else if(a[e]&255===255&&(a[e+1]&240)===240){if(a.length-e<7){break}d=this.parseAdtsSize(a,e);if(d>a.length){break}h={type:"audio",data:a.subarray(e,e+d),pts:b,dts:b};this.trigger("data",h);e+=d;continue}e++}f=a.length-e;if(f>0){a=a.subarray(e)}else{a=new Uint8Array}}};e.prototype=new d;b.exports=e},{"../utils/stream.js":59}],36:[function(a,b,c){"use strict";var d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var e=function(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]};var f=function(a,b,c){var d,e="";for(d=b;d<c;d++){e+="%"+("00"+a[d].toString(16)).slice(-2)}return e};var g=function(a,b,c){return unescape(f(a,b,c))};var h=function(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(d&16)>>4;if(e){return c+20}return c+10};var i=function(a,b){var c=(a[b+5]&224)>>5,d=a[b+4]<<3,e=a[b+3]&3<<11;return e|d|c};var j=function(a,b){if(a[b]==="I".charCodeAt(0)&&a[b+1]==="D".charCodeAt(0)&&a[b+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(a[b]&255===255&&(a[b+1]&240)===240){return"audio"}return null};var k=function(a){var b=0;while(b+5<a.length){if(a[b]!==255||(a[b+1]&246)!==240){b++;continue}return d[(a[b+2]&60)>>>2]}return null};var l=function(a){var b,c,d,f;b=10;if(a[5]&64){b+=4;b+=e(a.subarray(10,14))}do{c=e(a.subarray(b+4,b+8));if(c<1){return null}f=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]);if(f==="PRIV"){d=a.subarray(b+10,b+c+10);for(var h=0;h<d.byteLength;h++){if(d[h]===0){var i=g(d,0,h);if(i==="com.apple.streaming.transportStreamTimestamp"){var j=d.subarray(h+1);var k=(j[3]&1)<<30|j[4]<<22|j[5]<<14|j[6]<<6|j[7]>>>2;k*=4;k+=j[7]&3;return k}break}}}b+=10;b+=c}while(b<a.byteLength);return null};b.exports={parseId3TagSize:h,parseAdtsSize:i,parseType:j,parseSampleRate:k,parseAacTimestamp:l}},{}],37:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e;var f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];e=function(){var a;e.prototype.init.call(this);this.push=function(b){var c=0,d=0,e,g,h,i,j,k;if(b.type!=="audio"){return}if(a){i=a;a=new Uint8Array(i.byteLength+b.data.byteLength);a.set(i);a.set(b.data,i.byteLength)}else{a=b.data}while(c+5<a.length){if(a[c]!==255||(a[c+1]&246)!==240){c++;continue}g=(~a[c+1]&1)*2;e=(a[c+3]&3)<<11|a[c+4]<<3|(a[c+5]&224)>>5;j=((a[c+6]&3)+1)*1024;k=j*9e4/f[(a[c+2]&60)>>>2];h=c+e;if(a.byteLength<h){return}this.trigger("data",{pts:b.pts+d*k,dts:b.dts+d*k,sampleCount:j,audioobjecttype:(a[c+2]>>>6&3)+1,channelcount:(a[c+2]&1)<<2|(a[c+3]&192)>>>6,samplerate:f[(a[c+2]&60)>>>2],samplingfrequencyindex:(a[c+2]&60)>>>2,samplesize:16,data:a.subarray(c+7+g,h)});if(a.byteLength===h){a=undefined;return}d++;a=a.subarray(h)}};this.flush=function(){this.trigger("done")}};e.prototype=new d;b.exports=e},{"../utils/stream.js":59}],38:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("../utils/exp-golomb.js");var f,g;var h;g=function(){var a=0,b,c;g.prototype.init.call(this);this.push=function(d){var e;if(!c){c=d.data}else{e=new Uint8Array(c.byteLength+d.data.byteLength);e.set(c);e.set(d.data,c.byteLength);c=e}for(;a<c.byteLength-3;a++){if(c[a+2]===1){b=a+5;break}}while(b<c.byteLength){switch(c[b]){case 0:if(c[b-1]!==0){b+=2;break}else if(c[b-2]!==0){b++;break}if(a+3!==b-2){this.trigger("data",c.subarray(a+3,b-2))}do{b++}while(c[b]!==1&&b<c.length);a=b-2;b+=3;break;case 1:if(c[b-1]!==0||c[b-2]!==0){b+=3;break}this.trigger("data",c.subarray(a+3,b-2));a=b-2;b+=3;break;default:b+=3;break}}c=c.subarray(a);b-=a;a=0};this.flush=function(){if(c&&c.byteLength>3){this.trigger("data",c.subarray(a+3))}c=null;a=0;this.trigger("done")}};g.prototype=new d;h={100:true,110:true,122:true,244:true,44:true,83:true,86:true,118:true,128:true,138:true,139:true,134:true};f=function(){var a=new g,b,c,d,i,j,k,l;f.prototype.init.call(this);b=this;this.push=function(b){if(b.type!=="video"){return}c=b.trackId;d=b.pts;i=b.dts;a.push(b)};a.on("data",function(a){var e={trackId:c,pts:d,dts:i,data:a};switch(a[0]&31){case 5:e.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:e.nalUnitType="sei_rbsp";e.escapedRBSP=j(a.subarray(1));break;case 7:e.nalUnitType="seq_parameter_set_rbsp";e.escapedRBSP=j(a.subarray(1));e.config=k(e.escapedRBSP);break;case 8:e.nalUnitType="pic_parameter_set_rbsp";break;case 9:e.nalUnitType="access_unit_delimiter_rbsp";break;default:break}b.trigger("data",e)});a.on("done",function(){b.trigger("done")});this.flush=function(){a.flush()};l=function(a,b){var c=8,d=8,e,f;for(e=0;e<a;e++){if(d!==0){f=b.readExpGolomb();d=(c+f+256)%256}c=d===0?c:d}};j=function(a){var b=a.byteLength,c=[],d=1,e,f;while(d<b-2){if(a[d]===0&&a[d+1]===0&&a[d+2]===3){c.push(d+2);d+=2}else{d++}}if(c.length===0){return a}e=b-c.length;f=new Uint8Array(e);var g=0;for(d=0;d<e;g++,d++){if(g===c[0]){g++;c.shift()}f[d]=a[g]}return f};k=function(a){var b=0,c=0,d=0,f=0,g=1,i,j,k,m,n,o,p,q,r,s,t,u,v,w;i=new e(a);j=i.readUnsignedByte();m=i.readUnsignedByte();k=i.readUnsignedByte();i.skipUnsignedExpGolomb();if(h[j]){n=i.readUnsignedExpGolomb();if(n===3){i.skipBits(1)}i.skipUnsignedExpGolomb();i.skipUnsignedExpGolomb();i.skipBits(1);if(i.readBoolean()){t=n!==3?8:12;for(w=0;w<t;w++){if(i.readBoolean()){if(w<6){l(16,i)}else{l(64,i)}}}}}i.skipUnsignedExpGolomb();o=i.readUnsignedExpGolomb();if(o===0){i.readUnsignedExpGolomb()}else if(o===1){i.skipBits(1);i.skipExpGolomb();i.skipExpGolomb();p=i.readUnsignedExpGolomb();for(w=0;w<p;w++){i.skipExpGolomb()}}i.skipUnsignedExpGolomb();i.skipBits(1);q=i.readUnsignedExpGolomb();r=i.readUnsignedExpGolomb();s=i.readBits(1);if(s===0){i.skipBits(1)}i.skipBits(1);if(i.readBoolean()){b=i.readUnsignedExpGolomb();c=i.readUnsignedExpGolomb();d=i.readUnsignedExpGolomb();f=i.readUnsignedExpGolomb()}if(i.readBoolean()){if(i.readBoolean()){v=i.readUnsignedByte();switch(v){case 1:u=[1,1];break;case 2:u=[12,11];break;case 3:u=[10,11];break;case 4:u=[16,11];break;case 5:u=[40,33];break;case 6:u=[24,11];break;case 7:u=[20,11];break;case 8:u=[32,11];break;case 9:u=[80,33];break;case 10:u=[18,11];break;case 11:u=[15,11];break;case 12:u=[64,33];break;case 13:u=[160,99];break;case 14:u=[4,3];break;case 15:u=[3,2];break;case 16:u=[2,1];break;case 255:{u=[i.readUnsignedByte()<<8|i.readUnsignedByte(),i.readUnsignedByte()<<8|i.readUnsignedByte()];break}}if(u){g=u[0]/u[1]}}}return{profileIdc:j,levelIdc:k,profileCompatibility:m,width:Math.ceil(((q+1)*16-b*2-c*2)*g),height:(2-s)*(r+1)*16-d*2-f*2}}};f.prototype=new d;b.exports={H264Stream:f,NalByteStream:g}},{"../utils/exp-golomb.js":58,"../utils/stream.js":59}],39:[function(a,b,c){var d=[33,16,5,32,164,27];var e=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252];var f=function(a){var b=[];while(a--){b.push(0)}return b};var g=function(a){return Object.keys(a).reduce(function(b,c){b[c]=new Uint8Array(a[c].reduce(function(a,b){return a.concat(b)},[]));return b},{})};var h={96e3:[d,[227,64],f(154),[56]],88200:[d,[231],f(170),[56]],64e3:[d,[248,192],f(240),[56]],48e3:[d,[255,192],f(268),[55,148,128],f(54),[112]],44100:[d,[255,192],f(268),[55,163,128],f(84),[112]],32e3:[d,[255,192],f(268),[55,234],f(226),[112]],24e3:[d,[255,192],f(268),[55,255,128],f(268),[111,112],f(126),[224]],16e3:[d,[255,192],f(268),[55,255,128],f(268),[111,255],f(269),[223,108],f(195),[1,192]],12e3:[e,f(268),[3,127,248],f(268),[6,255,240],f(268),[13,255,224],f(268),[27,253,128],f(259),[56]],11025:[e,f(268),[3,127,248],f(268),[6,255,240],f(268),[13,255,224],f(268),[27,255,192],f(268),[55,175,128],f(108),[112]],8e3:[e,f(268),[3,121,16],f(47),[7]]};b.exports=g(h)},{}],40:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=function(a){this.numberOfTracks=0;this.metadataStream=a.metadataStream;this.videoTags=[];this.audioTags=[];this.videoTrack=null;this.audioTrack=null;this.pendingCaptions=[];this.pendingMetadata=[];this.pendingTracks=0;this.processedTracks=0;e.prototype.init.call(this);this.push=function(a){if(a.text){return this.pendingCaptions.push(a)}if(a.frames){return this.pendingMetadata.push(a)}if(a.track.type==="video"){this.videoTrack=a.track;this.videoTags=a.tags;this.pendingTracks++}if(a.track.type==="audio"){this.audioTrack=a.track;this.audioTags=a.tags;this.pendingTracks++}}};e.prototype=new d;e.prototype.flush=function(a){var b,c,d,e,f={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){if(a!=="VideoSegmentStream"&&a!=="AudioSegmentStream"){return}else if(this.pendingTracks===0){this.processedTracks++;if(this.processedTracks<this.numberOfTracks){return}}}this.processedTracks+=this.pendingTracks;this.pendingTracks=0;if(this.processedTracks<this.numberOfTracks){return}if(this.videoTrack){e=this.videoTrack.timelineStartInfo.pts}else if(this.audioTrack){e=this.audioTrack.timelineStartInfo.pts}f.tags.videoTags=this.videoTags;f.tags.audioTags=this.audioTags;for(d=0;d<this.pendingCaptions.length;d++){c=this.pendingCaptions[d];c.startTime=c.startPts-e;c.startTime/=9e4;c.endTime=c.endPts-e;c.endTime/=9e4;f.captionStreams[c.stream]=true;f.captions.push(c)}for(d=0;d<this.pendingMetadata.length;d++){b=this.pendingMetadata[d];b.cueTime=b.pts-e;b.cueTime/=9e4;f.metadata.push(b)}f.metadata.dispatchType=this.metadataStream.dispatchType;this.videoTrack=null;this.audioTrack=null;this.videoTags=[];this.audioTags=[];this.pendingCaptions.length=0;this.pendingMetadata.length=0;this.pendingTracks=0;this.processedTracks=0;this.trigger("data",f);this.trigger("done")};b.exports=e},{"../utils/stream.js":59}],41:[function(a,b,c){"use strict";var d=a("./flv-tag.js");var e=function(a,b,c){var e=new Uint8Array(3+1+1+4),f=new DataView(e.buffer),g,h,i;a=a||0;b=b===undefined?true:b;c=c===undefined?true:c;f.setUint8(0,70);f.setUint8(1,76);f.setUint8(2,86);f.setUint8(3,1);f.setUint8(4,(b?4:0)|(c?1:0));f.setUint32(5,e.byteLength);if(a<=0){h=new Uint8Array(e.byteLength+4);h.set(e);h.set([0,0,0,0],e.byteLength);return h}g=new d(d.METADATA_TAG);g.pts=g.dts=0;g.writeMetaDataDouble("duration",a);i=g.finalize().length;h=new Uint8Array(e.byteLength+i);h.set(e);h.set(f.byteLength,i);return h};b.exports=e},{"./flv-tag.js":42}],42:[function(a,b,c){"use strict";var d;d=function(a,b){var c=0,e=16384,f=function(a,b){var c,d=a.position+b;if(d<a.bytes.byteLength){return}c=new Uint8Array(d*2);c.set(a.bytes.subarray(0,a.position),0);a.bytes=c;a.view=new DataView(a.bytes.buffer); },g=d.widthBytes||new Uint8Array("width".length),h=d.heightBytes||new Uint8Array("height".length),i=d.videocodecidBytes||new Uint8Array("videocodecid".length),j;if(!d.widthBytes){for(j=0;j<"width".length;j++){g[j]="width".charCodeAt(j)}for(j=0;j<"height".length;j++){h[j]="height".charCodeAt(j)}for(j=0;j<"videocodecid".length;j++){i[j]="videocodecid".charCodeAt(j)}d.widthBytes=g;d.heightBytes=h;d.videocodecidBytes=i}this.keyFrame=false;switch(a){case d.VIDEO_TAG:this.length=16;e*=6;break;case d.AUDIO_TAG:this.length=13;this.keyFrame=true;break;case d.METADATA_TAG:this.length=29;this.keyFrame=true;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(e);this.view=new DataView(this.bytes.buffer);this.bytes[0]=a;this.position=this.length;this.keyFrame=b;this.pts=0;this.dts=0;this.writeBytes=function(a,b,c){var d=b||0,e;c=c||a.byteLength;e=d+c;f(this,c);this.bytes.set(a.subarray(d,e),this.position);this.position+=c;this.length=Math.max(this.length,this.position)};this.writeByte=function(a){f(this,1);this.bytes[this.position]=a;this.position++;this.length=Math.max(this.length,this.position)};this.writeShort=function(a){f(this,2);this.view.setUint16(this.position,a);this.position+=2;this.length=Math.max(this.length,this.position)};this.negIndex=function(a){return this.bytes[this.length-a]};this.nalUnitSize=function(){if(c===0){return 0}return this.length-(c+4)};this.startNalUnit=function(){if(c>0){throw new Error("Attempted to create new NAL wihout closing the old one")}c=this.length;this.length+=4;this.position=this.length};this.endNalUnit=function(a){var b,d;if(this.length===c+4){this.length-=4}else if(c>0){b=c+4;d=this.length-b;this.position=c;this.view.setUint32(this.position,d);this.position=this.length;if(a){a.push(this.bytes.subarray(b,b+d))}}c=0};this.writeMetaDataDouble=function(a,b){var d;f(this,2+a.length+9);this.view.setUint16(this.position,a.length);this.position+=2;if(a==="width"){this.bytes.set(g,this.position);this.position+=5}else if(a==="height"){this.bytes.set(h,this.position);this.position+=6}else if(a==="videocodecid"){this.bytes.set(i,this.position);this.position+=12}else{for(d=0;d<a.length;d++){this.bytes[this.position]=a.charCodeAt(d);this.position++}}this.position++;this.view.setFloat64(this.position,b);this.position+=8;this.length=Math.max(this.length,this.position);++c};this.writeMetaDataBoolean=function(a,b){var d;f(this,2);this.view.setUint16(this.position,a.length);this.position+=2;for(d=0;d<a.length;d++){f(this,1);this.bytes[this.position]=a.charCodeAt(d);this.position++}f(this,2);this.view.setUint8(this.position,1);this.position++;this.view.setUint8(this.position,b?1:0);this.position++;this.length=Math.max(this.length,this.position);++c};this.finalize=function(){var a,e;switch(this.bytes[0]){case d.VIDEO_TAG:this.bytes[11]=(this.keyFrame||b?16:32)|7;this.bytes[12]=b?0:1;a=this.pts-this.dts;this.bytes[13]=(a&16711680)>>>16;this.bytes[14]=(a&65280)>>>8;this.bytes[15]=(a&255)>>>0;break;case d.AUDIO_TAG:this.bytes[11]=175;this.bytes[12]=b?0:1;break;case d.METADATA_TAG:this.position=11;this.view.setUint8(this.position,2);this.position++;this.view.setUint16(this.position,10);this.position+=2;this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position);this.position+=10;this.bytes[this.position]=8;this.position++;this.view.setUint32(this.position,c);this.position=this.length;this.bytes.set([0,0,9],this.position);this.position+=3;this.length=this.position;break}e=this.length-11;this.bytes[1]=(e&16711680)>>>16;this.bytes[2]=(e&65280)>>>8;this.bytes[3]=(e&255)>>>0;this.bytes[4]=(this.dts&16711680)>>>16;this.bytes[5]=(this.dts&65280)>>>8;this.bytes[6]=(this.dts&255)>>>0;this.bytes[7]=(this.dts&4278190080)>>>24;this.bytes[8]=0;this.bytes[9]=0;this.bytes[10]=0;f(this,4);this.view.setUint32(this.length,this.length);this.length+=4;this.position+=4;this.bytes=this.bytes.subarray(0,this.length);this.frameTime=d.frameTime(this.bytes);return this}};d.AUDIO_TAG=8;d.VIDEO_TAG=9;d.METADATA_TAG=18;d.isAudioFrame=function(a){return d.AUDIO_TAG===a[0]};d.isVideoFrame=function(a){return d.VIDEO_TAG===a[0]};d.isMetaData=function(a){return d.METADATA_TAG===a[0]};d.isKeyFrame=function(a){if(d.isVideoFrame(a)){return a[11]===23}if(d.isAudioFrame(a)){return true}if(d.isMetaData(a)){return true}return false};d.frameTime=function(a){var b=a[4]<<16;b|=a[5]<<8;b|=a[6]<<0;b|=a[7]<<24;return b};b.exports=d},{}],43:[function(a,b,c){b.exports={tag:a("./flv-tag"),Transmuxer:a("./transmuxer"),getFlvHeader:a("./flv-header")}},{"./flv-header":41,"./flv-tag":42,"./transmuxer":45}],44:[function(a,b,c){"use strict";var d=function(){var a=this;this.list=[];this.push=function(a){this.list.push({bytes:a.bytes,dts:a.dts,pts:a.pts,keyFrame:a.keyFrame,metaDataTag:a.metaDataTag})};Object.defineProperty(this,"length",{get:function(){return a.list.length}})};b.exports=d},{}],45:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("./flv-tag.js");var f=a("../m2ts/m2ts.js");var g=a("../codecs/adts.js");var h=a("../codecs/h264").H264Stream;var i=a("./coalesce-stream.js");var j=a("./tag-list.js");var k,l,m,n,o,p;n=function(a,b){if(typeof b.pts==="number"){if(a.timelineStartInfo.pts===undefined){a.timelineStartInfo.pts=b.pts}else{a.timelineStartInfo.pts=Math.min(a.timelineStartInfo.pts,b.pts)}}if(typeof b.dts==="number"){if(a.timelineStartInfo.dts===undefined){a.timelineStartInfo.dts=b.dts}else{a.timelineStartInfo.dts=Math.min(a.timelineStartInfo.dts,b.dts)}}};o=function(a,b){var c=new e(e.METADATA_TAG);c.dts=b;c.pts=b;c.writeMetaDataDouble("videocodecid",7);c.writeMetaDataDouble("width",a.width);c.writeMetaDataDouble("height",a.height);return c};p=function(a,b){var c,d=new e(e.VIDEO_TAG,true);d.dts=b;d.pts=b;d.writeByte(1);d.writeByte(a.profileIdc);d.writeByte(a.profileCompatibility);d.writeByte(a.levelIdc);d.writeByte(252|3);d.writeByte(224|1);d.writeShort(a.sps[0].length);d.writeBytes(a.sps[0]);d.writeByte(a.pps.length);for(c=0;c<a.pps.length;++c){d.writeShort(a.pps[c].length);d.writeBytes(a.pps[c])}return d};m=function(a){var b=[],c=[],d;m.prototype.init.call(this);this.push=function(c){n(a,c);if(a){a.audioobjecttype=c.audioobjecttype;a.channelcount=c.channelcount;a.samplerate=c.samplerate;a.samplingfrequencyindex=c.samplingfrequencyindex;a.samplesize=c.samplesize;a.extraData=a.audioobjecttype<<11|a.samplingfrequencyindex<<7|a.channelcount<<3}c.pts=Math.round(c.pts/90);c.dts=Math.round(c.dts/90);b.push(c)};this.flush=function(){var f,g,h,i=new j;if(b.length===0){this.trigger("done","AudioSegmentStream");return}h=-Infinity;while(b.length){f=b.shift();if(c.length&&f.pts>=c[0]){h=c.shift();this.writeMetaDataTags(i,h)}if(a.extraData!==d||f.pts-h>=1e3){this.writeMetaDataTags(i,f.pts);d=a.extraData;h=f.pts}g=new e(e.AUDIO_TAG);g.pts=f.pts;g.dts=f.dts;g.writeBytes(f.data);i.push(g.finalize())}c.length=0;d=null;this.trigger("data",{track:a,tags:i.list});this.trigger("done","AudioSegmentStream")};this.writeMetaDataTags=function(b,c){var d;d=new e(e.METADATA_TAG);d.pts=c;d.dts=c;d.writeMetaDataDouble("audiocodecid",10);d.writeMetaDataBoolean("stereo",a.channelcount===2);d.writeMetaDataDouble("audiosamplerate",a.samplerate);d.writeMetaDataDouble("audiosamplesize",16);b.push(d.finalize());d=new e(e.AUDIO_TAG,true);d.pts=c;d.dts=c;d.view.setUint16(d.position,a.extraData);d.position+=2;d.length=Math.max(d.length,d.position);b.push(d.finalize())};this.onVideoKeyFrame=function(a){c.push(a)}};m.prototype=new d;l=function(a){var b=[],c,d;l.prototype.init.call(this);this.finishFrame=function(b,e){if(!e){return}if(c&&a&&a.newMetadata&&(e.keyFrame||b.length===0)){var f=o(c,e.dts).finalize();var g=p(a,e.dts).finalize();f.metaDataTag=g.metaDataTag=true;b.push(f);b.push(g);a.newMetadata=false;this.trigger("keyframe",e.dts)}e.endNalUnit();b.push(e.finalize());d=null};this.push=function(c){n(a,c);c.pts=Math.round(c.pts/90);c.dts=Math.round(c.dts/90);b.push(c)};this.flush=function(){var f,g=new j;while(b.length){if(b[0].nalUnitType==="access_unit_delimiter_rbsp"){break}b.shift()}if(b.length===0){this.trigger("done","VideoSegmentStream");return}while(b.length){f=b.shift();if(f.nalUnitType==="seq_parameter_set_rbsp"){a.newMetadata=true;c=f.config;a.width=c.width;a.height=c.height;a.sps=[f.data];a.profileIdc=c.profileIdc;a.levelIdc=c.levelIdc;a.profileCompatibility=c.profileCompatibility;d.endNalUnit()}else if(f.nalUnitType==="pic_parameter_set_rbsp"){a.newMetadata=true;a.pps=[f.data];d.endNalUnit()}else if(f.nalUnitType==="access_unit_delimiter_rbsp"){if(d){this.finishFrame(g,d)}d=new e(e.VIDEO_TAG);d.pts=f.pts;d.dts=f.dts}else{if(f.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){d.keyFrame=true}d.endNalUnit()}d.startNalUnit();d.writeBytes(f.data)}if(d){this.finishFrame(g,d)}this.trigger("data",{track:a,tags:g.list});this.trigger("done","VideoSegmentStream")}};l.prototype=new d;k=function(a){var b=this,c,d,e,j,n,o,p,q,r,s,t,u;k.prototype.init.call(this);a=a||{};this.metadataStream=new f.MetadataStream;a.metadataStream=this.metadataStream;c=new f.TransportPacketStream;d=new f.TransportParseStream;e=new f.ElementaryStream;j=new f.TimestampRolloverStream("video");n=new f.TimestampRolloverStream("audio");o=new f.TimestampRolloverStream("timed-metadata");p=new g;q=new h;u=new i(a);c.pipe(d).pipe(e);e.pipe(j).pipe(q);e.pipe(n).pipe(p);e.pipe(o).pipe(this.metadataStream).pipe(u);t=new f.CaptionStream;q.pipe(t).pipe(u);e.on("data",function(a){var b,c,d;if(a.type==="metadata"){b=a.tracks.length;while(b--){if(a.tracks[b].type==="video"){c=a.tracks[b]}else if(a.tracks[b].type==="audio"){d=a.tracks[b]}}if(c&&!r){u.numberOfTracks++;r=new l(c);q.pipe(r).pipe(u)}if(d&&!s){u.numberOfTracks++;s=new m(d);p.pipe(s).pipe(u);if(r){r.on("keyframe",s.onVideoKeyFrame)}}}});this.push=function(a){c.push(a)};this.flush=function(){c.flush()};this.resetCaptions=function(){t.reset()};u.on("data",function(a){b.trigger("data",a)});u.on("done",function(){b.trigger("done")})};k.prototype=new d;b.exports=k},{"../codecs/adts.js":37,"../codecs/h264":38,"../m2ts/m2ts.js":47,"../utils/stream.js":59,"./coalesce-stream.js":40,"./flv-tag.js":42,"./tag-list.js":44}],46:[function(a,b,c){"use strict";var d=4,e=128,f=a("../utils/stream");var g=function(a){var b=0,c={payloadType:-1,payloadSize:0},f=0,g=0;while(b<a.byteLength){if(a[b]===e){break}while(a[b]===255){f+=255;b++}f+=a[b++];while(a[b]===255){g+=255;b++}g+=a[b++];if(!c.payload&&f===d){c.payloadType=f;c.payloadSize=g;c.payload=a.subarray(b,b+g);break}b+=g;f=0;g=0}return c};var h=function(a){if(a.payload[0]!==181){return null}if((a.payload[1]<<8|a.payload[2])!==49){return null}if(String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])!=="GA94"){return null}if(a.payload[7]!==3){return null}return a.payload.subarray(8,a.payload.length-1)};var i=function(a,b){var c=[],d,e,f,g;if(!(b[0]&64)){return c}e=b[0]&31;for(d=0;d<e;d++){f=d*3;g={type:b[f+2]&3,pts:a};if(b[f+2]&4){g.ccData=b[f+3]<<8|b[f+4];c.push(g)}}return c};var j=function(){j.prototype.init.call(this);this.captionPackets_=[];this.ccStreams_=[new p(0,0),new p(0,1),new p(1,0),new p(1,1)];this.reset();this.ccStreams_.forEach(function(a){a.on("data",this.trigger.bind(this,"data"));a.on("done",this.trigger.bind(this,"done"))},this)};j.prototype=new f;j.prototype.push=function(a){var b,c;if(a.nalUnitType!=="sei_rbsp"){return}b=g(a.escapedRBSP);if(b.payloadType!==d){return}c=h(b);if(!c){return}if(a.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(a.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.ignoreNextEqualDts_=false;return}this.captionPackets_=this.captionPackets_.concat(i(a.pts,c));this.latestDts_=a.dts};j.prototype.flush=function(){if(!this.captionPackets_.length){this.ccStreams_.forEach(function(a){a.flush()},this);return}this.captionPackets_.forEach(function(a,b){a.presortIndex=b});this.captionPackets_.sort(function(a,b){if(a.pts===b.pts){return a.presortIndex-b.presortIndex}return a.pts-b.pts});this.captionPackets_.forEach(function(a){if(a.type<2){this.dispatchCea608Packet(a)}},this);this.captionPackets_.length=0;this.ccStreams_.forEach(function(a){a.flush()},this);return};j.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(a){a.reset()})};j.prototype.dispatchCea608Packet=function(a){if(this.setsChannel1Active(a)){this.activeCea608Channel_[a.type]=0}else if(this.setsChannel2Active(a)){this.activeCea608Channel_[a.type]=1}if(this.activeCea608Channel_[a.type]===null){return}this.ccStreams_[(a.type<<1)+this.activeCea608Channel_[a.type]].push(a)};j.prototype.setsChannel1Active=function(a){return(a.ccData&30720)===4096};j.prototype.setsChannel2Active=function(a){return(a.ccData&30720)===6144};var k={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var l=function(a){if(a===null){return""}a=k[a]||a;return String.fromCharCode(a)};var m=14;var n=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var o=function(){var a=[],b=m+1;while(b--){a.push("")}return a};var p=function(a,b){p.prototype.init.call(this);this.field_=a||0;this.dataChannel_=b||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(a){var b,c,d,e,f;b=a.ccData&32639;if(b===this.lastControlCode_){this.lastControlCode_=null;return}if((b&61440)===4096){this.lastControlCode_=b}else if(b!==this.PADDING_){this.lastControlCode_=null}d=b>>>8;e=b&255;if(b===this.PADDING_){return}else if(b===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(b===this.END_OF_CAPTION_){this.clearFormatting(a.pts);this.flushDisplayed(a.pts);c=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=c;this.startPts_=a.pts}else if(b===this.ROLL_UP_2_ROWS_){this.topRow_=m-1;this.mode_="rollUp"}else if(b===this.ROLL_UP_3_ROWS_){this.topRow_=m-2;this.mode_="rollUp"}else if(b===this.ROLL_UP_4_ROWS_){this.topRow_=m-3;this.mode_="rollUp"}else if(b===this.CARRIAGE_RETURN_){this.clearFormatting(a.pts);this.flushDisplayed(a.pts);this.shiftRowsUp_();this.startPts_=a.pts}else if(b===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[m]=this.nonDisplayed_[m].slice(0,-1)}else{this.displayed_[m]=this.displayed_[m].slice(0,-1)}}else if(b===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(a.pts);this.displayed_=o()}else if(b===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=o()}else if(b===this.RESUME_DIRECT_CAPTIONING_){this.mode_="paintOn"}else if(this.isSpecialCharacter(d,e)){d=(d&3)<<8;f=l(d|e);this[this.mode_](a.pts,f);this.column_++}else if(this.isExtCharacter(d,e)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[m]=this.displayed_[m].slice(0,-1)}d=(d&3)<<8;f=l(d|e);this[this.mode_](a.pts,f);this.column_++}else if(this.isMidRowCode(d,e)){this.clearFormatting(a.pts);this[this.mode_](a.pts," ");this.column_++;if((e&14)===14){this.addFormatting(a.pts,["i"])}if((e&1)===1){this.addFormatting(a.pts,["u"])}}else if(this.isOffsetControlCode(d,e)){this.column_+=e&3}else if(this.isPAC(d,e)){var g=n.indexOf(b&7968);if(g!==this.row_){this.clearFormatting(a.pts);this.row_=g}if(e&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(a.pts,["u"])}if((b&16)===16){this.column_=((b&14)>>1)*4}if(this.isColorPAC(e)){if((e&14)===14){this.addFormatting(a.pts,["i"])}}}else if(this.isNormalChar(d)){if(e===0){e=null}f=l(d);f+=l(e);this[this.mode_](a.pts,f);this.column_+=f.length}}};p.prototype=new f;p.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){return a.trim()}).join("\n").replace(/^\n+|\n+$/g,"");if(b.length){this.trigger("data",{startPts:this.startPts_,endPts:a,text:b,stream:this.name_})}};p.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=o();this.nonDisplayed_=o();this.lastControlCode_=null;this.column_=0;this.row_=m;this.formatting_=[]};p.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};p.prototype.isSpecialCharacter=function(a,b){return a===this.EXT_&&b>=48&&b<=63};p.prototype.isExtCharacter=function(a,b){return(a===this.EXT_+1||a===this.EXT_+2)&&(b>=32&&b<=63)};p.prototype.isMidRowCode=function(a,b){return a===this.EXT_&&(b>=32&&b<=47)};p.prototype.isOffsetControlCode=function(a,b){return a===this.OFFSET_&&(b>=33&&b<=35)};p.prototype.isPAC=function(a,b){return a>=this.BASE_&&a<this.BASE_+8&&(b>=64&&b<=127)};p.prototype.isColorPAC=function(a){return a>=64&&a<=79||a>=96&&a<=127};p.prototype.isNormalChar=function(a){return a>=32&&a<=127};p.prototype.addFormatting=function(a,b){this.formatting_=this.formatting_.concat(b);var c=b.reduce(function(a,b){return a+"<"+b+">"},"");this[this.mode_](a,c)};p.prototype.clearFormatting=function(a){if(!this.formatting_.length){return}var b=this.formatting_.reverse().reduce(function(a,b){return a+"</"+b+">"},"");this.formatting_=[];this[this.mode_](a,b)};p.prototype.popOn=function(a,b){var c=this.nonDisplayed_[this.row_];c+=b;this.nonDisplayed_[this.row_]=c};p.prototype.rollUp=function(a,b){var c=this.displayed_[m];c+=b;this.displayed_[m]=c};p.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++){this.displayed_[a]=""}for(a=this.topRow_;a<m;a++){this.displayed_[a]=this.displayed_[a+1]}this.displayed_[m]=""};p.prototype.paintOn=function(){};b.exports={CaptionStream:j,Cea608Stream:p}},{"../utils/stream":59}],47:[function(a,b,c){"use strict";var d=a("../utils/stream.js"),e=a("./caption-stream"),f=a("./stream-types"),g=a("./timestamp-rollover-stream").TimestampRolloverStream;var h=a("./stream-types.js");var i,j,k;var l=188,m=71;i=function(){var a=new Uint8Array(l),b=0;i.prototype.init.call(this);this.push=function(c){var d=0,e=l,f;if(b){f=new Uint8Array(c.byteLength+b);f.set(a.subarray(0,b));f.set(c,b);b=0}else{f=c}while(e<f.byteLength){if(f[d]===m&&f[e]===m){this.trigger("data",f.subarray(d,e));d+=l;e+=l;continue}d++;e++}if(d<f.byteLength){a.set(f.subarray(d),0);b=f.byteLength-d}};this.flush=function(){if(b===l&&a[0]===m){this.trigger("data",a);b=0}this.trigger("done")}};i.prototype=new d;j=function(){var a,b,c,d;j.prototype.init.call(this);d=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;a=function(a,d){var e=0;if(d.payloadUnitStartIndicator){e+=a[e]+1}if(d.type==="pat"){b(a.subarray(e),d)}else{c(a.subarray(e),d)}};b=function(a,b){b.section_number=a[7];b.last_section_number=a[8];d.pmtPid=(a[10]&31)<<8|a[11];b.pmtPid=d.pmtPid};c=function(a,b){var c,e,g,h;if(!(a[5]&1)){return}d.programMapTable={video:null,audio:null,"timed-metadata":{}};c=(a[1]&15)<<8|a[2];e=3+c-4;g=(a[10]&15)<<8|a[11];h=12+g;while(h<e){var i=a[h];var j=(a[h+1]&31)<<8|a[h+2];if(i===f.H264_STREAM_TYPE&&d.programMapTable.video===null){d.programMapTable.video=j}else if(i===f.ADTS_STREAM_TYPE&&d.programMapTable.audio===null){d.programMapTable.audio=j}else if(i===f.METADATA_STREAM_TYPE){d.programMapTable["timed-metadata"][j]=i}h+=((a[h+3]&15)<<8|a[h+4])+5}b.programMapTable=d.programMapTable};this.push=function(b){var c={},d=4;c.payloadUnitStartIndicator=!!(b[1]&64);c.pid=b[1]&31;c.pid<<=8;c.pid|=b[2];if((b[3]&48)>>>4>1){d+=b[d]+1}if(c.pid===0){c.type="pat";a(b.subarray(d),c);this.trigger("data",c)}else if(c.pid===this.pmtPid){c.type="pmt";a(b.subarray(d),c);this.trigger("data",c);while(this.packetsWaitingForPmt.length){this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}}else if(this.programMapTable===undefined){this.packetsWaitingForPmt.push([b,d,c])}else{this.processPes_(b,d,c)}};this.processPes_=function(a,b,c){if(c.pid===this.programMapTable.video){c.streamType=f.H264_STREAM_TYPE}else if(c.pid===this.programMapTable.audio){c.streamType=f.ADTS_STREAM_TYPE}else{c.streamType=this.programMapTable["timed-metadata"][c.pid]}c.type="pes";c.data=a.subarray(b);this.trigger("data",c)}};j.prototype=new d;j.STREAM_TYPES={h264:27,adts:15};k=function(){var a=this,b={data:[],size:0},c={data:[],size:0},d={data:[],size:0},e=function(a,b){var c;b.packetLength=6+(a[4]<<8|a[5]);b.dataAlignmentIndicator=(a[6]&4)!==0;c=a[7];if(c&192){b.pts=(a[9]&14)<<27|(a[10]&255)<<20|(a[11]&254)<<12|(a[12]&255)<<5|(a[13]&254)>>>3;b.pts*=4;b.pts+=(a[13]&6)>>>1;b.dts=b.pts;if(c&64){b.dts=(a[14]&14)<<27|(a[15]&255)<<20|(a[16]&254)<<12|(a[17]&255)<<5|(a[18]&254)>>>3;b.dts*=4;b.dts+=(a[18]&6)>>>1}}b.data=a.subarray(9+a[8])},g=function(b,c,d){var f=new Uint8Array(b.size),g={type:c},h=0,i=0,j=false,k;if(!b.data.length||b.size<9){return}g.trackId=b.data[0].pid;for(h=0;h<b.data.length;h++){k=b.data[h];f.set(k.data,i);i+=k.data.byteLength}e(f,g);j=c==="video"||g.packetLength<=b.size;if(d||j){b.size=0;b.data.length=0}if(j){a.trigger("data",g)}};k.prototype.init.call(this);this.push=function(e){({pat:function(){},pes:function(){var a,i;switch(e.streamType){case f.H264_STREAM_TYPE:case h.H264_STREAM_TYPE:a=b;i="video";break;case f.ADTS_STREAM_TYPE:a=c;i="audio";break;case f.METADATA_STREAM_TYPE:a=d;i="timed-metadata";break;default:return}if(e.payloadUnitStartIndicator){g(a,i,true)}a.data.push(e);a.size+=e.data.byteLength},pmt:function(){var b={type:"metadata",tracks:[]},c=e.programMapTable;if(c.video!==null){b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+c.video,codec:"avc",type:"video"})}if(c.audio!==null){b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+c.audio,codec:"adts",type:"audio"})}a.trigger("data",b)}})[e.type]()};this.flush=function(){g(b,"video");g(c,"audio");g(d,"timed-metadata");this.trigger("done")}};k.prototype=new d;var n={PAT_PID:0,MP2T_PACKET_LENGTH:l,TransportPacketStream:i,TransportParseStream:j,ElementaryStream:k,TimestampRolloverStream:g,CaptionStream:e.CaptionStream,Cea608Stream:e.Cea608Stream,MetadataStream:a("./metadata-stream")};for(var o in f){if(f.hasOwnProperty(o)){n[o]=f[o]}}b.exports=n},{"../utils/stream.js":59,"./caption-stream":46,"./metadata-stream":48,"./stream-types":50,"./stream-types.js":50,"./timestamp-rollover-stream":51}],48:[function(a,b,c){"use strict";var d=a("../utils/stream"),e=a("./stream-types"),f=function(a,b,c){var d,e="";for(d=b;d<c;d++){e+="%"+("00"+a[d].toString(16)).slice(-2)}return e},g=function(a,b,c){return decodeURIComponent(f(a,b,c))},h=function(a,b,c){return unescape(f(a,b,c))},i=function(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},j={TXXX:function(a){var b;if(a.data[0]!==3){return}for(b=1;b<a.data.length;b++){if(a.data[b]===0){a.description=g(a.data,1,b);a.value=g(a.data,b+1,a.data.length).replace(/\0*$/,"");break}}a.data=a.value},WXXX:function(a){var b;if(a.data[0]!==3){return}for(b=1;b<a.data.length;b++){if(a.data[b]===0){a.description=g(a.data,1,b);a.url=g(a.data,b+1,a.data.length);break}}},PRIV:function(a){var b;for(b=0;b<a.data.length;b++){if(a.data[b]===0){a.owner=h(a.data,0,b);break}}a.privateData=a.data.subarray(b+1);a.data=a.privateData}},k;k=function(a){var b={debug:!!(a&&a.debug),descriptor:a&&a.descriptor},c=0,d=[],f=0,g;k.prototype.init.call(this);this.dispatchType=e.METADATA_STREAM_TYPE.toString(16);if(b.descriptor){for(g=0;g<b.descriptor.length;g++){this.dispatchType+=("00"+b.descriptor[g].toString(16)).slice(-2)}}this.push=function(a){var e,g,h,k,l,m;if(a.type!=="timed-metadata"){return}if(a.dataAlignmentIndicator){f=0;d.length=0}if(d.length===0&&(a.data.length<10||a.data[0]!=="I".charCodeAt(0)||a.data[1]!=="D".charCodeAt(0)||a.data[2]!=="3".charCodeAt(0))){if(b.debug){console.log("Skipping unrecognized metadata packet")}return}d.push(a);f+=a.data.byteLength;if(d.length===1){c=i(a.data.subarray(6,10));c+=10}if(f<c){return}e={data:new Uint8Array(c),frames:[],pts:d[0].pts,dts:d[0].dts};for(l=0;l<c;){e.data.set(d[0].data.subarray(0,c-l),l);l+=d[0].data.byteLength;f-=d[0].data.byteLength;d.shift()}g=10;if(e.data[5]&64){g+=4;g+=i(e.data.subarray(10,14));c-=i(e.data.subarray(16,20))}do{h=i(e.data.subarray(g+4,g+8));if(h<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}m=String.fromCharCode(e.data[g],e.data[g+1],e.data[g+2],e.data[g+3]);k={id:m,data:e.data.subarray(g+10,g+h+10)};k.key=k.id;if(j[k.id]){j[k.id](k);if(k.owner==="com.apple.streaming.transportStreamTimestamp"){var n=k.data,o=(n[3]&1)<<30|n[4]<<22|n[5]<<14|n[6]<<6|n[7]>>>2;o*=4;o+=n[7]&3;k.timeStamp=o;if(e.pts===undefined&&e.dts===undefined){e.pts=k.timeStamp;e.dts=k.timeStamp}this.trigger("timestamp",k)}}e.frames.push(k);g+=10;g+=h}while(g<c);this.trigger("data",e)}};k.prototype=new d;b.exports=k},{"../utils/stream":59,"./stream-types":50}],49:[function(a,b,c){"use strict";var d=a("./stream-types.js");var e=function(a){var b=a[1]&31;b<<=8;b|=a[2];return b};var f=function(a){return!!(a[1]&64)};var g=function(a){var b=0;if((a[3]&48)>>>4>1){b+=a[4]+1}return b};var h=function(a,b){var c=e(a);if(c===0){return"pat"}else if(c===b){return"pmt"}else if(b){return"pes"}return null};var i=function(a){var b=f(a);var c=4+g(a);if(b){c+=a[c]+1}return(a[c+10]&31)<<8|a[c+11]};var j=function(a){var b={};var c=f(a);var d=4+g(a);if(c){d+=a[d]+1}if(!(a[d+5]&1)){return}var e,h,i;e=(a[d+1]&15)<<8|a[d+2];h=3+e-4;i=(a[d+10]&15)<<8|a[d+11];var j=12+i;while(j<h){var k=d+j;b[(a[k+1]&31)<<8|a[k+2]]=a[k];j+=((a[k+3]&15)<<8|a[k+4])+5}return b};var k=function(a,b){var c=e(a);var f=b[c];switch(f){case d.H264_STREAM_TYPE:return"video";case d.ADTS_STREAM_TYPE:return"audio";case d.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}};var l=function(a){var b=f(a);if(!b){return null}var c=4+g(a);if(c>=a.byteLength){return null}var d=null;var e;e=a[c+7];if(e&192){d={};d.pts=(a[c+9]&14)<<27|(a[c+10]&255)<<20|(a[c+11]&254)<<12|(a[c+12]&255)<<5|(a[c+13]&254)>>>3;d.pts*=4;d.pts+=(a[c+13]&6)>>>1;d.dts=d.pts;if(e&64){d.dts=(a[c+14]&14)<<27|(a[c+15]&255)<<20|(a[c+16]&254)<<12|(a[c+17]&255)<<5|(a[c+18]&254)>>>3;d.dts*=4;d.dts+=(a[c+18]&6)>>>1}}return d};var m=function(a){switch(a){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};var n=function(a){var b=4+g(a);var c=a.subarray(b);var d=0;var e=0;var f=false;var h;for(;e<c.byteLength-3;e++){if(c[e+2]===1){d=e+5;break}}while(d<c.byteLength){switch(c[d]){case 0:if(c[d-1]!==0){d+=2;break}else if(c[d-2]!==0){d++;break}if(e+3!==d-2){h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}}do{d++}while(c[d]!==1&&d<c.length);e=d-2;d+=3;break;case 1:if(c[d-1]!==0||c[d-2]!==0){d+=3;break}h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}e=d-2;d+=3;break;default:d+=3;break}}c=c.subarray(e);d-=e;e=0;if(c&&c.byteLength>3){h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}}return f};b.exports={parseType:h,parsePat:i,parsePmt:j,parsePayloadUnitStartIndicator:f,parsePesType:k,parsePesTime:l,videoPacketContainsKeyFrame:n}},{"./stream-types.js":50}],50:[function(a,b,c){"use strict";b.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},{}],51:[function(a,b,c){"use strict";var d=a("../utils/stream");var e=8589934592;var f=4294967296;var g=function(a,b){var c=1;if(a>b){c=-1}while(Math.abs(b-a)>f){a+=c*e}return a};var h=function(a){var b,c;h.prototype.init.call(this);this.type_=a;this.push=function(a){if(a.type!==this.type_){return}if(c===undefined){c=a.dts}a.dts=g(a.dts,c);a.pts=g(a.pts,c);b=a.dts;this.trigger("data",a)};this.flush=function(){c=b;this.trigger("done")};this.discontinuity=function(){c=void 0;b=void 0}};h.prototype=new d;b.exports={TimestampRolloverStream:h,handleRollover:g}},{"../utils/stream":59}],52:[function(a,b,c){b.exports={generator:a("./mp4-generator"),Transmuxer:a("./transmuxer").Transmuxer,AudioSegmentStream:a("./transmuxer").AudioSegmentStream,VideoSegmentStream:a("./transmuxer").VideoSegmentStream}},{"./mp4-generator":53,"./transmuxer":55}],53:[function(a,b,c){"use strict";var d=Math.pow(2,32)-1;var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N;(function(){var a;A={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]};if(typeof Uint8Array==="undefined"){return}for(a in A){if(A.hasOwnProperty(a)){A[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]}}B=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);D=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);C=new Uint8Array([0,0,0,1]);E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]);F=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);G={video:E,audio:F};J=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);I=new Uint8Array([0,0,0,0,0,0,0,0]);K=new Uint8Array([0,0,0,0,0,0,0,0]);L=K;M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);N=K;H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])})();e=function(a){var b=[],c=0,d,e,f;for(d=1;d<arguments.length;d++){b.push(arguments[d])}d=b.length;while(d--){c+=b[d].byteLength}e=new Uint8Array(c+8);f=new DataView(e.buffer,e.byteOffset,e.byteLength);f.setUint32(0,e.byteLength);e.set(a,4);for(d=0,c=8;d<b.length;d++){e.set(b[d],c);c+=b[d].byteLength}return e};f=function(){return e(A.dinf,e(A.dref,J))};g=function(a){return e(A.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,a.audioobjecttype<<3|a.samplingfrequencyindex>>>1,a.samplingfrequencyindex<<7|a.channelcount<<3,6,1,2]))};h=function(){return e(A.ftyp,B,C,B,D)};t=function(a){return e(A.hdlr,G[a])};i=function(a){return e(A.mdat,a)};s=function(a){var b=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,a.duration>>>24&255,a.duration>>>16&255,a.duration>>>8&255,a.duration&255,85,196,0,0]);if(a.samplerate){b[12]=a.samplerate>>>24&255;b[13]=a.samplerate>>>16&255;b[14]=a.samplerate>>>8&255;b[15]=a.samplerate&255}return e(A.mdhd,b)};r=function(a){return e(A.mdia,s(a),t(a.type),k(a))};j=function(a){return e(A.mfhd,new Uint8Array([0,0,0,0,(a&4278190080)>>24,(a&16711680)>>16,(a&65280)>>8,a&255]))};k=function(a){return e(A.minf,a.type==="video"?e(A.vmhd,H):e(A.smhd,I),f(),v(a))};l=function(a,b){var c=[],d=b.length;while(d--){c[d]=x(b[d])}return e.apply(null,[A.moof,j(a)].concat(c))};m=function(a){var b=a.length,c=[];while(b--){c[b]=p(a[b])}return e.apply(null,[A.moov,o(4294967295)].concat(c).concat(n(a)))};n=function(a){var b=a.length,c=[];while(b--){c[b]=y(a[b])}return e.apply(null,[A.mvex].concat(c))};o=function(a){var b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(a&4278190080)>>24,(a&16711680)>>16,(a&65280)>>8,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]); return e(A.mvhd,b)};u=function(a){var b=a.samples||[],c=new Uint8Array(4+b.length),d,f;for(f=0;f<b.length;f++){d=b[f].flags;c[f+4]=d.dependsOn<<4|d.isDependedOn<<2|d.hasRedundancy}return e(A.sdtp,c)};v=function(a){return e(A.stbl,w(a),e(A.stts,N),e(A.stsc,L),e(A.stsz,M),e(A.stco,K))};(function(){var a,b;w=function(c){return e(A.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),c.type==="video"?a(c):b(c))};a=function(a){var b=a.sps||[],c=a.pps||[],d=[],f=[],g;for(g=0;g<b.length;g++){d.push((b[g].byteLength&65280)>>>8);d.push(b[g].byteLength&255);d=d.concat(Array.prototype.slice.call(b[g]))}for(g=0;g<c.length;g++){f.push((c[g].byteLength&65280)>>>8);f.push(c[g].byteLength&255);f=f.concat(Array.prototype.slice.call(c[g]))}return e(A.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(a.width&65280)>>8,a.width&255,(a.height&65280)>>8,a.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(A.avcC,new Uint8Array([1,a.profileIdc,a.profileCompatibility,a.levelIdc,255].concat([b.length]).concat(d).concat([c.length]).concat(f))),e(A.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))};b=function(a){return e(A.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(a.channelcount&65280)>>8,a.channelcount&255,(a.samplesize&65280)>>8,a.samplesize&255,0,0,0,0,(a.samplerate&65280)>>8,a.samplerate&255,0,0]),g(a))}})();q=function(a){var b=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,0,(a.duration&4278190080)>>24,(a.duration&16711680)>>16,(a.duration&65280)>>8,a.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(a.width&65280)>>8,a.width&255,0,0,(a.height&65280)>>8,a.height&255,0,0]);return e(A.tkhd,b)};x=function(a){var b,c,f,g,h,i,j;b=e(A.tfhd,new Uint8Array([0,0,0,58,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));i=Math.floor(a.baseMediaDecodeTime/(d+1));j=Math.floor(a.baseMediaDecodeTime%(d+1));c=e(A.tfdt,new Uint8Array([1,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,i&255,j>>>24&255,j>>>16&255,j>>>8&255,j&255]));h=32+20+8+16+8+8;if(a.type==="audio"){f=z(a,h);return e(A.traf,b,c,f)}g=u(a);f=z(a,g.length+h);return e(A.traf,b,c,f,g)};p=function(a){a.duration=a.duration||4294967295;return e(A.trak,q(a),r(a))};y=function(a){var b=new Uint8Array([0,0,0,0,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);if(a.type!=="video"){b[b.length-1]=0}return e(A.trex,b)};(function(){var a,b,c;c=function(a,b){var c=0,d=0,e=0,f=0;if(a.length){if(a[0].duration!==undefined){c=1}if(a[0].size!==undefined){d=2}if(a[0].flags!==undefined){e=4}if(a[0].compositionTimeOffset!==undefined){f=8}}return[0,0,c|d|e|f,1,(a.length&4278190080)>>>24,(a.length&16711680)>>>16,(a.length&65280)>>>8,a.length&255,(b&4278190080)>>>24,(b&16711680)>>>16,(b&65280)>>>8,b&255]};b=function(a,b){var d,f,g,h;f=a.samples||[];b+=8+12+16*f.length;d=c(f,b);for(h=0;h<f.length;h++){g=f[h];d=d.concat([(g.duration&4278190080)>>>24,(g.duration&16711680)>>>16,(g.duration&65280)>>>8,g.duration&255,(g.size&4278190080)>>>24,(g.size&16711680)>>>16,(g.size&65280)>>>8,g.size&255,g.flags.isLeading<<2|g.flags.dependsOn,g.flags.isDependedOn<<6|g.flags.hasRedundancy<<4|g.flags.paddingValue<<1|g.flags.isNonSyncSample,g.flags.degradationPriority&240<<8,g.flags.degradationPriority&15,(g.compositionTimeOffset&4278190080)>>>24,(g.compositionTimeOffset&16711680)>>>16,(g.compositionTimeOffset&65280)>>>8,g.compositionTimeOffset&255])}return e(A.trun,new Uint8Array(d))};a=function(a,b){var d,f,g,h;f=a.samples||[];b+=8+12+8*f.length;d=c(f,b);for(h=0;h<f.length;h++){g=f[h];d=d.concat([(g.duration&4278190080)>>>24,(g.duration&16711680)>>>16,(g.duration&65280)>>>8,g.duration&255,(g.size&4278190080)>>>24,(g.size&16711680)>>>16,(g.size&65280)>>>8,g.size&255])}return e(A.trun,new Uint8Array(d))};z=function(c,d){if(c.type==="audio"){return a(c,d)}return b(c,d)}})();b.exports={ftyp:h,mdat:i,moof:l,moov:m,initSegment:function(a){var b=h(),c=m(a),d;d=new Uint8Array(b.byteLength+c.byteLength);d.set(b);d.set(c,b.byteLength);return d}}},{}],54:[function(a,b,c){"use strict";var d,e,f,g;d=function(a,b){var c=[],f,g,h,i,j;if(!b.length){return null}for(f=0;f<a.byteLength;){g=a[f]<<24;g|=a[f+1]<<16;g|=a[f+2]<<8;g|=a[f+3];h=e(a.subarray(f+4,f+8));i=g>1?f+g:a.byteLength;if(h===b[0]){if(b.length===1){c.push(a.subarray(f+8,i))}else{j=d(a.subarray(f+8,i),b.slice(1));if(j.length){c=c.concat(j)}}}f=i}return c};e=function(a){var b="";b+=String.fromCharCode(a[0]);b+=String.fromCharCode(a[1]);b+=String.fromCharCode(a[2]);b+=String.fromCharCode(a[3]);return b};f=function(a){var b={},c=d(a,["moov","trak"]);return c.reduce(function(a,b){var c,e,f,g,h;c=d(b,["tkhd"])[0];if(!c){return null}e=c[0];f=e===0?12:20;g=c[f]<<24|c[f+1]<<16|c[f+2]<<8|c[f+3];h=d(b,["mdia","mdhd"])[0];if(!h){return null}e=h[0];f=e===0?12:20;a[g]=h[f]<<24|h[f+1]<<16|h[f+2]<<8|h[f+3];return a},b)};g=function(a,b){var c,e,f;c=d(b,["moof","traf"]);e=[].concat.apply([],c.map(function(b){return d(b,["tfhd"]).map(function(c){var e,f,g;e=c[4]<<24|c[5]<<16|c[6]<<8|c[7];f=a[e]||9e4;g=d(b,["tfdt"]).map(function(a){var b,c;b=a[0];c=a[4]<<24|a[5]<<16|a[6]<<8|a[7];if(b===1){c*=Math.pow(2,32);c+=a[8]<<24|a[9]<<16|a[10]<<8|a[11]}return c})[0];g=g||Infinity;return g/f})}));f=Math.min.apply(null,e);return isFinite(f)?f:0};b.exports={parseType:e,timescale:f,startTime:g}},{}],55:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("./mp4-generator.js");var f=a("../m2ts/m2ts.js");var g=a("../codecs/adts.js");var h=a("../codecs/h264").H264Stream;var i=a("../aac");var j=a("../data/silence");var k=a("../utils/clock");var l=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"];var m=["width","height","profileIdc","levelIdc","profileCompatibility"];var n=9e4;var o,p,q,r;var s,t,u,v,w,x,y;s=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}};t=function(a){if(a[0]==="I".charCodeAt(0)&&a[1]==="D".charCodeAt(0)&&a[2]==="3".charCodeAt(0)){return true}return false};x=function(a,b){var c;if(a.length!==b.length){return false}for(c=0;c<a.length;c++){if(a[c]!==b[c]){return false}}return true};y=function(a){var b,c,d=0;for(b=0;b<a.length;b++){c=a[b];d+=c.data.byteLength}return d};p=function(a){var b=[],c=0,d=0,f=0,g=Infinity;p.prototype.init.call(this);this.push=function(c){u(a,c);if(a){l.forEach(function(b){a[b]=c[b]})}b.push(c)};this.setEarliestDts=function(b){d=b-a.timelineStartInfo.baseMediaDecodeTime};this.setVideoBaseMediaDecodeTime=function(a){g=a};this.setAudioAppendStart=function(a){f=a};this.flush=function(){var d,f,g,h;if(b.length===0){this.trigger("done","AudioSegmentStream");return}d=this.trimAdtsFramesByEarliestDts_(b);a.baseMediaDecodeTime=w(a);this.prefixWithSilence_(a,d);a.samples=this.generateSampleTable_(d);g=e.mdat(this.concatenateFrameData_(d));b=[];f=e.moof(c,[a]);h=new Uint8Array(f.byteLength+g.byteLength);c++;h.set(f);h.set(g,f.byteLength);v(a);this.trigger("data",{track:a,boxes:h});this.trigger("done","AudioSegmentStream")};this.prefixWithSilence_=function(a,b){var c,d=0,e=0,h=0,i=0,l,m;if(!b.length){return}c=k.audioTsToVideoTs(a.baseMediaDecodeTime,a.samplerate);d=Math.ceil(n/(a.samplerate/1024));if(f&&g){e=c-Math.max(f,g);h=Math.floor(e/d);i=h*d}if(h<1||i>n/2){return}l=j[a.samplerate];if(!l){l=b[0].data}for(m=0;m<h;m++){b.splice(m,0,{data:l})}a.baseMediaDecodeTime-=Math.floor(k.videoTsToAudioTs(i,a.samplerate))};this.trimAdtsFramesByEarliestDts_=function(b){if(a.minSegmentDts>=d){return b}a.minSegmentDts=Infinity;return b.filter(function(b){if(b.dts>=d){a.minSegmentDts=Math.min(a.minSegmentDts,b.dts);a.minSegmentPts=a.minSegmentDts;return true}return false})};this.generateSampleTable_=function(a){var b,c,d=[];for(b=0;b<a.length;b++){c=a[b];d.push({size:c.data.byteLength,duration:1024})}return d};this.concatenateFrameData_=function(a){var b,c,d=0,e=new Uint8Array(y(a));for(b=0;b<a.length;b++){c=a[b];e.set(c.data,d);d+=c.data.byteLength}return e}};p.prototype=new d;o=function(a,b){var c=0,d=[],f=[],g,h;b=b||{};o.prototype.init.call(this);delete a.minPTS;this.gopCache_=[];this.push=function(b){u(a,b);if(b.nalUnitType==="seq_parameter_set_rbsp"&&!g){g=b.config;a.sps=[b.data];m.forEach(function(b){a[b]=g[b]},this)}if(b.nalUnitType==="pic_parameter_set_rbsp"&&!h){h=b.data;a.pps=[b.data]}d.push(b)};this.flush=function(){var g,h,i,j,k,l;while(d.length){if(d[0].nalUnitType==="access_unit_delimiter_rbsp"){break}d.shift()}if(d.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}g=this.groupNalsIntoFrames_(d);i=this.groupFramesIntoGops_(g);if(!i[0][0].keyFrame){h=this.getGopForFusion_(d[0],a);if(h){i.unshift(h);i.byteLength+=h.byteLength;i.nalCount+=h.nalCount;i.pts=h.pts;i.dts=h.dts;i.duration+=h.duration}else{i=this.extendFirstKeyFrame_(i)}}if(f.length){var m;if(b.alignGopsAtEnd){m=this.alignGopsAtEnd_(i)}else{m=this.alignGopsAtStart_(i)}if(!m){this.gopCache_.unshift({gop:i.pop(),pps:a.pps,sps:a.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);d=[];this.resetStream_();this.trigger("done","VideoSegmentStream");return}v(a);i=m}u(a,i);a.samples=this.generateSampleTable_(i);k=e.mdat(this.concatenateNalData_(i));a.baseMediaDecodeTime=w(a);this.trigger("processedGopsInfo",i.map(function(a){return{pts:a.pts,dts:a.dts,byteLength:a.byteLength}}));this.gopCache_.unshift({gop:i.pop(),pps:a.pps,sps:a.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);d=[];this.trigger("baseMediaDecodeTime",a.baseMediaDecodeTime);this.trigger("timelineStartInfo",a.timelineStartInfo);j=e.moof(c,[a]);l=new Uint8Array(j.byteLength+k.byteLength);c++;l.set(j);l.set(k,j.byteLength);this.trigger("data",{track:a,boxes:l});this.resetStream_();this.trigger("done","VideoSegmentStream")};this.resetStream_=function(){v(a);g=undefined;h=undefined};this.getGopForFusion_=function(b){var c=45e3,d=1e4,e=Infinity,f,g,h,i,j;for(j=0;j<this.gopCache_.length;j++){i=this.gopCache_[j];h=i.gop;if(!(a.pps&&x(a.pps[0],i.pps[0]))||!(a.sps&&x(a.sps[0],i.sps[0]))){continue}if(h.dts<a.timelineStartInfo.dts){continue}f=b.dts-h.dts-h.duration;if(f>=-d&&f<=c){if(!g||e>f){g=i;e=f}}}if(g){return g.gop}return null};this.extendFirstKeyFrame_=function(a){var b;if(!a[0][0].keyFrame&&a.length>1){b=a.shift();a.byteLength-=b.byteLength;a.nalCount-=b.nalCount;a[0][0].dts=b.dts;a[0][0].pts=b.pts;a[0][0].duration+=b.duration}return a};this.groupNalsIntoFrames_=function(a){var b,c,d=[],e=[];d.byteLength=0;for(b=0;b<a.length;b++){c=a[b];if(c.nalUnitType==="access_unit_delimiter_rbsp"){if(d.length){d.duration=c.dts-d.dts;e.push(d)}d=[c];d.byteLength=c.data.byteLength;d.pts=c.pts;d.dts=c.dts}else{if(c.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){d.keyFrame=true}d.duration=c.dts-d.dts;d.byteLength+=c.data.byteLength;d.push(c)}}if(e.length&&(!d.duration||d.duration<=0)){d.duration=e[e.length-1].duration}e.push(d);return e};this.groupFramesIntoGops_=function(a){var b,c,d=[],e=[];d.byteLength=0;d.nalCount=0;d.duration=0;d.pts=a[0].pts;d.dts=a[0].dts;e.byteLength=0;e.nalCount=0;e.duration=0;e.pts=a[0].pts;e.dts=a[0].dts;for(b=0;b<a.length;b++){c=a[b];if(c.keyFrame){if(d.length){e.push(d);e.byteLength+=d.byteLength;e.nalCount+=d.nalCount;e.duration+=d.duration}d=[c];d.nalCount=c.length;d.byteLength=c.byteLength;d.pts=c.pts;d.dts=c.dts;d.duration=c.duration}else{d.duration+=c.duration;d.nalCount+=c.length;d.byteLength+=c.byteLength;d.push(c)}}if(e.length&&d.duration<=0){d.duration=e[e.length-1].duration}e.byteLength+=d.byteLength;e.nalCount+=d.nalCount;e.duration+=d.duration;e.push(d);return e};this.generateSampleTable_=function(a,b){var c,d,e,f,g,h=b||0,i=[];for(c=0;c<a.length;c++){f=a[c];for(d=0;d<f.length;d++){g=f[d];e=s();e.dataOffset=h;e.compositionTimeOffset=g.pts-g.dts;e.duration=g.duration;e.size=4*g.length;e.size+=g.byteLength;if(g.keyFrame){e.flags.dependsOn=2}h+=e.size;i.push(e)}}return i};this.concatenateNalData_=function(a){var b,c,d,e,f,g,h=0,i=a.byteLength,j=a.nalCount,k=i+4*j,l=new Uint8Array(k),m=new DataView(l.buffer);for(b=0;b<a.length;b++){e=a[b];for(c=0;c<e.length;c++){f=e[c];for(d=0;d<f.length;d++){g=f[d];m.setUint32(h,g.data.byteLength);h+=4;l.set(g.data,h);h+=g.data.byteLength}}}return l};this.alignGopsAtStart_=function(a){var b,c,d,e,g,h,i,j;g=a.byteLength;h=a.nalCount;i=a.duration;b=c=0;while(b<f.length&&c<a.length){d=f[b];e=a[c];if(d.pts===e.pts){break}if(e.pts>d.pts){b++;continue}c++;g-=e.byteLength;h-=e.nalCount;i-=e.duration}if(c===0){return a}if(c===a.length){return null}j=a.slice(c);j.byteLength=g;j.duration=i;j.nalCount=h;j.pts=j[0].pts;j.dts=j[0].dts;return j};this.alignGopsAtEnd_=function(a){var b,c,d,e,g,h;b=f.length-1;c=a.length-1;g=null;h=false;while(b>=0&&c>=0){d=f[b];e=a[c];if(d.pts===e.pts){h=true;break}if(d.pts>e.pts){b--;continue}if(b===f.length-1){g=c}c--}if(!h&&g===null){return null}var i;if(h){i=c}else{i=g}if(i===0){return a}var j=a.slice(i);var k=j.reduce(function(a,b){a.byteLength+=b.byteLength;a.duration+=b.duration;a.nalCount+=b.nalCount;return a},{byteLength:0,duration:0,nalCount:0});j.byteLength=k.byteLength;j.duration=k.duration;j.nalCount=k.nalCount;j.pts=j[0].pts;j.dts=j[0].dts;return j};this.alignGopsWith=function(a){f=a}};o.prototype=new d;u=function(a,b){if(typeof b.pts==="number"){if(a.timelineStartInfo.pts===undefined){a.timelineStartInfo.pts=b.pts}if(a.minSegmentPts===undefined){a.minSegmentPts=b.pts}else{a.minSegmentPts=Math.min(a.minSegmentPts,b.pts)}if(a.maxSegmentPts===undefined){a.maxSegmentPts=b.pts}else{a.maxSegmentPts=Math.max(a.maxSegmentPts,b.pts)}}if(typeof b.dts==="number"){if(a.timelineStartInfo.dts===undefined){a.timelineStartInfo.dts=b.dts}if(a.minSegmentDts===undefined){a.minSegmentDts=b.dts}else{a.minSegmentDts=Math.min(a.minSegmentDts,b.dts)}if(a.maxSegmentDts===undefined){a.maxSegmentDts=b.dts}else{a.maxSegmentDts=Math.max(a.maxSegmentDts,b.dts)}}};v=function(a){delete a.minSegmentDts;delete a.maxSegmentDts;delete a.minSegmentPts;delete a.maxSegmentPts};w=function(a){var b,c,d=a.minSegmentDts-a.timelineStartInfo.dts;b=a.timelineStartInfo.baseMediaDecodeTime;b+=d;b=Math.max(0,b);if(a.type==="audio"){c=a.samplerate/n;b*=c;b=Math.floor(b)}return b};r=function(a,b){this.numberOfTracks=0;this.metadataStream=b;if(typeof a.remux!=="undefined"){this.remuxTracks=!!a.remux}else{this.remuxTracks=true}this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;r.prototype.init.call(this);this.push=function(a){if(a.text){return this.pendingCaptions.push(a)}if(a.frames){return this.pendingMetadata.push(a)}this.pendingTracks.push(a.track);this.pendingBoxes.push(a.boxes);this.pendingBytes+=a.boxes.byteLength;if(a.track.type==="video"){this.videoTrack=a.track}if(a.track.type==="audio"){this.audioTrack=a.track}}};r.prototype=new d;r.prototype.flush=function(a){var b=0,c={captions:[],captionStreams:{},metadata:[],info:{}},d,f,g,h=0,i;if(this.pendingTracks.length<this.numberOfTracks){if(a!=="VideoSegmentStream"&&a!=="AudioSegmentStream"){return}else if(this.remuxTracks){return}else if(this.pendingTracks.length===0){this.emittedTracks++;if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}return}}if(this.videoTrack){h=this.videoTrack.timelineStartInfo.pts;m.forEach(function(a){c.info[a]=this.videoTrack[a]},this)}else if(this.audioTrack){h=this.audioTrack.timelineStartInfo.pts;l.forEach(function(a){c.info[a]=this.audioTrack[a]},this)}if(this.pendingTracks.length===1){c.type=this.pendingTracks[0].type}else{c.type="combined"}this.emittedTracks+=this.pendingTracks.length;g=e.initSegment(this.pendingTracks);c.initSegment=new Uint8Array(g.byteLength);c.initSegment.set(g);c.data=new Uint8Array(this.pendingBytes);for(i=0;i<this.pendingBoxes.length;i++){c.data.set(this.pendingBoxes[i],b);b+=this.pendingBoxes[i].byteLength}for(i=0;i<this.pendingCaptions.length;i++){d=this.pendingCaptions[i];d.startTime=d.startPts-h;d.startTime/=9e4;d.endTime=d.endPts-h;d.endTime/=9e4;c.captionStreams[d.stream]=true;c.captions.push(d)}for(i=0;i<this.pendingMetadata.length;i++){f=this.pendingMetadata[i];f.cueTime=f.pts-h;f.cueTime/=9e4;c.metadata.push(f)}c.metadata.dispatchType=this.metadataStream.dispatchType;this.pendingTracks.length=0;this.videoTrack=null;this.pendingBoxes.length=0;this.pendingCaptions.length=0;this.pendingBytes=0;this.pendingMetadata.length=0;this.trigger("data",c);if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}};q=function(a){var b=this,c=true,d,e;q.prototype.init.call(this);a=a||{};this.baseMediaDecodeTime=a.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var c={};this.transmuxPipeline_=c;c.type="aac";c.metadataStream=new f.MetadataStream;c.aacStream=new i;c.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio");c.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata");c.adtsStream=new g;c.coalesceStream=new r(a,c.metadataStream);c.headOfPipeline=c.aacStream;c.aacStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream);c.aacStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream);c.metadataStream.on("timestamp",function(a){c.aacStream.setTimestamp(a.timeStamp)});c.aacStream.on("data",function(a){if(a.type==="timed-metadata"&&!c.audioSegmentStream){e=e||{timelineStartInfo:{baseMediaDecodeTime:b.baseMediaDecodeTime},codec:"adts",type:"audio"};c.coalesceStream.numberOfTracks++;c.audioSegmentStream=new p(e);c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)}});c.coalesceStream.on("data",this.trigger.bind(this,"data"));c.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setupTsPipeline=function(){var c={};this.transmuxPipeline_=c;c.type="ts";c.metadataStream=new f.MetadataStream;c.packetStream=new f.TransportPacketStream;c.parseStream=new f.TransportParseStream;c.elementaryStream=new f.ElementaryStream;c.videoTimestampRolloverStream=new f.TimestampRolloverStream("video");c.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio");c.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata");c.adtsStream=new g;c.h264Stream=new h;c.captionStream=new f.CaptionStream;c.coalesceStream=new r(a,c.metadataStream);c.headOfPipeline=c.packetStream;c.packetStream.pipe(c.parseStream).pipe(c.elementaryStream);c.elementaryStream.pipe(c.videoTimestampRolloverStream).pipe(c.h264Stream);c.elementaryStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream);c.elementaryStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream);c.h264Stream.pipe(c.captionStream).pipe(c.coalesceStream);c.elementaryStream.on("data",function(f){var g;if(f.type==="metadata"){g=f.tracks.length;while(g--){if(!d&&f.tracks[g].type==="video"){d=f.tracks[g];d.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime}else if(!e&&f.tracks[g].type==="audio"){e=f.tracks[g];e.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime}}if(d&&!c.videoSegmentStream){c.coalesceStream.numberOfTracks++;c.videoSegmentStream=new o(d,a);c.videoSegmentStream.on("timelineStartInfo",function(a){if(e){e.timelineStartInfo=a;c.audioSegmentStream.setEarliestDts(a.dts)}});c.videoSegmentStream.on("processedGopsInfo",b.trigger.bind(b,"gopInfo"));c.videoSegmentStream.on("baseMediaDecodeTime",function(a){if(e){c.audioSegmentStream.setVideoBaseMediaDecodeTime(a)}});c.h264Stream.pipe(c.videoSegmentStream).pipe(c.coalesceStream)}if(e&&!c.audioSegmentStream){c.coalesceStream.numberOfTracks++;c.audioSegmentStream=new p(e);c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)}}});c.coalesceStream.on("data",this.trigger.bind(this,"data"));c.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setBaseMediaDecodeTime=function(a){var b=this.transmuxPipeline_;this.baseMediaDecodeTime=a;if(e){e.timelineStartInfo.dts=undefined;e.timelineStartInfo.pts=undefined;v(e);e.timelineStartInfo.baseMediaDecodeTime=a;if(b.audioTimestampRolloverStream){b.audioTimestampRolloverStream.discontinuity()}}if(d){if(b.videoSegmentStream){b.videoSegmentStream.gopCache_=[];b.videoTimestampRolloverStream.discontinuity()}d.timelineStartInfo.dts=undefined;d.timelineStartInfo.pts=undefined;v(d);b.captionStream.reset();d.timelineStartInfo.baseMediaDecodeTime=a}if(b.timedMetadataTimestampRolloverStream){b.timedMetadataTimestampRolloverStream.discontinuity()}};this.setAudioAppendStart=function(a){if(e){this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(a)}};this.alignGopsWith=function(a){if(d&&this.transmuxPipeline_.videoSegmentStream){this.transmuxPipeline_.videoSegmentStream.alignGopsWith(a)}};this.push=function(a){if(c){var b=t(a);if(b&&this.transmuxPipeline_.type!=="aac"){this.setupAacPipeline()}else if(!b&&this.transmuxPipeline_.type!=="ts"){this.setupTsPipeline()}c=false}this.transmuxPipeline_.headOfPipeline.push(a)};this.flush=function(){c=true;this.transmuxPipeline_.headOfPipeline.flush()};this.resetCaptions=function(){if(this.transmuxPipeline_.captionStream){this.transmuxPipeline_.captionStream.reset()}}};q.prototype=new d;b.exports={Transmuxer:q,VideoSegmentStream:o,AudioSegmentStream:p,AUDIO_PROPERTIES:l,VIDEO_PROPERTIES:m}},{"../aac":35,"../codecs/adts.js":37,"../codecs/h264":38,"../data/silence":39,"../m2ts/m2ts.js":47,"../utils/clock":57,"../utils/stream.js":59,"./mp4-generator.js":53}],56:[function(a,b,c){"use strict";var d=a("../m2ts/stream-types.js");var e=a("../m2ts/timestamp-rollover-stream.js").handleRollover;var f={};f.ts=a("../m2ts/probe.js");f.aac=a("../aac/probe.js");var g=9e4,h=188,i=71;var j=function(a){if(a[0]==="I".charCodeAt(0)&&a[1]==="D".charCodeAt(0)&&a[2]==="3".charCodeAt(0)){return true}return false};var k=function(a,b){var c=0,d=h,e,g;while(d<a.byteLength){if(a[c]===i&&a[d]===i){e=a.subarray(c,d);g=f.ts.parseType(e,b.pid);switch(g){case"pat":if(!b.pid){b.pid=f.ts.parsePat(e)}break;case"pmt":if(!b.table){b.table=f.ts.parsePmt(e)}break;default:break}if(b.pid&&b.table){return}c+=h;d+=h;continue}c++;d++}};var l=function(a,b,c){var d=0,e=h,g,j,k,l,m;var n=false;while(e<a.byteLength){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="audio"&&l){m=f.ts.parsePesTime(g);if(m){m.type="audio";c.audio.push(m);n=true}}break;default:break}if(n){break}d+=h;e+=h;continue}d++;e++}e=a.byteLength;d=e-h;n=false;while(d>=0){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="audio"&&l){m=f.ts.parsePesTime(g);if(m){m.type="audio";c.audio.push(m);n=true}}break;default:break}if(n){break}d-=h;e-=h;continue}d--;e--}};var m=function(a,b,c){var d=0,e=h,g,j,k,l,m,n,o,p;var q=false;var r={data:[],size:0};while(e<a.byteLength){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="video"){if(l&&!q){m=f.ts.parsePesTime(g);if(m){m.type="video";c.video.push(m);q=true}}if(!c.firstKeyFrame){if(l){if(r.size!==0){n=new Uint8Array(r.size);o=0;while(r.data.length){p=r.data.shift();n.set(p,o);o+=p.byteLength}if(f.ts.videoPacketContainsKeyFrame(n)){c.firstKeyFrame=f.ts.parsePesTime(n);c.firstKeyFrame.type="video"}r.size=0}}r.data.push(g);r.size+=g.byteLength}}break;default:break}if(q&&c.firstKeyFrame){break}d+=h;e+=h;continue}d++;e++}e=a.byteLength;d=e-h;q=false;while(d>=0){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="video"&&l){m=f.ts.parsePesTime(g);if(m){m.type="video";c.video.push(m);q=true}}break;default:break}if(q){break}d-=h;e-=h;continue}d--;e--}};var n=function(a,b){if(a.audio&&a.audio.length){var c=b;if(typeof c==="undefined"){c=a.audio[0].dts}a.audio.forEach(function(a){a.dts=e(a.dts,c);a.pts=e(a.pts,c);a.dtsTime=a.dts/g;a.ptsTime=a.pts/g})}if(a.video&&a.video.length){var d=b;if(typeof d==="undefined"){d=a.video[0].dts}a.video.forEach(function(a){a.dts=e(a.dts,d);a.pts=e(a.pts,d);a.dtsTime=a.dts/g;a.ptsTime=a.pts/g});if(a.firstKeyFrame){var f=a.firstKeyFrame;f.dts=e(f.dts,d);f.pts=e(f.pts,d);f.dtsTime=f.dts/g;f.ptsTime=f.dts/g}}};var o=function(a){var b=false,c=0,d=null,e=null,h=0,i=0,j;while(a.length-i>=3){var k=f.aac.parseType(a,i);switch(k){case"timed-metadata":if(a.length-i<10){b=true;break}h=f.aac.parseId3TagSize(a,i);if(h>a.length){b=true;break}if(e===null){j=a.subarray(i,i+h);e=f.aac.parseAacTimestamp(j)}i+=h;break;case"audio":if(a.length-i<7){b=true;break}h=f.aac.parseAdtsSize(a,i);if(h>a.length){b=true;break}if(d===null){j=a.subarray(i,i+h);d=f.aac.parseSampleRate(j)}c++;i+=h;break;default:i++;break}if(b){return null}}if(d===null||e===null){return null}var l=g/d;var m={audio:[{type:"audio",dts:e,pts:e},{type:"audio",dts:e+c*1024*l,pts:e+c*1024*l}]};return m};var p=function(a){var b={pid:null,table:null};var c={};k(a,b);for(var e in b.table){if(b.table.hasOwnProperty(e)){var f=b.table[e];switch(f){case d.H264_STREAM_TYPE:c.video=[];m(a,b,c);if(c.video.length===0){delete c.video}break;case d.ADTS_STREAM_TYPE:c.audio=[];l(a,b,c);if(c.audio.length===0){delete c.audio}break;default:break}}}return c};var q=function(a,b){var c=j(a);var d;if(c){d=o(a)}else{d=p(a)}if(!d||!d.audio&&!d.video){return null}n(d,b);return d};b.exports={inspect:q}},{"../aac/probe.js":36,"../m2ts/probe.js":49,"../m2ts/stream-types.js":50,"../m2ts/timestamp-rollover-stream.js":51}],57:[function(a,b,c){var d=9e4,e,f,g,h,i,j;e=function(a){return a*d};f=function(a,b){return a*b};g=function(a){return a/d};h=function(a,b){return a/b};i=function(a,b){return e(h(a,b))};j=function(a,b){return f(g(a),b)};b.exports={secondsToVideoTs:e,secondsToAudioTs:f,videoTsToSeconds:g,audioTsToSeconds:h,audioTsToVideoTs:i,videoTsToAudioTs:j}},{}],58:[function(a,b,c){"use strict";var d;d=function(a){var b=a.byteLength,c=0,d=0;this.length=function(){return 8*b};this.bitsAvailable=function(){return 8*b+d};this.loadWord=function(){var e=a.byteLength-b,f=new Uint8Array(4),g=Math.min(4,b);if(g===0){throw new Error("no bytes available")}f.set(a.subarray(e,e+g));c=new DataView(f.buffer).getUint32(0);d=g*8;b-=g};this.skipBits=function(a){var e;if(d>a){c<<=a;d-=a}else{a-=d;e=Math.floor(a/8);a-=e*8;b-=e;this.loadWord();c<<=a;d-=a}};this.readBits=function(a){var e=Math.min(d,a),f=c>>>32-e;d-=e;if(d>0){c<<=e}else if(b>0){this.loadWord()}e=a-e;if(e>0){return f<<e|this.readBits(e)}return f};this.skipLeadingZeros=function(){var a;for(a=0;a<d;++a){if((c&2147483648>>>a)!==0){c<<=a;d-=a;return a}}this.loadWord();return a+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var a=this.skipLeadingZeros();return this.readBits(a+1)-1};this.readExpGolomb=function(){var a=this.readUnsignedExpGolomb();if(1&a){return 1+a>>>1}return-1*(a>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};b.exports=d},{}],59:[function(a,b,c){"use strict";var d=function(){this.init=function(){var a={};this.on=function(b,c){if(!a[b]){a[b]=[]}a[b]=a[b].concat(c)};this.off=function(b,c){var d;if(!a[b]){return false}d=a[b].indexOf(c);a[b]=a[b].slice();a[b].splice(d,1);return d>-1};this.trigger=function(b){var c,d,e,f;c=a[b];if(!c){return}if(arguments.length===2){e=c.length;for(d=0;d<e;++d){c[d].call(this,arguments[1])}}else{f=[];d=arguments.length;for(d=1;d<arguments.length;++d){f.push(arguments[d])}e=c.length;for(d=0;d<e;++d){c[d].apply(this,f)}}};this.dispose=function(){a={}}}};d.prototype.pipe=function(a){this.on("data",function(b){a.push(b)});this.on("done",function(b){a.flush(b)});return a};d.prototype.push=function(a){this.trigger("data",a)};d.prototype.flush=function(a){this.trigger("done",a)};b.exports=d},{}],60:[function(a,b,c){"use strict";var d;b.exports=function e(a){var b=d[a.byteLength%16||0],c=new Uint8Array(a.byteLength+b.length);c.set(a);c.set(b,a.byteLength);return c};d=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},{}],61:[function(a,b,c){"use strict";c.pad=a("./pad.js");c.unpad=a("./unpad.js")},{"./pad.js":60,"./unpad.js":62}],62:[function(a,b,c){"use strict";b.exports=function d(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}},{}],63:[function(a,b,d){(function(a){var e={buildAbsoluteURL:function(a,b){b=b.trim();if(/^[a-z]+:/i.test(b)){return b}var c=null;var d=null;var f=/^([^#]*)(.*)$/.exec(b);if(f){d=f[2];b=f[1]}var g=/^([^\?]*)(.*)$/.exec(b);if(g){c=g[2];b=g[1]}var h=/^([^#]*)(.*)$/.exec(a);if(h){a=h[1]}var i=/^([^\?]*)(.*)$/.exec(a);if(i){a=i[1]}var j=/^(([a-z]+:)?\/\/[^:\/]+(:[0-9]+)?)?(\/?.*)$/i.exec(a);if(!j){throw new Error("Error trying to parse base URL.")}var k=j[2]||"";var l=j[1]||"";var m=j[4];if(m.indexOf("/")!==0&&l!==""){m="/"+m}var n=null;if(/^\/\//.test(b)){n=k+"//"+e.buildAbsolutePath("",b.substring(2))}else if(/^\//.test(b)){n=l+"/"+e.buildAbsolutePath("",b.substring(1))}else{n=e.buildAbsolutePath(l+m,b)}if(c){n+=c}if(d){n+=d}return n},buildAbsolutePath:function(a,b){var c=b;var d,e="",f=a.replace(/[^\/]*$/,c.replace(/(\/|^)(?:\.?\/+)+/g,"$1"));for(var g,h=0;g=f.indexOf("/../",h),g>-1;h=g+d){d=/^\/(?:\.\.\/)*/.exec(f.slice(g))[0].length;e=(e+f.substring(h,g)).replace(new RegExp("(?:\\/+[^\\/]*){0,"+(d-1)/3+"}$"),"/")}return e+f.substr(h)}};if(typeof d==="object"&&typeof b==="object")b.exports=e;else if(typeof c==="function"&&c.amd)c([],function(){return e});else if(typeof d==="object")d["URLToolkit"]=e;else a["URLToolkit"]=e})(this)},{}],64:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=b("global/window");var h=f(g);var i=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var j=f(i);var k=function n(a){Object.defineProperties(a.frame,{id:{get:function b(){j["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return a.value.key}},value:{get:function c(){j["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return a.value.data}},privateData:{get:function d(){j["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return a.value.data}}})};var l=function o(a){var b=undefined;if(isNaN(a)||Math.abs(a)===Infinity){b=Number.MAX_VALUE}else{b=a}return b};var m=function p(a,b,c){var d=h["default"].WebKitDataCue||h["default"].VTTCue;if(b){b.forEach(function(a){var b=a.stream;this.inbandTextTracks_[b].addCue(new d(a.startTime+this.timestampOffset,a.endTime+this.timestampOffset,a.text))},a)}if(c){(function(){var b=l(a.mediaSource_.duration);c.forEach(function(a){var b=a.cueTime+this.timestampOffset;a.frames.forEach(function(a){var c=new d(b,b,a.value||a.url||a.data||"");c.frame=a;c.value=a;k(c);this.metadataTrack_.addCue(c)},this)},a);if(a.metadataTrack_&&a.metadataTrack_.cues&&a.metadataTrack_.cues.length){(function(){var c=a.metadataTrack_.cues;var d=[];for(var e=0;e<c.length;e++){if(c[e]){d.push(c[e])}}var f=d.reduce(function(a,b){var c=a[b.startTime]||[];c.push(b);a[b.startTime]=c;return a},{});var g=Object.keys(f).sort(function(a,b){return Number(a)-Number(b)});g.forEach(function(a,c){ var d=f[a];var e=Number(g[c+1])||b;d.forEach(function(a){a.endTime=e})})})()}})()}};d["default"]={addTextTrackData:m,durationOfVideo:l};c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":29}],65:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function h(a){return/mp4a\.\d+.\d+/i.test(a)};var e=function i(a){return/avc1\.[\da-f]+/i.test(a)};var f=function j(a){var b={type:"",parameters:{}};var c=a.trim().split(";");b.type=c.shift().trim();c.forEach(function(a){var c=a.trim().split("=");if(c.length>1){var d=c[0].replace(/"/g,"").trim();var e=c[1].replace(/"/g,"").trim();b.parameters[d]=e}});return b};var g=function k(a){return a.map(function(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a,b,c){var d=("00"+Number(b).toString(16)).slice(-2);var e=("00"+Number(c).toString(16)).slice(-2);return"avc1."+d+"00"+e})})};c["default"]={isAudioCodec:d,parseContentType:f,isVideoCodec:e,translateLegacyCodecs:g};b.exports=c["default"]},{}],66:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function e(a,b,c){var d=b.player_;if(c.captions&&c.captions.length){if(!a.inbandTextTracks_){a.inbandTextTracks_={}}for(var e in c.captionStreams){if(!a.inbandTextTracks_[e]){d.tech_.trigger({type:"usage",name:"hls-608"});var f=d.textTracks().getTrackById(e);if(f){a.inbandTextTracks_[e]=f}else{a.inbandTextTracks_[e]=d.addRemoteTextTrack({kind:"captions",id:e,label:e},false).track}}}}if(c.metadata&&c.metadata.length&&!a.metadataTrack_){a.metadataTrack_=d.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;a.metadataTrack_.inBandMetadataTrackDispatchType=c.metadata.dispatchType}};c["default"]=d;b.exports=c["default"]},{}],67:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:1024*32};c["default"]=d;b.exports=c["default"]},{}],68:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function w(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/document");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("./flash-source-buffer");var p=h(o);var q=b("./flash-constants");var r=h(q);var s=b("./codec-utils");var t=function(a){j(b,a);function b(){var a=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.sourceBuffers=[];this.readyState="closed";this.on(["sourceopen","webkitsourceopen"],function(b){a.swfObj=l["default"].getElementById(b.swfId);a.player_=(0,n["default"])(a.swfObj.parentNode);a.tech_=a.swfObj.tech;a.readyState="open";a.tech_.on("seeking",function(){var b=a.sourceBuffers.length;while(b--){a.sourceBuffers[b].abort()}});if(a.swfObj){a.swfObj.vjs_load()}})}f(b,[{key:"addSeekableRange_",value:function c(){}},{key:"addSourceBuffer",value:function d(a){var b=(0,s.parseContentType)(a);var c=undefined;if(b.type==="video/mp2t"||b.type==="audio/mp2t"){c=new p["default"](this)}else{throw new Error("NotSupportedError (Video.js)")}this.sourceBuffers.push(c);return c}},{key:"endOfStream",value:function e(a){if(a==="network"){this.tech_.error(2)}else if(a==="decode"){this.tech_.error(3)}if(this.readyState!=="ended"){this.readyState="ended";this.swfObj.vjs_endOfStream()}}}]);return b}(n["default"].EventTarget);d["default"]=t;try{Object.defineProperty(t.prototype,"duration",{get:function x(){if(!this.swfObj){return NaN}return this.swfObj.vjs_getProperty("duration")},set:function y(a){var b=undefined;var c=this.swfObj.vjs_getProperty("duration");this.swfObj.vjs_setProperty("duration",a);if(a<c){for(b=0;b<this.sourceBuffers.length;b++){this.sourceBuffers[b].remove(a,c)}}return a}})}catch(u){t.prototype.duration=NaN}for(var v in r["default"]){t[v]=r["default"][v]}c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./codec-utils":65,"./flash-constants":67,"./flash-source-buffer":69,"global/document":28}],69:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function F(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("mux.js/lib/flv");var p=h(o);var q=b("./remove-cues-from-track");var r=h(q);var s=b("./create-text-tracks-if-necessary");var t=h(s);var u=b("./add-text-track-data");var v=b("./flash-transmuxer-worker");var w=h(v);var x=b("webworkify");var y=h(x);var z=b("./flash-constants");var A=h(z);var B=function G(a){l["default"].setTimeout(a,A["default"].TIME_BETWEEN_CHUNKS)};var C=function H(){return Math.random().toString(36).slice(2,8)};var D=function I(a,b){if(typeof b!=="number"||b<0){b=0}var c=Math.pow(10,b);return Math.round(a*c)/c};var E=function(a){j(b,a);function b(a){var c=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);var d=undefined;this.chunkSize_=A["default"].BYTES_PER_CHUNK;this.buffer_=[];this.bufferSize_=0;this.basePtsOffset_=NaN;this.mediaSource_=a;this.audioBufferEnd_=NaN;this.videoBufferEnd_=NaN;this.updating=false;this.timestampOffset_=0;d=l["default"].btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(p["default"].getFlvHeader())));var e=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+e+C();this.flashEncodedDataName_="vjs_flashEncodedData_"+e+C();l["default"][this.flashEncodedHeaderName_]=function(){delete l["default"][c.flashEncodedHeaderName_];return d};this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_);this.transmuxer_=(0,y["default"])(w["default"]);this.transmuxer_.postMessage({action:"init",options:{}});this.transmuxer_.onmessage=function(a){if(a.data.action==="data"){c.receiveBuffer_(a.data.segment)}};this.one("updateend",function(){c.mediaSource_.tech_.trigger("loadedmetadata")});Object.defineProperty(this,"timestampOffset",{get:function h(){return this.timestampOffset_},set:function j(a){if(typeof a==="number"&&a>=0){this.timestampOffset_=a;this.mediaSource_.swfObj.vjs_discontinuity();this.basePtsOffset_=NaN;this.audioBufferEnd_=NaN;this.videoBufferEnd_=NaN;this.transmuxer_.postMessage({action:"reset"})}}});Object.defineProperty(this,"buffered",{get:function k(){if(!this.mediaSource_||!this.mediaSource_.swfObj||!("vjs_getProperty"in this.mediaSource_.swfObj)){return n["default"].createTimeRange()}var a=this.mediaSource_.swfObj.vjs_getProperty("buffered");if(a&&a.length){a[0][0]=D(a[0][0],3);a[0][1]=D(a[0][1],3)}return n["default"].createTimeRanges(a)}});this.mediaSource_.player_.on("seeked",function(){(0,r["default"])(0,Infinity,c.metadataTrack_);if(c.inbandTextTracks_){for(var a in c.inbandTextTracks_){(0,r["default"])(0,Infinity,c.inbandTextTracks_[a])}}});var f=this.onHlsReset_.bind(this);this.mediaSource_.player_.tech_.on("hls-reset",f);this.mediaSource_.player_.tech_.hls.on("dispose",function(){c.transmuxer_.terminate();c.mediaSource_.player_.tech_.off("hls-reset",f)})}f(b,[{key:"appendBuffer",value:function c(a){var b=undefined;if(this.updating){b=new Error("SourceBuffer.append() cannot be called "+"while an update is in progress");b.name="InvalidStateError";b.code=11;throw b}this.updating=true;this.mediaSource_.readyState="open";this.trigger({type:"update"});this.transmuxer_.postMessage({action:"push",data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function d(){this.buffer_=[];this.bufferSize_=0;this.mediaSource_.swfObj.vjs_abort();if(this.updating){this.updating=false;this.trigger({type:"updateend"})}}},{key:"remove",value:function e(a,b){(0,r["default"])(a,b,this.metadataTrack_);if(this.inbandTextTracks_){for(var c in this.inbandTextTracks_){(0,r["default"])(a,b,this.inbandTextTracks_[c])}}this.trigger({type:"update"});this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function h(a){var b=this;(0,t["default"])(this,this.mediaSource_,a);(0,u.addTextTrackData)(this,a.captions,a.metadata);B(function(){var c=b.convertTagsToData_(a);if(b.buffer_.length===0){B(b.processBuffer_.bind(b))}if(c){b.buffer_.push(c);b.bufferSize_+=c.byteLength}})}},{key:"processBuffer_",value:function k(){var a=this;var b=A["default"].BYTES_PER_CHUNK;if(!this.buffer_.length){if(this.updating!==false){this.updating=false;this.trigger({type:"updateend"})}return}var c=this.buffer_[0].subarray(0,b);if(c.byteLength<b||this.buffer_[0].byteLength===b){this.buffer_.shift()}else{this.buffer_[0]=this.buffer_[0].subarray(b)}this.bufferSize_-=c.byteLength;var d=[];var e=c.byteLength;for(var f=0;f<e;f++){d.push(String.fromCharCode(c[f]))}var g=l["default"].btoa(d.join(""));l["default"][this.flashEncodedDataName_]=function(){B(a.processBuffer_.bind(a));delete l["default"][a.flashEncodedDataName_];return g};this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}},{key:"convertTagsToData_",value:function m(a){var b=0;var c=this.mediaSource_.tech_;var d=0;var e=undefined;var f=a.tags.videoTags;var g=a.tags.audioTags;if(isNaN(this.basePtsOffset_)&&(f.length||g.length)){var h=f[0]||{pts:Infinity};var i=g[0]||{pts:Infinity};this.basePtsOffset_=Math.min(i.pts,h.pts)}if(c.seeking()){this.videoBufferEnd_=NaN;this.audioBufferEnd_=NaN}if(isNaN(this.videoBufferEnd_)){if(c.buffered().length){d=c.buffered().end(0)-this.timestampOffset}if(c.seeking()){d=Math.max(d,c.currentTime()-this.timestampOffset)}d*=1e3;d+=this.basePtsOffset_}else{d=this.videoBufferEnd_+.1}var j=f.length;if(j&&f[j-1].pts>=d){while(--j){var k=f[j];if(k.pts>d){continue}if(k.keyFrame||k.metaDataTag){break}}while(j){var l=f[j-1];if(!l.metaDataTag){break}j--}}var m=f.slice(j);var n=undefined;if(isNaN(this.audioBufferEnd_)){n=d}else{n=this.audioBufferEnd_+.1}if(m.length){n=Math.min(n,m[0].pts)}j=0;while(j<g.length){if(g[j].pts>=n){break}j++}var o=g.slice(j);if(o.length){this.audioBufferEnd_=o[o.length-1].pts}if(m.length){this.videoBufferEnd_=m[m.length-1].pts}var p=this.getOrderedTags_(m,o);if(p.length===0){return}if(p[0].pts<d&&c.seeking()){var q=1/30;var r=c.currentTime();var s=(d-p[0].pts)/1e3;var t=r-s;if(t<q){t=0}try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(t)}catch(u){}}for(var v=0;v<p.length;v++){b+=p[v].bytes.byteLength}e=new Uint8Array(b);for(var v=0,w=0;v<p.length;v++){e.set(p[v].bytes,w);w+=p[v].bytes.byteLength}return e}},{key:"getOrderedTags_",value:function o(a,b){var c=undefined;var d=[];while(a.length||b.length){if(!a.length){c=b.shift()}else if(!b.length){c=a.shift()}else if(b[0].dts<a[0].dts){c=b.shift()}else{c=a.shift()}d.push(c)}return d}},{key:"onHlsReset_",value:function q(){this.transmuxer_.postMessage({action:"resetCaptions"})}}]);return b}(n["default"].EventTarget);d["default"]=E;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":64,"./create-text-tracks-if-necessary":66,"./flash-constants":67,"./flash-transmuxer-worker":70,"./remove-cues-from-track":72,"global/window":29,"mux.js/lib/flv":43,webworkify:76}],70:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("global/window");var h=e(g);var i=a("mux.js/lib/flv");var j=e(i);var k=function n(a){a.on("data",function(a){h["default"].postMessage({action:"data",segment:a})});a.on("done",function(a){h["default"].postMessage({action:"done"})})};var l=function(){function a(b){f(this,a);this.options=b||{};this.init()}d(a,[{key:"init",value:function b(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=new j["default"].Transmuxer(this.options);k(this.transmuxer)}},{key:"push",value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:"reset",value:function e(){this.init()}},{key:"flush",value:function g(){this.transmuxer.flush()}},{key:"resetCaptions",value:function h(){this.transmuxer.resetCaptions()}}]);return a}();var m=function o(a){a.onmessage=function(a){if(a.data.action==="init"&&a.data.options){this.messageHandlers=new l(a.data.options);return}if(!this.messageHandlers){this.messageHandlers=new l}if(a.data&&a.data.action&&a.data.action!=="init"){if(this.messageHandlers[a.data.action]){this.messageHandlers[a.data.action](a.data)}}}};c["default"]=function(a){return new m(a)};b.exports=c["default"]},{"global/window":29,"mux.js/lib/flv":43}],71:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function v(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=b("global/document");var n=h(m);var o=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var p=h(o);var q=b("./virtual-source-buffer");var r=h(q);var s=b("./add-text-track-data");var t=b("./codec-utils");var u=function(a){j(b,a);function b(){var a=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);var c=undefined;this.nativeMediaSource_=new l["default"].MediaSource;for(c in this.nativeMediaSource_){if(!(c in b.prototype)&&typeof this.nativeMediaSource_[c]==="function"){this[c]=this.nativeMediaSource_[c].bind(this.nativeMediaSource_)}}this.duration_=NaN;Object.defineProperty(this,"duration",{get:function d(){if(this.duration_===Infinity){return this.duration_}return this.nativeMediaSource_.duration},set:function e(a){this.duration_=a;if(a!==Infinity){this.nativeMediaSource_.duration=a;return}}});Object.defineProperty(this,"seekable",{get:function f(){if(this.duration_===Infinity){return p["default"].createTimeRanges([[0,this.nativeMediaSource_.duration]])}return this.nativeMediaSource_.seekable}});Object.defineProperty(this,"readyState",{get:function h(){return this.nativeMediaSource_.readyState}});Object.defineProperty(this,"activeSourceBuffers",{get:function j(){return this.activeSourceBuffers_}});this.sourceBuffers=[];this.activeSourceBuffers_=[];this.updateActiveSourceBuffers_=function(){a.activeSourceBuffers_.length=0;if(a.sourceBuffers.length===1){var b=a.sourceBuffers[0];b.appendAudioInitSegment_=true;b.audioDisabled_=!b.audioCodec_;a.activeSourceBuffers_.push(b);return}var c=false;var d=true;for(var e=0;e<a.player_.audioTracks().length;e++){var f=a.player_.audioTracks()[e];if(f.enabled&&f.kind!=="main"){c=true;d=false;break}}a.sourceBuffers.forEach(function(b){b.appendAudioInitSegment_=true;if(b.videoCodec_&&b.audioCodec_){b.audioDisabled_=c}else if(b.videoCodec_&&!b.audioCodec_){b.audioDisabled_=true;d=false}else if(!b.videoCodec_&&b.audioCodec_){b.audioDisabled_=d;if(d){return}}a.activeSourceBuffers_.push(b)})};this.onPlayerMediachange_=function(){a.sourceBuffers.forEach(function(a){a.appendAudioInitSegment_=true})};this.onHlsReset_=function(){a.sourceBuffers.forEach(function(a){if(a.transmuxer_){a.transmuxer_.postMessage({action:"resetCaptions"})}})};this.onHlsSegmentTimeMapping_=function(b){a.sourceBuffers.forEach(function(a){return a.timeMapping_=b.mapping})};["sourceopen","sourceclose","sourceended"].forEach(function(a){this.nativeMediaSource_.addEventListener(a,this.trigger.bind(this))},this);this.on("sourceopen",function(b){var c=n["default"].querySelector('[src="'+a.url_+'"]');if(!c){return}a.player_=(0,p["default"])(c.parentNode);a.player_.tech_.on("hls-reset",a.onHlsReset_);a.player_.tech_.on("hls-segment-time-mapping",a.onHlsSegmentTimeMapping_);if(a.player_.audioTracks&&a.player_.audioTracks()){a.player_.audioTracks().on("change",a.updateActiveSourceBuffers_);a.player_.audioTracks().on("addtrack",a.updateActiveSourceBuffers_);a.player_.audioTracks().on("removetrack",a.updateActiveSourceBuffers_)}a.player_.on("mediachange",a.onPlayerMediachange_)});this.on("sourceended",function(b){var c=(0,s.durationOfVideo)(a.duration);for(var d=0;d<a.sourceBuffers.length;d++){var e=a.sourceBuffers[d];var f=e.metadataTrack_&&e.metadataTrack_.cues;if(f&&f.length){f[f.length-1].endTime=c}}});this.on("sourceclose",function(a){this.sourceBuffers.forEach(function(a){if(a.transmuxer_){a.transmuxer_.terminate()}});this.sourceBuffers.length=0;if(!this.player_){return}if(this.player_.audioTracks&&this.player_.audioTracks()){this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_);this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_);this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)}if(this.player_.el_){this.player_.off("mediachange",this.onPlayerMediachange_);this.player_.tech_.off("hls-reset",this.onHlsReset_);this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)}})}f(b,[{key:"addSeekableRange_",value:function c(a,b){var c=undefined;if(this.duration!==Infinity){c=new Error("MediaSource.addSeekableRange() can only be invoked "+"when the duration is Infinity");c.name="InvalidStateError";c.code=11;throw c}if(b>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration)){this.nativeMediaSource_.duration=b}}},{key:"addSourceBuffer",value:function d(a){var b=undefined;var c=(0,t.parseContentType)(a);if(/^(video|audio)\/mp2t$/i.test(c.type)){var d=[];if(c.parameters&&c.parameters.codecs){d=c.parameters.codecs.split(",");d=(0,t.translateLegacyCodecs)(d);d=d.filter(function(a){return(0,t.isAudioCodec)(a)||(0,t.isVideoCodec)(a)})}if(d.length===0){d=["avc1.4d400d","mp4a.40.2"]}b=new r["default"](this,d);if(this.sourceBuffers.length!==0){this.sourceBuffers[0].createRealSourceBuffers_();b.createRealSourceBuffers_();this.sourceBuffers[0].audioDisabled_=true}}else{b=this.nativeMediaSource_.addSourceBuffer(a)}this.sourceBuffers.push(b);return b}}]);return b}(p["default"].EventTarget);d["default"]=u;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":64,"./codec-utils":65,"./virtual-source-buffer":75,"global/document":28,"global/window":29}],72:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function e(a,b,c){var d=undefined;var e=undefined;if(!c){return}if(!c.cues){return}d=c.cues.length;while(d--){e=c.cues[d];if(e.startTime<=b&&e.endTime>=a){c.removeCue(e)}}};c["default"]=d;b.exports=c["default"]},{}],73:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("global/window");var h=e(g);var i=a("mux.js/lib/mp4");var j=e(i);var k=function n(a){a.on("data",function(a){var b=a.initSegment;a.initSegment={data:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength};var c=a.data;a.data=c.buffer;h["default"].postMessage({action:"data",segment:a,byteOffset:c.byteOffset,byteLength:c.byteLength},[a.data])});if(a.captionStream){a.captionStream.on("data",function(a){h["default"].postMessage({action:"caption",data:a})})}a.on("done",function(a){h["default"].postMessage({action:"done"})});a.on("gopInfo",function(a){h["default"].postMessage({action:"gopInfo",gopInfo:a})})};var l=function(){function a(b){f(this,a);this.options=b||{};this.init()}d(a,[{key:"init",value:function b(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=new j["default"].Transmuxer(this.options);k(this.transmuxer)}},{key:"push",value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:"reset",value:function e(){this.init()}},{key:"setTimestampOffset",value:function g(a){var b=a.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(b*9e4))}},{key:"setAudioAppendStart",value:function h(a){this.transmuxer.setAudioAppendStart(Math.ceil(a.appendStart*9e4))}},{key:"flush",value:function i(a){this.transmuxer.flush()}},{key:"resetCaptions",value:function l(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function m(a){this.transmuxer.alignGopsWith(a.gopsToAlignWith.slice())}}]);return a}();var m=function o(a){a.onmessage=function(a){if(a.data.action==="init"&&a.data.options){this.messageHandlers=new l(a.data.options);return}if(!this.messageHandlers){this.messageHandlers=new l}if(a.data&&a.data.action&&a.data.action!=="init"){if(this.messageHandlers[a.data.action]){this.messageHandlers[a.data.action](a.data)}}}};c["default"]=function(a){return new m(a)};b.exports=c["default"]},{"global/window":29,"mux.js/lib/mp4":52}],74:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=b("global/window");var g=e(f);var h=b("./flash-media-source");var i=e(h);var j=b("./html-media-source");var k=e(j);var l=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var m=e(l);var n=0;var o={mode:"auto"};m["default"].mediaSources={};var p=function t(a,b){var c=m["default"].mediaSources[a];if(c){c.trigger({type:"sourceopen",swfId:b})}else{throw new Error("Media Source not found (Video.js)")}};var q=function u(){return!!g["default"].MediaSource&&!!g["default"].MediaSource.isTypeSupported&&g["default"].MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')};var r=function v(a){var b=m["default"].mergeOptions(o,a);this.MediaSource={open:p,supportsNativeMediaSources:q};if(b.mode==="html5"||b.mode==="auto"&&q()){return new k["default"]}else if(m["default"].getTech("Flash")){return new i["default"]}throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};d.MediaSource=r;r.open=p;r.supportsNativeMediaSources=q;var s={createObjectURL:function w(a){var b="blob:vjs-media-source/";var c=undefined;if(a instanceof k["default"]){c=g["default"].URL.createObjectURL(a.nativeMediaSource_);a.url_=c;return c}if(!(a instanceof i["default"])){c=g["default"].URL.createObjectURL(a);a.url_=c;return c}c=b+n;n++;m["default"].mediaSources[c]=a;return c}};d.URL=s;m["default"].MediaSource=r;m["default"].URL=s}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./flash-media-source":68,"./html-media-source":71,"global/window":29}],75:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function A(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var k=g(j);var l=b("./create-text-tracks-if-necessary");var m=g(l);var n=b("./remove-cues-from-track");var o=g(n);var p=b("./add-text-track-data");var q=b("webworkify");var r=g(q);var s=b("./transmuxer-worker");var t=g(s);var u=b("./codec-utils");var v=function B(a,b){var c=a.addSourceBuffer(b);var d=Object.create(null);d.updating=false;d.realBuffer_=c;var e=function(a){if(typeof c[a]==="function"){d[a]=function(){return c[a].apply(c,arguments)}}else if(typeof d[a]==="undefined"){Object.defineProperty(d,a,{get:function b(){return c[a]},set:function e(b){return c[a]=b}})}};for(var f in c){e(f)}return d};var w=function C(a,b,c){if(!b||!a.length){return[]}var d=Math.ceil((b.currentTime()-c+3)*9e4);var e=undefined;for(e=0;e<a.length;e++){if(a[e].pts>d){break}}return a.slice(e)};d.gopsSafeToAlignWith=w;var x=function D(a,b,c){if(!b.length){return a}if(c){return b.slice()}var d=b[0].pts;var e=0;for(e;e<a.length;e++){if(a[e].pts>=d){break}}return a.slice(0,e).concat(b)};d.updateGopBuffer=x;var y=function E(a,b,c,d){var e=Math.ceil((b-d)*9e4);var f=Math.ceil((c-d)*9e4);var g=a.slice();var h=a.length;while(h--){if(a[h].pts<=f){break}}if(h===-1){return g}var i=h+1;while(i--){if(a[i].pts<=e){break}}i=Math.max(i,0);g.splice(i,h-i+1);return g};d.removeGopBuffer=y;var z=function(a){i(b,a);function b(a,c){var d=this;h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,k["default"].EventTarget);this.timestampOffset_=0;this.pendingBuffers_=[];this.bufferUpdating_=false;this.mediaSource_=a;this.codecs_=c;this.audioCodec_=null;this.videoCodec_=null;this.audioDisabled_=false;this.appendAudioInitSegment_=true;this.gopBuffer_=[];this.timeMapping_=0;this.safeAppend_=k["default"].browser.IE_VERSION>=11;var e={remux:false,alignGopsAtEnd:this.safeAppend_};this.codecs_.forEach(function(a){if((0,u.isAudioCodec)(a)){d.audioCodec_=a}else if((0,u.isVideoCodec)(a)){d.videoCodec_=a}});this.transmuxer_=(0,r["default"])(t["default"]);this.transmuxer_.postMessage({action:"init",options:e});this.transmuxer_.onmessage=function(a){if(a.data.action==="data"){return d.data_(a)}if(a.data.action==="done"){return d.done_(a)}if(a.data.action==="gopInfo"){return d.appendGopInfo_(a)}};Object.defineProperty(this,"timestampOffset",{get:function g(){return this.timestampOffset_},set:function i(a){if(typeof a==="number"&&a>=0){this.timestampOffset_=a;this.appendAudioInitSegment_=true;this.gopBuffer_.length=0;this.timeMapping_=0;this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:a})}}});Object.defineProperty(this,"appendWindowStart",{get:function j(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function l(a){if(this.videoBuffer_){this.videoBuffer_.appendWindowStart=a}if(this.audioBuffer_){this.audioBuffer_.appendWindowStart=a}}});Object.defineProperty(this,"updating",{get:function m(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}});Object.defineProperty(this,"buffered",{get:function n(){var a=null;var b=null;var c=0;var d=[];var e=[];if(!this.videoBuffer_&&!this.audioBuffer_){return k["default"].createTimeRange()}if(!this.videoBuffer_){return this.audioBuffer_.buffered}if(!this.audioBuffer_){return this.videoBuffer_.buffered}if(this.audioDisabled_){return this.videoBuffer_.buffered}if(this.videoBuffer_.buffered.length===0&&this.audioBuffer_.buffered.length===0){return k["default"].createTimeRange()}var f=this.videoBuffer_.buffered;var g=this.audioBuffer_.buffered;var h=f.length;while(h--){d.push({time:f.start(h),type:"start"});d.push({time:f.end(h),type:"end"})}h=g.length;while(h--){d.push({time:g.start(h),type:"start"});d.push({time:g.end(h),type:"end"})}d.sort(function(a,b){return a.time-b.time});for(h=0;h<d.length;h++){if(d[h].type==="start"){c++;if(c===2){a=d[h].time}}else if(d[h].type==="end"){c--;if(c===1){b=d[h].time}}if(a!==null&&b!==null){e.push([a,b]);a=null;b=null}}return k["default"].createTimeRanges(e)}})}e(b,[{key:"data_",value:function c(a){var b=a.data.segment;b.data=new Uint8Array(b.data,a.data.byteOffset,a.data.byteLength);b.initSegment=new Uint8Array(b.initSegment.data,b.initSegment.byteOffset,b.initSegment.byteLength);(0,m["default"])(this,this.mediaSource_,b);this.pendingBuffers_.push(b);return}},{key:"done_",value:function d(a){if(this.mediaSource_.readyState==="closed"){this.pendingBuffers_.length=0;return}this.processPendingSegments_();return}},{key:"createRealSourceBuffers_",value:function g(){var a=this;var b=["audio","video"];b.forEach(function(c){if(!a[c+"Codec_"]){return; }if(a[c+"Buffer_"]){return}var d=null;if(a.mediaSource_[c+"Buffer_"]){d=a.mediaSource_[c+"Buffer_"];d.updating=false}else{var e=c+"Codec_";var f=c+'/mp4;codecs="'+a[e]+'"';d=v(a.mediaSource_.nativeMediaSource_,f);a.mediaSource_[c+"Buffer_"]=d}a[c+"Buffer_"]=d;["update","updatestart","updateend"].forEach(function(e){d.addEventListener(e,function(){if(c==="audio"&&a.audioDisabled_){return}if(e==="updateend"){a[c+"Buffer_"].updating=false}var d=b.every(function(b){if(b==="audio"&&a.audioDisabled_){return true}if(c!==b&&a[b+"Buffer_"]&&a[b+"Buffer_"].updating){return false}return true});if(d){return a.trigger(e)}})})})}},{key:"appendBuffer",value:function j(a){this.bufferUpdating_=true;if(this.audioBuffer_&&this.audioBuffer_.buffered.length){var b=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:b.end(b.length-1)})}if(this.videoBuffer_){this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:w(this.gopBuffer_,this.mediaSource_.player_,this.timeMapping_)})}this.transmuxer_.postMessage({action:"push",data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function l(a){this.gopBuffer_=x(this.gopBuffer_,a.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function n(a,b){if(this.videoBuffer_){this.videoBuffer_.updating=true;this.videoBuffer_.remove(a,b);this.gopBuffer_=y(this.gopBuffer_,a,b,this.timeMapping_)}if(!this.audioDisabled_&&this.audioBuffer_){this.audioBuffer_.updating=true;this.audioBuffer_.remove(a,b)}(0,o["default"])(a,b,this.metadataTrack_);if(this.inbandTextTracks_){for(var c in this.inbandTextTracks_){(0,o["default"])(a,b,this.inbandTextTracks_[c])}}}},{key:"processPendingSegments_",value:function q(){var a={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};a=this.pendingBuffers_.reduce(function(a,b){var c=b.type;var d=b.data;var e=b.initSegment;a[c].segments.push(d);a[c].bytes+=d.byteLength;a[c].initSegment=e;if(b.captions){a.captions=a.captions.concat(b.captions)}if(b.info){a[c].info=b.info}if(b.metadata){a.metadata=a.metadata.concat(b.metadata)}return a},a);if(!this.videoBuffer_&&!this.audioBuffer_){if(a.video.bytes===0){this.videoCodec_=null}if(a.audio.bytes===0){this.audioCodec_=null}this.createRealSourceBuffers_()}if(a.audio.info){this.mediaSource_.trigger({type:"audioinfo",info:a.audio.info})}if(a.video.info){this.mediaSource_.trigger({type:"videoinfo",info:a.video.info})}if(this.appendAudioInitSegment_){if(!this.audioDisabled_&&this.audioBuffer_){a.audio.segments.unshift(a.audio.initSegment);a.audio.bytes+=a.audio.initSegment.byteLength}this.appendAudioInitSegment_=false}var b=false;if(this.videoBuffer_&&a.video.bytes){a.video.segments.unshift(a.video.initSegment);a.video.bytes+=a.video.initSegment.byteLength;this.concatAndAppendSegments_(a.video,this.videoBuffer_);(0,p.addTextTrackData)(this,a.captions,a.metadata)}else if(this.videoBuffer_&&(this.audioDisabled_||!this.audioBuffer_)){b=true}if(!this.audioDisabled_&&this.audioBuffer_){this.concatAndAppendSegments_(a.audio,this.audioBuffer_)}this.pendingBuffers_.length=0;if(b){this.trigger("updateend")}this.bufferUpdating_=false}},{key:"concatAndAppendSegments_",value:function s(a,b){var c=0;var d=undefined;if(a.bytes){d=new Uint8Array(a.bytes);a.segments.forEach(function(a){d.set(a,c);c+=a.byteLength});try{b.updating=true;b.appendBuffer(d)}catch(e){if(this.mediaSource_.player_){this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:e.message,originalError:e})}}}}},{key:"abort",value:function z(){if(this.videoBuffer_){this.videoBuffer_.abort()}if(!this.audioDisabled_&&this.audioBuffer_){this.audioBuffer_.abort()}if(this.transmuxer_){this.transmuxer_.postMessage({action:"reset"})}this.pendingBuffers_.length=0;this.bufferUpdating_=false}}]);return b}(k["default"].EventTarget);d["default"]=z}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":64,"./codec-utils":65,"./create-text-tracks-if-necessary":66,"./remove-cues-from-track":72,"./transmuxer-worker":73,webworkify:76}],76:[function(b,c,d){var e=arguments[3];var f=arguments[4];var g=arguments[5];var h=JSON.stringify;c.exports=function(b){var c=[];var d;var i=Object.keys(g);for(var j=0,k=i.length;j<k;j++){var l=i[j];if(g[l].exports===b){d=l;break}}if(!d){d=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var m={};for(var j=0,k=i.length;j<k;j++){var l=i[j];m[l]=l}f[d]=[Function(["require","module","exports"],"("+b+")(self)"),m]}var n=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var o={};o[d]=d;f[n]=[Function(["require"],"require("+h(d)+")(self)"),o];var p="("+e+")({"+Object.keys(f).map(function(a){return h(a)+":["+f[a][0]+","+h(f[a][1])+"]"}).join(",")+"},{},["+h(n)+"])";var q=a.URL||a.webkitURL||a.mozURL||a.msURL;return new Worker(q.createObjectURL(new Blob([p],{type:"text/javascript"})))}},{}],77:[function(b,c,d){(function(d){"use strict";var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function T(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("global/document");var k=g(j);var l=b("./playlist-loader");var m=g(l);var n=b("./playlist");var o=g(n);var p=b("./xhr");var q=g(p);var r=b("aes-decrypter");var s=b("./bin-utils");var t=g(s);var u=b("videojs-contrib-media-sources");var v=b("m3u8-parser");var w=g(v);var x=typeof a!=="undefined"?a["videojs"]:typeof d!=="undefined"?d["videojs"]:null;var y=g(x);var z=b("./master-playlist-controller");var A=b("./config");var B=g(A);var C=b("./rendition-mixin");var D=g(C);var E=b("global/window");var F=g(E);var G=b("./playback-watcher");var H=g(G);var I=b("./reload-source-on-error");var J=g(I);var K=b("./playlist-selectors.js");var L={PlaylistLoader:m["default"],Playlist:o["default"],Decrypter:r.Decrypter,AsyncStream:r.AsyncStream,decrypt:r.decrypt,utils:t["default"],STANDARD_PLAYLIST_SELECTOR:K.lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:K.lowestBitrateCompatibleVariantSelector,comparePlaylistBandwidth:K.comparePlaylistBandwidth,comparePlaylistResolution:K.comparePlaylistResolution,xhr:(0,q["default"])()};var M=4194304;["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(a){Object.defineProperty(L,a,{get:function b(){y["default"].log.warn("using Hls."+a+" is UNSAFE be sure you know what you are doing");return B["default"][a]},set:function c(b){y["default"].log.warn("using Hls."+a+" is UNSAFE be sure you know what you are doing");if(typeof b!=="number"||b<0){y["default"].log.warn("value of Hls."+a+" must be greater than or equal to 0");return}B["default"][a]=b}})});var N=function U(a,b){var c=b.media();var d=-1;for(var e=0;e<a.length;e++){if(a[e].id===c.uri){d=e;break}}a.selectedIndex_=d;a.trigger({selectedIndex:d,type:"change"})};var O=function V(a,b){b.representations().forEach(function(b){a.addQualityLevel(b)});N(a,b.playlists)};L.canPlaySource=function(){return y["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};L.supportsNativeHls=function(){var a=k["default"].createElement("video");if(!y["default"].getTech("Html5").isSupported()){return false}var b=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return b.some(function(b){return/maybe|probably/i.test(a.canPlayType(b))})}();L.isSupported=function(){return y["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};var P=y["default"].getComponent("Component");var Q=function(a){i(b,a);function b(a,c,d){var e=this;h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,c,d.hls);if(c.options_&&c.options_.playerId){var g=(0,y["default"])(c.options_.playerId);if(!g.hasOwnProperty("hls")){Object.defineProperty(g,"hls",{get:function i(){y["default"].log.warn("player.hls is deprecated. Use player.tech_.hls instead.");c.trigger({type:"usage",name:"hls-player-access"});return e}})}}this.tech_=c;this.source_=a;this.stats={};this.ignoreNextSeekingEvent_=false;this.setOptions_();if(this.options_.overrideNative&&(c.featuresNativeVideoTracks||c.featuresNativeAudioTracks)){throw new Error("Overriding native HLS requires emulated tracks. "+"See https://git.io/vMpjB")}this.on(k["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(a){var b=k["default"].fullscreenElement||k["default"].webkitFullscreenElement||k["default"].mozFullScreenElement||k["default"].msFullscreenElement;if(b&&b.contains(e.tech_.el())){e.masterPlaylistController_.fastQualityChange_()}});this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=false;return}this.setCurrentTime(this.tech_.currentTime())});this.on(this.tech_,"error",function(){if(this.masterPlaylistController_){this.masterPlaylistController_.pauseLoading()}});this.on(this.tech_,"play",this.play)}e(b,[{key:"setOptions_",value:function c(){var a=this;this.options_.withCredentials=this.options_.withCredentials||false;if(typeof this.options_.blacklistDuration!=="number"){this.options_.blacklistDuration=5*60}if(typeof this.options_.bandwidth!=="number"){this.options_.bandwidth=M}this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===M;["withCredentials","bandwidth"].forEach(function(b){if(typeof a.source_[b]!=="undefined"){a.options_[b]=a.source_[b]}});this.bandwidth=this.options_.bandwidth}},{key:"src",value:function d(a){var b=this;if(!a){return}this.setOptions_();this.options_.url=this.source_.src;this.options_.tech=this.tech_;this.options_.externHls=L;this.masterPlaylistController_=new z.MasterPlaylistController(this.options_);this.playbackWatcher_=new H["default"](y["default"].mergeOptions(this.options_,{seekable:function c(){return b.seekable()}}));this.masterPlaylistController_.on("error",function(){var a=y["default"].players[b.tech_.options_.playerId];a.error(b.masterPlaylistController_.error)});this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):L.STANDARD_PLAYLIST_SELECTOR.bind(this);this.masterPlaylistController_.selectInitialPlaylist=L.INITIAL_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function d(){return this.masterPlaylistController_.selectPlaylist},set:function e(a){this.masterPlaylistController_.selectPlaylist=a.bind(this)}},throughput:{get:function f(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function g(a){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=a;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function h(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function i(a){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=a;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function j(){var a=1/(this.bandwidth||1);var b=undefined;if(this.throughput>0){b=1/this.throughput}else{b=0}var c=Math.floor(1/(a+b));return c},set:function k(){y["default"].log.error('The "systemBandwidth" property is read-only')}}});Object.defineProperties(this.stats,{bandwidth:{get:function l(){return b.bandwidth||0},enumerable:true},mediaRequests:{get:function m(){return b.masterPlaylistController_.mediaRequests_()||0},enumerable:true},mediaRequestsAborted:{get:function n(){return b.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:true},mediaRequestsTimedout:{get:function o(){return b.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:true},mediaRequestsErrored:{get:function p(){return b.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:true},mediaTransferDuration:{get:function q(){return b.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:true},mediaBytesTransferred:{get:function r(){return b.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:true},mediaSecondsLoaded:{get:function s(){return b.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:true}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.masterPlaylistController_.on("selectedinitialmedia",function(){(0,D["default"])(b)});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=true});this.tech_.ready(function(){return b.setupQualityLevels_()});if(!this.tech_.el()){return}this.tech_.src(y["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource))}},{key:"setupQualityLevels_",value:function g(){var a=this;var b=y["default"].players[this.tech_.options_.playerId];if(b&&b.qualityLevels){this.qualityLevels_=b.qualityLevels();this.masterPlaylistController_.on("selectedinitialmedia",function(){O(a.qualityLevels_,a)});this.playlists.on("mediachange",function(){N(a.qualityLevels_,a.playlists)})}}},{key:"play",value:function j(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function l(a){this.masterPlaylistController_.setCurrentTime(a)}},{key:"duration",value:function m(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function n(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function o(){if(this.playbackWatcher_){this.playbackWatcher_.dispose()}if(this.masterPlaylistController_){this.masterPlaylistController_.dispose()}if(this.qualityLevels_){this.qualityLevels_.dispose()}f(Object.getPrototypeOf(b.prototype),"dispose",this).call(this)}}]);return b}(P);var R=function W(a){return{canHandleSource:function b(c){var d=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var e=y["default"].mergeOptions(y["default"].options,d);if(e.hls&&e.hls.mode&&e.hls.mode!==a){return false}return W.canPlayType(c.type,e)},handleSource:function c(b,d){var e=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var f=y["default"].mergeOptions(y["default"].options,e,{hls:{mode:a}});if(a==="flash"){d.setTimeout(function(){d.trigger("loadstart")},1)}d.hls=new Q(b,d,f);d.hls.xhr=(0,q["default"])();d.hls.src(b.src);return d.hls},canPlayType:function d(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var c=y["default"].mergeOptions(y["default"].options,b);if(W.canPlayType(a,c)){return"maybe"}return""}}};R.canPlayType=function(a,b){if(y["default"].browser.IE_VERSION&&y["default"].browser.IE_VERSION<=10){return false}var c=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(!b.hls.overrideNative&&L.supportsNativeHls){return false}return c.test(a)};if(typeof y["default"].MediaSource==="undefined"||typeof y["default"].URL==="undefined"){y["default"].MediaSource=u.MediaSource;y["default"].URL=u.URL}var S=y["default"].getTech("Flash");if(u.MediaSource.supportsNativeMediaSources()){y["default"].getTech("Html5").registerSourceHandler(R("html5"),0)}if(F["default"].Uint8Array&&S){S.registerSourceHandler(R("flash"))}y["default"].HlsHandler=Q;y["default"].HlsSourceHandler=R;y["default"].Hls=L;if(!y["default"].use){y["default"].registerComponent("Hls",L)}y["default"].m3u8=w["default"];y["default"].options.hls=y["default"].options.hls||{};if(y["default"].registerPlugin){y["default"].registerPlugin("reloadSourceOnError",J["default"])}else{y["default"].plugin("reloadSourceOnError",J["default"])}c.exports={Hls:L,HlsHandler:Q,HlsSourceHandler:R}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./config":3,"./master-playlist-controller":5,"./playback-watcher":8,"./playlist":11,"./playlist-loader":9,"./playlist-selectors.js":10,"./reload-source-on-error":13,"./rendition-mixin":14,"./xhr":21,"aes-decrypter":25,"global/document":28,"global/window":29,"m3u8-parser":30,"videojs-contrib-media-sources":74}]},{},[77])(77)})}if(!a.vjs){(function(a,b){var c=b.getComponent("Component");var d=b.getComponent("Player");var e={Component:{extend:c.extend,options:c.prototype.options},Player:{createEl:d.prototype.createEl,dimension:d.prototype.dimension,loadTech_:d.prototype.loadTech_,unloadTech_:d.prototype.unloadTech_}};var f={"vjs-time-controls":["TimeDivider","RemainingTimeDisplay","DurationDisplay","CurrentTimeDisplay"],"vjs-live-controls":["LiveDisplay"]};c.prototype.options=function(){var a=e.Component.options.apply(this,arguments);if(Array.isArray(a.children)){a.children.forEach(function(b){a.children[b]=this.getChild(b).options_},this)}return a};c.extend=function(a){if(a.remainingTime&&!a.scrubbing){a.scrubbing=function(){}}return e.Component.extend.call(this,a)};b.registerComponent("SliderHandle",b.extend(c,{defaultValue:0,createEl:function(a,b){b=b||{};b.className=(b.className||"")+" vjs-slider-handle";if(!b.innerHTML){b.innerHTML='<span class="vjs-control-text">'+this.defaultValue+"</span>"}return c.prototype.createEl.call(this,"div",b)}}));Object.keys(c.components_).forEach(function(a){b[a]=b.getComponent(a);if(!b[a].extend){b[a].extend=c.extend}});Object.keys(f).forEach(function(a){f[a].forEach(function(c){var d=b.getComponent(c);var e=d.prototype.createEl;d.prototype.createEl=function(){var b=e.apply(this,arguments);b.className+=" "+a;return b}})});["aspectRatio","fluid","updateStyleEl_"].forEach(function(a){e.Player[a]=d.prototype[a];d.prototype[a]=function(){}});d.prototype.createEl=function(){var a=e.Player.createEl.apply(this,arguments);if(this.styleEl_){this.styleEl_.parentNode.removeChild(this.styleEl_)}return a};d.prototype.dimension=c.prototype.dimension;Object.keys(b.browser).forEach(function(a){b[a]=b.browser[a]});a.vjs=b;b.JSON=JSON;b.USER_AGENT=a.navigator.userAgent;b.EventEmitter=b.EventTarget;b.util={mergeOptions:function(){b.log.warn(["videojs.util.mergeOptions is deprecated.","Use videojs.mergeOptions instead."].join(" "));return b.mergeOptions.apply(b,arguments)}};b.round=function(a,c){b.log.warn(["videojs.round(x, y) is deprecated.","Use Number(x.toFixed(y)) instead."].join(" "));return Number(a.toFixed(c))};b.trim=function(a){b.log.warn("videojs.trim(x) is deprecated. Use x.trim() instead.");return a.trim()};b.obj={isArray:Array.isArray};d.prototype.loadTech_=function(){var a=this;e.Player.loadTech_.apply(a,arguments);var c=this.tech_;var d=Object.keys(c);var f=c.constructor.prototype;var g=Object.keys(f).filter(function(a){return!c.hasOwnProperty(a)});this.polyfilledTechKeys_=d.concat(g);this.polyfilledTechKeys_.forEach(function(d){var e=c.hasOwnProperty(d)?c[d]:f[d];if(typeof e==="function"){a.tech[d]=b.bind(c,e)}else{a.tech[d]=e}})};d.prototype.unloadTech_=function(){var a=this;e.Player.unloadTech_.apply(a,arguments);a.polyfilledTechKeys_.forEach(function(b){delete a.tech[b]});delete a.polyfilledTechKeys_}})(a,a.videojs)}(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsPerSourceBehaviors=b(a.videojs)})(this,function(a){"use strict";a="default"in a?a["default"]:a;var b=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var c=a.getTech("Html5");var d=a.registerPlugin||a.plugin;var e=["abort","emptied","loadstart","play"];var f=["abort","emptied"];var g=["ad-playback","ads-ready?","postroll?","preroll?"];var h=function i(){var d=this;var h=[];var i=void 0;var j=false;var k=void 0;var l=true;var m=function o(){return!!d.ads&&b(d.ads)==="object"&&g.indexOf(d.ads.state)>-1};var n=function p(b){return function(c,d){var e=this;if(this.perSourceBehaviors.disabled()){return}var f=arguments.length===2;var g=this.currentSrc();var i=[c];var j=a.bind(f?this:c,arguments[arguments.length-1]);var k=function l(){var a=e.currentSrc()!==g;if(e.perSourceBehaviors.disabled()){return}if(a||b){e.off.apply(e,i)}if(!a){j.apply(undefined,arguments)}};k.guid=j.guid;if(!f){i.push(d)}i.push(k);h.push(i);return this.on.apply(this,i)}};this.perSourceBehaviors={disable:a.bind(this,function q(){this.clearTimeout(k);k=null;j=true;return j}),disabled:function r(){return j},enable:function s(){j=false;return j},enabled:function t(){return!j},isSrcStable:function u(){return l},VERSION:"__VERSION__"};this.onPerSrc=n();this.onePerSrc=n(true);this.on("dispose",function(){h.length=0});this.on(e,function(a){if(d.perSourceBehaviors.disabled()||k||m(d)){return}if(l&&f.indexOf(a.type)>-1){l=false;d.trigger("sourceunstable")}var b=[];var e=function g(a){return b.push({time:Date.now(),event:a})};e(a);d.on(c.Events,e);k=d.setTimeout(function(){var a=d.currentSrc();l=true;k=null;d.off(c.Events,e);if(a&&a!==i){h.forEach(function(a){return d.off.apply(d,a)});h.length=0;d.trigger("sourcechanged",{interimEvents:b,from:i,to:a});i=a}},1)})};d("perSourceBehaviors",h);h.VERSION="__VERSION__";return h});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsSeekEvents=b(a.videojs)})(this,function(a){"use strict";a="default"in a?a["default"]:a;var b={verbose:false,maxSavedSeekEvents:10,debounceTimeout:1e3,playbackRateTolerance:1.5,stableTimeUpdateCount:3,minInterval:1};var c=function g(a,b){var c=void 0;return function(){var d=this;for(var e=arguments.length,f=Array(e),g=0;g<e;g++){f[g]=arguments[g]}var h=function i(){c=null;h=null;a.apply(d,f)};clearTimeout(c);c=setTimeout(h,b)}};var d=function h(a){a.trigger("seek")};var e=function i(e){var f=a.mergeOptions(b,e);var g=false;var h=void 0;var i=void 0;var j=void 0;var k=void 0;var l=0;var m=[];var n=0;var o={seek:0,clock:Date.now()};var p={seek:0,clock:Date.now()};var q=f.verbose?function(){var b;for(var c=arguments.length,d=Array(c),e=0;e<c;e++){d[e]=arguments[e]}return(b=a.log).call.apply(b,[a,"seek-events:"].concat(d))}:function(){};this.on("seek",function(){o.seek=this.seekEvents.last().seekEnd;g=false;q("event seekStart: ",this.seekEvents.last().seekStart);q("event seekEnd: ",this.seekEvents.last().seekEnd)});this.on("stable",function(){q("stable");this.seekEvents.stable=true});this.on("unstable",function(){q("unstable");this.seekEvents.stable=false});this.seekEvents={stableTimeUpdateCount:f.stableTimeUpdateCount,playbackRateTolerance:f.playbackRateTolerance,debounceTimeout:f.debounceTimeout,minInterval:f.minInterval,stable:false,last:function u(){return m[m.length-1]},all:function v(){return m}};var r=function w(a){o.seek=this.currentTime();o.clock=a.timeStamp||+new Date;p.seek=o.seek;p.clock=o.clock};this.on(["loadstart","playing","adplaying"],r);var s=c(d,this.seekEvents.debounceTimeout);var t=function x(a){h=this.currentTime();i=a.timeStamp||+new Date;j=h-p.seek;if(i===p.clock||h===o.seek){return}k=Math.abs(j)/(Math.abs(i-p.clock)*.001);if(k>this.seekEvents.playbackRateTolerance){if(Math.abs(h-o.seek)>=this.seekEvents.minInterval){this.trigger("unstable");l=0;if(!g){n=Number(o.seek)}m.push({timeStamp:i,seekStart:n,seekEnd:h,seekInterval:h-n});if(m.length>f.maxSavedSeekEvents){m.shift()}g=true;s(this)}}else{l++;q(h+": "+l);if(l>=this.seekEvents.stableTimeUpdateCount&&!this.seekEvents.stable&&!g){this.trigger("stable")}o.seek=h}p.seek=h;p.clock=i};this.on(["timeupdate","adtimeupdate"],t)};var f=a.registerPlugin||a.plugin;f("seekEvents",e);return e});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsContextmenu=b(a.videojs)})(this,function(a){"use strict";a="default"in a?a["default"]:a;var b=a.registerPlugin||a.plugin;var c={cancel:true,sensitivity:10,wait:500,disabled:false};var d="vjs-contextmenu";function e(a,b){if(a.contextmenu.options.disabled){return a}var c={target:a,type:d};["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(a){c[a]=b[a]});return a.trigger(c)}function f(a){var b=this.contextmenu.current;if(!b){return}var c=this.contextmenu.options.wait;if(a.type==="touchend"&&Number(new Date)-b.time>=c){e(this,a)}this.contextmenu.current=null}function g(a){var b=this.contextmenu.current;if(!b){return}var c=a.touches[0];var d=this.contextmenu.options.sensitivity;if(c.screenX-b.screenX>d||c.screenY-b.screenY>d){this.contextmenu.current=null}}function h(a){if(this.contextmenu.current){return}var b=a.touches[0];this.contextmenu.current={screenX:b.screenX,screenY:b.screenY,time:Number(new Date)}}function i(a){if(this.contextmenu.options.cancel&&!this.contextmenu.options.disabled){a.preventDefault()}e(this,a);this.off(["touchcancel","touchend"],f);this.off("touchmove",g);this.off("touchstart",h)}function j(b){var e=this;this.contextmenu.options=a.mergeOptions(c,b);this.contextmenu.VERSION="__VERSION__";this.on("contextmenu",i);this.on(["touchcancel","touchend"],f);this.on("touchmove",g);this.on("touchstart",h);this.ready(function(){return e.addClass(d)})}b("contextmenu",j);j.VERSION="__VERSION__";return j});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsContextmenuUi=b(a.videojs)})(this,function(c){"use strict";c="default"in c?c["default"]:c;var d=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var e={};var f=(Object.freeze||Object)({"default":e});var g=f&&e||f;var h=typeof d!=="undefined"?d:typeof a!=="undefined"?a:{};var i;if(typeof b!=="undefined"){i=b}else{i=h["__GLOBAL_DOCUMENT_CACHE@4"];if(!i){i=h["__GLOBAL_DOCUMENT_CACHE@4"]=g}}var j=i;var k;if(typeof a!=="undefined"){k=a}else if(typeof d!=="undefined"){k=d}else if(typeof self!=="undefined"){k=self}else{k={}}var l=k;var m=function(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}};var n=function(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b};var o=function(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a};var p=c.getComponent("MenuItem");var q=function(a){n(b,a);function b(){m(this,b);return o(this,a.apply(this,arguments))}b.prototype.handleClick=function c(b){var c=this;a.prototype.handleClick.call(this);this.options_.listener();l.setTimeout(function(){c.player().contextmenuUI.menu.dispose()},1)};return b}(p);var r=c.getComponent("Menu");var s=c.dom||c;var t=function(a){n(b,a);function b(d,e){m(this,b);var f=o(this,a.call(this,d,e));f.dispose=c.bind(f,f.dispose);e.content.forEach(function(a){var b=function e(){};if(typeof a.listener==="function"){b=a.listener}else if(typeof a.href==="string"){b=function g(){return l.open(a.href)}}f.addItem(new q(d,{label:a.label,listener:c.bind(d,b)}))});return f}b.prototype.createEl=function d(){var b=a.prototype.createEl.call(this);s.addClass(b,"vjs-contextmenu-ui-menu");b.style.left=this.options_.position.left+"px";b.style.top=this.options_.position.top+"px";return b};return b}(r);function u(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode){b=a.getBoundingClientRect()}if(!b){return{left:0,top:0}}var c=j.documentElement;var d=j.body;var e=c.clientLeft||d.clientLeft||0;var f=l.pageXOffset||d.scrollLeft;var g=b.left+f-e;var h=c.clientTop||d.clientTop||0;var i=l.pageYOffset||d.scrollTop;var k=b.top+i-h;return{left:Math.round(g),top:Math.round(k)}}function v(a,b){var c={};var d=u(a);var e=a.offsetWidth;var f=a.offsetHeight;var g=d.top;var h=d.left;var i=b.pageY;var j=b.pageX;if(b.changedTouches){j=b.changedTouches[0].pageX;i=b.changedTouches[0].pageY}c.y=Math.max(0,Math.min(1,(g-i+f)/f));c.x=Math.max(0,Math.min(1,(j-h)/e));return c}var w=c.registerPlugin||c.plugin;function x(a){return a.hasOwnProperty("contextmenuUI")&&a.contextmenuUI.hasOwnProperty("menu")&&a.contextmenuUI.menu.el()}function y(a,b){return{left:Math.round(b.width*a.x),top:Math.round(b.height-b.height*a.y)}}function z(a){var b=this;if(x(this)){this.contextmenuUI.menu.dispose();return}this.contextmenu.options.cancel=false;var d=v(this.el(),a);var e=this.el().getBoundingClientRect();var f=y(d,e);a.preventDefault();var g=this.contextmenuUI.menu=new t(this,{content:this.contextmenuUI.content,position:f});this.contextmenuUI.closeMenu=function(){c.warn("player.contextmenuUI.closeMenu() is deprecated, please use player.contextmenuUI.menu.dispose() instead!");g.dispose()};g.on("dispose",function(){b.contextmenu.options.cancel=true;c.off(j,["click","tap"],g.dispose);b.removeChild(g);delete b.contextmenuUI.menu});this.addChild(g);c.on(j,["click","tap"],g.dispose)}function A(a){var b=this;if(!Array.isArray(a.content)){throw new Error('"content" required')}if(x(this)){this.contextmenuUI.menu.dispose();this.off("vjs-contextmenu",this.contextmenuUI.onVjsContextMenu);delete this.contextmenuUI}this.contextmenu();var d=this.contextmenuUI=function(){A.apply(this,arguments)};d.onVjsContextMenu=c.bind(this,z);d.content=a.content;d.VERSION="__VERSION__";this.on("vjs-contextmenu",d.onVjsContextMenu);this.ready(function(){return b.addClass("vjs-contextmenu-ui")})}w("contextmenuUI",A);A.VERSION="__VERSION__";return A});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsPlayerInfo=b(a.videojs)})(this,function(b){"use strict";b="default"in b?b["default"]:b;var c="1.2.1";var d=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var e;if(typeof a!=="undefined"){e=a}else if(typeof d!=="undefined"){e=d}else if(typeof self!=="undefined"){e=self}else{e={}}var f=e;var g=function(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}};var h=function(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b};var i=function(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a};var j="unknown";var k=b.getComponent("ModalDialog");var l=b.getComponent("Player");var m=b.dom||b; function n(a,b,c){var d=a;var e=b.split(".");if(!d){return c}for(var f=0;f<e.length;f++){var g=e[f];if(d[g]===undefined){return c}if(f+1<e.length){d=d[g]}else{return d[g]}}}function o(a,b,c){var d=n(a,b,c);return typeof d==="function"?d():d}var p={adonly:{test:function u(a){return a.hasClass("vjs-ad-only")}},"custom-endscreen":{method:"customEndscreen",test:"customEndscreenModal"},dash:{test:"dash"},"live-dvrux":{method:"dvrux",test:function v(a){return Boolean(n(a,"dvrux.controls"))}},freewheel:{test:"FreeWheelPlugin",method:"FreeWheelPlugin"},ima3:{test:"ima3"},onceux:{test:"onceux"},social:{test:"socialSettings"}};var q=function w(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return"<tr>"+b.map(function(a){return"<td>"+a+"</td>"}).join("")+"</tr>"};var r=function(a){h(b,a);function b(){g(this,b);return i(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-player-info-modal "+a.prototype.buildCSSClass.call(this)};b.prototype.dataForPlugins_=function d(){var a=this;return Object.keys(p).filter(function(a){var b=p[a].method||a;return typeof l.prototype[b]==="function"}).map(function(b){var c=a.player();var d=p[b];var e=d.method||b;return{active:typeof d.test==="string"?c.hasOwnProperty(d.test):d.test(c),name:b,version:n(c,e+".VERSION",o(c,e+".getVersion",j))}})};b.prototype.dataForSource_=function e(){var a=this.player();var b=a.hls,c=a.mediainfo;var d=n(b,"playlists",{media:function f(){}});var e=d.media();return{mediainfo:c,hls:{bandwidth:n(b,"stats.bandwidth",j),mediaBytesTransferred:n(b,"stats.mediaBytesTransferred",j),mediaTransferDuration:n(b,"stats.mediaTransferDuration",j),mediaRequests:n(b,"stats.mediaRequests",j),rendition:e&&{height:n(e,"attributes.RESOLUTION.height",j),width:n(e,"attributes.RESOLUTION.width",j)}},tech:a.techName_,type:a.currentType()}};b.prototype.data=function k(){var a=m.getAttributes(this.player().el());return{player:{accountId:n(a,"data-account",j),playerId:n(a,"data-player",j),embedId:n(a,"data-embed",j),applicationId:n(a,"data-application-id",j),playerVersion:n(f,"bc.VERSION",j),videojsVersion:n(f,"videojs.VERSION",j)},plugins:this.dataForPlugins_(),source:this.dataForSource_()}};b.prototype.contentForPlugins_=function r(a){var b=this;var c=('\n <tr>\n <td colspan="3">'+this.localize("No plugins available.")+"</td>\n </tr>\n ").trim();if(a.plugins.length){c=a.plugins.map(function(a){return q(a.name,a.version,a.active?b.localize("yes"):b.localize("no"))}).join("")}return("\n <table>\n <thead>\n <tr>\n <th>"+this.localize("Name")+"</th>\n <th>"+this.localize("Version")+"</th>\n <th>"+this.localize("Active")+"</th>\n </tr>\n </thead>\n <tbody>"+c+"</tbody>\n </table>\n ").trim()};b.prototype.contentForSource_=function s(a){var b=["<table><tbody>",q(this.localize("Current Playback Tech"),a.source.tech),q(this.localize("Current Media Type"),a.source.type)];if(a.source.mediainfo){b.push(q(this.localize("Video Name"),a.source.mediainfo.name),q(this.localize("Video ID"),a.source.mediainfo.id))}if(a.source.hls){b.push(q(this.localize("Current Bandwidth"),a.source.hls.bandwidth),q(this.localize("Media Bytes Transferred"),a.source.hls.mediaBytesTransferred),q(this.localize("Media Requests"),a.source.hls.mediaRequests),q(this.localize("Media Transfer Duration"),a.source.hls.mediaTransferDuration));if(a.source.hls.rendition){b.push(q(this.localize("Rendition Width"),a.source.hls.rendition.width),q(this.localize("Rendition Height"),a.source.hls.rendition.height))}}return b.concat("</tbody></table>").join("")};b.prototype.content=function t(){var a=this.data();return[m.createEl("h1",{innerHTML:this.localize("Player Information")}),m.createEl("div",{className:"vjs-pi-section vjs-pi-section--player",innerHTML:["<h2>"+this.localize("General")+"</h2>","<table><tbody>",q(this.localize("Brightcove Player Version"),a.player.playerVersion),q(this.localize("Video.js Version"),a.player.videojsVersion),q(this.localize("Account ID"),a.player.accountId),q(this.localize("Player ID"),a.player.playerId),q(this.localize("Embed ID"),a.player.embedId),q(this.localize("Application ID"),a.player.applicationId),"</tbody></table>"].join("")}),m.createEl("div",{className:"vjs-pi-section vjs-pi-section--plugins",innerHTML:["<h2>"+this.localize("Plugins")+"</h2>",this.contentForPlugins_(a)].join("")}),m.createEl("div",{className:"vjs-pi-section vjs-pi-section--source",innerHTML:["<h2>"+this.localize("Source")+"</h2>",this.contentForSource_(a)].join("")})]};return b}(k);b.registerComponent("PlayerInfoModal",r);var s=b.registerPlugin||b.plugin;function t(){var a=this;if(this.playerInfo.modal){this.playerInfo.modal.dispose()}this.playerInfo=function(){t.apply(this,arguments)};this.ready(function(){a.addClass("vjs-player-info");a.playerInfo.modal=a.addChild("playerInfoModal",{fillAlways:true,label:a.localize("Player Information Dialog"),temporary:false});a.playerInfo.modal.on("dispose",function(){delete a.playerInfo})})}s("playerInfo",t);t.VERSION=c;return t});(function(){k.plugin("viewport",function(c){c=c||{};if(!("width"in c)||!("height"in c)){throw Error("viewport plugin options must include both height and width properties")}if(!/vw/.test(c.height)){return}var d=this,e=function(){var a=b.createElement("_").style;try{a.width="";a.width="10vw"}catch(c){return false}return!!a.width},f=function(){d.setTimeout(g,500)},g,h=parseFloat(c.width)||d.width(),i=parseFloat(c.height)||d.height();if(c.force||!e()){g=k.bc_.debounce(function(a){var d=c.el,e=b.documentElement.clientWidth,f=b.documentElement.clientHeight;d.style.width=Math.min(h*f*.01,e)+"px";d.style.height=Math.min(i*e*.01,f)+"px"},500);k.on(a,["load","resize"],g);k.on(b.documentElement,"resize",g);k.on(a,"orientationchange",f);g();d.on("dispose",function(){k.off(a,["load","resize"],g);k.off(b.documentElement,"resize",g);k.off(a,"orientationchange",f)})}})})();(function(){k.plugin("posterStretch",function(b){b=b||{};var c=this,d=this.posterImage.el(),e=function(a,b){var c=a/b;return function(a,b){var d=a/b,e,f;if(c===d){e=a;f=b}else if(c>d){e=a;f=a/c}else{f=b;e=b*c}return{width:e,height:f}}},f=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else{a.attachEvent("on"+b,c)}};if(b.force||!("backgroundSize"in d.style)){(function(){var b,g,h,i;b=k.bc_.debounce(function(){var a=c.el(),b;if(g){b=g(a.offsetWidth,a.offsetHeight);i.style.width=b.width+"px";i.style.height=b.height+"px"}},500);h=function(){var f=new a.Image;i=d.querySelector("img");f.onload=function(){g=e(f.width,f.height);b()};f.src=c.poster()};if(c.poster()!==""){h()}f(a,"resize",b);c.on("posterchange",h);c.on("dispose",function(){k.off(a,"resize",b)})})()}})})();(function(a,b,c){var d=a.bc_.qs();var e=function(c){c=c||{};var e=this,f=e.el(),h=f.querySelector(".vjs-tech"),i="videojs-fullscreen-window";if(!e.controlBar.fullscreenToggle){return}if(!c.force&&(f.requestFullScreen||f.mozRequestFullScreen||f.mozFullScreenEnabled||f.webkitRequestFullScreen||f.msRequestFullScreen||f.msRequestFullscreen||h.webkitEnterFullscreen||h.webkitEnterFullScreen||h.supportsFullscreen||h.supportsFullScreen||h.webkitSupportsFullscreen)){return}if(b.name===i||d.search.iefullscreen==="true"){e.addClass("vjs-fullscreen")}e.controlBar.fullscreenToggle.off("click");e.controlBar.fullscreenToggle.on(["click","keydown"],function(c){var f,h,j,k,l=e.options_;c=c||b.event;if(c.type==="keydown"){h=c.which||c.keyCode;if(h!==32&&h!==13){return}}if(b.name===i||d.search.iefullscreen==="true"){try{b.opener.focus()}catch(m){a.log(m)}b.close()}else{if(e.fullscreenWindow&&!e.fullscreenWindow.closed){e.fullscreenWindow.focus()}else{j="//players.brightcove.net/{{account_id}}/{{player_id}}_{{embed_id}}/index.html?iefullscreen=true{{video_id}}";k=j.replace("{{account_id}}",l["data-account"]).replace("{{player_id}}",l["data-player"]).replace("{{embed_id}}",l["data-embed"]).replace("{{video_id}}",e.mediainfo&&e.mediainfo.id?"&videoId="+e.mediainfo.id:"");f=g({startingURL:k,tracks:e.textTracks(),time:e.currentTime(),autoplay:!e.paused()});e.fullscreenWindow=b.open(f,"_blank","fullscreen");e.fullscreenWindow.name=i}if(!e.paused()){e.pause()}}})},f=e.formatTime=function(a){a=Math.floor(a);if(!a){return""}var b="";if(a>=3600){b=Math.floor(a/3600)+"h";a=a%3600}if(a>=60){b+=Math.floor(a/60)+"m";a=a%60}if(a>0){b+=a+"s"}return b},g=e.buildNewWindowURL=function(a){a=a||{};var c=a.tracks,e={},g,h,i,j=a.startingURL||b.location.href,k=f(a.time);if(c){for(h=0;h<c.length;h++){g=c[h];if(g.mode==="showing"){i=g.language;break}}}if(k){e.t=k}if(a.autoplay){e.autoplay=""}if(i){e.captions=i}j+=j.indexOf("#")===-1?"#":"&";return j+d.stringify(e)};a.plugin("fullscreenOpen",e)})(k,a);(function(){k.plugin("urlparams",function(b){b=b||{};var c=function(a){var b=0,c;a=(a||"").replace(/^\s+|\s+$/g,"");if(!a||!/^(\d+h)?(\d+m)?(\d+s)?$/.test(a)){return-1}c=a.match(/^(\d+)h/);if(c){b+=parseFloat(c[1])*3600;a=a.replace(/^(\d+)h/,"")}c=a.match(/^(\d+)m/);if(c){b+=parseFloat(c[1])*60;a=a.replace(/^(\d+)m/,"")}c=a.match(/^(\d+)s/);if(c){b+=parseFloat(c[1])}return b},d=.9,e=function(a,b){var c=a-b;if(isNaN(c)){return false}return Math.abs(c)<d},f=function(a){g.ready(function(){if(g.networkState()===2){a()}else{g.one("loadedmetadata",function(){g.setTimeout(a,0)})}})},g=this,h=b.url||a.location.href,i=k.bc_.qs(),j=c(i.hash.t||i.search.t);if(j>0){(function(){var a=b.delay||250,c,d=false,h=function(){if(d||e(g.currentTime(),j)){d=true;i()}else{g.currentTime(j);c=g.setTimeout(h,a)}},i=function(){g.clearTimeout(c);g.off("timeupdate",i);if(!d){g.currentTime(j)}};g.on("timeupdate",i);f(h)})()}if(i.hash.autoplay!==undefined||i.search.autoplay!==undefined){g.autoplay(true);f(function(){g.play()})}if(i.hash.captions!==undefined||i.search.captions!==undefined){(function(){var a=i.hash.captions||i.search.captions;g.one("play",function(){var b=g.textTracks(),c,d;if(b){for(d=0;d<b.length;d++){c=b[d];if(c.language===a){c.mode="showing";break}}}})})()}})})();(function(){k.plugin("resizeTextTracks",function(){var b=this,c=k.bc_.debounce(function(){b.textTrackSettings.updateDisplay()},500);k.on(a,"resize",c);b.on("dispose",function(){k.off(a,"resize",c)})})})();(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsBcAnalytics=b(a.videojs)})(this,function(c){"use strict";c=c&&c.hasOwnProperty("default")?c["default"]:c;var d=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var e;if(typeof a!=="undefined"){e=a}else if(typeof d!=="undefined"){e=d}else if(typeof self!=="undefined"){e=self}else{e={}}var f=e;var g={};var h=(Object.freeze||Object)({"default":g});var i=h&&g||h;var j=typeof d!=="undefined"?d:typeof a!=="undefined"?a:{};var k;if(typeof b!=="undefined"){k=b}else{k=j["__GLOBAL_DOCUMENT_CACHE@4"];if(!k){k=j["__GLOBAL_DOCUMENT_CACHE@4"]=i}}var l=k;function m(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var n=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function o(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}}function p(a,b,c,d){b=b||"&";c=c||"=";if(a===null){a=undefined}if(typeof a==="object"){return q(r(a),function(d){var e=encodeURIComponent(o(d))+c;if(n(a[d])){return q(a[d],function(a){return e+encodeURIComponent(o(a))}).join(b)}else{return e+encodeURIComponent(o(a[d]))}}).join(b)}if(!d)return"";return encodeURIComponent(o(d))+c+encodeURIComponent(o(a))}function q(a,b){if(a.map)return a.map(b);var c=[];for(var d=0;d<a.length;d++){c.push(b(a[d],d))}return c}var r=Object.keys||function(a){var b=[];for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b.push(c)}return b};function s(a,b,c,d){b=b||"&";c=c||"=";var e={};if(typeof a!=="string"||a.length===0){return e}var f=/\+/g;a=a.split(b);var g=1e3;if(d&&typeof d.maxKeys==="number"){g=d.maxKeys}var h=a.length;if(g>0&&h>g){h=g}for(var i=0;i<h;++i){var j=a[i].replace(f,"%20"),k=j.indexOf(c),l,o,p,q;if(k>=0){l=j.substr(0,k);o=j.substr(k+1)}else{l=j;o=""}p=decodeURIComponent(l);q=decodeURIComponent(o);if(!m(e,p)){e[p]=q}else if(n(e[p])){e[p].push(q)}else{e[p]=[e[p],q]}}return e}var t={encode:p,stringify:p,decode:s,parse:s};var u=function za(a){return typeof a==="function"};var v=function Aa(a){return a===null||a===undefined};var w=function Ba(a){return typeof a==="number"&&a===a};var x=function Ca(a){return typeof a==="string"&&/\S/.test(a)};var y=function Da(a){return Object.prototype.toString.call(a)==="[object Object]"};var z=function(a,b){var c={};b.forEach(function(b){if(typeof a[b]!=="undefined"){c[b]=a[b]}});return c};var A=function Ea(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var d={};Object.keys(a).forEach(function(e){var f=a[e];b.push(e);if(y(f)){d=c.mergeOptions(d,Ea(f,b))}else{d[b.join(".")]=f}b.pop()});return d};var B=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var C=function(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}};var D=function(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b};var E=function(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a};var F=function Fa(a){return a.charAt(0).toUpperCase()+a.slice(1)};var G=function Ga(a,b){return a+"x"+b};var H={memory:["jsHeapSizeLimit","usedJSHeapSize","totalJSHeapSize"],navigation:["redirectCount","type","directedMigration"],timing:["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]};var I={bitrate:"bitrates",event:"events"};var J=function(){function a(){C(this,a);this.data_={bitrates:{bitrates:[],playlists:[],rendered:[],throughput:[]},events:[],mr:0,performance:{},player:{dimensions:[],pixelratio:[],screendimensions:[]},frames:{}}}a.prototype.keys=function b(){return Object.keys(this.data_)};a.prototype.append=function d(a){a=I.hasOwnProperty(a)?I[a]:a;if(!this.data_.hasOwnProperty(a)){throw new Error('"'+a+'" is not a known QosBuffer key')}for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d<b;d++){c[d-1]=arguments[d]}this["append"+F(a)+"_"].apply(this,c)};a.prototype.flush=function e(){var a=this;for(var b=arguments.length,d=Array(b),e=0;e<b;e++){d[e]=arguments[e]}if(!d.length){d=this.keys()}for(var f=0;f<d.length;f++){if(!this.data_.hasOwnProperty(d[f])){throw new Error('"'+d[f]+'" is not a known QosBuffer key')}}var g=d.map(function(b){return a["flush"+F(b)+"_"]()});var h=c.mergeOptions.apply(c,g);var i=t.stringify(h).length;if(i>3e3&&h["qos.bitrates"]){h["qos.bitrates"]=JSON.stringify({bitrates:[],playlists:[],rendered:[],throughput:[]})}return h};a.prototype.appendBitrates_=function g(a){var b=this;if(typeof a.playlists!=="undefined"){this.data_.bitrates.playlists.push([Date.now(),a.bitrates,a.playlists]);delete a.bitrates;delete a.playlists}Object.keys(a).forEach(function(c){b.data_.bitrates[c].push([Date.now(),a[c]])})};a.prototype.appendMr_=function h(a){this.data_.mr=a?1:null};a.prototype.appendPerformance_=function i(a){var b=this;var c=f.performance;if(!c||(typeof c==="undefined"?"undefined":B(c))!=="object"){return}Object.keys(H).forEach(function(a){if(c[a]&&B(c[a])==="object"){b.data_.performance[a]=z(c[a],H[a])}});if(typeof c.measure==="function"){["bcParse","bcInit"].forEach(function(a){c.getEntriesByName(a,"measure").forEach(function(c){b.data_.performance[a]=c.duration})})}if(this.data_.performance.navigation){this.data_.performance.navigation.directedMigration=a?t.decode(a).directedMigration==="true":false}};a.prototype.appendFrames_=function j(a){this.data_.frames={dropped:a.droppedVideoFrames,corrupted:a.corruptedVideoFrames,total:a.totalVideoFrames}};a.prototype.appendPlayer_=function k(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();this.data_.player.dimensions.push([b,G(a.width,a.height),G(a.computedWidth,a.computedHeight)]);this.data_.player.pixelratio.push([b,f.devicePixelRatio]);this.data_.player.screendimensions.push([b,G(f.screen.width,f.screen.height)])};a.prototype.appendEvents_=function l(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.data_.events.push({type:b.join("."),time:Date.now()})};a.prototype.flushBitrates_=function m(){var a=this.data_.bitrates;var b={};if(a.bitrates.length||a.playlists.length||a.rendered.length||a.throughput.length){b["qos.bitrates"]=JSON.stringify(a)}a.bitrates.length=0;a.playlists.length=0;a.rendered.length=0;a.throughput.length=0;return b};a.prototype.flushEvents_=function n(){var a=this.data_.events;var b={};var c="ad.ads-ad-started";var d="qos.events."+c;a.forEach(function(a){var d="qos.events."+a.type;if(a.type===c){if(!b[d]){b[d]=[]}b[d].push(a.time)}else{b[d]=a.time}});if(b[d]){b[d]=JSON.stringify(b[d])}a.length=0;return b};a.prototype.flushMr_=function o(){return{"qos.mr":this.data_.mr}};a.prototype.flushFrames_=function p(){var a=A(this.data_.frames,["qos","frames"]);this.data_.frames={};return a};a.prototype.flushPerformance_=function q(){return A(this.data_.performance,["qos","performance"])};a.prototype.flushPlayer_=function r(){var a=this.data_.player;var b={};Object.keys(a).forEach(function(c){var d=a[c];if(d.length){b["qos.player."+c]=JSON.stringify(d);d.length=0}});return b};return a}();var K=["ad-playback","ads-ready?","postroll?","preroll?"];var L=function Ha(a){return!!a.ads&&B(a.ads)==="object"};var M=function Ia(a){return L(a)?a.ads.state:undefined};var N=function Ja(a){return L(a)&&!!a.adonly};var O=function Ka(a){return K.indexOf(a)>-1};var P=function La(a){return L(a)&&O(a.ads.state)||N(a)};var Q=function Ma(a){var b={};if(a.ima3!==undefined){var c=a.ima3.currentAdEventInfo;b.plugin="ima3";if(typeof a.ima3==="function"){return b}b.pluginVersion=a.ima3.VERSION||a.ima3.version;b.adTech=a.ima3.adTech;b.requestMode=a.ima3.settings.requestMode;b.timeout=a.ima3.settings.timeout;if(c){b.adType=c.adType;b.adPodLength=c.adPodLength;b.adPodId=c.adPodId;b.creativeFormat=c.creativeFormat;b.creativeLength=c.creativeLength;b.creativeId=c.creativeId;b.creativeIndex=c.creativeIndex;b.creativeUrl=c.creativeUrl;b.advertiserName=c.advertiserName;b.wrapperCreativeIds=c.wrapperCreativeIds;b.dealId=c.dealId;b.surveyUrl=c.surveyUrl;b.adId=c.adId;b.adTitle=c.adTitle;b.adSystem=c.adSystem;b.adIsciId=c.adIsciId;b.creativeAdId=c.creativeAdId;if(c.creativeIndex&&c.creativeIndex.length){b.firstPlayedAdIndex=c.creativeIndex[0]}b.startedInAdPod=c.started;b.completedInAdPod=c.completed}}else if(a.FreeWheelPlugin!==undefined){b.plugin="freewheel";if(typeof a.FreeWheelPlugin==="function"){return b}b.pluginVersion=a.FreeWheelPlugin.VERSION||a.FreeWheelPlugin.getVersion()}return b};var R=function Na(a){a.adBreakIndex=null;a.hasAdBreakStarted=false;a["ads-request"]=null;a["ads-response-received"]=null;a["ads-loading"]=[];a["ads-ad-started"]=[];a["ads-ad-ended"]=[]};var S=function Oa(){var a={};R(a);return a};var T=function Pa(a,b,c){var d=a.currentAdSequence_;var e=["ads-loading","ads-ad-started","ads-ad-ended"];if(b==="ads-request"){R(d)}else if(b==="adstart"||b==="ads-loading"){if(!d.hasAdBreakStarted){if(d.adBreakIndex===null){d.adBreakIndex=0}else{d.adBreakIndex++}d.hasAdBreakStarted=true;e.forEach(function(a){d[a].push([])})}}else if(b==="adend"){d.hasAdBreakStarted=false}if(e.indexOf(b)>-1){d[b][d.adBreakIndex].push(c)}else if(b==="ads-request"||b==="ads-response-received"){d[b]=c}};var U=["account","domain","event","player"];var V=function Qa(a,b){return Math.floor(a)+".."+(Math.floor(b)-1)};var W=function Ra(a){var b=2166136261;var c=b;for(var d=0;d<a.length;++d){c^=a.charCodeAt(d);c*=16777619}return c>>>0};var X=function Sa(a,b){Object.keys(b).forEach(function(a){if(v(b[a])){delete b[a]}});return a+"?"+t.stringify(b)};var Y=function Ta(a,b,c,d,e){var f=b-a;if(e!==undefined&&e<b){f-=e-a}else if(c!==undefined&&d!==undefined){if(c<a){c=a}if(d>b){d=b}f-=d-c}return f};var Z=function Ua(a){for(var b=arguments.length,d=Array(b>1?b-1:0),e=1;e<b;e++){d[e-1]=arguments[e]}var f=c.mergeOptions.apply(c,[a.params||{}].concat(d));delete a.params;return f};var $=function Va(a,b){var c=a.mediainfo;var d=c&&c.duration||a.duration();if(c){if(b.video===undefined){b.video=c.id}if(b.video_name===undefined){b.video_name=c.name}}if(w(d)&&b.video_duration===undefined){b.video_duration=Math.floor(d);if(b.video_duration<1||b.video_duration===Infinity){b.video_duration=null}}return b};var _=function Wa(a,b){var c=a.preload();if(typeof c!=="string"){c=a.el().getAttribute("preload")}if(typeof c==="string"&&c.length===0){c="auto"}if(c){b.preload=c}};var aa=function Xa(a){var b;var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(a.user()){d.user=W(a.user())}if(v(d.time)){d.time=Date.now()}e.qos=Array.isArray(e.qos)?e.qos:[];e.qos.push("mr");d=c.mergeOptions(a.defaultParams_,d,(b=a.qos).flush.apply(b,e.qos));for(var f=0;f<U.length;f++){if(v(d[U[f]])){throw new Error('the "'+U[f]+'" param is required')}}var g=l.createElement("img");var h=g.src=X(a.baseUrl_,d);if(a.metrics_){a.metrics_.push(d)}a.logger(d.event,d);return{params:d,url:h}};var ba=function Ya(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var d=c.error,e=c.xhr;if(e){var f=["BCOV-Debug-Cache-Stats","BCOV-instance","X-Cache","Via","X-Amz-Cf-Id"];f.forEach(function(a){b[a]=e.getResponseHeader(a)});if(d){d.status=e.status}}if(d){b.error=JSON.stringify(d)}return aa(a,b,c)};var ca=function(){function a(b,c,d){var e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};C(this,a);this.baseUrl_=d;this.logger_=e.logger;this.history_=c;this.currentAdSequence_=S();this.player_=b;this.metrics_=e.trackMetrics?[]:null;this.user(e.user||null);this.defaultParams_={domain:"videocloud",platform:"video-js",session:""};for(var f=0;f<3;f++){this.defaultParams_.session+=(Math.random()*4294967295>>>0).toString(16)}this.qos=new J(this);this.resetTimesOf()}a.prototype.logger=function b(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.logger_.apply(this,["Client"].concat(b))};a.prototype.metrics=function d(){c.log.warn("Analytics client will no longer tracks metrics;"+" this method - metrics() - is deprecated and will"+" be removed in a future version.");return this.metrics_?this.metrics_.map(c.mergeOptions):null};a.prototype.resetTimesOf=function e(){this.timeOfImpression=null;this.timeOfView=null};a.prototype.defaultParams=function f(a){if(a){a=u(a)?a():a;this.defaultParams_=c.mergeOptions(this.defaultParams_,a)}return this.defaultParams_};a.prototype.getSession=function g(){return this.defaultParams_.session};a.prototype.user=function h(a){if(a===null||x(a)||w(a)){this.user_=a}return this.user_};a.prototype.sendVideoImpression=function i(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=Z(a,{event:"video_impression"});var c=Q(this.player_);if(Object.keys(c).length>0){b.web_ad_info=JSON.stringify(c)}var d=x(this.player_.currentSrc());if(!d||this.timeOfImpression){this.logger("skipped video_impression",{reason:!d&&"there is no source"||"already sent at "+this.timeOfImpression});return null}$(this.player_,b);b.autoplay=this.player_.autoplay();_(this.player_,b);var e=aa(this,b,a);if(e){this.timeOfImpression=Number(e.params.time)}return e};a.prototype.sendVideoView=function j(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=Z(a,{event:"video_view"});var c=x(this.player_.currentSrc());if(!c||this.timeOfView||!this.timeOfImpression){this.logger("skipped video_view",{reason:!c&&"there is no source"||this.timeOfView&&"already sent at "+this.timeOfView||'"video_impression" not sent'});return null}var d=this.history_.first("canplay");var e=this.history_.first("loadstart");var f=this.history_.first("play");if(d){b.load_time_ms=d-this.timeOfImpression}b.start_time_ms=Y(f||e,b.time,this.history_.first("adstart",true),this.history_.first("adend",true),this.history_.first("adtimeout",true));$(this.player_,b);var g=aa(this,b,a);if(g){this.timeOfView=Number(g.params.time)}return g};a.prototype.sendVideoEngagement=function k(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var d=Z(c,{event:"video_engagement"});var e=b.buffered,f=b.duration,g=b.playbackEndTime,h=b.height,i=b.mediainfo,j=b.playbackRate,k=b.rebufferingCount,l=b.rendition,m=b.playbackStartTime,n=b.stats,o=b.width;var p=g-m;c.qos=c.qos||["bitrates","events","player","frames"];a.length=a.end-a.start;this.logger("video_engagement requested",{options:c,period:a,playbackStartTime:m,playbackLength:p,playbackEndTime:g});d.player_height=h;d.player_width=o;d.video_duration=f;if(i){d.video=i.id;d.video_name=i.name}if(l){d.rendition_url=l.url;d.rendition_indicated_bps=l.indicatedBPS;d.rendition_mime_type=l.mimeType;d.rendition_height=l.height;d.rendition_width=l.width}if(n){if(!v(n.mediaRequests)){d.media_requests=n.mediaRequests}if(!v(n.mediaTransferDuration)){d.media_transfer_duration=n.mediaTransferDuration}if(!v(n.mediaBytesTransferred)){d.media_bytes_transferred=n.mediaBytesTransferred}if(!v(n.bandwidth)){d.measured_bps=n.bandwidth}}var q=p/j*1e3;var r=a.end-a.start;var s=100;var t=Math.floor((r-q)/s)*s/1e3;if(k>0){d.rebuffering_count=k}if(t>0){d.rebuffering_seconds=t}if(e){var u=0;for(var w=0;w<e.length;w++){var x=e.start(w);var y=e.end(w);if(g>=x&&g<=y){u=y-g;break}}d.forward_buffer_seconds=u}if(p<1&&!d.rebuffering_seconds){this.logger("video_engagement skipped; no rebuffering and playback duration too short");return null}$(this.player_,d);if(d.video_duration===Infinity){d.video_seconds_viewed=Math.round(p);delete d.video_duration}else if(p>=1){d.range=V(m,g)}return aa(this,d,c)};a.prototype.sendVideoComplete=function l(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=Z(a,{event:"video_complete"});$(this.player_,b);return aa(this,b,a)};a.prototype.sendError=function m(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=this.player_.error();if(!b){this.logger("skipped error because there was no error");return null}var c=Z(a,{event:"error"});var d=typeof this.player_.errors==="function"&&typeof this.player_.errors.getAll==="function"&&this.player_.errors.getAll()||{unknown:{type:"MEDIA_ERR_UNKNOWN"}};if(b&&d.hasOwnProperty(String(b.code))){c.error_code=d[String(b.code)].type}else if(b.type!==undefined){c.error_code=b.type}else{c.error_code=d.unknown.type}$(this.player_,c);return aa(this,c,a)};a.prototype.sendCatalogRequest=function n(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=Z(b,{event:"catalog_request",url:a});return ba(this,c,b)};a.prototype.sendCatalogRequestError=function o(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=Z(b,{event:"catalog_request_error",url:a});if(b.error){b.error=z(b.error,["code","message","type"])}return ba(this,c,b)};a.prototype.sendCatalogResponse=function p(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=Z(b,{event:"catalog_response",url:a});c.time=Date.now();c.response_time_ms=c.time-this.history_.last("catalog_request");return ba(this,c,b)};a.prototype.sendAdEnd=function q(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=Q(this.player_);var c=this.currentAdSequence_["ads-ad-started"];var d=this.currentAdSequence_.adBreakIndex;if(b.plugin!==undefined){if(b.adType==="preroll"&&c.length>0&&c[0].length>0){var e=this.history_.first("play",true);b.prerollDelay=c[0][0]-e;b.firstPlayInSession=e}b.adsRequest=this.currentAdSequence_["ads-request"];b.adsResponseReceived=this.currentAdSequence_["ads-response-received"];b.adsLoading=this.currentAdSequence_["ads-loading"][d];b.adsAdStarted=this.currentAdSequence_["ads-ad-started"][d];b.adsAdEnded=this.currentAdSequence_["ads-ad-ended"][d]}else{b.plugin="unknown"}var f={event:"ad_end",web_ad_info:JSON.stringify(b)};return aa(this,$(this.player_,Z(a,f)),a)};a.prototype.sendAdHardTimeout=function r(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,$(this.player_,Z(a,{event:"ad_hard_timeout"})),a)};a.prototype.sendAdStart=function s(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,$(this.player_,Z(a,{event:"ad_start"})),a)};a.prototype.sendAdTimeout=function t(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,$(this.player_,Z(a,{event:"ad_timeout"})),a)};a.prototype.sendPlayRequest=function y(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,$(this.player_,Z(a,{event:"play_request"})),a)};a.prototype.sendPlayerInit=function A(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,Z(a,{event:"player_init"}),a)};a.prototype.sendPlayerLoad=function B(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return aa(this,Z(a,{event:"player_load"}),a)};return a}();var da=function(a){var b=a.bcAnalyticsLogger&&a.bcAnalyticsLogger();var c=function d(){return b&&b.add.apply(b,arguments)};return c};var ea=1e4;var fa=function Za(a){return Boolean(a.onceux&&a.onceux.currentTime&&a.onceux.timeline)};var ga=function(a){D(b,a);function b(c,d){C(this,b);var e=E(this,a.call(this));e.player_=c;e.logger_=d;e.stateBySrc_={};e.lastStateRecord_=0;return e}b.prototype.logger=function d(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.logger_.apply(this,["Engager"].concat(b))};b.prototype.stateBySrc=function e(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.player_.currentSrc();if(!this.stateBySrc_.hasOwnProperty(a)){this.stateBySrc_[a]={buffered:null,duration:0,end:0,height:0,mediainfo:null,playbackRate:1,rebufferingCount:0,src:a,start:0,width:0}}return this.stateBySrc_[a]};b.prototype.clearStateBySrc=function f(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.player_.currentSrc();this.logger("cleared",this.stateBySrc_[a]);delete this.stateBySrc_[a]};b.prototype.recordState=function g(){var a=this.player_;var b=this.stateBySrc();b.mediainfo=a.mediainfo;b.playbackEndTime=a.currentTime();if(fa(a)){b.duration=a.onceux.timeline.contentDuration}else{b.duration=a.duration()}b.buffered=a.buffered();b.playbackRate=a.playbackRate()};b.prototype.isTracking=function h(){return!!this.timerId_};b.prototype.start=function i(){var a=this;var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var c=b.reason,d=b.src;if(!d){d=this.player_.currentSrc()}var e=this.stateBySrc(d);e.playbackStartTime=e.playbackEndTime=this.player_.currentTime();e.rebufferingCount=0;this.player_.clearTimeout(this.timerId_);this.timerCreatedAt_=Date.now();this.timerId_=this.player_.setTimeout(function(){return a.stop({src:d,reason:"engagement timer fired"})},ea);this.logger("started",{reason:c,time:this.timerCreatedAt_});return this};b.prototype.prepareState_=function j(a){var b=this.player_;var d=this.stateBySrc(a);d.height=Math.round(b.currentHeight());d.width=Math.round(b.currentWidth());var e=b.tech_.hls;if(e){if(e.stats){d.stats=e.stats}if(e.playlists&&e.playlists.media()){var f=e.playlists.media();var g=d.rendition={ url:f.resolvedUri,mimeType:"video/x-mpegurl"};if(f.attributes){g.indicatedBPS=f.attributes.BANDWIDTH;if(f.attributes.RESOLUTION){g.height=f.attributes.RESOLUTION.height;g.width=f.attributes.RESOLUTION.width}}}}d.videoPlaybackQuality=b.getVideoPlaybackQuality();if(d.mediainfo){var h={};Object.keys(d.mediainfo).forEach(function(a){if(!/_/.test(a)){h[a]=d.mediainfo[a]}});d.mediainfo=h}return c.mergeOptions(d)};b.prototype.stop=function k(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!a.src){a.src=this.player_.currentSrc()}if(this.isTracking()){this.player_.clearTimeout(this.timerId_);this.timerId_=null;a.state=this.prepareState_(a.src);a.period=a.period||{};a.period.start=a.period.start||this.timerCreatedAt_;a.period.end=a.period.end||Date.now();this.logger("stopped",a);this.trigger({type:"engagement",engagement:a})}return this};return b}(c.EventTarget);var ha=["progress","seeking","suspend","timeupdate"];var ia=["seek","stable","unstable"];var ja=["adend","adscanceled","adserror","adskip","adsready","adstart","adtimeout","contentplayback","contentupdate","nopostroll","nopreroll","readyforpreroll"];var ka=[].concat(c.getTech("Html5").Events);var la=ka.filter(function(a){return ha.indexOf(a)===-1});var ma=["ads-request","ads-response-received","adstart","ads-loading","ads-ad-started","ads-ad-ended","adend"];var na=["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"];var oa=["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"];var pa=function(){function a(b){C(this,a);this.logger_=b;this.events_=[]}a.prototype.add=function b(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();var d=arguments[2];var e=c.mergeOptions(d,{name:a,time:b});this.events_.push(e);this.logger_("Player",a,e);return b};a.prototype.record=function d(a,b){var c=Date.now();this.add(a,c,{adState:M(b),isInAdState:P(b),networkState:na[b.networkState()],readyState:oa[b.readyState()]});return c};a.prototype.reset=function e(){this.events_.length=0};a.prototype.filter=function f(a){if(typeof a!=="function"){return this.events_.filter(function(b){return b.name===a})}return this.events_.filter(a)};a.prototype.map=function g(a){return this.events_.map(a)};a.prototype.names=function h(){return this.map(function(a){return a.name})};a.prototype.first=function i(a,b){for(var c=0;c<this.events_.length;c++){var d=this.events_[c];if(!b&&d.isInAdState){continue}if(d.name===a){return d.time}}};a.prototype.last=function j(a,b){var c=this.events_.length;while(c--){var d=this.events_[c];if(!b&&d.isInAdState){continue}if(d.name===a){return d.time}}};return a}();var qa=function(){function a(){C(this,a);this.log_={}}a.prototype.put=function b(a){this.log_[a]=true};a.prototype.peek=function c(){return Object.keys(this.log_)};a.prototype.flush=function d(){var a=Object.keys(this.log_);this.log_={};return a};return a}();var ra=c.browser.IE_VERSION&&c.browser.IE_VERSION<11||false;var sa=false;var ta=function $a(a){return function(){for(var b=arguments.length,d=Array(b),e=0;e<b;e++){d[e]=arguments[e]}var f=a?c.log[a]:c.log;if(sa&&u(f)){if(ra){f(["analytics:"].concat(d.map(function(a){return y(a)||Array.isArray(a)?JSON.stringify(a):a})).join(" "))}else{f.apply(undefined,["analytics:"].concat(d))}}}};var ua=ta();ua.enable=function(){sa=true};ua.enabled=function(){return sa};ua.disable=function(){sa=false};ua.skip=function(a,b){return ua('skipped "'+a+'" because '+b)};["clear","debug","error","info","move","profile","resize","warn"].forEach(function(a){ua[a]=ta(a)});var va={production:"//metrics.brightcove.com/v2/tracker",staging:"http://metrics.aws-qa.rnatest.brightcove.com/v2/tracker"};var wa=function _a(a){return{computedHeight:a.currentHeight(),computedWidth:a.currentWidth(),height:a.height(),width:a.width()}};var xa=function ab(){try{return f.parent!==f.self}catch(a){return true}};var ya=function bb(){var a=this;var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var d=false;var e=false;var g={};var h=this.options_["data-player"]||this.el().getAttribute("data-player");var i=this.options_["data-embed"]||this.el().getAttribute("data-embed");b=c.mergeOptions(b);b.account=b.account||this.options_["data-account"];b.env=va.hasOwnProperty(b.env)?b.env:"production";b.player=b.player||["players.brightcove.com/",b.account,"/",h,"_",i].join("");if(b.applicationId){b.player=b.player+"/"+b.applicationId}var j=da(this);var k=new ga(this,j);var m=new pa(j);var n=new qa;var o=this.options_["data-usage"]?this.options_["data-usage"].split(","):[];o.forEach(function(a){n.put(a)});if(b.verbose){ua.enable()}var p=new ca(this,m,x(b.analyticsUrl)?b.analyticsUrl:va[b.env],{logger:j,trackMetrics:!!b.verbose,user:b.user});p.defaultParams(function(){var a={account:b.account,destination:f.location.href,platform_version:b.platformVersion,player:b.player,player_name:b.playerName,source:l.referrer};if(xa()){a.destination=l.referrer;try{a.source=f.parent.document.referrer}catch(c){a.source=null}}return a});var q=this.bcAnalytics={client:p,history:m,log:ua,settings:b,VERSION:"__VERSION__"};if(Object.defineProperty&&!c.browser.IS_IE8){["client","history","log"].forEach(function(a){var b=q[a];Object.defineProperty(q,a,{get:function d(){c.log.warn("Access to player.bcAnalytics."+a+" is DEPRECATED.");Object.defineProperty(q,a,{value:b});return b}})})}this.on("usage",function(a){if(!a.name){return c.log.warn("Ignored usage event without a `name` parameter")}n.put(a.name)});var r=function s(b){j("Workflow",b?'saw "'+b.type+'"':"called manually");if(P(a)){j("Workflow","bailing because player is in an ad state");return}var c=m.first("loadstart");var d=m.first("play");var e=m.last("playing");j("Workflow","checking history",{loadstart:c,play:d,playing:e});if((d||e)&&!k.isTracking()&&!a.paused()){k.start({period:{start:d||e},reason:"workflow detected that it is playing"})}if(p.timeOfImpression&&p.timeOfView){return}g.workflow=g.workflow||a.setTimeout(function(){g.workflow=null;c=m.first("loadstart");d=m.first("play");e=m.last("playing");if((c||d)&&!p.timeOfImpression){p.sendVideoImpression({params:{time:Math.min(c||Infinity,d||Infinity)}})}if(c&&e&&!p.timeOfView){j("Workflow","complete",{order:m.names()});p.sendVideoView({params:{time:e}})}},1)};k.on("engagement",function(b){var c=b.engagement,d=c.ignoreAdState,e=c.period,g=c.state;var h=P(a);var i={params:{time:e.end}};var j=n.peek();if(j&&j.length){i.params.usage=j.map(f.encodeURIComponent).sort().join(",")}if(!h||d){p.qos.append("frames",g.videoPlaybackQuality);if(p.sendVideoEngagement(e,g,i)&&!a.paused()){if(h){return}n.flush();k.start({reason:"sent engagement and still playing"})}}});this.on("dispose",function(){k.off()});this.on(la.concat(ja,ia).concat("sourceunstable"),function(b){return m.record(b.type,a)});this.on(la.concat("ads-ad-started"),function(b){p.qos.append("event",P(a)?"ad":"content",b.type)});this.on(["loadedmetadata","resize"],function(){p.qos.append("player",wa(a))});this.on("fullscreenchange",function(){var b=Date.now();g.fullscreen=a.setTimeout(function(){g.fullscreen=null;p.qos.append("player",wa(a),b)},500)});this.on("mediachange",function(){if(a.tech_.hls){var b=a.tech_.hls.playlists.media();p.qos.append("bitrate",{bitrates:a.tech_.hls.bandwidth,playlists:b&&b.attributes&&b.attributes.BANDWIDTH})}});this.on("ready",function(){a.tech_.on("usage",function(a){if(!a.name){return c.log.warn("Ignored usage event without a `name` parameter")}n.put(a.name)});a.tech_.on("bandwidthupdate",function(){p.qos.append("bitrate",{bitrates:a.tech_.hls.bandwidth,throughput:Math.round(a.tech_.hls.throughput)})});a.tech_.on("liveresync",function(){a.trigger({type:"usage",name:"hls-live-resync"})});a.tech_.on("videounderflow",function(){a.trigger({type:"usage",name:"hls-video-underflow"})});a.on("loadedmetadata",function(){var b=a.textTracks();for(var c=0;c<b.length;c++){if(b[c].label==="segment-metadata"){(function(){var d=b[c];var e=void 0;d.on("cuechange",function(){var b=d.activeCues[0];if(b){var c=a.tech_.hls.playlists.master.playlists[b.value.playlist];if(e!==c.uri){e=c.uri;if(c.attributes&&c.attributes.BANDWIDTH){p.qos.append("bitrate",{rendered:c.attributes.BANDWIDTH})}}}})})()}}})});this.on("waiting",function(b){if(!e&&!P(a)){k.stateBySrc().rebufferingCount++}});this.on("sourcechanged",function(b,c){var f=c.interimEvents;var h=f[0].event;var i=function l(){if(!e&&!P(a)){k.recordState()}};j("Player","sourcechanged",{by:h.type,interim:f.map(function(a){return a.event.type}),from:c.from,to:c.to});if(c.from){k.stop({reason:"changing sources",period:{end:f[0].time},ignoreAdState:true,src:c.from});k.clearStateBySrc(c.from)}d=false;e=false;p.resetTimesOf();m.reset();f.forEach(function(a){return m.add(a.event.type,a.time)});r();a.onPerSrc("timeupdate",i);a.onePerSrc("sourceunstable",function(){if(M(a)==="content-resuming"){return}var b=a.currentSrc();k.stop({ignoreAdState:true,reason:"sourceunstable",src:b});if(!P(a)){a.off("timeupdate",i)}});a.onPerSrc(["loadstart","play","playing"],r);a.onPerSrc(["pause","ratechange"],function(b){if(!e&&!P(a)&&!a.ended()){k.stop({reason:'saw "'+b.type+'"'});if(a.paused()){a.onePerSrc("playing",function(){k.start({reason:"playback began after a pause"})})}else if(b.type==="ratechange"){g.ratechange=a.setTimeout(function(){g.ratechange=null;k.start({reason:"the playback rate changed"})},1)}}});a.onPerSrc("unstable",function(){if(!e&&!P(a)){e=true;k.stop({reason:"seeking"})}});a.onPerSrc("seek",function(){if(e&&!P(a)){e=false;k.start({reason:"stopped seeking"})}});a.onePerSrc("adstart",function(){if(!N(a)){p.sendVideoImpression({params:{time:m.last("adstart",true)-100}})}});a.onPerSrc("adstart",function(){d=a.ended();k.stop({ignoreAdState:true,period:{end:m.last("adstart",true)},reason:"saw adstart"})});a.onePerSrc("adend",function(){if(!a.paused()&&!a.ended()){r()}});a.onPerSrc("adend",function(){if(!d){k.start({reason:'saw "adend"'})}});a.onePerSrc("ended",function(){k.stop({reason:"end of content"});p.sendVideoComplete()})});this.on("catalog_request",function(b){m.record(b.type,a);p.sendCatalogRequest(b.url)});this.on("catalog_request_error",function(b){m.record(b.type,a);p.sendCatalogRequestError(b.url,{error:b.error,xhr:b.response})});this.on("catalog_response",function(b){m.record(b.type,a);p.sendCatalogResponse(b.url,{xhr:b.response})});this.on("play",function(b){if(P(a)){return}var c={params:{time:Date.now()}};if(a.perSourceBehaviors.isSrcStable()){p.sendPlayRequest(c)}else{a.one("sourcechanged",function(){return p.sendPlayRequest(c)})}});this.on("error",function(){if(!P(a)){p.sendError()}});this.on("adstart",function(b){p.sendAdStart();g.perSrcDisable=a.setTimeout(function(){g.perSrcDisable=null;a.perSourceBehaviors.disable()},1)});this.on("adend",function(b){p.sendAdEnd();if(g.perSrcDisable){a.clearTimeout(g.perSrcDisable)}else{a.perSourceBehaviors.enable()}});this.on("adtimeout",function(){return p.sendAdTimeout()});this.on("ad-hard-timeout",function(){return p.sendAdHardTimeout()});this.on(ma,function(a){T(p,a.type,Date.now())});p.qos.append("mr",b.mr);p.sendPlayerInit();p.sendError();this.ready(function(){p.defaultParams({feature:N(a)?"adonly":null});p.qos.append("performance",(f.location.href||"").split("?")[1]);p.qos.append("player",wa(a));if("hidden"in l&&"visibilityState"in l){if(l.hidden){a.trigger({type:"usage",name:"document-hidden"})}var b=function c(){a.trigger({type:"usage",name:"document-"+l.visibilityState})};l.addEventListener("visibilitychange",b);a.on("dispose",function(){l.removeEventListener("visibilitychange",b)})}if(l.querySelector(".bc-iframe")){a.trigger({type:"usage",name:"iframe-embed"})}else{a.trigger({type:"usage",name:"inpage-embed"})}p.sendPlayerLoad({qos:p.qos.keys(),params:{usage:n.flush()}})})};ya.VERSION="__VERSION__";if(c.registerPlugin){c.registerPlugin("bcAnalytics",ya)}else{c.plugin("bcAnalytics",ya)}return ya});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsErrors=b(a.videojs)})(this,function(c){"use strict";c="default"in c?c["default"]:c;var d=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var e={};var f=(Object.freeze||Object)({"default":e});var g=f&&e||f;var h=typeof d!=="undefined"?d:typeof a!=="undefined"?a:{};var i;if(typeof b!=="undefined"){i=b}else{i=h["__GLOBAL_DOCUMENT_CACHE@4"];if(!i){i=h["__GLOBAL_DOCUMENT_CACHE@4"]=g}}var j=i;var k=c.getComponent("Flash");var l=!c.browser.IS_IPHONE;var m=c.registerPlugin||c.plugin;var n={header:"",code:"",message:"",timeout:45*1e3,dismiss:l,progressDisabled:false,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"}}};var o=function q(a,b){var d=void 0;var e=void 0;var f=void 0;var g=[];var h=function u(a){b.errors=c.mergeOptions(b.errors,a);Object.keys(b.errors).forEach(function(a){var c=b.errors[a];if(!c.type){c.type=a}})};h();var i=function v(){a.clearTimeout(e);if(f){f=false;a.removeClass("vjs-waiting")}e=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}f=true;a.addClass("vjs-waiting")},1e3);a.clearTimeout(d);d=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},b.timeout);if(a.error()&&a.error().code===-2){a.error(null)}};var l=function w(){var b=void 0;while(g.length){b=g.shift();a.off(b[0],b[1])}a.clearTimeout(d);a.clearTimeout(e)};var m=function x(b,c){var d=function e(){if(!a.error()){var b=a.$(".vjs-tech");if(b&&b.type==="application/x-shockwave-flash"&&!b.vjs_getProperty){a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});return}if(a.paused()){return i()}if(a.ended()){return i()}}c.call(this)};a.on(b,d);g.push([b,d])};var o=function y(){var c=0;l();i();m(["timeupdate","adtimeupdate"],function(){var b=a.currentTime();if(b!==c){c=b;i()}});if(!b.progressDisabled){m("progress",i)}};var p=function z(){if(!a.currentSrc()){a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};var r=function A(){var d="";var e=a.error();var f=j.createElement("div");var g="";if(!e){return}e=c.mergeOptions(e,b.errors[e.code||0]);if(e.message){d='<div class="vjs-errors-details">'+a.localize("Technical details")+'\n : <div class="vjs-errors-message">'+a.localize(e.message)+"</div>\n </div>"}if(e.code===4&&k&&!k.isSupported()){var h=a.localize("If you are using an older browser please try upgrading or installing Flash.");d+='<span class="vjs-errors-flashmessage">'+h+"</span>"}var i=a.getChild("errorDisplay");f.className="vjs-errors-dialog";f.id="vjs-errors-dialog";g='<div class="vjs-errors-content-container">\n <h2 class="vjs-errors-headline">'+this.localize(e.headline)+"</h2>\n <div><b>"+this.localize("Error Code")+"</b>: "+(e.type||e.code)+"</div>\n "+d+"\n </div>";var l=i.closeable(!("dismiss"in e)||e.dismiss);if(l){g+='<div class="vjs-errors-ok-button-container">\n <button class="vjs-errors-ok-button">'+this.localize("OK")+"</button>\n </div>";f.innerHTML=g;i.fillWith(f);i.contentEl().firstChild.appendChild(i.getChild("closeButton").el());var m=i.el().querySelector(".vjs-errors-ok-button");a.on(m,"click",function(){i.close()})}else{f.innerHTML=g;i.fillWith(f)}if(a.currentWidth()<=600||a.currentHeight()<=250){i.addClass("vjs-xs")}i.one("modalclose",function(){return a.error(null)})};var s=function B(){l();a.removeClass("vjs-errors");a.off("play",o);a.off("play",p);a.off("dispose",B);a.off(["aderror","error"],r)};var t=function C(b){s();q(a,c.mergeOptions(n,b))};t.extend=function(a){return h(a)};t.getAll=function(){return c.mergeOptions(b.errors)};t.disableProgress=function(a){b.progressDisabled=a;o()};a.on("play",o);a.on("play",p);a.on("dispose",s);a.on(["aderror","error"],r);a.ready(function(){a.addClass("vjs-errors")});a.errors=t};var p=function r(a){o(this,c.mergeOptions(n,a))};["extend","getAll","disableProgress"].forEach(function(a){p[a]=function(){c.log.warn("The errors."+a+"() method is not available until the plugin has been initialized!")}});m("errors",p);return p});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsBcCatalog=b(a.videojs)})(this,function(c){"use strict";c="default"in c?c["default"]:c;var d="3.15.1";var e=function ua(a,b,c){if(a){return{id:a,type:"video"}}else if(b){return{id:b,type:"playlist",playlistVideoId:c}}};var f=function va(a,b,d){var f=b.options_;var g=Boolean(b.el().ownerDocument.querySelector(".bc-iframe"));var h=c.bc_.qs();d=d?h.parse(d):h.search;["videoId","playlistId","playlistVideoId"].forEach(function(a){if(Array.isArray(d[a])){d[a]=d[a].pop()}});if(a.playlistId&&a.videoId||f["data-playlist-id"]&&f["data-video-id"]){b.error({headline:"Bad Request: Video and Playlist Ids Provided",type:"PLAYER_ERR_CONFLICTING_DATA",code:-3,message:"Both video and playlist ids were provided in this player. Please use either a video id or a playlist id but not both."});return}return g&&e(d.videoId,d.playlistId,d.playlistVideoId)||e(f["data-video-id"],f["data-playlist-id"],f["data-playlist-video-id"]||d.playlistVideoId)||e(a.videoId,a.playlistId,d.playlistVideoId||a.playlistVideoId)};var g=function wa(a){if(!c.bc_.isFn(a.errors)||!c.bc_.isFn(a.errors.extend)){return}a.errors.extend({VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND:{headline:"The Video Cloud account was not found."},VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND:{headline:"The Video Cloud resource was not found."},VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND:{headline:"The Video Cloud video was not found."},VIDEO_CLOUD_ERR_NOT_PLAYABLE:{headline:"The Video Cloud video is not playable."}})};var h={403:{ACCESS_DENIED:{DOMAIN:"PLAYER_ERR_DOMAIN_RESTRICTED",CLIENT_IP:"PLAYER_ERR_IP_RESTRICTED",CLIENT_GEO:"PLAYER_ERR_GEO_RESTRICTED"},VIDEO_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_NOT_PLAYABLE"},404:{ACCOUNT_NOT_FOUND:"VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND",RESOURCE_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND",VIDEO_NOT_FOUND:"VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND"}};var i=function xa(a,b){var d=b.shift();if(c.bc_.isNonEmptyStr(a[d])){return a[d]}if(!d||!a[d]){return"unknown"}return xa(a[d],b)};var j=function ya(a,b){b=Array.isArray(b)?b[0]:b||{};return{code:i(h,[a,b.error_code,b.error_subcode])}};var k=function za(a,b,d){if(d.embedHasPoster){a.poster=b.options_.poster}if(d.embedHasSources){a.sources=b.options_.sources}if(d.embedHasTracks){a.textTracks=b.options_.tracks}if(a.textTracks&&a.textTracks.length>0&&c.browser.IS_ANY_SAFARI){b.$(".vjs-tech").setAttribute("crossorigin","anonymous")}return a};var l=function Aa(a,b){return function(c,d){if(c){c.data=d;a.catalog.error=c;a.error(j(c.status,d));return a.trigger("bc-catalog-error")}a.ready(function(){return a.catalog.load(b(d))})}};var m=function Ba(a,b,d){var e=void 0;if(a==="video"){e=function f(a){return k(a,b,d)}}else{e=function g(a){var e=k({},b,d);if(Array.isArray(a.videos)){var f=a.videos[0]||{};a.videos[0]=c.mergeOptions(f,e,{rawItem:f})}else{a.videos=[e]}if(d.playlistVideoId){for(var g=0;g<a.length;g++){if(a[g].id===d.playlistVideoId||"ref:"+a[g].referenceId===d.playlistVideoId){a.startingIndex=g;break}}}return a}}return l(b,e)};var n=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var o;if(typeof a!=="undefined"){o=a}else if(typeof n!=="undefined"){o=n}else if(typeof self!=="undefined"){o=self}else{o={}}var p=o;var q=function Ca(){return Number.MAX_SAFE_INTEGER||Math.pow(2,53)-2};var r=function Da(a,b){var c=a.cuePoints;var d=c[b];var e=void 0;for(b++;b<c.length;b++){if(c[b].time>d.time){e=c[b];break}}var f=isFinite(a.duration)?a.duration:q();d.startTime=d.time;if(e&&e.time<f){d.endTime=e.time}else{d.endTime=f}return d};var s=function Ea(a){var b=a.remoteTextTracks();if(b){var c=b.length;while(c--){a.removeRemoteTextTrack(b[c])}}var d=a.textTracks();if(d){var e=d.length;while(e--){var f=d[e];if(f.kind==="metadata"&&f.cues){var g=f.cues.length;while(g--){f.removeCue(f.cues[g])}}f.mode="disabled"}}};var t=function Fa(a,b){s(a);if(!b.cuePoints){return}var c=a.mediaCuePointsTrack();var d=p.VTTCue||p.vttjs&&p.vttjs.VTTCue||p.TextTrackCue;for(var e=0;e<b.cuePoints.length;e++){var f=b.cuePoints[e];var g=new d(f.startTime,f.endTime,f.type);g.originalCuePoint=f;c.addCue(g)}c.mode="hidden"};var u=function Ga(a,b,c){var d=0;for(;d<a.length;d++){if(b(a[d])){return a[d]}}return c};function v(a){var b=v.windowLocationProtocol();var c=function d(a){return a.src&&a.src.indexOf(b)===0};if(a&&a.length&&a.length>0){return u(a,c,a[0]).src}}v.windowLocationProtocol=function(){return p.location.protocol};var w={};var x=(Object.freeze||Object)({"default":w});var y=x&&w||x;var z=typeof n!=="undefined"?n:typeof a!=="undefined"?a:{};var A;if(typeof b!=="undefined"){A=b}else{A=z["__GLOBAL_DOCUMENT_CACHE@4"];if(!A){A=z["__GLOBAL_DOCUMENT_CACHE@4"]=y}}var B=A;var C=function Ha(a,b){var c=a.url;var d=a.headers;var e=new p.XMLHttpRequest;e.open("GET",c,true);if(d){for(var f in d){e.setRequestHeader(f,d[f])}}e.onreadystatechange=function(){if(e.readyState!==4){return}if(e.timeout){return b(new Error("timeout"),e)}if(e.readyState===4){return b(null,e,e.responseText)}};e.url=c;e.send();return e};if(p.XMLHttpRequest&&!("withCredentials"in new p.XMLHttpRequest)){var D=void 0;var E=0;var F={};var G=[];var H=B.createElement("iframe");H.src="https://edge.api.brightcove.com/player-ie-proxy.html";B.getElementsByTagName("head")[0].appendChild(H);var I=function Ia(a,b){a.id=E++;F[a.id]=b;H.contentWindow.postMessage(JSON.stringify(a),"*");return H};var J=function Ja(){var a=G.length;while(a--){I.apply(this,G[a])}G.length=0;D=I};if(H.attachEvent){H.attachEvent("onload",J)}else{H.addEventListener("load",J)}var K=function Ka(a,b){G.push([a,b]);return H};D=K;C=function La(){D.apply(this,arguments)};var L=function Ma(a){var b=void 0;var d=void 0;var e={};var f=void 0;if(a.source!==H.contentWindow){return}try{b=JSON.parse(a.data)}catch(g){return c.log("Error parsing edge.api iframe response",g)}var h=F[b.id];delete F[b.id];if(!h){return c.log("Received unexpected message from the edge.api iframe")}b.headers=b.headers.replace("\r","").split("\n");for(var i=0;i<b.headers;i++){f=b.headers[i].indexOf(":");d=[b.headers[i].substring(0,f),b.headers[i].substring(f+1)];d[0]=d[0].replace(/^\s+|\s+$/g,"");d[1]=d[1].replace(/^\s+|\s+$/g,"");e[d[0]]=d[1]}b.headers=e;b.getResponseHeader=function(a){return this.headers[a]};h(null,b,b.response)};if(p.addEventListener){p.addEventListener("message",L)}else{p.attachEvent("onmessage",L)}}var M=C;function N(a,b){var c=void 0;var d="videos";var e=void 0;var f=void 0;if(a.policyKey){f={Accept:"application/json;pk="+a.policyKey}}if(a.baseUrl.slice(-1)!=="/"){a.baseUrl+="/"}if(a.videoId){d="videos";e=a.videoId}else if(a.playlistId){d="playlists";e=a.playlistId}c=a.baseUrl+"accounts/"+a.accountId+"/"+d+"/"+e;var g=[];if(a.tveToken){g.push("tveToken="+p.encodeURIComponent(a.tveToken))}if(a.adConfigId){g.push("ad_config_id="+p.encodeURIComponent(a.adConfigId))}if(g.length>0){c+="?"+g.join("&")}a.player.trigger({type:"catalog_request",url:c,videoId:a.videoId});return M({url:c,strictSSL:false,headers:f},function(d,e,f){if(d){a.player.trigger({type:"catalog_request_error",url:c,error:d});return b(d,f)}try{f=JSON.parse(f)}catch(g){a.player.trigger({type:"catalog_request_error",url:c,response:e,error:g});return b(g,f)}if(e.status>=400){a.player.trigger({type:"catalog_request_error",url:c,response:e,error:new Error("Request Failed")});return b(e,f)}a.player.trigger({type:"catalog_response",url:c,response:e});b(null,f)})}var O=function Na(a,b){if(!a.accountId||!(a.videoId||a.playlistId)||!a.policyKey){b(new Error("accountId, videoId or playlistId, and policy key are required fields"))}var d=c.bc_.assign({baseUrl:"https://edge.api.brightcove.com/playback/v1/"},a);return N(d,function(a,c){if(a){return b(a,c)}b(null,c)})};var P=function Oa(){return!c.browser.IS_IOS&&p.HTMLMediaElement&&"webkitKeys"in p.HTMLMediaElement.prototype&&p.WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")&&"GestureEvent"in p};var Q=function Pa(a){return a==="application/vnd.apple.mpegurl"||a==="application/x-mpegURL"};var R=function Qa(a){return a.isSecureContext||!/^http:/.test(a.location.href)};var S={isSafariWithFairplaySupport:P,isHlsType:Q,preferHttps:R};var T="https://fps.brightcove.com/v1/application_certificate";var U="com.apple.fps.1_0";var V=function Ra(a){return p.btoa(String.fromCharCode.apply(null,a))};var W=function Sa(a){return String.fromCharCode.apply(null,new Uint16Array(a.buffer))};var X=function Ta(a){var b=a.source,c=a.publisherId,d=a.applicationId;var e=b.key_systems[U].certificate_url;if(e){return e}if(d&&c){return T+"/"+c+"/"+d}return null};var Y=function Ua(a,b){var d=X({source:a.source,publisherId:a.publisherId,applicationId:a.applicationId});c.xhr({uri:d,responseType:"arraybuffer"},function(a,c,d){if(a){b(a);return}b(null,new Uint8Array(d))})};var Z=function Va(a,b){return W(b).split("//")[1]};var $=function Wa(a){return function(b,d,e,f){c.xhr({uri:a,method:"POST",responseType:"arraybuffer",json:{publisher_id:b.publisherId,application_id:b.applicationId,key_id:d.split("/")[3],server_playback_context:V(e)},headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}},function(a,b,c){if(a){f(a);return}f(null,c)})}};var _={getCertificateUri:X,getCertificate:Y,getContentId:Z,createGetLicenseFunc:$,base64EncodeUint8Array:V,FAIRPLAY_KEY_SYSTEM:U};var aa=function Xa(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return a.filter(function(a){return a.keySystems&&a.keySystems[_.FAIRPLAY_KEY_SYSTEM]})};var ba=function Ya(a,b,c){var d=aa(b);if(!d.length||!a.eme){c();return}var e=a.eme.options||{};var f=0;var g=[];var h={};var i=function l(a){var b=d[a];var i=_.getCertificateUri({source:b,publisherId:e.publisherId,applicationId:e.applicationId});if(!i){return"continue"}if(h[i]){h[i].push(b);return"continue"}f++;h[i]=[b];b.keySystems[_.FAIRPLAY_KEY_SYSTEM].getCertificate({source:b,publisherId:e.publisherId,applicationId:e.applicationId},function(a,b){if(a){g.push({message:"Unable to resolve FairPlay certificate",error:a})}else{var d=h[i];for(var e=0;e<d.length;e++){var j=d[e];j.keySystems[_.FAIRPLAY_KEY_SYSTEM].getCertificate=function(a,c){c(null,b)}}}f--;if(!f){if(g.length){c(g);return}c()}})};for(var j=0;j<d.length;j++){var k=i(j);if(k==="continue")continue}};var ca=function Za(a){if(!S.isHlsType(a.type)||!a.key_systems||!a.key_systems[_.FAIRPLAY_KEY_SYSTEM]){return null}var b=a.key_systems[_.FAIRPLAY_KEY_SYSTEM];var c=b.key_request_url;var d={};d[_.FAIRPLAY_KEY_SYSTEM]={getCertificate:_.getCertificate,getLicense:_.createGetLicenseFunc(c),getContentId:_.getContentId};return d};var da=function $a(a){return ca(a)};var ea={getKeySystemOptions:da,getFairPlaySources:aa,resolveFairPlayCertificates:ba};var fa=3*1024*1024;var ga=.5*1024*1024;var ha={http:{nativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},noNativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},preferMp4:{http:{"application/vnd.apple.mpegurl":3,"video/mp4":1,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":4,"video/mp4":2,"application/dash+xml":6}}},https:{nativeHls:{http:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":1,"video/mp4":4,"application/dash+xml":3}},noNativeHls:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":1,"video/mp4":3,"application/dash+xml":2}},preferMp4:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":2,"video/mp4":1,"application/dash+xml":3}}}};var ia={1:3,2:3.2,3:4.2,4:5,5:6,6:7,7:8};var ja=function _a(a,b){return b.type==="application/vnd.apple.mpegurl"&&b.key_systems&&S.isSafariWithFairplaySupport()&&a.eme&&a.eme.options};var ka=function ab(a,b,d){if(!b.src){return 9999}if(b.type==="application/vnd.apple.mpegurl"&&b.key_systems&&!ja(d,b)){return 9999}if(b.profiles&&b.profiles.match(/hbbtv/i)){return 9999}if(c.browser.IS_IOS&&b.type==="application/vnd.apple.mpegurl"&&ia[b.ext_x_version]>parseFloat(c.browser.IOS_VERSION)){return 9999}if(c.browser.IE_VERSION&&b.type==="application/vnd.apple.mpegurl"&&b.ext_x_version&&b.ext_x_version>3){return 9999}a=a[/^[^:]*/.exec(b.src)];if(!a){return 9999}return a[b.type]||9999};var la=function bb(a,b,d){var e=ma.preferHttps()?ha.https:ha.http;var f=void 0;var g=void 0;if(c.browser.IS_IOS||c.browser.IS_ANDROID){f=ga}else{f=fa}if(ma.preferMp4()){e=e.preferMp4}else if(ma.supportsNativeHls()){e=e.nativeHls}else{e=e.noNativeHls}g=ka(e,b,a)-ka(e,d,a);if(g){return g}if(b.type==="video/mp4"&&d.type==="video/mp4"){if(b.avg_bitrate&&d.avg_bitrate){return Math.abs(b.avg_bitrate-f)-Math.abs(d.avg_bitrate-f)}if(b.avg_bitrate||d.avg_bitrate){g=b.avg_bitrate?-1:1}}if(b.type==="application/vnd.apple.mpegurl"&&d.type==="application/vnd.apple.mpegurl"){if(b.ext_x_version&&d.ext_x_version){if(c.browser.IE_VERSION){if(Math.max(b.ext_x_version,d.ext_x_version)>3&&Math.min(b.ext_x_version,d.ext_x_version)<=3){return b.ext_x_version-d.ext_x_version}}return d.ext_x_version-b.ext_x_version}if(b.ext_x_version||d.ext_x_version){g=b.ext_x_version?-1:1}}return g};function ma(a,b){var c=b.sources||[];var d=[];for(var e=0;e<c.length;e++){var f=c[e];if(f.src&&f.container==="MP4"){f.type="video/mp4"}else if(f.src&&(f.container==="M2TS"||S.isHlsType(f.type))){f.type="application/vnd.apple.mpegurl";if(ja(a,f)){f.keySystems=ea.getKeySystemOptions(f)}}d.push(f)}return d.sort(la.bind(null,a))}ma.supportsNativeHls=function(){var a=B.createElement("video");var b=c.options.hls&&c.options.hls.overrideNative;if(a&&a.canPlayType){return!b&&/probably|maybe/i.test(a.canPlayType("application/vnd.apple.mpegurl"))}return false};ma.preferHttps=function(){return S.preferHttps(p)};ma.preferMp4=function(){return c.browser.IS_ANDROID&&c.browser.ANDROID_VERSION<5};var na=c.registerPlugin||c.plugin;var oa=/([A-Za-z0-9])_([A-Za-z0-9])/g;var pa=function cb(a){return a.replace(oa,function(a,b,c){return b+c.toUpperCase()})};var qa=function db(a){var b=c.mergeOptions(a);Object.keys(b).filter(function(a){return a.match(oa)}).forEach(function(a){b[pa(a)]=b[a]});return b};var ra=function eb(a,b){if(!b){return}a.mediainfo=qa(b)};var sa=function fb(a,b){var c=a.type==="application/vnd.apple.mpegurl"&&parseInt(a.ext_x_version,10)>=5;var d=a.type==="application/dash+xml"&&b.toLowerCase()==="html5";return c||d};function ta(a){var b=this;var d=c.mergeOptions({accountId:b.options_["data-account"],policyKey:b.options_["data-policy-key"]},a);g(b);b.on("loadstart",function(){if(!c.bc_.isFn(b.playlist)||!b.playlist()||!b.playlist().length){ return}ra(b,b.playlist()[b.playlist.indexOf(b.currentSrc())])});b.on("dispose",function(){return s(b)});var e=function n(a,d){var e=ea.getFairPlaySources(a);if(!e.length){return d()}ea.resolveFairPlayCertificates(b,e,function(a){if(a){c.log("Unable to resolve FairPlay certificates",a)}d()})};var h=function o(a){if(!b.hasPlugin||!b.hasPlugin("ssai")||!a){return a}return a.map(function(a){if(a.vmap){a.type=c.getPlugin("ssai").MIME_TYPE;a.originalHlsSource=a.src;a.src=a.vmap}return a})};var i=function p(a){var c=function d(){var c=false;ra(b,a);b.el().setAttribute("data-video-id",a.id);b.poster(a.poster);if(a.sources){for(var d=0;d<a.sources.length;d++){if(a.sources[d].vmap!==undefined){c=true;break}}}if(c&&b.onceux!==undefined){b.onceux.loadSourcesFromCatalog(a.sources)}else{if(c){a.sources=h(a.sources)}b.src(a.sources)}t(b,a);if(a.textTracks){for(var e=0;e<a.textTracks.length;e++){b.addRemoteTextTrack(a.textTracks[e])}}};e(a.sources,c)};var k=function q(a){var c=function f(){b.on("beforeplaylistitem",function(a,c){return t(b,c)});for(var c=0;c<a.length;c++){a[c].sources=h(a[c].sources)}var d=a.startingIndex||0;ra(b,a[d]);b.playlist(a,d)};var d=a.filter(function(a){return a.sources}).reduce(function(a,b){return a.concat(b.sources)},[]);e(d,c)};var l=function u(c){var d=void 0;var e=qa(c);if(e.sources){e.rawSources_=e.sources;e.sources=(a.getSources||ma)(b,e);d=b.selectSource(e.sources)}if(e.posterSources){e.poster=v(e.posterSources)}if(e.thumbnailSources){e.thumbnail=v(e.thumbnailSources)}if(e.textTracks){var f=d&&sa(d.source,d.tech);e.textTracks=e.textTracks.filter(function(a){return!(f&&a.in_band_metadata_track_dispatch_type!==undefined)}).map(function(a){if(a.sources){a.src=v(a.sources)}return a})}if(e.duration){e.duration=e.duration*.001}if(e.cuePoints){for(var g=0;g<e.cuePoints.length;g++){r(e,g)}}return e};b.catalog={transformCatalogError:j,transformVideoResponse:l,mediaCuePointsTrack:function w(){if(!b.catalog.mediaCuePointsTrack.hasWarned_){c.log.warn("player.catalog.mediaCuePointsTrack() is deprecated, please use player.mediaCuePointsTrack() instead!");b.catalog.mediaCuePointsTrack.hasWarned_=true}return b.mediaCuePointsTrack()},getVideo:function x(a,e,f){var g=c.mergeOptions({},d,{player:b,videoId:a});if(b.catalog.tveToken){g.tveToken=b.catalog.tveToken}if(f){g.adConfigId=f}b.catalog.loading++;return O(g,function(a,c){b.catalog.loading--;if(a){a.data=c;b.catalog.error=a;return e(a,c)}if(!c){return e(null,null)}var d=l(c);ta.data=c;ta.sources=d.sources;ta.poster=d.poster;e(null,d)})},getPlaylist:function y(a,e,f){var g=c.mergeOptions({},d,{player:b,playlistId:a});if(b.catalog.tveToken){g.tveToken=b.catalog.tveToken}if(f){g.adConfigId=f}b.catalog.loading++;return O(g,function(a,c){b.catalog.loading--;if(a){a.data=c;b.catalog.error=a;return e(a,c)}if(!c){return e(null,null)}b.catalog.data=c;var d=c.videos.map(l);e(null,d)})},load:function z(a){if(Array.isArray(a)){k(a)}else{i(a)}},autoFindAndLoadMedia:function A(a){var c=f(a,b);if(!c){return}a.playlistVideoId=c.playlistVideoId;var d="get"+c.type.charAt(0).toUpperCase()+c.type.slice(1);var e=m(c.type,b,a);this[d](c.id,e,a.adConfigId)},loading:0}}na("catalog",ta);ta.VERSION=d;return ta});(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?b(exports,require("video.js")):typeof c==="function"&&c.amd?c(["exports","video.js"],b):b(a.videojsDock=a.videojsDock||{},a.videojs)})(this,function(c,d){"use strict";d="default"in d?d["default"]:d;var e=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var f={};var g=(Object.freeze||Object)({"default":f});var h=g&&f||g;var i=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var j;if(typeof b!=="undefined"){j=b}else{j=i["__GLOBAL_DOCUMENT_CACHE@4"];if(!j){j=i["__GLOBAL_DOCUMENT_CACHE@4"]=h}}var k=j;var l=1;var m=function w(){return l++};var n=function(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}};var o=function(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b};var p=function(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a};var q=d.dom||d;var r=d.registerPlugin||d.plugin;var s=d.getComponent("Component");var t=function(a){o(b,a);function b(c,d){n(this,b);var e=p(this,a.call(this,c,d));var f=c.$(".vjs-tech");f.setAttribute("aria-labelledby",e.title.id);f.setAttribute("aria-describedby",e.description.id);return e}b.prototype.createEl=function c(){var b=q.createEl("div",{className:"vjs-dock-title",title:this.options_.title,innerHTML:this.options_.title},{id:"vjs-dock-title-"+m()});var c=q.createEl("div",{className:"vjs-dock-description",title:this.options_.description,innerHTML:this.options_.description},{id:"vjs-dock-description-"+m()});var d=a.prototype.createEl.call(this,"div",{className:"vjs-dock-text"});this.title=b;this.description=c;d.appendChild(b);d.appendChild(c);return d};b.prototype.update=function d(a,b){this.title.innerHTML="";this.description.innerHTML="";this.title.appendChild(k.createTextNode(a));this.description.appendChild(k.createTextNode(b))};return b}(s);var u=function(a){o(b,a);function b(){n(this,b);return p(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-dock-shelf"})};return b}(s);d.registerComponent("Title",t);d.registerComponent("Shelf",u);var v=function x(a){var b=a||{};var c={title:{title:b.title||"",description:b.description||""}};var d=this.title;var e=this.shelf;this.addClass("vjs-dock");var f=this.children().indexOf(this.getChild("bigPlayButton"));var g=f>0?f-1:null;if(!e){e=this.shelf=this.addChild("shelf",c,g)}if(!d){d=this.title=this.addChild("title",c.title,g)}else{d.update(c.title.title,c.title.description)}this.one(d,"dispose",function(){this.title=null});this.one(e,"dispose",function(){this.shelf=null})};r("dock",v);c.Title=t;c.Shelf=u;c["default"]=v});(function(a,b){k.plugin("touchActive",function(){var a=this,b=false,c=function(){if(!b){a.userActive(false)}};a.one("play",function(){a.el().className+=" vjs-user-active";a.one(["click","tap"],function(){b=true});a.setTimeout(c,5e3)})})})(a,b);(function(a,b){typeof exports==="object"&&typeof module!=="undefined"?module.exports=b(require("video.js")):typeof c==="function"&&c.amd?c(["video.js"],b):a.videojsPlaylist=b(a.videojs)})(this,function(b){"use strict";b="default"in b?b["default"]:b;var c=typeof a!=="undefined"?a:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var d;if(typeof a!=="undefined"){d=a}else if(typeof c!=="undefined"){d=c}else if(typeof self!=="undefined"){d=self}else{d={}}var e=d;var f=function r(a){return typeof a==="number"&&!isNaN(a)&&a>=0&&a<Infinity};var g=function s(a){if(a.playlist.autoadvance_.timeout){e.clearTimeout(a.playlist.autoadvance_.timeout)}if(a.playlist.autoadvance_.trigger){a.off("ended",a.playlist.autoadvance_.trigger)}a.playlist.autoadvance_.timeout=null;a.playlist.autoadvance_.trigger=null};var h=function t(a,b){g(a);if(!f(b)){return}a.playlist.autoadvance_.trigger=function(){a.playlist.autoadvance_.timeout=e.setTimeout(function(){g(a);a.playlist.next()},b*1e3)};a.one("ended",a.playlist.autoadvance_.trigger)};var i=function u(a){var b=a.remoteTextTracks();var c=b&&b.length||0;while(c--){a.removeRemoteTextTrack(b[c])}};var j=function v(a,b,c){var d=!a.paused()||a.ended();a.trigger("beforeplaylistitem",c);a.poster(c.poster||"");a.src(c.sources);i(a);(c.textTracks||[]).forEach(a.addRemoteTextTrack.bind(a));a.trigger("playlistitem",c);if(d){a.play()}h(a,b);return a};var k=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var l=function w(a,b){for(var c in b){if(b.hasOwnProperty(c)){a[c]=b[c]}}};var m=function x(a,b){var c=a;var d=b;if((typeof a==="undefined"?"undefined":k(a))==="object"){c=a.src}if((typeof b==="undefined"?"undefined":k(b))==="object"){d=b.src}if(/^\/\//.test(c)){d=d.slice(d.indexOf("//"))}if(/^\/\//.test(d)){c=c.slice(c.indexOf("//"))}return c===d};var n=function y(a,b){for(var c=0;c<a.length;c++){var d=a[c].sources;if(Array.isArray(d)){for(var e=0;e<d.length;e++){var f=d[e];if(f&&m(f,b)){return c}}}}return-1};var o=function z(a,c){var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var f=Array.isArray(c)?c.slice():[];var i=a.playlist=function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(Array.isArray(b)){f=b.slice();if(c!==-1){i.currentItem(c)}i.changeTimeout_=e.setTimeout(function(){a.trigger("playlistchange")},0)}return f.slice()};a.on("loadstart",function(){if(i.currentItem()===-1){g(a)}});a.on("dispose",function(){e.clearTimeout(i.changeTimeout_)});l(i,{currentIndex_:-1,player_:a,autoadvance_:{},repeat_:false,currentItem:function k(a){if(typeof a==="number"&&i.currentIndex_!==a&&a>=0&&a<f.length){i.currentIndex_=a;j(i.player_,i.autoadvance_.delay,f[i.currentIndex_])}else{i.currentIndex_=i.indexOf(i.player_.currentSrc()||"")}return i.currentIndex_},contains:function m(a){return i.indexOf(a)!==-1},indexOf:function o(a){if(typeof a==="string"){return n(f,a)}var b=Array.isArray(a)?a:a.sources;for(var c=0;c<b.length;c++){var d=b[c];if(typeof d==="string"){return n(f,d)}else if(d.src){return n(f,d.src)}}return-1},first:function p(){if(f.length){return f[i.currentItem(0)]}i.currentIndex_=-1},last:function q(){if(f.length){return f[i.currentItem(f.length-1)]}i.currentIndex_=-1},next:function r(){var a=void 0;if(i.repeat_){a=i.currentIndex_+1;if(a>f.length-1){a=0}}else{a=Math.min(i.currentIndex_+1,f.length-1)}if(a!==i.currentIndex_){return f[i.currentItem(a)]}},previous:function s(){var a=Math.max(i.currentIndex_-1,0);if(a!==i.currentIndex_){return f[i.currentItem(a)]}},autoadvance:function t(a){i.autoadvance_.delay=a;h(i.player_,a)},repeat:function u(a){if(a!==undefined){if(typeof a!=="boolean"){b.log.error("Invalid value for repeat",a)}else{i.repeat_=a}}return i.repeat_}});i.currentItem(d);return i};var p=b.registerPlugin||b.plugin;var q=function A(a,b){o(this,a,b)};p("playlist",q);return q});var l=e?k.bc_.qs().search:{};var m=!!(a.performance&&a.performance.mark&&a.performance.measure);var n=function(a){return a.hasAttribute("autoplay")||l.autoplay!==undefined};var o=function(a){var b=parseInt(k.browser.IOS_VERSION,10);if(b>=10){var c=a.hasAttribute("playsinline")||l.playsinline!==undefined;var d=a.hasAttribute("muted")||l.muted!==undefined;return!((c||k.browser.IS_IPAD)&&d)}return false};var p=function(){var c;var d;var f;var h;var j;var p;var q;var r;var s;var t;var u;var v;if(m){a.performance.mark("bcInitStart")}var w=function(a,d){k.removeHook("beforesetup",w);c=a;d=d||{};var f=function(){var b=parseInt(k.browser.IOS_VERSION,10);var c=a.hasAttribute("playsinline")||l.playsinline!==undefined;return k.browser.IS_IPHONE};if(!k.browser.TOUCH_ENABLED){a.className+=" vjs-mouse";if(e){e.className+=" vjs-mouse"}}else if(f()){a.className+=" vjs-native"}if(!k.browser.IS_ANY_SAFARI){d.html5={nativeCaptions:false}}r=!!a.querySelector("source");q=!!a.querySelector("track");s=a.hasAttribute("poster");d.inactivityTimeout=5e3;if(k.browser.TOUCH_ENABLED){d.inactivityTimeout=0}h=a.getAttribute("height")||undefined;j=a.getAttribute("width")||undefined;if(!("addEventListener"in a)){a.removeAttribute("height");a.removeAttribute("width")}d=k.mergeOptions(d,{width:j,height:h,nativeControlsForTouch:i(),controls:e?true:a.hasAttribute("controls"),persistTextTrackSettings:true,autoplay:!o(a)&&n(a),"vtt.js":"//vjs.zencdn.net/vttjs/0.12.5/vtt.global.min.js",sourceOrder:true,controlBar:{progressControl:{keepTooltipsInside:true},volumeMenuButton:{inline:true},muteToggle:false,volumeControl:false}});if(e){if(l.language){d.language=l.language}if(l.autoplay!==undefined){d.autoplay=true}if(l.preload){d.preload=l.preload}if(l.usage){d["data-usage"]=l.usage}if(l.playsinline!==undefined){a.setAttribute("playsinline","playsinline")}if(l.muted!==undefined){a.setAttribute("muted","muted");a.muted=true}if(l.crossorigin!==undefined){a.setAttribute("crossorigin","anonymous")}}(function(){var c=b.createElement("div");c.innerHTML="\x3c!--[if lt IE 9]><i/><![endif]--\x3e";if(c.getElementsByTagName("i").length>0){a.className+=" ie8";if(/vh/.test(d.width)||/vw/.test(d.height)){d.width=undefined;d.height=undefined}d.controlBar={volumeMenuButton:false,customControlSpacer:false,volumeControl:{},muteToggle:{}}}})();if(typeof k.options.hls!=="object"){k.options.hls={}}if(k.browser.IS_ANDROID&&k.options.hls.enableLowInitialPlaylist===undefined){k.options.hls.enableLowInitialPlaylist=true}if(k.options.hls.overrideNative===undefined&&!k.browser.IS_ANY_SAFARI){k.options.hls.overrideNative=true}if(k.options.hls.overrideNative===true){d.html5=d.html5||{};d.html5.nativeAudioTracks=false;d.html5.nativeVideoTracks=false}return d};var x=function(i){var n=i.options_;k.removeHook("setup",x);i.addClass("bc-player-default_default");if(!k.browser.TOUCH_ENABLED){i.addClass("vjs-mouse");if(e){(k.dom||k).addClass(e,"vjs-mouse")}}i.on("dispose",function(){c=i=d=f=h=j=n=p=q=r=s=t=u=v=o=w=null});if(k.browser.IS_IPHONE){i.on("fullscreenchange",function(){var a=i.$(".vjs-tech");if(a.hasAttribute("controls")){a.removeAttribute("controls")}});if(c.hasAttribute("playsinline")&&c.hasAttribute("muted")){i.addClass("vjs-iphone")}}if(k.browser.IS_IOS&&c.hasAttribute("muted")){i.addClass("vjs-ios");i.on("loadstart",function(){i.controlBar.volumeMenuButton&&i.controlBar.volumeMenuButton.show()})}i.proxyTracks();i.perSourceBehaviors();i.seekEvents();(function(){var a=[{label:"Player Information",listener:function(){i.playerInfo.modal.open()}},{href:"https://www.brightcove.com/en/why-brightcove?utm_type=player",label:"About Brightcove"}];if(a.length){i.contextmenuUI({content:a});i.on("vjs-contextmenu",function(){if(i.playerInfo.modal){i.playerInfo.modal.close()}})}i.playerInfo()})();if(e){i.viewport({width:n.vwunit,height:n.vhunit,el:b.body})}i.posterStretch();i.fullscreenOpen();i.urlparams();if(e){i.resizeTextTracks()}var o=e&&l.applicationId||i.el().getAttribute("data-application-id")||"";var w="Brightcove Default Player";if(o){if(w){w+=" - "+o}else{w=o}}if(m){i.ready(function(){a.performance.mark("bcInitEnd");a.performance.measure("bcInit","bcInitStart","bcInitEnd")})}var y="players.brightcove.com/1393959378001/default_default";if(a.location.hostname==="players.api.brightcove.com"){y="players.api.brightcove.com/default_default"}i.bcAnalytics({applicationId:o,mr:Boolean(a.bc_isManagedRelease),account:"1393959378001",playerName:w,platformVersion:"5.28.1",player:y});i.errors();i.errorDisplay.on("modalfill",function(){var a=i.bcAnalytics.client.getSession();var b=i.errorDisplay.$(".vjs-errors-content-container");if(!a||!b){return}b.appendChild(k.createEl("div",{className:"vjs-errors-ref-id",innerHTML:"<b>"+i.localize("Session ID:")+"</b> "+(new Date).toISOString().split("T")[0]+":"+a+" "+"<b>"+i.localize("Player ID:")+"</b> "+i.id()}))});i.catalog({accountId:"1393959378001",policyKey:"BCpkADawqM217ffgtW4OhmHA_ZuaO5JD8k1gQ32wqgdjCgBzcir55INdpFjiyoEWaqMQGK9fWy1piZhEk2z8PO1S6YO-RqX0PtT2ojxBpHc_QEwg2NEhIjXLwnRr3XX8WjbVCRrAimehFDiy"});i.catalog.autoFindAndLoadMedia({adConfigId:"",embedHasPoster:!!s,embedHasSources:r,embedHasTracks:q,playlistId:"",videoId:""});if(i.controls()){i.dock({title:u||"",description:v||""});i.one("loadstart",function(){if(i.mediainfo){i.dock({title:i.mediainfo&&i.mediainfo.name,description:i.mediainfo&&i.mediainfo.description});i.on("loadstart",function(){i.dock({title:i.mediainfo&&i.mediainfo.name,description:i.mediainfo&&i.mediainfo.description})})}})}if(k.browser.TOUCH_ENABLED){i.touchActive()}(function(){var a,b={social:{buttonParent:"shelf"}}})();(function(){var a,b=parseInt("",10),c=false;i.playlist();if(b===b&&isFinite(b)&&b>=0){i.playlist.autoadvance(b)}})();g(function(){var a=b.querySelector(".bc-wrap");i.addClass("vjs-plugins-ready");if(a){a.style.opacity=0}});i.on(["mouseenter","ended","touchend"],function(){i.removeClass("not-hover")});i.on("mouseleave",function(){i.addClass("not-hover")})};k.hook("beforesetup",w);k.hook("setup",x);return k.apply(null,arguments)};p.SKIN="luna";p.VERSION="5.28.1";if(e){a.bc=p}p.videojs=k;if(j){a.videojs=j}return p})(window,document);;</script> <script>(function(p){p.mark&&p.mark('bcParseEnd');p.measure&&p.measure('bcParse','bcParseStart','bcParseEnd')})(window.performance||{})</script> <script>bc(document.querySelector('video'));</script> </body></html>