����JFIFXX�����    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222����"��4�� ���,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu���#ډb���_�N�?��wQ���5-�~�I���8����TK<5o�Iv-�����k�_U_�����~b�M��d����Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�?_�'ϔ��_�Ջt��=||I ��6�έ"�����D���/[�k�9���Y�8ds|\���Ҿp6�Ҵ���]��.����6�z<�v��@]�i%��$j��~�g��J>��no����pM[me�i$[����s�o�ᘨ�˸ nɜG-�ĨU�ycP�3.DB�li�;��hj���x7Z^�N�h������N3u{�:j�x�힞��#M&��jL P@_���� P��&��o8������9�����@Sz6�t7#O�ߋ �s}Yf�T���lmr����Z)'N��k�۞p����w\�Tȯ?�8`�O��i{wﭹW�[�r�� ��Q4F�׊���3m&L�=��h3����z~��#�\�l :�F,j@�� ʱ�wQT����8�"kJO���6�֚l����}���R�>ډK���]��y����&����p�}b��;N�1�m�r$�|��7�>e�@B�TM*-iH��g�D�)� E�m�|�ؘbҗ�a��Ҿ����t4���o���G��*oCN�rP���Q��@z,|?W[0�����:�n,jWiE��W��$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S����VN;�}�s?.����� w�9��˟<���Mq4�Wv'��{)0�1mB��V����W[�����8�/<� �%���wT^�5���b��)iM� pg�N�&ݝ��VO~�q���u���9� ����!��J27����$O-���! �:�%H��� ـ����y�ΠM=t{!S�� oK8������t<����è:a������[�����ա�H���~��w��Qz`�po�^ ����Q��n� �,uu�C�$ ^���,������8�#��:�6��e�|~���!�3�3.�\0��q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<���Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y�|�y��� ~�6�@c��1vOp�Ig����4��l�OD���L����� R���c���j�_�uX6��3?nk��Wy�f;^*B� ��@�~a�`��Eu������+���6�L��.ü>��}y���}_�O�6�͐�:�YrG�X��kG�����l^w���~㒶sy��Iu�!� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT��G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2��#I/�׍qz��^t�̔���b�Yz4x���t�){ OH��+(E��A&�N�������XT��o��"�XC��'���)}�J�z�p� ��~5�}�^����+�6����w��c��Q�|Lp�d�H��}�(�.|����k��c4^�"�����Z?ȕ ��a<�L�!039C� �Eu�C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf���M}7����]����s2tcS{�\icTx;�\��7K���P���ʇ Z O-��~��c>"��?�������P��E��O�8��@�8��G��Q�g�a�Վ���󁶠�䧘��_%#r�>�1�z�a��eb��qcPѵ��n���#L��� =��׀t� L�7�`��V���A{�C:�g���e@�w1 Xp3�c3�ġ����p��M"'-�@n4���fG��B3�DJ�8[Jo�ߐ���gK)ƛ��$���� ���8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`���?��K����QK�d����B`�s}�>���`��*�>��,*@J�d�oF*����弝��O}�k��s��]��y�ߘ��c1G�V���<=�7��7����6�q�PT��tXԀ�!9*4�4Tހ3XΛex�46���Y��D ����� �BdemDa����\�_l,��G�/���֌7���Y�](�xTt^%�GE�����4�}bT���ڹ�����;Y)���B�Q��u��>J/J �⮶.�XԄ��j�ݳ�+E��d ��r�5�_D�1 ��o�� �B�x�΢�#���<��W�����8���R6�@g�M�.��� dr�D��>(otU��@x=��~v���2� ӣ�d�oBd��3�eO�6�㣷�����ݜ6��6Y��Qz`��S��{���\P�~z m5{J/L��1������<�e�ͅPu�b�]�ϔ���'������f�b� Zpw��c`"��i���BD@:)ִ�:�]��hv�E�w���T�l��P���"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u�)]կ�����7x���s�M�-<ɯ�c��r�v�����@��$�ޮ}lk���a���'����>x��O\�ZFu>�����ck#��&:��`�$�ai�>2Δ����l���oF[h��lE�ܺ�Πk:)���`�� $[6�����9�����kOw�\|���8}������ބ:��񶐕��I�A1/�=�2[�,�!��.}gN#�u����b��� ~��݊��}34q����d�E��Lc��$��"�[q�U�硬g^��%B �z���r�pJ�ru%v\h1Y�ne`ǥ:g���pQM~�^�Xi� ��`S�:V29.�P���V�?B�k�� AEvw%�_�9C�Q����wKekPؠ�\�;Io d�{ ߞo�c1eP����\� `����E=���@K<�Y���eڼ�J���w����{av�F�'�M�@/J��+9p���|]�����Iw &`��8���&M�hg��[�{��Xj��%��Ӓ�$��(����ʹN���<>�I���RY���K2�NPlL�ɀ)��&e����B+ь����( � �JTx���_?EZ� }@ 6�U���뙢ط�z��dWI�n` D����噥�[��uV��"�G&Ú����2g�}&m��?ċ�"����Om#��������� ��{�ON��"S�X��Ne��ysQ���@Fn��Vg���dX�~nj�]J�<�K]:��FW��b�������62�=��5f����JKw��bf�X�55��~J �%^����:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v���g�8�1��f24;�V���ǔ�)����9���1\��c��v�/'Ƞ�w�������$�4�R-��t���� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃������A��20�c#��@ 0!1@AP"#2Q`$3V�%45a6�FRUq��� ����^7ׅ,$n�������+��F�`��2X'��0vM��p�L=������5��8������u�p~���.�`r�����\���O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;������S�T���1���i[U�ɵz�]��U)V�S6���3$K{�ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u�!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ���D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v�����멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$�JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4�[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ�dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il��d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J��oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.���3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N�����#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%���JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$���L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)�H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>�dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\�y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7��ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz��)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)'��8Ϣ�ٔ��ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'�L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3�������QT��a����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3�,#c�co��q�a)*Pt����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O���������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l�O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m���PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~�|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0��Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q��nxҍ!U�f�!eh�i�2�m���`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{/ �?�͟��|1�:�#g��W�>$����d��J��d�B��=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l����l�cGs�ځ�������y�Ac�����\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6����N6�q������N ! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td�� ?���N����a��3��m���C���w��������xA�m�q�m���m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4���r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G�����Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q�(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9��3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#yw��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa����Q�#� WeF��ŮNj�p�J* mQ�N����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]��陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WPw���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp�BGv[]�u�Ov���0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND��.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J �4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R��� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(�>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG��{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/��*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>e]�����Q�r�:����g�,i"�����ԩA�*M�<�G��b�if��l^M��5� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f�����֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ���˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)��h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������ G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W�I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��BS�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c���]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪�\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W�����6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}�����6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@�P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6�����m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw�k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e��R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN��ĕ��0 !01@Q"2AaPq3BR������?���@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j�ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^���ԯ̾9Z��F��������n��1��� ��]�[��)�'������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ��&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0��;_��3 !01"@AQa2Pq#3BR������?��ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6����������4B>��o��](��$B���m�����a�!=��?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a�84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b��$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7��k�� 403WebShell
403Webshell
Server IP : 54.89.25.11  /  Your IP : 216.73.216.90
Web Server : Apache/2.4.7 (Ubuntu)
System : Linux ip-172-31-88-18 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.24
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/kalemon/public/js/plugins/jwplayer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/kalemon/public/js/plugins/jwplayer/provider.caterpillar.js
webpackJsonpjwplayer([1],[,,,,,,function(e,t,n){"use strict";var r=n(35),i=n(93),a=n(94);r.operations=i,r.operations.pipeline=a.pipeline,r.operations.pipelineAsync=a.pipelineAsync,e.exports=r},function(e,t,n){(function(t){var r="object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this,i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(202),i)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(s){r.regeneratorRuntime=void 0}}).call(t,function(){return this}())},,,,,,,,,function(e,t,n){"use strict";function r(e,t){for(var n=new Uint8Array(t),r=0,i=0;i<e.length;i++)n.set(e[i],r),r+=e[i].length;return n}function i(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e),n.set(t,e.byteLength),n}function a(e,t){var n=new Uint8Array(e.byteLength+t);return n.set(e),n}function s(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>>16&255,e[t+2]=n>>>8&255,e[t+3]=255&n}function o(e,t){var n=e[t],r=e[t+1],i=e[t+2],a=e[t+3];return n<<24|r<<16|i<<8|a}function u(e,t){var n=e[t],r=e[t+1];return n<<8|r}function c(e){return f.map(e,function(e){return e.toString(16)})}t.__esModule=!0,t.combineUint8Arrays=r,t.concatUint8Array=i,t.extendUint8Array=a,t.writeUint32=s,t.readUint32=o,t.readUint16=u,t.toHex=c;var f=n(1)},function(e,t,n){var r,i;r=[n(8)],i=function(e){function t(e){e||n()}function n(){throw new Error("Invalid DFXP file")}var r=e.seconds;return function(i){t(i);var a=[],s=i.getElementsByTagName("p");t(s),s.length||(s=i.getElementsByTagName("tt:p"),s.length||(s=i.getElementsByTagName("tts:p")));for(var o=0;o<s.length;o++){var u=s[o],c=u.innerHTML||u.textContent||u.text||"",f=e.trim(c).replace(/>\s+</g,"><").replace(/tts?:/g,"");if(f){var l=u.getAttribute("begin"),d=u.getAttribute("dur"),h=u.getAttribute("end"),p={begin:r(l),text:f};h?p.end=r(h):d&&(p.end=p.begin+r(d)),a.push(p)}}return a.length||n(),a}}.apply(t,r),!(void 0!==i&&(e.exports=i))},function(e,t,n){var r,i;r=[n(1),n(21),n(2),n(14),n(19),n(17)],i=function(e,t,r,i,a,s){function o(e){if(this._currentTextTrackIndex=-1,e){if(this._textTracks||w.call(this),e.length){var t=0,n=e.length;for(t;t<n;t++){var r=e[t];if(r._id||("captions"===r.kind||"metadata"===r.kind?r._id="native"+r.kind:r._id=b.call(this,r),r.inuse=!0),r.inuse&&!this._tracksById[r._id])if("metadata"===r.kind)r.mode="showing",r.oncuechange=O.bind(this),this._tracksById[r._id]=r;else if(k(r.kind)){var i,a=r.mode;if(r.mode="hidden",!r.cues.length&&r.embedded)continue;if(r.mode=a,this._cuesByTrackId[r._id]&&!this._cuesByTrackId[r._id].loaded){for(var s=this._cuesByTrackId[r._id].cues;i=s.pop();)r.addCue(i);r.mode=a,this._cuesByTrackId[r._id].loaded=!0}I.call(this,r)}}}this._renderNatively&&this.addTracksListener(this.video.textTracks,"change",g.bind(this)),this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function u(e){this._renderNatively=x(this.getName().name),!this.isSDK&&e&&(A.call(this,e)||(this._renderNatively&&(y.call(this),C.call(this)),this.itemTracks=e,_.call(this,e)))}function c(){return this._currentTextTrackIndex}function f(t){this._textTracks&&(0===t&&e.each(this._textTracks,function(e){e.mode="disabled"}),this._currentTextTrackIndex!==t-1&&(y.call(this),this._currentTextTrackIndex=t-1,this._renderNatively&&(this._textTracks[this._currentTextTrackIndex]&&(this._textTracks[this._currentTextTrackIndex].mode="showing"),this.trigger("subtitlesTrackChanged",{currentTrack:this._currentTextTrackIndex+1,tracks:this._textTracks}))))}function l(e){if(e.text&&e.begin&&e.end){var t=e.trackid.toString(),n=this._tracksById&&this._tracksById[t];n||(this._renderNatively=x(this.getName().name),n={kind:"captions",_id:t,data:[]},_.call(this,[n]),this.trigger("subtitlesTracks",{tracks:this._textTracks}));var r;e.useDTS&&(n.source||(n.source=e.source||"mpegts")),r=e.begin+"_"+e.text;var i=this._metaCuesByTextTime[r];if(!i){i={begin:e.begin,end:e.end,text:e.text},this._metaCuesByTextTime[r]=i;var a=P([i])[0];n.data.push(a)}}}function d(e){var t="native"+e.type,n=this._tracksById[t],r="captions"===e.type?"Unknown CC":"ID3 Metadata";if(!n){this._renderNatively=x(this.getName().name);var i={kind:e.type,_id:t,label:r,embedded:!0};n=E.call(this,i),this.setTextTracks(this.video.textTracks)}n.addCue(e.cue)}function h(e){var t=this._tracksById[e.name];if(t){t.source=e.source;for(var n=e.captions||[],r=[],i=!1,a=0;a<n.length;a++){var s=n[a],o=e.name+"_"+s.begin+"_"+s.end;this._metaCuesByTextTime[o]||(this._metaCuesByTextTime[o]=s,r.push(s),i=!0)}i&&r.sort(function(e,t){return e.begin-t.begin});var u=P(r);Array.prototype.push.apply(t.data,u)}}function p(e,t,n){e&&(n=n.bind(this),e.addEventListener?e.addEventListener(t,n):e["on"+t]=n)}function m(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n):e["on"+t]=null)}function v(){this._textTracks=null,this._tracksById=null,this._cuesByTrackId=null,this._metaCuesByTextTime=null,this._unknownCount=0,this._activeCuePosition=null,this._renderNatively&&T.call(this,this.video.textTracks),this._renderNatively=!1}function y(){this._textTracks&&this._textTracks[this._currentTextTrackIndex]&&(this._textTracks[this._currentTextTrackIndex].mode="disabled")}function g(){var t=this.video.textTracks,n=e.filter(t,function(e){return(e.inuse||!e._id)&&k(e.kind)});(!this._textTracks||n.length>this._textTracks.length)&&this.setTextTracks.call(this,t);var r=-1,i=0;for(i;i<this._textTracks.length;i++)if("showing"===this._textTracks[i].mode){r=i;break}r!==this._currentTextTrackIndex&&this.setSubtitlesTrack.call(this,r+1)}function _(e){if(e){this._textTracks||w.call(this),this._renderNatively=x(this.getName().name);for(var t=0;t<e.length;t++){var n=e[t];if(!n.kind||k(n.kind)){var r=E.call(this,n);I.call(this,r),n.file&&M.call(this,n,r)}}!this._renderNatively&&this._textTracks&&this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function b(e){var t,n=e.kind||"cc";return t=e["default"]||e.defaulttrack?"default":e._id||e.name||e.file||e.label||n+this._textTracks.length}function T(t){t.length&&e.each(t,function(e){for(e.mode="hidden";e.cues.length;)e.removeCue(e.cues[0]);e.mode="disabled",e.inuse=!1})}function x(e){return e.indexOf("flash")===-1&&(r.isChrome()||r.isIOS()||r.isSafari())}function k(e){return"subtitles"===e||"captions"===e}function w(){this._textTracks=[],this._tracksById={},this._metaCuesByTextTime={},this._cuesByTrackId={},this._unknownCount=0,this._renderNatively=!1}function E(t){var n,r=S.call(this,t);if(this._renderNatively){var i=this.video.textTracks;n=e.findWhere(i,{label:r}),n?(n.kind=t.kind,n.label=r,n.language=t.language||""):n=this.video.addTextTrack(t.kind,r,t.language||""),n["default"]=t["default"],n.mode="disabled",n.inuse=!0}else n=t,n.data=n.data||[];return n._id||(n._id=b.call(this,t)),n}function S(e){var t=e.label||e.name||e.language;return t||(t="Unknown CC",this._unknownCount++,this._unknownCount>1&&(t+=" ["+this._unknownCount+"]")),t}function I(e){this._textTracks.push(e),this._tracksById[e._id]=e}function M(e,t){r.ajax(e.file,function(e){R.call(this,e,t)}.bind(this),B)}function A(e){var t=this._textTracks,n=!0;return this._renderNatively&&t&&t.length&&(n=t[0].inuse),e===this.itemTracks&&t&&t.length>=e.length&&n}function C(){if(this._textTracks){var t=e.filter(this._textTracks,function(e){return e.embedded||"subs"===e.groupid});w.call(this),e.each(t,function(e){this._tracksById[e._id]=e}),this._textTracks=t}}function L(e,t){if(this._renderNatively){var n=this._tracksById[e._id];if(!n)return this._cuesByTrackId||(this._cuesByTrackId={}),void(this._cuesByTrackId[e._id]={cues:t,loaded:!1});if(this._cuesByTrackId[e._id]&&this._cuesByTrackId[e._id].loaded)return;var r;for(this._cuesByTrackId[e._id]={cues:t,loaded:!0};r=t.pop();)n.addCue(r)}else e.data=t}function P(t){var n=window.VTTCue,r=e.map(t,function(e){return new n(e.begin,e.end,e.text)});return r}function D(e,t){n.e(11,function(require){var r=n(13),i=new r(window);i.oncue=function(e){this._renderNatively?t.addCue(e):(t.data=t.data||[],t.data.push(e))}.bind(this),i.onparsingerror=function(e){B(e)},i.onflush=function(){},i.parse(e),i.flush()}.bind(this))}function O(n){var r=n.currentTarget.activeCues;if(r&&r.length){var i=r[r.length-1].startTime;if(this._activeCuePosition!==i){var a=[];if(e.each(r,function(e){e.startTime<i||(e.data||e.value?a.push(e):e.text&&this.trigger("meta",{metadataTime:i,metadata:JSON.parse(e.text)}))},this),a.length){var s=t.parseID3(a);this.trigger("meta",{metadataTime:i,metadata:s})}this._activeCuePosition=i}}}function R(e,t){var n,o=e.responseXML?e.responseXML.firstChild:null;if(o)for("xml"===i.localName(o)&&(o=o.nextSibling);o.nodeType===o.COMMENT_NODE;)o=o.nextSibling;try{n=o&&"tt"===i.localName(o)?r.tryCatch(function(){var n=s(e.responseXML),r=P(n);L.call(this,t,r)}.bind(this)):r.tryCatch(function(){var n=e.responseText;if(n.indexOf("WEBVTT")>=0)D.call(this,e.responseText,t);else{var r=a(e.responseText),i=P(r);L.call(this,t,i)}}.bind(this))}catch(u){n instanceof r.Error&&B(n.message+": "+t.file)}}function B(e){r.log("CAPTIONS("+e+")")}var U={_textTracks:null,_tracksById:null,_cuesByTrackId:null,_metaCuesByTextTime:null,_currentTextTrackIndex:-1,_unknownCount:0,_renderNatively:!1,_activeCuePosition:null,addTracksListener:p,clearTracks:v,disableTextTrack:y,getSubtitlesTrack:c,removeTracksListener:m,addTextTracks:_,setTextTracks:o,setupSideloadedTracks:u,setSubtitlesTrack:f,textTrackChangeHandler:g,addCuesToTrack:h,addCaptionsCue:l,addVTTCue:d};return U}.apply(t,r),!(void 0!==i&&(e.exports=i))},,,,,,function(e,t,n){"use strict";function r(e){return e&&e["@@transducer/reduced"]}function i(e,t){f.run(function(){e(t)})}function a(e){return console.log("error in channel transformer",e.stack),h}function s(e,t,n){var r=(t||a)(n);return r!==h&&e.add(r),e}function o(){}function u(e){return function(t){return{"@@transducer/step":function(n,r){try{return t["@@transducer/step"](n,r)}catch(i){return s(n,e,i)}},"@@transducer/result":function(n){try{return t["@@transducer/result"](n)}catch(r){return s(n,e,r)}}}}}var c=n(36),f=n(37),l=64,d=1024,h=null,p=function(e){this.value=e},m=function(e,t){this.handler=e,this.value=t},v=function(e,t,n,r){this.buf=n,this.xform=r,this.takes=e,this.puts=t,this.dirty_takes=0,this.dirty_puts=0,this.closed=!1};v.prototype._put=function(e,t){if(e===h)throw new Error("Cannot put CLOSED on a channel.");if(!t.is_active())return null;if(this.closed)return t.commit(),new p((!1));var n,a;if(this.buf&&!this.buf.is_full()){t.commit();for(var s=r(this.xform["@@transducer/step"](this.buf,e));;){if(0===this.buf.count())break;if(n=this.takes.pop(),n===c.EMPTY)break;n.is_active()&&(e=this.buf.remove(),a=n.commit(),i(a,e))}return s&&this.close(),new p((!0))}for(;;){if(n=this.takes.pop(),n===c.EMPTY)break;if(n.is_active())return t.commit(),a=n.commit(),i(a,e),new p((!0))}if(this.dirty_puts>l?(this.puts.cleanup(function(e){return e.handler.is_active()}),this.dirty_puts=0):this.dirty_puts++,t.is_blockable()){if(this.puts.length>=d)throw new Error("No more than "+d+" pending puts are allowed on a single channel.");this.puts.unbounded_unshift(new m(t,e))}return null},v.prototype._take=function(e){if(!e.is_active())return null;var t,n,a,s;if(this.buf&&this.buf.count()>0){for(e.commit(),s=this.buf.remove();;){if(this.buf.is_full())break;if(t=this.puts.pop(),t===c.EMPTY)break;n=t.handler,n.is_active()&&(a=n.commit(),a&&i(a,!0),r(this.xform["@@transducer/step"](this.buf,t.value))&&this.close())}return new p(s)}for(;;){if(t=this.puts.pop(),s=t.value,t===c.EMPTY)break;if(n=t.handler,n.is_active())return e.commit(),a=n.commit(),a&&i(a,!0),new p(s)}if(this.closed)return e.commit(),new p(h);if(this.dirty_takes>l?(this.takes.cleanup(function(e){return e.is_active()}),this.dirty_takes=0):this.dirty_takes++,e.is_blockable()){if(this.takes.length>=d)throw new Error("No more than "+d+" pending takes are allowed on a single channel.");this.takes.unbounded_unshift(e)}return null},v.prototype.close=function(){if(!this.closed){if(this.closed=!0,this.buf)for(this.xform["@@transducer/result"](this.buf);;){if(0===this.buf.count())break;if(t=this.takes.pop(),t===c.EMPTY)break;if(t.is_active()){n=t.commit();var e=this.buf.remove();i(n,e)}}for(;;){var t=this.takes.pop();if(t===c.EMPTY)break;if(t.is_active()){var n=t.commit();i(n,h)}}for(;;){var r=this.puts.pop();if(r===c.EMPTY)break;if(r.handler.is_active()){var a=r.handler.commit();a&&i(a,!1)}}}},v.prototype.is_closed=function(){return this.closed},o.prototype["@@transducer/init"]=function(){throw new Error("init not available")},o.prototype["@@transducer/result"]=function(e){return e},o.prototype["@@transducer/step"]=function(e,t){return e.add(t),e},t.chan=function(e,t,n){if(t){if(!e)throw new Error("Only buffered channels can use transducers");t=t(new o)}else t=new o;return t=u(n)(t),new v(c.ring(32),c.ring(32),e,t)},t.Box=p,t.Channel=v,t.CLOSED=h},function(e,t){"use strict";t.__esModule=!0;var n={BDA_UNITIALIZED_MPEG2STREAMTYPE:-1,Reserved1:0,ISO_IEC_11172_2_VIDEO:1,ISO_IEC_13818_2_VIDEO:2,ISO_IEC_11172_3_AUDIO:3,ISO_IEC_13818_3_AUDIO:4,ISO_IEC_13818_1_PRIVATE_SECTION:5,ISO_IEC_13818_1_PES:6,ISO_IEC_13522_MHEG:7,ANNEX_A_DSM_CC:8,ITU_T_REC_H_222_1:9,ISO_IEC_13818_6_TYPE_A:10,ISO_IEC_13818_6_TYPE_B:11,ISO_IEC_13818_6_TYPE_C:12,ISO_IEC_13818_6_TYPE_D:13,ISO_IEC_13818_1_AUXILIARY:14,ISO_IEC_13818_1_RESERVED:15,ISO_IEC_14496_3_AUDIO:17,USER_PRIVATE:16,ISO_IEC_14496_1_IN_PES:18,ISO_IEC_14496_1_IN_SECTION:19,ISO_IEC_13818_6_DOWNLOAD:20,METADATA_IN_PES:21,METADATA_IN_SECTION:22,METADATA_IN_DATA_CAROUSEL:23,METADATA_IN_OBJECT_CAROUSEL:24,METADATA_IN_DOWNLOAD_PROTOCOL:25,IRPM_STREAMM:26,ITU_T_H264:27,ISO_IEC_USER_PRIVATE:128,DOLBY_AC3_AUDIO:129,DOLBY_DIGITAL_PLUS_AUDIO_ATSC:135};t["default"]=n},,,,,,,,,,function(e,t,n){"use strict";function r(e,t){var n=o.chan(s.fixed(1));return new c.Process(e,function(e){e===o.CLOSED?n.close():c.put_then_callback(n,e,function(e){n.close()})},t).run(),n}function i(e,t){t=t||[];var n=e.apply(null,t);return r(n,e)}function a(e,t,n){var r;return 0===e&&(e=null),r="number"==typeof e?s.fixed(e):e,o.chan(r,t,n)}var s=n(36),o=n(24),u=n(53),c=n(95),f=n(96);e.exports={buffers:{fixed:s.fixed,dropping:s.dropping,sliding:s.sliding},spawn:r,go:i,chan:a,DEFAULT:u.DEFAULT,CLOSED:o.CLOSED,put:c.put,take:c.take,offer:c.offer,poll:c.poll,sleep:c.sleep,alts:c.alts,putAsync:c.put_then_callback,takeAsync:c.take_then_callback,NO_VALUE:c.NO_VALUE,timeout:f.timeout}},function(e,t){"use strict";function n(e,t,n,r,i){for(var a=0;;){if(a>=i)break;n[r+a]=e[t+a],a++}}var r={toString:function(){return"[object EMPTY]"}},i=function(e,t,n,r){this.length=n,this.array=r,this.head=e,this.tail=t};i.prototype._unshift=function(e){var t=this.array,n=this.head;t[n]=e,this.head=(n+1)%t.length,this.length++},i.prototype._resize=function(){var e=this.array,t=2*e.length,r=new Array(t),i=this.head,a=this.tail,s=this.length;a<i?(n(e,a,r,0,s),this.tail=0,this.head=s,this.array=r):a>i?(n(e,a,r,0,e.length-a),n(e,0,r,e.length-a,i),this.tail=0,this.head=s,this.array=r):a===i&&(this.tail=0,this.head=0,this.array=r)},i.prototype.unbounded_unshift=function(e){this.length+1===this.array.length&&this._resize(),this._unshift(e)},i.prototype.pop=function(){if(0===this.length)return r;var e=this.array,t=this.tail,n=e[t];return e[t]=null,this.tail=(t+1)%e.length,this.length--,n},i.prototype.cleanup=function(e){for(var t=this.length,n=0;n<t;n++){var r=this.pop();e(r)&&this._unshift(r)}};var a=function(e,t){this.buf=e,this.n=t};a.prototype.is_full=function(){return this.buf.length>=this.n},a.prototype.remove=function(){return this.buf.pop()},a.prototype.add=function(e){this.buf.unbounded_unshift(e)},a.prototype.count=function(){return this.buf.length};var s=function(e,t){this.buf=e,this.n=t};s.prototype.is_full=function(){return!1},s.prototype.remove=function(){return this.buf.pop()},s.prototype.add=function(e){this.buf.length<this.n&&this.buf._unshift(e)},s.prototype.count=function(){return this.buf.length};var o=function(e,t){this.buf=e,this.n=t};o.prototype.is_full=function(){return!1},o.prototype.remove=function(){return this.buf.pop()},o.prototype.add=function(e){this.buf.length===this.n&&this.buf.pop(),this.buf._unshift(e)},o.prototype.count=function(){return this.buf.length};var u=t.ring=function(e){return new i(0,0,0,new Array(e))};t.fixed=function(e){return new a(u(e),e)},t.dropping=function(e){return new s(u(e),e)},t.sliding=function(e){return new o(u(e),e)},t.EMPTY=r},function(e,t,n){(function(e){"use strict";function r(){u=!0,c=!1;for(var e=0;;){var t=o.pop();if(t===a.EMPTY)break;if(t(),e>=s)break;e++}u=!1,o.length>0&&i()}var i,a=n(36),s=1024,o=a.ring(32),u=!1,c=!1;if("undefined"!=typeof MessageChannel){var f=new MessageChannel;f.port1.onmessage=function(e){r()},i=function(){c&&u||(c=!0,f.port2.postMessage(0))}}else i="undefined"!=typeof e?function(){c&&u||(c=!0,e(r))}:function(){c&&u||(c=!0,setTimeout(r,0))};t.run=function(e){o.unbounded_unshift(e),i()},t.queue_delay=function(e,t){setTimeout(e,t)}}).call(t,n(46).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.SegmentOriginalData=t.Dimensions=t.Segment=t.StreamInfo=t.Level=void 0;var a=n(60),s=r(a),o=n(1),u=(t.Level=function(){function e(){i(this,e),this.segments=[],this.mediaSequence=0,this.mediaSequenceMap={},this.streamInfo=new u,this.updatedInLastRefresh=!1,this.disabled=!1,this.segmentFileSize=new s["default"](30)}return e.prototype.containsSegment=function(e){return!!e&&void 0!==this.mediaSequenceMap[e.mediaSequenceId]},e.prototype.flushSegmentInfo=function(){this.segments=[],this.mediaSequenceMap={}},e.prototype.appendSegment=function(e){return!this.containsSegment(e)&&(this.segments.push(e),this.mediaSequenceMap[e.mediaSequenceId]=e,!0)},e.prototype.updateSegments=function(){if(this.segments.length){for(var e=-1,t=this.segments,n=void 0,r=0;r<t.length;r++){n=t[r];var i=t[r+1];n.end=n.start+n.duration,i&&(i.start=n.end),n.mediaSequenceId>=this.mediaSequence&&e===-1&&(e=n.start)}this.streamInfo.end=n.end,e!==-1&&(this.streamInfo.start=e)}},e.prototype.getSegmentTimeRange=function(t,n){return e.getRanges(this.segments,t,n)},e.prototype.getLastSegment=function(){return o.last(this.segments)},e.getRanges=function(e,t,n){return o.filter(e,function(e){return t<=e.end&&n>=e.start})},e}(),t.StreamInfo=function l(){i(this,l),this.label="",this.urls=[],this.bandwidth=1e5,this.start=0,this.end=0,this.codecs=[],this.trackTypes=[],this.resolution=new c,this.targetDuration=5,this.originalIndex=0,this.video="",this.audio="",this.programId=0,this.hasEndlist=!1}),c=(t.Segment=function d(){i(this,d),this.duration=0,this.title="",this.start=0,this.end=0,this.discontinuity=0,this.mediaSequenceId=0,this.url="",this.key="",this.aesKeyUri="",this.aesIV=[],this.originalData=new f,this.byteRange={},this.pts=0,this.size=0,this.isLast=!1},t.Dimensions=function h(){i(this,h),this.width=0,this.height=0}),f=t.SegmentOriginalData=function p(){i(this,p),this.duration=0,this.start=0,this.end=0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){if(0!==c.size(this.requestsInFlight)){var e=c.reduce(this.requestsInFlight,function(e,t){return e+(t.avgBandwidth.average()||0)},0);this.averageDownlink_.push(e)}}t.__esModule=!0,t.Network=t.RequestType=void 0;var s=n(60),o=r(s),u=n(40),c=n(1),f=n(3),l=n(6),d=t.RequestType=void 0;!function(e){e[e.Text=0]="Text",e[e.ByteArray=1]="ByteArray"}(d||(t.RequestType=d={}));var h=function m(e,t,n){i(this,m),this.uri=e,this.requester=t,this.estimatedSize=n,this.avgBandwidth=new o["default"](20)},p=function(){function e(t){i(this,e),this.requests_=[],this.destroyed_=!1,this.credentials="omit",this.requestsInFlight={},c.extend(this,f),this.recordBandwidth_=c.throttle(a.bind(this),100),this.averageDownlink_=new o["default"](20),this.averageLatency_=new o["default"](10),this.credentials=t&&t.withCredentials?"include":"omit"}return e.prototype.status=function(){var e=c.filter(this.requestsInFlight,function(e){return"media-file"===e.requester});return{requestsOutstanding:c.size(e),bandwidth:Math.max(this.averageDownlink_.average(),0),bandwidthMax:Math.max(this.averageDownlink_.max(),0),latency:this.averageLatency_.average()/1e3}},e.prototype.maxLatency=function(){return this.averageLatency_.max()},e.prototype.request=function(e){function t(e){var t=f.indexOf(e);return f.splice(t,1),e}var n=this;if(this.destroyed_)throw"Network Engine destroyed";for(var r=e.retryParameters||{},i=r.maxAttempts||1,a=r.backoffFactor||2,s=null==r.baseDelay?500:r.baseDelay,o=this.send_(e,0),u=function(t){var r=t%e.uris.length;o=o["catch"](function(){return n.resend_(e,s,r)}),s*=a},c=1;c<i;c++)u(c);var f=this.requests_;f.push(o);var l=e.requestType;return o.then(function(){return t(o)})["catch"](function(e){return t(o),e}).then(function(e){return n.processResponse_(l,e)})},e.prototype.processResponse_=function(e,t){function n(e,t,o){e.read().then(function(d){if(d.value){o+=d.value.length,f+=d.value.length;var h=i(d.value,d.done);l.putAsync(a,h)}if(d.done)return delete u.requestsInFlight[r],l.putAsync(s,{size:f},function(){return s.close()}),void a.close();var p=c.now(),m=p-t;if(m>5){var v=Math.floor(o/m);u.requestsInFlight[r].avgBandwidth.push(v),u.recordBandwidth_(),t=p,o=0}n(e,t,o)})}if(t.error)throw t.error;var r=t.requestId,i=c.identity;e===d.Text&&!function(){var e=void 0;e=new TextDecoder,i=function(t,n){return e.decode(t||Uint8Array,{stream:n})}}();var a=l.chan(1e5),s=l.chan(),o=c.now()-t.startTime;o=Math.min(Math.max(10,o||0),3e3),this.averageLatency_.push(o);var u=this,f=0,h=t.response.body.getReader();return n(h,c.now(),0),{chan:a,metaChan:s,url:t.url}},e.prototype.send_=function(e,t){var n=e.uris[t],r=e.requester,i=c.uniqueId("request_"),a=new h(n,r,100);this.requestsInFlight[i]=a;var s={requestId:i,startTime:c.now(),url:n,response:void 0,error:void 0},o={credentials:this.credentials};return fetch(n,o)["catch"](function(){return s.url&&"http:"===s.url.substring(0,5)&&"https:"===document.location.protocol?s.error="Unable to fetch HTTP resource over HTTPS":s.error="Crossdomain access denied",null}).then(function(e){if(s.response=e,!e||!e.ok)throw s.error=s.error||e.status+" "+e.statusText,s;return s})},e.prototype.resend_=function(e,t,n){var r=this,i=e.retryParameters||{},a=null==i.fuzzFactor?.5:i.fuzzFactor,s=2*Math.random()-1,o=s*a,c=t*(1+o);return(0,u.wait)(c).then(function(){return r.send_(e,n)})},e.prototype.destroy=function(){this.destroyed_=!0;var e=c.map(this.requests_,function(e){return e["catch"](c.noop)});return Promise.all(e)},e}();t.Network=p},function(e,t,n){"use strict";function r(e){return new Promise(function(t){setTimeout(t,e)})}function i(e){return new Promise(function(t){a.takeAsync(e,t)})}t.__esModule=!0,t.wait=r,t.channelToPromise=i;var a=n(6)},,,,,,function(e,t,n){(function(e,r){function i(e,t){this._id=e,this._clearFn=t}var a=n(82).nextTick,s=Function.prototype.apply,o=Array.prototype.slice,u={},c=0;t.setTimeout=function(){return new i(s.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(s.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,r=!(arguments.length<2)&&o.call(arguments,1);return u[n]=!0,a(function(){u[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(t,n(46).setImmediate,n(46).clearImmediate)},,,,function(e,t,n){var r,i;r=[n(2)],i=function(e){return{volume:function(t){t=e.between(t/100,0,1),this.video.volume=t},mute:function(e){this.video.muted=!!e},resize:function(t,n,r){if(!(t&&n&&this.video.videoWidth&&this.video.videoHeight))return!1;if("uniform"===r){var i=t/n,a=this.video.videoWidth/this.video.videoHeight,s=null;Math.abs(i-a)<.09&&(s="fill"),e.style(this.video,{objectFit:s})}return!1},getVideo:function(e){var t=document.getElementById(e),n=(t?t.querySelector("video"):void 0)||document.createElement("video");return n.className="jw-video jw-reset",this.video=n,n}}}.apply(t,r),!(void 0!==i&&(e.exports=i))},function(e,t,n){var r,i;r=[n(3),n(20),n(5)],i=function(e,t,n){var r=256;return{attached:!0,beforeComplete:!1,stallCheckTimeout_:-1,lastStalledTime_:NaN,trigger:function(t,n){if(this.attached)return e.trigger.call(this,t,n)},setState:function(e){if(this.attached)return t.setState.call(this,e)},checkComplete:function(){return this.beforeComplete},playbackComplete_:function(){this.stopStallCheck(),this.setState(n.COMPLETE),this.beforeComplete=!1,this.trigger("complete")},attachMedia:function(){this.attached=!0,this.eventsOn_(),this.beforeComplete&&this.playbackComplete_()},detachMedia:function(){return this.stopStallCheck(),this.attached=!1,this.eventsOff_(),this.video},stopStallCheck:function(){clearTimeout(this.stallCheckTimeout_)},startStallCheck:function(){this.stopStallCheck(),this.stallCheckTimeout_=setTimeout(this.stalledHandler.bind(this),r)},stalledHandler:function(){return this.lastStalledTime_!==this.video.currentTime?void(this.lastStalledTime_=this.video.currentTime):void(this.video.paused||this.video.ended||this.state!==n.LOADING&&this.state!==n.ERROR&&(this.seeking||this.setState(n.STALLED)))}}}.apply(t,r),!(void 0!==i&&(e.exports=i))},function(e,t,n){var r,i;r=[n(2),n(5)],i=function(e,t){return{seeking:!1,loadedmetadata:function(){var e={duration:this.getDuration(),height:this.video.videoHeight,width:this.video.videoWidth},t=this.drmUsed;t&&(e.drm=t),this.trigger("meta",e)},timeupdate:function(){this.stopStallCheck();var e=this.video.videoHeight;e!==this._helperLastVideoHeight&&this.trigger("adaptation",{size:{width:this.video.videoWidth,height:this.video.videoHeight}}),this._helperLastVideoHeight=e,this.state===t.STALLED&&this.setState(t.PLAYING),this.startStallCheck();var n=this.getCurrentTime(),r={position:n,duration:this.getDuration()};if(this.getPtsOffset){var i=this.getPtsOffset();i>=0&&(r.metadata={mpegts:i+n})}this.trigger("time",r)},click:function(e){this.trigger("click",e)},volumechange:function(){var e=this.video;this.trigger("volume",{volume:Math.round(100*e.volume)}),this.trigger("mute",{mute:e.muted})},seeked:function(){this.seeking=!1,this.trigger("seeked")},playing:function(){this.setState(t.PLAYING)},pause:function(){this.state!==t.COMPLETE&&(this.video.ended||this.video.currentTime!==this.video.duration&&this.setState(t.PAUSED))},progress:function(){var t=this.getDuration();if(!(t<=0||t===1/0)){var n=this.video.buffered;if(n&&0!==n.length){var r=e.between(n.end(n.length-1)/t,0,1);this.trigger("bufferChange",{bufferPercent:100*r,position:this.getCurrentTime(),duration:t})}}},ended:function(){if(this.stopStallCheck(),this._helperLastVideoHeight=0,this.state!==t.IDLE&&this.state!==t.COMPLETE){if(this.beforeComplete=!0,this.attached=!0,this.trigger("beforeComplete"),!this.attached)return;this.playbackComplete_()}},loadeddata:function(){this.setTextTracks(this.video.textTracks),this.video.setAttribute("jw-loaded","data")},error:function(){var e=this.video.error&&this.video.error.code||-1,t={1:"Unknown operation aborted",2:"Unknown network error",3:"Unknown decode error",4:"Source not supported"}[e]||"Unknown";this.trigger("mediaError",{code:e,message:"Error playing file: "+t})}}}.apply(t,r),!(void 0!==i&&(e.exports=i))},function(e,t,n){"use strict";function r(e){return Math.floor(Math.random()*(e+1))}function i(e){var t,n=new Array(e);for(t=0;t<e;t++)n[t]=0;for(t=1;t<e;t++){var i=r(t);n[t]=n[i],n[i]=t}return n}var a=n(24).Box,s=function(e,t){this.f=t,this.flag=e};s.prototype.is_active=function(){return this.flag.value},s.prototype.is_blockable=function(){return!0},s.prototype.commit=function(){return this.flag.value=!1,this.f};var o=function(e,t){this.value=e,this.channel=t},u=Object.prototype.hasOwnProperty,c={toString:function(){return"[object DEFAULT]"}};t.do_alts=function(e,t,n){var r=e.length;if(0===r)throw new Error("Empty alt list");var f=!(!n||!n.priority);if(!f)var l=i(r);for(var d=new a((!0)),h=0;h<r;h++){var p,m,v=e[f?h:l[h]];if(v instanceof Array){var y=v[1];p=v[0],m=p._put(y,function(e){return new s(d,function(n){t(new o(n,e))})}(p))}else p=v,m=p._take(function(e){return new s(d,function(n){t(new o(n,e))})}(p));if(m instanceof a){t(new o(m.value,p));break}}m instanceof a||!n||!u.call(n,"default")||d.value&&(d.value=!1,t(new o(n["default"],c)))},t.DEFAULT=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.Manifest=t.MediaData=void 0;var i=n(102),a=n(101),s=n(38),o=n(100),u=n(1),c=n(3);n(4),t.MediaData=function f(e){r(this,f),this.type=e.type,this.groupId=e.groupid,this.instreamId=e.instreamid,this.name=e.name,this.uri=e.uri,this.language=e.language,this.associatedLanguage=e.assoclanguage,this["default"]="YES"===e["default"],"undefined"!=typeof e.autoselect&&(this["default"]=this.autoSelect=!0),this.forced="YES"===e.forced,this.characteristics=e.characteristics?e.characteristics.split(","):[]},t.Manifest=function(){function e(t,n){r(this,e),this.ptsToSecondsMap_={},this.streamType="LIVE",this.lastManifestRefreshTime_={},this.url="",this.levels_=[],this.sortedLevels_=[],this.refreshesWithoutChanges=0,u.extend(this,c),this.network=t,this.video_=n}return e.prototype.load=function(e,t){var n=this;return this.url=e,this.fetchManifest_({manifestURL:e,loadStreamLabel:t}).then(function(e){return"VOD"!==n.streamType&&(n.liveManifestLoader=new o.LiveManifestLoader(n,n.network,n.video_)),e})},e.prototype.getLevelFromLabel=function(e,t){for(var n=0;n<e.length;n++)if(e[n].label===t)return n;return 0},e.prototype.requestTS=function(e,t,n){var r=this,i=this.sortedLevels_[n];return this.fetchDataPromise_.then(function(){if(i.disabled)return Promise.resolve([]);var n=i.streamInfo.originalIndex;return"VOD"===r.streamType?r.refreshManifest(n).then(function(){return i.getSegmentTimeRange(e,t)}):r.liveManifestLoader.pollManifest(n).then(function(){var n=i.getSegmentTimeRange(e,t);if(n.length)return n;var r=i.segments[0];return r&&r.start>t?i.segments:[]})})},e.prototype.getSegmentFromIndex=function(e){var t=e.split("_"),n=t[0],r=t[1],i=this.levels_[parseInt(n)];return i.mediaSequenceMap[r]},e.prototype.updateTS=function(e,t,n){var r=this.levels_[e],i=r.mediaSequenceMap[t];i&&"video"===n.type&&n.duration&&(i.duration=n.duration,i.pts=n.start,this.updateTimeline_(r))},e.prototype.setPtsMapping=function(e,t,n){this.ptsToSecondsMap_[e]||(this.ptsToSecondsMap_[e]={discontinuity:e,pts:t,seconds:n})},e.prototype.getPtsMapping=function(e){return this.ptsToSecondsMap_[e]},e.prototype.updateLevel=function(e){var t=this.levels_[e.level];t.segmentFileSize.push(e.size);var n=t.segmentFileSize.max()/t.streamInfo.targetDuration;t.streamInfo.bandwidth=Math.max(t.streamInfo.bandwidth,n)},e.prototype.refreshManifest=function(e){var t=this;return"VOD"===this.streamType&&this.levels_[e].segments.length?Promise.resolve(this.currentManifestMetadata):(this.fetchDataPromise_=this.fetchManifestData_({manifestURL:this.url,loadStreamIndex:e}).then(function(e){return t.refreshLevels_(e)}).then(function(e){return t.appendManifestInfoToLevels_(e)}).then(function(e){var n=e.media.streamInfo.originalIndex,r=t.levels_[n];return t.referenceTimeline_=r,t.updateTimeline_(r),
t.currentManifestMetadata}).then(function(e){var n=u.any(e.levels,u.property("updatedInLastRefresh"));return t.refreshesWithoutChanges=n?0:t.refreshesWithoutChanges+1,e}),this.fetchDataPromise_)},e.prototype.destroy=function(){this.liveManifestLoader&&this.liveManifestLoader.destroy(),this.network&&(this.network=null)},e.prototype.fetchManifest_=function(e){var t=this;return this.fetchDataPromise_=this.fetchManifestData_(e).then(function(e){return t.setupLevels_(e)})["catch"](function(e){return e}).then(function(e){var n=u.isString(e);if(n)throw e;var r=u.where(t.levels_,{disabled:!1});if(!r.length)throw"No levels to play";if(!t.referenceTimeline_||t.referenceTimeline_.disabled)throw"Playlist could not be loaded";var i=t.referenceTimeline_.streamInfo;return t.sortedLevels_=t.getSortedLevels_(r),t.currentManifestMetadata={initialLevel:t.initialLevel,sortedLevels:t.sortedLevels_,levels:r,trackTypes:r[0].streamInfo.trackTypes,streamType:t.streamType,start:i.start,end:i.end},t.currentManifestMetadata}),this.fetchDataPromise_},e.prototype.doneLoading=function(){return this.fetchDataPromise_},e.prototype.fetchManifestData_=function(e){function t(t,n){var i=e.loadStreamIndex;u.isNumber(i)&&!u.isNaN(i)||(i=r.getLevelFromLabel(t,e.loadStreamLabel));var a=t[i],s=n.getPlaylist();return s.streamInfos=t,r.downloadAndParseThrottle_(a.urls,a).then(function(e){return{master:s,media:e.parser.getPlaylist()}})["catch"](function(){return{master:s,media:{streamInfo:a}}})}function n(e){var n=e.parser;if(e.children=r.groupRedundantStreams_(e.children),e.children.length)return r.parsedMaster_=e,t(e.children,n);var i=n.getPlaylist();return{master:void 0,media:i}}var r=this;return this.url===e.manifestURL&&this.parsedMaster_?t(this.parsedMaster_.children,this.parsedMaster_.parser):this.downloadAndParseThrottle_([e.manifestURL]).then(n)},e.prototype.downloadAndParseThrottle_=function(t,n){var r=n?e.makeRedundantStreamKey(n):t[0],i=u.now(),a=this.lastManifestRefreshTime_[r];if(a&&i-a.time<500)return a.promise;var s=this.downloadAndParse_(t,n);return this.lastManifestRefreshTime_[r]={time:i,promise:s},s},e.prototype.downloadAndParse_=function(e,t){var n=new i.ManifestParser(t),r=new a.ManifestLoader(this.network),s=[];return r.on("baseUrlFound",n.setBaseUrl,n),n.on("mediaPlaylistFound",function(e){s.push(e)}),r.on("manifestChunk",n.parse,n),r.load(e).then(function(){return n.off(),r.off(),{children:s,parser:n}})},e.prototype.suspendManifestReloading=function(){"LIVE"===this.streamType&&this.liveManifestLoader&&this.liveManifestLoader.cancelReloading()},e.prototype.refreshLevels_=function(e){var t=this,n=e.media;if(!n.streamInfo)return null;var r=u.where(this.levels_,{disabled:!1});if(r.length>1&&(this.disableLevel_(n),r=u.where(this.levels_,{disabled:!1})),r.length!==this.sortedLevels_.length){this.sortedLevels_=this.getSortedLevels_(r),this.currentManifestMetadata.levels=r,this.currentManifestMetadata.sortedLevels=this.sortedLevels_;var i=r[0],a=i.streamInfo.originalIndex,s=u.indexOf(this.sortedLevels_,this.levels_[a]);return this.trigger("levels-disabled",{levels:this.sortedLevels_,nextIndex:s}),this.fetchManifestData_({manifestURL:this.url,loadStreamIndex:a}).then(function(e){return t.refreshLevels_(e)})}return Promise.resolve(e)},e.prototype.setupLevels_=function(e){var t=this;e.master||(e.master=new i.Playlist,e.master.streamInfos=[e.media.streamInfo]),this.levels_.length||(this.levels_=u.map(e.master.streamInfos,function(t){var n=new s.Level;return n.streamInfo=t,n.streamInfo.video&&e.master.renditions.video&&(n.streamInfo.video=e.master.renditions.video[n.streamInfo.video]),n.streamInfo.audio&&e.master.renditions.audio&&(n.streamInfo.audio=e.master.renditions.audio[n.streamInfo.audio]),n})),u.each(this.levels_,function(e,t){e.streamInfo.originalIndex=t});var n=e.media;if(!n.streamInfo)return Promise.reject("Invalid manifest file");this.disableLevels_(n);var r=n.streamInfo.originalIndex,a=this.levels_[r],o=a.streamInfo;this.referenceTimeline_=a,o.start=n.streamInfo.start,o.end=n.streamInfo.end,o.targetDuration=n.streamInfo.targetDuration,o.hasEndlist?this.streamType="VOD":o.end-o.start>=120&&(this.streamType="DVR"),u.each(n.mediaElements,function(e){e.level=r,a.appendSegment(e)}),this.initialLevel=a;var c=u.where(this.levels_,{disabled:!1});if(!c.length)throw"No levels to play";if(this.sortedLevels_=this.getSortedLevels_(c),a.disabled){var f=c[0].streamInfo.originalIndex;return this.fetchManifestData_({manifestURL:this.url,loadStreamIndex:f}).then(function(e){return t.setupLevels_(e)})}return Promise.resolve()},e.prototype.setCurrentQuality=function(e){if(e!==-1){var t=this.sortedLevels_[e];this.refreshManifest(t.streamInfo.originalIndex)}},e.prototype.disableLevels_=function(e){e&&this.disableLevel_(e);var t=u.any(this.levels_,function(e){return u.any(e.streamInfo.trackTypes,function(e){return"video"===e.type})}),n=u.any(this.levels_,function(e){return u.contains(e.streamInfo.codecs,"mp4a.40.2")});u.each(this.levels_,function(e){var r=1===e.streamInfo.trackTypes.length&&"audio"===e.streamInfo.trackTypes[0].type,i=e.streamInfo.codecs&&u.contains(e.streamInfo.codecs,"mp4a.40.5");(t&&r||n&&i)&&(e.disabled=!0)})},e.prototype.disableLevel_=function(e){var t=e.mediaElements;if(!t||!t.length||!t[0].url){var n=e.streamInfo.originalIndex;this.levels_[n].disabled=!0}},e.prototype.getSortedLevels_=function(e){var t=u.clone(e);return t.sort(function(e,t){return t.streamInfo.resolution.height&&e.streamInfo.resolution.height?t.streamInfo.resolution.height-e.streamInfo.resolution.height:t.streamInfo.bandwidth-e.streamInfo.bandwidth}),t},e.prototype.appendManifestInfoToLevels_=function(e){var t=e.media,n=t.streamInfo.originalIndex,r=this.levels_[n];if(r.mediaSequence=t.mediaSequence,"DVR"===this.streamType||"LIVE"===this.streamType){t.segments=t.mediaElements||[],r.updateSegments.call(t);var i=this.syncLiveLevels_(t);i||this.referenceTimeline_.segments.length&&(t.mediaElements[0].start=u.last(this.referenceTimeline_.segments).end,this.ptsToSecondsMap_={}),t.streamInfo.hasEndlist&&(u.each(this.levels_,function(e){e.streamInfo.hasEndlist=!0}),this.streamType=this.currentManifestMetadata.streamType="VOD")}var a=!1;return u.each(t.mediaElements,function(e){var t=r.appendSegment(e);t&&(a=!0),e.level=r.streamInfo.originalIndex}),r.updatedInLastRefresh=a,r.streamInfo.targetDuration=t.streamInfo.targetDuration,e},e.prototype.updateTimeline_=function(e){e.updateSegments(),e===this.referenceTimeline_&&(this.currentManifestMetadata.start=e.streamInfo.start,this.currentManifestMetadata.end=e.streamInfo.end)},e.prototype.syncLiveLevels_=function(e){var t=this,n=!1;return u.each(this.levels_,function(r){if(t.attemptSync_(e,r))n=!0;else{var i=t.liveManifestLoader.refreshRequests[r.streamInfo.originalIndex];i&&i.cycles||r.flushSegmentInfo()}}),n},e.prototype.attemptSync_=function(e,t){var n=e.mediaElements[0],r=t.getLastSegment();if(0===t.segments.length)return!1;if(r.mediaSequenceId+1===n.mediaSequenceId)return n.start=r.end,!0;for(var i=0,a=0;i<e.mediaElements.length&&a<t.segments.length;){var s=e.mediaElements[i],o=t.segments[a];if(s.mediaSequenceId===o.mediaSequenceId){var u=o.start-s.start;return e.mediaElements[0].start+=u,!0}s.mediaSequenceId<o.mediaSequenceId?i++:a++}return!1},e.prototype.groupRedundantStreams_=function(t){for(var n={},r=t,i=Array.isArray(r),a=0,r=i?r:r[Symbol.iterator]();;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if(a=r.next(),a.done)break;s=a.value}var o=s,u=e.makeRedundantStreamKey(o),c=n[u];c?c.urls=c.urls.concat(o.urls):n[u]=o}return Object.keys(n).map(function(e){return n[e]})},e.makeRedundantStreamKey=function(e){var t=e.resolution;return t&&t.width&&t.height?""+t.width+"x"+t.height:e.bandwidth?""+e.bandwidth:"no resolution"},e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.StreamingEngine=void 0;var a=n(7),s=r(a),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=n(103),c=n(97),f=r(c),l=n(209),d=n(1),h=n(2),p=n(3),m=n(6),v=n(23),y=window,g=y.VTTCue||y.TextTrackCue,_=1,b=10,T=60,x=50,k=200,w=30,E={video:{"default":'video/mp4; codecs="avc1.4d4015"'},audio:{"default":"audio/aac",aac:"audio/aac",mp3:"audio/mpeg"}};t.StreamingEngine=function(){function e(t,n,r,a,s){var o=this;i(this,e),this.lastTransmuxSessionComplete_=Promise.resolve([]),this.onTickInterval=-1,this.bufferEventSent_=!1,this.startOfStream_=!0,this.lastDuration_=NaN,d.extend(this,p),this.network=n,this.video=r,this.mediaSource=a,this.manifestRepresentation=t,this.mediaDataModel=new u.MDM(t,n),this.adaptive=new f["default"],this.edition_=s,this.supports=new v(s),this.manifestRepresentation.on("levels-disabled",function(e){var t=e.nextIndex;e.levels.length>1&&t++,o.adaptive.updateLevels(e.nextIndex),o.trigger("levels",{levels:e.levels,currentQuality:t})}),this.adaptive.on("quality-change",function(e){o.manifestRepresentation.setCurrentQuality(e)}),this.textTrackCache_={captions:{cues:{}},metadata:{cues:{}}},this.mediaDataModel.on("segment-download-error",function(e){o.trackTypes_||o.beginStream()})}return e.prototype.updateDuration_=function(e){return"VOD"!==e.streamType&&e.end>this.video.duration&&this.msee.setDuration(e.end),this.onDurationChange(e),e},e.prototype.clearBackBuffer_=function(e){var t=this;if(!this.mediaSource.sourceBuffers.length||!this.lastTransmuxSession_.tmsArray.length)return Promise.resolve(e);var n=d.last(this.lastTransmuxSession_.tmsArray).ts.isLast;if(this.mediaSource.sourceBuffers[0].buffered.length&&!n){var r=function(){var n=t.mediaSource.sourceBuffers[0].buffered.start(0),r=Math.max(t.video.currentTime-T,0);if(r-n>b)return{v:t.removeBuffer(0,r).then(function(){return t.mediaDataModel.removeAllTmsInRange(0,r),e})["catch"](function(){return e})}}();if("object"===("undefined"==typeof r?"undefined":o(r)))return r.v}return Promise.resolve(e)},e.prototype.skipVideoBeforeAudio=function(){if(this.msee&&2===this.mseeTracks_.length){var e=this.msee.sourceBuffers_.video.buffered,t=this.msee.sourceBuffers_.audio.buffered;if(e.length&&t.length){var n=e.start(0),r=t.start(0);if(this.video.currentTime===n&&n<r)return this.video.currentTime=r,!0}}return!1},e.prototype.skipDiscontinuousZones=function(e){var t=this.video.currentTime;if(this.skipVideoBeforeAudio())return e;var n=this.mediaDataModel.getSegmentAtTime(t);if(!n||this.minForwardBuffer()>.2)return e;var r=this.manifestRepresentation.levels_[n.level].segments,i=r.indexOf(n),a=r[i+1];if(!a||i===-1)return e;if(n.errorInSegment)return this.video.currentTime=n.end+.01,e;if(a.errorInSegment&&a.start-t<.2)return this.video.currentTime=a.end+.01,e;var s=this.firstBufferedRange_(t),o=this.mediaDataModel.currentTransmuxSession,u=d.pluck(this.mseeTracks_,"type");return t>=n.start&&t<n.end&&o.isBuffered(u)&&s-t<5&&s>t&&(this.video.currentTime=s),n.discontinuity!==a.discontinuity&&this.video.buffered.length>1&&(this.video.currentTime=a.start),e},e.prototype.firstBufferedRange_=function(e){var t=d.map(this.mseeTracks_,function(t){for(var n=this.msee.sourceBuffers_[t.type].buffered,r=n.length,i=0;i<r;i++){var a=n.start(i);if(e>=a&&e<=n.end(i)||e<=a)return a}return e},this);return Math.max.apply(Math,t)},e.prototype.onTick_=function(){var e=this;if(this.msee){if(this.video&&this.video.error)return this.destroy();this.adaptive.whatToDownload(this).then(this.buffer_.bind(this)),this.manifestRepresentation.doneLoading().then(function(t){return e.updateDuration_(t)}).then(function(t){return e.skipDiscontinuousZones(t)}).then(function(t){return e.clearBackBuffer_(t)})["catch"](function(t){return e.trigger("error",t)})}},e.prototype.removeBuffer=function(e,t){if(!this.msee)return Promise.resolve();var n=d.map(this.mseeTracks_,function(n){return this.msee.remove(n.type,e,t)["catch"](function(){})},this);return this.mediaDataModel.removeInactiveTmsInRange(e,t),Promise.all(n)},e.prototype.setCurrentQuality=function(e){var t=this.manifestRepresentation.sortedLevels_;this.adaptive.setQuality(e,t)},e.prototype.addListeners=function(){this.removeVideoListeners_(),this.onTimeUpdateListener=this.onTimeUpdate_.bind(this),this.onSeekingListener=this.onSeeking_.bind(this),this.video.addEventListener("timeupdate",this.onTimeUpdateListener,!1),this.video.addEventListener("seeking",this.onSeekingListener,!1),this.onTickThrottle_=d.throttle(this.onTick_.bind(this),x),this.resumeOnTick()},e.prototype.removeVideoListeners_=function(){this.video.removeEventListener("timeupdate",this.onTimeUpdateListener),this.video.removeEventListener("seeking",this.onSeekingListener)},e.prototype.removeListeners=function(){this.removeVideoListeners_(),this.suspendOnTick(),this.adaptive.off(),this.manifestRepresentation&&this.manifestRepresentation.off(),this.off()},e.getLiveStartTime=function(e){var t=e.end-e.start,n=h.between(.75*t,w/2,w),r=Math.max(e.start,e.end-n),i=e.initialLevel.getSegmentTimeRange(r,r);return i.length?i[0].start:0},e.prototype.setupMSEE_=function(e){var t=this;return new Promise(function(n,r){function i(){t.mediaSource.removeEventListener("sourceopen",i);try{t.msee=new l(t.mediaSource,null);var a=d.reduce(e,function(e,t){var n=E[t.type],r=n[t.codec]||n["default"];return e[t.type]=r,e},{});t.msee.init(a)}catch(s){r(s)}n(t.msee)}t.mediaSource.addEventListener("sourceopen",i),"open"===t.mediaSource.readyState&&i()})},e.prototype.setMseReady_=function(){var e=this;return this.mseReady=this.mediaDataModel.getTrackTypes().then(function(t){return e.mseeTracks_=t,e.trackTypes_=t.concat([{type:"metadata"},{type:"captions"}]),e.trigger("trackTypes",t),t}).then(this.setupMSEE_.bind(this))["catch"](function(e){})},e.prototype.setManifest=function(e,t){var n=this,r=this.manifestRepresentation.load(e,t).then(function(e){return n.onDurationChange(e)}).then(function(e){var r=void 0;return"Auto"===t?r=0:(r=d.indexOf(e.sortedLevels,n.manifestRepresentation.initialLevel),r+=1),n.setCurrentQuality(r),n.trigger("levels",{levels:e.sortedLevels,currentQuality:r}),n.trigger("trackTypes",e.trackTypes),e})["catch"](function(e){throw"Cannot load M3U8: "+e});return this.setMseReady_(),Promise.all([this.mseReady,r]).then(function(e){var t=e[1];n.msee.setDuration(t.end)})["catch"](function(){return null}),r},e.prototype.beginStream=function(){this.adaptive.whatToDownload(this,this.startOfStream_).then(this.buffer_.bind(this))["catch"](function(e){}),this.startOfStream_=!1,this.addListeners();var t=this;this.video.addEventListener("progress",function n(e){var r=e.target;t.msee&&t.minForwardBuffer()>_&&(r.removeEventListener("progress",n),t.bufferEventSent_=!0,t.trigger("bufferFull"))},!1),"LIVE"!==this.manifestRepresentation.streamType&&"DVR"!==this.manifestRepresentation.streamType||this.video.addEventListener("loadedmetadata",function r(n){var i=n.target;i.removeEventListener("loadedmetadata",r),t.manifestRepresentation&&(i.currentTime=e.getLiveStartTime(t.manifestRepresentation.currentManifestMetadata))})},e.prototype.buffer_=function(e){var t=this,n=e.segment;if(n&&!(n.end<this.video.currentTime&&this.video.currentTime!==this.video.duration))return n.aesKeyUri&&!this.supports("drm")?void this.trigger("error","AES decryption not supported in "+this.edition_+" edition"):(this.addExtInfCue_(n),this.mediaDataModel.get(n).then(function(e){return t.bufferTransmuxSegment_(e)["catch"](function(e){return null})})["catch"](function(e){return t.trigger("error",e)}))},e.prototype.addExtInfCue_=function(e){if(e.extInfTitle){var t=e.start,n=e.end,r="metadata",i=JSON.stringify({extInfTitle:e.extInfTitle});if(!this.textTrackCache_[r].cues[t]||this.textTrackCache_[r].cues[t]!==n+i){this.textTrackCache_[r].cues[t]=n+i;var a=new g(t,n,i);this.trigger("cueAdded",{type:r,cue:a})}}},e.getCaptionOffset=function(e,t){return(e-t)/9e4},e.prototype.getStreamOffsets_=function(e){var t=this;return e?e.offsetsKnown.then(function(n){var r=n.audio;t.audioCodec=r.codec;var i=n.video;return t.videoPtsOffset_=i.start,{session:e,offsets:n}}):Promise.resolve({})},e.prototype.alignStreams_=function(e){var t=this,n=e.session,r=e.offsets;if(n&&n.tmsArray.length){var i=n.tmsArray[0].ts,a=this.manifestRepresentation.getPtsMapping(i.discontinuity),s=d.map(this.trackTypes_,function(e){var n=e.type,s=r[n].start,o=i.start;if(a&&("video"===n||"audio"===n)){var u=(s-a.pts)/9e4+a.seconds;Math.abs(u-o)<5&&(o=u)}return a||"video"!==n&&"audio"!==n||(t.manifestRepresentation.setPtsMapping(i.discontinuity,s,o),a=t.manifestRepresentation.getPtsMapping(i.discontinuity)),{type:n,start:o,end:i.end,pts:i.pts}});return{session:n,alignedStreams:s}}},e.prototype.clearBufferBeforeAppending_=function(e){if(e&&e.session){var t=e.session,n=e.alignedStreams,r=d.pluck(n,"start"),i=Math.max.apply(Math,r),a=this.video.seekable.length;if(!a)return t.forwardBufferCleared=!0,Promise.resolve(e);var s=this.video.seekable.end(a-1);return this.removeBuffer(i,s).then(function(){return t.forwardBufferCleared=!0,e})}},e.prototype.addAllTracks_=function(e){var t=this;if(e){var n=e.session,r=e.alignedStreams,i=n.tmsArray.length&&n.tmsArray[0].ts;if(i){var a=d.map(r,function(e){var t=this.manifestRepresentation.getPtsMapping(i.discontinuity);return"metadata"===e.type||"captions"===e.type?this.appendTextTrack(n,e.type,e.start,t):this.appendMediaBuffer(n,e.type,e.start)},this);return this.lastTransmuxSessionComplete_=Promise.all(a),this.lastTransmuxSessionComplete_.then(function(){return n.transmuxer?(n.tmsArray.length&&n.tmsArray[n.tmsArray.length-1].ts.isLast&&(t.msee.endOfStream(),t.bufferEventSent_||(t.bufferEventSent_=!0,t.trigger("bufferFull"))),n):n})}}},e.prototype.markTracksLoaded_=function(e){return e&&this.mediaDataModel?void d.each(e.tmsArray,this.mediaDataModel.complete,this.mediaDataModel):Promise.resolve()},e.prototype.appendMediaBuffer=function(e,t,n){var r=this;return new Promise(function(i){var a=e.mediaChannels[t];m.go(s["default"].mark(function o(){var r,u;return s["default"].wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=void 0,this.msee.setTimestampOffset(t,n);case 2:return s.next=4,m.take(a);case 4:if(s.t0=r=s.sent,s.t1=m.CLOSED,s.t0===s.t1){s.next=15;break}if(this.msee){s.next=9;break}return s.abrupt("break",15);case 9:if(r.payload&&r.payload.length){s.next=11;break}return s.abrupt("continue",2);case 11:u=this.msee.appendBuffer(t,r.payload).then(function(){e.markBuffered(t)})["catch"](function(e){return null}),s.next=2;break;case 15:i();case 16:case"end":return s.stop()}},o,this)}).bind(r))})},e.prototype.appendTextTrack=function(t,n,r,i){var a=this;return new Promise(function(o){var u=t.mediaChannels[n];m.go(s["default"].mark(function c(){var a,f,l,h,p,v,y,_,b,T,x,k,w,E,S,I,M,A,C;return s["default"].wrap(function(s){for(;;)switch(s.prev=s.next){case 0:a=void 0,f=this.videoPtsOffset_,l=r,i&&(f=i.pts,l=i.seconds);case 4:return s.next=6,m.take(u);case 6:if(s.t0=a=s.sent,s.t1=m.CLOSED,s.t0===s.t1){s.next=53;break}if(this.msee&&t.transmuxer&&t.tmsArray.length){s.next=11;break}return s.abrupt("break",53);case 11:if(h=d.last(t.tmsArray),p=h.ts.start,v=h.ts.end,"error"===a.type&&(this.trigger("error",a.message),this.removeListeners()),y=a.payload){s.next=18;break}return s.abrupt("continue",4);case 18:s.t2=n,s.next="captions"===s.t2?21:"metadata"===s.t2?35:51;break;case 21:if(_=Math.floor(20*y.start/9e4),b=Math.floor(20*y.end/9e4),T=this.textTrackCache_[n].cues[_]||this.textTrackCache_[n].cues[_+1]||this.textTrackCache_[n].cues[_-1],!(T&&Math.abs(T-b)<=1)){s.next=26;break}return s.abrupt("break",51);case 26:return this.textTrackCache_[n].cues[_]=b,x=l+e.getCaptionOffset(y.start,f),k=l+e.getCaptionOffset(y.end,f),w=new g(x,k,y.text),E=y.positioning,isNaN(E.line)||(w.line=E.line),isNaN(E.position)||(w.position=E.position,w.align="start"),this.trigger("cueAdded",{type:n,cue:w}),s.abrupt("break",51);case 35:a.pts&&(p=(a.pts-i.pts)/9e4+i.seconds),S=0;case 37:if(!(S<y.length)){s.next=50;break}if(I=y[S].data,M=new Uint8Array(I).join(""),A=p+"_"+M,!this.textTrackCache_[n].cues[A]){s.next=43;break}return s.abrupt("continue",47);case 43:this.textTrackCache_[n].cues[A]=v,C=new g(p,v,""),C.data=y[S].data,this.trigger("cueAdded",{type:n,cue:C});case 47:S++,s.next=37;break;case 50:return s.abrupt("break",51);case 51:s.next=4;break;case 53:o();case 54:case"end":return s.stop()}},c,this)}).bind(a))})},e.prototype.bufferTransmuxSegment_=function(e){var t=this;return e===this.lastTransmuxSession_?Promise.resolve(e):(this.lastTransmuxSession_=e,this.mseReady.then(function(){return t.lastTransmuxSessionComplete_}).then(function(){return t.getStreamOffsets_(e)}).then(function(e){return t.alignStreams_(e)}).then(function(e){return t.clearBufferBeforeAppending_(e)}).then(function(e){return t.addAllTracks_(e)}).then(function(e){return t.markTracksLoaded_(e)})["catch"](function(e){return t.trigger("error",e)}))},e.prototype.resumeOnTick=function(){this.mseReady.then(function(){this.onTickInterval===-1&&(this.onTickInterval=setInterval(this.onTickThrottle_,k))}.bind(this))["catch"](function(e){})},e.prototype.suspendOnTick=function(){clearInterval(this.onTickInterval),this.onTickInterval=-1},e.prototype.onTimeUpdate_=function(){this.onTickThrottle_()},e.prototype.onSeeking_=function(){if(this.video.buffered.length<1)return void this.onTickThrottle_()},e.prototype.onDurationChange=function(e){var t=0;return t="LIVE"===e.streamType?1/0:"DVR"===e.streamType?e.start-e.end:e.end,t!==this.lastDuration_&&(this.trigger("meta",{duration:t}),this.lastDuration_=t),e},e.prototype.getForwardBuffer_=function(e,t){var n=this;if(!this.msee)return 0;d.isUndefined(e)&&(e=this.video.currentTime);var r=d.map(this.mseeTracks_,function(t){return n.msee.bufferedAheadOf(t.type,e)});return t?Math.max.apply(null,r):Math.min.apply(null,r)},e.prototype.maxForwardBuffer=function(e){return this.getForwardBuffer_(e,!0)},e.prototype.minForwardBuffer=function(e){return this.getForwardBuffer_(e,!1)},e.prototype.destroy=function(){this.removeListeners(),this.startOfStream_=!0,this.msee&&this.msee.destroy(),this.mediaDataModel=void 0,this.manifestRepresentation=void 0,this.msee=void 0,this.textTrackCache_=void 0,this.activeCuesCache_=void 0},e}()},function(e,t,n){"use strict";function r(e){for(var t=0,n=0,r=10,o=[];t+s<e.length;){var u=a.utf8ArrayToStr(e.subarray(t,t+=3));if("ID3"===u){var c=e.subarray(t,t+=2),f=e.subarray(t,t+=1)[0];if(0!==(128&f)||c[0]<3)break;var l=a.syncSafeInt(e.subarray(t,t+=4));0!==(64&f)&&(r+=a.syncSafeInt(e.subarray(t,t+=4))),o=o.concat(i(e,n+r,l)),t+=l}else{if("3DI"!==u){t-=3;break}t+=7}n=t}return{position:t,cues:o}}function i(e,t,n){for(var r=e.length,i=t,s=[];i<t+n;){if(r-i<8)return s;var o=i;i+=4;var u=a.syncSafeInt(e.subarray(i,i+=4));if(r-i<u+2)return s;var c=e.subarray(i,i+=1)[0];if(c>0)return s;var f=e[i];3!==f&&0!==f||(--u,i++);var l=e.buffer.slice(o-10,i+u+1);s.push({data:l}),i+=u+1}return s}t.__esModule=!0,t["default"]=r;var a=n(21),s=9},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r,i,a){var s;return l["default"].wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return console.assert(r.closed===!1,"Audio channel should not be closed"),s=m.combineUint8Arrays(t,n),o.next=4,h.put(r,{sourceFile:e,codec:a,type:"init",start:i});case 4:return o.next=6,h.put(r,{sourceFile:e,codec:a,type:"mediaSegment",payload:s});case 6:case"end":return o.stop()}},g[0],this)}function s(e,t){return l["default"].mark(function n(){var r,i,s,u,c,f,d;return l["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=void 0,i=[],s=0,u=Number.MAX_VALUE,c=void 0,f=!1,d=void 0;case 7:return n.t0=h.CLOSED,n.next=10,h.take(e);case 10:if(n.t1=r=n.sent,n.t0===n.t1){n.next=30;break}if("error"!==r.type){n.next=17;break}return n.next=15,h.put(t,r);case 15:return t.close(),n.abrupt("return");case 17:if(c=r.sourceFile,d=d||o(r),u=Math.min(u,r.pts),i.push(r.payload),s+=r.payload.length,!((r.pts-u)/9e4>1||!f||s>2e4)){n.next=28;break}return f=!0,n.delegateYield(a(c,i,s,t,u,d),"t2",25);case 25:s=0,i=[],u=Number.MAX_VALUE;case 28:n.next=7;break;case 30:return n.delegateYield(a(c,i,s,t,u,d),"t3",31);case 31:t.close();case 32:case"end":return n.stop()}},n,this)})}function o(e){switch(e.type){case y["default"].ISO_IEC_13818_1_RESERVED:var t=u(e.payload),n=t.frameData||{},r=0===n.mpegVersion&&n.channels>1&&n.rateIndex>=6,i=1===n.mpegVersion&&n.rateIndex>6;return r||i?"mp4a.40.5":"mp4a.40.2";case y["default"].ISO_IEC_11172_3_AUDIO:case y["default"].ISO_IEC_13818_3_AUDIO:default:return"mp3"}}function u(e){for(var t=0,n=0,r={},i=0;t<e.length;){r=c(e.subarray(t));{if(r){n+=1,t+=r.frameLength,i||(i=_[r.rateIndex]);break}t+=1}}return{frameData:r,sampleRate:i,sampleCount:n}}function c(e){var t=e[0]<<4|e[1]>>4,n=4095===t;if(n){var r=e[1]>>>3&1,i=e[1]>>>1&3;if(0===i){var a=(e[2]>>>6&3)+1,s=e[2]>>>2&15;if(15!==s){var o=(1&e[2])<<2|e[3]>>>6&3,u=(3&e[3])<<11|(255&e[4])<<3|(224&e[5])>>5;if(0!==u)return{mpegVersion:r,profile:a,rateIndex:s,channels:o,frameLength:u}}}}}t.__esModule=!0;var f=n(7),l=i(f);t["default"]=s,t.parseFrame=c;var d=n(6),h=r(d),p=n(16),m=r(p),v=n(25),y=i(v),g=[a].map(l["default"].mark),_=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,0,0]},function(e,t){"use strict";t.__esModule=!0;var n={H264_NAL_UNIT_TYPE:6,H265_NAL_UNIT_TYPE:39,SEI_PAYLOAD_ITU_T_35:4,ITU_T_T35_COUNTRY_CODE:181,ITU_T_T35_PROVIDER_CODE:49,USER_IDENTIFIER_ATSC1_DATA:1195456820,USER_DATA_TYPE_CC_DATA:3,NTSC_CC_FIELD_1:0,NTSC_CC_FIELD_2:1,DTVCC_PACKET_DATA:2,DTVCC_PACKET_START:3,RBSP_TRAILING_BITS:128};t["default"]=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(57),a=n(2),s=function(){function e(){r(this,e)}return e.probeAAC=function(t){for(var n=0,r=t.length-e.AAC_HEADER_SIZE;n<r;){var a=t[n]<<8|65526&t[n+1];if(a===e.AAC_SYNCWORD){var s=(0,i.parseFrame)(t.subarray(n));return!(s.rateIndex>12||s.channels>7)}n++}return!1},e.probeMP3=function(t){for(var n,r=0,i=t.length-e.MP3_HEADER_SIZE;r<i;){if(n=t[r]<<8|65504&t[r+1],n===e.MP3_SYNCWORD){var a,s,o,u,c,f=3&t[r+1],l=3&t[r+1],d=(240&t[r+2])>>4,h=(12&t[r+2])>>2,p=(2&t[r+3])>>1,m=3===l?"LAYER1":"OTHER",v=1===l?4:1;switch(f){case 3:a=e.MP3_SAMPLE_RATE_MAP.MPEG1[h],s=e.MP3_BITRATE_MAP.MPEG1[l-1][d],o=e.MP3_SAMPLES_COEFFICENT.MPEG1[l-1];break;case 2:a=e.MP3_SAMPLE_RATE_MAP.MPEG2[h],s=e.MP3_BITRATE_MAP.OTHER[m][d],o=e.MP3_SAMPLES_COEFFICENT.OTHER[l-1];break;default:a=e.MP3_SAMPLE_RATE_MAP["MPEG2.5"][h],s=e.MP3_BITRATE_MAP.OTHER[m][d],o=e.MP3_SAMPLES_COEFFICENT.OTHER[l-1]}s*=1e3,u=Math.floor((o*s/a+p)*v),c=r+u;for(var y=-1*e.MP3_FRAME_TOLERANCE;y<=e.MP3_FRAME_TOLERANCE;y++)if((t[c+y]<<8|65504&t[c+y+1])===e.MP3_SYNCWORD)return!0;return!1}r++}return!1},e.probeMPEGTS=function(t){var n=t[0],r=t[e.TS_PACKET_SIZE];return n===r&&r===e.TS_SYNCBYTE},e.probeID3=function(e){return"ID3"===a.utf8ArrayToStr(e.subarray(0,3))},e}();t["default"]=s,s.AAC_HEADER_SIZE=18,s.AAC_SYNCWORD=65520,s.MP3_HEADER_SIZE=8,s.MP3_SYNCWORD=65504,s.MP3_FRAME_TOLERANCE=3,s.MP3_SAMPLE_RATE_MAP={MPEG1:[44100,48e3,32e3,0],MPEG2:[22050,24e3,16e3,0],"MPEG2.5":[11025,12e3,8e3,0]},s.MP3_BITRATE_MAP={MPEG1:[[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,0],[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,0],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,0]],OTHER:{LAYER1:[0,32,48,56,64,80,96,112,128,144,160,176,192,224,256,0],OTHER:[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,0]}},s.MP3_SAMPLES_COEFFICENT={MPEG1:[12,144,144],OTHER:[12,144,72]},s.TS_PACKET_SIZE=188,s.TS_SYNCBYTE=71},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this._samplesCount=0,this._insertIndex=0,this._sum=0,this._samples=new Array(t),this._size=t}return e.prototype.push=function(e){this._sum+=e-(this._samples[this._insertIndex]||0),this._samples[this._insertIndex]=e,this._samplesCount=Math.max(this._samplesCount,this._insertIndex+1),this._insertIndex=(this._insertIndex+1)%this._samples.length},e.prototype.average=function(){return 0===this._samplesCount?0:this._sum/this._samplesCount},e.prototype.max=function(){return 0===this._samplesCount?0:this._samples.reduce(function(e,t){return Math.max(e,t)})},e}();t["default"]=r},,,,,,,,,,,,,,,,,,,,,,function(e,t){function n(){l&&c&&(l=!1,c.length?f=c.concat(f):d=-1,f.length&&r())}function r(){if(!l){var e=s.call(null,n);l=!0;for(var t=f.length;t;){for(c=f,f=[];++d<t;)c&&c[d].run();d=-1,t=f.length}c=null,l=!1,o.call(null,e)}}function i(e,t){this.fun=e,this.array=t}function a(){}var s,o,u=e.exports={};!function(){try{s=setTimeout}catch(e){s=function(){throw new Error("setTimeout is not defined")}}try{o=clearTimeout}catch(e){o=function(){throw new Error("clearTimeout is not defined")}}}();var c,f=[],l=!1,d=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new i(e,t)),1!==f.length||l||s.call(null,r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},,,,,function(e,t,n){var r,i;r=[n(52),n(50),n(51),n(18),n(1),n(5),n(3),n(98)],i=function(e,t,n,r,i,a,s,o){function u(e){for(var t=e.seekable?e.seekable.length:0,n=0;t--;)n=Math.max(n,e.seekable.end(t));return n}function c(c,l){function d(){x.on("levelsChanged",function(e){p(e)}).on("levels",function(e){p(e)}).on("bufferFull",function(e){b.trigger("bufferFull",e)}).on("meta",function(e){b.trigger("meta",e)}).on("hls-metadata-bufferchange",function(e){b.trigger("hls-metadata-bufferchange",e)}).on("error",function(e){b.trigger("mediaError",{code:-1,message:e})}),b.on("adaptation",function(e){x.getConfiguration().then(function(t){if(t){var n=t.enableAdaptation,r=t.currentLevel,i=t.levels[r],a=n?"auto":"manual",s=n?"auto":"api";this._initialChoice&&(a="auto",s="initial choice",this._initialChoice=!1),this.trigger("visualQuality",{level:{index:r,label:i.label,bitrate:i.bitrate,width:e.size.width,height:e.size.height},reason:s,mode:a})}}.bind(this))},b),x.on("trackTypes",function(e){var t=1===e.length&&("audio"===e[0]||"audio"===e[0].type);b.trigger("mediaType",{mediaType:t?"audio":"video"})}),x.on("cueAdded",function(e){b.addVTTCue(e)}),i.each(T,function(e,t){_.addEventListener(t,e,!1)})}function h(){x.off(),b.off("adaptation"),i.each(T,function(e,t){_.removeEventListener(t,e)}),b.removeTracksListener("change")}function p(e){g!==e.levels&&(g=e.levels,b.trigger("levels",e)),y!==e.currentQuality&&(y=e.currentQuality,b.trigger("levelsChanged",e))}function m(e){b.loadedItem=e,x.inited()||b.init(e);var t=e.sources[0].file;b._initialChoice=!0;var n=b;if(e.starttime){var r=function(t){var i=t.target;i.removeEventListener("loadedmetadata",r),n.seek(e.starttime)};b.video.removeEventListener("loadedmetadata",r),b.video.addEventListener("loadedmetadata",r,!1)}x.initStream(t,l.qualityLabel)}var v,y,g,_=t.getVideo.call(this,c),b=this,T={};i.each(e,function(e,t){"function"==typeof e?T[t]=e.bind(b):b[t]=e});var x=new o.Caterpillar(f);i.extend(this,s,t,n,r,{trigger:function(e,t){if(this.attached)return"mediaError"===e&&(3===t.code&&"mp4a.40.5"===x.getAudioCodec()&&(t.message="Error playing file: HE-AAC not supported"),this.eventsOff_()),s.trigger.call(this,e,t)},eventsOn_:d,eventsOff_:function(){h(),x.destroy()},play:function(){
if(this.state===a.PAUSED&&x.getDuration()===1/0){var e=this.loadedItem;this.stop(),this.init(),this.load(e)}this.seeking&&this.setState(a.LOADING),x.play()},pause:function(){this.stopStallCheck(),x.pause(),this.setState(a.PAUSED)},stop:function(){this.stopStallCheck(),this.attached&&(h(),this.clearTracks(),x.destroy(),_.pause(),_.removeAttribute("src"),_.load(),this.loadedItem=null,this.itemTracks=null,this.setState(a.IDLE))},seek:function(e){if(this.attached){e<0&&(e+=this.video.duration);var t=u(_),n=!!t,r=this;if(!n){var i=function(t){var n=t.target;n.removeEventListener("loadedmetadata",i),r.seek(e)};return this.video.removeEventListener("loadedmetadata",i),void this.video.addEventListener("loadedmetadata",i,!1)}e=Math.min(e,t-.01),this.trigger("seek",{position:this.getCurrentTime(),offset:e});var a=x.getDuration();this.trigger("time",{duration:a,position:x.getExternalTime(e)}),0!==a&&a!==1/0&&(this.seeking=!0,this.video.currentTime=e)}},setCurrentQuality:function(e){if(y!==e&&!(e<0)&&g&&!(g.length<=e)){if(x.setCurrentQuality(e),g&&g[e]){var t=g[e].label;l.qualityLabel=t}p({levels:g,currentQuality:e})}},init:function(e){if(this.attached){h(),this.clearTracks(),this.itemTracks=null,x.destroy(),d();var t=new window.MediaSource;_.src=URL.createObjectURL(t);var n=e&&e.preload,r=e&&e.sources[0].withCredentials;x.setup(_,t,n,r),e&&"none"!==n&&this.loadedItem!==e&&m(e),e&&this.setupSideloadedTracks(e.tracks)}},load:function(e){this.attached&&(this.loadedItem!==e&&m(e),x.beginStream(),this.setState(a.LOADING))},setContainer:function(e){v=e,v.appendChild(_)},getDuration:function(){return x.getDuration()},getCurrentTime:function(){return x.getCurrentTime()},getPtsOffset:function(){return x.getPtsOffset()},destroy:function(){this.loadedItem=null,g=null,y=null,this.clearTracks(),x&&(h(),x.destroy(),x=null)},getQualityLevels:function(){return g},getCurrentQuality:function(){return y},getName:i.constant({name:"caterpillar"})})}var f;return c.getName=function(){return{name:"caterpillar"}},c.setEdition=function(e){f=e},c}.apply(t,r),!(void 0!==i&&(e.exports=i))},,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){return{is_closed:function(){return t.is_closed()},close:function(){t.close()},_put:function(e,n){return t._put(e,n)},_take:function(n){var r=t._take({is_active:function(){return n.is_active()},commit:function(){var t=n.commit();return function(n){return t(n===Q?Q:e(n))}}});if(r){var i=r.value;return new O(i===Q?Q:e(i))}return null}}}function a(e,t){return{is_closed:function(){return t.is_closed()},close:function(){t.close()},_put:function(n,r){return t._put(e(n),r)},_take:function(e){return t._take(e)}}}function s(e,t,n){var r=V(n);return B(P["default"].mark(function i(){var n;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=3,U(t);case 3:if(n=i.sent,n!==Q){i.next=7;break}return r.close(),i.abrupt("break",12);case 7:if(!e(n)){i.next=10;break}return i.next=10,N(r,n);case 10:i.next=0;break;case 12:case"end":return i.stop()}},i,this)})),r}function o(e,t){return{is_closed:function(){return t.is_closed()},close:function(){t.close()},_put:function(n,r){return e(n)?t._put(n,r):new O((!t.is_closed()))},_take:function(e){return t._take(e)}}}function u(e,t){return s(function(t){return!e(t)},t)}function c(e,t){return o(function(t){return!e(t)},t)}function f(e,t,n){var r,i,a,s;return P["default"].wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,U(t);case 3:if(r=o.sent,r!==Q){o.next=9;break}return n.close(),o.abrupt("break",22);case 9:i=e(r),a=i.length,s=0;case 12:if(!(s<a)){o.next=18;break}return o.next=15,N(n,i[s]);case 15:s++,o.next=12;break;case 18:if(!n.is_closed()){o.next=20;break}return o.abrupt("break",22);case 20:o.next=0;break;case 22:case"end":return o.stop()}},D[0],this)}function l(e,t,n){var r=V(n);return B(f,[e,t,r]),r}function d(e,t,n){var r=V(n);return B(f,[e,r,t]),r}function h(e,t,n){return B(P["default"].mark(function r(){var i;return P["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,U(e);case 3:if(i=r.sent,i!==Q){r.next=7;break}return n||t.close(),r.abrupt("break",13);case 7:return r.next=9,N(t,i);case 9:if(r.sent){r.next=11;break}return r.abrupt("break",13);case 11:r.next=0;break;case 13:case"end":return r.stop()}},r,this)})),t}function p(e,t,n,r){var i=V(n),a=V(r);return B(P["default"].mark(function s(){var n;return P["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,U(t);case 3:if(n=r.sent,n!==Q){r.next=8;break}return i.close(),a.close(),r.abrupt("break",12);case 8:return r.next=10,N(e(n)?i:a,n);case 10:r.next=0;break;case 12:case"end":return r.stop()}},s,this)})),[i,a]}function m(e,t,n){return B(P["default"].mark(function r(){var i,a;return P["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=t;case 1:return r.next=4,U(n);case 4:if(a=r.sent,a!==Q){r.next=9;break}return r.abrupt("return",i);case 9:i=e(i,a);case 10:r.next=1;break;case 12:case"end":return r.stop()}},r,this)}),[],!0)}function v(e,t,n){return B(P["default"].mark(function r(){var i,a;return P["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=t.length,a=0;case 2:if(!(a<i)){r.next=8;break}return r.next=5,N(e,t[a]);case 5:a++,r.next=2;break;case 8:n||e.close();case 9:case"end":return r.stop()}},r,this)}))}function y(e){var t=V(e.length);return v(t,e),t}function g(e,t,n){for(var r,i=V(n),a=t.length,s=new Array(a),o=V(1),u=new Array(a),c=0;c<a;c++)u[c]=function(e){return function(t){s[e]=t,r--,0===r&&q(o,s.slice(0))}}(c);return B(P["default"].mark(function f(){var n,s;return P["default"].wrap(function(c){for(;;)switch(c.prev=c.next){case 0:for(r=a,n=0;n<a;n++)try{F(t[n],u[n])}catch(f){r--}return c.next=5,U(o);case 5:s=c.sent,n=0;case 7:if(!(n<a)){c.next=14;break}if(s[n]!==Q){c.next=11;break}return i.close(),c.abrupt("return");case 11:n++,c.next=7;break;case 14:return c.next=16,N(i,e.apply(null,s));case 16:c.next=0;break;case 18:case"end":return c.stop()}},f,this)})),i}function _(e,t){var n=V(t),r=e.slice(0);return B(P["default"].mark(function i(){var e,t,a;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(0!==r.length){i.next=3;break}return i.abrupt("break",15);case 3:return i.next=5,X(r);case 5:if(e=i.sent,t=e.value,t!==Q){i.next=11;break}return a=r.indexOf(e.channel),r.splice(a,1),i.abrupt("continue",0);case 11:return i.next=13,N(n,t);case 13:i.next=0;break;case 15:n.close();case 16:case"end":return i.stop()}},i,this)})),n}function b(e,t){var n=e.slice(0);return m(function(e,t){return e.push(t),e},n,t)}function T(e,t,n){var r=V(n);return B(P["default"].mark(function i(){var n,a;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n=0;case 1:if(!(n<e)){i.next=12;break}return i.next=4,U(t);case 4:if(a=i.sent,a!==Q){i.next=7;break}return i.abrupt("break",12);case 7:return i.next=9,N(r,a);case 9:n++,i.next=1;break;case 12:r.close();case 13:case"end":return i.stop()}},i,this)})),r}function x(e,t){var n=V(t),r=j;return B(P["default"].mark(function i(){var t;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=3,U(e);case 3:if(t=i.sent,t!==Q){i.next=6;break}return i.abrupt("break",13);case 6:if(t!==r){i.next=8;break}return i.abrupt("continue",0);case 8:return r=t,i.next=11,N(n,t);case 11:i.next=0;break;case 13:n.close();case 14:case"end":return i.stop()}},i,this)})),n}function k(e,t,n){var r=V(n),i=[],a=j;return B(P["default"].mark(function s(){var n,o;return P["default"].wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=3,U(t);case 3:if(n=s.sent,n!==Q){s.next=12;break}if(!(i.length>0)){s.next=8;break}return s.next=8,N(r,i);case 8:return r.close(),s.abrupt("break",23);case 12:if(o=e(n),o!==a&&a!==j){s.next=17;break}i.push(n),s.next=20;break;case 17:return s.next=19,N(r,i);case 19:i=[n];case 20:a=o;case 21:s.next=0;break;case 23:case"end":return s.stop()}},s,this)})),r}function w(e,t,n){var r=V(n);return B(P["default"].mark(function i(){var n,a,s;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n=new Array(e),a=0;case 3:if(!(a<e)){i.next=17;break}return i.next=6,U(t);case 6:if(s=i.sent,s!==Q){i.next=13;break}if(!(a>0)){i.next=11;break}return i.next=11,N(r,n.slice(0,a));case 11:return r.close(),i.abrupt("return");case 13:n[a]=s;case 14:a++,i.next=3;break;case 17:return i.next=19,N(r,n);case 19:i.next=0;break;case 21:case"end":return i.stop()}},i,this)})),r}function E(e){var t=0;for(var n in e)t++;return t}function S(e){var t=e[G];return void 0===t&&(t=e[G]=Y()),t}function I(e){function t(e){return function(t){n--,0===n&&q(i,!0),t||r.untap(e.channel)}}var n,r=new K(e),i=V(1);return B(P["default"].mark(function a(){var s,o,u,c,f;return P["default"].wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,U(e);case 3:if(s=a.sent,c=r.taps,s!==Q){a.next=9;break}for(o in c)u=c[o],u.keepOpen||u.channel.close();return r.untapAll(),a.abrupt("break",17);case 9:n=E(c),f=n;for(o in c)u=c[o],q(u.channel,s,t(u));if(!(f>0)){a.next=15;break}return a.next=15,U(i);case 15:a.next=0;break;case 17:case"end":return a.stop()}},a,this)})),r}function M(e){var t=new H(e);return B(P["default"].mark(function n(){var r,i,a,s,o,u;return P["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=t._getAllState();case 1:return n.next=4,X(r.reads);case 4:if(i=n.sent,a=i.value,s=i.channel,a!==Q){n.next=11;break}return delete t.stateMap[S(s)],r=t._getAllState(),n.abrupt("continue",1);case 11:if(s!==t.change){n.next=14;break}return r=t._getAllState(),n.abrupt("continue",1);case 14:if(o=r.solos,!(o.indexOf(s)>-1)&&(0!==o.length||r.mutes.indexOf(s)>-1)){n.next=21;break}return n.next=18,N(e,a);case 18:if(u=n.sent){n.next=21;break}return n.abrupt("break",23);case 21:n.next=1;break;case 23:case"end":return n.stop()}},n,this)})),t}function A(){return null}function C(e,t,n){n=n||A;var r=new $(e,t,n);return B(P["default"].mark(function i(){var n,a,s,o,u;return P["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=3,U(e);case 3:if(n=i.sent,a=r.mults,n!==Q){i.next=8;break}for(s in a)a[s].muxch().close();return i.abrupt("break",17);case 8:if(s=t(n),o=a[s],!o){i.next=15;break}return i.next=13,N(o.muxch(),n);case 13:u=i.sent,u||delete a[s];case 15:i.next=0;break;case 17:case"end":return i.stop()}},i,this)})),r}var L=n(7),P=r(L),D=[f].map(P["default"].mark),O=n(24).Box,R=n(35),B=R.go,U=R.take,N=R.put,F=R.takeAsync,q=R.putAsync,X=R.alts,V=R.chan,Q=R.CLOSED,j={},Y=function(){var e=0;return function(){return e++,""+e}}(),G="__csp_channel_id",K=function(e){this.taps={},this.ch=e},z=function(e,t){this.channel=e,this.keepOpen=t};K.prototype.muxch=function(){return this.ch},K.prototype.tap=function(e,t){var n=S(e);this.taps[n]=new z(e,t)},K.prototype.untap=function(e){delete this.taps[S(e)]},K.prototype.untapAll=function(){this.taps={}},I.tap=function(e,t,n){return e.tap(t,n),t},I.untap=function(e,t){e.untap(t)},I.untapAll=function(e){e.untapAll()};var H=function(e){this.ch=e,this.stateMap={},this.change=V(),this.soloMode=M.MUTE};H.prototype._changed=function(){q(this.change,!0)},H.prototype._getAllState=function(){var e,t=this.stateMap,n=[],r=[],i=[];for(var a in t){var s=t[a],o=s.state,u=s.channel;o[M.SOLO]&&n.push(u),o[M.MUTE]&&r.push(u),o[M.PAUSE]&&i.push(u)}var c,f;if(this.soloMode===M.PAUSE&&n.length>0){for(f=n.length,e=new Array(f+1),c=0;c<f;c++)e[c]=n[c];e[f]=this.change}else{e=[];for(a in t)s=t[a],u=s.channel,i.indexOf(u)<0&&e.push(u);e.push(this.change)}return{solos:n,mutes:r,reads:e}},H.prototype.admix=function(e){this.stateMap[S(e)]={channel:e,state:{}},this._changed()},H.prototype.unmix=function(e){delete this.stateMap[S(e)],this._changed()},H.prototype.unmixAll=function(){this.stateMap={},this._changed()},H.prototype.toggle=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n][0],i=S(r),a=e[n][1],s=this.stateMap[i];s||(s=this.stateMap[i]={channel:r,state:{}});for(var o in a)s.state[o]=a[o]}this._changed()},H.prototype.setSoloMode=function(e){if(W.indexOf(e)<0)throw new Error("Mode must be one of: ",W.join(", "));this.soloMode=e,this._changed()},M.MUTE="mute",M.PAUSE="pause",M.SOLO="solo";var W=[M.MUTE,M.PAUSE];M.add=function(e,t){e.admix(t)},M.remove=function(e,t){e.unmix(t)},M.removeAll=function(e){e.unmixAll()},M.toggle=function(e,t){e.toggle(t)},M.setSoloMode=function(e,t){e.setSoloMode(t)};var $=function(e,t,n){this.ch=e,this.topicFn=t,this.bufferFn=n,this.mults={}};$.prototype._ensureMult=function(e){var t=this.mults[e],n=this.bufferFn;return t||(t=this.mults[e]=I(V(n(e)))),t},$.prototype.sub=function(e,t,n){var r=this._ensureMult(e);return I.tap(r,t,n)},$.prototype.unsub=function(e,t){var n=this.mults[e];n&&I.untap(n,t)},$.prototype.unsubAll=function(e){void 0===e?this.mults={}:delete this.mults[e]},C.sub=function(e,t,n,r){return e.sub(t,n,r)},C.unsub=function(e,t,n){e.unsub(t,n)},C.unsubAll=function(e,t){e.unsubAll(t)},e.exports={mapFrom:i,mapInto:a,filterFrom:s,filterInto:o,removeFrom:u,removeInto:c,mapcatFrom:l,mapcatInto:d,pipe:h,split:p,reduce:m,onto:v,fromColl:y,map:g,merge:_,into:b,take:T,unique:x,partition:w,partitionBy:k,mult:I,mix:M,pub:C}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n,r,i){if(e<=0)throw new Error("n must be positive");for(var a=c.chan(e),s=c.chan(e),o=0;o<e;o++)c.go(u["default"].mark(function f(e,t,n){var r;return u["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=3,c.take(t);case 3:if(r=i.sent,e(r)){i.next=7;break}return n.close(),i.abrupt("break",9);case 7:i.next=0;break;case 9:case"end":return i.stop()}},f,this)}),[i,a,s]);return c.go(u["default"].mark(function l(e,t,n){var r,i;return u["default"].wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,c.take(t);case 3:if(r=a.sent,r!==c.CLOSED){a.next=9;break}return e.close(),a.abrupt("break",16);case 9:return i=c.chan(1),a.next=12,c.put(e,[r,i]);case 12:return a.next=14,c.put(n,i);case 14:a.next=0;break;case 16:case"end":return a.stop()}},l,this)}),[a,n,s]),c.go(u["default"].mark(function d(e,t,n){var r,i,a;return u["default"].wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=3,c.take(e);case 3:if(r=s.sent,r!==c.CLOSED){s.next=9;break}return t&&n.close(),s.abrupt("break",26);case 9:return s.next=11,c.take(r);case 11:i=s.sent;case 12:return s.next=15,c.take(i);case 15:if(a=s.sent,a===c.CLOSED){s.next=21;break}return s.next=19,c.put(n,a);case 19:s.next=22;break;case 21:return s.abrupt("break",24);case 22:s.next=12;break;case 24:s.next=0;break;case 26:case"end":return s.stop()}},d,this)}),[s,r,t]),t}function a(e,t,n,r,a){function s(e){if(e===c.CLOSED)return null;var n=e[0],r=e[1],i=c.chan(1,t,a);return c.go(u["default"].mark(function s(e,t){return u["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.put(e,t);case 2:e.close();case 3:case"end":return n.stop()}},s,this)}),[i,n]),c.putAsync(r,i),!0}return i(1,e,n,!r,s)}function s(e,t,n,r,a){function s(e){if(e===c.CLOSED)return null;var t=e[0],r=e[1],i=c.chan(1);return n(t,i),c.putAsync(r,i),!0}return i(e,t,r,!a,s)}var o=n(7),u=r(o),c=n(35);e.exports={pipeline:a,pipelineAsync:s}},function(e,t,n){"use strict";function r(e,t,n){var r=e._put(t,new m((!0),n));r&&n&&n(r.value)}function i(e,t){var n=e._take(new m((!0),t));n&&t(n.value)}function a(e){return new y(g,e)}function s(e,t){return new y(_,{channel:e,value:t})}function o(e){if(e.closed)return p;var t=e._take(new m((!1)));return t?t.value:p}function u(e,t){if(e.closed)return!1;var n=e._put(t,new m((!1)));return!!n}function c(e){return new y(b,e)}function f(e,t){return new y(T,{operations:e,options:t})}var l=n(37),d=n(53),h=n(24).Channel,p={},m=function(e,t){this.f=t,this.blockable=e};m.prototype.is_active=function(){return!0},m.prototype.is_blockable=function(){return this.blockable},m.prototype.commit=function(){return this.f};var v=function(e,t,n){this.gen=e,this.creatorFunc=n,this.finished=!1,this.onFinish=t},y=function(e,t){this.op=e,this.data=t},g="take",_="put",b="sleep",T="alts";v.prototype._continue=function(e){var t=this;l.run(function(){t.run(e)})},v.prototype._done=function(e){if(!this.finished){this.finished=!0;var t=this.onFinish;"function"==typeof t&&l.run(function(){t(e)})}},v.prototype.run=function(e){if(!this.finished){var t=this.gen.next(e);if(t.done)return void this._done(t.value);var n=t.value,a=this;if(n instanceof y)switch(n.op){case _:var s=n.data;r(s.channel,s.value,function(e){a._continue(e)});break;case g:var o=n.data;i(o,function(e){a._continue(e)});break;case b:var u=n.data;l.queue_delay(function(){a.run(null)},u);break;case T:d.do_alts(n.data.operations,function(e){a._continue(e)},n.data.options)}else if(n instanceof h){var o=n;i(o,function(e){a._continue(e)})}else this._continue(n)}},t.put_then_callback=r,t.take_then_callback=i,t.put=s,t.take=a,t.offer=u,t.poll=o,t.sleep=c,t.alts=f,t.Instruction=y,t.Process=v,t.NO_VALUE=p},function(e,t,n){"use strict";var r=n(37),i=n(24);t.timeout=function(e){var t=i.chan();return r.queue_delay(function(){t.close()},e),t}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.QualityArbiter=void 0;var i=n(55),a=n(38),s=n(3),o=(n(4),n(1)),u=t.QualityArbiter=void 0;!function(e){e[e.MANUAL=0]="MANUAL",e[e.ADAPTIVE=1]="ADAPTIVE"}(u||(t.QualityArbiter=u={}));var c=4,f=30,l=2,d=15,h=45,p=1e4,m=3e3,v=2,y=1.5,g=1.5,_=.001,b=function(){function e(){r(this,e),this.adaptiveQualityLevel=-1,this.manualQualityLevel=-1,this.lastAdaptiveSwitchTime_=0,this.isChangingQuality=!1,this.streamType="LIVE",this.safetyFactor=v,this.streamInitialQuality=0,o.extend(this,s)}return e.prototype.whatToDownload=function(e,t){var n=this;return this.getState_(e,t).then(function(e){return e?"LIVE"===n.streamType?n.liveAdaptive_(e):n.whatToDownload_(e):null}).then(function(e){return{segment:e,opts:{reason:"none"}}}.bind(this))},e.prototype.setQuality=function(e,t){this.lastAdaptiveSwitchTime_=o.now()-(p-m),this.lastTimeWithEnoughBuffer=o.now();var n=e-1;0===e&&t.length>1?(this.adaptiveQualityLevel=this.manualQualityLevel,this.desiredQualityArbiter=u.ADAPTIVE,this.trigger("quality-change",this.adaptiveQualityLevel)):(this.desiredQualityArbiter=u.MANUAL,this.manualQualityLevel=n,this.trigger("quality-change",n))},e.prototype.updateLevels=function(e){this.manualQualityLevel=e,this.adaptiveQualityLevel=e},e.prototype.getQuality=function(){return this.desiredQualityArbiter===u.ADAPTIVE?this.adaptiveQualityLevel:this.manualQualityLevel},e.prototype.changeAdaptiveQuality_=function(e,t,n){return!!this.allowQualitySwitching_(e,t,this.adaptiveQualityLevel,n)&&(this.lastAdaptiveSwitchTime_=e.now,"VOD"===this.streamType&&(this.isChangingQuality=!0),e.action.push("Quality switch from "+this.adaptiveQualityLevel+" to "+n),this.adaptiveQualityLevel=n,this.trigger("quality-change",n),!0)},e.prototype.allowQualitySwitching_=function(e,t,n,r){if("VOD"===this.streamType)return e.videoEnd-t>f;e.manifestRepresentation.requestTS(t,t,n),e.manifestRepresentation.requestTS(t,t,r);var i=e.sortedLevels[n],s=e.sortedLevels[r];if(!(i&&s&&i.segments.length&&s.segments.length))return!1;var o=a.Level.getRanges(i.segments,t,t)[0];return s.containsSegment(o)},e.prototype.adaptationEnabled=function(){return this.desiredQualityArbiter===u.ADAPTIVE},e.timeToDownload_=function(e,t){var n=t.segmentFileSize.average()/1e3,r=t.streamInfo.bandwidth/8/1e3*t.streamInfo.targetDuration;n=n?Math.max(n,r):1.5*r;var i=_*n;return n/e.bandwidth+i},e.minForwardBuffer_=function(t,n,r){var i=e.timeToDownload_(t,n);return Math.min(r,Math.max(d,i,n.streamInfo.targetDuration))},e.prototype.earliestSegmentToLoad=function(t){var n=this;return t.manifestRepresentation.requestTS(t.currentTime,t.maxBufferEnd,this.getQuality()).then(function(r){var i=o.last(r);if(r.length)for(var a=t.runway-t.minForwardBuffer,s=e.timeToDownload_(t,t.sortedLevels[n.getQuality()]),u=0,c=r.length-1;c>=1;c--){if(u+=2*s,u>a)return n.isChangingQuality=!1,i;i=r[c]}return n.isChangingQuality=!1,i})},e.maxForwardBuffer_=function(t,n){var r=e.timeToDownload_(t,n);return Math.min(h,Math.max(d,r*l,n.streamInfo.targetDuration*l))},e.prototype.getState_=function(t,n){return t.manifestRepresentation.doneLoading().then(function(r){if(!t.mediaDataModel)return null;var a=t.video.currentTime,s=r.end;if(n){this.streamType=t.manifestRepresentation.streamType;var u=r.levels[0];this.streamInitialQuality=o.indexOf(r.sortedLevels,u),this.manualQualityLevel===-1&&(this.adaptiveQualityLevel=this.streamInitialQuality,this.manualQualityLevel=this.streamInitialQuality)}"VOD"!==r.streamType&&0===a&&(a=i.StreamingEngine.getLiveStartTime(r));var l=r.sortedLevels[this.getQuality()],d=t.network.status(),h=Math.max(1,d.bandwidth),p=d.latency,m=l.streamInfo.targetDuration,v=a+t.maxForwardBuffer(),y=Math.max(v-a-p,0),g=c,_=f;if("VOD"!==this.streamType){g=Math.min(g,m);var b=l.segments.length?o.last(l.segments).end:s;_=Math.min(_,b-a-l.streamInfo.targetDuration)}var T=a+_+m,x=e.minForwardBuffer_(d,l,_),k=e.maxForwardBuffer_(d,l),w=a+k,E=t.mediaDataModel.currentTransmuxSession,S=!0,I=void 0;return E&&!E.forwardBufferCleared&&E.tmsArray.length&&(I=E.tmsArray[0].ts,S=!1,v=I.end),n&&(y=0,v=a,x=1,d.requestsOutstanding=0),{requestsOutstanding:d.requestsOutstanding,bandwidth:h,runway:y,currentTime:a,videoEnd:s,currentBufferEnd:v,targetDuration:m,currentSessionTSSegment:I,sessionBufferCleared:S,minForwardBuffer:x,maxBufferEnd:w,upswitchBufferTime:T,minBufferForDownswitch:g,minBufferForUpswitch:_,action:[],now:o.now(),manifestRepresentation:t.manifestRepresentation,sortedLevels:r.sortedLevels,mdm:t.mediaDataModel}}.bind(this))},e.prototype.liveAdaptive_=function(e){if(this.desiredQualityArbiter===u.MANUAL)return this.firstSegmentToBuffer_(e,e.currentBufferEnd,e.maxBufferEnd);var t=e.now-this.lastAdaptiveSwitchTime_,n=e.sortedLevels.length-1;if(e.now-this.lastTimeWithEnoughBuffer>5e3&&t>p&&this.adaptiveQualityLevel<n&&(this.changeAdaptiveQuality_(e,e.currentBufferEnd,n),this.safetyFactor*=y),e.runway<e.minBufferForDownswitch&&e.sessionBufferCleared)return this.firstSegmentToBuffer_(e,e.currentTime,e.currentTime+e.minBufferForDownswitch+e.targetDuration);if(this.lastTimeWithEnoughBuffer=e.now,!e.sessionBufferCleared)return this.firstSegmentToBuffer_(e,e.currentSessionTSSegment.end,e.currentSessionTSSegment.end);if(!(e.requestsOutstanding>1)){var r=this.targetUpswitchLevel_(e);return t>p&&r<this.adaptiveQualityLevel&&this.changeAdaptiveQuality_(e,e.currentBufferEnd,r),this.firstSegmentToBuffer_(e,e.currentBufferEnd,e.videoEnd)}},e.prototype.whatToDownload_=function(e){if(!this.isChangingQuality){if(this.desiredQualityArbiter===u.MANUAL)return this.firstSegmentToBuffer_(e,e.currentBufferEnd,e.maxBufferEnd);var t=e.now-this.lastAdaptiveSwitchTime_,n=e.sortedLevels.length-1;if(e.now-this.lastTimeWithEnoughBuffer>5e3&&t>p&&this.adaptiveQualityLevel!==n&&(this.changeAdaptiveQuality_(e,e.currentBufferEnd,n),this.isChangingQuality=!1),e.runway<e.minBufferForDownswitch&&e.sessionBufferCleared)return this.firstSegmentToBuffer_(e,e.currentBufferEnd,e.currentTime+e.minBufferForDownswitch+e.targetDuration);if(this.lastTimeWithEnoughBuffer=e.now,!e.sessionBufferCleared)return this.firstSegmentToBuffer_(e,e.currentSessionTSSegment.end,e.currentSessionTSSegment.end);if(!(e.requestsOutstanding>1)){if(e.runway<e.minBufferForUpswitch||t<p)return this.firstSegmentToBuffer_(e,e.currentBufferEnd,e.upswitchBufferTime);var r=this.targetUpswitchLevel_(e);return r<this.adaptiveQualityLevel&&this.changeAdaptiveQuality_(e,e.currentBufferEnd,r)?this.earliestSegmentToLoad(e):void 0}}},e.prototype.firstSegmentToBuffer_=function(e,t,n){var r=.01;return e.manifestRepresentation.requestTS(t+r,n,this.getQuality()).then(function(t){if(0!==t.length&&t[0])for(var n=0;n<t.length;n++){var r=t[n];if(!r.errorInSegment&&!e.mdm.getTransmuxSegment(r))return r}})},e.prototype.targetUpswitchLevel_=function(t){for(var n=8*t.bandwidth,r=t.sortedLevels.length-1,i=0;i<r;i++){var a=t.sortedLevels[i],s=e.timeToDownload_(t,a)*this.safetyFactor,o=a.streamInfo.bandwidth/1e3,u=o*g;if(u<n&&t.runway-s>t.minForwardBuffer)return i}return r},e}();t["default"]=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.Caterpillar=void 0;var i=n(55),a=n(39),s=n(54),o=(n(99),n(3)),u=n(1);n(6),t.Caterpillar=function(){function e(t){r(this,e),u.extend(this,o),this.edition=t}return e.prototype.inited=function(){return!!this.streamingEngine},e.prototype.setup=function(e,t,n,r){this.mediaSource=t,this.videoTag=e,this.preload_=n||"metadata",this.network=new a.Network({withCredentials:r}),this.manifestRepresentation=new s.Manifest(this.network,this.videoTag),this.streamingEngine=new i.StreamingEngine(this.manifestRepresentation,this.network,this.videoTag,this.mediaSource,this.edition)},e.prototype.destroy=function(){this.videoTag&&this.videoTag.pause(),this.streamingEngine&&this.streamingEngine.destroy(),this.manifestRepresentation&&this.manifestRepresentation.destroy(),this.network&&this.network.destroy(),this.streamingEngine=void 0,this.manifestRepresentation=void 0,this.mediaSource=void 0,this.videoTag=void 0},e.prototype.play=function(){this.videoTag&&(this.videoTag.play(),this.streamingEngine.resumeOnTick())},e.prototype.pause=function(){this.videoTag&&(this.videoTag.pause(),this.manifestRepresentation.suspendManifestReloading(),this.streamingEngine.suspendOnTick())},e.prototype.getDuration=function(){if(!this.manifestRepresentation)return 0;var e=this.manifestRepresentation.currentManifestMetadata;return e?"VOD"===e.streamType?e.end:"DVR"===e.streamType?e.start-e.end:1/0:0},e.prototype.getExternalTime=function(e){if(!this.manifestRepresentation)return 0;var t=this.manifestRepresentation.currentManifestMetadata;return t?("DVR"===t.streamType&&(e-=t.end),e):0},e.prototype.getCurrentTime=function(){return this.getExternalTime(this.videoTag.currentTime)},e.prototype.getPtsOffset=function(){return this.streamingEngine.mediaDataModel.getPtsOffset()},e.prototype.getConfiguration=function(){return this.manifestRepresentation?this.manifestRepresentation.doneLoading().then(function(t){var n=this.streamingEngine.mediaDataModel.getSegmentAtTime(this.videoTag.currentTime),r=this.streamingEngine.adaptive.getQuality();if(n){var i=this.manifestRepresentation.levels_[n.level];r=t.sortedLevels.indexOf(i)}var a=!1;return t.sortedLevels.length>1&&(r++,a=this.streamingEngine.adaptive.adaptationEnabled()),{currentLevel:r,levels:e.parseLevels_(t.sortedLevels),enableAdaptation:a}}.bind(this)):Promise.resolve(null)},e.prototype.getAudioCodec=function(){return this.streamingEngine.audioCodec},e.parseLevels_=function(e){var t=u.map(e,function(e){var t=e.streamInfo.bandwidth||0;return e.streamInfo.resolution&&e.streamInfo.resolution.height?{label:e.streamInfo.label,bitrate:t,height:e.streamInfo.resolution.height,width:e.streamInfo.resolution.width}:{label:e.streamInfo.label,bitrate:t,height:1,width:1}});return t.length>1&&t.unshift({label:"Auto",bitrate:1,height:1,width:1}),t},e.prototype.setCurrentQuality=function(e){this.streamingEngine.setCurrentQuality(e)},e.prototype.beginStream=function(){var e=this;this.readyToPlayPromise_.then(function(){e.streamingEngine.beginStream()})},e.prototype.initStream=function(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?"Auto":arguments[1];this.streamingEngine.on("meta",function(e){this.trigger("meta",e)},this).on("bufferFull",function(e){this.trigger("bufferFull",e)},this).on("trackTypes",function(e){this.trigger("trackTypes",e)},this).on("cueAdded",function(e){this.trigger("cueAdded",e)},this).on("error",function(e){this.trigger("error",e)},this).on("levels",function(t){var n=e.parseLevels_(t.levels);this.trigger("levels",{levels:n,currentQuality:t.currentQuality})},this),this.readyToPlayPromise_=new Promise(function(e,t){n.streamReadyToStart_=e,n.streamStarted_=t})["catch"](function(){}),this.streamingEngine.setManifest(t,r).then(function(){var e="auto"===n.preload_;e?(n.streamingEngine.beginStream(),n.streamStarted_()):n.streamReadyToStart_()})["catch"](function(e){return n.trigger("error",e)})},e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(1),a=n(3),s=n(4);t.HLSMetadataLogger=function(){function e(t,n,s,o,u){r(this,e),this.isAudioOnly=!1,this.video=t,this.streamingEngine=n,this.mdm=s,this.adaptive=o,this.manifest=u,i.extend(this,a)}return e.prototype.sendStartupMetadata=function(e){this.trigger(s.JWPLAYER_MEDIA_META,this.formatStreamMetadata(e)),this.mdm.getTrackTypes().then(function(e){this.isAudioOnly=1===e.length&&"audio"===e[0].type}.bind(this))},e.prototype.sendDeltaMetadata=function(e){this.trigger(s.JWPLAYER_MEDIA_META,this.formatDeltaMetadata(e))},e.prototype.sendSegmentCompletedMetadata=function(e,t){this.manifest.doneLoading().then(function(n){this.trigger(s.JWPLAYER_MEDIA_META,this.formatSegmentCompleteMetadata(n,e,t))}.bind(this))},e.prototype.sendBufferChangeMetadata=function(){this.manifest.doneLoading().then(function(e){var t=this.formatBufferChangeData(e);this.trigger("hls-metadata-bufferchange",t)}.bind(this))},e.prototype.formatStreamMetadata=function(e){var t=this,n=this.adaptive.getQuality();return{type:"meta",metadata:{levelIndex:n,levels:i.map(e.sortedLevels,function(e){return t.formatLevelData(e)})}}},e.prototype.formatDeltaMetadata=function(e){var t=this,n=this.adaptive.getQuality();return{type:"meta",metadata:{levelIndex:n,audioTrackIndex:-1,subtitlesTrackIndex:-1,subtitlesTracks:[],audioTracks:[],adaptiveType:e.streamType,duration:e.end-e.start,levels:i.map(e.sortedLevels,function(e){return t.formatLevelData(e)})}}},e.prototype.getBandwidthMetrics=function(e,t){var n=this.mdm.network,r=n.status();if(!t){var i=this.adaptive.getQuality();t=e.sortedLevels[i]}return{bandwidth:1e3*r.bandwidth,latencyRate:r.latency*r.bandwidth*1e3,initialLevelBitrate:t.streamInfo.bandwidth,currentLevelBitrate:0,estimatedRate:0,priorRate:0,currentRate:0,currentMaxRate:1e3*r.bandwidthMax,averageRate:1e3*r.bandwidth,modifiedAverageRate:0,instantRate:0,medianInstantRate:0,averageInstantRate:0,smoothInstantRate:0}},e.prototype.formatSegmentCompleteMetadata=function(e,t,n){var r=this,a=this.adaptive.getQuality(),s=this.mdm.network.status(),o=n.segments.indexOf(t);return{type:"meta",metadata:{streamType:e.streamType,bandwidthMetrics:this.getBandwidthMetrics(e,n),droppedFrames:0,bandwidth:1e3*s.bandwidth,height:n.streamInfo.resolution.height,width:n.streamInfo.resolution.width,duration:e.end-e.start,currentLevel:n.streamInfo.label,levelIndex:a,segment:this.formatSegmentData(t,n,o),levels:i.map(e.sortedLevels,function(e){return r.formatLevelData(e)})}}},e.prototype.formatLevelData=function(e){var t=this,n=e.streamInfo.trackTypes,r=n&&1===n.length&&"audio"===n[0].type,a=i.map(e.segments,function(n,r){return t.formatSegmentData(n,e,r)});return{responseTime:1e3,bitrate:e.streamInfo.bandwidth,index:e.streamInfo.originalIndex,mediaSequence:e.mediaSequence,audioOnly:r,audioGroup:"audio",requestTime:100,segments:a,width:e.streamInfo.resolution.width,height:e.streamInfo.resolution.height,start:e.streamInfo.start,endTime:e.streamInfo.end,duration:e.streamInfo.end-e.streamInfo.start,subtitlesGroup:"subtitles",m3u8:"#EXTM3U\n#EXT-X-ENDLIST\n",label:e.streamInfo.label}},e.prototype.formatSegmentData=function(e,t,n){var r=e.size,i=this.mdm.network,a=i.status();return{mediaSequenceNumber:e.mediaSequenceId,start:e.start,duration:e.duration,index:n,httpStatus:0,size:r,bitrate:r/e.duration,bandwidth:1e3*a.bandwidth,loadTime:r/(1e3*a.bandwidth),dtsOffset:e.pts/9e4-e.start,error:null,discontinuity:e.discontinuity,type:e.url.substring(e.url.lastIndexOf(".")+1).toUpperCase()}},e.prototype.formatBufferChangeData=function(t){function n(e){if(e.length){for(var t=[],n=0;n<e.length;n++)t.push({
start:e.start(n),end:e.end(n)});return t}return[{start:0,end:0}]}var r=0,a=this.video.currentTime;"LIVE"!==t.streamType&&t?(r=t.end-t.start,"DVR"===t.streamType&&(r=-r,a-=t.end)):r=1/0;var s=void 0;this.streamingEngine.msee&&(s=this.streamingEngine.msee.sourceBuffers_);var o=e.getMinMaxInTimeRanges(this.video.buffered),u={type:"hls-metadata-bufferchange",bufferPercent:(o.end-t.start)/(t.end-t.start)*100,position:a,duration:r,metadata:{bandwidthMetrics:this.getBandwidthMetrics(t),nsBufferLength:0,droppedFrames:0,bufferLength:Math.max(0,o.end-this.video.currentTime),bandwidth:12e7,backBufferLength:Math.max(0,this.video.currentTime-o.start)}};return s&&s.video&&(u.metadata=i.extend(u.metadata,{videoBufferRange:n(s.video.buffered)})),s&&s.audio&&(u.metadata=i.extend(u.metadata,{audioBufferRange:n(s.audio.buffered)})),u},e.getMinMaxInTimeRanges=function(e){var t={start:0,end:0};if(!e.length)return t;t.start=e.start(0),t.end=e.end(0);for(var n=1;n<e.length;n++)t.start=Math.min(t.start,e.start(n)),t.end=Math.max(t.end,e.end(n));return t},e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.LiveManifestLoader=t.RefreshRequest=void 0;var i,a=n(40),s=400,o=500,u=2,c=n(1);!function(e){e[e.IDLE=0]="IDLE",e[e.PENDING=1]="PENDING",e[e.COMPLETE=2]="COMPLETE"}(i||(i={}));var f=t.RefreshRequest=function l(){r(this,l),this.status=i.IDLE};t.LiveManifestLoader=function(){function e(t,n,i){r(this,e),this.refreshRequests=[],this.manifest=t,this.network=n,this.video=i}return e.prototype.pollManifest=function(e){return this.refreshRequests[e]||(this.refreshRequests[e]=new f),this.reload_(e),this.refreshRequests[e].cycles=u,this.refreshRequests[e].promise},e.prototype.reload_=function(e){var t=this.refreshRequests[e];t&&t.status!==i.PENDING&&(t.promise=this.manifest.refreshManifest(e),t.status=i.PENDING,t.promise.then(this.checkManifestRefresh_.bind(this,e)))},e.prototype.checkManifestRefresh_=function(e){var t=this,n=this.refreshRequests[e];this.manifest&&n&&(n.cycles>0?this.getManifestLoadRunway_(e,this.video.currentTime).then(a.wait).then(function(){t.manifest&&n.cycles>0&&(n.cycles--,n.status=i.COMPLETE,t.reload_(e))}):n.status=i.IDLE)},e.prototype.getManifestLoadRunway_=function(e,t){var n=this;return this.manifest.doneLoading().then(function(){var r=3*n.network.maxLatency(),i=n.manifest.levels_[e],a=i.segments[i.segments.length-1],u=1e3*(a.end-t),c=1e3*n.manifest.levels_[e].streamInfo.targetDuration;if(c=Math.min(c,1e3*a.duration),c+s>u)return Math.max((u-r)/2,s);if(1===n.manifest.refreshesWithoutChanges)c/=2;else if(n.manifest.refreshesWithoutChanges>5)return o;return Math.max(c,s)})},e.prototype.cancelReloading=function(){c.each(this.refreshRequests,function(e){e.cycles=0})},e.prototype.destroy=function(){this.cancelReloading(),this.video=null,this.refreshRequests=[],this.network=null,this.manifest=void 0},e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.ManifestLoader=void 0;var a=n(7),s=r(a),o=n(39),u=n(3),c=n(1),f=n(6);t.ManifestLoader=function(){function e(t){i(this,e),this.totalManifest="",this.leftoverContent="",this.network=t,c.extend(this,u)}return e.prototype.load=function(e){var t={requester:"manifest",requestType:o.RequestType.Text,uris:e,retryParameters:{maxAttempts:2}},n=this.network.request(t),r=this;return n.then(function(e){var t=e.chan;return r.trigger("baseUrlFound",e.url),new Promise(function(e){f.go(s["default"].mark(function n(){var i;return s["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,f.take(t);case 3:if(i=n.sent,i!==f.CLOSED){n.next=10;break}return r.parseManifestChunk("",!0),e(),n.abrupt("break",13);case 10:r.parseManifestChunk(i,!1);case 11:n.next=0;break;case 13:case"end":return n.stop()}},n,this)}))})})},e.prototype.parseManifestChunk=function(e,t){var n=this.leftoverContent+e;if(this.totalManifest+=e,n=n.replace(/\r\n/g,"\n").replace(/\r/g,""),t&&n||n.indexOf("#EXT-X-ENDLIST")>=n.length-16)this.leftoverContent="",this.trigger("manifestChunk",n);else{var r=n.lastIndexOf("\n");this.leftoverContent=n.substring(r+1),this.trigger("manifestChunk",n.substring(0,r))}},e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.ManifestParser=t.Playlist=void 0;var i=n(38),a=n(54),s=n(3),o=n(2),u=n(1),c=t.Playlist=function l(){r(this,l)},f=t.ManifestParser=function(){function e(t){r(this,e),this.KEY_VALUE=/^(?:,|, | )?([A-Z\-]+)=((?:"[^"]*")|(?:[^,]*))(.*)$/,this.EXTM3U={exp:/^#EXTM3U\s*$/,action:this.assignPlaylist.bind(this)},this.EXT_X_TARGETDURATION={exp:/^#EXT-X-TARGETDURATION:\s*(\d+(?:\.\d+)?)\s*$/,action:this.assignFloatStreamInfo.bind(this),prop:"targetDuration",checkType:this.setMediaPlaylist.bind(this)},this.EXT_X_MEDIA_SEQUENCE={exp:/^#EXT-X-MEDIA-SEQUENCE:\s*(\d+)\s*$/,action:this.assignMediaSequence.bind(this),checkType:this.setMediaPlaylist.bind(this)},this.EXT_X_VERSION={exp:/^#EXT-X-VERSION:\s*(\d+)\s*$/,action:this.assignInt.bind(this),prop:"version"},this.EXT_X_ALLOW_CACHE={exp:/^#EXT-X-ALLOW-CACHE:.*$/},this.EXT_X_KEY={exp:/^#EXT-X-KEY:(.*)$/,action:this.assignAesKey.bind(this)},this.EXT_X_STREAM_INF={exp:/^#EXT-X-STREAM-INF:(.*)$/,action:this.assignMediaPlaylist.bind(this),checkType:this.setMasterPlaylist.bind(this)},this.EXT_X_I_FRAME_STREAM_INF={exp:/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/,action:this.assignIFrameMediaPlaylist.bind(this)},this.EXT_X_I_FRAMES_ONLY={exp:/^#EXT-X-I-FRAMES-ONLY\s*$/,action:this.setIFrameOnly.bind(this)},this.EXT_X_BYTERANGE={exp:/^#EXT-X-BYTERANGE:\s*(\d+(?:\.\d+)?)(?:@(\d+(?:\.\d+)?))?$/,action:this.setByteRange.bind(this)},this.EXTINF={exp:/^#EXTINF:\s*(-?\d+(?:\.\d+)?)(?:,(.*))?$/,action:this.createSegment.bind(this),checkType:this.setMediaPlaylist.bind(this)},this.EXT_X_MEDIA={exp:/^#EXT-X-MEDIA:(.*)$/,action:this.parseMedia.bind(this),checkType:this.setMasterPlaylist.bind(this)},this.EXT_X_DISCONTINUITY_SEQUENCE={exp:/^#EXT-X-DISCONTINUITY-SEQUENCE:\s*(\d+)\s*$/,action:this.setDiscontinuitySequence.bind(this),checkType:this.setMediaPlaylist.bind(this)},this.EXT_X_DISCONTINUITY={exp:/^#EXT-X-DISCONTINUITY\s*$/,action:this.incrementDiscontinuity.bind(this),checkType:this.setMediaPlaylist.bind(this)},this.EXT_X_ENDLIST={exp:/^#EXT-X-ENDLIST\s*$/,action:this.setEndlist.bind(this)},this.EXT_X_PLAYLIST_TYPE={exp:/^#EXT-X-PLAYLIST-TYPE:\s*(EVENT|VOD)\s*$/},this.EXT_X_INDEPENDENT_SEGMENTS={exp:/^#EXT-X-INDEPENDENT-SEGMENTS\s*$/},this.EXT_X_PROGRAM_DATE_TIME={exp:/^#EXT-X-PROGRAM-DATE-TIME:\s*([\d\-T:\.\+A-Z]+)\s*$/},this.DECIMAL_FLOATING_POINT={exp:/^(?:\+|-)?\d+(?:\.\d+)?$/},this.COMMENT={exp:/^#[^EXT](.*)$/},this.WHITESPACE={exp:/^\s*$/},this.URI={exp:/^([^#].+)$/,action:this.assignURL.bind(this)},this.props=[this.EXTM3U,this.EXT_X_VERSION,this.EXT_X_ALLOW_CACHE,this.EXTINF,this.EXT_X_BYTERANGE,this.EXT_X_DISCONTINUITY,this.EXT_X_KEY,this.EXT_X_PROGRAM_DATE_TIME,this.EXT_X_TARGETDURATION,this.EXT_X_MEDIA_SEQUENCE,this.EXT_X_DISCONTINUITY_SEQUENCE,this.EXT_X_ENDLIST,this.EXT_X_PLAYLIST_TYPE,this.EXT_X_I_FRAMES_ONLY,this.EXT_X_MEDIA,this.EXT_X_STREAM_INF,this.EXT_X_I_FRAME_STREAM_INF,this.EXT_X_INDEPENDENT_SEGMENTS,this.DECIMAL_FLOATING_POINT,this.URI,this.WHITESPACE,this.COMMENT],this.playlistObject=new c,this.manifestData="",this.baseURL="",this.discontinuityCount=0,u.extend(this,s),this.streamInfo=t||new i.StreamInfo}return e.prototype.assignPlaylist=function(t){u.extend(t,e.makePlaylistProperties())},e.prototype.assignFloatStreamInfo=function(e,t,n){e.streamInfo[t]=parseFloat(n[1])},e.prototype.assignInt=function(e,t,n){e[t]=parseInt(n[1])},e.prototype.assignURL=function(t,n,r){var i=r[0];if("media"===t.type){if(t.mediaElements.length>0){var a=t.mediaElements.length-1,s=t.mediaElements[a];if(s.url=e.getURI(i,this.baseURL),t.byteRangeLength){s.byteRange.length=t.byteRangeLength;var u=t.byteRangeStart;if(!u&&a>0){var c=t.mediaElements[a-1],f=c.byteRange.length,l=c.byteRange.byteRangeStart;u=l+f||0}s.byteRange.start=u}"AES-128"===t.key&&(s.aesKeyUri=o.getAbsolutePath(t.keyUri,this.baseURL),s.aesIV=this._getSegmentIV(t.aesIV,s.mediaSequenceId)),this.trigger("tsSegmentFound",s)}}else if("master"===t.type&&t.streamInfos.length>0){var d=t.streamInfos[t.streamInfos.length-1];d.urls.length||(d.urls.push(e.getURI(i,this.baseURL)),this.trigger("mediaPlaylistFound",d))}},e.prototype.assignMediaSequence=function(e,t,n){e.mediaSequence=e.currentMediaSequenceId=parseInt(n[1])},e.prototype.assignMediaPlaylist=function(t,n,r){var i=r[1];t.streamInfos.push(e.makeStreamInfo(i))},e.prototype.assignIFrameMediaPlaylist=function(t,n,r){var i=r[1];t.iframeStreamInfos.push(e.makeStreamInfo(i))},e.prototype.setIFrameOnly=function(e){e.iframeOnly=!0},e.prototype.assignAesKey=function(e,t,n){var r=this.parseAttributeValuePair(n[1]);e.key=r.method,e.keyUri=r.uri,e.aesIV=r.iv},e.prototype.setMediaPlaylist=function(t){return t.type||(u.extend(t,e.makeMediaPlaylistProperties()),t.streamInfo=this.streamInfo),"media"===t.type},e.prototype.setMasterPlaylist=function(t){return t.type||u.extend(t,e.makeMasterPlaylistProperties()),"master"===t.type},e.prototype.createIVArrayBuffer_=function(e){var t="00000000000000000000000000000000";return e=t.substr(e.length)+e,this.hexStringToArrayBuffer_(e)},e.prototype.hexStringToArrayBuffer_=function(e){var t=void 0,n=new Uint8Array(16);for(t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substr(t,2),16);return n.buffer},e.prototype._getSegmentIV=function(e,t){if(e){var n=e.substring(0,2);return"0x"===n||"0X"===n?this.createIVArrayBuffer_(e.substring(2)):this.createIVArrayBuffer_(e)}return this.createIVArrayBuffer_(t.toString(16))},e.prototype.parseMedia=function(t,n,r){var i=e.parseKeyValuesPairs(r[1]),s=new a.MediaData(i);if(s.type&&s.groupId){var o=s.type.toLowerCase(),u=s.groupId,c=t.renditions[o],f=void 0;t.renditions[o]=c?c:{},f=t.renditions[o][u],t.renditions[o][u]=f?f:[],t.renditions[o][u].push(s)}},e.prototype.setByteRange=function(e,t,n){e.byteRangeLength=parseInt(n[1],10),e.byteRangeStart=parseInt(n[2],10)},e.prototype.createSegment=function(e,t,n){var r=new i.Segment,a=parseFloat(n[1]),s=n[2];if(r.title=s?s:r.title,r.originalData.start=r.start=this.streamInfo.end,r.originalData.end=r.end=this.streamInfo.end+a,r.originalData.duration=r.duration=a||this.streamInfo.targetDuration,r.discontinuity=this.discontinuityCount,!(e.mediaSequence>=0))throw"expected a media sequence value before a segment, but did not find one.";r.mediaSequenceId=e.currentMediaSequenceId,e.currentMediaSequenceId++,r.title&&!/^(?:\{\}|no desc)$/.test(r.title.trim())&&(r.extInfTitle=r.title),e.streamInfo.end+=r.duration,e.mediaElements.push(r)},e.prototype.setDiscontinuitySequence=function(e,t,n){this.discontinuityCount=e.discontinuitySequence=parseFloat(n[1])},e.prototype.incrementDiscontinuity=function(e){e.containsDiscontinuities=!0,this.discontinuityCount++},e.prototype.setEndlist=function(e){"master"!==e.type&&(e.mediaElements[e.mediaElements.length-1].isLast=!0,this.streamInfo.hasEndlist=!0)},e.prototype.parseAttributeValuePair=function(e){for(var t={},n=e;;){var r=n.match(this.KEY_VALUE);if(null==r)break;var i=r[1].toLowerCase(),a="";a=0===r[2].indexOf('"')&&r[2].lastIndexOf('"')===r[2].length-1?r[2].slice(1,r[2].length-1):r[2],t[i]=a,n=r[3]}return t},e.makePlaylistProperties=function(){return{version:1,independentSegments:!1,start:{timeOffset:0,precise:!1}}},e.makeMasterPlaylistProperties=function(){return{type:"master",media:[],streamInfos:[],iframeStreamInfos:[],renditions:{}}},e.makeMediaPlaylistProperties=function(){return{type:"media",streamInfo:null,mediaSequence:0,currentMediaSequenceId:0,playlistType:null,discontinuitySequence:null,containsDiscontinuities:!1,iFramesOnly:!1,mediaElements:[]}},e.makeStreamInfo=function(t){var n=e.parseKeyValuesPairs(t),r=new i.StreamInfo,a=n.url||n.uri;if(a&&r.urls.push(a),r.bandwidth=parseFloat(n.bandwidth),n.codecs&&(r.codecs=n.codecs.split(/[, ] */g)),n.resolution){var s=n.resolution.split("x");r.resolution={width:parseInt(s[0]),height:parseInt(s[1])}}return r.trackTypes=e.getLevelTypes(r),r.video=n.video,r.audio=n.audio,r.programId=parseInt(n.programid),r.label=n.name||e.makeLabel(r),r},e.makeLabel=function(e){return e.resolution&&e.resolution&&e.resolution.height?e.resolution.height+"p":Math.floor(e.bandwidth/1e3)+" kbps"},e.parseKeyValuesPairs=function(t){for(var n={},r=void 0,i=void 0,a=void 0,s=t;;){if(r=e.KEY_VALUE.exec(s),null===r)break;i=r[1].replace("-","").toLowerCase(),a="",a=0===r[2].indexOf('"')&&r[2].lastIndexOf('"')===r[2].length-1?r[2].slice(1,r[2].length-1):r[2],n[i]=a,s=r[3]}return n},e.getLevelTypes=function(e){var t=e.resolution.width*e.resolution.height,n=e.codecs,r=!1,i=u.compact(u.map(n,function(e){return e.indexOf("avc1")>=0?(r=!0,{type:"video",codec:"default"}):e.indexOf("mp4a.40.34")>=0?{type:"audio",codec:"mp3"}:e.indexOf("mp4a")>=0?{type:"audio",codec:"aac"}:void 0}));return t&&!r&&i.push({type:"video",codec:"default"}),i},e.getURI=function(e,t){var n=/^(https?:\/\/.*)$/i,r=/^(\/.*)$/,i=/^(.+)$/;if(n.test(e))return e;if(r.test(e)){var a=new URL(t);return a.protocol+"//"+a.host+e}return i.test(e)?t+e:e},e.prototype.parse=function(e){var t=this,n=e.split("\n");this.manifestData+=e,n.forEach(function(e){var n=void 0,r=!1;t.props.forEach(function(i){n=i.exp.exec(e),n&&(i.checkType&&!i.checkType(t.playlistObject)||(i.action&&i.action(t.playlistObject,i.prop,n),r=!0))})})},e.prototype.getPlaylist=function(){return this.playlistObject},e.prototype.setBaseUrl=function(e){var t=e.split(/[?#]/)[0];this.baseURL=t.substring(0,t.lastIndexOf("/")+1)},e}();f.KEY_VALUE=/^(?:,|, | )?([A-Z\-]+)=((?:"[^"]*")|(?:[^,]*))(.*)$/},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.MDM=void 0;var a=n(7),s=r(a),o=n(39),u=n(40),c=n(105),f=n(1),l=n(3),d=n(6),h=4,p=8;t.MDM=function(){function e(t,n){var r=this;i(this,e),this.loadedAesKeys_={},this.sessionHistory_=[],this.segmentPtsOffset_=-1,this.network=n,this.manifestRepresentation=t,f.extend(this,l),this.streamTypesKnown_=new Promise(function(e,t){r.streamTypesKnownResolve_=e,r.streamTypesKnownReject_=t})}return e.prototype.getTrackTypes=function(){return this.streamTypesKnown_},e.prototype.removeTmsInRange_=function(e,t,n){f.each(this.sessionHistory_,function(r){n===!1&&r.active||(r.tmsArray=f.filter(r.tmsArray,function(n){return!(!n.ts.errorInSegment||n.ts.start!==e&&n.ts.end!==t)||!(n.ts.start<t&&n.ts.end>e)}))}),this.sessionHistory_=f.filter(this.sessionHistory_,function(e){return!!e.tmsArray.length})},e.prototype.removeInactiveTmsInRange=function(e,t){return this.removeTmsInRange_(e,t,!1)},e.prototype.removeAllTmsInRange=function(e,t){return this.removeTmsInRange_(e,t,!0)},e.prototype.getSegmentAtTime=function(e){for(var t=this.sessionHistory_.length;t--;){var n=this.sessionHistory_[t].tmsArray,r=f.find(n,function(t){return t.ts.start<=e&&t.ts.end>=e});if(r)return r.ts}},e.prototype.getTransmuxSegment=function(e){return this.currentTransmuxSession?this.currentTransmuxSession.getTransmuxSegment(e):null},e.prototype.get=function(e){var t=this,n=this.getTransmuxSegment(e);return n||(n=new c.TransmuxSegment(e),this.transmux_(n),this.beginDownloadingSegment(n)),e.aesKeyUri?this.loadedAesKeys_[e.aesKeyUri].then(function(){return Promise.resolve(t.currentTransmuxSession)})["catch"](function(e){return Promise.reject("Cannot download AES key: "+e)}):Promise.resolve(this.currentTransmuxSession)},e.prototype.getPtsOffset=function(){var e=this.currentTransmuxSession.tmsArray[0];return e&&e.ts.pts&&(this.segmentPtsOffset_=e.ts.pts/9e4-e.ts.start),this.segmentPtsOffset_},e.prototype.complete=function(e){e.transmuxStatus="complete"},e.prototype.endTransmuxSession=function(e){e&&e.tmsArray&&e.destroy()},e.prototype.transmux_=function(e){var t=this,n=e.ts;if(this.isSegmentContiguous_(e))this.currentTransmuxSession.tmsArray.push(e);else{this.endTransmuxSession(this.currentTransmuxSession),this.currentTransmuxSession=new c.TransmuxSession,this.currentTransmuxSession.tmsArray.push(e),this.segmentPtsOffset_=-1,this.sessionHistory_.push(this.currentTransmuxSession);var r=["audio","video","metadata","captions"],i=f.map(r,function(e){return this.spawnTransmuxTaker_(this.currentTransmuxSession,e)},this),a=f.pluck(i,"offsetsKnown");this.currentTransmuxSession.offsetsKnown=Promise.all(a).then(function(e){return f.reduce(e,function(e,t){return e[t.type]=t,e},{})})}n.aesKeyUri&&(this.loadedAesKeys_[n.aesKeyUri]||(this.loadedAesKeys_[n.aesKeyUri]=this.loadAesKey_(n).then(function(e){return(0,u.channelToPromise)(e.chan)}))),this.currentTransmuxSession.transmuxer.trackTypesKnown().then(function(e){0!==e.length&&t.streamTypesKnownResolve_(e)})},e.prototype.spawnTransmuxTaker_=function(e,t){var n=e.transmuxer[t],r=e.mediaChannels[t],i=void 0,a=void 0,o=new Promise(function(e,t){i=e,a=t});return d.go(s["default"].mark(function u(){var e,o,c,l,m,v,y;return s["default"].wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=f.now()+h,"metadata"!==t&&"captions"!==t||i({type:t}),o=void 0;case 3:return s.t0=d.CLOSED,s.next=6,d.take(n);case 6:if(s.t1=o=s.sent,s.t0===s.t1){s.next=24;break}if("duration-update"!==o.type){s.next=11;break}return o.sourceFile&&(c=o.sourceFile.split("_"),l=c[0],m=c[1],this.manifestRepresentation.updateTS(l,m,{type:t,duration:o.duration,start:o.start})),s.abrupt("continue",3);case 11:return"metadata"!==o.type||f.isNumber(o.start)||f.isNumber(o.pts)||(v=this.manifestRepresentation.getSegmentFromIndex(o.sourceFile),o.start=v.start),s.next=14,d.put(r,o);case 14:if("error"!==o.type){s.next=16;break}return s.abrupt("return",a(o.message));case 16:if("init"===o.type&&i({type:t,codec:o.codec,start:o.start}),y=f.now(),!(y>e)){s.next=22;break}return e=y+h,s.next=22,d.timeout(p);case 22:s.next=3;break;case 24:i({type:t}),r.close();case 26:case"end":return s.stop()}},u,this)}).bind(this)),{offsetsKnown:o}},e.prototype.downloadComplete_=function(e,t){return e.size=t.size,this.manifestRepresentation.updateLevel(e),t},e.prototype.loadAesKey_=function(e){var t={requestType:o.RequestType.ByteArray,requester:"aes-key",uris:[e.aesKeyUri],retryParameters:{maxAttempts:2}};return this.network.request(t)},e.prototype.isSegmentContiguous_=function(e){if(!e||e.ts.errorInSegment||!this.currentTransmuxSession||!this.currentTransmuxSession.transmuxer||!this.currentTransmuxSession.tmsArray.length)return!1;var t=this.currentTransmuxSession.tmsArray,n=t[t.length-1];return e.ts.discontinuity===n.ts.discontinuity&&(e.ts.level===n.ts.level&&e.ts.mediaSequenceId===n.ts.mediaSequenceId+1&&!n.ts.errorInSegment)},e.prototype.beginDownloadingSegment=function(e){var t=this,n=e.ts;e.transmuxStatus="downloading";var r={requestType:o.RequestType.ByteArray,requester:"media-file",uris:[n.url],retryParameters:{maxAttempts:2}},i=this.network.request(r);this.currentTransmuxSession.enqueueNetworkData({segment:e.ts,netRequestPromise:i,aesKeyPromise:this.loadedAesKeys_[e.ts.aesKeyUri]}),i.then(function(e){(0,u.channelToPromise)(e.metaChan).then(t.downloadComplete_.bind(t,n))})["catch"](function(){n.errorInSegment=!0,t.trigger("segment-download-error",n)})},e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){return new Promise(function(i){I.go(o["default"].mark(function a(){var s,u;return o["default"].wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,I.take(e);case 3:if(s=a.sent,s!==I.CLOSED){a.next=10;break}return r&&t.close(),a.next=8,I.put(t,{type:"endOfFile"});case 8:return i(),a.abrupt("break",17);case 10:return u={sourceFile:n,payload:s},a.next=13,I.put(t,u);case 13:if(a.sent){a.next=15;break}return a.abrupt("break",17);case 15:a.next=0;break;case 17:case"end":return a.stop()}},a,this)}))})}t.__esModule=!0;var s=n(7),o=r(s),u=n(120),c=r(u),f=n(122),l=r(f),d=n(57),h=r(d),p=n(118),m=r(p),v=n(119),y=r(v),g=n(117),_=r(g),b=n(121),T=r(b),x=n(115),k=r(x),w=n(113),E=r(w),S=n(124),I=n(6),M=function(){function e(t){var n=this;i(this,e),this.id=t;var r=void 0,a=void 0,s=void 0;this.trackTypesKnownPromise=Promise.race([new Promise(function(e){r=e}),new Promise(function(e){s=e}),new Promise(function(e){a=e})]).then(function(e){return 0===e.length?(n.videoPesChannel.close(),f.close(),p.close(),g.close()):1===e.length&&("audio"===e[0].type?n.videoPesChannel.close():"video"===e[0].type&&(f.close(),p.close(),g.close())),e}),this.inputToMpegTSChannel=I.chan(1e4);var o=this.tsPacketChannel=I.chan(),u=this.pesPacketChannel=I.chan(),f=I.chan(),d=this.videoPesChannel=I.chan();this.tsToMetadataChannel=I.chan();var p=I.chan(),v=I.chan(),g=I.chan(),b=I.chan(),x=I.chan();this.audio=I.chan(),this.video=I.chan(),this.captions=I.chan(),this.metadata=I.chan(),I.go((0,l["default"])(r,o,u)),I.go((0,m["default"])(a,p,g,v)),I.go((0,y["default"])(this.tsToMetadataChannel,v,this.metadata)),I.go((0,T["default"])(d,b,x,this.metadata)),I.go((0,_["default"])(b,this.video)),I.go((0,E["default"])(x,this.captions)),I.go((0,S.PesPacketSplitter)(r,this.pesPacketChannel,f,this.videoPesChannel,this.tsToMetadataChannel)),I.go((0,c["default"])(s,this.inputToMpegTSChannel,this.tsPacketChannel,this.pesPacketChannel,p));var k=I.operations.merge([g,f]);I.go((0,h["default"])(k,this.audio))}return e.prototype.nextFile=function(e,t){if(t.aesKeyPromise){var n=I.chan(1e4);return I.go((0,k["default"])(e,n,t.id,t.aesIV,t.aesKeyPromise)),a(n,this.inputToMpegTSChannel,t.id,t.isLast)}return a(e,this.inputToMpegTSChannel,t.id,t.isLast)},e.prototype.endOfInput=function(){this.inputToMpegTSChannel.close()},e.prototype.trackTypesKnown=function(){return this.trackTypesKnownPromise},e}();t["default"]=M},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.TransmuxSession=t.TransmuxSegment=void 0;var a=n(104),s=r(a),o=n(1),u=n(6);t.TransmuxSegment=function c(e){i(this,c),this.ts=e,this.transmuxStatus="in-progress"},t.TransmuxSession=function(){function e(){i(this,e),this.dataQueue_=[],this.isSendingData_=!1,this.forwardBufferCleared=!1,this.active=!0,this.firstDataBuffered={audio:!1,video:!1};var t=o.uniqueId("transmuxer-");this.tmsArray=[],this.transmuxer=new s["default"](t),this.mediaChannels={video:new u.chan(1e4),audio:new u.chan(1e4),metadata:new u.chan(1e4),captions:new u.chan(1e4)}}return e.prototype.getTransmuxSegment=function(e){return o.find(this.tmsArray,function(t){return e===t.ts})},e.prototype.destroy=function(){var e=this;this.isSendingData_||(this.transmuxer.endOfInput(),this.transmuxer=null),o.each(this.dataQueue_,function(t){e.tmsArray=o.without(e.tmsArray,t.segment)}),this.active=!1,this.dataQueue_=null},e.prototype.enqueueNetworkData=function(e){this.dataQueue_.push(e),this.runQueue_()},e.prototype.runQueue_=function(){var e=this;if(!this.dataQueue_)return void this.destroy();if(!this.isSendingData_&&this.dataQueue_.length){this.isSendingData_=!0;var t=this.dataQueue_.shift();t.netRequestPromise.then(function(n){e.dataQueue_||e.destroy();var r=t.segment,i=r.level+"_"+r.mediaSequenceId,a={id:i,isLast:r.isLast,aesIV:r.aesIV,aesKeyPromise:t.aesKeyPromise};e.transmuxer.nextFile(n.chan,a).then(function(){return e.isSendingData_=!1}).then(e.runQueue_.bind(e))})["catch"](function(){e.isSendingData_=!1})}},e.prototype.markBuffered=function(e){this.firstDataBuffered[e]=!0},e.prototype.isBuffered=function(e){var t=this;return o.all(e,function(e){return t.firstDataBuffered[e]})},e}()},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this.aesIV=t}return e.prototype.decrypt=function(e,t){return window.crypto.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}();t["default"]=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(t){r(this,e);var n=this.uint8ArrayToUint32Array_(t.buffer),i=this.keySize=n.length,a=i+6;this.ksRows=4*(a+1),this.keyWords=n,this.subMix=[],this.invSubMix=[],this.initTable(),this.expandKey()}return e.prototype.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<n.length;r++)n[r]=t.getUint32(4*r);return n},e.prototype.initTable=function(){var e=this.sBox=new Uint32Array(256),t=this.invSBox=new Uint32Array(256),n=this.subMix[0]=new Uint32Array(256),r=this.subMix[1]=new Uint32Array(256),i=this.subMix[2]=new Uint32Array(256),a=this.subMix[3]=new Uint32Array(256),s=this.invSubMix[0]=new Uint32Array(256),o=this.invSubMix[1]=new Uint32Array(256),u=this.invSubMix[2]=new Uint32Array(256),c=this.invSubMix[3]=new Uint32Array(256);this.rcon=[0,1,2,4,8,16,32,64,128,27,54];for(var f=new Uint32Array(256),l=0,d=0,h=0;h<256;h++)h<128?f[h]=h<<1:f[h]=h<<1^283;for(var h=0;h<256;h++){var p=d^d<<1^d<<2^d<<3^d<<4;p=p>>>8^255&p^99,e[l]=p,t[p]=l;var m=f[l],v=f[m],y=f[v],g=257*f[p]^16843008*p;n[l]=g<<24|g>>>8,r[l]=g<<16|g>>>16,i[l]=g<<8|g>>>24,a[l]=g,g=16843009*y^65537*v^257*m^16843008*l,s[p]=g<<24|g>>>8,o[p]=g<<16|g>>>16,u[p]=g<<8|g>>>24,c[p]=g,l?(l=m^f[f[f[y^m]]],d^=f[f[d]]):l=d=1}},e.prototype.expandKey=function(){for(var e,t=this.keySchedule=new Uint32Array(this.ksRows).fill(0),n=this.rcon,r=this.invKeySchedule=new Uint32Array(this.ksRows).fill(0),i=this.keySize,a=this.keyWords,s=this.ksRows,o=this.sBox,u=this.invSubMix[0],c=this.invSubMix[1],f=this.invSubMix[2],l=this.invSubMix[3],d=0;d<s;d++)if(d<i)e=t[d]=a[d];else{var h=e;d%i?i>6&&d%i===4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=h<<8|h>>>24,h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=n[d/i|0]<<24),t[d]=e=(t[d-i]^h)>>>0}for(var p=0;p<s;p++)d=s-p,h=3&p?t[d]:t[d-4],p<4||d<=4?r[p]=h:r[p]=u[o[h>>>24]]^c[o[h>>>16&255]]^f[o[h>>>8&255]]^l[o[255&h]],r[p]=r[p]>>>0},e.prototype.decrypt=function(e,t,n){for(var r=this.invKeySchedule,i=r[0],a=r[1],s=r[2],o=r[3],u=this.keySize+6,c=this.invSubMix[0],f=this.invSubMix[1],l=this.invSubMix[2],d=this.invSubMix[3],h=this.invSBox,p=new Uint8Array(e.length),m=this.uint8ArrayToUint32Array_(n),v=m[0],y=m[1],g=m[2],_=m[3],b=new DataView(e.buffer);t<e.length;){var T=b.getUint32(t),x=b.getUint32(t+4),k=b.getUint32(t+8),w=b.getUint32(t+12),E=new Uint32Array(4),S=new Uint32Array(4),I=new Uint32Array(4);E[0]=T^i,E[1]=w^a,E[2]=k^s,E[3]=x^o;for(var M=4,A=1;A<u;A++)S[0]=c[E[0]>>>24]^f[E[1]>>>16&255]^l[E[2]>>>8&255]^d[255&E[3]]^r[M++],S[1]=c[E[1]>>>24]^f[E[2]>>>16&255]^l[E[3]>>>8&255]^d[255&E[0]]^r[M++],S[2]=c[E[2]>>>24]^f[E[3]>>>16&255]^l[E[0]>>>8&255]^d[255&E[1]]^r[M++],S[3]=c[E[3]>>>24]^f[E[0]>>>16&255]^l[E[1]>>>8&255]^d[255&E[2]]^r[M++],E[0]=S[0],E[1]=S[1],E[2]=S[2],E[3]=S[3];S[0]=(h[E[0]>>>24]<<24|h[E[1]>>>16&255]<<16|h[E[2]>>>8&255]<<8|h[255&E[3]])^r[M++],S[1]=(h[E[1]>>>24]<<24|h[E[2]>>>16&255]<<16|h[E[3]>>>8&255]<<8|h[255&E[0]])^r[M++],S[2]=(h[E[2]>>>24]<<24|h[E[3]>>>16&255]<<16|h[E[0]>>>8&255]<<8|h[255&E[1]])^r[M++],S[3]=(h[E[3]>>>24]<<24|h[E[0]>>>16&255]<<16|h[E[1]>>>8&255]<<8|h[255&E[2]])^r[M],I[3]=S[0]^v,I[2]=S[3]^y,I[1]=S[2]^g,I[0]=S[1]^_;for(var C=new DataView(I.buffer),A=0;A<16;A++)p[A+t]=C.getUint8(15-A);v=T,y=x,g=k,_=w,t+=16}return this.unpad_(p)},e.prototype.unpad_=function(e){var t=e.length,n=e[t-1];return e.subarray(0,e.length-n)},e}();t["default"]=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(106),s=r(a),o=n(111),u=r(o),c=n(107),f=r(c),l=function(){function e(t,n){i(this,e),this.key=t,this.iv=n,this.fastAesKey=new u["default"](t)}return e.prototype.supportsWebCrypto_=function(){return window.crypto&&"https:"===window.location.protocol},e.prototype.decrypt=function(e){var t=this;if(this.supportsWebCrypto_())return this.fastAesKey.expandKey().then(function(n){var r=new s["default"](t.iv);return r.decrypt(e,n)});var n=new f["default"](this.key);return Promise.resolve(n.decrypt(e,0,this.iv))},e}();t["default"]=l},function(e,t){"use strict";t.__esModule=!0;var n=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(i,i+s)),n=new DataView(a.buffer).getUint32(0),r=8*s,t-=s},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,i=Math.floor(e/8),e-=8*i,t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),a=n>>>32-i;return console.assert(e<=32,"Cannot read more than 32 bits at a time"),r-=i,r>0?n<<=i:t>0&&this.loadWord(),i=e-i,i>0?a<<i|this.readBits(i):a},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!==(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};t["default"]=n},function(e,t){"use strict";t.__esModule=!0;t.SpecialASCII={42:"á",92:"é",94:"í",95:"ó",96:"ú",123:"ç",124:"÷",125:"Ñ",126:"ñ",127:"♫"},t.US={48:"®",49:"°",50:"½",51:"¿",52:"™",53:"¢",54:"£",55:"♪",56:"à",57:" ",58:"è",59:"â",60:"ê",61:"î",62:"ô",63:"û"}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this.key=t}return e.prototype.expandKey=function(){return window.crypto.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}();t["default"]=r},function(e,t){"use strict";t.__esModule=!0;var n,r,i,a,s,o,u,c,f,l,d,h,p,m,v,y,g,_,b,T,x,k,w,E,S,I,M,A,C,L,P,D,O,R,B,U,N;!function(){var e;E={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:[]};for(e in E)E.hasOwnProperty(e)&&(E[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);S=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),M=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),I=new Uint8Array([0,0,0,1]),A=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]),C=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]),L={video:A,audio:C},O=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),B=R,U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=R,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}(),n=function(e){var t,n,r,i=[],a=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)a+=i[t].byteLength;for(n=new Uint8Array(a+8),r=new DataView(n.buffer,n.byteOffset,n.byteLength),r.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<i.length;t++)n.set(i[t],a),a+=i[t].byteLength;return n},r=function(){return n(E.dinf,n(E.dref,O))},i=function(e){return n(E.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,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]));
},a=function(){return n(E.ftyp,S,I,S,M)},y=function(e){return n(E.hdlr,L[e])},s=function(e){return n(E.mdat,e)},v=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(E.mdhd,t)},m=function(e){return n(E.mdia,v(e),y(e.type),u(e))},o=function(e){return n(E.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},u=function(e){return n(E.minf,"video"===e.type?n(E.vmhd,P):n(E.smhd,D),r(),_(e))},c=function(e,t){for(var r=[],i=t.length;i--;)r[i]=x(t[i]);return n.apply(null,[E.moof,o(e)].concat(r))},f=function(e){for(var t=e.length,r=[];t--;)r[t]=h(e[t]);return n.apply(null,[E.moov,d(4294967295)].concat(r).concat(l(e)))},l=function(e){for(var t=e.length,r=[];t--;)r[t]=k(e[t]);return n.apply(null,[E.mvex].concat(r))},d=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,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 n(E.mvhd,t)},g=function(e){var t,r,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)t=i[r].flags,a[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(E.sdtp,a)},_=function(e){return n(E.stbl,b(e),n(E.stts,N),n(E.stsc,B),n(E.stsz,U),n(E.stco,R))},function(){var e,t;b=function(r){return n(E.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===r.type?e(r):t(r))},e=function(e){var t,r=e.sps||[],i=e.pps||[],a=[],s=[];for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));for(t=0;t<i.length;t++)s.push((65280&i[t].byteLength)>>>8),s.push(255&i[t].byteLength),s=s.concat(Array.prototype.slice.call(i[t]));return n(E.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,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,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]),n(E.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length]).concat(a).concat([i.length]).concat(s))),n(E.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},t=function(e){return n(E.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))}}(),T=function(){return n(E.styp,S,I,S)},p=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,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,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(E.tkhd,t)},x=function(e){var t,r,i,a,s;return t=n(E.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),r=n(E.tfdt,new Uint8Array([0,0,0,0,e.baseMediaDecodeTime>>>24&255,e.baseMediaDecodeTime>>>16&255,e.baseMediaDecodeTime>>>8&255,255&e.baseMediaDecodeTime])),s=88,"audio"===e.type?(i=w(e,s),n(E.traf,t,r,i)):(a=g(e),i=w(e,a.length+s),n(E.traf,t,r,i,a))},h=function(e){return e.duration=e.duration||4294967295,n(E.trak,p(e),m(e))},k=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(E.trex,t)},function(){var e,t,r;r=function(e,t){var n=0,r=0,i=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|r|i|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var i,a,s,o;for(a=e.samples||[],t+=20+16*a.length,i=r(a,t),o=0;o<a.length;o++)s=a[o],i=i.concat([(4278190080&s.duration)>>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size,s.flags.isLeading<<2|s.flags.dependsOn,s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,61440&s.flags.degradationPriority,15&s.flags.degradationPriority,(4278190080&s.compositionTimeOffset)>>>24,(16711680&s.compositionTimeOffset)>>>16,(65280&s.compositionTimeOffset)>>>8,255&s.compositionTimeOffset]);return n(E.trun,new Uint8Array(i))},e=function(e,t){var i,a,s,o;for(a=e.samples||[],t+=20+8*a.length,i=r(a,t),o=0;o<a.length;o++)s=a[o],i=i.concat([(4278190080&s.duration)>>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size]);return n(E.trun,new Uint8Array(i))},w=function(n,r){return"audio"===n.type?e(n,r):t(n,r)}}(),t["default"]={ftyp:a,mdat:s,moof:c,moov:f,initSegment:function(e){var t,n=a(),r=f(e);return t=new Uint8Array(n.byteLength+r.byteLength),t.set(n),t.set(r,n.byteLength),t}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return d["default"].mark(function n(){var r,i;return d["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=void 0,i=new T;case 2:return n.t0=p.CLOSED,n.next=5,p.take(e);case 5:if(n.t1=r=n.sent,n.t0===n.t1){n.next=10;break}return n.delegateYield(o(t,r,i),"t2",8);case 8:n.next=2;break;case 10:t.close();case 11:case"end":return n.stop()}},n,this)})}function o(e,t,n){var r,i,a,s,o,l;return d["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(r=new x,r.payload=t.payload,i=r.payload.length,a=new _.CaptionsParser,!(r.position<i)){d.next=14;break}for(r.position++;r.position<i-10;)s=c(r),o=c(r),s===g["default"].SEI_PAYLOAD_ITU_T_35&&f(r)&&(o-=8,r.position+=8,o-=a.getCCDataPackets(r,n,t.pts)),u(r,o);a.parseCaptionsData(n,t.dts);case 8:if(!n.captions.length){d.next=14;break}return l=n.captions.shift(),d.next=12,p.put(e,{payload:l});case 12:d.next=8;break;case 14:case"end":return d.stop()}},b[0],this)}function u(e,t){for(var n=e.payload,r=e.payload.length,i=e.position,a=0;a<t;a++)i+3<r&&0===n[i]&&0===n[i+1]&&3===n[i+2]&&(i+=2,a++),i<r&&i++;e.position=i}function c(e){for(var t=void 0,n=0,r=e.payload.length;e.position<r&&(t=e.payload[e.position++],n+=t,255===t););return n}function f(e){var t=e.position,n=e.payload[t],r=v.readUint16(e.payload,t+1),i=v.readUint32(e.payload,t+3),a=e.payload[t+7];return n===g["default"].ITU_T_T35_COUNTRY_CODE&&r===g["default"].ITU_T_T35_PROVIDER_CODE&&i===g["default"].USER_IDENTIFIER_ATSC1_DATA&&a===g["default"].USER_DATA_TYPE_CC_DATA}t.__esModule=!0;var l=n(7),d=i(l);t["default"]=s;var h=n(6),p=r(h),m=n(16),v=r(m),y=n(58),g=i(y),_=n(114),b=[o].map(d["default"].mark),T=function k(){a(this,k),this.captions=[],this.sorted=[],this.buffer=["",""],this.bufferIndex=0,this.captionStart=NaN,this.captionEnd=NaN,this.lastCommand=0,this.mode=0,this.line=[NaN,NaN],this.position=[NaN,NaN],this.backgroundColor="black",this.textColor="white"},x=function w(){a(this,w),this.position=0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.CaptionsParser=t.CCPacket=t.CaptionStyle=t.CaptionPosition=t.Caption=void 0;var s=n(110),o=i(s),u=n(58),c=r(u),f=t.Caption=function N(){a(this,N),this.type="caption"},l=t.CaptionPosition=function F(){a(this,F)},d=t.CaptionStyle=function q(){a(this,q),this.textColor="white",this.backgroundColor="black"},h=t.CCPacket=function X(){a(this,X)},p=5152,m=5153,v=5154,y=5155,g=5156,_=5157,b=5158,T=5159,x=5160,k=5161,w=5162,E=5163,S=5164,I=5165,M=5166,A=5167,C=5921,L=5922,P=5923,D=["white","green","blue","cyan","red","yellow","magenta","italics",0,4,8,12,16,20,24,28],O=0,R=1,B=[11,1,3,12,14,5,7,9],U=["white","green","blue","cyan","red","yellow","magenta","black"];t.CaptionsParser=function(){function e(){a(this,e)}return e.prototype.parseCaptionsData=function(e,t){for(var n=e.sorted,r=e.sorted.length,i=0;i<r;i++){if(!(n[i].pts<=t))return void n.splice(0,i);this.processCCPacket_(e,n[i])}n.length=0},e.prototype.processCCPacket_=function(e,t){e.lastCommandText="";var n=t.ccByte1,r=t.ccByte2,i=(t.ccType,t.ccValid,"");32&n||64&n?(i=this.getCharacter_(n)+this.getCharacter_(r),this.handleCharacters_(e,t,i)):(17===n||25===n)&&r>=48&&r<=63&&(i=o.US[r],this.handleCharacters_(e,t,i)),(17===n||25===n)&&r>=32&&r<=47&&this.handleMidRowChanges_(e,t),(20===n||28===n||21===n||29===r)&&r>=32&&r<=47&&this.handleCommand_(e,t),(23===n||31===n)&&r>=33&&r<=35&&this.handleCommand_(e,t),n>=16&&n<=23&&r>=64&&r<=127&&this.handlePAC_(e,t)},e.prototype.getCharacter_=function(e){return o.SpecialASCII[e]?o.SpecialASCII[e]:0===e?"":String.fromCharCode(e)},e.prototype.handleCharacters_=function(e,t,n){e.mode===k?(e.buffer[1-e.bufferIndex]+=n,e.captionEnd=t.pts,this.finishCaption_(e,1-e.bufferIndex,t),e.captionStart=t.pts):e.buffer[e.bufferIndex]+=n},e.prototype.handleMidRowChanges_=function(e,t){var n=t.ccByte1,r=t.ccByte2,i=!!(1&n);if(i){var a=(14&r)>>1;U[a]}else{var s=(14&r)>>1;U[s]}},e.prototype.handleCommand_=function(e,t){var n=t.ccByte1,r=t.ccByte2;n=23&n;var i=n<<8|r;if(i===e.lastCommand)return void(e.lastCommand=0);switch(e.lastCommand=i,i){case p:e.mode=i;break;case m:break;case v:break;case y:break;case g:break;case _:case b:case T:e.mode=i,this.rollup_(e,t),e.captionEnd=t.pts,this.finishCaption_(e,e.bufferIndex,t),e.captionStart=t.pts;break;case x:e.mode=i;break;case k:e.mode=i,e.captionStart=t.pts;break;case w:e.nonCaptionText="";break;case E:break;case S:e.captionEnd=t.pts,this.finishCaption_(e,1-e.bufferIndex,t);break;case I:e.buffer[e.bufferIndex]+="\n",this.rollup_(e,t);break;case M:e.buffer[e.bufferIndex]="";break;case A:e.mode=p,!isNaN(e.captionStart)&&(isNaN(e.captionEnd)||e.captionEnd<=e.captionStart)&&(e.captionEnd=t.pts,this.finishCaption_(e,1-e.bufferIndex,t)),e.bufferIndex=1-e.bufferIndex,e.captionStart=t.pts;break;case C:e.position[e.bufferIndex]+=2.5;break;case L:e.position[e.bufferIndex]+=5;break;case P:e.position[e.bufferIndex]+=7.5}},e.prototype.finishCaption_=function(e,t,n){if(e.captionStart>-1){var r=e.buffer[t];if(e.lastCommand===S&&(e.buffer[t]=""),!r)return;var i=new f;i.text=r.replace(/\n+/g,"\n").replace(/^\n+/,"").replace(/\n+$/,""),i.start=e.captionStart,i.end=e.captionEnd;var a=new d;a.backgroundColor=e.backgroundColor||a.backgroundColor,a.backgroundTransparency=e.backgroundTransparency||a.backgroundTransparency,a.textColor=e.textColor||a.textColor,a.textStyle=e.textStyle||a.textStyle,i.style=a;var s=new l;s.position=e.position[t],s.line=e.line[t],i.positioning=s,e.captions.push(i),e.captionEnd=NaN}},e.prototype.rollup_=function(e,t){var n=1;switch(e.mode){case _:n=2;break;case b:n=3;break;case T:n=4}var r=e.buffer[e.bufferIndex];r=r.replace(/\n+/g,"\n");var i=r.split("\n");e.buffer[e.bufferIndex]=i.slice(Math.max(0,i.length-n)).join("\n")},e.prototype.handlePAC_=function(e,t){var n=(30&t.ccByte2)>>1,r=(16&t.ccByte2)>>4,i=(!!(1&t.ccByte2),7&t.ccByte1),a=((32&t.ccByte2)>>5,e.mode===k?1-e.bufferIndex:e.bufferIndex);switch(r){case R:e.position[a]=10+10*D[n]/4;break;case O:}e.line[a]=B[i],16===t.ccByte1&&t.ccByte2>95||(e.buffer[a]+="\n")},e.prototype.getCCDataPackets=function(e,t,n){var r=0,i=e.payload,a=i[e.position++];e.position++,r+=2;var s=31&a;return this.getPackets_(e,t,s,n),r+=3*s},e.prototype.getPackets_=function(e,t,n,r){for(var i=e.payload,a=e.position,s=(e.payload.length,0);s<n;s++){var o=i[a++],u=127&i[a++],f=127&i[a++],l=0!==(4&o),d=3&o;if(d===c["default"].NTSC_CC_FIELD_1){if(0===u&&0===f)continue;var p=!1,m=t.sorted,v=new h;v.pts=r,v.ccByte1=u,v.ccByte2=f,v.ccType=d,v.ccValid=l;for(var y=m.length-1;y>=0;y--)if(m[y].pts<=r){m.splice(y+1,0,v),p=!0;break}p||m.splice(0,0,v)}}e.position=a},e}()},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r,i){function a(e,a){var s=c.combineUint8Arrays(e,a);return new Promise(function(e){i.then(function(i){var a=new h["default"](i,r);a.decrypt(s).then(function(n){var r=new Uint8Array(n);l.putAsync(t,r,e)})["catch"](function(r){l.putAsync(t,{type:"error",file:n,message:"Error decrypting AES stream"}),t.close(),e()})})})}var s=[],u=0;return o["default"].mark(function f(){var n;return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=l.CLOSED,r.next=3,l.take(e);case 3:if(r.t1=n=r.sent,r.t0===r.t1){r.next=9;break}u+=n.length,s.push(new Uint8Array(n)),r.next=0;break;case 9:u>0?a(s,u).then(function(){return t.close()}):t.close();case 10:case"end":return r.stop()}},f,this)})}t.__esModule=!0;var s=n(7),o=i(s);t["default"]=a;var u=n(16),c=r(u),f=n(6),l=r(f),d=n(108),h=i(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=new u["default"](e),n=t.readUnsignedByte(),r=t.readBits(6);t.skipBits(2);var i=t.readUnsignedByte();if(t.skipUnsignedExpGolomb(),100===n||110===n||122===n||244===n||44===n||83===n||86===n||118===n||128===n||138===n||139===n||134===n){var a=t.readUnsignedExpGolomb();if(3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()){var o=3!==a?8:12;for(l=0;l<o;l++)t.readBoolean()&&(l<6?s(16,t):s(64,t))}}t.skipUnsignedExpGolomb();var c=t.readUnsignedExpGolomb();if(0===c)t.readUnsignedExpGolomb();else if(1===c){t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb();for(var f=t.readUnsignedExpGolomb(),l=0;l<f;l++)t.skipExpGolomb()}t.skipUnsignedExpGolomb(),t.skipBits(1);var d=t.readUnsignedExpGolomb(),h=t.readUnsignedExpGolomb(),p=t.readBits(1);0===p&&t.skipBits(1);var m=0,v=0,y=0,g=0;return t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb()),{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(d+1)-2*m-2*v,height:(2-p)*(h+1)*16-2*y-2*g}}function a(e){for(var t,n,r=e.byteLength,i=[],a=1;a<r-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===i[0]&&(s++,i.shift()),n[a]=e[s];return n}function s(e,t){var n,r,i=8,a=8;for(n=0;n<e;n++)0!==a&&(r=t.readExpGolomb(),a=(i+r+256)%256),i=0===a?i:a}t.__esModule=!0;var o=n(109),u=r(o);t["default"]={parseSPS:i,discardEmulationPreventionBytes:a}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return _["default"].mark(function n(){var r,i,a,s,o,u,c,f,h;return _["default"].wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=new C,i=[],s=0,o=0,u=0;case 5:return n.t0=I.CLOSED,n.next=8,I.take(e);case 8:if(n.t1=c=n.sent,n.t0===n.t1){n.next=34;break}if(a){n.next=14;break}s=c.dts,n.next=24;break;case 14:if(c.sourceFile===a){n.next=23;break}return f=c.dts-s,h=c.dts-o,(h<0||h>18e4)&&(f=o-s+u),n.next=20,I.put(t,{type:"duration-update",sourceFile:a,duration:f/9e4,start:s});case 20:s=c.dts,n.next=24;break;case 23:u=c.dts-o;case 24:if(o=c.dts,a=c.sourceFile,!(r.sps&&r.pps&&i.length>0&&c.flags.hasKeyframe)){n.next=30;break}return n.delegateYield(d(t,r,i),"t2",28);case 28:i=[],m(r);case 30:l(r,c),i.push(c),n.next=5;break;case 34:if(!i.length||r.sps&&r.pps||console.warn("TS File missing Keyframe info"),!i.length){n.next=38;break}return n.next=38,I.put(t,{type:"duration-update",sourceFile:a,duration:(o-s+u)/9e4,start:s});case 38:return n.delegateYield(d(t,r,i),"t3",39);case 39:t.close();case 40:case"end":return n.stop()}},n,this)})}function o(e){return 31&e.payload[0]}function u(e){return 9===o(e)}function c(e){return 5===o(e)}function f(e,t){A.isNumber(t.pts)&&(e.minSegmentPts=Math.min(t.pts,e.minSegmentPts),e.maxSegmentPts=Math.max(t.pts,e.maxSegmentPts)),A.isNumber(t.dts)&&(e.minSegmentDts=Math.min(t.dts,e.minSegmentDts),e.maxSegmentDts=Math.max(t.dts,e.maxSegmentDts))}function l(e,t){var n=t.nalus,r=n.length;e.naluCount+=r;for(var i=0;i<r;++i){var a=n[i],s=a.payload,u=o(a);switch(e.nalUnitsByteLength+=s.byteLength,u){case 7:e.sps=s,e.spsInfoRBSP=E["default"].discardEmulationPreventionBytes(s.subarray(1)),e.spsInfo=E["default"].parseSPS(e.spsInfoRBSP);break;case 8:e.pps=s}}}function d(e,t,n){var r,i,a,s,o,u,c,l,d;return _["default"].wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!(t.naluCount<=0)){h.next=2;break}return h.abrupt("return");case 2:r=t.nalUnitsByteLength+4*t.naluCount,i=new Uint8Array(r),a=0,s=[],o=0,u=0;case 8:if(!(u<n.length)){h.next=21;break}if(c=n[u],f(t,c),1!==n.length){h.next=16;break}return h.abrupt("continue",18);case 16:l=u===n.length-1?c.dts-n[u-1].dts:n[u+1].dts-c.dts;case 17:a=v(t,c,s,l,i,a,o);case 18:u++,h.next=8;break;case 21:if(t.sample&&(s.push(t.sample),t.sample=null),!(s.length>0)){h.next=26;break}return d=c.sourceFile,h.delegateYield(y(d,t,s,i,e,l),"t0",25);case 25:m(t);case 26:t.naluCount=0,t.nalUnitsByteLength=0;case 28:case"end":return h.stop()}},M[0],this)}function h(e){return{type:"video",codec:"avc",pps:[e.pps],sps:[e.sps],height:e.spsInfo.height,width:e.spsInfo.width,profileIdc:e.spsInfo.profileIdc,levelIdc:e.spsInfo.levelIdc,profileCompatibility:e.spsInfo.profileCompatibility}}function p(e,t,n){t.baseMediaDecodeTime=e.baseMediaDecodeTime,t.minSegmentPts=e.minSegmentPts,t.maxSegmentPts=e.maxSegmentPts,t.minSegmentDts=e.minSegmentDts,t.maxSegmentDts=e.maxSegmentDts,t.samples=n}function m(e){e.minSegmentPts=Number.MAX_VALUE,e.maxSegmentPts=0,e.minSegmentDts=Number.MAX_VALUE,e.maxSegmentDts=0}function v(e,t,n,r,i,a,s){for(var o=t.nalus,f=e.sample,l=0;l<o.length;++l){var d=o[l];u(d)&&(f&&n.push(f),f={size:0,duration:r,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0},dataOffset:a+s,compositionTimeOffset:d.pts-d.dts}),f&&(c(d)&&(f.flags.dependsOn=2),f.size+=d.payload.byteLength+4,k.writeUint32(i,a,d.payload.byteLength),a+=4,i.set(d.payload,a),a+=d.payload.byteLength)}return e.sample=f,a}function y(e,t,n,r,i,a){var s,o,u,c,f,l,d,m,v;return _["default"].wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=h(t),p(t,s,n),o=A.pick(s,["id","duration","samplerate","type","width","height","profileIdc","profileCompatability","levelIdc","sps","pps"]),u=T["default"].initSegment([o]),c={type:"init",start:t.minSegmentPts,length:0,payload:u,sourceFile:e},y.next=8,I.put(i,c);case 8:return f=t.maxSegmentDts-t.minSegmentDts+a,l=T["default"].moof(t.sequenceNumber,[s]),d=T["default"].mdat(r),m=k.concatUint8Array(l,d),v={type:"mediaSegment",start:t.minSegmentPts,end:t.maxSegmentPts,length:f/9e4,payload:m,sourceFile:e},y.next=15,I.put(i,v);case 15:t.baseMediaDecodeTime+=f,t.sequenceNumber++;case 17:case"end":return y.stop()}},M[1],this)}t.__esModule=!0;var g=n(7),_=i(g);t["default"]=s;var b=n(112),T=i(b),x=n(16),k=r(x),w=n(116),E=i(w),S=n(6),I=r(S),M=[d,y].map(_["default"].mark),A=n(1),C=function L(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0];a(this,L),this.nalUnitsByteLength=0,this.naluCount=0,this.sequenceNumber=1,this.minSegmentPts=Number.MAX_VALUE,this.maxSegmentPts=0,this.minSegmentDts=Number.MAX_VALUE,this.maxSegmentDts=0,this.baseMediaDecodeTime=e}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r,i,a,s){var o,c,l,h;return u["default"].wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=d.combineUint8Arrays(n,r),0===o.length){u.next=10;break}return c=(0,g["default"])(o),l=c.position,h=o.subarray(l),!e.type&&p["default"].probeMP3(h)?(e.type=v["default"].ISO_IEC_11172_3_AUDIO,i([{type:"audio",codec:"mp3"}])):!e.type&&p["default"].probeAAC(h)?(e.type=v["default"].ISO_IEC_13818_1_RESERVED,i([{type:"audio",codec:"aac"}])):e.type||(f.put(a,{type:"error",message:"ID3 Data found, but audio type could not be determined"}),a.close(),s.close()),u.next=8,f.put(s,{sourceFile:t,cues:c.cues});case 8:return u.next=10,f.put(a,{sourceFile:t,type:e.type,payload:h});case 10:case"end":return u.stop()}},_[0],this)}function s(e,t,n,r){return u["default"].mark(function i(){var s,o,c,l,d;return u["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:s=[],o=0,c=void 0,l=null,d={};case 5:return i.t0=f.CLOSED,i.next=8,f.take(t);case 8:if(i.t1=c=i.sent,i.t0===i.t1){i.next=25;break}if(!l||l===c.sourceFile){i.next=16;break}return i.delegateYield(a(d,l,s,o,e,n,r),"t2",12);case 12:o=0,s=[],i.next=20;break;case 16:if(!(o>2e4)){i.next=20;break}return i.delegateYield(a(d,l,s,o,e,n,r),"t3",18);case 18:o=0,s=[];case 20:l=c.sourceFile,s.push(c.payload),o+=c.payload.length,i.next=5;break;case 25:return i.delegateYield(a(d,l,s,o,e,n,r),"t4",26);case 26:n.close(),r.close();case 28:case"end":return i.stop()}},i,this)})}t.__esModule=!0;var o=n(7),u=i(o);t["default"]=s;var c=n(6),f=r(c),l=n(16),d=r(l),h=n(59),p=i(h),m=n(25),v=i(m),y=n(56),g=i(y),_=[a].map(u["default"].mark)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){return o["default"].mark(function r(){var i,a,s,u,f,h;return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=void 0,a=d.operations.merge([e,t]);case 2:return r.t0=d.CLOSED,r.next=5,d.take(a);case 5:if(r.t1=i=r.sent,r.t0===r.t1){r.next=19;break}if("error"!==i.type){r.next=11;break}return r.next=10,d.put(n,i);case 10:return r.abrupt("continue",2);case 11:if(s=void 0,u=void 0,i.payload?(f=i,h=new Uint8Array(f.payload),s=(0,l["default"])(h).cues,u=f.dts):s=i.cues,0===c.size(s)){r.next=17;break}return r.next=17,d.put(n,{type:"metadata",pts:u,sourceFile:i.sourceFile,payload:s});case 17:r.next=2;break;case 19:n.close();case 20:case"end":return r.stop()}},r,this)})}t.__esModule=!0;var s=n(7),o=i(s);t["default"]=a;var u=n(204),c=r(u),f=n(56),l=i(f),d=n(6)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r,i){function a(e,t,n){var r,i,a,s,u,c;return o["default"].wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r=Math.floor(t.length/d["default"].TS_PACKET_SIZE),i=0;case 2:if(!(i<r)){o.next=22;break}if(a=i*d["default"].TS_PACKET_SIZE,s=(i+1)*d["default"].TS_PACKET_SIZE,u=t.subarray(a,s),u[0]!==d["default"].TS_SYNCBYTE){o.next=18;break}return o.prev=7,c=(0,h.TsPacket)(u),c.sourceFile=e,o.next=12,y.put(n,c);case 12:o.next=16;break;case 14:o.prev=14,o.t0=o["catch"](7);case 16:o.next=19;break;case 18:console.warn("TS Packet missing SYNC_BYTE");case 19:i++,o.next=2;break;case 22:case"end":return o.stop()}},p[0],this,[[7,14]])}function s(e,t,n){return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,y.put(n,{sourceFile:e,payload:t});case 2:case"end":return r.stop()}},p[1],this)}function c(e,t,n){return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,y.put(n,{sourceFile:e,type:f["default"].ISO_IEC_11172_3_AUDIO,payload:t});case 2:case"end":return r.stop()}},p[2],this)}function l(e,t,n){return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,y.put(n,{sourceFile:e,type:f["default"].ISO_IEC_13818_1_RESERVED,payload:t});case 2:case"end":return r.stop()}},p[3],this)}var p=[a,s,c,l].map(o["default"].mark),v=[];return o["default"].mark(function g(){var f,h,p,_;return o["default"].wrap(function(o){for(;;)switch(o.prev=o.next){case 0:h=0;case 1:return o.t0=y.CLOSED,o.next=4,y.take(t);case 4:if(o.t1=f=o.sent,o.t0===o.t1){o.next=42;break}if("endOfFile"!==f.type){o.next=8;break}return o.abrupt("continue",1);case 8:if("error"!==f.payload.type){o.next=12;break}return o.next=11,y.put(r,f.payload);case 11:return o.abrupt("continue",1);case 12:if(h+=f.payload.length||f.payload.byteLength,v.push(new Uint8Array(f.payload)),_=m.combineUint8Arrays(v,h),p!==u.MPEGTS&&!d["default"].probeMPEGTS(_)){o.next=21;break}return p=u.MPEGTS,o.delegateYield(a(f.sourceFile,_,n),"t2",18);case 18:h=_.length%d["default"].TS_PACKET_SIZE,o.next=39;break;case 21:if(p!==u.ID3&&!d["default"].probeID3(_)){o.next=27;break}return p=u.ID3,o.delegateYield(s(f.sourceFile,_,i),"t3",24);case 24:h=0,o.next=39;break;case 27:if(p!==u.MP3&&!d["default"].probeMP3(_)){o.next=34;break}return e([{type:"audio",codec:"mp3"}]),p=u.MP3,o.delegateYield(c(f.sourceFile,_,r),"t4",31);case 31:h=0,o.next=39;break;case 34:if(p!==u.AAC&&!d["default"].probeAAC(_)){o.next=39;break}return e([{type:"audio",codec:"aac"}]),p=u.AAC,o.delegateYield(l(f.sourceFile,_,r),"t5",38);case 38:h=0;case 39:v=[_.subarray(_.length-h)],o.next=1;break;case 42:i.close(),n.close();case 45:case"end":return o.stop()}},g,this)})}t.__esModule=!0;var s=n(7),o=i(s);t["default"]=a;var u,c=n(25),f=i(c),l=n(59),d=i(l),h=n(125),p=n(16),m=r(p),v=n(6),y=r(v);!function(e){e[e.MPEGTS=0]="MPEGTS",e[e.AAC=1]="AAC",e[e.MP3=2]="MP3",e[e.ID3=3]="ID3"}(u||(u={}))},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r){return l=r,f["default"].mark(function i(){var r,a,s,c,l,d,p,v,g,_;return f["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:r={state:"zeroes-0",startCodePrefix:-1,maybeEndOfNalu:-1,naluBuffer:[],chunkFile:"",flags:{},currentPes:null,queueToSend:[],seiQueueToSend:[]},c=!0,l=0;case 3:return i.t0=m.CLOSED,i.next=6,m.take(e);case 6:if(i.t1=a=i.sent,i.t0===i.t1){i.next=44;break}if(r.currentPes=a,!c){i.next=15;break}c=!1,r.chunkFile=a.sourceFile,s=a.payload,i.next=27;break;case 15:if(1!==a.data_alignment_indicator){i.next=26;break}if(!(r.startCodePrefix>-1)){i.next=19;break}return u(r,s.subarray(r.startCodePrefix)),i.delegateYield(o(t,r),"t2",19);case 19:l=0,s=a.payload,r.state="zeroes-0",r.startCodePrefix=-1,r.chunkFile=a.sourceFile,i.next=27;break;case 26:s=h.concatUint8Array(s,a.payload);case 27:for(;l<s.byteLength;l++)d=s[l],p=y[r.state][d]||y[r.state]["default"]||{},p.newstate&&(r.state=p.newstate),p.method&&p.method.call(r,l,s);v=r.startCodePrefix-(s.byteLength-a.payload.byteLength),v>0&&(s=a.payload,l=s.byteLength,r.maybeEndOfNalu-=r.startCodePrefix-v,r.startCodePrefix=v);case 30:if(!r.queueToSend.length){i.next=36;break}return g=r.queueToSend.shift(),i.next=34,m.put(t,g);case 34:i.next=30;break;case 36:if(!r.seiQueueToSend.length){i.next=42;break}return _=r.seiQueueToSend.shift(),i.next=40,m.put(n,_);case 40:i.next=36;break;case 42:i.next=3;break;case 44:if(n.close(),c){i.next=48;break}return u(r,s.subarray(r.startCodePrefix)),i.delegateYield(o(t,r),"t3",48);case 48:t.close();case 49:case"end":return i.stop()}},i,this)})}function s(e){var t={sourceFile:e.chunkFile,pts:e.naluBuffer[0].pts,dts:e.naluBuffer[0].dts,flags:e.flags,nalus:e.naluBuffer};return e.flags={},e.naluBuffer=[],e.chunkFile=e.currentPes.sourceFile,t}function o(e,t){var n;return f["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=s(t),r.next=3,m.put(e,n);case 3:case"end":return r.stop()}},v[0],this)}function u(e,t){if(t.length){var n=128&t[0];if(!n){var r=31&t[0],i={pts:e.currentPes.pts,dts:e.currentPes.dts,payload:t};switch(r){case 5:e.flags.hasKeyframe=!0;break;case 6:e.seiQueueToSend.push(i);break;case 7:e.flags.hasSPS=!0;break;case 8:e.flags.hasPPS=!0}var a=9===r;if(a&&e.naluBuffer.length){var o=s(e);e.queueToSend.push(o)}e.naluBuffer.push(i)}}}t.__esModule=!0;var c=n(7),f=i(c);t["default"]=a;var l,d=n(16),h=r(d),p=n(6),m=r(p),v=[o].map(f["default"].mark),y={"zeroes-0":{0:{newstate:"zeroes-1"}},"zeroes-1":{0:{newstate:"zeroes-2"},"default":{newstate:"zeroes-0"}},"zeroes-2":{0:{newstate:"zeroes-3plus",method:function(e){this.maybeEndOfNalu=e}},1:{newstate:"sync",method:function(e,t){if(this.startCodePrefix>=0){var n=t.subarray(this.startCodePrefix,e-2);u(this,n)}}},"default":{newstate:"zeroes-0"}},"zeroes-3plus":{0:{newstate:"zeroes-3plus"},1:{newstate:"sync",method:function(e,t){if(this.startCodePrefix>=0){var n=t.subarray(this.startCodePrefix,this.maybeEndOfNalu-2);u(this,n)}}},"default":{newstate:"zeroes-0"}},sync:{0:{newstate:"zeroes-1",method:function(e){this.startCodePrefix=e}},"default":{newstate:"zeroes-0",method:function(e){this.startCodePrefix=e}}}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){var r={},i=[],a=-1,u=void 0;return d["default"].mark(function l(){var h,m,v,y,_,T=this;return d["default"].wrap(function(l){for(;;)switch(l.prev=l.next){case 0:h=void 0;case 1:return l.next=3,p.take(t);case 3:if(l.t0=h=l.sent,l.t1=p.CLOSED,l.t0===l.t1){l.next=22;break}if(m=h.header.pid,0!==m){l.next=11;break}a=s(h),l.next=20;break;case 11:if(m!==a){l.next=15;break}return l.delegateYield(d["default"].mark(function x(){var t;return d["default"].wrap(function(a){for(;;)switch(a.prev=a.next){case 0:u=o(h),t=[],b.each(u,function(e){e===g["default"].ISO_IEC_13818_1_RESERVED?t.push({type:"audio",codec:"aac"}):e===g["default"].ISO_IEC_11172_3_AUDIO||e===g["default"].ISO_IEC_13818_3_AUDIO?t.push({type:"audio",codec:"mp3"}):e===g["default"].ITU_T_H264&&t.push({type:"video",codec:"default"})}),e(t);case 4:if(!i.length){a.next=9;break}return h=i.shift(),a.delegateYield(c(n,u,r,h),"t0",7);case 7:a.next=4;break;case 9:case"end":return a.stop()}},x,T)})(),"t2",13);case 13:l.next=20;break;case 15:if(!u){l.next=19;break}return l.delegateYield(c(n,u,r,h),"t3",17);case 17:l.next=20;break;case 19:i.push(h);case 20:l.next=1;break;case 22:v=b.keys(u),y=0;case 24:if(!(y<v.length)){l.next=30;break}return _=parseInt(v[y]),l.delegateYield(f(n,u,r,_),"t4",27);case 27:y++,l.next=24;break;case 30:n.close();case 31:case"end":return l.stop()}},l,this)})}function s(e){u(e);var t=0;if(t|=(15&e.payload[1])<<4,t|=(240&e.payload[2])>>4,t>13)throw new Error("Multiple PMT/NIT entries not supported");var n=0;return n|=(31&e.payload[10])<<8|e.payload[11]}function o(e){var t={};u(e);for(var n=e.payload,r=(15&n[1])<<8|n[2],i=r+3,a=(15&n[10])<<8|n[11],s=12+a;s<i;){var o=(31&n[s+1])<<8|n[s+2];t[o]=n[s],s+=((15&n[s+3])<<8|n[s+4])+5}return t}function u(e){var t=1;t+=e.payload[0],e.payload=e.payload.subarray(t)}function c(e,t,n,r){var i;return d["default"].wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(i=r.header.pid,t[i]){a.next=4;break}return a.abrupt("return");case 4:if(n[i]||(n[i]=[]),
!r.header.payloadStart){a.next=8;break}return a.delegateYield(f(e,t,n,i),"t0",7);case 7:n[i]=[];case 8:n[i].push(r);case 9:case"end":return a.stop()}},_[0],this)}function f(e,t,n,r){var i,a,s,o,u,c,f,l;return d["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(i=n[r],b.isArray(i)&&i.length){d.next=3;break}return d.abrupt("return");case 3:for(a=t[r],s=b.reduce(i,function(e,t){return t.header.containsPayload?e+t.payload.length:e},0),o=new Uint8Array(s),u=i[0].sourceFile,c=0;i.length;)f=i.shift(),f.header.containsPayload&&(o.set(f.payload,c),c+=f.payload.length);if(l=v["default"].parsePES(a,o)){d.next=12;break}return d.abrupt("return");case 12:return l.sourceFile=u,console.assert(e.closed===!1,"PES Packet Channel should not be closed"),d.next=16,p.put(e,l);case 16:case"end":return d.stop()}},_[1],this)}t.__esModule=!0;var l=n(7),d=i(l);t["default"]=a;var h=n(6),p=r(h),m=n(123),v=i(m),y=n(25),g=i(y),_=[c,f].map(d["default"].mark),b=n(1)},function(e,t,n){"use strict";t.__esModule=!0;var r={PRIVATE_STREAM_1:189,PADDING_STREAM:190,PRIVATE_STREAM_2:191},i={readTS:function(e){var t=(14&e[0])*(1<<29),n=(255&e[1])<<22|(254&e[2])<<14|(255&e[3])<<7|(255&e[4])>>>1;return t+n},parsePES:function(e,t){var n=t[0]<<16|t[1]<<8|t[2];if(1===n){var i=t[3];t[4]<<8|t[5];if(i!==r.PADDING_STREAM&&i!==r.PRIVATE_STREAM_2){var a,s,o=t[7]>>>6,u=(4&t[6])>>>2,c=t[8]+9;2===o?(a=this.readTS(t.subarray(9)),s=a):3===o&&(a=this.readTS(t.subarray(9)),s=this.readTS(t.subarray(14)));var f={id:i,type:e,pts:a,dts:s,data_alignment_indicator:u,payload:t.subarray(c)};return f}}}};t["default"]=i},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n,r,i){var a=!1,s=!1,u=[];return o["default"].mark(function f(){var d,h;return o["default"].wrap(function(o){for(;;)switch(o.prev=o.next){case 0:d=void 0;case 1:return o.t0=l.CLOSED,o.next=4,l.take(t);case 4:if(o.t1=d=o.sent,o.t0===o.t1){o.next=42;break}if(h=d.type,"error"!==h){o.next=11;break}return o.next=10,l.put(n,d);case 10:return o.abrupt("break",42);case 11:if(h!==c["default"].ISO_IEC_13818_1_RESERVED){o.next=17;break}return a||(a=!0,u.push({type:"audio",codec:"aac"})),o.next=15,l.put(n,d);case 15:o.next=39;break;case 17:if(h!==c["default"].ISO_IEC_11172_3_AUDIO&&h!==c["default"].ISO_IEC_13818_3_AUDIO){o.next=23;break}return a||(a=!0,u.push({type:"audio",codec:"mp3"})),o.next=21,l.put(n,d);case 21:o.next=39;break;case 23:if(h!==c["default"].ITU_T_H264){o.next=29;break}return s||(s=!0,u.push({type:"video",codec:"default"})),o.next=27,l.put(r,d);case 27:o.next=39;break;case 29:if(h!==c["default"].METADATA_IN_PES){o.next=34;break}return o.next=32,l.put(i,d);case 32:o.next=39;break;case 34:if("error"!==h){o.next=39;break}return o.next=37,l.put(i,d);case 37:o.next=39;break;case 39:2===u.length&&e(u),o.next=1;break;case 42:e(u),r.close(),i.close(),n.close();case 46:case"end":return o.stop()}},f,this)})}t.__esModule=!0;var s=n(7),o=i(s);t.PesPacketSplitter=a;var u=n(25),c=i(u),f=n(6),l=r(f)},function(e,t){"use strict";function n(e){var t={syncByte:e[0],payloadStart:0!==(64&e[1]),priority:0!==(32&e[1]),pid:(31&e[1])<<8|e[2],adaptationField:0!==(32&e[3]),containsPayload:0!==(16&e[3]),continuityCounter:15&e[3]},n=4;if(t.adaptationField){n+=1;var r=e[4];n+=r}var i;i=t.containsPayload?e.subarray(n):null;var a={header:t,payload:i};return a}t.__esModule=!0,t.TsPacket=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(t,n){!function(t){"use strict";function r(e,t,n,r){var i=Object.create((t||a).prototype),s=new p(r||[]);return i._invoke=l(e,n,s),i}function i(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function s(){}function o(){}function u(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){this.arg=e}function f(e){function t(n,r,a,s){var o=i(e[n],e,r);if("throw"!==o.type){var u=o.arg,f=u.value;return f instanceof c?Promise.resolve(f.arg).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):Promise.resolve(f).then(function(e){u.value=e,a(u)},s)}s(o.arg)}function r(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return a=a?a.then(r,r):r()}"object"==typeof n&&n.domain&&(t=n.domain.bind(t));var a;this._invoke=r}function l(e,t,n){var r=w;return function(a,s){if(r===S)throw new Error("Generator is already running");if(r===I){if("throw"===a)throw s;return v()}for(;;){var o=n.delegate;if(o){if("return"===a||"throw"===a&&o.iterator[a]===y){n.delegate=null;var u=o.iterator["return"];if(u){var c=i(u,o.iterator,s);if("throw"===c.type){a="throw",s=c.arg;continue}}if("return"===a)continue}var c=i(o.iterator[a],o.iterator,s);if("throw"===c.type){n.delegate=null,a="throw",s=c.arg;continue}a="next",s=y;var f=c.arg;if(!f.done)return r=E,f;n[o.resultName]=f.value,n.next=o.nextLoc,n.delegate=null}if("next"===a)n.sent=n._sent=s;else if("throw"===a){if(r===w)throw r=I,s;n.dispatchException(s)&&(a="next",s=y)}else"return"===a&&n.abrupt("return",s);r=S;var c=i(e,t,n);if("normal"===c.type){r=n.done?I:E;var f={value:c.arg,done:n.done};if(c.arg!==M)return f;n.delegate&&"next"===a&&(s=y)}else"throw"===c.type&&(r=I,a="throw",s=c.arg)}}}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[b];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function i(){for(;++n<e.length;)if(g.call(e,n))return i.value=e[n],i.done=!1,i;return i.value=y,i.done=!0,i};return r.next=r}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},b=_.iterator||"@@iterator",T=_.toStringTag||"@@toStringTag",x="object"==typeof e,k=t.regeneratorRuntime;if(k)return void(x&&(e.exports=k));k=t.regeneratorRuntime=x?e.exports:{},k.wrap=r;var w="suspendedStart",E="suspendedYield",S="executing",I="completed",M={},A=o.prototype=a.prototype;s.prototype=A.constructor=o,o.constructor=s,o[T]=s.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},k.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,T in e||(e[T]="GeneratorFunction")),e.prototype=Object.create(A),e},k.awrap=function(e){return new c(e)},u(f.prototype),k.async=function(e,t,n,i){var a=new f(r(e,t,n,i));return k.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},u(A),A[b]=function(){return this},A[T]="Generator",A.toString=function(){return"[object Generator]"},k.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},k.values=m,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=y)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=g.call(i,"catchLoc"),o=g.call(i,"finallyLoc");if(s&&o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?this.next=i.finallyLoc:this.complete(a),M},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),h(n),M}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},M}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}(),n(82))},,function(e,t,n){var r,i;(function(){function n(e){function t(t,n,r,i,a,s){for(;a>=0&&a<s;a+=e){var o=i?i[a]:a;r=n(r,t[o],o,t)}return r}return function(n,r,i,a){r=k(r,a,4);var s=!C(n)&&x.keys(n),o=(s||n).length,u=e>0?0:o-1;return arguments.length<3&&(i=n[s?s[u]:u],u+=e),t(n,r,i,s,u,o)}}function a(e){return function(t,n,r){n=w(n,r);for(var i=A(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}function s(e,t,n){return function(r,i,a){var s=0,o=A(r);if("number"==typeof a)e>0?s=a>=0?a:Math.max(a+o,s):o=a>=0?Math.min(a+1,o):a+o+1;else if(n&&a&&o)return a=n(r,i),r[a]===i?a:-1;if(i!==i)return a=t(p.call(r,s,o),x.isNaN),a>=0?a+s:-1;for(a=e>0?s:o-1;a>=0&&a<o;a+=e)if(r[a]===i)return a;return-1}}function o(e,t){var n=R.length,r=e.constructor,i=x.isFunction(r)&&r.prototype||l,a="constructor";for(x.has(e,a)&&!x.contains(t,a)&&t.push(a);n--;)a=R[n],a in e&&e[a]!==i[a]&&!x.contains(t,a)&&t.push(a)}var u=this,c=u._,f=Array.prototype,l=Object.prototype,d=Function.prototype,h=f.push,p=f.slice,m=l.toString,v=l.hasOwnProperty,y=Array.isArray,g=Object.keys,_=d.bind,b=Object.create,T=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!=typeof e&&e.exports&&(t=e.exports=x),t._=x,x.VERSION="1.8.3";var k=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return null==e?x.identity:x.isFunction(e)?k(e,t,n):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,t){return w(e,t,1/0)};var E=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var a=arguments[i],s=e(a),o=s.length,u=0;u<o;u++){var c=s[u];t&&void 0!==n[c]||(n[c]=a[c])}return n}},S=function(e){if(!x.isObject(e))return{};if(b)return b(e);T.prototype=e;var t=new T;return T.prototype=null,t},I=function(e){return function(t){return null==t?void 0:t[e]}},M=Math.pow(2,53)-1,A=I("length"),C=function(e){var t=A(e);return"number"==typeof t&&t>=0&&t<=M};x.each=x.forEach=function(e,t,n){t=k(t,n);var r,i;if(C(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=x.keys(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e},x.map=x.collect=function(e,t,n){t=w(t,n);for(var r=!C(e)&&x.keys(e),i=(r||e).length,a=Array(i),s=0;s<i;s++){var o=r?r[s]:s;a[s]=t(e[o],o,e)}return a},x.reduce=x.foldl=x.inject=n(1),x.reduceRight=x.foldr=n(-1),x.find=x.detect=function(e,t,n){var r;if(r=C(e)?x.findIndex(e,t,n):x.findKey(e,t,n),void 0!==r&&r!==-1)return e[r]},x.filter=x.select=function(e,t,n){var r=[];return t=w(t,n),x.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},x.reject=function(e,t,n){return x.filter(e,x.negate(w(t)),n)},x.every=x.all=function(e,t,n){t=w(t,n);for(var r=!C(e)&&x.keys(e),i=(r||e).length,a=0;a<i;a++){var s=r?r[a]:a;if(!t(e[s],s,e))return!1}return!0},x.some=x.any=function(e,t,n){t=w(t,n);for(var r=!C(e)&&x.keys(e),i=(r||e).length,a=0;a<i;a++){var s=r?r[a]:a;if(t(e[s],s,e))return!0}return!1},x.contains=x.includes=x.include=function(e,t,n,r){return C(e)||(e=x.values(e)),("number"!=typeof n||r)&&(n=0),x.indexOf(e,t,n)>=0},x.invoke=function(e,t){var n=p.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,i,a=-(1/0),s=-(1/0);if(null==t&&null!=e){e=C(e)?e:x.values(e);for(var o=0,u=e.length;o<u;o++)r=e[o],r>a&&(a=r)}else t=w(t,n),x.each(e,function(e,n,r){i=t(e,n,r),(i>s||i===-(1/0)&&a===-(1/0))&&(a=e,s=i)});return a},x.min=function(e,t,n){var r,i,a=1/0,s=1/0;if(null==t&&null!=e){e=C(e)?e:x.values(e);for(var o=0,u=e.length;o<u;o++)r=e[o],r<a&&(a=r)}else t=w(t,n),x.each(e,function(e,n,r){i=t(e,n,r),(i<s||i===1/0&&a===1/0)&&(a=e,s=i)});return a},x.shuffle=function(e){for(var t,n=C(e)?e:x.values(e),r=n.length,i=Array(r),a=0;a<r;a++)t=x.random(0,a),t!==a&&(i[a]=i[t]),i[t]=n[a];return i},x.sample=function(e,t,n){return null==t||n?(C(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,t))},x.sortBy=function(e,t,n){return t=w(t,n),x.pluck(x.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var L=function(e){return function(t,n,r){var i={};return n=w(n,r),x.each(t,function(r,a){var s=n(r,a,t);e(i,r,s)}),i}};x.groupBy=L(function(e,t,n){x.has(e,n)?e[n].push(t):e[n]=[t]}),x.indexBy=L(function(e,t,n){e[n]=t}),x.countBy=L(function(e,t,n){x.has(e,n)?e[n]++:e[n]=1}),x.toArray=function(e){return e?x.isArray(e)?p.call(e):C(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:C(e)?e.length:x.keys(e).length},x.partition=function(e,t,n){t=w(t,n);var r=[],i=[];return x.each(e,function(e,n,a){(t(e,n,a)?r:i).push(e)}),[r,i]},x.first=x.head=x.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:x.initial(e,e.length-t)},x.initial=function(e,t,n){return p.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},x.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:x.rest(e,Math.max(0,e.length-t))},x.rest=x.tail=x.drop=function(e,t,n){return p.call(e,null==t||n?1:t)},x.compact=function(e){return x.filter(e,x.identity)};var P=function(e,t,n,r){for(var i=[],a=0,s=r||0,o=A(e);s<o;s++){var u=e[s];if(C(u)&&(x.isArray(u)||x.isArguments(u))){t||(u=P(u,t,n));var c=0,f=u.length;for(i.length+=f;c<f;)i[a++]=u[c++]}else n||(i[a++]=u)}return i};x.flatten=function(e,t){return P(e,t,!1)},x.without=function(e){return x.difference(e,p.call(arguments,1))},x.uniq=x.unique=function(e,t,n,r){x.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=w(n,r));for(var i=[],a=[],s=0,o=A(e);s<o;s++){var u=e[s],c=n?n(u,s,e):u;t?(s&&a===c||i.push(u),a=c):n?x.contains(a,c)||(a.push(c),i.push(u)):x.contains(i,u)||i.push(u)}return i},x.union=function(){return x.uniq(P(arguments,!0,!0))},x.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=A(e);r<i;r++){var a=e[r];if(!x.contains(t,a)){for(var s=1;s<n&&x.contains(arguments[s],a);s++);s===n&&t.push(a)}}return t},x.difference=function(e){var t=P(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var t=e&&x.max(e,A).length||0,n=Array(t),r=0;r<t;r++)n[r]=x.pluck(e,r);return n},x.object=function(e,t){for(var n={},r=0,i=A(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},x.findIndex=a(1),x.findLastIndex=a(-1),x.sortedIndex=function(e,t,n,r){n=w(n,r,1);for(var i=n(t),a=0,s=A(e);a<s;){var o=Math.floor((a+s)/2);n(e[o])<i?a=o+1:s=o}return a},x.indexOf=s(1,x.findIndex,x.sortedIndex),x.lastIndexOf=s(-1,x.findLastIndex),x.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i};var D=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=S(e.prototype),s=e.apply(a,i);return x.isObject(s)?s:a};x.bind=function(e,t){if(_&&e.bind===_)return _.apply(e,p.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return D(e,r,t,this,n.concat(p.call(arguments)))};return r},x.partial=function(e){var t=p.call(arguments,1),n=function(){for(var r=0,i=t.length,a=Array(i),s=0;s<i;s++)a[s]=t[s]===x?arguments[r++]:t[s];for(;r<arguments.length;)a.push(arguments[r++]);return D(e,n,this,this,a)};return n},x.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)n=arguments[t],e[n]=x.bind(e[n],e);return e},x.memoize=function(e,t){var n=function(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return x.has(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n},x.delay=function(e,t){var n=p.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,t,n){var r,i,a,s=null,o=0;n||(n={});var u=function(){o=n.leading===!1?0:x.now(),s=null,a=e.apply(r,i),s||(r=i=null)};return function(){var c=x.now();o||n.leading!==!1||(o=c);var f=t-(c-o);return r=this,i=arguments,f<=0||f>t?(s&&(clearTimeout(s),s=null),o=c,a=e.apply(r,i),s||(r=i=null)):s||n.trailing===!1||(s=setTimeout(u,f)),a}},x.debounce=function(e,t,n){var r,i,a,s,o,u=function(){var c=x.now()-s;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(o=e.apply(a,i),r||(a=i=null)))};return function(){a=this,i=arguments,s=x.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(o=e.apply(a,i),a=i=null),o}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var O=!{toString:null}.propertyIsEnumerable("toString"),R=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(g)return g(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return O&&o(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return O&&o(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},x.mapObject=function(e,t,n){t=w(t,n);for(var r,i=x.keys(e),a=i.length,s={},o=0;o<a;o++)r=i[o],s[r]=t(e[r],r,e);return s},x.pairs=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},x.invert=function(e){for(var t={},n=x.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=E(x.allKeys),x.extendOwn=x.assign=E(x.keys),x.findKey=function(e,t,n){t=w(t,n);for(var r,i=x.keys(e),a=0,s=i.length;a<s;a++)if(r=i[a],t(e[r],r,e))return r},x.pick=function(e,t,n){var r,i,a={},s=e;if(null==s)return a;x.isFunction(t)?(i=x.allKeys(s),r=k(t,n)):(i=P(arguments,!1,!1,1),r=function(e,t,n){return t in n},s=Object(s));for(var o=0,u=i.length;o<u;o++){var c=i[o],f=s[c];r(f,c,s)&&(a[c]=f)}return a},x.omit=function(e,t,n){if(x.isFunction(t))t=x.negate(t);else{var r=x.map(P(arguments,!1,!1,1),String);t=function(e,t){return!x.contains(r,t)}}return x.pick(e,t,n)},x.defaults=E(x.allKeys,!0),x.create=function(e,t){var n=S(e);return t&&x.extendOwn(n,t),n},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,t){return t(e),e},x.isMatch=function(e,t){var n=x.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var s=n[a];if(t[s]!==i[s]||!(s in i))return!1}return!0};var B=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof x&&(e=e._wrapped),t instanceof x&&(t=t._wrapped);var i=m.call(e);if(i!==m.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var a="[object Array]"===i;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,o=t.constructor;if(s!==o&&!(x.isFunction(s)&&s instanceof s&&x.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),a){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!B(e[u],t[u],n,r))return!1}else{var c,f=x.keys(e);if(u=f.length,x.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!x.has(t,c)||!B(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0};x.isEqual=function(e,t){return B(e,t)},x.isEmpty=function(e){return null==e||(C(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length)},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=y||function(e){return"[object Array]"===m.call(e)},x.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(t){return m.call(t)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===m.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,t){return null!=e&&v.call(e,t)},x.noConflict=function(){return u._=c,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=I,x.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(t){return x.isMatch(t,e)}},x.times=function(e,t,n){var r=Array(Math.max(0,e));t=k(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},x.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var U={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},N=x.invert(U),F=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};x.escape=F(U),x.unescape=F(N),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var q=0;x.uniqueId=function(e){var t=++q+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var X=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,j=function(e){return"\\"+V[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||X).source,(t.interpolate||X).source,(t.evaluate||X).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,function(t,n,r,s,o){return a+=e.slice(i,o).replace(Q,j),i=o+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(a+="';\n"+s+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var s=new Function(t.variable||"obj","_",a)}catch(o){throw o.source=a,o}var u=function(e){return s.call(this,e,x)},c=t.variable||"obj";return u.source="function("+c+"){\n"+a+"}",u},x.chain=function(e){var t=x(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return h.apply(e,arguments),Y(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=f[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Y(this,n)}}),x.each(["concat","join","slice"],function(e){var t=f[e];x.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],i=function(){return x}.apply(t,r),!(void 0!==i&&(e.exports=i))}).call(this)},,,,,function(e,t,n){var r,i;r=[],i=function(){var e=!0,t={media:{TextSourceBuffer:{isTypeSupported:function(){return!1}}},asserts:{assert:function(){}},util:{EventManager:function(){this.destroy=function(){},this.listen=function(e,t,n){e.addEventListener(t,n,!1)}},PublicPromise:function(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}}};return t.media.MediaSourceEngine=function(e,n){t.asserts.assert("open"==e.readyState,"The MediaSource should be in the 'open' state."),this.mediaSource_=e,this.textTrack_=n,this.sourceBuffers_={},this.queues_={},this.eventManager_=new t.util.EventManager,this.destroyed_=!1},t.media.MediaSourceEngine.Operation,t.media.MediaSourceEngine.isTypeSupported=function(e){return t.media.TextSourceBuffer.isTypeSupported(e)||MediaSource.isTypeSupported(e)},t.media.MediaSourceEngine.support=function(){var e={basic:!!window.MediaSource};if(e.basic){var n=['video/mp4; codecs="avc1.42E01E"','audio/mp4; codecs="mp4a.40.2"','video/webm; codecs="vp8"','video/webm; codecs="vp9"','audio/webm; codecs="vorbis"','audio/webm; codecs="opus"','video/mp2t; codecs="avc1.42E01E"','video/mp2t; codecs="mp4a.40.2"',"text/vtt",'application/mp4; codecs="wvtt"',"application/ttml+xml",'application/mp4; codecs="stpp"'];n.forEach(function(n){e[n]=t.media.MediaSourceEngine.isTypeSupported(n);var r=n.split(";")[0];e[r]=e[r]||e[n]})}return e},t.media.MediaSourceEngine.prototype.destroy=function(){this.destroyed_=!0;var n=[];for(var r in this.queues_){var i=this.queues_[r],a=i[0];this.queues_[r]=i.slice(0,1),a&&n.push(a.p["catch"](function(){}));for(var s=1;s<i.length;++s)i[s].p["catch"](function(){}),i[s].p.reject()}return Promise.all(n).then(function(){if(this.eventManager_.destroy(),this.eventManager_=null,this.mediaSource_=null,this.textTrack_=null,this.sourceBuffers_={},!e)for(var n in this.queues_)t.asserts.assert(0==this.queues_[n].length,n+" queue should be empty after destroy!");this.queues_={}}.bind(this))},t.media.MediaSourceEngine.prototype.init=function(e){for(var n in e){var r=e[n];t.asserts.assert(t.media.MediaSourceEngine.isTypeSupported(r),"Type negotation should happen before MediaSourceEngine.init!");var i;if("text"==n){var a=new t.media.TextSourceBuffer(this.textTrack_,r);i=a}else i=this.mediaSource_.addSourceBuffer(r);this.eventManager_.listen(i,"error",this.onError_.bind(this,n)),this.eventManager_.listen(i,"updateend",this.onUpdateEnd_.bind(this,n)),this.sourceBuffers_[n]=i,this.queues_[n]=[]}},t.media.MediaSourceEngine.prototype.bufferedAheadOf=function(e,t){for(var n=this.sourceBuffers_[e].buffered,r=1e-6,i=0;i<n.length;++i)if(t+r>=n.start(i)&&t<n.end(i))return n.end(i)-t;return 0},t.media.MediaSourceEngine.prototype.appendBuffer=function(e,t){return this.enqueueOperation_(e,this.append_.bind(this,e,t))},t.media.MediaSourceEngine.prototype.remove=function(e,t,n){return this.enqueueOperation_(e,this.remove_.bind(this,e,t,n))},t.media.MediaSourceEngine.prototype.endOfStream=function(e){return this.enqueueBlockingOperation_(function(){e?this.mediaSource_.endOfStream(e):this.mediaSource_.endOfStream()}.bind(this))},t.media.MediaSourceEngine.prototype.setDuration=function(e){return isNaN(this.mediaSource_.duration)||t.asserts.assert(this.mediaSource_.duration<=e,"duration cannot decrease: "+this.mediaSource_.duration+" -> "+e),this.enqueueBlockingOperation_(function(){this.mediaSource_.duration=e}.bind(this))},t.media.MediaSourceEngine.prototype.append_=function(e,t){this.sourceBuffers_[e].appendBuffer(t)},t.media.MediaSourceEngine.prototype.remove_=function(e,t,n){this.sourceBuffers_[e].remove(t,n)},t.media.MediaSourceEngine.prototype.onError_=function(e,n){var r=this.queues_[e][0];t.asserts.assert(r,"Spurious error event!"),t.asserts.assert(!this.sourceBuffers_[e].updating,"SourceBuffer should not be updating on error!"),r.p.reject(n)},t.media.MediaSourceEngine.prototype.onUpdateEnd_=function(e,n){var r=this.queues_[e][0];t.asserts.assert(r,"Spurious updateend event!"),t.asserts.assert(!this.sourceBuffers_[e].updating,"SourceBuffer should not be updating on updateend!"),r.p.resolve(),this.popFromQueue_(e)},t.media.MediaSourceEngine.prototype.enqueueOperation_=function(e,n){if(this.destroyed_)return Promise.reject();var r={start:n,p:new t.util.PublicPromise};if(this.queues_[e].push(r),1==this.queues_[e].length)try{r.start()}catch(i){r.p.reject(i),this.popFromQueue_(e)}return r.p},t.media.MediaSourceEngine.prototype.enqueueBlockingOperation_=function(n){if(this.destroyed_)return Promise.reject();var r=[];for(var i in this.sourceBuffers_){var a=new t.util.PublicPromise,s={start:function(e){e.resolve()}.bind(null,a),p:a};this.queues_[i].push(s),r.push(a),1==this.queues_[i].length&&s.start()}return Promise.all(r).then(function(){if(!e)for(var r in this.sourceBuffers_)t.asserts.assert(0==this.sourceBuffers_[r].updating,"SourceBuffers should not be updating after a blocking op!");var i;try{n()}catch(a){i=Promise.reject(a)}for(var r in this.sourceBuffers_)this.popFromQueue_(r);return i}.bind(this),function(){if(t.asserts.assert(this.destroyed_,"Should be destroyed by now"),!e)for(var n in this.sourceBuffers_)this.queues_[n].length&&(t.asserts.assert(1==this.queues_[n].length,"Should be at most one item in queue!"),t.asserts.assert(r.indexOf(this.queues_[n][0].p)!=-1,"The item in queue should be one of our waiters!"),this.queues_[n].shift());return Promise.reject()}.bind(this))},t.media.MediaSourceEngine.prototype.popFromQueue_=function(e){this.queues_[e].shift();var t=this.queues_[e][0];if(t)try{t.start()}catch(n){t.p.reject(n),this.popFromQueue_(e)}},t.media.MediaSourceEngine.prototype.setTimestampOffset=function(e,t){return this.enqueueBlockingOperation_(function(){this.sourceBuffers_[e].timestampOffset=t}.bind(this))},t.media.MediaSourceEngine}.apply(t,r),!(void 0!==i&&(e.exports=i))}]);

Youez - 2016 - github.com/yon3zu
LinuXploit