����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.255
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/test/js1/plugins/jwplayer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/kalemon/public/test/js1/plugins/jwplayer/provider.shaka.js
webpackJsonpjwplayer([2],{17:function(t,e,i){var n,r;n=[i(8)],r=function(t){function e(t){t||i()}function i(){throw new Error("Invalid DFXP file")}var n=t.seconds;return function(r){e(r);var s=[],a=r.getElementsByTagName("p");e(a),a.length||(a=r.getElementsByTagName("tt:p"),a.length||(a=r.getElementsByTagName("tts:p")));for(var o=0;o<a.length;o++){var h=a[o],u=h.innerHTML||h.textContent||h.text||"",l=t.trim(u).replace(/>\s+</g,"><").replace(/tts?:/g,"");if(l){var c=h.getAttribute("begin"),f=h.getAttribute("dur"),d=h.getAttribute("end"),p={begin:n(c),text:l};d?p.end=n(d):f&&(p.end=p.begin+n(f)),s.push(p)}}return s.length||i(),s}}.apply(e,n),!(void 0!==r&&(t.exports=r))},18:function(t,e,i){var n,r;n=[i(1),i(21),i(2),i(14),i(19),i(17)],r=function(t,e,n,r,s,a){function o(t){if(this._currentTextTrackIndex=-1,t){if(this._textTracks||_.call(this),t.length){var e=0,i=t.length;for(e;e<i;e++){var n=t[e];if(n._id||("captions"===n.kind||"metadata"===n.kind?n._id="native"+n.kind:n._id=w.call(this,n),n.inuse=!0),n.inuse&&!this._tracksById[n._id])if("metadata"===n.kind)n.mode="showing",n.oncuechange=D.bind(this),this._tracksById[n._id]=n;else if(E(n.kind)){var r,s=n.mode;if(n.mode="hidden",!n.cues.length&&n.embedded)continue;if(n.mode=s,this._cuesByTrackId[n._id]&&!this._cuesByTrackId[n._id].loaded){for(var a=this._cuesByTrackId[n._id].cues;r=a.pop();)n.addCue(r);n.mode=s,this._cuesByTrackId[n._id].loaded=!0}I.call(this,n)}}}this._renderNatively&&this.addTracksListener(this.video.textTracks,"change",g.bind(this)),this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function h(t){this._renderNatively=k(this.getName().name),!this.isSDK&&t&&(N.call(this,t)||(this._renderNatively&&(v.call(this),x.call(this)),this.itemTracks=t,m.call(this,t)))}function u(){return this._currentTextTrackIndex}function l(e){this._textTracks&&(0===e&&t.each(this._textTracks,function(t){t.mode="disabled"}),this._currentTextTrackIndex!==e-1&&(v.call(this),this._currentTextTrackIndex=e-1,this._renderNatively&&(this._textTracks[this._currentTextTrackIndex]&&(this._textTracks[this._currentTextTrackIndex].mode="showing"),this.trigger("subtitlesTrackChanged",{currentTrack:this._currentTextTrackIndex+1,tracks:this._textTracks}))))}function c(t){if(t.text&&t.begin&&t.end){var e=t.trackid.toString(),i=this._tracksById&&this._tracksById[e];i||(this._renderNatively=k(this.getName().name),i={kind:"captions",_id:e,data:[]},m.call(this,[i]),this.trigger("subtitlesTracks",{tracks:this._textTracks}));var n;t.useDTS&&(i.source||(i.source=t.source||"mpegts")),n=t.begin+"_"+t.text;var r=this._metaCuesByTextTime[n];if(!r){r={begin:t.begin,end:t.end,text:t.text},this._metaCuesByTextTime[n]=r;var s=j([r])[0];i.data.push(s)}}}function f(t){var e="native"+t.type,i=this._tracksById[e],n="captions"===t.type?"Unknown CC":"ID3 Metadata";if(!i){this._renderNatively=k(this.getName().name);var r={kind:t.type,_id:e,label:n,embedded:!0};i=S.call(this,r),this.setTextTracks(this.video.textTracks)}i.addCue(t.cue)}function d(t){var e=this._tracksById[t.name];if(e){e.source=t.source;for(var i=t.captions||[],n=[],r=!1,s=0;s<i.length;s++){var a=i[s],o=t.name+"_"+a.begin+"_"+a.end;this._metaCuesByTextTime[o]||(this._metaCuesByTextTime[o]=a,n.push(a),r=!0)}r&&n.sort(function(t,e){return t.begin-e.begin});var h=j(n);Array.prototype.push.apply(e.data,h)}}function p(t,e,i){t&&(i=i.bind(this),t.addEventListener?t.addEventListener(e,i):t["on"+e]=i)}function b(t,e,i){t&&(t.removeEventListener?t.removeEventListener(e,i):t["on"+e]=null)}function y(){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 v(){this._textTracks&&this._textTracks[this._currentTextTrackIndex]&&(this._textTracks[this._currentTextTrackIndex].mode="disabled")}function g(){var e=this.video.textTracks,i=t.filter(e,function(t){return(t.inuse||!t._id)&&E(t.kind)});(!this._textTracks||i.length>this._textTracks.length)&&this.setTextTracks.call(this,e);var n=-1,r=0;for(r;r<this._textTracks.length;r++)if("showing"===this._textTracks[r].mode){n=r;break}n!==this._currentTextTrackIndex&&this.setSubtitlesTrack.call(this,n+1)}function m(t){if(t){this._textTracks||_.call(this),this._renderNatively=k(this.getName().name);for(var e=0;e<t.length;e++){var i=t[e];if(!i.kind||E(i.kind)){var n=S.call(this,i);I.call(this,n),i.file&&A.call(this,i,n)}}!this._renderNatively&&this._textTracks&&this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function w(t){var e,i=t.kind||"cc";return e=t["default"]||t.defaulttrack?"default":t._id||t.name||t.file||t.label||i+this._textTracks.length}function T(e){e.length&&t.each(e,function(t){for(t.mode="hidden";t.cues.length;)t.removeCue(t.cues[0]);t.mode="disabled",t.inuse=!1})}function k(t){return t.indexOf("flash")===-1&&(n.isChrome()||n.isIOS()||n.isSafari())}function E(t){return"subtitles"===t||"captions"===t}function _(){this._textTracks=[],this._tracksById={},this._metaCuesByTextTime={},this._cuesByTrackId={},this._unknownCount=0,this._renderNatively=!1}function S(e){var i,n=P.call(this,e);if(this._renderNatively){var r=this.video.textTracks;i=t.findWhere(r,{label:n}),i?(i.kind=e.kind,i.label=n,i.language=e.language||""):i=this.video.addTextTrack(e.kind,n,e.language||""),i["default"]=e["default"],i.mode="disabled",i.inuse=!0}else i=e,i.data=i.data||[];return i._id||(i._id=w.call(this,e)),i}function P(t){var e=t.label||t.name||t.language;return e||(e="Unknown CC",this._unknownCount++,this._unknownCount>1&&(e+=" ["+this._unknownCount+"]")),e}function I(t){this._textTracks.push(t),this._tracksById[t._id]=t}function A(t,e){n.ajax(t.file,function(t){R.call(this,t,e)}.bind(this),L)}function N(t){var e=this._textTracks,i=!0;return this._renderNatively&&e&&e.length&&(i=e[0].inuse),t===this.itemTracks&&e&&e.length>=t.length&&i}function x(){if(this._textTracks){var e=t.filter(this._textTracks,function(t){return t.embedded||"subs"===t.groupid});_.call(this),t.each(e,function(t){this._tracksById[t._id]=t}),this._textTracks=e}}function C(t,e){if(this._renderNatively){var i=this._tracksById[t._id];if(!i)return this._cuesByTrackId||(this._cuesByTrackId={}),void(this._cuesByTrackId[t._id]={cues:e,loaded:!1});if(this._cuesByTrackId[t._id]&&this._cuesByTrackId[t._id].loaded)return;var n;for(this._cuesByTrackId[t._id]={cues:e,loaded:!0};n=e.pop();)i.addCue(n)}else t.data=e}function j(e){var i=window.VTTCue,n=t.map(e,function(t){return new i(t.begin,t.end,t.text)});return n}function M(t,e){i.e(11,function(require){var n=i(13),r=new n(window);r.oncue=function(t){this._renderNatively?e.addCue(t):(e.data=e.data||[],e.data.push(t))}.bind(this),r.onparsingerror=function(t){L(t)},r.onflush=function(){},r.parse(t),r.flush()}.bind(this))}function D(i){var n=i.currentTarget.activeCues;if(n&&n.length){var r=n[n.length-1].startTime;if(this._activeCuePosition!==r){var s=[];if(t.each(n,function(t){t.startTime<r||(t.data||t.value?s.push(t):t.text&&this.trigger("meta",{metadataTime:r,metadata:JSON.parse(t.text)}))},this),s.length){var a=e.parseID3(s);this.trigger("meta",{metadataTime:r,metadata:a})}this._activeCuePosition=r}}}function R(t,e){var i,o=t.responseXML?t.responseXML.firstChild:null;if(o)for("xml"===r.localName(o)&&(o=o.nextSibling);o.nodeType===o.COMMENT_NODE;)o=o.nextSibling;try{i=o&&"tt"===r.localName(o)?n.tryCatch(function(){var i=a(t.responseXML),n=j(i);C.call(this,e,n)}.bind(this)):n.tryCatch(function(){var i=t.responseText;if(i.indexOf("WEBVTT")>=0)M.call(this,t.responseText,e);else{var n=s(t.responseText),r=j(n);C.call(this,e,r)}}.bind(this))}catch(h){i instanceof n.Error&&L(i.message+": "+e.file)}}function L(t){n.log("CAPTIONS("+t+")")}var U={_textTracks:null,_tracksById:null,_cuesByTrackId:null,_metaCuesByTextTime:null,_currentTextTrackIndex:-1,_unknownCount:0,_renderNatively:!1,_activeCuePosition:null,addTracksListener:p,clearTracks:y,disableTextTrack:v,getSubtitlesTrack:u,removeTracksListener:b,addTextTracks:m,setTextTracks:o,setupSideloadedTracks:h,setSubtitlesTrack:l,textTrackChangeHandler:g,addCuesToTrack:d,addCaptionsCue:c,addVTTCue:f};return U}.apply(e,n),!(void 0!==r&&(t.exports=r))},50:function(t,e,i){var n,r;n=[i(2)],r=function(t){return{volume:function(e){e=t.between(e/100,0,1),this.video.volume=e},mute:function(t){this.video.muted=!!t},resize:function(e,i,n){if(!(e&&i&&this.video.videoWidth&&this.video.videoHeight))return!1;if("uniform"===n){var r=e/i,s=this.video.videoWidth/this.video.videoHeight,a=null;Math.abs(r-s)<.09&&(a="fill"),t.style(this.video,{objectFit:a})}return!1},getVideo:function(t){var e=document.getElementById(t),i=(e?e.querySelector("video"):void 0)||document.createElement("video");return i.className="jw-video jw-reset",this.video=i,i}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},51:function(t,e,i){var n,r;n=[i(3),i(20),i(5)],r=function(t,e,i){var n=256;return{attached:!0,beforeComplete:!1,stallCheckTimeout_:-1,lastStalledTime_:NaN,trigger:function(e,i){if(this.attached)return t.trigger.call(this,e,i)},setState:function(t){if(this.attached)return e.setState.call(this,t)},checkComplete:function(){return this.beforeComplete},playbackComplete_:function(){this.stopStallCheck(),this.setState(i.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),n)},stalledHandler:function(){return this.lastStalledTime_!==this.video.currentTime?void(this.lastStalledTime_=this.video.currentTime):void(this.video.paused||this.video.ended||this.state!==i.LOADING&&this.state!==i.ERROR&&(this.seeking||this.setState(i.STALLED)))}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},52:function(t,e,i){var n,r;n=[i(2),i(5)],r=function(t,e){return{seeking:!1,loadedmetadata:function(){var t={duration:this.getDuration(),height:this.video.videoHeight,width:this.video.videoWidth},e=this.drmUsed;e&&(t.drm=e),this.trigger("meta",t)},timeupdate:function(){this.stopStallCheck();var t=this.video.videoHeight;t!==this._helperLastVideoHeight&&this.trigger("adaptation",{size:{width:this.video.videoWidth,height:this.video.videoHeight}}),this._helperLastVideoHeight=t,this.state===e.STALLED&&this.setState(e.PLAYING),this.startStallCheck();var i=this.getCurrentTime(),n={position:i,duration:this.getDuration()};if(this.getPtsOffset){var r=this.getPtsOffset();r>=0&&(n.metadata={mpegts:r+i})}this.trigger("time",n)},click:function(t){this.trigger("click",t)},volumechange:function(){var t=this.video;this.trigger("volume",{volume:Math.round(100*t.volume)}),this.trigger("mute",{mute:t.muted})},seeked:function(){this.seeking=!1,this.trigger("seeked")},playing:function(){this.setState(e.PLAYING)},pause:function(){this.state!==e.COMPLETE&&(this.video.ended||this.video.currentTime!==this.video.duration&&this.setState(e.PAUSED))},progress:function(){var e=this.getDuration();if(!(e<=0||e===1/0)){var i=this.video.buffered;if(i&&0!==i.length){var n=t.between(i.end(i.length-1)/e,0,1);this.trigger("bufferChange",{bufferPercent:100*n,position:this.getCurrentTime(),duration:e})}}},ended:function(){if(this.stopStallCheck(),this._helperLastVideoHeight=0,this.state!==e.IDLE&&this.state!==e.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 t=this.video.error&&this.video.error.code||-1,e={1:"Unknown operation aborted",2:"Unknown network error",3:"Unknown decode error",4:"Source not supported"}[t]||"Unknown";this.trigger("mediaError",{code:t,message:"Error playing file: "+e})}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},83:function(t,e,i){var n;!function(){var r={};(function(t){function e(t,e){var i=t.split("."),n=Yr;i[0]in n||!n.execScript||n.execScript("var "+i[0]);for(var r;i.length&&(r=i.shift());)i.length||void 0===e?n=n[r]?n[r]:n[r]={}:n[r]=e}function i(t,e){function i(){}i.prototype=e.prototype,t.Yb=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.Xb=function(t,i,n){return e.prototype[i].apply(t,Array.prototype.slice.call(arguments,2))}}function n(){}function r(t){var e=console[t];e?e.bind||(console[t]=function(){e.apply(console,arguments)}):console[t]=function(){}}function s(t){Qr[t]={na:Jr(),end:NaN}}function a(t){(t=Qr[t])&&(t.end=Jr())}function o(t){return(t=Qr[t])&&t.end?t.end-t.na:NaN}function h(t,e,i){this.id=t,this.bandwidth=e||0,this.lang=i||"unknown",this.active=!1}function u(){this.minBandwidth=this.maxBandwidth=this.maxWidth=this.minHeight=this.maxHeight=null}function l(){this.fontSize="100%",this.fontColor=Xr,this.fontOpacity=Zr,this.backgroundColor=$r,this.backgroundOpacity=Zr,this.fontEdge=ts}function c(t){var e=[];e.push("font-size: "+t.fontSize),e.push("color: "+f(t.fontColor,t.fontOpacity)),e.push("background-color: "+f(t.backgroundColor,t.backgroundOpacity));for(var i=[],n=0;n<t.fontEdge.length;++n){var r=t.fontEdge[n].slice(3,6);i.push(f(t.fontEdge[n].slice(0,3),t.fontOpacity)+" "+r.join("px ")+"px")}return e.push("text-shadow: "+i.join(",")),e.join("; ")}function f(t,e){return"rgba("+t.concat(e).join(",")+")"}function d(t,e){this.id=t,this.lang=e||"unknown",this.enabled=this.active=!1}function p(t,e,i,n){this.id=t,this.bandwidth=e||0,this.width=i||0,this.height=n||0,this.active=!1}function b(t,e){var i=t.width*t.height,n=e.width*e.height;return i<n?-1:i>n?1:t.bandwidth<e.bandwidth?-1:t.bandwidth>e.bandwidth?1:0}function y(){var e="CustomEvent"in t;if(e)try{new CustomEvent("")}catch(i){e=!1}e||(t.CustomEvent=v)}function v(t,e){var i=document.createEvent("CustomEvent"),n=e||{bubbles:!1,cancelable:!1,detail:null};return i.initCustomEvent(t,!!n.bubbles,!!n.cancelable,n.detail),i}function g(){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,t=Document.prototype,t.exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitExitFullscreen,"fullscreenElement"in document||Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),document.addEventListener("webkitfullscreenchange",m),document.addEventListener("webkitfullscreenerror",m),document.addEventListener("mozfullscreenchange",m),document.addEventListener("mozfullscreenerror",m),document.addEventListener("MSFullscreenChange",m),document.addEventListener("MSFullscreenError",m)}function m(t){var e=t.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),e=new Event(e,t);t.target.dispatchEvent(e)}function w(){return Promise.reject(Error("The key system specified is not supported."))}function T(t){return null==t?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function k(){throw new TypeError("Illegal constructor.")}function E(){throw new TypeError("Illegal constructor.")}function _(t){if(this.c=[],this.b=[],this.ba=es,t)try{t(this.W.bind(this),this.a.bind(this))}catch(e){this.a(e)}}function S(){t.Promise||(t.Promise=_,t.Promise.resolve=P,t.Promise.reject=I,t.Promise.all=A,t.Promise.race=N,t.setImmediate?(j=function(e){return t.setImmediate(e)},M=function(e){return t.clearImmediate(e)}):(j=function(e){return t.setTimeout(e,0)},M=function(e){return t.clearTimeout(e)}))}function P(t){var e=new _;return e.W(t),e}function I(t){var e=new _;return e.a(t),e}function A(t){function e(t,e,i){t.ba==es&&(r[e]=i,n++,n==r.length&&t.W(r))}var i=new _;if(!t.length)return i.W([]),i;for(var n=0,r=Array(t.length),s=i.a.bind(i),a=0;a<t.length;++a)t[a]&&t[a].then?t[a].then(e.bind(null,i,a),s):e(i,a,t[a]);return i}function N(t){for(var e=new _,i=e.W.bind(e),n=e.a.bind(e),r=0;r<t.length;++r)t[r]&&t[r].then?t[r].then(i,n):i(t[r]);return e}function x(t,e,i){ns.push(function(){if(i&&"function"==typeof i){try{var t=i(this.wa)}catch(n){return void e.a(n)}t instanceof _?t==e?e.a(new TypeError("Chaining cycle detected")):t.then(e.W.bind(e),e.a.bind(e)):e.W(t)}else 1==this.ba?e.W(this.wa):e.a(this.wa)}.bind(t)),null==is&&(is=j(C))}function C(){for(;ns.length;){null!=is&&(M(is),is=null);var t=ns;ns=[];for(var e=0;e<t.length;++e)t[e]()}}function j(){return 0}function M(){}function D(){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=R)}function R(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function L(t,e){for(var i=[],n=0;n<t.length;++n){for(var r=!1,s=0;s<i.length&&!(r=e?e(t[n],i[s]):t[n]===i[s]);++s);r||i.push(t[n])}return i}function U(){return Date.now()+ss}function O(t){this.b=t,this.c=0==as,this.a=0}function B(t){return t.a<t.b.byteLength}function V(t){var e=t.b.getUint8(t.a);return t.a+=1,e}function K(t){var e=t.b.getUint32(t.a,t.c);return t.a+=4,e}function F(t){var e,i;if(t.c?(e=t.b.getUint32(t.a,!0),i=t.b.getUint32(t.a+4,!0)):(i=t.b.getUint32(t.a,!1),e=t.b.getUint32(t.a+4,!1)),2097151<i)throw new RangeError("DataViewReader: Overflow reading 64-bit value.");return t.a+=8,i*Math.pow(2,32)+e}function H(t){if(t.a+16>t.b.byteLength)throw new RangeError("DataViewReader: Read past end of DataView.");var e=new Uint8Array(t.b.buffer,t.a,16);return t.a+=16,e}function q(t,e){if(t.a+e>t.b.byteLength)throw new RangeError("DataViewReader: Skip past end of DataView.");t.a+=e}function G(t){this.b=t,this.a=new O(t),rs||(rs=[new Uint8Array([255]),new Uint8Array([127,255]),new Uint8Array([63,255,255]),new Uint8Array([31,255,255,255]),new Uint8Array([15,255,255,255,255]),new Uint8Array([7,255,255,255,255,255]),new Uint8Array([3,255,255,255,255,255,255]),new Uint8Array([1,255,255,255,255,255,255,255])])}function z(t){var e;if(e=W(t),7<e.length)throw new RangeError("EbmlParser: EBML ID must be at most 7 bytes.");for(var i=0,n=0;n<e.length;n++)i=256*i+e[n];e=i,i=W(t);t:{for(n=0;n<rs.length;n++)if(Zt(i,rs[n])){n=!0;break t}n=!1}if(n)i=t.b.byteLength-t.a.a;else{if(8==i.length&&224&i[1])throw new RangeError("EbmlParser: Variable sized integer value must be at most 53 bits.");for(var n=i[0]&(1<<8-i.length)-1,r=1;r<i.length;r++)n=256*n+i[r];i=n}return i=t.a.a+i<=t.b.byteLength?i:t.b.byteLength-t.a.a,n=new DataView(t.b.buffer,t.b.byteOffset+t.a.a,i),q(t.a,i),new Y(e,n)}function W(t){var e,i=V(t.a);for(e=1;8>=e&&!(i&1<<8-e);e++);if(8<e)throw new RangeError("EbmlParser: Variable sized integer must fit within 8 bytes.");var n=new Uint8Array(e);for(n[0]=i,i=1;i<e;i++)n[i]=V(t.a);return n}function Y(t,e){this.id=t,this.a=e}function J(t){if(8<t.a.byteLength)throw new RangeError("EbmlElement: Unsigned integer has too many bytes.");if(8==t.a.byteLength&&224&t.a.getUint8(0))throw new RangeError("EbmlParser: Unsigned integer must be at most 53 bits.");for(var e=0,i=0;i<t.a.byteLength;i++)var n=t.a.getUint8(i),e=256*e+n;return e}function Q(t){this.c=Math.exp(Math.log(.5)/t),this.a=this.b=0}function X(t){return t.b/(1-Math.pow(t.c,t.a))}function $(t){var e,i=new CustomEvent(t.type,{detail:t.detail,bubbles:!!t.bubbles});for(e in t)e in i||(i[e]=t[e]);return i}function Z(t){return new CustomEvent("error",{detail:t,bubbles:!0})}function tt(t,e,i){return et(e),et(i),i==e||t>=hs&&i==e.split("-")[0]||t>=us&&i.split("-")[0]==e.split("-")[0]}function et(t){t=t.toLowerCase().split("-");var e=ls[t[0]];return e&&(t[0]=e),t.join("-")}function it(t){return Object.keys(t).map(function(e){return t[e]})}function nt(t,e){return at(t,e,"boolean")}function rt(t,e){var i=at(t,e,"number");if(null==i)return null;if(isNaN(i)||i==Number.NEGATIVE_INFINITY||i==Number.POSITIVE_INFINITY)throw new RangeError("'"+e+"' must be finite.");if(0>i)throw new RangeError("'"+e+"' must be >= 0");return i}function st(t,e){return at(t,e,"string")}function at(t,e,i){if(t=t[e],null==t)return null;if(typeof t!=i)throw new TypeError("'"+e+"' must be a "+i+".");return t}function ot(t,e,i){if(t=t[e],null==t)return null;if(!(t instanceof i))throw new TypeError("'"+e+"' must be an instance of "+i.name+".");return t}function ht(){this.a={}}function ut(t){var e,i=[];for(e in t.a)i.push.apply(i,t.a[e]);return i}function lt(t,e,i){if(t=t.a[e])for(e=0;e<t.length;++e)t[e]==i&&(t.splice(e,1),--e)}function ct(t){var e,i=[];for(e in t.a)i.push(e);return i}function ft(){this.a=new ht}function dt(t,e,i,n){e=new bt(e,i,n),t.a.push(i,e)}function pt(t){for(var e=ut(t.a),i=0;i<e.length;++i)e[i].sa();t.a.a={}}function bt(t,e,i){this.target=t,this.type=e,this.a=i,this.target.addEventListener(e,i,!1)}function yt(t){this.ya=new ht,this.v=t}function vt(t,e){e.currentTarget=t;for(var i=t.ya.get(e.type)||[],n=0;n<i.length;++n){var r=i[n];try{r.handleEvent?r.handleEvent(e):r.call(t,e)}catch(s){}}return t.v&&e.bubbles&&vt(t.v,e),e.defaultPrevented}function gt(){yt.call(this,null),this.a=new Q(3),this.c=new Q(10),this.b=0}function mt(){var t,e,i=new Promise(function(i,n){t=i,e=n});return i.resolve=t,i.reject=e,i.destroy=mt.prototype.destroy,i}function wt(t){return t.split("").reduce(function(t,e,i){return t+(i&&0==i%4?" "+e:e)})}function Tt(){this.g=new mt,this.f=!1,this.a=null,this.b=[],this.c=null}function kt(t,e){if(t.f)throw Error("Cannot append to a running task!");t.b.push(e)}function Et(t,e){var i,n=t.b[0](e);n?(i=n[0],t.c=n[1]):(i=Promise.resolve(),t.c=null),i.then(St(t,function(t){this.a?(this.b=[],this.c=null,_t(this)):(this.b.shift(),this.b.length?Et(this,t):(this.g.resolve(t),this.c=null))}))["catch"](St(t,function(t){this.b=[],this.c=null,this.a?_t(this):this.g.reject(t)}))}function _t(e){var i=Error("Task aborted.");i.type="aborted",e.g.reject(i),t.setTimeout(function(){this.a.resolve(),this.a=null}.bind(e),5)}function St(t,e){return e.bind(t)}function Pt(t,e){yt.call(this,e),this.a=null,this.h=t}function It(e){if(!t.indexedDB)return e=Error("Persistant storage requires IndexedDB support."),e.type="storage",Promise.reject(e);if(e.a)return e=Error("A database connection is already open."),e.type="storage",Promise.reject(e);var i=new mt,n=t.indexedDB.open("content_database",1);return n.onupgradeneeded=St(e,function(t){this.a=t.target.result,Nt(this,"group_store",{keyPath:"group_id"}),Nt(this,"stream_index_store",{keyPath:"stream_id"}),t=Nt(this,"content_store",{autoIncrement:"true"}),t.createIndex("segment",["stream_id","segment_id"],{unique:!0}),t.createIndex("stream","stream_id",{unique:!1})}),n.onsuccess=St(e,function(t){this.a=t.target.result,i.resolve()}),n.onerror=function(){i.reject(n.error)},i}function At(t){t.a&&(t.a.close(),t.a=null)}function Nt(t,e,i){return t.a.objectStoreNames.contains(e)&&t.a.deleteObjectStore(e),t.a.createObjectStore(e,i)}function xt(t){return Mt(t,"content_store")}function Ct(t){return Mt(t,"stream_index_store")}function jt(t){return Mt(t,"group_store")}function Mt(t,e){return t.a.transaction([e],t.h).objectStore(e)}function Dt(t,e){var i=new mt,n=t.get(e);return n.onerror=function(){i.reject(n.error)},n.onsuccess=function(){if(n.result)i.resolve(n.result);else{var t=Error("Item not found.");t.type="storage",i.reject(t)}},i}function Rt(){Pt.call(this,"readonly",null)}function Lt(t){var e=new mt,i=[],n=jt(t).openCursor();return n.onerror=function(){e.reject(n.error)},n.onsuccess=function(t){(t=t.target.result)?(i.push(t.key),t["continue"]()):e.resolve(i)},e}function Ut(t,e){return Dt(jt(t),e).then(St(t,function(t){return t.session_ids=L(t.session_ids),t.hasOwnProperty("duration")||t.hasOwnProperty("key_system")?Promise.resolve(t):Ot(this,t.stream_ids[0]).then(function(e){return t.duration=e.duration,t.key_system=e.key_system,t.license_server=e.license_server,t.with_credentials=e.with_credentials,t.distinctive_identifier=e.distinctive_identifier,t.audio_robustness=e.audio_robustness,t.video_robustness=e.video_robustness,Promise.resolve(t)})}))}function Ot(t,e){return Dt(Ct(t),e)}function Bt(t,e,i){return Dt(xt(t).index("segment"),[e,i]).then(function(t){return Promise.resolve(t.content)})}function Vt(t,e,i){MediaSource.isTypeSupported(e),e=t.addSourceBuffer(e),this.i=t,this.c=e,this.l=i,this.j=new ft,this.g=null,this.b=[],this.w=0,this.f=this.a=null,this.s=0,dt(this.j,this.c,"updateend",this.B.bind(this))}function Kt(t,e){for(var i=t.c.buffered,n=0;n<i.length;++n){var r=i.start(n)-cs,s=i.end(n)+cs;if(e>=r&&e<=s)return i.end(n)-e}return 0}function Ft(t,e,i,n){if(t.a)return t=Error("Cannot fetch ("+t.v+"): previous operation not complete."),t.type="stream",Promise.reject(t);t.a=new Tt,i!=t.c.timestampOffset&&(t.c.timestampOffset=i),"idb"!=e.url.b[0].P||t.g||(t.g=new Rt,kt(t.a,function(){return[It(this.g)]}.bind(t))),n&&kt(t.a,function(){return[Wt(this,n),this.h.bind(this)]}.bind(t)),kt(t.a,function(){var t=e.a?e.a-e.b:1,i=new wi;return i.a=3,i.h=1e3*t,i.c=1e3*this.s,i.i=this.g,[Ai(e.url,i,this.l),Pi.prototype.g.bind(e.url)]}.bind(t)),kt(t.a,St(t,function(t){return this.l.getBandwidth(),[Wt(this,t),this.h.bind(this)]}));var r=0==t.c.buffered.length&&0==t.b.length,s=null;return kt(t.a,function(){if(0==this.c.buffered.length){var t=Error("Failed to buffer segment ("+this.v+").");return t.type="stream",[Promise.reject(t)]}r&&(t=e.b,s=this.c.buffered.start(0)-t),t=Bi(this.b,e.b),0<=t?this.b.splice(t+1,0,e):this.b.push(e)}.bind(t)),zt(t).then(function(){return Promise.resolve(s)}.bind(t))}function Ht(t){return t.a?(t=Error("Cannot clear ("+t.v+"): previous operation not complete."),t.type="stream",Promise.reject(t)):(t.a=new Tt,kt(t.a,function(){var t;t:if(0==this.c.buffered.length)t=Promise.resolve();else{try{this.c.remove(0,this.i.duration)}catch(e){t=Promise.reject(e);break t}this.b=[],t=this.f=new mt}return[t,this.h.bind(this)]}.bind(t)),zt(t))}function qt(t,e){if(t.a){var i=Error("Cannot clearAfter ("+t.v+"): previous operation not complete.");return i.type="stream",Promise.reject(i)}return t.a=new Tt,kt(t.a,function(){return[Yt(this,e),this.h.bind(this)]}.bind(t)),zt(t)}function Gt(t){return t.a?(t=t.a,t.a?t=t.a:t.f?(t.c&&t.c(),t.a=new mt,t=t.a):(t.f=!0,t=Promise.resolve())):t=Promise.resolve(),t}function zt(t){return t.a.start(),t.a.g.then(St(t,function(){this.a=null}))["catch"](St(t,function(t){return this.a=null,Promise.reject(t)}))}function Wt(t,e){try{t.c.appendBuffer(e)}catch(i){return Promise.reject(i)}return t.f=new mt,t.f}function Yt(t,e){if(0==t.c.buffered.length)return Promise.resolve();var i=Bi(t.b,e);if(-1==i||i==t.b.length-1)return Promise.resolve();try{t.c.remove(t.b[i+1].b,t.i.duration)}catch(n){return Promise.reject(n)}return t.b=t.b.slice(0,i+1),t.f=new mt,t.f}function Jt(t){return String.fromCharCode.apply(null,t)}function Qt(t){for(var e=new Uint8Array(t.length),i=0;i<t.length;++i)e[i]=t.charCodeAt(i);return e}function Xt(e){return Qt(t.atob(e.replace(/-/g,"+").replace(/_/g,"/")))}function $t(t){for(var e="",i=0;i<t.length;++i){var n=t[i].toString(16);1==n.length&&(n="0"+n),e+=n}return e}function Zt(t,e){if(!t&&!e)return!0;if(!t||!e||t.length!=e.length)return!1;for(var i=0;i<t.length;++i)if(t[i]!=e[i])return!1;return!0}function te(){this.h=this.a="",this.i=!1,this.s=this.l=null,this.v=this.g=!1,this.j=this.f="",this.c=null,this.b=[]}function ee(t){var e=new te;if(!t)return e;var i=st(t,"keySystem");if(null==i)throw Error("'keySystem' cannot be null.");e.a=i;var n=st(t,"licenseServerUrl");if(null!=n)e.h=n;else if(i)throw Error("For encrypted streaming content, 'licenseServerUrl' cannot be null or empty.");if(i=nt(t,"withCredentials"),null!=i&&(e.i=i),i=ot(t,"licensePostProcessor",Function),null!=i&&(e.l=i),i=ot(t,"licensePreProcessor",Function),null!=i&&(e.s=i),i=nt(t,"distinctiveIdentifierRequired"),null!=i&&(e.g=i),i=nt(t,"persistentStateRequired"),null!=i&&(e.v=i),i=st(t,"audioRobustness"),null!=i&&(e.f=i),i=st(t,"videoRobustness"),null!=i&&(e.j=i),i=ot(t,"serverCertificate",Uint8Array),null!=i&&(e.c=i),i=ot(t,"initData",Object)){if(t=ot(i,"initData",Uint8Array),null==t)throw Error("'initData.initData' cannot be null.");if(i=st(i,"initDataType"),null==i)throw Error("'initData.initDataType' cannot be null.");e.b.push({initData:new Uint8Array(t.buffer),initDataType:i})}return e}function ie(t,e){var i=new te;return i.a=t.a,i.h=t.h,i.i=t.i,i.l=t.l,i.s=t.s,i.g=t.g,i.v=t.v,i.f=t.f,i.j=t.j,i.c=t.c?new Uint8Array(t.c.buffer):null,ne(i,t.b),ne(i,e.b),i}function ne(t,e){var i=t.b.concat(e.map(function(t){return{initData:new Uint8Array(t.initData.buffer),initDataType:t.initDataType}}));t.b=L(i,re)}function re(t,e){return t.initDataType==e.initDataType&&Zt(t.initData,e.initData)}function se(t,e){try{var i=new oe(t,e);return Promise.resolve(i)}catch(n){return Promise.reject(n)}}function ae(t){var e=this.mediaKeys;return e&&e!=t&&ue(e,null),delete this.mediaKeys,(this.mediaKeys=t)&&ue(t,this),Promise.resolve()}function oe(t,e){this.a=this.keySystem=t;var i=!0;"org.w3.clearkey"==t&&(this.a="webkit-org.w3.clearkey",i=!1);var n,r=!1;n=document.getElementsByTagName("video"),n=n.length?n[0]:document.createElement("video");for(var s=0;s<e.length;++s){var a=e[s],o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:a.initDataTypes,sessionTypes:["temporary"]},h=!1;if(a.audioCapabilities)for(var u=0;u<a.audioCapabilities.length;++u){var l=a.audioCapabilities[u];l.contentType&&(h=!0,n.canPlayType(l.contentType.split(";")[0],this.a)&&(o.audioCapabilities.push(l),r=!0))}if(a.videoCapabilities)for(u=0;u<a.videoCapabilities.length;++u)l=a.videoCapabilities[u],l.contentType&&(h=!0,n.canPlayType(l.contentType,this.a)&&(o.videoCapabilities.push(l),r=!0));if(h||(r=n.canPlayType("video/mp4",this.a)||n.canPlayType("video/webm",this.a)),"required"==a.persistentState&&(i?(o.persistentState="required",o.sessionTypes=["persistent-license"]):r=!1),r)return void(this.b=o)}throw i="Unsupported keySystem","org.w3.clearkey"!=t&&"com.widevine.alpha"!=t||(i="None of the requested configurations were supported."),i=Error(i),i.name="NotSupportedError",i.code=DOMException.NOT_SUPPORTED_ERR,i}function he(t){this.g=t,this.b=null,this.a=new ft,this.c=[],this.f={}}function ue(t,e){t.b=e,pt(t.a),e&&(dt(t.a,e,"webkitneedkey",t.Ob.bind(t)),dt(t.a,e,"webkitkeymessage",t.Nb.bind(t)),dt(t.a,e,"webkitkeyadded",t.Lb.bind(t)),dt(t.a,e,"webkitkeyerror",t.Mb.bind(t)))}function le(t,e){var i=t.f[e];return i?i:(i=t.c.shift())?(i.sessionId=e,t.f[e]=i):null}function ce(t,e,i){yt.call(this,null),this.f=t,this.h=!1,this.a=this.b=null,this.c=e,this.g=i,this.sessionId="",this.expiration=NaN,this.closed=new mt,this.keyStatuses=new pe}function fe(t,e,i){if(t.h)return Promise.reject(Error("The session is already initialized."));t.h=!0;var n;try{if("persistent-license"==t.g)if(i)n=Qt("LOAD_SESSION|"+i);else{var r=new Uint8Array(e);n=Qt("PERSISTENT|"+Jt(r))}else n=new Uint8Array(e)}catch(s){return Promise.reject(s)}t.b=new mt;try{t.f.webkitGenerateKeyRequest(t.c,n)}catch(a){if("InvalidStateError"!=a.name)return t.b=null,Promise.reject(a);setTimeout(function(){try{this.f.webkitGenerateKeyRequest(this.c,n)}catch(t){this.b.reject(t),this.b=null}}.bind(t),10)}return t.b}function de(t,e){t.keyStatuses.Ma(e);var i=$({type:"keystatuseschange"});t.dispatchEvent(i)}function pe(){this.size=0,this.a=void 0}function be(t){this.systemIds=[],this.cencKeyIds=[],this.a=[],t=new O(new DataView(t.buffer));try{for(;B(t);){var e=t.a,i=K(t),n=K(t);if(1==i?i=F(t):0==i&&(i=t.b.byteLength-e),1886614376!=n)q(t,i-(t.a-e));else{var r=V(t);if(1<r)q(t,i-(t.a-e));else{q(t,3);var s=$t(H(t)),a=[];if(0<r)for(var o=K(t),h=0;h<o;++h){var u=$t(H(t));a.push(u)}var l=K(t);q(t,l),this.cencKeyIds.push.apply(this.cencKeyIds,a),this.systemIds.push(s),this.a.push({start:e,end:t.a-1}),t.a!=e+i&&q(t,i-(t.a-e))}}}}catch(c){}}function ye(t,e){try{var i=new ve(t,e);
return Promise.resolve(i)}catch(n){return Promise.reject(n)}}function ve(t,e){this.keySystem=t;for(var i=!1,n=0;n<e.length;++n){var r=e[n],s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"]},a=!1;if(r.audioCapabilities)for(var o=0;o<r.audioCapabilities.length;++o){var h=r.audioCapabilities[o];if(h.contentType){var a=!0,u=h.contentType.split(";")[0];MSMediaKeys.isTypeSupported(this.keySystem,u)&&(s.audioCapabilities.push(h),i=!0)}}if(r.videoCapabilities)for(o=0;o<r.videoCapabilities.length;++o)h=r.videoCapabilities[o],h.contentType&&(a=!0,u=h.contentType.split(";")[0],MSMediaKeys.isTypeSupported(this.keySystem,u)&&(s.videoCapabilities.push(h),i=!0));if(a||(i=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==r.persistentState&&(s.persistentState="required",s.sessionTypes=["persistent-license"]),i)return void(this.a=s)}throw i=Error("Unsupported keySystem"),i.name="NotSupportedError",i.code=DOMException.NOT_SUPPORTED_ERR,i}function ge(t){var e=this.mediaKeys;return e&&e!=t&&we(e,null),delete this.mediaKeys,(this.mediaKeys=t)?we(t,this):Promise.resolve()}function me(t){this.a=new MSMediaKeys(t),this.b=new ft}function we(t,e){function i(){e.msSetMediaKeys(n.a),e.removeEventListener("loadedmetadata",i)}if(pt(t.b),!e)return Promise.resolve();dt(t.b,e,"msneedkey",ke);var n=t;try{return 1<=e.readyState?e.msSetMediaKeys(t.a):e.addEventListener("loadedmetadata",i),Promise.resolve()}catch(r){return Promise.reject(r)}}function Te(t){yt.call(this,null),this.c=null,this.g=t,this.b=this.a=null,this.f=new ft,this.sessionId="",this.expiration=NaN,this.closed=new mt,this.keyStatuses=new Se}function ke(t){var e=t.initData;if(e){var i=new be(e);if(1>=i.a.length)t=e;else{var n=[];for(t=0;t<i.a.length;t++)n.push(e.subarray(i.a[t].start,i.a[t].end+1));for(e=L(n,Ee),t=i=0;t<e.length;t++)i+=e[t].length;for(i=new Uint8Array(i),t=n=0;t<e.length;t++)i.set(e[t],n),n+=e[t].length;t=i}}else t=e;t=$({type:"encrypted",initDataType:"cenc",initData:t}),this.dispatchEvent(t)}function Ee(t,e){return Zt(t,e)}function _e(t,e){t.keyStatuses.Ma(e);var i=$({type:"keystatuseschange"});t.dispatchEvent(i)}function Se(){this.size=0,this.a=void 0}function Pe(){Navigator.prototype.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(HTMLMediaElement.prototype.webkitGenerateKeyRequest?(fs=new Uint8Array([0]).buffer,Navigator.prototype.requestMediaKeySystemAccess=se,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ae,t.MediaKeys=he,t.MediaKeySystemAccess=oe):t.MSMediaKeys?(ds=new Uint8Array([0]).buffer,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ge,t.MediaKeys=me,t.MediaKeySystemAccess=ve,Navigator.prototype.requestMediaKeySystemAccess=ye):(Navigator.prototype.requestMediaKeySystemAccess=w,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=T,t.MediaKeys=k,t.MediaKeySystemAccess=E))}function Ie(t){var e;t instanceof Ie?(Ae(this,t.P),this.ca=t.ca,this.S=t.S,Ne(this,t.ia),this.O=t.O,xe(this,t.a.clone()),this.aa=t.aa):t&&(e=String(t).match(ps))?(Ae(this,e[1]||"",!0),this.ca=Ce(e[2]||""),this.S=Ce(e[3]||"",!0),Ne(this,e[4]),this.O=Ce(e[5]||"",!0),xe(this,e[6]||"",!0),this.aa=Ce(e[7]||"")):this.a=new De(null)}function Ae(t,e,i){t.P=i?Ce(e,!0):e,t.P&&(t.P=t.P.replace(/:$/,""))}function Ne(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.ia=e}else t.ia=null}function xe(t,e,i){e instanceof De?t.a=e:(i||(e=je(e,gs)),t.a=new De(e))}function Ce(t,e){return t?e?decodeURI(t):decodeURIComponent(t):""}function je(t,e,i){return"string"==typeof t?(t=encodeURI(t).replace(e,Me),i&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Me(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}function De(t){this.b=t||null}function Re(t,e,i){if(!t.a&&(t.a={},t.c=0,t.b))for(var n=t.b.split("&"),r=0;r<n.length;r++){var s=n[r].indexOf("="),a=null,o=null;0<=s?(a=n[r].substring(0,s),o=n[r].substring(s+1)):a=n[r],a=decodeURIComponent(a.replace(/\+/g," ")),o=o||"",Re(t,a,decodeURIComponent(o.replace(/\+/g," ")))}t.b=null,(n=t.a.hasOwnProperty(e)&&t.a[e])||(t.a[e]=n=[]),n.push(i),t.c++}function Le(){this.id=this.url=null,this.type="static",this.b=this.j=this.u=this.hb=null,this.h=5,this.f=this.c=this.g=null,this.i=1,this.a=[]}function Ue(){this.g=this.f=this.c=this.u=this.a=this.start=this.id=null,this.b=[]}function Oe(){this.i=this.b=this.height=this.width=this.contentType=this.lang=this.group=this.id=null,this.c=!1,this.h=this.g=this.f=this.u=null,this.j=[],this.a=[]}function Be(){this.value=null}function Ve(){this.contentType=this.lang=this.id=null}function Ke(){this.a=this.b=this.g=this.u=this.h=this.f=this.height=this.width=this.bandwidth=this.lang=this.id=null,this.c=[]}function Fe(){this.b=this.a=this.c=this.f=null}function He(){this.parsedPssh=this.psshBox=null}function qe(){this.url=null}function Ge(){this.url=null}function ze(){this.u=null,this.g=1,this.c=this.b=this.a=this.f=null}function We(){this.a=this.url=null}function Ye(){this.a=this.url=null}function Je(){this.u=null,this.f=1,this.b=this.g=null,this.i=1,this.h=null,this.a=[],this.c=null}function Qe(){this.a=this.b=null}function Xe(){this.a=1,this.b=this.i=null,this.j=1,this.c=this.g=this.f=this.h=null}function $e(){this.a=[]}function Ze(){this.c=this.a=this.b=null}function ti(t,e){this.na=t,this.end=e}function ei(t){for(var e=[],i=0;i<t.b.length;++i){var n=t.b[i];null!=n.group&&(e[n.group]=!0)}for(i=0;i<t.b.length;++i)if(n=t.b[i],null==n.group){for(var r=1;1==e[r];)++r;e[r]=!0,n.group=r}}function ii(t,e){if(!e||0===e.length)return t;for(var i=[],n=0;n<e.length;n++){var r=e[n].url;null==t||0===t.length?i.push(new Ie(r)):(r=ni(t.slice(0,1),r),i.push(r[0]))}return i}function ni(t,e){if(!e)return t;var i=new Ie(e);return t?t.map(function(t){return t.resolve(i)}):[i]}function ri(t,e,i){var n=li(i);return(e=ai(e,i.constructor.TAG_NAME))&&n.parse(t,e),n}function si(t,e,i){var n=null;return(e=ai(e,i.TAG_NAME))&&(n=new i,n.parse(t,e)),n}function ai(t,e){for(var i=null,n=0;n<t.childNodes.length;n++)if(t.childNodes[n].tagName==e){if(i)return null;i=t.childNodes[n]}return i}function oi(t,e,i){for(var n=[],r=0;r<e.childNodes.length;r++)if(e.childNodes[r].tagName==i.TAG_NAME){var s=new i;s.parse.call(s,t,e.childNodes[r]),n.push(s)}return n}function hi(t){return t=t.firstChild,t.nodeType!=Node.TEXT_NODE?null:t.nodeValue}function ui(t){return t?t.map(function(t){return t.clone()}):null}function li(t){return t?t.clone():null}function ci(t,e,i,n){return t=i(t.getAttribute(e)),null!=t?t:void 0!==n?n:null}function fi(t){return t?(t=Date.parse(t),isNaN(t)?null:Math.floor(t/1e3)):null}function di(e){if(!e)return null;var i=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(e);if(!i)return null;e=0;var n=vi(i[1]);return n&&(e+=31536e3*n),(n=vi(i[2]))&&(e+=2592e3*n),(n=vi(i[3]))&&(e+=86400*n),(n=vi(i[4]))&&(e+=3600*n),(n=vi(i[5]))&&(e+=60*n),i=t.parseFloat(i[6]),(i=isNaN(i)?null:i)&&(e+=i),e}function pi(t){var e=/([0-9]+)-([0-9]+)/.exec(t);return e?(t=vi(e[1]),null==t?null:(e=vi(e[2]),null==e?null:new ti(t,e))):null}function bi(e){return e=t.parseInt(e,10),isNaN(e)?null:e}function yi(e){return e=t.parseInt(e,10),0<e?e:null}function vi(e){return e=t.parseInt(e,10),0<=e?e:null}function gi(t){return t}function mi(t,e){this.url=t,this.b=e||new wi,this.g=this.i=this.h=0,this.a=null,this.c=new mt,this.f=null}function wi(){this.body=null,this.a=1,this.h=1e3,this.c=0,this.method="GET",this.f="arraybuffer",this.b={},this.g=this.j=!1,this.i=null}function Ti(t){ki(t),t.b.body=null,t.c.destroy(),t.c=null,t.f=null}function ki(t){t.a&&(t.a.onload=null,t.a.onreadystatechange=null,t.a.onerror=null,t.a.ontimeout=null),t.a=null}function Ei(t){var e=t.url.split("/");return Bt(t.b.i,parseInt(e[2],10),parseInt(e[3],10)).then(St(t,function(t){var e=JSON.parse(JSON.stringify(new XMLHttpRequest));return e.response=t,t=this.c,t.resolve(e),Ti(this),t}))["catch"](St(t,function(t){return Ti(this),Promise.reject(t)}))}function _i(t,e,i){return e=Error(e),e.type=i,e.status=t.a.status,e.url=t.url,e.method=t.b.method,e.body=t.b.body,e.xhr=t.a,e}function Si(e){ki(e),t.setTimeout(e.rb.bind(e),e.g*(1+.5*(2*Math.random()-1))),e.g*=2}function Pi(t,e,i,n){this.b=e,this.f=i||0,this.i=null!=n?n:null,this.c=this.a=null,this.j=t,this.h=null}function Ii(t,e){return t&&0!==t.length?t.map(function(t){return t.resolve(e)}):[e]}function Ai(t,e,i){return t.a?t.a:(e=e||new wi,(t.f||t.i)&&(e.b.Range="bytes="+(t.f+"-"+(null!=t.i?t.i:""))),t.a=Ni(t,0,e,i),t.a)}function Ni(t,e,i,n){var r=t.b[e].toString();return t.j&&(r=t.j(r,i.b)||r),t.c=new mi(r,i),n&&(t.c.f=n),r=t.c.rb().then(St(t,function(t){return this.h=this.c=this.a=null,this.h=t.a?new Ie(t.a):this.b[e],Promise.resolve(t.response)})),r=r["catch"](St(t,function(t){return this.a&&e+1<this.b.length?this.a=Ni(this,e+1,i,n):(this.a=this.c=null,Promise.reject(t))}))}function xi(t,e){this.a=new wi,this.a.f="text",this.a.a=3,this.a.c=1e3*(null!=e?e:0),this.a.g=!0,this.b=t}function Ci(t){var e=t.b;return Ai(e,t.a).then(function(t){var i;i=e.b;var n=[e.h];return(i=(t=(new DOMParser).parseFromString(t,"text/xml"))?si({hb:i,u:n},t,Le):null)?Promise.resolve(i):(i=Error("MPD parse failure."),i.type="dash",Promise.reject(i))})}function ji(t,e,i,n){for(var r=e.a,s=[],a=0;a<n;++a){var o=a+i,h=(o-1)*r.b,u=h/r.a,l=(h+r.b)/r.a,o=Mi(t,e,r.j+o-1,h);if(!o)return null;s.push(new Ui(u,l,o))}return s}function Mi(t,e,i,n){if(!e.a)return null;var r=e.a.h;return r?(i=Di(r,e.id,i,e.bandwidth,n))?(e=Ii(e.u,i),new Pi(t,e,0,null)):null:e.u?new Pi(t,e.u,0,null):null}function Di(e,i,n,r,s){var a={RepresentationID:i,Number:n,Bandwidth:r,Time:s};e=e.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)d)?\$/g,function(e,i,n){if("$$"==e)return"$";var r=a[i];return null==r?e:("RepresentationID"==i&&n&&(n=void 0),e=r.toString(),n=t.parseInt(n,10)||1,n=Math.max(0,n-e.length),Array(n+1).join("0")+e)});try{return new Ie(e)}catch(o){if(o instanceof URIError)return null;throw o}}function Ri(t,e,i){var n=0;e*=i,t=t.a,i=[];for(var r=0;r<t.length&&t[r].a;++r){var s=t[r].b,s=null!=s?s:n,a=t[r].c||0;0>a&&(a=t[r].a,a=r+1===t.length?Math.ceil((t[0].b+e-s)/a)-1:Math.ceil((t[r+1].b-s)/a)-1),0<i.length&&s!=n&&(i[i.length-1].end=s);for(var o=0;o<=a;++o)n=s+t[r].a,i.push({start:s,end:n}),s=n}return i}function Li(t,e){this.a=t,this.b=e||null}function Ui(t,e,i){this.b=t,this.a=e,this.url=i}function Oi(t,e,i){return new Ui(e,i,t.url)}function Bi(t,e){for(var i=t.length-1;0<=i;--i){var n=t[i];if(e>=n.b&&(null==n.a||e<n.a))return i}return-1}function Vi(t,e){return t.map(function(t){return Oi(t,t.b+e,null!=t.a?t.a+e:null)})}function Ki(){}function Fi(t){this.o=t,this.i=0}function Hi(t){if(0==t.o.length)throw new RangeError("SegmentIndex: There is no first SegmentReference.");return t.o[0]}function qi(t,e){if(t.i!=e.i&&(e=new Fi(Vi(e.o,t.i-e.i))),0==t.length())t.o=e.o.slice(0);else if(0!=e.length()&&null!=t.A().a&&!(null!=e.A().a&&e.A().a<t.A().a)){if(t.A().a<=Hi(e).b)var i=Oi(t.A(),t.A().b,Hi(e).b),i=t.o.slice(0,-1).concat([i]);else{var n;for(n=0;n<t.o.length&&!(t.o[n].a>=Hi(e).b);++n);t.o[n].b<Hi(e).b?(i=Oi(t.o[n],t.o[n].b,Hi(e).b),i=t.o.slice(0,n).concat([i])):(Hi(t).b>Hi(e).b||Hi(e),i=t.o.slice(0,n))}t.o=i.concat(e.o)}}function Gi(t,e,i,n){Fi.call(this,t),this.g=e,this.w=i,this.f=n,this.h=this.g.b||this.g.a.reduce(function(t,e){return null==e.a?NaN:t+e.a},0)||0,this.a=this.l=this.c=null,zi(this)}function zi(t){if(Ji(t),0!=t.length()){t.length();var e=null!=t.A().a?t.A().a:t.A().b;if(t.g.c>t.f)t.c=e;else{var i=t.f-(t.g.c+t.w.start);0>i?t.c=e:i<Math.max(t.A().b,t.A().a||0)?(t.A(),t.c=e):t.c=i}t.l=t.A().b,t.a=Hi(t).b}}function Wi(t,e){if(Yi(t,e),null==t.c||null==t.l||null==t.a)return{start:0,end:0};var i=Number.POSITIVE_INFINITY;t.h&&(i=t.h);var n=e-t.f,r=t.c+n;return null!=t.g.f&&(r=r-t.a-t.g.f,0<r&&(t.a+=r)),t.a=Math.min(t.a,i),n=t.l+n,n<t.a?{start:t.a,end:t.a}:(n=0<t.length()?null!=t.A().a?Math.min(n,t.A().a):n:t.a,n=Math.max(n,t.a),n=Math.min(n,i),{start:t.a,end:n})}function Yi(t,e){if(Ji(t),null!=t.g.f)if(null==t.c)t.length();else{for(var i=t.c+(e-t.f),n=0,r=0;r<t.o.length;++r){var s=null;if(r<t.o.length-1?s=t.o[r+1].a:(s=t.o[r],s=null!=s.a?s.a+(s.a-s.b):null),!(null!=s&&s<i-t.g.f))break;++n}0<n&&t.o.splice(0,n)}}function Ji(t){if(t.h){for(var e=0,i=t.o.length-1;0<=i&&t.o[i].b>t.h;--i)++e;0<e&&t.o.splice(-e)}}function Qi(t,e,i,n,r){var s,a=1,o=0;if(t.c>n)s=null;else{var h=t.i||0,u=t.f||0;s=i.a,s=s.b/s.a;var l=n-(t.c+e.start);0>l?s=null:(u=l-2*s-u,0>u&&(u=0),u=Math.ceil(u/s)*s,l-=s,0>l?s=null:(h=Math.floor(l/s)*s-h,0>h&&(h=0),h=Math.floor(h/s)*s,s={Ya:u/s+1,current:(h>=u?h:u)/s+1}))}if(s&&(a=s.Ya,o=s.current-s.Ya+1),a=ji(r,i,a,o),null==a)throw t=Error("Failed to generate SegmentReferences."),t.type="stream",t;Gi.call(this,a,t,e,n),this.s=i,this.v=this.b=0<this.length()?t.c+e.start+this.A().a:null,this.j=s?s.current+1:null,this.B=r}function Xi(t,e){if(null!=t.b&&null!=t.v&&null!=t.j){var i=t.s.a,i=i.b/i.a,n=Math.floor((t.v+(e-t.f)-t.b)/i);if(0!=n){var r=ji(t.B,t.s,t.j,n);Array.prototype.push.apply(t.o,Vi(r,t.i)),t.b+=n*i,t.j+=n}}}function $i(t,e,i,n,r){this.f=t,this.b=e,this.c=i,this.h=n,this.a=null,this.g=r}function Zi(t,e,i,n,r){this.c=t,this.b=e,this.g=i,this.a=null,this.h=n,this.f=r}function tn(t,e,i,n,r){this.b=t,this.c=e,this.f=i,this.h=n,this.a=null,this.g=r}function en(t){this.b=t,this.a=null}function nn(){this.C=Ts++,this.id=this.H=this.I=null,this.c=0,this.height=this.width=this.bandwidth=null,this.b=this.a="",this.f=[],this.N=!1,this.J=!0}function rn(t){var e=t.a||"";return t.b&&(e+='; codecs="'+t.b+'"'),e}function sn(){this.C=ks++,this.id=null,this.contentType=this.lang="",this.b=!1,this.m=[],this.a=[]}function an(t){for(var e=[],i=0;i<t.a.length;++i){var n=new un;n.id=t.C,n.a=t.a[i],n.contentType=t.contentType,n.b=t.m.length?rn(t.m[0]):"",e.push(n)}return e}function on(){this.id=null,this.start=0,this.b=null,this.a=[]}function hn(){this.b=!1,this.h=this.g=this.f=null,this.c=0,this.a=[]}function un(){this.id=0,this.a=null,this.b=this.contentType=""}function ln(t,e,i,n,r){yt.call(this,t),this.c=e,this.a=new Vt(i,n,r),this.w=this.G=this.b=null,this.K=!1,this.g=null,this.l=!1,this.i=null,this.s=!1,this.h=new mt,this.j=this.f=!1,this.B=0,this.L=15,this.D=!1}function cn(t,e,i){t.b&&!t.l&&(t.l=!0,vn(t),Gt(t.a).then(St(t,function(){var t=this.c.currentTime;return!e&&0<Kt(this.a,t)&&0<=Bi(this.a.b,t)?Promise.resolve():i?qt(this.a,this.c.currentTime+i):(this.D=!0,Ht(this.a))})).then(St(t,function(){this.l=!1,yn(this,0)}))["catch"](St(t,function(t){this.l=!1,this.f?(t=Z(t),this.dispatchEvent(t)):this.h.reject(t)})))}function fn(t,e,i){t=t.a;var n=t.b.length;return t=0<n?t.b[n-1]:null,null!=t?null!=t.a?i.la(t.a):null:i.la(e)||(i.length()?i.A():null)}function dn(t){if(!t.s&&null!=t.i){t.s=!0;var e=t.a,i=t.i,n=i-e.w;0!=n&&(e.b=Vi(e.b,n),e.w=i),t.h.resolve(t.i)}}function pn(t,e){var i;i=e.a.split("/")[0],i=$({type:"adaptation",bubbles:!0,contentType:i,size:"video"!=i?null:{width:e.width,height:e.height},bandwidth:e.bandwidth}),t.dispatchEvent(i)}function bn(t){var e=$({type:"ended"});t.dispatchEvent(e)}function yn(e,i){e.g=t.setTimeout(e.Kb.bind(e),i)}function vn(e){null!=e.g&&(t.clearTimeout(e.g),e.g=null)}function gn(t){this.b=t,this.a=null}function mn(t,e){yt.call(this,t),this.b=e,this.g=!0,this.h=this.f=null,this.c=new mt,this.a=null}function wn(){}function Tn(t,e,i,n,r,s,a){this.g=t,this.i=e,this.f=i,this.a=n,this.c=r,this.j=s,this.b=null,this.h=a}function kn(t){this.a=t}function En(t,e,i){for(var n=U()/1e3,r=0;r<e.a.length;++r)for(var s=e.a[r],a=0;a<s.b.length;++a){var o=s.b[a];if("text"!=o.contentType)for(var h=0;h<o.a.length;++h){var u=o.a[h],l=0,l=l+(u.g?1:0),l=l+(u.b?1:0),l=l+(u.a?1:0);0==l?(o.a.splice(h,1),--h):1!=l&&(u.g?(u.b=null,u.a=null):u.b&&(u.a=null))}}for(_n(e),r=0;r<e.a.length;++r)for(s=e.a[r],a=0;a<s.b.length;++a){for(h=o=s.b[a],u=null,l=0;l<h.a.length;++l){var c=h.a[l].f||"";u?c!=u&&(h.a.splice(l,1),--l):u=c}0==o.a.length&&(s.b.splice(a,1),--a)}for("dynamic"==e.type&&null==e.c&&(e.c=n),r=new hn,"dynamic"==e.type&&(r.b=!0,r.f=e.g,r.g=new Pi(i,e.j||e.url),r.h=e.c),r.c=e.h||5,s=0;s<e.a.length&&(a=e.a[s],null!=a.start);++s)a=Sn(t,e,a,n,i),r.a.push(a);return r}function _n(t){if(t.a.length){null==t.a[0].start&&(t.a[0].start=0);var e=function(t){return 0==t||!!t};"dynamic"==t.type&&(t.b=null),e(t.b)&&1==t.a.length&&!e(t.a[0].a)&&(t.a[0].a=t.b);for(var i=0,n=!0,r=0;r<t.a.length;++r){var s=t.a[r-1],a=t.a[r],o=t.a[r+1]||{start:t.b};!e(a.start)&&s&&e(s.start)&&e(s.a)&&(a.start=s.start+s.a),!e(a.a)&&e(o.start)&&(a.a=o.start-a.start),null!=a.start&&null!=a.a?i+=a.a:n=!1}e(t.b)||(r=t.a[t.a.length-1],n?t.b=i:e(r.start)&&e(r.a)?t.b=r.start+r.a:"dynamic"!=t.type&&(t.b=i))}}function Sn(t,e,i,n,r){var s=new on;s.id=i.id,s.start=i.start,s.b=i.a;var a=new ht;i.b.forEach(function(t){a.push(t.contentType||"",t)});for(var o=ct(a),h=0;h<o.length;++h){var u=new ht;a.get(o[h]).forEach(function(t){u.push(t.group,t)});for(var l=ct(u),c=0;c<l.length;++c){var f=new ht;u.get(l[c]).forEach(function(t){f.push(t.lang,t)});for(var d=ct(f),p=0;p<d.length;++p){var b=f.get(d[p]),b=Pn(t,e,i,b,n,r);s.a.push(b)}}}return s}function Pn(t,e,i,r,s,a){n(r.every(function(t){return t.group==r[0].group&&(t.lang||"")==(r[0].lang||"")&&(t.contentType||"")==(r[0].contentType||"")}));var o=new sn,h=r.filter(function(t){return null!=t.id});h.length==r.length&&(o.id=h.map(function(t){return t.id}).sort().reduce(function(t,e){return t+","+e})),o.lang=r[0].lang||"",o.contentType=r[0].contentType||"",o.b=r.some(function(t){return t.c});for(var h={},u=0;u<r.length;++u)for(var l=r[u],c=0;c<l.a.length;++c){var f=l.a[c],d=Nn(t,f),p=o.a.slice(0);An(d,p),0==p.length&&0<o.a.length||!(f=Cn(e,i,f,s,a))||(o.m.push(f),o.a=p,h[f.C]=l)}if(o.a.some(function(t){return""==t.a}))return o.m.forEach(function(t){t.N=!0}),o;for(t=In(r),u=0;u<o.m.length;++u)f=o.m[u],l=h[f.C],l==t&&(f.N=!0);return o}function In(t){for(var e=null,i=null,n=0;n<t.length;++n)for(var r=t[n],s=0;s<r.a.length;++s){var a=r.a[s],a=(a.width||1)*(a.height||1)*(a.bandwidth||1);(null==e||a<e)&&(e=a,i=r)}return i}function An(t,e){if(0==e.length)Array.prototype.push.apply(e,t);else for(var i=0;i<e.length;++i){for(var n=!1,r=0;r<t.length;++r){var s=e[i],a=t[r];if(s.a==a.a&&s.h==a.h&&s.i==a.i&&s.g==a.g&&s.v==a.v&&s.f==a.f&&s.j==a.j&&Zt(s.c,a.c)){n=!0,ne(e[i],t[r].b);break}}n||(e.splice(i,1),--i)}}function Nn(t,e){var i=[];if(0==e.c.length)i.push(new te);else if(t.a)for(var n=0;n<e.c.length;++n)i.push.apply(i,xn(t,e.c[n]));return i}function xn(t,e){var i=[];if(2!=t.a.length)return[];var n=t.a(e.c||"",e.f);if(!(n&&n instanceof Array))return[];for(var r=0;r<n.length;++r){var s=ee(n[r]);0==s.b.length&&e.a&&e.a.psshBox&&ne(s,[{initData:e.a.psshBox,initDataType:"cenc"}]),i.push(s)}return i}function Cn(t,e,i,n,r){if(!i.u||0===i.u.length)return null;var s=null,a=1,o=0;if(i.g)s=i.f.split("/")[1],"mp4"!=s&&"webm"!=s?s=null:(a=i.g,("webm"!=s||a.c)&&(a.a||a.b&&a.b.a)?(o=a.b,o||(o=new We,o.url=i.u,o.a=a.a?a.a.clone():null),o=Mn(o,r),a=a.c?Mn(a.c,r):null,t=new Tn(t,e,s,o,a,n,r),e=new Li(a),n=new nn,n.I=t,n.H=e,s=n):s=null),a=i.g.g,o=i.g.f;else if(i.b)s=i.b,!s.b&&!s.c&&1<s.a.length?s=null:s.b||e.a||s.c||1!=s.a.length?s.c&&0===s.c.a.length?s=null:(s=s.h?Mn(s.h,r):null,t=new Zi(t,e,i,n,r),e=new Li(s),n=new nn,n.I=t,n.H=e,s=n):s=null,a=i.b.f,o=i.b.g;else if(i.a){t:if(s=i.a,a=0+(s.f?1:0),a+=s.c?1:0,a+=s.b?1:0,0==a?a=!1:(1!=a&&(s.f?(s.c=null,s.b=null):s.c&&(s.b=null)),a=!0),a){if(a=null,s.g&&(a=(s=i.a.g)?jn(i,s,Ye):null,!a)){s=null;break t}s=a?Mn(a,r):null,a=i.a,a.f?(a=i.f.split("/")[1],"mp4"!=a&&"webm"!=a?t=null:("webm"!=a||s)&&Mi(r,i,1,0)&&(o=(o=i.a.f)?jn(i,o,We):null)?(o=Mn(o,r),t=new Tn(t,e,a,o,s,n,r)):t=null):t=a.h?a.c?new tn(t,e,i,n,r):a.b?"dynamic"!=t.type&&null==e.a?null:new $i(t,e,i,n,r):null:null,t?(e=new Li(s),n=new nn,n.I=t,n.H=e,s=n):s=null}else s=null;a=i.a.a,o=i.a.i}else"text"==i.f.split("/")[0]&&(s=new nn,s.I=new gn(new Pi(r,i.u)));if(!s)return null;for(s.id=i.id,o&&(s.c=-1*o/a),s.bandwidth=i.bandwidth,s.width=i.width,s.height=i.height,s.a=i.f||"",s.b=i.h||"",t=0;t<i.c.length;++t)e=i.c[t],e.b&&s.f.push(e.b);return s}function jn(t,e,i){return(e=Di(e,t.id,null,t.bandwidth,null))?(i=new i,i.url=Ii(t.u,e),i):null}function Mn(t,e){var i=t.url,n=0,r=null;return t.a&&(n=t.a.na,r=t.a.end),new Pi(e,i,n,r)}function Dn(){this.streamStats=null,this.droppedFrames=this.decodedFrames=NaN,this.bufferingTime=this.playTime=this.estimatedBandwidth=0,this.playbackLatency=NaN,this.bufferingHistory=[],this.bandwidthHistory=[],this.streamHistory=[]}function Rn(t,e){var i=new Ln(e);t.streamHistory.push(new Un(i)),!i.videoHeight&&t.streamStats||(t.streamStats=i)}function Ln(t){this.videoWidth=t.width,this.videoHeight=t.height,this.videoMimeType=t.a,this.videoBandwidth=t.bandwidth}function Un(t){this.timestamp=U()/1e3,this.value=t}function On(t,e){Pt.call(this,"readwrite",e),this.j=t,this.b=0}function Bn(t,e,i,n,r){for(var s=[],a=[],o=0,h=0,u=[],l=e.map(function(t){return t.I.create()}),l=Promise.all(l),c=e.map(function(t){return t.H.create()}),c=Promise.all(c),l=Promise.all([l,c]).then(function(t){s=t[0],a=t[1],o=s.reduce(function(t,e){return t+e.length()},0)}),c=0;c<e.length;++c)l=l.then(function(t){return Kn(this,e[t],s[t],a[t],o,h)}.bind(t,c)),l=l.then(function(t,e){h+=s[t].length(),u.push(e)}.bind(t,c));return l.then(St(t,function(){return Fn(jt(this))})).then(St(t,function(t){var e=new mt;i=L(i);var s={group_id:t,stream_ids:u,session_ids:i,duration:n,key_system:r.a,license_server:r.h,with_credentials:r.i,distinctive_identifier:r.g,audio_robustness:r.f,video_robustness:r.j},a=jt(this).put(s);return a.onsuccess=function(){e.resolve(t)},a.onerror=function(){e.reject(a.error)},e}))}function Vn(t,e){return Dt(jt(t),e).then(St(t,function(t){var i,n=[];for(i in t.stream_ids)n.push(qn(this,t.stream_ids[i]));return t=jt(this),n.push(t["delete"](e)),Promise.all(n)}))}function Kn(t,e,i,n,r,s){var a=[Fn(Ct(t)),Fn(xt(t).index("stream"))],a=Promise.all(a).then(St(t,function(t){return{qa:Math.max(t[0],t[1]),ja:new ArrayBuffer(0),Ja:0,o:[],Ca:null,Vb:r,ib:s}})),a=a.then(t.f.bind(t,i));return a=a.then(t.g.bind(t,e,n))}function Fn(t){var e=new mt,i=t.openCursor(null,"prev");return i.onsuccess=function(t){t.target.result?e.resolve(t.target.result.key+1):e.resolve(0)},i.onerror=function(){e.reject(i.error)},e}function Hn(t,e){var i=new Uint8Array(t.byteLength+e.byteLength);return i.set(new Uint8Array(t),0),i.set(new Uint8Array(e),t.byteLength),i.buffer}function qn(t,e){var i=new mt,n=Ct(t)["delete"](e);n.onerror=function(){i.reject(n.error)};var r=xt(t);return r.index("stream").openKeyCursor(IDBKeyRange.only(e)).onsuccess=function(t){(t=t.target.result)&&(r["delete"](t.primaryKey),t["continue"]())},r.transaction.oncomplete=function(){i.resolve()},i}function Gn(t,e,i,n,r,s){this.b=new Pi(null,[new Ie(t)]),this.a=new wi,this.a.body=e,this.a.method=i,this.a.a=3,this.a.j=n,this.a.c=1e3*(null!=s?s:0),t=r||{};for(var a in t)this.a.b[a]=t[a]}function zn(t){return Ai(t.b,t.a).then(function(t){return Promise.resolve(new Uint8Array(t))})}function Wn(t,e,i){yt.call(this,t),this.h=e,this.b=i,this.a=this.i=null,this.l=new ft,this.c=[],this.f=[],this.s=0,this.g=new mt,this.j=null,this.w=0}function Yn(e,i){return null==e.j&&(e.j=t.setTimeout(function(){var t=Error("Timeout waiting for sessions.");t.type="storage",this.g.reject(t)}.bind(e),i)),e.g}function Jn(t){return Promise.all(t.f.map(function(t){return t.remove()}))}function Qn(t,e,i){for(var n in e)i=i["catch"](function(t,e){return navigator.requestMediaKeySystemAccess(t,[e])}.bind(null,n,e[n]));return t.b.ha()&&(i=i["catch"](function(){throw Error("Either none of the requested key systems are supported or none of the requested key systems support persistent state.")})),i}function Xn(t){return t.h?t.i?t.h.setMediaKeys(t.i).then(St(t,function(){return this.h?this.a.c?this.i.setServerCertificate(this.a.c):Promise.resolve():$n()})).then(St(t,function(){if(!this.h)return $n();if(0<this.b.ua().length)Zn(this);else{for(var t=0;t<this.a.b.length;++t){var e=this.a.b[t];this.B({type:"encrypted",initDataType:e.initDataType,initData:e.initData})}0==this.a.b.length&&dt(this.l,this.h,"encrypted",this.B.bind(this))}})):Promise.resolve():$n()}function $n(){var t=Error("EmeManager destroyed");return t.type="destroy",Promise.reject(t)}function Zn(t){for(var e=t.b.ua(),i=0;i<e.length;++i){var n=tr(t),r=n.load(e[i]);t.f.push(n),r.then(St(t,function(){this.s++,this.s>=this.f.length&&this.g.resolve()}))["catch"](St(t,function(t){t=Z(t),this.dispatchEvent(t)}))}}function tr(t){var e=null;if(t.b.ha())try{e=t.i.createSession("persistent-license")}catch(i){throw Error("Persistent licenses are not supported by this key system or platform.")}else e=t.i.createSession();return dt(t.l,e,"message",t.G.bind(t)),dt(t.l,e,"keystatuseschange",t.F.bind(t)),e}function er(t,e,i,n){n=ir(i,n),zn(new Gn(n.url,n.body,n.method,i.i,n.headers,t.w)).then(St(t,function(t){return i.l&&(t=i.l(t)),e.update(t)})).then(St(t,function(){var t=$({type:"sessionReady",detail:e});this.dispatchEvent(t),this.s++,this.s>=this.f.length&&this.g.resolve()}))["catch"](St(t,function(t){t.La=e,t=Z(t),this.dispatchEvent(t)}))}function ir(e,i){var n={url:e.h,body:i.slice(0),method:"POST",headers:{}};if("com.microsoft.playready"===e.a){for(var r=String.fromCharCode.apply(null,new Uint16Array(n.body)),r=(new DOMParser).parseFromString(r,"application/xml"),s=r.getElementsByTagName("name"),a=r.getElementsByTagName("value"),o=0;o<s.length;o++)n.headers[s[o].childNodes[0].nodeValue]=a[o].childNodes[0].nodeValue;n.body=t.atob(r.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue)}if(!e.s)return n;if(e.s(n),n.url=st(n,"url"),null==n.url)throw Error("'url' cannot be null.");if(!(n.body instanceof ArrayBuffer||"string"==typeof n.body||null==n.body))throw new TypeError("'body' must be an ArrayBuffer, a string, or null.");if(n.method=st(n,"method"),"GET"!=n.method&&"POST"!=n.method)throw Error("'method' must be either 'GET' or 'POST'.");if(n.headers=ot(n,"headers",Object),null==n.headers)throw Error("'headers' cannot be null.");return n}function nr(t){yt.call(this,null),this.a=t,this.b=null,this.f=new ft,this.j=this.i=null,this.D=0,this.w=null,this.h=!1,this.g=new Dn,this.c={enableAdaptation:!0,streamBufferSize:15,liveStreamEndTimeout:15,licenseRequestTimeout:0,mpdRequestTimeout:0,segmentRequestTimeout:0,preferredLanguage:"en",restrictions:new u},this.l=1,this.F=null}function rr(e){return"text/vtt"==e?!!t.VTTCue:MediaSource.isTypeSupported(e)}function sr(){var t=Error("Player destroyed");return t.type="destroy",Promise.reject(t)}function ar(e){e.j&&(t.clearTimeout(e.j),e.j=null)}function or(e){hr(e),e.w=t.setTimeout(e.L.bind(e),100)}function hr(e){e.w&&(t.clearTimeout(e.w),e.w=null)}function ur(t){a("buffering");var e=t.g;e.bufferingTime+=o("buffering")/1e3,t.h=!1,t.dispatchEvent($({type:"bufferingEnd"}))}function lr(t){for(var e=0;e<t.length;++e)for(var i=t[e],n=0;n<i.a.length;++n){for(var r=i.a[n],s=r,a=0;a<s.m.length;++a)rr(rn(s.m[a]))||(s.m.splice(a,1),--a);0==r.m.length&&(i.a.splice(n,1),--n)}}function cr(t){for(var e=0;e<t.length;++e)for(var i=t[e],n=0;n<i.a.length;++n)i.a[n].m.sort(fr)}function fr(t,e){var i=t.bandwidth||Number.MAX_VALUE,n=e.bandwidth||Number.MAX_VALUE;return i<n?-1:i>n?1:0}function dr(t){this.a=t}function pr(t){function e(t,e){return t.concat(e)}var i=t.a.map(function(t){return t.a}).reduce(e,[]).map(function(t){return t.m}).reduce(e,[]);return t=i.map(function(t){return t.I.create()}),Promise.all(t).then(function(t){for(var e={},n=0;n<i.length;++n)e[i[n].C]=t[n];return Promise.resolve(e)})}function br(t,e,i,n,r){var s=new ht;t.a.forEach(function(t,e){s.push(t.id||""+e,t)});var a=new ht;for(e.a.forEach(function(t,e){a.push(t.id||""+e,t)}),t=ct(s),e=0;e<t.length;++e){var o=t[e],h=s.get(o);1<h.length||(o=a.get(o))&&0!=o.length&&1==o.length&&(yr(h[0],o[0],i,n,r),h[0].b=o[0].b)}}function yr(t,e,i,n,r){var s=new ht;t.a.forEach(function(t,e){s.push(t.id||""+e,t)});var a=new ht;for(e.a.forEach(function(t,e){a.push(t.id||""+e,t)}),t=ct(s),e=0;e<t.length;++e){var o=t[e],h=s.get(o);1<h.length||(o=a.get(o))&&0!=o.length&&1==o.length&&vr(h[0],o[0],i,n,r)}}function vr(t,e,i,n,r){var s=new ht;t.m.forEach(function(t,e){s.push(t.id||""+e,t)});var a=new ht;e.m.forEach(function(t,e){a.push(t.id||""+e,t)}),e={};for(var o=ct(s),h=0;h<o.length;++h){var u=o[h];e[u]=u;var l=s.get(u);1<l.length||((u=a.get(u))&&0!=u.length?1==u.length&&(gr(l[0],u[0],i,n),l[0].H=u[0].H,u[0].H=null,l[0].c=u[0].c):(r.push(l[0]),t.m.splice(t.m.indexOf(l[0]),1)))}for(o=ct(a),h=0;h<o.length;++h)u=o[h],e[u]||(e[u]=u,u=a.get(u),t.m.push(u[0]))}function gr(t,e,i,n){t=i[t.C],e=n[e.C],t.length(),t.Ha(e)&&t.length()}function mr(){this.a=this.b=null,this.f=new ft,this.c=Number.POSITIVE_INFINITY,this.i=!0,this.g=!1}function wr(t){var e=t.a.ma();if(0==e.length)return null;e.sort(b);var i;t:{i=t.a.pa();for(var n=0;n<i.length;++n)if(i[n].active){i=i[n];break t}i=null}i=i?i.bandwidth:0,t=t.b.getBandwidth();for(var n=e[0],r=0;r<e.length;++r){var s=e[r],a=r+1<e.length?e[r+1]:{bandwidth:Number.POSITIVE_INFINITY};if(s.bandwidth&&(a=(a.bandwidth+i)/.85,t>=(s.bandwidth+i)/.95&&t<=a&&(n=s,n.active)))break}return n}function Tr(t,e,i){yt.call(this,null),this.f=t,this.c=e,this.b=ee(i),this.a=null}function kr(t,e,i){yt.call(this,null),this.a=t,this.Z=e,this.i=new ft,this.g=new MediaSource,this.f=null,this.da=0,this.b=new ht,this.G=i,this.G.initialize(e,this),this.L=!1,this.K="en",this.fa=!1,this.U=null,this.B=new mt,this.h=new u,this.D=null,this.Va=1,this.c={},this.ea=new mt,this.Ta=0,this.Ua=15,this.w=null,this.Ra=this.Sa=!1,this.s={},this.$=this.Y=this.V=null,this.F={}}function Er(e,i){if(null!=e.a.f){var n=Math.max(e.a.f,3),n=Math.max(n-i,0);e.V=t.setTimeout(e.gb.bind(e,!1),1e3*n)}}function _r(t,e){var i=e.a.split("/")[0],n=t.c[i];if(n&&n.oa()==e){var r=t.b.get(e.a.split("/")[0]).map(function(t){return t.m}).reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return t.N&&t.J});if(0==r.length)return i=Error("All usable streams have been removed from the manifest."),i.type="app",i=Z(i),void t.dispatchEvent(i);t.s[i].Pa==e&&delete t.s[i],n.ra(r[0],!0),e.destroy()}e.destroy()}function Sr(t){if(t.h){for(var e=!1,i=0;i<t.a.a.length;++i)for(var n=t.a.a[i],r=0;r<n.a.length;++r){var s=n.a[r];if("video"==s.contentType)for(var a=0;a<s.m.length;++a){var o=s.m[a],h=o.J;o.J=!0,t.h.maxWidth&&o.width>t.h.maxWidth&&(o.J=!1),t.h.maxHeight&&o.height>t.h.maxHeight&&(o.J=!1),t.h.minHeight&&o.height<t.h.minHeight&&(o.J=!1),t.h.maxBandwidth&&o.bandwidth>t.h.maxBandwidth&&(o.J=!1),t.h.minBandwidth&&o.bandwidth<t.h.minBandwidth&&(o.J=!1),h!=o.J&&(e=!0)}}0!=ut(t.b).length&&e&&(Pr(t),0<t.ma().length||(e=Error("The application has restricted all video tracks!"),e.type="app",e=Z(e),t.dispatchEvent(e)))}}function Pr(t){var e=$({type:"trackschanged",bubbles:!0});t.dispatchEvent(e)}function Ir(t,e,i,n,r){if(!t.b.a.hasOwnProperty(e)||!t.c[e])return!1;for(var s=t.b.get(e),a=0;a<s.length;++a)for(var o=s[a],h=0;h<o.m.length;++h){var u=o.m[h];if(u.C==i)return!(!u.N||!u.J)&&("text"==e||t.Ra?(Rn(t.U,u),t.c[e].ra(u,n,r),!0):(i=t.s[e],t.s[e]={Pa:u,Wa:null!=i&&i.Wa||n,Xa:null!=i&&i.Xa||r},!0))}return!1}function Ar(t,e){for(var i=0;2>=i;++i)for(var n=0;n<e.length;++n){var r=e[n];if(tt(i,t.K,r.lang))return e.splice(n,1),void e.splice(0,0,r)}for(n=0;n<e.length;++n)if(r=e[n],r.b){e.splice(n,1),e.splice(0,0,r);break}}function Nr(e){for(var i=[],n=["audio","video","text"],r=0;r<n.length;++r){var s=n[r];e.b.a.hasOwnProperty(s)&&i.push(e.b.get(s)[0])}for(var a=xr(e,i),r=0;r<n.length;++r)if(s=n[r],e.b.a.hasOwnProperty(s)&&!a[s])return e=Error("Unable to select an initial "+s+" stream: all "+s+" streams have been restricted (by the application or by the key system)."),
e.type="stream",Promise.reject(e);return i=it(a).map(function(t){return t.I.create()}),Promise.all(i).then(St(e,function(t){return t.every(function(t){return t.length()})&&(t=Br(this,t))?Cr(this,a)?(this.G.start(),Mr(this,a,t),Promise.resolve()):(t=Error("Failed to create Stream objects."),t.type="stream",Promise.reject(t)):(t=Error("Some streams are not available."),t.type="stream",Promise.reject(t))}))["catch"](St(e,function(e){if("aborted"!=e.type)return Object.keys(this.c),this.a.b?(U()<this.a.h?(e=Math.max(this.a.h-Date.now()/1e3,3),this.V=t.setTimeout(this.gb.bind(this,!0),1e3*e)):Er(this,0),Promise.resolve()):Promise.reject(e)}))}function xr(t,e){for(var i={},n=0;n<e.length;++n){var r=e[n],s=null;if("video"==r.contentType){var a=t.G.getInitialVideoTrackId();if(null==a)continue;if(s=r.m.filter(function(t){return t.C==a}),0==s.length)continue;s=s[0]}else if("audio"==r.contentType){if(s=r.m.filter(function(t){return t.N&&t.J}),0==s.length)continue;s=r.m[Math.floor(s.length/2)]}else 0<r.m.length&&(s=r.m[0]);i[r.contentType]=s}return i}function Cr(t,e){var i,n={};for(i in e){var r=e[i],r="text"==i?new mn(t,t.f):jr(t,r);if(!r)return it(n).forEach(function(t){t.destroy()}),!1;n[i]=r}return t.c=n,!0}function jr(t,e){var i=new ln(t,t.f,t.g,rn(e),t.Z);return i.F(t.F),i}function Mr(t,e,i){t.Va=t.f.playbackRate,t.f.playbackRate=0,Rr(t,i);var n;t.$&&t.$<=i.end&&t.$>=i.start?n=t.$:t.a.b?(n=i.end,t.Sa=!0):n=i.start,dt(t.i,t.f,"seeking",t.Gb.bind(t)),t.f.currentTime!=n&&(t.f.currentTime=n,t.D=n),Lr(t,i.start,i.end),i=[];for(var r in t.c){n=t.c[r],i.push(n.sb(t.ea)),dt(t.i,n,"ended",t.Hb.bind(t));var s=e[r];Rn(t.U,s),n.ra(s,!1)}Promise.all(i).then(t.tb.bind(t))["catch"](St(t,function(t){"destroy"!=t.type&&(t=Z(t),this.dispatchEvent(t))})),t.Na(t.fa)}function Dr(t,e,i){(e=Br(t,e))&&(Rr(t,e),Lr(t,e.start,e.end)),0!=i&&(i=t.f.currentTime+i,t.f.currentTime=i,t.D=i),t.Sa&&e&&(t.f.currentTime=e.end),t.f.playbackRate=t.Va,t.a.b&&null!=t.a.f&&Er(t,0),Vr(t),t.ea.resolve()}function Rr(t,e){if(t.a.b)isNaN(t.g.duration)&&(t.g.duration=e.end+2592e3);else if(isNaN(t.g.duration)||e.end>t.g.duration){t.g.duration=e.end;for(var i=0;i<t.g.sourceBuffers.length;++i)t.g.sourceBuffers[i].appendWindowEnd=e.end}}function Lr(t,e,i){e=$({type:"seekrangechanged",bubbles:!0,start:e,end:i}),t.dispatchEvent(e)}function Ur(t,e,i,n){if(e>=i-.01)return!1;if(e=0,t.a.b){e=.5;for(var r in t.c)if(!t.c[r].kb(i+e)){e=t.a.c;break}}return t.f.currentTime=Math.min(i+e,n),!0}function Or(t){return it(t.c).map(function(t){return t.bb()}).filter(function(t){return null!=t})}function Br(t,e){for(var i=0,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,s=0;s<e.length;++s){var a=e[s].Ea(),i=Math.max(i,a.start);null!=a.end&&(n=Math.min(n,a.end)),e[s].length()&&(r=Math.min(r,e[s].A().a))}if(n==Number.POSITIVE_INFINITY){if(n=t.a.a[0],!n.b)return null;n=(n.start||0)+n.b}return t.a.b&&(n=Math.max(n-t.a.c,i)),i>n?null:{start:i,end:n,A:r}}function Vr(e){e.a.b&&(e.Y=t.setTimeout(e.Jb.bind(e),1e3))}function Kr(t){for(var e in t.c)t.c[e].F(t.F)}function Fr(t,e,i,n){i||(i=new gt),n||(n=new mr),kr.call(this,null,i,n),this.za=t,this.l=null,this.M=e,this.R=[],this.ga=[],this.ta=[],this.j=null}function Hr(t,e,i){e||(e=new gt),i||(i=new mr),kr.call(this,null,e,i),this.R=t,this.M=[],this.timeoutMs=3e4,this.l={},this.j=this.ga=null}function qr(t,e,i,n){var r=new On(t.Z,t);return null!=t.l.segmentRequestTimeout&&(r.b=Number(t.l.segmentRequestTimeout)),It(r).then(St(t,function(){return Bn(r,e,this.M,n,i)})).then(function(t){return At(r),Promise.resolve(t)})["catch"](function(t){return At(r),Promise.reject(t)})}function Gr(t){var e=new On(null,null);return It(e).then(St(t,function(){return Vn(e,this.R)})).then(function(){return At(e),Promise.resolve()})["catch"](function(t){return At(e),Promise.reject(t)})}function zr(e){var i=document.createElement("video");i.src=t.URL.createObjectURL(e.g);var n=new Wn(null,i,e);return null!=e.l.licenseRequestTimeout&&(n.w=Number(e.l.licenseRequestTimeout)),e.X().then(function(){return n.initialize()}).then(St(e,function(){return Yn(n,this.timeoutMs)})).then(function(){return Jn(n)}).then(St(e,function(){return n.destroy(),this.destroy(),Promise.resolve()}))["catch"](St(e,function(t){return n.destroy(),this.destroy(),Promise.reject(t)}))}var Wr,Yr=this;r("error"),r("warn"),r("info"),r("log"),r("debug");var Jr=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,Qr={};e("shaka.player.AudioTrack.compare",function(t,e){return t.lang<e.lang?-1:t.lang>e.lang?1:t.bandwidth<e.bandwidth?-1:t.bandwidth>e.bandwidth?1:0}),u.prototype.clone=function(){var t=new u;return t.maxHeight=this.maxHeight,t.minHeight=this.minHeight,t.maxWidth=this.maxWidth,t.maxBandwidth=this.maxBandwidth,t.minBandwidth=this.minBandwidth,t},e("shaka.player.TextStyle",l),l.prototype.a=function(){var e=t.localStorage.getItem("ShakaPlayerTextStyle");if(e){var i;try{i=JSON.parse(e)}catch(n){return}if(i&&"object"==typeof i){var r,e=i;for(r in e)r in this&&(this[r]=e[r])}}},l.prototype.load=l.prototype.a,l.prototype.b=function(){t.localStorage.setItem("ShakaPlayerTextStyle",JSON.stringify(this))},l.prototype.store=l.prototype.b;var Xr=[255,255,255],$r=[0,0,0];l.StandardColors={WHITE:Xr,BLACK:$r,RED:[255,0,0],GREEN:[0,255,0],BLUE:[0,0,255],YELLOW:[255,255,0],MAGENTA:[255,0,255],CYAN:[0,255,255]};var Zr=1;l.StandardOpacities={OPAQUE:Zr,SEMI_HIGH:.75,SEMI_LOW:.25,TRANSPARENT:0};var ts=[];l.EdgeStyles={NONE:ts,RAISED:[[34,34,34,1,1,0],[34,34,34,2,2,0],[34,34,34,3,3,0]],DEPRESSED:[[204,204,204,1,1,0],[204,204,204,0,1,0],[34,34,34,-1,-1,0],[34,34,34,0,-1,0]],UNIFORM:[[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4]],DROP:[[34,34,34,2,2,3],[34,34,34,2,2,4],[34,34,34,2,2,5]]},e("shaka.player.TextTrack.compare",function(t,e){return t.lang<e.lang?-1:t.lang>e.lang?1:0}),e("shaka.player.VideoTrack.compare",b),e("shaka.polyfill.CustomEvent.install",y),e("shaka.polyfill.Fullscreen.install",g),k.prototype.createSession=function(){},k.prototype.setServerCertificate=function(){},E.prototype.getConfiguration=function(){},E.prototype.createMediaKeys=function(){};var es=0;e("shaka.polyfill.Promise.install",S),_.prototype.then=function(t,e){var i=new _;switch(this.ba){case 1:x(this,i,t);break;case 2:x(this,i,e);break;case es:this.c.push({Ia:i,Ba:t}),this.b.push({Ia:i,Ba:e})}return i},_.prototype.then=_.prototype.then,_.prototype["catch"]=function(t){return this.then(void 0,t)},_.prototype["catch"]=_.prototype["catch"],_.prototype.W=function(t){if(this.ba==es){for(this.wa=t,this.ba=1,t=0;t<this.c.length;++t)x(this,this.c[t].Ia,this.c[t].Ba);this.c=[],this.b=[]}},_.prototype.a=function(t){if(this.ba==es){for(this.wa=t,this.ba=2,t=0;t<this.b.length;++t)x(this,this.b[t].Ia,this.b[t].Ba);this.c=[],this.b=[]}};var is=null,ns=[];e("shaka.polyfill.VideoPlaybackQuality.install",D);var rs,ss=0,as=1,os={"output-restricted":"The required output protection is not available.","output-not-allowed":"The required output protection is not available.",expired:"The decryption key has expired.","internal-error":"The key system has encountered an unspecified error."};Q.prototype.sample=function(t,e){var i=Math.pow(this.c,t);this.b=e*(1-i)+i*this.b,this.a+=t};var hs=1,us=2,ls={aar:"aa",abk:"ab",afr:"af",aka:"ak",alb:"sq",amh:"am",ara:"ar",arg:"an",arm:"hy",asm:"as",ava:"av",ave:"ae",aym:"ay",aze:"az",bak:"ba",bam:"bm",baq:"eu",bel:"be",ben:"bn",bih:"bh",bis:"bi",bod:"bo",bos:"bs",bre:"br",bul:"bg",bur:"my",cat:"ca",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cor:"kw",cos:"co",cre:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",div:"dv",dut:"nl",dzo:"dz",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",ful:"ff",geo:"ka",ger:"de",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gre:"el",grn:"gn",guj:"gu",hat:"ht",hau:"ha",heb:"he",her:"hz",hin:"hi",hmo:"ho",hrv:"hr",hun:"hu",hye:"hy",ibo:"ig",ice:"is",ido:"io",iii:"ii",iku:"iu",ile:"ie",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",jav:"jv",jpn:"ja",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",khm:"km",kik:"ki",kin:"rw",kir:"ky",kom:"kv",kon:"kg",kor:"ko",kua:"kj",kur:"ku",lao:"lo",lat:"la",lav:"lv",lim:"li",lin:"ln",lit:"lt",ltz:"lb",lub:"lu",lug:"lg",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",mkd:"mk",mlg:"mg",mlt:"mt",mon:"mn",mri:"mi",msa:"ms",mya:"my",nau:"na",nav:"nv",nbl:"nr",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nob:"nb",nor:"no",nya:"ny",oci:"oc",oji:"oj",ori:"or",orm:"om",oss:"os",pan:"pa",per:"fa",pli:"pi",pol:"pl",por:"pt",pus:"ps",que:"qu",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sin:"si",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",sqi:"sq",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swe:"sv",tah:"ty",tam:"ta",tat:"tt",tel:"te",tgk:"tg",tgl:"tl",tha:"th",tib:"bo",tir:"ti",ton:"to",tsn:"tn",tso:"ts",tuk:"tk",tur:"tr",twi:"tw",uig:"ug",ukr:"uk",urd:"ur",uzb:"uz",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xho:"xh",yid:"yi",yor:"yo",zha:"za",zho:"zh",zul:"zu"};ht.prototype.push=function(t,e){this.a.hasOwnProperty(t)?this.a[t].push(e):this.a[t]=[e]},ht.prototype.set=function(t,e){this.a[t]=e},ht.prototype.get=function(t){return(t=this.a[t])?t.slice():null},ft.prototype.destroy=function(){pt(this),this.a=null},ft.prototype.sa=function(t,e){for(var i=this.a.get(e)||[],n=0;n<i.length;++n){var r=i[n];r.target==t&&(r.sa(),lt(this.a,e,r))}},bt.prototype.sa=function(){this.target&&(this.target.removeEventListener(this.type,this.a,!1),this.a=this.target=null)},e("shaka.util.FakeEventTarget",yt),yt.prototype.addEventListener=function(t,e,i){i||this.ya.push(t,e)},yt.prototype.removeEventListener=function(t,e,i){i||lt(this.ya,t,e)},yt.prototype.dispatchEvent=function(t){if(t.hasOwnProperty("srcElement")||(delete t.srcElement,Object.defineProperty(t,"srcElement",{get:function(){return null}})),t.hasOwnProperty("target"))t.target=this;else{delete t.target;var e=this;Object.defineProperty(t,"target",{get:function(){return e},set:function(t){e=t}})}if(t.hasOwnProperty("currentTarget"))t.currentTarget=null;else{delete t.currentTarget;var i=null;Object.defineProperty(t,"currentTarget",{get:function(){return i},set:function(t){i=t}})}return vt(this,t)},i(gt,yt),e("shaka.util.EWMABandwidthEstimator",gt),gt.prototype.sample=function(t,e){if(!(65536>e)){t=Math.max(t,50);var i=8e3*e/t,n=t/1e3;this.a.sample(n,i),this.c.sample(n,i),this.dispatchEvent($({type:"bandwidth"})),this.b=Date.now()}},gt.prototype.getBandwidth=function(){return.5>this.a.a?5e5:Math.min(X(this.a),X(this.c))},gt.prototype.getDataAge=function(){return(Date.now()-this.b)/1e3},gt.prototype.supportsCaching=function(){return!1},mt.prototype.destroy=function(){this["catch"](function(){});var t=Error("Destroyed!");t.type="destroy",this.reject(t)},Tt.prototype.start=function(){if(this.f)throw Error("Task already started!");this.f=!0,this.b.unshift(function(){}),Et(this,void 0)},Tt.prototype.end=function(){this.b.splice(1)},i(Pt,yt),i(Rt,Pt);var cs=1/60;Vt.prototype.destroy=function(){Gt(this)["catch"](function(){}),this.f&&this.f.destroy(),this.a=this.f=null,this.g&&(At(this.g),this.g=null),this.b=null,this.j.destroy(),this.i=this.c=this.j=null},Vt.prototype.h=function(){this.f&&"open"==this.i.readyState&&this.c.abort()},Vt.prototype.B=function(){this.f&&(this.f.resolve(),this.f=null)},e("shaka.util.Uint8ArrayUtils.toString",Jt),e("shaka.util.Uint8ArrayUtils.fromString",Qt),e("shaka.util.Uint8ArrayUtils.toBase64",function(e,i){var n=void 0==i||i,r=t.btoa(Jt(e)).replace(/\+/g,"-").replace(/\//g,"_");return n?r:r.replace(/=*$/,"")}),e("shaka.util.Uint8ArrayUtils.fromBase64",Xt),e("shaka.util.Uint8ArrayUtils.fromHex",function(e){for(var i=new Uint8Array(e.length/2),n=0;n<e.length;n+=2)i[n/2]=t.parseInt(e.substr(n,2),16);return i}),e("shaka.util.Uint8ArrayUtils.toHex",$t),oe.prototype.createMediaKeys=function(){var t=new he(this.a);return Promise.resolve(t)},oe.prototype.getConfiguration=function(){return this.b},Wr=he.prototype,Wr.createSession=function(t){var e=t||"temporary";if("temporary"!=e&&"persistent-license"!=e)throw new TypeError("Session type "+t+" is unsupported on this platform.");return t=this.b||document.createElement("video"),t.src||(t.src="about:blank"),e=new ce(t,this.g,e),this.c.push(e),e},Wr.setServerCertificate=function(){return Promise.reject(Error("setServerCertificate not supported on this platform."))},Wr.Ob=function(t){t=$({type:"encrypted",initDataType:"webm",initData:t.initData}),this.b.dispatchEvent(t)},Wr.Nb=function(t){var e=le(this,t.sessionId);e&&(t=$({type:"message",messageType:void 0==e.keyStatuses.Fa()?"licenserequest":"licenserenewal",message:t.message}),e.b&&(e.b.resolve(),e.b=null),e.dispatchEvent(t))},Wr.Lb=function(t){(t=le(this,t.sessionId))&&(de(t,"usable"),t.a&&t.a.resolve(),t.a=null)},Wr.Mb=function(t){var e=le(this,t.sessionId);if(e){var i=Error("EME v0.1b key error");i.errorCode=t.errorCode,i.errorCode.systemCode=t.systemCode,!t.sessionId&&e.b?(i.method="generateRequest",45==t.systemCode&&(i.message="Unsupported session type."),e.b.reject(i),e.b=null):t.sessionId&&e.a?(i.method="update",e.a.reject(i),e.a=null):(i=t.systemCode,t.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?de(e,"output-restricted"):1==i?de(e,"expired"):de(e,"internal-error"))}},i(ce,yt),Wr=ce.prototype,Wr.Qa=function(t,e){if(this.a)this.a.then(this.Qa.bind(this,t,e))["catch"](this.Qa.bind(this,t,e));else{this.a=t;var i,n;"webkit-org.w3.clearkey"==this.c?(i=Jt(new Uint8Array(e)),n=JSON.parse(i),"oct"!=n.keys[0].kty&&(this.a.reject(Error("Response is not a valid JSON Web Key Set.")),this.a=null),i=Xt(n.keys[0].k),n=Xt(n.keys[0].kid)):(i=new Uint8Array(e),n=null);try{this.f.webkitAddKey(this.c,i,n,this.sessionId)}catch(r){this.a.reject(r),this.a=null}}},Wr.generateRequest=function(t,e){return fe(this,e,null)},Wr.load=function(t){return"persistent-license"==this.g?fe(this,null,t):Promise.reject(Error("Not a persistent session."))},Wr.update=function(t){var e=new mt;return this.Qa(e,t),e},Wr.close=function(){if("persistent-license"!=this.g){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;this.f.webkitCancelKeyRequest(this.c,this.sessionId)}return this.closed.resolve(),this.closed},Wr.remove=function(){return"persistent-license"!=this.g?Promise.reject(Error("Not a persistent session.")):this.close()};var fs;Wr=pe.prototype,Wr.Ma=function(t){this.size=void 0==t?0:1,this.a=t},Wr.Fa=function(){return this.a},Wr.forEach=function(t){this.a&&t(fs,this.a)},Wr.get=function(t){if(this.has(t))return this.a},Wr.has=function(t){var e=fs;return!(!this.a||!Zt(new Uint8Array(t),new Uint8Array(e)))},ve.prototype.createMediaKeys=function(){var t=new me(this.keySystem);return Promise.resolve(t)},ve.prototype.getConfiguration=function(){return this.a},me.prototype.createSession=function(t){if("temporary"!=(t||"temporary"))throw new TypeError("Session type "+t+" is unsupported on this platform.");return new Te(this.a)},me.prototype.setServerCertificate=function(){return Promise.reject(Error("setServerCertificate not supported on this platform."))},i(Te,yt),Wr=Te.prototype,Wr.generateRequest=function(t,e){this.a=new mt;try{this.c=this.g.createSession("video/mp4",new Uint8Array(e),null),dt(this.f,this.c,"mskeymessage",this.Bb.bind(this)),dt(this.f,this.c,"mskeyadded",this.zb.bind(this)),dt(this.f,this.c,"mskeyerror",this.Ab.bind(this)),_e(this,"status-pending")}catch(i){this.a.reject(i)}return this.a},Wr.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},Wr.update=function(t){this.b=new mt;try{this.c.update(new Uint8Array(t))}catch(e){this.b.reject(e)}return this.b},Wr.close=function(){try{this.c.close(),this.closed.resolve(),pt(this.f)}catch(t){this.closed.reject(t)}return this.closed},Wr.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},Wr.Bb=function(t){this.a&&(this.a.resolve(),this.a=null),t=$({type:"message",messageType:void 0==this.keyStatuses.Fa()?"licenserequest":"licenserenewal",message:t.message.buffer}),this.dispatchEvent(t)},Wr.zb=function(){this.a?(this.a.resolve(),this.a=null):this.b&&(_e(this,"usable"),this.b.resolve(),this.b=null)},Wr.Ab=function(){var t=Error("EME v20140218 key error");if(t.errorCode=this.c.error,null!=this.a)this.a.reject(t),this.a=null;else if(null!=this.b)this.b.reject(t),this.b=null;else switch(this.c.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:_e(this,"output-not-allowed");default:_e(this,"internal-error")}};var ds;Wr=Se.prototype,Wr.Ma=function(t){this.size=void 0==t?0:1,this.a=t},Wr.Fa=function(){return this.a},Wr.forEach=function(t){this.a&&t(ds,this.a)},Wr.get=function(t){if(this.has(t))return this.a},Wr.has=function(t){var e=ds;return!(!this.a||!Zt(new Uint8Array(t),new Uint8Array(e)))},e("shaka.polyfill.MediaKeys.install",Pe),e("shaka.polyfill.installAll",function(){y(),g(),D(),S(),Pe()});var ps=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;Wr=Ie.prototype,Wr.P="",Wr.ca="",Wr.S="",Wr.ia=null,Wr.O="",Wr.aa="",Wr.toString=function(){var t=[],e=this.P;if(e&&t.push(je(e,bs,!0),":"),e=this.S){t.push("//");var i=this.ca;i&&t.push(je(i,bs,!0),"@"),t.push(encodeURIComponent(e).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e=this.ia,null!=e&&t.push(":",String(e))}return(e=this.O)&&(this.S&&"/"!=e.charAt(0)&&t.push("/"),t.push(je(e,"/"==e.charAt(0)?vs:ys,!0))),(e=this.a.toString())&&t.push("?",e),(e=this.aa)&&t.push("#",je(e,ms)),t.join("")},Wr.resolve=function(t){var e=this.clone();"data"===e.P&&(e=new Ie);var i=!!t.P;i?Ae(e,t.P):i=!!t.ca,i?e.ca=t.ca:i=!!t.S,i?e.S=t.S:i=null!=t.ia;var n=t.O;if(i)Ne(e,t.ia);else if(i=!!t.O){if("/"!=n.charAt(0))if(this.S&&!this.O)n="/"+n;else{var r=e.O.lastIndexOf("/");-1!=r&&(n=e.O.substr(0,r+1)+n)}if(".."==n||"."==n)n="";else if(-1!=n.indexOf("./")||-1!=n.indexOf("/.")){for(var r=0==n.lastIndexOf("/",0),n=n.split("/"),s=[],a=0;a<n.length;){var o=n[a++];"."==o?r&&a==n.length&&s.push(""):".."==o?((1<s.length||1==s.length&&""!=s[0])&&s.pop(),r&&a==n.length&&s.push("")):(s.push(o),r=!0)}n=s.join("/")}}return i?e.O=n:i=""!==t.a.toString(),i?xe(e,t.a.clone()):i=!!t.aa,i&&(e.aa=t.aa),e},Wr.clone=function(){return new Ie(this)};var bs=/[#\/\?@]/g,ys=/[\#\?:]/g,vs=/[\#\?]/g,gs=/[\#\?@]/g,ms=/#/g;De.prototype.a=null,De.prototype.c=null,De.prototype.toString=function(){if(this.b)return this.b;if(!this.a)return"";var t,e=[];for(t in this.a)for(var i=encodeURIComponent(t),n=this.a[t],r=0;r<n.length;r++){var s=i;""!==n[r]&&(s+="="+encodeURIComponent(n[r])),e.push(s)}return this.b=e.join("&")},De.prototype.clone=function(){var t=new De;if(t.b=this.b,this.a){var e,i={};for(e in this.a)i[e]=this.a[e].concat();t.a=i,t.c=this.c}return t},ze.prototype.clone=function(){var t=new ze;return t.u=ui(this.u),t.g=this.g,t.f=this.f,t.a=li(this.a),t.b=li(this.b),t.c=li(this.c),t},We.prototype.clone=function(){var t=new We;return t.url=ui(this.url),t.a=li(this.a),t},Ye.prototype.clone=function(){var t=new Ye;return t.url=ui(this.url),t.a=li(this.a),t},Je.prototype.clone=function(){var t=new Je;return t.u=ui(this.u),t.f=this.f,t.g=this.g,t.b=this.b,t.i=this.i,t.h=li(this.h),t.a=ui(this.a)||[],t.c=li(this.c),t},Qe.prototype.clone=function(){var t=new Qe;return t.b=ui(this.b),t.a=li(this.a),t},Xe.prototype.clone=function(){var t=new Xe;return t.a=this.a,t.i=this.i,t.b=this.b,t.j=this.j,t.h=this.h,t.f=this.f,t.g=this.g,t.c=li(this.c),t},$e.prototype.clone=function(){var t=new $e;return t.a=ui(this.a)||[],t},Ze.prototype.clone=function(){var t=new Ze;return t.b=this.b,t.a=this.a,t.c=this.c,t},ti.prototype.clone=function(){return new ti(this.na,this.end)},Le.TAG_NAME="MPD",Ue.TAG_NAME="Period",Oe.TAG_NAME="AdaptationSet",Be.TAG_NAME="Role",Ve.TAG_NAME="ContentComponent",Ke.TAG_NAME="Representation",Fe.TAG_NAME="ContentProtection",He.TAG_NAME="cenc:pssh",qe.TAG_NAME="BaseURL",Ge.TAG_NAME="Location",ze.TAG_NAME="SegmentBase",We.TAG_NAME="RepresentationIndex",Ye.TAG_NAME="Initialization",Je.TAG_NAME="SegmentList",Qe.TAG_NAME="SegmentURL",Xe.TAG_NAME="SegmentTemplate",$e.TAG_NAME="SegmentTimeline",Ze.TAG_NAME="S",Le.prototype.parse=function(t,e){this.url=t.hb,this.id=ci(e,"id",gi),this.type=ci(e,"type",gi)||"static",this.b=ci(e,"mediaPresentationDuration",di),this.h=ci(e,"minBufferTime",di,this.h),this.g=ci(e,"minimumUpdatePeriod",di,this.g),this.c=ci(e,"availabilityStartTime",fi,this.c),this.f=ci(e,"timeShiftBufferDepth",di,this.f),this.i=ci(e,"suggestedPresentationDelay",di,this.i);var i=t.u,n=oi(this,e,qe);this.u=ii(i,n),(n=si(this,e,Ge))&&(this.j=ni(i,n.url)),this.a=oi(this,e,Ue)},Ue.prototype.parse=function(t,e){this.id=ci(e,"id",gi),this.start=ci(e,"start",di),this.a=ci(e,"duration",di);var i=oi(this,e,qe);this.u=ii(t.u,i),this.c=si(this,e,ze),this.f=si(this,e,Je),this.g=si(this,e,Xe),this.b=oi(this,e,Oe),ei(this)},Oe.prototype.parse=function(t,e){var i=si(this,e,Ve)||{},n=si(this,e,Be);this.id=ci(e,"id",gi),this.group=ci(e,"group",vi),this.lang=ci(e,"lang",gi,i.lang),this.contentType=ci(e,"contentType",gi,i.contentType),this.width=ci(e,"width",yi),this.height=ci(e,"height",yi),this.b=ci(e,"mimeType",gi),this.i=ci(e,"codecs",gi),this.c=n&&"main"==n.value,this.lang&&(this.lang=et(this.lang)),i=oi(this,e,qe),this.u=ii(t.u,i),this.j=oi(this,e,Fe),!this.contentType&&this.b&&(this.contentType=this.b.split("/")[0]),this.f=t.c?ri(this,e,t.c):si(this,e,ze),this.g=t.f?ri(this,e,t.f):si(this,e,Je),this.h=t.g?ri(this,e,t.g):si(this,e,Xe),this.a=oi(this,e,Ke),!this.b&&this.a.length&&(this.b=this.a[0].f,!this.contentType&&this.b&&(this.contentType=this.b.split("/")[0]))},Be.prototype.parse=function(t,e){this.value=ci(e,"value",gi)},Ve.prototype.parse=function(t,e){this.id=ci(e,"id",gi),this.lang=ci(e,"lang",gi),this.contentType=ci(e,"contentType",gi),this.lang&&(this.lang=et(this.lang))},Ke.prototype.parse=function(t,e){this.id=ci(e,"id",gi),this.bandwidth=ci(e,"bandwidth",yi),this.width=ci(e,"width",yi,t.width),this.height=ci(e,"height",yi,t.height),this.f=ci(e,"mimeType",gi,t.b),this.h=ci(e,"codecs",gi,t.i),this.lang=t.lang;var i=oi(this,e,qe);this.u=ii(t.u,i),this.c=oi(this,e,Fe),this.g=t.f?ri(this,e,t.f):si(this,e,ze),this.b=t.g?ri(this,e,t.g):si(this,e,Je),this.a=t.h?ri(this,e,t.h):si(this,e,Xe),this.c=this.c.concat(t.j)},Fe.prototype.parse=function(t,e){this.f=e,this.c=ci(e,"schemeIdUri",gi);var i=ci(e,"cenc:default_KID",gi);i&&(this.b=i.replace(/[-]/g,"")),this.a=si(this,e,He)},He.prototype.parse=function(t,e){var i=hi(e);if(i){this.psshBox=Xt(i);try{this.parsedPssh=new be(this.psshBox)}catch(n){if(!(n instanceof RangeError))throw n}}},qe.prototype.parse=function(t,e){this.url=hi(e)},Ge.prototype.parse=function(t,e){this.url=hi(e)},ze.prototype.parse=function(t,e){this.u=t.u||this.u,this.g=ci(e,"timescale",yi,this.g),this.f=ci(e,"presentationTimeOffset",vi,this.f),this.a=ci(e,"indexRange",pi,this.a),this.b=si(this,e,We)||this.b,this.c=si(this,e,Ye)||this.c},We.prototype.parse=function(t,e){var i=ci(e,"sourceURL",gi);this.url=ni(t.u,i),this.a=ci(e,"range",pi,li(t.a))},Ye.prototype.parse=function(t,e){var i=ci(e,"sourceURL",gi);this.url=ni(t.u,i),this.a=ci(e,"range",pi)},Je.prototype.parse=function(t,e){this.u=t.u||this.u,this.f=ci(e,"timescale",yi,this.f),this.g=ci(e,"presentationTimeOffset",vi,this.g),this.b=ci(e,"duration",yi,this.b);var i=ci(e,"startNumber",yi);null!=i&&(this.i=i),this.h=si(this,e,Ye)||this.h,this.a=(i=oi(this,e,Qe))&&0<i.length?i:this.a,this.c=si(this,e,$e)||this.c},Qe.prototype.parse=function(t,e){var i=ci(e,"media",gi);this.b=ni(t.u,i),this.a=ci(e,"mediaRange",pi)},Xe.prototype.parse=function(t,e){this.a=ci(e,"timescale",yi,this.a),this.i=ci(e,"presentationTimeOffset",vi,this.i),this.b=ci(e,"duration",yi,this.b);var i=ci(e,"startNumber",vi);null!=i&&(this.j=i),this.h=ci(e,"media",gi,this.h),this.f=ci(e,"index",gi,this.f),this.g=ci(e,"initialization",gi,this.g),this.c=si(this,e,$e)||this.c},$e.prototype.parse=function(t,e){this.a=oi(this,e,Ze)},Ze.prototype.parse=function(t,e){this.b=ci(e,"t",vi),this.a=ci(e,"d",vi),this.c=ci(e,"r",bi)};var ws=!0;Wr=mi.prototype,Wr.rb=function(){if(this.a)return this.c;if(0==this.url.lastIndexOf("data:",0)){var e=this.url.split(":")[1].split(";").pop().split(","),i=e.pop(),i="base64"==e.pop()?t.atob(i.replace(/-/g,"+").replace(/_/g,"/")):t.decodeURIComponent(i);return"arraybuffer"==this.b.f&&(i=Qt(i).buffer),e=JSON.parse(JSON.stringify(new XMLHttpRequest)),e.response=i,e.responseText=i.toString(),i=this.c,i.resolve(e),Ti(this),i}if(0==this.url.lastIndexOf("idb:",0))return Ei(this);this.h++,this.i=Date.now(),this.g||(this.g=this.b.h),this.a=new XMLHttpRequest,e=this.url,ws&&(this.f&&!this.f.supportsCaching()||this.b.g)&&(e=new Ie(e),Re(e.a,"_",Date.now()),e=e.toString()),this.a.open(this.b.method,e,!0),this.a.responseType=this.b.f,this.a.timeout=this.b.c,this.a.withCredentials=this.b.j,this.a.onload=this.xb.bind(this),this.b.g&&(this.a.onreadystatechange=this.Eb.bind(this)),this.a.onerror=this.Tb.bind(this),this.a.ontimeout=this.Ib.bind(this);for(i in this.b.b)this.a.setRequestHeader(i,this.b.b[i]);return this.a.send(this.b.body),this.c},Wr.xb=function(t){this.f&&this.f.sample(Date.now()-this.i,t.loaded),200<=this.a.status&&299>=this.a.status?(this.c.resolve(this.a),Ti(this)):this.h<this.b.a?Si(this):(t=_i(this,"HTTP error.","net"),this.c.reject(t),Ti(this))},Wr.Eb=function(){if(this.a.readyState==XMLHttpRequest.HEADERS_RECEIVED){var t=Date.parse(this.a.getResponseHeader("Date"));t&&(ss=t-Date.now())}},Wr.Tb=function(){var t=_i(this,"Network failure.","net");this.c.reject(t),Ti(this)},Wr.Ib=function(){if(this.h<this.b.a)Si(this);else{var t=_i(this,"Request timed out.","net");this.c.reject(t),Ti(this)}},Pi.prototype.g=function(){if(this.c){this.a=null;var t=this.c;if(t.a&&t.a.readyState!=XMLHttpRequest.DONE){t.a.abort();var e=_i(t,"Request aborted.","aborted");t.c.reject(e),Ti(t)}this.h=this.c=null}},Pi.prototype.clone=function(){return new Pi(this.j,this.b.map(function(t){return t.clone()}),this.f,this.i)},Pi.prototype.toString=function(){return this.b[0].toString()},Li.prototype.destroy=function(){this.a&&(this.a.g(),this.a=null),this.b=null},Li.prototype.create=function(){return this.a?Ai(this.a):Promise.resolve(this.b)},Ki.prototype.parse=function(t,e,i,n){var r=null;try{t:{var s=[],a=new O(t),o=K(a);if(1936286840!=K(a))r=null;else{1==o&&(o=F(a));var h=V(a);q(a,3),q(a,4);var u=K(a);if(0==u)r=null;else{var l,c;0==h?(l=K(a),c=K(a)):(l=F(a),c=F(a)),q(a,2);var f=a.b.getUint16(a.a,a.c);for(a.a+=2,t=l,e=e+o+c,o=0;o<f;o++){var d=K(a);c=(2147483648&d)>>>31;var h=2147483647&d,p=K(a);if(K(a),1==c){r=null;break t}var b=new Pi(n,i,e,e+h-1);s.push(new Ui(t/u,(t+p)/u,b)),t+=p,e+=h}r=s}}}}catch(y){if(!(y instanceof RangeError))throw y}return r},Fi.prototype.destroy=function(){this.o=null},Wr=Fi.prototype,Wr.length=function(){return this.o.length},Wr.A=function(){if(0==this.o.length)throw new RangeError("SegmentIndex: There is no last SegmentReference.");return this.o[this.o.length-1]},Wr.get=function(t){if(0>t||t>=this.o.length)throw new RangeError("SegmentIndex: The specified index is out of range.");return this.o[t]},Wr.la=function(t){return t=Bi(this.o,t),0<=t?this.o[t]:null},Wr.Ha=function(t){return qi(this,t),!0},Wr.ka=function(t){var e=t-this.i;return 0==e?0:(this.o=Vi(this.o,e),this.i=t,e)},Wr.Ea=function(){return 0<this.length()?{start:Hi(this).b,end:this.A().a}:{start:0,end:0}},i(Gi,Fi),Gi.prototype.destroy=function(){this.w=this.g=null,Fi.prototype.destroy.call(this)},Gi.prototype.la=function(t){return Yi(this,U()/1e3),Fi.prototype.la.call(this,t)},Gi.prototype.Ha=function(t){return t instanceof Gi&&(qi(this,t),this.h=Math.max(this.h,t.h),null==this.c?(this.f=t.f,zi(this)):Ji(this),!0)},Gi.prototype.ka=function(t){return t=Fi.prototype.ka.call(this,t),Math.min.apply(null,this.o.filter(function(t){return null!=t.a}).map(function(t){return t.a-t.b})),null!=this.c&&(this.l+=t,this.a+=t,this.c+=t),t},Gi.prototype.Ea=function(){return Wi(this,U()/1e3)},i(Qi,Gi),Qi.prototype.destroy=function(){this.B=this.s=null,Gi.prototype.destroy.call(this)},Qi.prototype.la=function(t){var e=U()/1e3;return Xi(this,e),Yi(this,e),Fi.prototype.la.call(this,t)},Qi.prototype.Ha=function(t){return null==this.b&&t instanceof Qi&&null!=t.b&&(this.b=t.b,this.v=t.v,this.j=t.j,this.f=t.f,this.h=t.h,qi(this,t),Xi(this,U()/1e3),zi(this),!0)},Qi.prototype.ka=function(t){return t=Gi.prototype.ka.call(this,t),null!=this.b&&(this.b+=t,this.v+=t),t},Qi.prototype.Ea=function(){var t=U()/1e3;return Xi(this,t),Wi(this,t)},$i.prototype.destroy=function(){this.g=this.c=this.b=this.f=null,this.a&&(this.a.destroy(),this.a=null)},$i.prototype.create=function(){if(this.a)return Promise.resolve(this.a);if("dynamic"==this.f.type)try{this.a=new Qi(this.f,this.b,this.c,this.h,this.g)}catch(t){return Promise.reject(t)}else{var e;if(e=this.c.a,e=ji(this.g,this.c,1,Math.ceil(this.b.a/(e.b/e.a)))){if(0<e.length){var i=e[e.length-1];e[e.length-1]=Oi(i,i.b,this.b.a)}e=new Fi(e)}else e=null;if(this.a=e,!this.a)return e=Error("Failed to generate SegmentReferences"),e.type="stream",Promise.reject(e)}return Promise.resolve(this.a)},Zi.prototype.destroy=function(){this.f=this.g=this.b=this.c=null,this.a&&(this.a.destroy(),this.a=null)},Zi.prototype.create=function(){if(this.a)return Promise.resolve(this.a);var t=this.g.b,e=[];t.c&&(e=Ri(t.c,t.f||1,this.b.a||0));var i=0;t.b&&t.i?i=(t.i-1)*t.b:0<e.length&&(i=e[0].start-(t.g||0));var n=t.a.length;0<e.length&&e.length!=t.a.length&&(n=Math.min(e.length,t.a.length));for(var r=[],s=0;s<n;++s){var a=t.a[s],o=i/t.f,h=null,u=null;t.b?(h=i+t.b,u=h/t.f):0<e.length?(h=e[s].end-(t.g||0),u=h/t.f):(u=o+this.b.a,h=u*t.f);var i=h,h=0,l=null;a.a&&(h=a.a.na,l=a.a.end),r.push(new Ui(o,u,new Pi(this.f,a.b,h,l)))}return"dynamic"==this.c.type?this.a=new Gi(r,this.c,this.b,this.h):this.a=new Fi(r),Promise.resolve(this.a)},tn.prototype.destroy=function(){this.g=this.f=this.c=this.b=null,this.a&&(this.a.destroy(),this.a=null)},tn.prototype.create=function(){if(this.a)return Promise.resolve(this.a);for(var t=this.f.a,e=Ri(t.c,t.a||1,this.c.a||0),i=[],n=0;n<e.length;++n){var r=e[n].start,s=r/t.a,a=e[n].end/t.a,r=Mi(this.g,this.f,n+t.j,r);if(!r)return t=Error("Failed to generate media URL."),t.type="dash",Promise.reject(t);var o=(t.i||0)/t.a;i.push(new Ui(s-o,a-o,r))}return"dynamic"==this.b.type?this.a=new Gi(i,this.b,this.c,this.h):this.a=new Fi(i),Promise.resolve(this.a)},en.prototype.destroy=function(){this.b=null,this.a&&(this.a.destroy(),this.a=null)},en.prototype.create=function(){if(this.a)return Promise.resolve(this.a);for(var t=[],e=0;e<this.b.length;++e){var i=this.b[e];t.push(new Ui(i.start_time,i.end_time,new Pi(null,[new Ie(i.url)],i.start_byte,null)))}return this.b=null,this.a=new Fi(t),Promise.resolve(this.a)};var Ts=0;nn.prototype.destroy=function(){this.I&&(this.I.destroy(),this.I=null),this.H&&(this.H.destroy(),this.H=null)};var ks=0;sn.prototype.destroy=function(){for(var t=0;t<this.m.length;++t)this.m[t].destroy();this.a=this.m=null},on.prototype.destroy=function(){for(var t=0;t<this.a.length;++t)this.a[t].destroy();this.a=null},hn.prototype.destroy=function(){for(var t=0;t<this.a.length;++t)this.a[t].destroy();this.a=null},i(ln,yt),ln.prototype.F=function(t){null!=t.initialStreamBufferSize&&(this.B=Number(t.initialStreamBufferSize)),null!=t.streamBufferSize&&(this.L=Number(t.streamBufferSize)),null!=t.segmentRequestTimeout&&(this.a.s=Number(t.segmentRequestTimeout))},ln.prototype.destroy=function(){vn(this),this.h.destroy(),this.b=this.h=null,this.a.destroy(),this.v=this.c=this.a=null},Wr=ln.prototype,Wr.oa=function(){return this.b},Wr.bb=function(){return this.G},Wr.sb=function(t){return this.f||t.then(function(){this.f=!0,this.g||yn(this,0)}.bind(this))["catch"](function(){}),this.h},Wr.Ga=function(){return this.j},Wr.ra=function(t,e,i){
if(t!=this.b){var n=[t.I.create(),t.H.create()];Promise.all(n).then(St(this,function(n){if(this.c){var r=this.b;this.b=t,this.G=n[0],this.w=n[1],this.K=!0,this.l||(r?e&&cn(this,!0,i):yn(this,0))}}))["catch"](St(this,function(t){"aborted"!=t.type&&(this.f?(t=Z(t),this.dispatchEvent(t)):this.h.reject(t))}))}},Wr.jb=function(){return cn(this,!1)},Wr.kb=function(t){return 0<Kt(this.a,t)&&0<=Bi(this.a.b,t)},Wr.va=function(){},Wr.Da=function(){return!0},Wr.Kb=function(){if(this.s&&!this.f)this.g=null;else{var t;if((t=this.f&&!this.j)&&(t=1<this.a.c.buffered.length),t)cn(this,!0);else{this.g=null,t=this.b;var e=this.G,i=this.c.currentTime;Kt(this.a,this.s?i:i+(this.i||0))>=(this.s?Math.max(this.B,this.L):this.B)?(dn(this),yn(this,1e3/(Math.abs(this.c.playbackRate)||1))):(e=fn(this,i,e))?(e=Ft(this.a,e,t.c,this.w),this.w=null,this.K&&(this.K=!1,pn(this,t)),this.j=!1,e.then(St(this,function(t){null==this.i&&(this.i=t),this.D&&0<Kt(this.a,i)&&(this.D=!1,this.c.currentTime+=.001),yn(this,0)}))["catch"](St(this,function(t){if("aborted"!=t.type){var e=[0,404,410];"net"==t.type&&-1!=e.indexOf(t.xhr.status)&&this.b&&yn(this,5e3),t=Z(t),this.dispatchEvent(t)}}))):(dn(this),this.f&&!this.j&&(this.j=!0,bn(this)),yn(this,1e3))}}},gn.prototype.destroy=function(){this.a&&(this.a.destroy(),this.a=null)},gn.prototype.create=function(){if(this.a)return Promise.resolve(this.a);var t=new Ui(0,null,this.b);return this.a=new Fi([t]),Promise.resolve(this.a)},i(mn,yt),mn.prototype.F=function(){},mn.prototype.destroy=function(){this.a&&this.b.removeChild(this.a),this.c.destroy(),this.v=this.b=this.f=this.h=this.a=this.c=null},Wr=mn.prototype,Wr.oa=function(){return this.f},Wr.bb=function(){return this.h},Wr.sb=function(){return this.c},Wr.Ga=function(){return!0},Wr.ra=function(t){t.I.create().then(St(this,function(e){if(this.b){if(0==e.length())return Promise.reject(Error("No subtitles URL available."));var i=this.f;this.f=t,this.h=e,e=Hi(e).url.b[0].toString();var n=this.Da();this.a&&(this.va(!1),this.b.removeChild(this.a)),this.a=document.createElement("track"),this.b.appendChild(this.a),this.a.src=e,this.va(n),e=$({type:"adaptation",bubbles:!0,contentType:"text",size:null,bandwidth:t.bandwidth}),this.dispatchEvent(e),i||this.c.resolve(0)}}))},Wr.jb=function(){},Wr.kb=function(){return!0},Wr.va=function(t){this.g=t,this.a&&(this.a.track.mode=t?"showing":"disabled")},Wr.Da=function(){return this.a&&(this.g="showing"==this.a.track.mode),this.g},wn.prototype.parse=function(t,e,i,n){var r=null;try{var s,a=new G(e);if(440786851!=z(a).id)s=null;else{var o=z(a);if(408125543!=o.id)s=null;else{var h,u=o.a.byteOffset,l=new G(o.a);for(e=null;B(l.a);){var c=z(l);if(357149030==c.id){e=c;break}}if(e){for(var f=new G(e.a),l=1e6;B(f.a);){var d=z(f);if(2807729==d.id){l=J(d);break}}h=l/1e9}else h=null;s=h?{Qb:u,Ub:h}:null}}if(s){var p=z(new G(t));if(475249515!=p.id)r=null;else{var b=s.Qb,y=s.Ub;t=[];var v=new G(p.a);for(s=p=-1;B(v.a);){var g=z(v);if(187==g.id){var m,w=new G(g.a),T=z(w);if(179!=T.id)m=null;else{var k=J(T),E=z(w);if(183!=E.id)m=null;else{for(var _=new G(E.a),u=0;B(_.a);){var S=z(_);if(241==S.id){u=J(S);break}}m={Wb:k,Pb:u}}}if(m){var P=y*m.Wb,I=b+m.Pb;if(0<=p){var A=new Pi(n,i,s,I-1);t.push(new Ui(p,P,A))}p=P,s=I}}}0<=p&&(A=new Pi(n,i,s,null),t.push(new Ui(p,null,A))),r=t}}else r=null}catch(N){if(!(N instanceof RangeError))throw N}return r},Tn.prototype.destroy=function(){this.h=this.i=this.g=null,this.a.g(),this.a=null,this.c&&(this.c.g(),this.c=null),this.b=null},Tn.prototype.create=function(){if(this.b)return this.b;var t=[Ai(this.a)];return"webm"==this.f&&t.push(Ai(this.c)),this.b=Promise.all(t).then(St(this,function(t){var e=t[0];t=t[1]||null;var i=null;if("mp4"==this.f?(i=new Ki,i=i.parse(new DataView(e),this.a.f,this.a.b,this.h)):"webm"==this.f&&(i=new wn,i=i.parse(new DataView(e),new DataView(t),this.a.b,this.h)),!i)return e=Error("Failed to parse SegmentReferences from "+this.a.toString()+" (or one of its fallbacks)."),e.type="stream",Promise.reject(e);var n;return n="dynamic"==this.g.type?new Gi(i,this.g,this.i,this.j):new Fi(i),Promise.resolve(n)}))},i(On,Pt),On.prototype.g=function(t,e,i){var n=new mt;t={stream_id:i.qa,mime_type:t.a,codecs:t.b,init_segment:e,references:i.o};var r=Ct(this).put(t);return r.onsuccess=function(){n.resolve(i.qa)},r.onerror=function(){n.reject(r.error)},n},On.prototype.f=function(t,e){for(var i=Promise.resolve(),n=0;n<t.length();++n)var r=t.get(n),s=n==t.length()-1,s=this.c.bind(this,r,e,s),i=i.then(this.i.bind(this,r)),i=i.then(s);return i.then(function(){return Promise.resolve(e)})["catch"](St(this,function(t){return qn(this,e.qa),Promise.reject(t)}))},On.prototype.c=function(t,e,i,n){var r=new mt;0==e.ja.byteLength&&(e.Ca=t),e.ja=Hn(e.ja,n),e.ib++;var s=$({type:"progress",detail:e.ib/e.Vb*100,bubbles:!0});if(1048576<=e.ja.byteLength||i){i={stream_id:e.qa,segment_id:e.Ja,content:e.ja};var a=xt(this).put(i);e.o.push({start_time:e.Ca.b,start_byte:e.Ca.url.f,end_time:t.a,url:"idb://"+e.qa+"/"+e.Ja}),e.Ja++,e.ja=new ArrayBuffer(0),a.onerror=function(){r.reject(a.error)},a.onsuccess=St(this,function(){this.dispatchEvent(s),r.resolve()})}else this.dispatchEvent(s),r.resolve();return r},On.prototype.i=function(t){var e=new wi;return e.c=1e3*this.b,Ai(t.url,e,this.j)},i(Wn,yt),Wn.prototype.destroy=function(){this.v=null;for(var e=0;e<this.f.length;++e)this.f[e].close()["catch"](function(){});this.f=[],this.c=this.a=this.i=null,this.g.destroy(),this.g=null,this.l.destroy(),this.l=null,this.j&&(t.clearTimeout(this.j),this.j=null),this.h=this.b=null},Wn.prototype.initialize=function(){for(var t=new ht,e=this.b.ab(),i=0;i<e.length;++i){var n=e[i];n.a.a||n.b&&!rr(n.b)||t.push(n.contentType,n)}for(var i={},n=!1,r=0;r<e.length;++r){var s=e[r];if(s.a.a&&!t.a.hasOwnProperty(s.contentType)){var a=s.a.a,o=i[a];if(o||(o=s.a,o={audioCapabilities:void 0,videoCapabilities:void 0,initDataTypes:void 0,distinctiveIdentifier:o.g?"required":"optional",persistentState:o.v||this.b.ha()?"required":"optional",sessionTypes:[this.b.ha()?"persistent-license":"temporary"]},i[a]=o),s.b&&(a=s.contentType+"Capabilities",a in o)){n=!0,o[a]||(o[a]=[]);var h;"audio"==s.contentType?h=s.a.f:"video"==s.contentType&&(h=s.a.j),o[a].push({contentType:s.b,robustness:h})}}}if(!n){if(!e.length)throw t=Error("No DrmInfo exists!"),t.type="drm",t;this.a=e[0].a}return 0==Object.keys(i).length?(this.b.Ka(t),this.g.resolve(),Promise.resolve()):(h=new mt,i=Qn(this,i,h),i=i.then(this.D.bind(this,e,t)),h.reject(null),i)},Wn.prototype.D=function(t,e,i){if(!this.h)return $n();for(var n=i.keySystem,r=i.getConfiguration(),s=["audio","video"],a=0;a<s.length;++a){var o=s[a];if(!e.a.hasOwnProperty(o)){var h=r[o+"Capabilities"];if(h){for(var h=h[0],u=[],l={},c=0;c<t.length;++c){var f=t[c],d=h?f.b==h.contentType:f.contentType==o;f.a.a!=n||!d||f.id in l||(u.push(f),l[f.id]=!0,this.a=this.a?ie(this.a,f.a):f.a)}e.set(o,u)}}}return this.b.Ka(e),i.createMediaKeys().then(function(t){this.i=t}.bind(this))},Wn.prototype.B=function(t){for(var e=new Uint8Array(t.initData),i=0;i<this.c.length;++i)if(Zt(e,this.c[i].data))return;try{var n=tr(this)}catch(r){return e=Z(r),this.dispatchEvent(e),void this.g.reject(r)}t=n.generateRequest(t.initDataType,t.initData),this.c.push({data:e,La:n}),t["catch"](St(this,function(t){if(this.h){for(var e=0;e<this.c.length;++e)if(this.c[e].La==n){this.c.splice(e,1);break}e=Z(t),this.dispatchEvent(e),this.g.reject(t)}})),this.f.push(n)},Wn.prototype.G=function(t){er(this,t.target,this.a,t.message)},Wn.prototype.F=function(t){t=t.target;var e={};if(t.keyStatuses.forEach(function(t,i){if("string"==typeof t){var n=t;t=i,i=n}if("com.microsoft.playready"==this.a.a&&16==t.byteLength){var n=new DataView(t),r=n.getUint32(0,!0),s=n.getUint16(4,!0),a=n.getUint16(6,!0);n.setUint32(0,r,!1),n.setUint16(4,s,!1),n.setUint16(6,a,!1)}n=$t(new Uint8Array(t)),e[n]=i}.bind(this)),t.expiration<Date.now()){for(var i=0;i<this.c.length;++i)if(this.c[i].La==t){this.c.splice(i,1);break}t.close(),this.f.splice(this.f.indexOf(t),1)}this.b.cb(e)},i(nr,yt),e("shaka.player.Player",nr),nr.version="v1.6.5",nr.isBrowserSupported=function(){return!!(t.MediaSource&&t.MediaKeys&&t.navigator&&t.navigator.requestMediaKeySystemAccess&&t.MediaKeySystemAccess&&t.MediaKeySystemAccess.prototype.getConfiguration&&t.Promise&&Element.prototype.requestFullscreen&&document.exitFullscreen&&"fullscreenElement"in document&&t.Uint8Array)},nr.isTypeSupported=rr,nr.setTextStyle=function(t){var e=document.getElementById("ShakaPlayerTextStyle");for(e||(e=document.createElement("style"),e.id="ShakaPlayerTextStyle",document.head.appendChild(e)),e=e.sheet;e.cssRules.length;)e.deleteRule(0);e.insertRule("::cue { "+c(t)+" }",0)},nr.prototype.destroy=function(){return this.s().then(St(this,function(){this.f.destroy(),this.a=this.f=null}))["catch"](function(){})},nr.prototype.destroy=nr.prototype.destroy,nr.prototype.s=function(){if(!this.b)return Promise.resolve();this.h&&ur(this),this.a.pause(),pt(this.f),hr(this),ar(this),this.i&&(this.i.destroy(),this.i=null),this.a.src="";var t=this.a.setMediaKeys(null);return this.b&&(this.b.destroy(),this.b=null),this.h=!1,this.g=new Dn,t},nr.prototype.unload=nr.prototype.s,nr.prototype.ea=function(t){var e=this.s();return this.a.autoplay&&(s("load"),dt(this.f,this.a,"timeupdate",this.wb.bind(this))),t.T(this.c),t.pb(this.F),this.F=null,e=e.then(St(this,function(){return t.X()})),e["catch"](St(this,function(e){return t.destroy(),Promise.reject(e)})),e.then(St(this,function(){return this.a?(this.b=t,dt(this.f,this.b,"seekrangechanged",this.Fb.bind(this)),this.i=new Wn(this,this.a,this.b),this.i.initialize()):sr()})).then(St(this,function(){return this.a?(dt(this.f,this.a,"error",this.Rb.bind(this)),dt(this.f,this.a,"playing",this.Db.bind(this)),dt(this.f,this.a,"pause",this.Cb.bind(this)),this.b.lb(this,this.a)):sr()})).then(St(this,function(){return this.a?Xn(this.i):sr()})).then(St(this,function(){return this.a?void or(this):sr()}))["catch"](St(this,function(t){if(!this.a)return sr();if("destroy"!=t.type){var e=Z(t);this.dispatchEvent(e)}return this.s().then(function(){return Promise.reject(t)})}))},nr.prototype.load=nr.prototype.ea,Wr=nr.prototype,Wr.wb=function(){a("load"),this.g.playbackLatency=o("load")/1e3,this.f.sa(this.a,"timeupdate")},Wr.Rb=function(){if(this.a.error){var t=this.a.error.code;t!=MediaError.MEDIA_ERR_ABORTED&&(t=Error(Es[t]||"Unknown playback error."),t.type="playback",t=Z(t),this.dispatchEvent(t))}},Wr.Db=function(){s("playing"),!this.j&&0>this.l&&(this.a.playbackRate=0,this.B(this.a.currentTime,Date.now(),this.l)),this.h&&ur(this)},Wr.Cb=function(){a("playing");var t=o("playing");if(!isNaN(t)){var e=this.g;e.playTime+=t/1e3}ar(this)},Wr.Fb=function(t){this.D=t.start},Wr.qb=function(){if(!this.a.paused){a("playing");var t=o("playing");if(!isNaN(t)){var e=this.g;e.playTime+=t/1e3,s("playing")}}return t=this.g,e=this.a,e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),t.decodedFrames=e.totalVideoFrames,t.droppedFrames=e.droppedVideoFrames),this.g},nr.prototype.getStats=nr.prototype.qb,nr.prototype.da=function(){return this.b?this.b.ma():[]},nr.prototype.getVideoTracks=nr.prototype.da,nr.prototype.Y=function(){return this.b?this.b.pa():[]},nr.prototype.getAudioTracks=nr.prototype.Y,nr.prototype.$=function(){return this.b?this.b.Oa():[]},nr.prototype.getTextTracks=nr.prototype.$,nr.prototype.selectVideoTrack=function(t,e){return!!this.b&&this.b.selectVideoTrack(t,void 0==e||e)},nr.prototype.selectVideoTrack=nr.prototype.selectVideoTrack,nr.prototype.M=function(t,e,i){return!!this.b&&this.b.nb(t,void 0==e||e,i)},nr.prototype.selectAudioTrack=nr.prototype.M,nr.prototype.fa=function(t){return!!this.b&&this.b.ob(t,!1)},nr.prototype.selectTextTrack=nr.prototype.fa,nr.prototype.V=function(t){this.b&&this.b.Na(t)},nr.prototype.enableTextTrack=nr.prototype.V,nr.prototype.T=function(t){ar(this),0<=t?this.a.playbackRate=t:this.a.paused||(this.a.playbackRate=0,this.B(this.a.currentTime,Date.now(),t)),this.l=t},nr.prototype.setPlaybackRate=nr.prototype.T,nr.prototype.K=function(){return this.l},nr.prototype.getPlaybackRate=nr.prototype.K,nr.prototype.R=function(t){this.F=t},nr.prototype.setPlaybackStartTime=nr.prototype.R,nr.prototype.G=function(){return!!this.b&&this.b.mb()},nr.prototype.isLive=nr.prototype.G,nr.prototype.U=function(t){if(t){var e=nt(t,"enableAdaptation");null!=e&&(this.c.enableAdaptation=e),e=rt(t,"streamBufferSize"),null!=e&&(this.c.streamBufferSize=e),e=rt(t,"liveStreamEndTimeout"),null!=e&&(this.c.liveStreamEndTimeout=e),e=rt(t,"licenseRequestTimeout"),null!=e&&(this.c.licenseRequestTimeout=e),e=rt(t,"mpdRequestTimeout"),null!=e&&(this.c.mpdRequestTimeout=e),e=rt(t,"segmentRequestTimeout"),null!=e&&(this.c.segmentRequestTimeout=e),e=st(t,"preferredLanguage"),null!=e&&(this.c.preferredLanguage=e),e=ot(t,"restrictions",u),null!=e&&(this.c.restrictions=e.clone()),t=nt(t,"disableCacheBustingEvenThoughItMayAffectBandwidthEstimation"),null!=t&&(ws=!t),this.b&&this.b.T(this.c)}},nr.prototype.configure=nr.prototype.U,nr.prototype.Z=function(){return this.c},nr.prototype.getConfiguration=nr.prototype.Z,nr.prototype.B=function(e,i,n){this.j=null;var r=(Date.now()-i)/1e3*n;this.a.currentTime<this.D+(this.G()?1:.05)?this.a.pause():(r=Math.max(this.D,e+r),this.a.currentTime=r,this.j=t.setTimeout(this.B.bind(this,e,i,n),250))},nr.prototype.L=function(){if(or(this),!this.a.ended&&!this.a.seeking){var t=this.a.buffered,e=t.length?t.end(t.length-1):0,t=Math.max(e-this.a.currentTime,0),i=this.a.duration,i=isNaN(i)?0:Math.max(i-.05,0),e=e>=i||this.a.currentTime>=i;this.h?(i=this.b.$a(),(e||t>i)&&(ur(this),this.a.play())):!this.a.paused&&!e&&.5>t&&(this.h=!0,this.a.pause(),this.g.bufferingHistory.push(U()/1e3),s("buffering"),this.dispatchEvent($({type:"bufferingStart"})))}};var Es={2:"A network failure occured while loading media content.",3:"The browser failed to decode the media content.",4:"The browser does not support the media content."};dr.prototype.destroy=function(){this.a.destroy(),this.a=null},dr.prototype.update=function(t){var e=pr(t),i=pr(this.a);return Promise.all([e,i]).then(St(this,function(e){var i=e[0];e=e[1];var n=this.a.a;return lr(n),cr(n),t.f=this.a.f,t.g=this.a.g?this.a.g.clone():null,t.c=this.a.c,n=[],br(t,this.a,i,e,n),i=t.a,lr(i),cr(i),Promise.resolve(n)}))},e("shaka.media.SimpleAbrManager",mr),mr.prototype.destroy=function(){this.f.destroy(),this.a=this.b=this.f=null},mr.prototype.initialize=function(t,e){this.b||this.a||(this.b=t,this.a=e)},mr.prototype.start=function(){this.b&&this.a&&!this.g&&(this.c=Date.now()+4e3,dt(this.f,this.b,"bandwidth",this.v.bind(this)),dt(this.f,this.a,"adaptation",this.j.bind(this)),dt(this.f,this.a,"trackschanged",this.h.bind(this)),this.g=!0)},mr.prototype.enable=function(t){this.i=t},mr.prototype.getInitialVideoTrackId=function(){if(!this.b||!this.a)return null;var t=wr(this);return t?t.id:null},mr.prototype.selectVideoTrack=function(t,e,i){this.g&&this.a.selectVideoTrack(t.id,e,i)},mr.prototype.v=function(){Date.now()<this.c||this.h()},mr.prototype.h=function(){if(this.i){var t=wr(this);if(t){if(t.active)return void(this.c=Date.now()+3e3);this.selectVideoTrack(t,!1)}this.c=Number.POSITIVE_INFINITY}},mr.prototype.j=function(){this.c==Number.POSITIVE_INFINITY&&(this.c=Date.now()+3e4)},i(Tr,yt),e("shaka.player.HttpVideoSource",Tr),Tr.prototype.T=function(){},Tr.prototype.destroy=function(){this.a&&(this.a.parentElement.removeChild(this.a),this.a=null),this.v=this.b=null},Wr=Tr.prototype,Wr.lb=function(t,e){this.v=t;var i=e.mediaKeys;return e.src=this.f,i=e.setMediaKeys(i),this.c&&(this.a=document.createElement("track"),this.a.src=this.c,e.appendChild(this.a),this.a.track.mode="showing"),i},Wr.X=function(){return Promise.resolve()},Wr.ma=function(){return[]},Wr.pa=function(){return[]},Wr.Oa=function(){return[]},Wr.$a=function(){return 5},Wr.ab=function(){var t=new un;return t.a=this.b,[t]},Wr.Ka=function(){},Tr.prototype.selectVideoTrack=function(){return!1},Wr=Tr.prototype,Wr.nb=function(){return!1},Wr.ob=function(){return!1},Wr.Na=function(t){this.a&&(this.a.track.mode=t?"showing":"disabled")},Wr.pb=function(){},Wr.ua=function(){return[]},Wr.ha=function(){return!1},Wr.mb=function(){return!1},Wr.cb=function(t){for(var e in t){var i=t[e],n=os[i]||null;if(n){var r=wt(e),n=Error("Key "+r+" is not usable. "+n);n.type="drm",n.code=i,i=Z(n),this.dispatchEvent(i)}}},i(kr,yt),e("shaka.player.StreamVideoSource",kr),kr.prototype.T=function(t){null!=t.streamBufferSize&&(this.F.streamBufferSize=t.streamBufferSize),null!=t.segmentRequestTimeout&&(this.F.segmentRequestTimeout=t.segmentRequestTimeout),Kr(this),null!=t.enableAdaptation&&this.G.enable(Boolean(t.enableAdaptation)),null!=t.mpdRequestTimeout&&(this.da=Number(t.mpdRequestTimeout)),null!=t.liveStreamEndTimeout&&(this.Ua=Number(t.liveStreamEndTimeout)),null!=t.preferredLanguage&&(this.K=et(String(t.preferredLanguage))),null!=t.restrictions&&(this.h=t.restrictions,this.L&&Sr(this))},kr.prototype.destroy=function(){this.B.destroy(),this.ea.destroy(),this.ea=this.B=null,this.Y&&(t.clearTimeout(this.Y),this.Y=null),this.V&&(t.clearTimeout(this.V),this.V=null),this.s=null,this.i.destroy(),this.i=null,it(this.c).forEach(function(t){t.destroy()}),this.b=this.c=null,this.a&&(this.a.destroy(),this.a=null),this.G.destroy(),this.v=this.h=this.U=this.f=this.g=this.Z=this.G=null},Wr=kr.prototype,Wr.lb=function(e,i){if(!this.L){var n=Error("Cannot call attach() right now.");return n.type="app",Promise.reject(n)}return this.v=e,this.f=i,this.U=e.qb(),dt(this.i,this.g,"sourceopen",this.yb.bind(this)),dt(this.i,this.Z,"bandwidth",this.Sb.bind(this)),this.a.b&&(dt(this.i,e,"bufferingStart",this.vb.bind(this)),dt(this.i,e,"bufferingEnd",this.ub.bind(this))),n=this.f.mediaKeys,this.f.src=t.URL.createObjectURL(this.g),n=this.f.setMediaKeys(n),Promise.all([this.B,n])},Wr.X=function(){if(this.L){var t=Error("Cannot call load() right now.");return t.type="app",Promise.reject(t)}return this.a&&0!=this.a.a.length?(t=this.a.a,lr(t),cr(t),0==this.a.a.length||0==this.a.a[0].a.length?(t=Error("The manifest specifies content that cannot be displayed on this browser/platform."),t.type="stream",Promise.reject(t)):(this.L=!0,this.F.initialStreamBufferSize=this.a.c,Kr(this),Sr(this),Promise.resolve())):(t=Error("The manifest does not specify any content."),t.type="stream",Promise.reject(t))},Wr.gb=function(t){var e=Date.now(),i=this.V=null,n=this.a.g;(t?this.eb():this.fb(n)).then(St(this,function(t){return i=new dr(t),i.update(this.a)})).then(St(this,function(t){i.destroy(),i=null;for(var n=0;n<t.length;++n)_r(this,t[n]);this.F.initialStreamBufferSize=this.a.c,Kr(this),Sr(this),0==Object.keys(this.c).length?Nr(this):Er(this,(Date.now()-e)/1e3)}))["catch"](St(this,function(t){i&&(i.destroy(),i=null),"aborted"!=t.type&&(t=Z(t),this.dispatchEvent(t),this.a&&Er(this,0))}))},Wr.fb=function(){return Promise.reject("Cannot update manifest with this VideoSource implementation.")},Wr.eb=function(){return Promise.reject("Cannot update manifest with this VideoSource implementation.")},Wr.ma=function(){if(!this.b.a.hasOwnProperty("video"))return[];for(var t=this.c.video,t=(t=t?t.oa():null)?t.C:0,e=[],i=this.b.get("video"),n=0;n<i.length;++n)for(var r=i[n],s=0;s<r.m.length;++s){var a=r.m[s];if(a.N&&a.J){var o=a.C,a=new p(o,a.bandwidth,a.width,a.height);o==t&&(a.active=!0),e.push(a)}}return e},kr.prototype.getVideoTracks=kr.prototype.ma,kr.prototype.pa=function(){if(!this.b.a.hasOwnProperty("audio"))return[];for(var t=this.c.audio,t=(t=t?t.oa():null)?t.C:0,e=[],i=this.b.get("audio"),n=0;n<i.length;++n)for(var r=i[n],s=r.lang,a=0;a<r.m.length;++a){var o=r.m[a];if(o.N&&o.J){var u=o.C,o=new h(u,o.bandwidth,s);u==t&&(o.active=!0),e.push(o)}}return e},kr.prototype.getAudioTracks=kr.prototype.pa,kr.prototype.Oa=function(){if(!this.b.a.hasOwnProperty("text"))return[];for(var t=this.c.text,e=t?t.oa():null,e=e?e.C:0,i=[],n=this.b.get("text"),r=0;r<n.length;++r)for(var s=n[r],a=s.lang,o=0;o<s.m.length;++o){var h=s.m[o].C,u=new d(h,a);h==e&&(u.active=!0,u.enabled=t.Da()),i.push(u)}return i},kr.prototype.getTextTracks=kr.prototype.Oa,kr.prototype.$a=function(){return Number(this.F.initialStreamBufferSize)},kr.prototype.ab=function(){var t;if(this.L){t=this.a.a[0];for(var e=[],i=0;i<t.a.length;++i)e.push.apply(e,an(t.a[i]));t=e}else t=[];return t},kr.prototype.Ka=function(t){if(this.L){for(var e={},i=this.a.a[0],n=0;n<i.a.length;++n){var r=i.a[n];e[r.C]=r}for(this.b.a={},i=ct(t),n=0;n<i.length;++n){var r=i[n],s=t.get(r);if("video"==r){var a=s[0].id;this.b.push(r,e[a])}else if("audio"==r)for(var a=s[0].b.split(";")[0],o=0;o<s.length;++o){var h=s[o];h.b.split(";")[0]==a&&this.b.push(r,e[h.id])}else for(o=0;o<s.length;++o)a=s[o].id,this.b.push(r,e[a])}this.fa=!0,(t=this.b.get("audio"))&&(Ar(this,t),this.b.set("audio",t),t=t[0].lang||this.K,tt(2,this.K,t)&&(this.fa=!1)),(t=this.b.get("text"))&&(Ar(this,t),this.b.set("text",t),t=t[0].lang||this.K,tt(2,this.K,t)||(this.fa=!1))}},kr.prototype.selectVideoTrack=function(t,e,i){return Ir(this,"video",t,e,i)},Wr=kr.prototype,Wr.nb=function(t,e,i){return Ir(this,"audio",t,e,i)},Wr.ob=function(t,e){return Ir(this,"text",t,e)},Wr.Na=function(t){var e=this.c.text;e&&e.va(t)},Wr.pb=function(t){this.$=t},Wr.ua=function(){return[]},Wr.ha=function(){return!1},Wr.mb=function(){return!!this.a&&this.a.b},Wr.cb=function(t){for(var e,i=!1,n=new ht,r=ut(this.b),s=0;s<r.length;++s)for(var a=r[s],o=0;o<a.m.length;++o){var h=a.m[o];h.f.forEach(function(t){n.push(t,h)})}for(e in t)if(r=os[t[e]]||null,a=n.get(e))for(s=0;s<a.length;++s)h=a[s],o=h.N,h.N=!r,o!=h.N&&(i=!0);else wt(e);i&&(Pr(this),e=this.pa(),t=this.ma(),e=this.b.a.hasOwnProperty("audio")&&0==e.length,t=this.b.a.hasOwnProperty("video")&&0==t.length,e||t)&&(t=Error("The key system has restricted all "+(e&&t?"audio and video tracks.":e?"audio tracks.":"video tracks.")),t.type="drm",t=Z(t),this.dispatchEvent(t))},Wr.yb=function(){this.i.sa(this.g,"sourceopen"),Nr(this).then(St(this,function(){this.B&&this.B.resolve()}))["catch"](St(this,function(t){this.B&&this.B.reject(t)}))},Wr.tb=function(t){n(t&&t.length==Object.keys(this.c).length);for(var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,r=0;r<t.length;++r)var s=t[r],e=Math.min(e,s),i=Math.max(i,s);for(t=Or(this),r=0;r<t.length;++r)t[r].ka(i);Dr(this,t,i),r=ut(this.b).map(function(t){return t.m}).reduce(function(t,e){return t.concat(e)},[]).map(function(t){var e=[t.I.create()];return t.H&&e.push(t.H.create()),Promise.all(e)}),Promise.all(r).then(St(this,function(t){for(var e=0;e<t.length;++e)t[e][0].ka(i);this.Ra=!0;for(var n in this.s)t=this.s[n],e=this.c[n],Rn(this.U,t.Pa),e.ra(t.Pa,t.Wa,t.Xa);this.s={}}))["catch"](St(this,function(t){"aborted"!=t.type&&(t=Z(t),this.dispatchEvent(t))}))},Wr.Jb=function(){this.Y=null,Vr(this);var e=Br(this,Or(this));e&&(this.a.b&&this.Ta!=e.A&&(this.Ta=e.A,null!=this.w&&(t.clearTimeout(this.w),this.w=null)),Lr(this,e.start,e.end),this.f.paused||Ur(this,this.f.currentTime,e.start,e.end))},Wr.Gb=function(){var t=this.f.currentTime;if(null!=this.D){if(t>=this.D-.01&&t<=this.D+.01)return void(this.D=null);this.D=null}var e=Br(this,Or(this));if(e){var i=e.end;if((e=Ur(this,t,e.start,i))||(t<=i+.01?e=!1:(this.f.currentTime=i,e=!0)),!e)for(var n in this.c)this.c[n].jb()}},Wr.Hb=function(){if(!this.a.b){for(var t in this.c)if(!this.c[t].Ga())return;this.Za()}},Wr.vb=function(){it(this.c).every(function(t){return t.Ga()})&&(this.w=t.setTimeout(this.Za.bind(this),1e3*this.Ua))},Wr.ub=function(){null!=this.w&&(t.clearTimeout(this.w),this.w=null)},Wr.Sb=function(){var t=this.U,e=this.Z.getBandwidth();t.estimatedBandwidth=e,t.bandwidthHistory.push(new Un(e))},Wr.Za=function(){this.w=null,this.g.endOfStream()},i(Fr,kr),e("shaka.player.DashVideoSource",Fr),Fr.prototype.Aa=function(t,e,i){this.R.push(t),this.ga.push(e||""),this.ta.push(i||"")},Fr.prototype.addExternalCaptions=Fr.prototype.Aa,Fr.prototype.xa=function(t){this.j=t},Fr.prototype.setNetworkCallback=Fr.prototype.xa,Fr.prototype.destroy=function(){this.l=this.j=this.M=null,kr.prototype.destroy.call(this)},Fr.prototype.X=function(){var t=new Pi(this.j,[new Ie(this.za)]);return Ci(new xi(t,this.da)).then(St(this,function(t){this.l=t;for(var e=0;e<this.R.length;e++){var i=t,n=this.R[e],r=this.ga[e],s=this.ta[e];if(0!==i.a.length){var a=new Oe;a.contentType="text",a.lang=r||"en",a.c=!0,r=new Ke,r.bandwidth=0,r.f=s||"text/vtt",r.u=[new Ie(n)],a.a.push(r),i.a[0].b.push(a),ei(i.a[0])}}return this.a=En(new kn(this.M),t,this.j),kr.prototype.X.call(this)}))},Fr.prototype.fb=function(t){return Ci(new xi(t,this.da)).then(St(this,function(t){return this.l=t,t=En(new kn(this.M),t,this.j),Promise.resolve(t)}))},Fr.prototype.eb=function(){var t=En(new kn(this.M),this.l,this.j);return Promise.resolve(t)},i(Hr,kr),e("shaka.player.OfflineVideoSource",Hr),Hr.prototype.T=function(t){null!=t.licenseRequestTimeout&&(this.l.licenseRequestTimeout=t.licenseRequestTimeout),null!=t.segmentRequestTimeout&&(this.l.segmentRequestTimeout=t.segmentRequestTimeout),kr.prototype.T.call(this,t)},e("shaka.player.OfflineVideoSource.retrieveGroupIds",function(){var t=new Rt,e=It(t).then(function(){return Lt(t)});return e.then(function(){At(t)})["catch"](function(){At(t)}),e}),Hr.prototype.xa=function(e,i,n,r){var s,a=null,o={},h=[];return e=new Pi(this.ga,[new Ie(e)]),Ci(new xi(e,this.da)).then(St(this,function(t){return this.a=En(new kn(n),t,this.ga),this.a.b?(t=Error("Unable to store live streams offline."),t.type="app",Promise.reject(t)):(this.T({preferredLanguage:i}),kr.prototype.X.call(this))})).then(St(this,function(){var e=document.createElement("video");return e.src=t.URL.createObjectURL(this.g),s=new Wn(null,e,this),null!=this.l.licenseRequestTimeout&&(s.w=Number(this.l.licenseRequestTimeout)),dt(this.i,s,"sessionReady",this.ta.bind(this)),dt(this.i,s,"error",function(t){a=t}),s.initialize()})).then(St(this,function(){for(var t=ut(this.b),e=0;e<t.length;++e)for(var i=t[e],n=0;n<i.m.length;++n){var s=i.m[n];o[s.C]=s}return r()})).then(St(this,function(t){for(var e=0;e<t.length;++e){var i=t[e],n=o[i];if(!n)return Promise.reject(Error("Invalid stream ID chosen: "+i));h.push(n)}var r=["audio","video"];return h=h.filter(function(t){return!(0>r.indexOf(t.a.split("/")[0]))}),t=h.map(function(t){return t.H.create()}),Promise.all(t)})).then(St(this,function(t){for(var e=h,i=[],n=0;n<e.length;++n)try{i[n]=this.g.addSourceBuffer(rn(e[n]))}catch(r){}if(e.length!=i.length)t=Error("Error initializing streams."),t.type="storage",t=Promise.reject(t);else{for(n=0;n<t.length;++n)(e=t[n])&&i[n].appendBuffer(e);t=Promise.resolve()}return t})).then(St(this,function(){return Yn(s,this.timeoutMs)})).then(St(this,function(){return a?Promise.reject(a):qr(this,h,s.a,this.a.a[0].b)})).then(St(this,function(t){return this.R=t,a?(Gr(this),Promise.reject(a)):Promise.resolve(t)}))},e("shaka.player.OfflineVideoSource.prototype.store",Hr.prototype.xa),Hr.prototype.Aa=function(t){this.ga=t},Hr.prototype.setNetworkCallback=Hr.prototype.Aa,Hr.prototype.ta=function(t){this.M.push(t.detail.sessionId)},Hr.prototype.X=function(){var t,e,i=new Rt;return It(i).then(St(this,function(){return Ut(i,this.R)})).then(St(this,function(n){var r=[];this.M=n.session_ids,t=n.duration,e={keySystem:n.key_system,distinctiveIdentifierRequired:n.distinctive_identifier,persistentStorageRequired:!0,audioRobustness:n.audio_robustness,videoRobustness:n.video_robustness,withCredentials:n.with_credentials,licenseServerUrl:n.license_server};for(var s=0;s<n.stream_ids.length;++s)r.push(Ot(i,n.stream_ids[s]));return Promise.all(r)})).then(St(this,function(i){var n=t,r=e,s=new hn;s.c=5;for(var a=new on,o=0;o<i.length;++o){var h=i[o],u=new nn,l=new en(h.references),c=new Li(null,h.init_segment);u.I=l,u.H=c,u.a=h.mime_type,u.b=h.codecs,u.N=!0,this.j&&(null!=this.j.licenseServerUrl&&(r.licenseServerUrl=this.j.licenseServerUrl),null!=this.j.withCredentials&&(r.withCredentials=this.j.withCredentials),r.licensePostProcessor=this.j.licensePostProcessor,r.licensePreProcessor=this.j.licensePreProcessor,r.serverCertificate=this.j.serverCertificate),h=ee(r),l=new sn,l.m.push(u),l.a.push(h),l.contentType=u.a.split("/")[0],a.a.push(l),a.b=n}return s.a.push(a),this.a=s,kr.prototype.X.call(this)})).then(function(){return At(i),Promise.resolve()})["catch"](function(t){return At(i),Promise.reject(t)})},Hr.prototype.za=function(t,e){t&&(this.j={licenseServerUrl:t.licenseServerUrl,withCredentials:t.withCredentials,serverCertificate:t.serverCertificate,licensePreProcessor:t.licensePreProcessor,licensePostProcessor:t.licensePostProcessor});var i=null;return zr(this)["catch"](function(t){return e?(i=t,Promise.resolve()):Promise.reject(t)}).then(St(this,function(){return Gr(this)})).then(function(){return Promise.resolve(i)})},Hr.prototype.deleteGroup=Hr.prototype.za,Hr.prototype.ua=function(){return this.M},Hr.prototype.ha=function(){return!0}}).bind(r,this)(),"undefined"!=typeof t&&t.exports?t.exports=r.shaka:(n=function(){return r.shaka}.call(e,i,e,t),!(void 0!==n&&(t.exports=n)))}()},89:function(t,e,i){var n,r;n=[i(1),i(29),i(2),i(5),i(4),i(3),i(52),i(50),i(51),i(18),i(83),i(47),i(213)],r=function(t,e,i,n,r,s,a,o,h,u,l,c,f){function d(d){function p(){O.addEventListener("error",v),O.addEventListener("adaptation",g),F.on("adaptation",function(t){var e=O.getConfiguration(),i=this.adaptation?this.adaptation.bandwidth:0,n={level:{index:F.currentQuality,label:F.currentQuality?t.size.height+"p":"Auto",bitrate:i,width:t.size.width,height:t.size.height},type:"visualQuality"};H?(n.reason="initial choice",n.mode="auto",H=!1):e.enableAdaptation?n.reason=n.mode="auto":(n.reason="api",n.mode="manual"),F.trigger("visualQuality",n)},F),t.each(V,function(t,e){K.addEventListener(e,t,!1)})}function b(){O.removeEventListener("error",v),O.removeEventListener("adaptation",g),F.off("adaptation"),t.each(V,function(t,e){K.removeEventListener(e,t)})}function y(t,e){var i,n,r;switch(t.toLowerCase()){case"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":case"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":return c.isSupported("widevine")?(F.drmUsed="widevine",i="com.widevine.alpha",n=B.widevine,r=n?n.url:"",r||(console.log("No licensing server specified for widevine. Defaulting to proxy."),r="http://widevine-proxy.appspot.com/proxy"),[{keySystem:i,licenseServerUrl:r,licensePreProcessor:function(t){n&&n.customData&&(t.headers.customData=n.customData)}}]):null;case"urn:mpeg:dash:mp4protection:2011":if(!c.isSupported("clearkey"))return null;i="org.w3.clearkey",n=B.clearkey;var s=l.util.Uint8ArrayUtils,a=n?n.key:null,o=e.getAttribute("cenc:default_KID");if(o=o?o.replace(/-/g,""):null,!a||!o)break;o=s.fromHex(o),a=s.fromHex(a);var h={kty:"oct",kid:s.toBase64(o,!1),k:s.toBase64(a,!1)},u={keys:[h]},f=JSON.stringify(u),d={initData:o,initDataType:"webm"};return r="data:application/json;base64,"+window.btoa(f),[{keySystem:i,licenseServerUrl:r,initData:d}];case"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":case"9a04f079-9840-4286-ab92-e65be0885f95":return c.isSupported("playready")?(F.drmUsed="playready",i="com.microsoft.playready",n=B.playready,r=n?n.url:"",r||(console.log("No licensing server specified for microsoft. Defaulting to proxy."),r="http://microsoft-proxy.appspot.com/proxy"),[{keySystem:i,licenseServerUrl:r,licensePreProcessor:function(t){n&&n.customData&&(t.headers.customData=n.customData)}}]):null;default:return console.log("Unrecognized scheme: "+t,e),null}}function v(t){console.error(t);var e="Unknown playback error";F.trigger(r.JWPLAYER_MEDIA_ERROR,{message:"Error playing file:"+e})}function g(t){F.adaptation=t}function m(){return this.levels}function w(){return this.currentQuality}function T(t){return F._helperLastVideoHeight=0,new l.player.Player(t)}function k(t){F.attached&&(O=T(K),(i.isAndroid()||t.preload&&"none"!==t.preload)&&_(t))}function E(t){F.attached&&(b(),p(),this.setState(n.LOADING),this.loadedItem!==t?(this.drmUsed=null,H=!0,_(t)):(K.currentTime=0,K.play()))}function _(t){F.loadedItem=t;var e=t.sources[0].file,i=t.starttime;
B=t.sources[0].drm||{};var n=new l.util.EWMABandwidthEstimator,r=new f,s=new l.player.DashVideoSource(e,y,n,r);F.itemTracks=null,F.setupSideloadedTracks(t.tracks);var a=O.load(s);a.then(S.bind(F)),i&&a.then(function(){this.seek(i)}.bind(F))}function S(){if(F.attached){var t=O.getVideoTracks(),e=!t.length;e?P(O.getAudioTracks(),"audio"):P(t,"video"),F.trigger(r.JWPLAYER_MEDIA_TYPE,{mediaType:e?"audio":"video"}),F.trigger(r.JWPLAYER_MEDIA_BUFFER_FULL)}}function P(e,i){var n=t.clone(e);n.sort(function(t,e){return t.height&&e.height?e.height-t.height:e.bandwidth-t.bandwidth}),F.currentQuality=0,F.levels=t.map(n,function(t){var e={contentType:i,label:null,level_id:t.id};return t.height?e.label=t.height+"p":e.label=Math.round(t.bandwidth/1e3)+"kbps",e}),e.length>1&&F.levels.unshift({label:"Auto",level_id:"auto"}),F.trigger(r.JWPLAYER_MEDIA_LEVELS,{levels:F.levels,currentQuality:F.currentQuality})}function I(){this.video.pause(),this.setState(n.PAUSED)}function A(){return this.seeking?(this.setState(n.LOADING),void this.once(r.JWPLAYER_MEDIA_SEEKED,this.play)):(this.setState(n.LOADING),this.video.play(),void this.setVisibility(!0))}function N(t){this.attached&&(t<0&&(t+=this.video.duration),this.trigger(r.JWPLAYER_MEDIA_SEEK,{position:this.getCurrentTime(),offset:t}),this.seeking=!0,this.video.currentTime=t)}function x(t){t=!!t,t?e.style(U,{visibility:"visible",opacity:1}):e.style(U,{visibility:"",opacity:0})}function C(){O.unload(),U===K.parentNode&&U.removeChild(K)}function j(){this.attached&&(b(),this.loadedItem=null,this.itemTracks=null,this.clearTracks(),O.destroy(),K.pause(),K.removeAttribute("src"),K.load(),this.setState(n.IDLE))}function M(t){U=t,U.appendChild(K)}function D(){return U}function R(t){if(t=parseInt(t,10),!(this.currentQuality===t||t<0||t>=this.levels.length)){this.currentQuality=t,this.trigger(r.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:this.currentQuality,levels:this.levels});var e={enableAdaptation:!0};if(0===t)O.configure(e);else{var i=this.levels[t].level_id;e.enableAdaptation=!1,O.configure(e);var s;"audio"===this.levels[t].contentType?(s=L(O.getAudioTracks()),s&&s.id===i||(this.setState(n.LOADING),O.selectAudioTrack(i))):(s=L(O.getVideoTracks()),s&&s.id===i||(this.setState(n.LOADING),O.selectVideoTrack(i)))}K.play()}}function L(e){return t.find(e,function(t){return t.active})}var U,O,B,V={},K=o.getVideo.call(this,d),F=this,H=!0;this.adaptation=null,this.loadedItem=null,this.drmUsed=null,this.position=0,this.levels=[],this.currentQuality=-1,t.each(a,function(t,e){"function"==typeof t?V[e]=t.bind(F):F[e]=t}),t.extend(this,s,o,h,u,{eventsOn_:function(){O=T(K),p()},eventsOff_:function(){var t=K;O.destroy(),F.video=K=t,b()},init:k,load:E,pause:I,getQualityLevels:m.bind(this),getCurrentQuality:w.bind(this),play:A,seek:N,remove:C,setContainer:M,getContainer:D,setCurrentQuality:R.bind(this),setVisibility:x,stop:j,getCurrentTime:function(){return K.currentTime},getDuration:function(){return O.isLive()?1/0:K.duration},supportsFullscreen:t.constant(!0),getName:t.constant({name:"shaka"}),destroy:function(){b(),O.destroy()}})}return l.polyfill.installAll(),d.getName=t.constant({name:"shaka"}),d}.apply(e,n),!(void 0!==r&&(t.exports=r))},213:function(t,e,i){var n,r;n=[i(83)],r=function(t){var e=function(){this.estimator_=null,this.videoSource_=null,this.enabled_=!0,this.started_=!1,this.nextAdaptationTime_=Number.POSITIVE_INFINITY};return e.FIRST_SWITCH_INTERVAL_=4e3,e.MIN_SWITCH_INTERVAL_=8e3,e.MIN_EVAL_INTERVAL_=3e3,e.BANDWIDTH_UPGRADE_TARGET_=.85,e.BANDWIDTH_DOWNGRADE_TARGET_=.95,e.prototype.destroy=function(){this.estimator_.removeEventListener("bandwidth",this.onBandwidth_.bind(this),!1),this.videoSource_.removeEventListener("adaptation",this.onAdaptation_.bind(this),!1),this.videoSource_.removeEventListener("trackschanged",this.chooseNewTrack_.bind(this),!1),this.eventManager_=null,this.estimator_=null,this.videoSource_=null},e.prototype.initialize=function(t,e){this.estimator_||this.videoSource_||(this.estimator_=t,this.videoSource_=e)},e.prototype.start=function(){this.estimator_&&this.videoSource_&&!this.started_&&(this.nextAdaptationTime_=Date.now()+e.FIRST_SWITCH_INTERVAL_,this.estimator_.addEventListener("bandwidth",this.onBandwidth_.bind(this),!1),this.videoSource_.addEventListener("adaptation",this.onAdaptation_.bind(this),!1),this.videoSource_.addEventListener("trackschanged",this.chooseNewTrack_.bind(this),!1),this.started_=!0)},e.prototype.enable=function(t){this.enabled_=t},e.prototype.getInitialVideoTrackId=function(){if(!this.estimator_||!this.videoSource_)return null;var t=this.chooseVideoTrack_();return t?t.id:null},e.prototype.selectVideoTrack=function(t,e,i){this.started_&&this.videoSource_.selectVideoTrack(t.id,e,i)},e.findActiveTrack_=function(t){for(var e=0;e<t.length;++e)if(t[e].active)return t[e];return null},e.prototype.onBandwidth_=function(t){Date.now()<this.nextAdaptationTime_||this.chooseNewTrack_(t)},e.prototype.chooseNewTrack_=function(){if(this.enabled_){var t=e,i=this.chooseVideoTrack_();if(i){if(i.active)return void(this.nextAdaptationTime_=Date.now()+t.MIN_EVAL_INTERVAL_);this.selectVideoTrack(i,!1)}this.nextAdaptationTime_=Number.POSITIVE_INFINITY}},e.prototype.onAdaptation_=function(){this.nextAdaptationTime_===Number.POSITIVE_INFINITY&&(this.nextAdaptationTime_=Date.now()+e.MIN_SWITCH_INTERVAL_)},e.prototype.chooseVideoTrack_=function(){var i=e,n=this.videoSource_.getVideoTracks();if(0===n.length)return null;n.sort(t.player.VideoTrack.compare);for(var r=i.findActiveTrack_(this.videoSource_.getAudioTracks()),s=r?r.bandwidth:0,a=this.estimator_.getBandwidth(),o=n[0],h=0;h<n.length;++h){var u=n[h],l=h+1<n.length?n[h+1]:{bandwidth:Number.POSITIVE_INFINITY};if(u.bandwidth){var c=(u.bandwidth+s)/e.BANDWIDTH_DOWNGRADE_TARGET_,f=(l.bandwidth+s)/e.BANDWIDTH_UPGRADE_TARGET_;if(a>=c&&a<=f&&(o=u,o.active))break}}return o},e}.apply(e,n),!(void 0!==r&&(t.exports=r))}});

Youez - 2016 - github.com/yon3zu
LinuXploit